| Previous | 15994 Revisions | Next |
| r1712 Saturday 23rd February, 2008 at 22:09:56 UTC by Nathan Woods |
|---|
| Updated to MAME 0.123u2 core - there is quite a bit of breakage here; so watch out |
| [ROOT] | whatsnew.txt* |
| [docs] | messnew.txt |
| [src/build] | build.mak |
| [src/emu] | audit.c cheat.c clifront.c cpuexec.c cpuexec.h cpuint.c cpuintrf.c devintrf.c* devintrf.h* drawgfx.c driver.c driver.h eigccx86.h emu.mak emupal.c emupal.h info.c info.h inptport.c inptport.h mame.c mame.h mconfig.c* mconfig.h* memory.c render.c rendlay.c romload.c sndintrf.c sndintrf.h sound.c state.c state.h tilemap.c ui.c uigfx.c uimenu.c validity.c video.c video.h |
| [src/emu/cpu/alph8201] | alph8201.h |
| [src/emu/cpu/nec] | nec.c nec.h necinstr.h |
| [src/emu/cpu/sh4] | sh4.c sh4.h sh4dasm.c |
| [src/emu/cpu/ssp1610] | ssp1610.h |
| [src/emu/cpu/v60] | am2.c |
| [src/emu/debug] | debugcpu.c |
| [src/emu/drivers] | empty.c xtal.h |
| [src/emu/machine] | 6840ptm.c 6840ptm.h 6850acia.c 6850acia.h 8042kbdc.c generic.c |
| [src/emu/sound] | 5220intf.c aica.c* aica.h* aicadsp.c* aicadsp.h* aicalfo.c* sound.mak |
| [src/emu/video] | generic.c generic.h mc6845.c mc6845.h tms9928a.c |
| [src/lib/util] | astring.c |
| [src/mame] | mame.mak mamedriv.c |
| [src/mame/audio] | atarijsa.c dkong.c exidy.c irem.c jedi.c* leland.c namcoc7x.c qix.c redalert.c |
| [src/mame/drivers] | 1942.c 1943.c 1945kiii.c 20pacgal.c 2mindril.c 39in1.c 40love.c 4enraya.c 8080bw.c 88games.c ace.c acefruit.c acommand.c actfancr.c adp.c aeroboto.c aerofgt.c airbustr.c ajax.c aleck64.c alg.c aliens.c alpha68k.c ambush.c amidar.c ampoker2.c amspdwy.c angelkds.c appoooh.c aquarium.c arabian.c arcadecl.c arcadia.c argus.c arkanoid.c armedf.c artmagic.c ashnojoe.c asterix.c asteroid.c astinvad.c astrocde.c astrof.c asuka.c atarifb.c atarig1.c atarig42.c atarigt.c atarigx2.c atarisy1.c atarisy2.c atetris.c attckufo.c avalnche.c aztarac.c backfire.c badlands.c bagman.c balsente.c bankp.c baraduke.c batman.c battlane.c battlera.c battlex.c battlnts.c bbusters.c beaminv.c beathead.c beezer.c berzerk.c bestleag.c bfcobra.c bfm_sc2.c bigevglf.c bigfghtr.c bigstrkb.c bionicc.c bishi.c bishjan.c bking.c bladestl.c blktiger.c blmbycar.c blockade.c blockhl.c blockout.c bloodbro.c blstroid.c blueprnt.c bmcbowl.c bnstars.c bogeyman.c bombjack.c boogwing.c bottom9.c boxer.c brkthru.c bsktball.c btime.c btoads.c bublbobl.c buggychl.c bwidow.c bwing.c bzone.c cabal.c calorie.c canyon.c capbowl.c cardline.c carjmbre.c carpolo.c carrera.c cave.c cball.c cbasebal.c cbuster.c ccastles.c cchasm.c cclimber.c centiped.c chaknpop.c cham24.c champbas.c champbwl.c changela.c cheekyms.c cherrym.c cherrym2.c chinagat.c chinsan.c chqflag.c cidelsa.c cinemat.c circus.c circusc.c cischeat.c citycon.c clayshoo.c cliffhgr.c cloak.c cloud9.c clshroad.c cninja.c cntsteer.c coinmstr.c cojag.c combatsc.c comebaby.c commando.c compgolf.c contra.c coolpool.c coolridr.c cop01.c copsnrob.c cosmic.c couple.c cowrace.c cps1.c cps2.c cps3.c crbaloon.c crimfght.c crospang.c crshrace.c crystal.c cshooter.c csk.c cubocd32.c cultures.c cvs.c cyberbal.c cybertnk.c dacholer.c dambustr.c darius.c darkhors.c darkmist.c darkseal.c dassault.c dblewing.c dbz.c dcheese.c dcon.c dday.c ddayjlc.c ddealer.c ddenlovr.c ddragon.c ddragon3.c ddrible.c ddz.c deadang.c dec0.c dec8.c deco156.c deco32.c deco_mlc.c decocass.c deniam.c destroyr.c dgpix.c dietgo.c discoboy.c diverboy.c djboy.c djmain.c dkong.c dlair.c dmndrby.c docastle.c dogfgt.c dominob.c dooyong.c dorachan.c dotrikun.c dragrace.c dreamwld.c drgnmst.c dribling.c drmicro.c drtomy.c drw80pkr.c dunhuang.c dwarfd.c dynadice.c dynax.c dynduke.c egghunt.c embargo.c enigma2.c eolith.c eolith16.c epos.c eprom.c equites.c ertictac.c esd16.c esh.c espial.c ettrivia.c exctsccr.c exedexes.c exerion.c exidy.c exidy440.c expro02.c exprraid.c exterm.c exzisus.c f-32.c f1gp.c fantland.c fastfred.c fastlane.c fcombat.c fcrash.c fgoal.c filetto.c finalizr.c findout.c firebeat.c firetrap.c firetrk.c fitfight.c flkatck.c flower.c flstory.c flyball.c foodf.c fortecar.c freekick.c frogger.c fromanc2.c fromance.c funkybee.c funkyjet.c funworld.c funybubl.c fuukifg2.c fuukifg3.c gaelco.c gaelco2.c gaelco3d.c gaiden.c galaga.c galaxia.c galaxian.c galivan.c galpani2.c galpani3.c galpanic.c galspnbl.c gamecstl.c gameplan.c gaplus.c gauntlet.c gberet.c gbusters.c gcpinbal.c gdrawpkr.c genesis.c getrivia.c ghosteo.c gijoe.c ginganin.c gladiatr.c glass.c gng.c go2000.c goal92.c goindol.c goldstar.c gomoku.c good.c goodejan.c gotcha.c gottlieb.c gotya.c gpworld.c gradius3.c grchamp.c gridlee.c groundfx.c gstream.c gstriker.c gsword.c gticlub.c gtipoker.c gumbo.c gunbustr.c gundealr.c gunpey.c gunsmoke.c gyruss.c hal21.c halleys.c hanaawas.c hanaroku.c harddriv.c hcastle.c hexa.c hexion.c higemaru.c hitme.c hnayayoi.c hng64.c holeland.c homedata.c homerun.c hornet.c hotblock.c hshavoc.c hyhoo.c hyperspt.c hyprduel.c igs_180.c igs_blit.c igs_m027.c igs_m68.c ikki.c imolagp.c intrscti.c inufuku.c iqblock.c irobot.c ironhors.c istellar.c itech32.c itech8.c jack.c jackal.c jackpool.c jailbrek.c jalmah.c jchan.c jcross.c jedi.c jollyjgr.c jongkyo.c jpmimpct.c jrpacman.c junofrst.c kaneko16.c kangaroo.c karnov.c kchamp.c kickgoal.c kingobox.c kingpin.c kinst.c kinstb.c klax.c kncljoe.c koikoi.c konamigq.c konamigv.c konamigx.c konamim2.c kopunch.c ksayakyu.c ksys573.c kyugo.c labyrunr.c ladybug.c ladyfrog.c laserbas.c laserbat.c lasso.c lastduel.c lastfght.c lazercmd.c legionna.c lemmings.c lethal.c lethalj.c lgp.c liberate.c liberatr.c limenko.c littlerb.c lkage.c lockon.c looping.c lordgun.c lsasquad.c ltcasino.c lucky8.c lvcards.c lwings.c m10.c m107.c m52.c m57.c m58.c m62.c m72.c m79amb.c m90.c m92.c macrossp.c macs.c madalien.c madmotor.c magic10.c magicfly.c magmax.c mainevt.c mainsnk.c malzak.c mappy.c marineb.c marinedt.c mario.c markham.c marvins.c mastboy.c matmania.c maxaflex.c mayumi.c mazerbla.c mcatadv.c mcr.c mcr3.c mcr68.c meadows.c mediagx.c megadriv.c megasys1.c megatech.c megazone.c meijinsn.c merit.c meritm.c mermaid.c metlclsh.c metro.c mexico86.c mgolf.c mhavoc.c micro3d.c midas.c midtunit.c midvunit.c midwunit.c midxunit.c midyunit.c midzeus.c mikie.c miniboy7.c minivadr.c mirage.c mirax.c missb2.c missile.c mitchell.c mjkjidai.c mjsister.c mjsiyoub.c mlanding.c model1.c model2.c model3.c mogura.c mole.c momoko.c moo.c mosaic.c mouser.c mpu4.c mpu4drvr.c mquake.c mrdo.c mrflea.c mrjong.c ms32.c msisaac.c mugsmash.c multigam.c munchmo.c murogem.c mustache.c mw8080bw.c mwarr.c mystston.c mystwarr.c n8080.c namcofl.c namcoic.c namcona1.c namconb1.c namcond1.c namcos1.c namcos10.c namcos11.c namcos12.c namcos2.c namcos21.c namcos22.c namcos23.c namcos86.c naomi.c naughtyb.c nbmj8688.c nbmj8891.c nbmj8991.c nbmj9195.c nemesis.c neogeo.c news.c ninjakd2.c ninjaw.c nitedrvr.c niyanpai.c nmg5.c nmk16.c nova2001.c nss.c nwk-tr.c nycaptor.c nyny.c offtwall.c ohmygod.c ojankohs.c olibochu.c omegrace.c oneshot.c onetwo.c opwolf.c orbit.c othldrby.c othunder.c overdriv.c pacland.c pacman.c pandoras.c pangofun.c panicr.c paradise.c paranoia.c parodius.c pasha2.c pass.c pastelg.c pbaction.c pcktgal.c pengo.c peplus.c pgm.c phoenix.c pingpong.c pipedrm.c pipeline.c pirates.c pitnrun.c pkscram.c pktgaldx.c playch10.c playmark.c plygonet.c pmpoker.c pntnpuzl.c pokechmp.c polepos.c policetr.c polyplay.c poolshrk.c pooyan.c popeye.c popper.c portrait.c powerbal.c powerins.c ppmast93.c prehisle.c progolf.c psikyo.c psikyo4.c psikyosh.c psychic5.c pturn.c puckpkmn.c punchout.c pushman.c qdrmfgp.c qix.c quantum.c quasar.c quizdna.c quizo.c quizpani.c r2dtank.c rabbit.c raiden.c raiden2.c rainbow.c rallyx.c rampart.c rastan.c rbmk.c rcasino.c rcorsair.c realbrk.c redclash.c relief.c renegade.c retofinv.c rmhaihai.c rockola.c rockrage.c rocnrope.c rohga.c rollerg.c rollrace.c rotaryf.c route16.c royalmah.c rpunch.c runaway.c rungun.c safarir.c sandscrp.c sangho.c sauro.c sbasketb.c sbowling.c sbrkout.c sbugger.c scobra.c scotrsht.c scramble.c scregg.c sderby.c seattle.c segac2.c segae.c segag80r.c segag80v.c segahang.c segald.c segaorun.c segas16a.c segas16b.c segas18.c segas24.c segas32.c segaxbd.c segaybd.c seibuspi.c seicross.c sengokmj.c senjyo.c seta.c seta2.c sf.c sfkick.c sg1000a.c sgladiat.c shadfrce.c shangha3.c shanghai.c shangkid.c shaolins.c shisen.c shootout.c shougi.c shuuz.c sidearms.c sidepckt.c silkroad.c simpl156.c simpsons.c skullxbo.c skyarmy.c skydiver.c skyfox.c skykid.c skylncr.c skyraid.c slapfght.c slapshot.c sliver.c smstrv.c snk.c snk68.c snowbros.c solomon.c sonson.c spacefb.c spaceg.c spbactn.c spcforce.c spdodgeb.c speedatk.c speedbal.c speedspn.c speglsht.c spiders.c splash.c sprcros2.c sprint2.c sprint4.c sprint8.c spy.c srmp2.c srmp5.c srmp6.c srumbler.c ssfindo.c sshangha.c ssingles.c sslam.c ssozumo.c sspeedr.c ssrj.c sstrangr.c ssv.c st0016.c stactics.c stadhero.c starcrus.c starfire.c starshp1.c starwars.c statriv2.c steaser.c stepstag.c stfight.c stlforce.c strnskil.c stv.c subs.c suna16.c suna8.c supbtime.c supdrapo.c superchs.c superdq.c superqix.c supertnk.c suprgolf.c suprloco.c suprnova.c suprridr.c suprslam.c surpratk.c system1.c system16.c system18.c tagteam.c tail2nos.c taito_b.c taito_f2.c taito_f3.c taito_h.c taito_l.c taito_x.c taito_z.c taitoair.c taitojc.c taitosj.c taitowlf.c talbot.c tank8.c tankbatt.c tankbust.c taotaido.c targeth.c tarzan.c tatsumi.c tattack.c taxidrvr.c tbowl.c tceptor.c tcl.c tecmo.c tecmo16.c tecmosys.c tehkanwc.c tempest.c terracre.c tetrisp2.c tetriunk.c thayers.c thedeep.c thepit.c thief.c thoop2.c thunderj.c thunderx.c tiamc1.c tickee.c tigeroad.c timelimt.c timeplt.c tmaster.c tmnt.c tnzs.c toaplan1.c toaplan2.c toki.c toobin.c topshoot.c topspeed.c toratora.c tourtabl.c toypop.c tp84.c trackfld.c travrusa.c triplhnt.c truco.c trucocl.c trvmadns.c trvquest.c tryout.c tsamurai.c ttchamp.c tubep.c tugboat.c tumbleb.c tumblep.c tunhunt.c turbo.c turbosub.c tutankhm.c twin16.c twincobr.c twins.c tx1.c uapce.c ultraman.c ultratnk.c ultrsprt.c undrfire.c unico.c upscope.c usgames.c vamphalf.c vaportra.c vastar.c vball.c vcombat.c vegaeo.c vegas.c vendetta.c vertigo.c vicdual.c victory.c videopin.c vigilant.c vindictr.c viper.c vmetal.c volfied.c vroulet.c vsnes.c vulgus.c wallc.c wardner.c warpwarp.c warriorb.c wc90.c wc90b.c wecleman.c welltris.c wgp.c wheelfir.c williams.c wilytowr.c wink.c wiping.c witch.c wiz.c wldarrow.c wolfpack.c wrally.c wwfsstar.c wwfwfest.c xain.c xexex.c xmen.c xorworld.c xtheball.c xxmissio.c xybots.c xyonix.c yamato.c yiear.c yumefuda.c yunsun16.c yunsung8.c zac2650.c zaccaria.c zaxxon.c zerozone.c zn.c zodiack.c zr107.c |
| [src/mame/includes] | beathead.h cave.h cvs.h dc.h gameplan.h* iremipt.h* jedi.h kangaroo.h leland.h m52.h m58.h m62.h madalien.h* midzeus.h neogeo.h ninjakd2.h nova2001.h qix.h seta.h snes.h sprint2.h sprint8.h st0016.h starshp1.h tank8.h tx1.h warpwarp.h |
| [src/mame/machine] | atarigen.c bublbobl.c dc.c irem_cpu.c irem_cpu.h leland.c mexico86.c n64.c namcos2.c playch10.c qix.c slapstic.c snes.c taitosj.c tnzs.c toaplan1.c vsnes.c |
| [src/mame/video] | 20pacgal.c 40love.c aliens.c alpha68k.c ambush.c ampoker2.c appoooh.c asterix.c asuka.c atari.c atarifb.c atarigt.c bagman.c battlane.c battlera.c bbusters.c beathead.c beezer.c bionicc.c bking.c bladestl.c blktiger.c blmbycar.c blockout.c blueprnt.c bottom9.c brkthru.c btime.c bublbobl.c buggychl.c carjmbre.c carpolo.c cave.c cclimber.c centiped.c changela.c cloak.c combatsc.c compgolf.c contra.c cosmic.c crbaloon.c crgolf.c csk.c cvs.c darkmist.c dc.c dday.c ddrible.c dec8.c deco16ic.c deco32.c dkong.c dynax.c espial.c exerion.c exidy.c exidy440.c f1gp.c fastlane.c firetrap.c funworld.c fuukifg2.c galivan.c galpani2.c galpanic.c galspnbl.c gameplan.c* gdrawpkr.c glass.c gomoku.c gridlee.c gtia.c gunsmoke.c harddriv.c hcastle.c ikki.c irobot.c itech32.c jack.c jackal.c jedi.c karnov.c kchamp.c kingobox.c kncljoe.c konamiic.c kopunch.c labyrunr.c ladybug.c lasso.c leland.c lemmings.c lockon.c lvcards.c m10.c m52.c m57.c m58.c madalien.c* magmax.c mappy.c mermaid.c mikie.c mitchell.c mjsister.c mole.c mouser.c mrdo.c mrjong.c munchmo.c n64.c namcona1.c nbmj8688.c nbmj8891.c nbmj8991.c nbmj9195.c ninjakd2.c niyanpai.c nmk16.c ojankohs.c pastelg.c pcktgal.c plygonet.c polepos.c popeye.c popper.c qix.c redalert.c redclash.c rockola.c rockrage.c rungun.c sbasketb.c segaic24.c seicross.c seta.c shangkid.c shootout.c sidepckt.c snes.c snk.c sonson.c spdodgeb.c speedatk.c sprint2.c sprint4.c sprint8.c srmp2.c starfire.c starshp1.c stfight.c suna16.c superqix.c suprnova.c system1.c system16.c tagteam.c taito_b.c taito_f2.c taitoic.c taitojc.c taitosj.c tank8.c tankbatt.c terracre.c timelimt.c tnzs.c toaplan1.c toaplan2.c toypop.c travrusa.c truco.c tryout.c tubep.c tunhunt.c twin16.c tx1.c ultratnk.c usgames.c vdc.c warpwarp.c wiz.c wolfpack.c xorworld.c xyonix.c ygv608.c yiear.c zaccaria.c zaxxon.c zodiack.c |
| [src/mess] | device.c device.h eventlst.c inputx.h mess.mak messopts.c mesvalid.c mslegacy.c |
| [src/mess/devices] | appldriv.c appldriv.h basicdsk.c bitbngr.c bitbngr.h cartslot.c cassette.c cassette.h chd_cd.c coco_vhd.c dsk.c harddriv.c idedrive.c idedrive.h mflopimg.c mflopimg.h printer.c snapquik.c snapquik.h sonydriv.c sonydriv.h z80bin.c |
| [src/mess/drivers] | 3do.c a2600.c a310.c a7800.c abc80.c abc80x.c acrnsys1.c adam.c advision.c aim65.c amiga.c amstrad.c apexc.c apf.c apple1.c apple2.c apple2gs.c apple3.c aquarius.c arcadia.c astrocde.c at.c atari.c atarist.c atom.c avigo.c bbc.c bbcbc.c bebox.c c128.c c16.c c64.c c65.c cbmb.c cgenie.c channelf.c coco.c coleco.c compis.c comquest.c concept.c coupe.c crvision.c cybiko.c dai.c dc.c dgn_beta.c einstein.c electron.c enterp.c ex800.c exelv.c exidy.c galaxy.c gamecom.c gamepock.c gb.c genesis.c geneve.c glasgow.c hp48.c intv.c ip20.c ip22.c jaguar.c jupiter.c kaypro.c kc.c kim1.c lisa.c lviv.c lynx.c mac.c mbee.c mc10.c mekd2.c mephisto.c microtan.c mk1.c mk2.c mpf1.c msx.c mtx.c mz700.c n64.c nascom1.c nc.c nes.c odyssey2.c oric.c osborne1.c osi.c p2000t.c pc.c pc8801.c pce.c pcw.c pcw16.c pdp1.c pet.c pmd85.c pocketc.c pokemini.c primo.c psx.c ql.c saturn.c sg1000.c sms.c snes.c sord.c spectrum.c ssystem3.c studio2.c super80.c svi318.c svision.c sym1.c thomson.c ti85.c ti990_10.c ti990_4.c ti99_2.c ti99_4p.c ti99_4x.c ti99_8.c tm990189.c tmc1800.c tmc2000e.c tmc600.c trs80.c tutor.c tx0.c vc20.c vc4000.c vectrex.c vip.c vtech1.c vtech2.c wswan.c x68k.c z88.c zx.c |
| [src/mess/formats] | thom_cas.c thom_dsk.c |
| [src/mess/includes] | cbmb.h pet.h vc1541.h |
| [src/mess/machine] | 99_ide.c amigafdc.c astrocde.c at.c cbm.c cbmb.c cbmserb.c genesis.c kim1.c microtan.c pc.c pet.c svi318.c trs80.c vc1541.c vc20tape.c vtech2.c |
| [src/mess/osd/windows] | menu.c |
| [src/mess/osd/winui] | layoutms.c optionsms.c softwarepicker.c |
| [src/mess/tools/messtest] | testmess.c |
| [src/mess/video] | 733_asr.c 911_vdt.c abc80.c advision.c amstrad.c arcadia.c astrocde.c avigo.c cbmb.c crtc6845.c dai.c galaxy.c hd66421.c hp48.c intv.c kc.c kim1.c lviv.c mekd2.c mz700.c nc.c odyssey2.c pc8801.c pc_aga.c pc_cga.c pc_mda.c pc_t1t.c pc_vga.c pc_video.c pcw.c pcw16.c pet.c pmd85.c pocketc.c saa5050.c ssystem3.c ti85.c tms3556.c vic6567.c vtech2.c z88.c |
| [src/osd/windows] | d3d8intf.c d3d9intf.c debugwin.c video.c window.c |
| [src/osd/winui] | directinput.c dirwatch.c mui_opts.c mui_util.c mui_util.h properties.c tabview.c treeview.c winui.c |
| r1711 | r1712 | |
|---|---|---|
| 44 | 44 | |
| 45 | 45 | $(FILE2STR): $(FILE2STROBJS) $(LIBOCORE) |
| 46 | 46 | @echo Linking $@... |
| 47 | $(LD) $(LDFLAGS) $^ -o $@ | |
| 47 | $(LD) $(LDFLAGS) $^ $(LIBS) -o $@ | |
| 48 | 48 | |
| 49 | 49 | |
| 50 | 50 | |
| r1711 | r1712 | |
| 57 | 57 | |
| 58 | 58 | $(PNG2BDC): $(PNG2BDCOBJS) $(LIBUTIL) $(LIBOCORE) $(ZLIB) |
| 59 | 59 | @echo Linking $@... |
| 60 | $(LD) $(LDFLAGS) $^ $(LIB | |
| 60 | $(LD) $(LDFLAGS) $^ $(LIBS | |
| 61 | 61 | |
| 62 | 62 | |
| 63 | 63 | |
| r1711 | r1712 | |
| 70 | 70 | |
| 71 | 71 | $(VERINFO): $(VERINFOOBJS) $(LIBOCORE) |
| 72 | 72 | @echo Linking $@... |
| 73 | $(LD) $(LDFLAGS) $^ -o $@ | |
| 73 | $(LD) $(LDFLAGS) $^ $(LIBS) -o $@ | |
| 74 | 74 | |
| 75 | 75 | endif |
| r1711 | r1712 | |
|---|---|---|
| 5 | 5 | *************************************************************************/ |
| 6 | 6 | #include "driver.h" |
| 7 | 7 | #include "qix.h" |
| 8 | #include "machine/6821pia.h" | |
| 9 | #include "sound/sn76496.h" | |
| 8 | 10 | #include "sound/discrete.h" |
| 9 | 11 | |
| 10 | 12 | /* Discrete Sound Input Nodes */ |
| r1711 | r1712 | |
| 15 | 17 | |
| 16 | 18 | |
| 17 | 19 | /*************************************************************************** |
| 18 | ||
| 20 | A | |
| 19 | 21 | ***************************************************************************/ |
| 20 | 22 | |
| 21 | 23 | WRITE8_HANDLER( qix_dac_w ) |
| r1711 | r1712 | |
| 76 | 78 | DISCRETE_OUTPUT(NODE_13, 1) |
| 77 | 79 | DISCRETE_OUTPUT(NODE_23, 1) |
| 78 | 80 | DISCRETE_SOUND_END |
| 81 | ||
| 82 | ||
| 83 | ||
| 84 | /************************************* | |
| 85 | * | |
| 86 | * Audio CPU memory handlers | |
| 87 | * | |
| 88 | *************************************/ | |
| 89 | ||
| 90 | static ADDRESS_MAP_START( audio_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 91 | AM_RANGE(0x0000, 0x007f) AM_RAM | |
| 92 | AM_RANGE(0x2000, 0x2003) AM_MIRROR(0x5ffc) AM_READWRITE(pia_5_r, pia_5_w) | |
| 93 | AM_RANGE(0x4000, 0x4003) AM_MIRROR(0x3ffc) AM_READWRITE(pia_4_r, pia_4_w) | |
| 94 | AM_RANGE(0xd000, 0xffff) AM_ROM | |
| 95 | ADDRESS_MAP_END | |
| 96 | ||
| 97 | ||
| 98 | ||
| 99 | /************************************* | |
| 100 | * | |
| 101 | * Machine drivers | |
| 102 | * | |
| 103 | *************************************/ | |
| 104 | ||
| 105 | MACHINE_DRIVER_START( qix_audio ) | |
| 106 | MDRV_CPU_ADD_TAG("audio", M6802, SOUND_CLOCK_OSC/2) /* 0.92 MHz */ | |
| 107 | MDRV_CPU_PROGRAM_MAP(audio_map,0) | |
| 108 | ||
| 109 | MDRV_SPEAKER_STANDARD_STEREO("left", "right") | |
| 110 | ||
| 111 | MDRV_SOUND_ADD_TAG("discrete", DISCRETE, 0) | |
| 112 | MDRV_SOUND_CONFIG_DISCRETE(qix) | |
| 113 | MDRV_SOUND_ROUTE(0, "left", 1.0) | |
| 114 | MDRV_SOUND_ROUTE(1, "right", 1.0) | |
| 115 | MACHINE_DRIVER_END | |
| 116 | ||
| 117 | ||
| 118 | MACHINE_DRIVER_START( slither_audio ) | |
| 119 | MDRV_CPU_REMOVE("audio") | |
| 120 | ||
| 121 | MDRV_SPEAKER_REMOVE("left") | |
| 122 | MDRV_SPEAKER_REMOVE("right") | |
| 123 | MDRV_SPEAKER_STANDARD_MONO("mono") | |
| 124 | ||
| 125 | MDRV_SOUND_REPLACE("discrete", SN76489, SLITHER_CLOCK_OSC/4/4) | |
| 126 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) | |
| 127 | ||
| 128 | MDRV_SOUND_ADD(SN76489, SLITHER_CLOCK_OSC/4/4) | |
| 129 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) | |
| 130 | MACHINE_DRIVER_END |
| r1711 | r1712 | |
|---|---|---|
| 123 | 123 | has_tms5220 = has_oki6295 = has_pokey = has_ym2151 = 0; |
| 124 | 124 | for (i = 0; i < MAX_SOUND; i++) |
| 125 | 125 | { |
| 126 | switch (Machine-> | |
| 126 | switch (Machine->config->sound[i].type) | |
| 127 | 127 | { |
| 128 | 128 | case SOUND_TMS5220: |
| 129 | 129 | has_tms5220 = 1; |
| r1711 | r1712 | |
|---|---|---|
| 260 | 260 | * |
| 261 | 261 | *************************************/ |
| 262 | 262 | |
| 263 | MACHINE_DRIVER_START( irem_audio_base ) | |
| 263 | static MACHINE_DRIVER_START( irem_audio_base ) | |
| 264 | 264 | |
| 265 | 265 | MDRV_SOUND_START(irem_audio) |
| 266 | 266 |
| r1711 | r1712 | |
|---|---|---|
| 509 | 509 | /* determine which sound hardware is installed */ |
| 510 | 510 | has_ym2151 = 0; |
| 511 | 511 | for (i = 0; i < MAX_SOUND; i++) |
| 512 | if (Machine-> | |
| 512 | if (Machine->config->sound[i].type == SOUND_YM2151) | |
| 513 | 513 | has_ym2151 = 1; |
| 514 | 514 | |
| 515 | 515 | /* allocate separate streams for the DMA and non-DMA DACs */ |
| r1711 | r1712 | |
|---|---|---|
| 1286 | 1286 | static const struct NESinterface nes_interface_1 = { REGION_CPU2 }; |
| 1287 | 1287 | static const struct NESinterface nes_interface_2 = { REGION_CPU3 }; |
| 1288 | 1288 | |
| 1289 | static struct TMS5110interface tms5110_interface = | |
| 1289 | static const struct TMS5110interface tms5110_interface = | |
| 1290 | 1290 | { |
| 1291 | 1291 | REGION_SOUND1, /* Sample Rom */ |
| 1292 | 1292 | NULL, |
| r1711 | r1712 | |
|---|---|---|
| 66 | 66 | |
| 67 | 67 | // install speedup cheat |
| 68 | 68 | for (cpunum = 0; cpunum < MAX_CPU; cpunum++) |
| 69 | if (Machine-> | |
| 69 | if (Machine->config->cpu[cpunum].type == CPU_M37702) | |
| 70 | 70 | { |
| 71 | 71 | memory_install_read16_handler(cpunum, ADDRESS_SPACE_PROGRAM, 0x82, 0x83, 0, 0, speedup_r); |
| 72 | 72 | memory_install_write16_handler(cpunum, ADDRESS_SPACE_PROGRAM, 0x82, 0x83, 0, 0, speedup_w); |
| r1711 | r1712 | |
|---|---|---|
| 14 | 14 | #include "machine/6821pia.h" |
| 15 | 15 | #include "sound/ay8910.h" |
| 16 | 16 | #include "sound/hc55516.h" |
| 17 | #include "redalert.h" | |
| 17 | 18 | |
| 18 | 19 | |
| 19 | 20 |
| r0 | r1712 | |
|---|---|---|
| 1 | /*************************************************************************** | |
| 2 | ||
| 3 | Atari Return of the Jedi hardware | |
| 4 | ||
| 5 | driver by Dan Boris | |
| 6 | ||
| 7 | ***************************************************************************/ | |
| 8 | ||
| 9 | #include "driver.h" | |
| 10 | #include "deprecat.h" | |
| 11 | #include "cpu/m6502/m6502.h" | |
| 12 | #include "sound/5220intf.h" | |
| 13 | #include "sound/pokey.h" | |
| 14 | #include "jedi.h" | |
| 15 | ||
| 16 | ||
| 17 | ||
| 18 | /************************************* | |
| 19 | * | |
| 20 | * Start | |
| 21 | * | |
| 22 | *************************************/ | |
| 23 | ||
| 24 | static SOUND_START( jedi ) | |
| 25 | { | |
| 26 | jedi_state *state = machine->driver_data; | |
| 27 | ||
| 28 | /* set up save state */ | |
| 29 | state_save_register_global(state->audio_latch); | |
| 30 | state_save_register_global(state->audio_ack_latch); | |
| 31 | state_save_register_global(state->speech_strobe_state); | |
| 32 | } | |
| 33 | ||
| 34 | ||
| 35 | ||
| 36 | /************************************* | |
| 37 | * | |
| 38 | * Reset | |
| 39 | * | |
| 40 | *************************************/ | |
| 41 | ||
| 42 | static SOUND_RESET( jedi ) | |
| 43 | { | |
| 44 | jedi_state *state = machine->driver_data; | |
| 45 | ||
| 46 | /* init globals */ | |
| 47 | state->audio_latch = 0; | |
| 48 | state->audio_ack_latch = 0; | |
| 49 | *state->audio_comm_stat = 0; | |
| 50 | *state->speech_data = 0; | |
| 51 | state->speech_strobe_state = 0; | |
| 52 | } | |
| 53 | ||
| 54 | ||
| 55 | ||
| 56 | /************************************* | |
| 57 | * | |
| 58 | * Interrupt handling | |
| 59 | * | |
| 60 | *************************************/ | |
| 61 | ||
| 62 | static WRITE8_HANDLER( irq_ack_w ) | |
| 63 | { | |
| 64 | cpunum_set_input_line(Machine, 1, M6502_IRQ_LINE, CLEAR_LINE); | |
| 65 | } | |
| 66 | ||
| 67 | ||
| 68 | ||
| 69 | /************************************* | |
| 70 | * | |
| 71 | * Main CPU -> Sound CPU communications | |
| 72 | * | |
| 73 | *************************************/ | |
| 74 | ||
| 75 | WRITE8_HANDLER( jedi_audio_reset_w ) | |
| 76 | { | |
| 77 | cpunum_set_input_line(Machine, 1, INPUT_LINE_RESET, (data & 1) ? CLEAR_LINE : ASSERT_LINE); | |
| 78 | } | |
| 79 | ||
| 80 | ||
| 81 | static TIMER_CALLBACK( delayed_audio_latch_w ) | |
| 82 | { | |
| 83 | jedi_state *state = machine->driver_data; | |
| 84 | ||
| 85 | state->audio_latch = param; | |
| 86 | *state->audio_comm_stat |= 0x80; | |
| 87 | } | |
| 88 | ||
| 89 | ||
| 90 | WRITE8_HANDLER( jedi_audio_latch_w ) | |
| 91 | { | |
| 92 | timer_call_after_resynch(NULL, data, delayed_audio_latch_w); | |
| 93 | } | |
| 94 | ||
| 95 | ||
| 96 | static READ8_HANDLER( audio_latch_r ) | |
| 97 | { | |
| 98 | jedi_state *state = Machine->driver_data; | |
| 99 | ||
| 100 | *state->audio_comm_stat &= ~0x80; | |
| 101 | return state->audio_latch; | |
| 102 | } | |
| 103 | ||
| 104 | ||
| 105 | CUSTOM_INPUT( jedi_audio_comm_stat_r ) | |
| 106 | { | |
| 107 | jedi_state *state = Machine->driver_data; | |
| 108 | ||
| 109 | return *state->audio_comm_stat >> 6; | |
| 110 | } | |
| 111 | ||
| 112 | ||
| 113 | ||
| 114 | /************************************* | |
| 115 | * | |
| 116 | * Sound CPU -> Main CPU communications | |
| 117 | * | |
| 118 | *************************************/ | |
| 119 | ||
| 120 | READ8_HANDLER( jedi_audio_ack_latch_r ) | |
| 121 | { | |
| 122 | jedi_state *state = Machine->driver_data; | |
| 123 | ||
| 124 | *state->audio_comm_stat &= ~0x40; | |
| 125 | return state->audio_ack_latch; | |
| 126 | } | |
| 127 | ||
| 128 | ||
| 129 | static WRITE8_HANDLER( audio_ack_latch_w ) | |
| 130 | { | |
| 131 | jedi_state *state = Machine->driver_data; | |
| 132 | ||
| 133 | state->audio_ack_latch = data; | |
| 134 | *state->audio_comm_stat |= 0x40; | |
| 135 | } | |
| 136 | ||
| 137 | ||
| 138 | ||
| 139 | /************************************* | |
| 140 | * | |
| 141 | * Speech access | |
| 142 | * | |
| 143 | *************************************/ | |
| 144 | ||
| 145 | static WRITE8_HANDLER( speech_strobe_w ) | |
| 146 | { | |
| 147 | jedi_state *state = Machine->driver_data; | |
| 148 | int new_speech_strobe_state = (~offset >> 8) & 1; | |
| 149 | ||
| 150 | if ((new_speech_strobe_state != state->speech_strobe_state) && new_speech_strobe_state) | |
| 151 | tms5220_data_w(0, *state->speech_data); | |
| 152 | state->speech_strobe_state = new_speech_strobe_state; | |
| 153 | } | |
| 154 | ||
| 155 | ||
| 156 | static READ8_HANDLER( speech_ready_r ) | |
| 157 | { | |
| 158 | return (!tms5220_ready_r()) << 7; | |
| 159 | } | |
| 160 | ||
| 161 | ||
| 162 | static WRITE8_HANDLER( speech_reset_w ) | |
| 163 | { | |
| 164 | /* not supported by the TMS5220 emulator */ | |
| 165 | } | |
| 166 | ||
| 167 | ||
| 168 | ||
| 169 | /************************************* | |
| 170 | * | |
| 171 | * Audio CPU memory handlers | |
| 172 | * | |
| 173 | *************************************/ | |
| 174 | ||
| 175 | static ADDRESS_MAP_START( audio_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 176 | AM_RANGE(0x0000, 0x07ff) AM_RAM | |
| 177 | AM_RANGE(0x0800, 0x080f) AM_MIRROR(0x07c0) AM_READWRITE(pokey1_r, pokey1_w) | |
| 178 | AM_RANGE(0x0810, 0x081f) AM_MIRROR(0x07c0) AM_READWRITE(pokey2_r, pokey2_w) | |
| 179 | AM_RANGE(0x0820, 0x082f) AM_MIRROR(0x07c0) AM_READWRITE(pokey3_r, pokey3_w) | |
| 180 | AM_RANGE(0x0830, 0x083f) AM_MIRROR(0x07c0) AM_READWRITE(pokey4_r, pokey4_w) | |
| 181 | AM_RANGE(0x1000, 0x1000) AM_MIRROR(0x00ff) AM_READWRITE(MRA8_NOP, irq_ack_w) | |
| 182 | AM_RANGE(0x1100, 0x1100) AM_MIRROR(0x00ff) AM_READWRITE(MRA8_NOP, MWA8_RAM) AM_BASE_MEMBER(jedi_state, speech_data) | |
| 183 | AM_RANGE(0x1200, 0x13ff) AM_READWRITE(MRA8_NOP, speech_strobe_w) | |
| 184 | AM_RANGE(0x1400, 0x1400) AM_MIRROR(0x00ff) AM_READWRITE(MRA8_NOP, audio_ack_latch_w) | |
| 185 | AM_RANGE(0x1500, 0x1500) AM_MIRROR(0x00ff) AM_READWRITE(MRA8_NOP, speech_reset_w) | |
| 186 | AM_RANGE(0x1600, 0x17ff) AM_NOP | |
| 187 | AM_RANGE(0x1800, 0x1800) AM_MIRROR(0x03ff) AM_READWRITE(audio_latch_r, MWA8_NOP) | |
| 188 | AM_RANGE(0x1c00, 0x1c00) AM_MIRROR(0x03fe) AM_READWRITE(speech_ready_r, MWA8_NOP) | |
| 189 | AM_RANGE(0x1c01, 0x1c01) AM_MIRROR(0x03fe) AM_READWRITE(MRA8_RAM, MWA8_NOP) AM_BASE_MEMBER(jedi_state, audio_comm_stat) | |
| 190 | AM_RANGE(0x2000, 0x7fff) AM_NOP | |
| 191 | AM_RANGE(0x8000, 0xffff) AM_ROM | |
| 192 | ADDRESS_MAP_END | |
| 193 | ||
| 194 | ||
| 195 | ||
| 196 | /************************************* | |
| 197 | * | |
| 198 | * Machine driver | |
| 199 | * | |
| 200 | *************************************/ | |
| 201 | ||
| 202 | MACHINE_DRIVER_START( jedi_audio ) | |
| 203 | ||
| 204 | MDRV_CPU_ADD(M6502, JEDI_AUDIO_CPU_CLOCK) | |
| 205 | MDRV_CPU_PROGRAM_MAP(audio_map,0) | |
| 206 | ||
| 207 | MDRV_SOUND_START(jedi) | |
| 208 | MDRV_SOUND_RESET(jedi) | |
| 209 | ||
| 210 | MDRV_SPEAKER_STANDARD_STEREO("left", "right") | |
| 211 | ||
| 212 | MDRV_SOUND_ADD(POKEY, JEDI_POKEY_CLOCK) | |
| 213 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "left", 0.30) | |
| 214 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "right", 0.30) | |
| 215 | ||
| 216 | MDRV_SOUND_ADD(POKEY, JEDI_POKEY_CLOCK) | |
| 217 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "left", 0.30) | |
| 218 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "right", 0.30) | |
| 219 | ||
| 220 | MDRV_SOUND_ADD(POKEY, JEDI_POKEY_CLOCK) | |
| 221 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "left", 0.30) | |
| 222 | ||
| 223 | MDRV_SOUND_ADD(POKEY, JEDI_POKEY_CLOCK) | |
| 224 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "right", 0.30) | |
| 225 | ||
| 226 | MDRV_SOUND_ADD(TMS5220, JEDI_TMS5220_CLOCK) | |
| 227 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "left", 1.0) | |
| 228 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "right", 1.0) | |
| 229 | MACHINE_DRIVER_END |
| r1711 | r1712 | |
|---|---|---|
| 13 | 13 | #include "sound/hc55516.h" |
| 14 | 14 | #include "sound/5220intf.h" |
| 15 | 15 | #include "sound/custom.h" |
| 16 | #include "exidy.h" | |
| 16 | 17 | |
| 17 | 18 | |
| 18 | 19 | |
| r1711 | r1712 | |
| 726 | 727 | * |
| 727 | 728 | *************************************/ |
| 728 | 729 | |
| 729 | WRITE8_HANDLER( exidy_sound_filter_w ) | |
| 730 | static WRITE8_HANDLER( exidy_sound_filter_w ) | |
| 730 | 731 | { |
| 731 | 732 | logerror("exidy_sound_filter_w = %02X\n", data); |
| 732 | 733 | } |
| r1711 | r1712 | |
| 768 | 769 | has_mc3417 = FALSE; |
| 769 | 770 | for (i = 0; i < MAX_SOUND; i++) |
| 770 | 771 | { |
| 771 | if (Machine-> | |
| 772 | if (Machine->config->sound[i].type == SOUND_MC3417) | |
| 772 | 773 | has_mc3417 = TRUE; |
| 773 | 774 | } |
| 774 | 775 |
| r1711 | r1712 | |
|---|---|---|
| 1 | ||
| 1 | 2 | /***************************************************************************** |
| 2 | 3 | |
| 3 | Irem Custom V30 CPU: | |
| 4 | Irem Custom V35+ CPU | |
| 5 | -- has internal 256 byte lookup table, handled in realtime. Bomberman | |
| 6 | World runs encrypted code from RAM, Risky Challenge expects to be able | |
| 7 | to run code in emulation (non-encrypted) mode for some subroutines.. | |
| 4 | 8 | |
| 5 | It uses a simple opcode lookup encryption, the painful part is that it's | |
| 6 | preprogrammed into the cpu and isn't a algorithmic based one. | |
| 7 | ||
| 8 | 9 | Hasamu Nanao 08J27261A1 011 9102KK700 |
| 9 | 10 | Gunforce Nanao 08J27261A1 011 9106KK701 |
| 10 | 11 | Ken-Go Nanao 08J27261A1 011 9102KK701 |
| r1711 | r1712 | |
| 36 | 37 | |
| 37 | 38 | *****************************************************************************/ |
| 38 | 39 | |
| 40 | ||
| 41 | ||
| 39 | 42 | #include "driver.h" |
| 40 | 43 | #include "irem_cpu.h" |
| 41 | 44 | |
| 42 | int m90_game_kludge; | |
| 43 | 45 | |
| 44 | 46 | // CAVEATS: |
| 45 | 47 | // 0x80 and 0x82 pre- opcodes can easily be confused. They perform exactly the same |
| r1711 | r1712 | |
| 299 | 301 | // 0xb8 (0x2b) not sure, could be 0x1b |
| 300 | 302 | |
| 301 | 303 | const UINT8 gussun_decryption_table[256] = { |
| 302 | 0xcd,xxxx,xxxx,0x36,xxxx,0x52,0xb1,0x5b, 0x68,0xcd,xxxx,xxxx,xxxx,0xa8,xxxx,xxxx, /* 00 */ | |
| 303 | // 0x63 gggg gggg gggg | |
| 304 | xxxx,xxxx,0x75,0x24,0x08,0x83,0x32,0xe9, xxxx,0x79,xxxx,0x8f,0x22,xxxx,0xac,xxxx, /* 10 */ | |
| 305 | // ???? pppp gggg | |
| 306 | 0x5d,0xa5,0x11,0x51,0x0a,0x29,xxxx,xxxx ,0xf8,0x98,0x91,0x40,0x28,0x00,0x03,0x5f, /* 20 */ | |
| 307 | // gggg pppp gggg gggg gggg gggg pppp | |
| 308 | 0x26,xxxx,xxxx,0x8b,0x2f,0x02,xxxx,xxxx, 0x8e,0xab,xxxx,xxxx,0xbc,0xf1,0xb3,xxxx, /* 30 */ | |
| 309 | // gggg 0x90 | |
| 310 | 0x19,xxxx,0xc6,xxxx,xxxx,0x3a,xxxx,xxxx, xxxx,0x74,0x61,xxxx,0x33,xxxx,xxxx,xxxx, /* 40 */ | |
| 311 | // ???? | |
| 312 | xxxx,0x53,0xa0,0xc0,0xc3,0x41,0xfc,0xe7, xxxx,0x2c,0x7c,0x2b,xxxx,xxxx,0xba,0x2a, /* 50 */ | |
| 313 | // gggg gggg gggg pppp gggg | |
| 314 | 0xb0,xxxx,0x29,0x79,xxxx,xxxx,0xb5,0x07, 0xb9,xxxx,0x27,0x46,0xf9,xxxx,xxxx,xxxx, /* 60 */ | |
| 315 | // ???? pppp gggg gggg | |
| 316 | xxxx,0xea,0x72,0x73,0xad,0xd1,0x3b,0x5e, 0xe5,0x57,xxxx,0x0d,xxxx,xxxx,0x42,0x3c, /* 70 */ | |
| 317 | // gggg pppp ???? | |
| 318 | xxxx,0x86,0x78,0x7d,0x30,0x25,0x2d,xxxx, 0x9a,0xeb,0x04,0x0b,0xa2,0xb8,0xf6,xxxx, /* 80 */ | |
| 319 | // ???? pppp ???? pppp gggg | |
| 320 | xxxx,xxxx,0x9d,xxxx,0xbb,xxxx,xxxx,0xcb, 0xa9,0xcf,xxxx,0x60,0x43,0x56,xxxx,xxxx, /* 90 */ | |
| 321 | // gggg gggg | |
| 322 | xxxx,0xa3,xxxx,xxxx,xxxx,xxxx,0xfa,0xb4, xxxx,0x81,0xe6,0x48,0x80,0x8c,0xd4,xxxx, /* a0 */ | |
| 323 | // gggg ???? gggg gggg | |
| 324 | xxxx,xxxx,0x84,0xb6,0x77,0x3d,0x3e,xxxx, xxxx,0xb7,0x4b,xxxx,xxxx,xxxx,xxxx,xxxx, /* b0 */ | |
| 325 | // gggg ???? gggg gggg ???? pppp | |
| 326 | xxxx,0xff,0x47,xxxx,0x55,0x1e,xxxx,0x59, 0x93,xxxx,xxxx,xxxx,0x88,0xc1,0x01,0xb2, /* c0 */ | |
| 327 | // gggg pppp | |
| 328 | 0x01,0x2e,0x06,0xc7,0x05,xxxx,0x8a,0x5a, 0x58,0xbe,xxxx,0x4e,xxxx,0x1f,0x23,xxxx, /* d0 */ | |
| 329 | // ???? gggg | |
| 330 | 0xe8,xxxx,0x89,0xa1,0xd0,xxxx,xxxx,0xe2, 0x38,0xfe,0x50,0x9c,xxxx,xxxx,xxxx,0x49, /* e0 */ | |
| 331 | // gggg gggg | |
| 332 | 0xfb,0x20,0xf3,xxxx,xxxx,0x0f,xxxx,xxxx, xxxx,0x76,0xf7,0xbd,0x39,0x7e,0xbf,xxxx, /* f0 */ | |
| 333 | // pppp gggg gggg gggg | |
| 304 | 0x63,xxxx,xxxx,0x36,xxxx,0x52,0xb1,0x5b, 0x68,0xcd,xxxx,xxxx,xxxx,0xa8,xxxx,xxxx, /* 00 */ | |
| 305 | // 0x63 gggg gggg gggg | |
| 306 | xxxx,xxxx,0x75,0x24,0x08,0x83,0x32,0xe9, xxxx,0x79,xxxx,0x8f,0x22,xxxx,0xac,xxxx, /* 10 */ | |
| 307 | // ???? pppp gggg | |
| 308 | 0x5d,0xa5,0x11,0x51,0x0a,0x29,xxxx,xxxx ,0xf8,0x98,0x91,0x40,0x28,0x00,0x03,0x5f, /* 20 */ | |
| 309 | // gggg gggg gggg gggg gggg gggg pppp | |
| 310 | 0x26,xxxx,xxxx,0x8b,0x2f,0x02,xxxx,xxxx, 0x8e,0xab,xxxx,xxxx,0xbc,0x90,0xb3,xxxx, /* 30 */ | |
| 311 | // gggg | |
| 312 | 0x09,xxxx,0xc6,xxxx,xxxx,0x3a,xxxx,xxxx, xxxx,0x74,0x61,xxxx,0x33,xxxx,xxxx,xxxx, /* 40 */ | |
| 313 | // gggg | |
| 314 | xxxx,0x53,0xa0,0xc0,0xc3,0x41,0xfc,0xe7, xxxx,0x2c,0x7c,0x2b,xxxx,0x4f,0xba,0x2a, /* 50 */ | |
| 315 | // gggg gggg gggg pppp gggg gggg | |
| 316 | 0xb0,xxxx,0x21,0x7d,xxxx,xxxx,0xb5,0x07, 0xb9,xxxx,0x27,0x46,0xf9,xxxx,xxxx,xxxx, /* 60 */ | |
| 317 | // pppp pppp gggg gggg | |
| 318 | xxxx,0xea,0x72,0x73,0xad,0xd1,0x3b,0x5e, 0xe5,0x57,xxxx,0x0d,0xfd,xxxx,0x92,0x3c, /* 70 */ | |
| 319 | // gggg pppp gggg gggg | |
| 320 | xxxx,0x86,0x78,0x7f,0x18,0x25,0x2d,xxxx, 0x9a,0xeb,0x04,0x0b,0xa2,0xb8,0xf6,xxxx, /* 80 */ | |
| 321 | // pppp pppp ???? pppp gggg | |
| 322 | xxxx,xxxx,0x9d,xxxx,0xbb,xxxx,xxxx,0xcb, 0xa9,0xcf,xxxx,0x60,0x43,0x56,xxxx,xxxx, /* 90 */ | |
| 323 | // gggg gggg | |
| 324 | xxxx,0xa3,xxxx,xxxx,0x12,xxxx,0xfa,0xb4, xxxx,0x81,0xe6,0x48,0x80,0x8c,0xd4,xxxx, /* a0 */ | |
| 325 | // ???? gggg ???? gggg gggg | |
| 326 | 0x42,xxxx,0x84,0xb6,0x77,0x3d,0x3e,xxxx, xxxx,0xb7,0x4b,xxxx,0xa4,xxxx,xxxx,xxxx, /* b0 */ | |
| 327 | // gggg gggg ???? gggg gggg ???? pppp gggg | |
| 328 | xxxx,0xff,0x47,xxxx,0x55,0x1e,xxxx,0x59, 0x93,xxxx,xxxx,xxxx,0x88,0xc1,0x01,0xb2, /* c0 */ | |
| 329 | // gggg pppp | |
| 330 | 0x85,0x2e,0x06,0xc7,0x05,xxxx,0x8a,0x5a, 0x58,0xbe,xxxx,0x4e,xxxx,0x1f,0x23,xxxx, /* d0 */ | |
| 331 | // gggg gggg | |
| 332 | 0xe8,xxxx,0x89,0xa1,0xd0,xxxx,xxxx,0xe2, 0x38,0xfe,0x50,0x9c,xxxx,xxxx,xxxx,0x49, /* e0 */ | |
| 333 | // gggg gggg | |
| 334 | 0xfb,0x20,0xf3,xxxx,xxxx,0x0f,xxxx,xxxx, xxxx,0x76,0xf7,0xbd,0x39,0x7e,0xbf,xxxx, /* f0 */ | |
| 335 | // pppp gggg gggg gggg | |
| 334 | 336 | }; |
| 335 | 337 | |
| 336 | 338 | |
| r1711 | r1712 | |
| 752 | 754 | xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx, xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx, /* E0 */ |
| 753 | 755 | xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx, xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx, /* F0 */ |
| 754 | 756 | }; |
| 755 | ||
| 756 | static const UINT8 byte_count_table[256] = { | |
| 757 | 2,2,2,2,2,3,1,1, 2,2,2,2,2,3,1,0, /* 00 */ | |
| 758 | 2,2,2,2,2,3,1,1, 2,2,2,2,2,3,1,1, /* 10 */ | |
| 759 | 2,2,2,2,2,3,1,1, 2,2,2,2,2,3,1,1, /* 20 */ | |
| 760 | 2,2,2,2,2,3,1,1, 2,2,2,2,2,3,1,1, /* 30 */ | |
| 761 | 1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1, /* 40 */ | |
| 762 | 1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1, /* 50 */ | |
| 763 | 1,1,0,0,0,0,0,0, 0,0,0,0,0,0,0,0, /* 60 */ | |
| 764 | 1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1, /* 70 */ | |
| 765 | 3,3,3,3,2,2,2,2, 2,2,2,2,0,0,0,0, /* 80 */ | |
| 766 | 1,1,1,1,1,1,1,1, 0,0,0,0,0,0,0,0, /* 90 */ | |
| 767 | 0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0, /* A0 */ | |
| 768 | 2,2,2,2,2,2,2,2, 3,3,3,3,3,3,3,3, /* B0 */ | |
| 769 | 0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0, /* C0 */ | |
| 770 | 0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0, /* D0 */ | |
| 771 | 0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0, /* E0 */ | |
| 772 | 0,0,0,0,0,0,0,0, 1,1,1,1,1,1,0,0, /* F0 */ | |
| 773 | }; | |
| 774 | ||
| 775 | UINT8 *irem_cpu_decrypted; | |
| 776 | ||
| 777 | void irem_cpu_decrypt(int cpu,const UINT8 *decryption_table) | |
| 778 | { | |
| 779 | int A,size; | |
| 780 | UINT8 *rom; | |
| 781 | // int t[256]; | |
| 782 | #ifdef MAME_DEBUG | |
| 783 | // extern char *opmap1[]; | |
| 784 | #endif | |
| 785 | ||
| 786 | rom = memory_region(cpu+REGION_CPU1); | |
| 787 | size = memory_region_length(cpu+REGION_CPU1); | |
| 788 | irem_cpu_decrypted = auto_malloc(size); | |
| 789 | ||
| 790 | memory_set_decrypted_region(cpu,0,size-1,irem_cpu_decrypted); | |
| 791 | for (A = 0;A < size; A++) | |
| 792 | irem_cpu_decrypted[A] = decryption_table[rom[A]]; | |
| 793 | ||
| 794 | // robiza note: | |
| 795 | // for "gussun" and "riskchal" is necessary an hack to not decrypt not encrypted routines | |
| 796 | // we need a real nec v25+/35+ core to support 0x63 (brkn for "break native") instruction | |
| 797 | // for now we use "cd" (int) instruction + hack | |
| 798 | ||
| 799 | if (m90_game_kludge==1) // for riskchal | |
| 800 | { | |
| 801 | for (A = 0xa8fd;A < 0xa90c; A++) | |
| 802 | irem_cpu_decrypted[A] = rom[A]; | |
| 803 | for (A = 0x12b3a;A < 0x12b4b; A++) | |
| 804 | irem_cpu_decrypted[A] = rom[A]; | |
| 805 | for (A = 0x13500;A < 0x13510; A++) | |
| 806 | irem_cpu_decrypted[A] = rom[A]; | |
| 807 | for (A = 0x14be5;A < 0x14bf5; A++) | |
| 808 | irem_cpu_decrypted[A] = rom[A]; | |
| 809 | for (A = 0x130de;A < 0x130eb; A++) | |
| 810 | irem_cpu_decrypted[A] = rom[A]; | |
| 811 | for (A = 0x147a4;A < 0x147bf; A++) | |
| 812 | irem_cpu_decrypted[A] = rom[A]; | |
| 813 | ||
| 814 | } | |
| 815 | if (m90_game_kludge==2) // for gussun | |
| 816 | { | |
| 817 | for (A = 0xa8fd;A < 0xa90c; A++) | |
| 818 | irem_cpu_decrypted[A] = rom[A]; | |
| 819 | for (A = 0x1369c;A < 0x136ac; A++) | |
| 820 | irem_cpu_decrypted[A] = rom[A]; | |
| 821 | for (A = 0x14ec8;A < 0x14ed8; A++) | |
| 822 | irem_cpu_decrypted[A] = rom[A]; | |
| 823 | for (A = 0x13246;A < 0x13253; A++) | |
| 824 | irem_cpu_decrypted[A] = rom[A]; | |
| 825 | for (A = 0x14a7d;A < 0x14a98; A++) | |
| 826 | irem_cpu_decrypted[A] = rom[A]; | |
| 827 | } | |
| 828 | ||
| 829 | /* | |
| 830 | for (A=0; A<256; A++) { | |
| 831 | t[A]=0; | |
| 832 | for (diff=0; diff<256; diff++) | |
| 833 | if (decryption_table[diff]==A) { | |
| 834 | t[A]++; | |
| 835 | } | |
| 836 | #ifdef MAME_DEBUG | |
| 837 | // if (t[A]==0) logerror("Unused: [%d] %02x\t%s\n",byte_count_table[A],A,opmap1[A]); | |
| 838 | // if (t[A]>1) logerror("DUPLICATE: %02x\t%s\n",A,opmap1[A]); | |
| 839 | #else | |
| 840 | if (t[A]==0) logerror("Unused: [%d] %02x\n",byte_count_table[A],A); | |
| 841 | if (t[A]>1) logerror("DUPLICATE: %02x\n",A); | |
| 842 | #endif | |
| 843 | } | |
| 844 | */ | |
| 845 | } |
| r1711 | r1712 | |
|---|---|---|
| 16 | 16 | |
| 17 | 17 | extern const UINT8 test_decryption_table[]; |
| 18 | 18 | |
| 19 | extern void irem_cpu_decrypt(int cpu,const UINT8 *decryption_table); |
| r1711 | r1712 | |
|---|---|---|
| 222 | 222 | int x = readinputport( 5 ); |
| 223 | 223 | int y = readinputport( 6 ); |
| 224 | 224 | UINT32 pix, color_base; |
| 225 | const pen_t *pens = Machine->pens; | |
| 226 | 225 | |
| 227 | 226 | /* no sprite hit (yet) */ |
| 228 | 227 | ret |= 0x08; |
| r1711 | r1712 | |
| 234 | 233 | color_base = ppu2c0x_get_colorbase( 0 ); |
| 235 | 234 | |
| 236 | 235 | /* look at the screen and see if the cursor is over a bright pixel */ |
| 237 | if ( ( pix == pens[color_base+0x20] ) || ( pix == pens[color_base+0x30] ) || | |
| 238 | ( pix == pens[color_base+0x33] ) || ( pix == pens[color_base+0x34] ) ) | |
| 236 | if ( ( pix == color_base+0x20 ) || ( pix == color_base+0x30 ) || | |
| 237 | ( pix == color_base+0x33 ) || ( pix == color_base+0x34 ) ) | |
| 239 | 238 | { |
| 240 | 239 | ret &= ~0x08; /* sprite hit */ |
| 241 | 240 | } |
| r1711 | r1712 | |
|---|---|---|
| 30 | 30 | cpunum_set_input_line(Machine, 1, INPUT_LINE_RESET, (data & 0x10) ? CLEAR_LINE : ASSERT_LINE); |
| 31 | 31 | |
| 32 | 32 | /* bit 5 resets mcu */ |
| 33 | if (Machine-> | |
| 33 | if (Machine->config->cpu[3].type != CPU_DUMMY) // only if we have a MCU | |
| 34 | 34 | cpunum_set_input_line(Machine, 3, INPUT_LINE_RESET, (data & 0x20) ? CLEAR_LINE : ASSERT_LINE); |
| 35 | 35 | |
| 36 | 36 | /* bit 6 enables display */ |
| r1711 | r1712 | |
|---|---|---|
| 743 | 743 | /* bit 2 resets the mcu */ |
| 744 | 744 | if (data & 0x04) |
| 745 | 745 | { |
| 746 | if (Machine-> | |
| 746 | if (Machine->config->cpu[2].type == CPU_I8X41) | |
| 747 | 747 | cpunum_set_input_line(Machine, 2, INPUT_LINE_RESET, PULSE_LINE); |
| 748 | 748 | } |
| 749 | 749 | /* Coin count and lockout is handled by the i8742 */ |
| r1711 | r1712 | |
|---|---|---|
| 403 | 403 | memory_set_bankptr(3, &slave_base[0x10000]); |
| 404 | 404 | |
| 405 | 405 | /* if we have an I80186 CPU, reset it */ |
| 406 | if (machine-> | |
| 406 | if (machine->config->cpu[2].type == CPU_I80186) | |
| 407 | 407 | leland_80186_sound_init(); |
| 408 | 408 | } |
| 409 | 409 |
| r1711 | r1712 | |
|---|---|---|
| 226 | 226 | if (ACCESSING_LSB && (data == 0)) |
| 227 | 227 | { |
| 228 | 228 | logerror("PC:%04x Resetting Sound CPU and Sound chip (%08x)\n",activecpu_get_previouspc(),data); |
| 229 | if (Machine-> | |
| 229 | if (Machine->config->sound[0].type == SOUND_YM3812) | |
| 230 | 230 | sndti_reset(SOUND_YM3812, 0); |
| 231 | if (Machine-> | |
| 231 | if (Machine->config->cpu[1].type == CPU_Z80) | |
| 232 | 232 | cpunum_set_input_line(Machine, 1, INPUT_LINE_RESET, PULSE_LINE); |
| 233 | 233 | } |
| 234 | 234 | } |
| r1711 | r1712 | |
|---|---|---|
| 9 | 9 | #include "debugger.h" |
| 10 | 10 | #include "dc.h" |
| 11 | 11 | #include "cpu/sh4/sh4.h" |
| 12 | #include "sound/aica.h" | |
| 12 | 13 | |
| 13 | 14 | #define DEBUG_REGISTERS (1) |
| 14 | 15 | |
| 15 | 16 | #if DEBUG_REGISTERS |
| 16 | 17 | |
| 17 | #define DEBUG_SYSCTRL ( | |
| 18 | #define DEBUG_SYSCTRL (0) | |
| 18 | 19 | #define DEBUG_MAPLE (0) |
| 19 | 20 | |
| 20 | 21 | #if DEBUG_SYSCTRL |
| 21 | static const char *sysctrl_names[] = | |
| 22 | static const char *const sysctrl_names[] = | |
| 22 | 23 | { |
| 23 | 24 | "CH2 DMA dest", |
| 24 | 25 | "CH2 DMA length", |
| r1711 | r1712 | |
| 72 | 73 | #endif |
| 73 | 74 | |
| 74 | 75 | #if DEBUG_MAPLE |
| 75 | static const char *maple_names[] = | |
| 76 | static const char *const maple_names[] = | |
| 76 | 77 | { |
| 77 | 78 | "5f6c00", |
| 78 | 79 | "DMA command table addr", |
| r1711 | r1712 | |
| 124 | 125 | extern UINT32 dma_offset; |
| 125 | 126 | static UINT8 maple0x86data1[0x80]; |
| 126 | 127 | static UINT8 maple0x86data2[0x400]; |
| 128 | static UINT32 coin_counts[8]; | |
| 127 | 129 | |
| 128 | static UINT32 maple0x82answer[]= | |
| 130 | static const UINT32 maple0x82answer[]= | |
| 129 | 131 | { |
| 130 | 132 | 0x07200083,0x2d353133,0x39343136,0x20202020,0x59504f43,0x48474952,0x45532054,0x45204147, |
| 131 | 133 | 0x05200083,0x5245544e,0x53495250,0x43205345,0x544c2c4f,0x20202e44,0x38393931,0x5c525043 |
| r1711 | r1712 | |
| 144 | 146 | { |
| 145 | 147 | mame_printf_verbose("Wrong mask! (PC=%x)\n", activecpu_get_pc()); |
| 146 | 148 | #ifdef ENABLE_DEBUGGER |
| 147 | ||
| 149 | // mame_debug_break(); | |
| 148 | 150 | #endif |
| 149 | 151 | } |
| 150 | 152 | |
| r1711 | r1712 | |
| 222 | 224 | reg = decode_reg_64(offset, mem_mask, &shift); |
| 223 | 225 | |
| 224 | 226 | #if DEBUG_SYSCTRL |
| 225 | if ((reg != 0x40) && (reg != 0x42) && (reg != 0x23) && (reg > 2)) // filter out IRQ status reads | |
| 227 | if ((reg != 0x40) && (reg != 0x41) && (reg != 0x42) && (reg != 0x23) && (reg > 2)) // filter out IRQ status reads | |
| 226 | 228 | { |
| 227 | 229 | mame_printf_verbose("SYSCTRL: [%08x] read %x @ %x (reg %x: %s), mask %llx (PC=%x)\n", 0x5f6800+reg*4, sysctrl_regs[reg], offset, reg, sysctrl_names[reg], mem_mask, activecpu_get_pc()); |
| 228 | 230 | } |
| r1711 | r1712 | |
| 251 | 253 | ddtdata.direction=0; |
| 252 | 254 | ddtdata.channel=2; |
| 253 | 255 | ddtdata.mode=25; //011001 |
| 254 | /*if (pp == 1) | |
| 255 | if (sysctrl_regs[SB_C2DLEN] == 0x240) | |
| 256 | pp=pp+1;*/ | |
| 257 | 256 | cpunum_set_info_ptr(0,CPUINFO_PTR_SH4_EXTERNAL_DDT_DMA,&ddtdata); |
| 258 | 257 | #if DEBUG_SYSCTRL |
| 259 | 258 | mame_printf_verbose("SYSCTRL: Ch2 dma %x from %08x to %08x (lmmode0=%d lmmode1=%d)\n", sysctrl_regs[SB_C2DLEN], ddtdata.source-ddtdata.length, sysctrl_regs[SB_C2DSTAT],sysctrl_regs[SB_LMMODE0],sysctrl_regs[SB_LMMODE1]); |
| r1711 | r1712 | |
| 307 | 306 | struct sh4_ddt_dma ddtdata; |
| 308 | 307 | UINT32 buff[512]; |
| 309 | 308 | UINT32 endflag,port,pattern,length,command,dap,sap,destination; |
| 309 | UINT32 subcommand; | |
| 310 | 310 | static int jvs_command = 0,jvs_address = 0; |
| 311 | 311 | int chk; |
| 312 | 312 | int a; |
| r1711 | r1712 | |
| 400 | 400 | ddtdata.mode=-1; |
| 401 | 401 | cpunum_set_info_ptr(0,CPUINFO_PTR_SH4_EXTERNAL_DDT_DMA,&ddtdata); |
| 402 | 402 | |
| 403 | if ((buff[0] & 0xff) == 3) // read data | |
| 403 | subcommand = buff[0] & 0xff; | |
| 404 | if (subcommand == 3) // read data | |
| 404 | 405 | { |
| 405 | 406 | for (a=0;a < 0x80;a+=4) |
| 406 | 407 | { |
| r1711 | r1712 | |
| 408 | 409 | } |
| 409 | 410 | ddtdata.length=0x84/4; |
| 410 | 411 | } |
| 411 | else if ( | |
| 412 | else if (s | |
| 412 | 413 | { |
| 413 | 414 | off=(buff[0] >> 8) & 0xff; |
| 414 | 415 | len=(buff[0] >> 16) & 0xff; |
| 415 | 416 | for (a=0;a < len;a++) |
| 416 | 417 | maple0x86data1[off+a]=(buff[1+a/4] >> (a & 3) * 8) & 255; |
| 417 | 418 | } |
| 418 | else if (( | |
| 419 | else if ((s | |
| 419 | 420 | { |
| 420 | 421 | ddtdata.length=1; |
| 421 | 422 | } |
| 422 | else if ( | |
| 423 | else if (s | |
| 423 | 424 | { |
| 424 | 425 | // Examples: |
| 425 | 426 | // 17,*c295407 (77),*c295404,*c295405,*c295406,0,ff,2,f0,d9, 0 // ff broadcast |
| r1711 | r1712 | |
| 435 | 436 | buff[1] = 0xe4e3e2e1; |
| 436 | 437 | ddtdata.length = 2; |
| 437 | 438 | } |
| 438 | else if ( | |
| 439 | else if (s | |
| 439 | 440 | { |
| 440 | int tocopy; | |
| 441 | int tocopy, pos; | |
| 441 | 442 | // 15,0,0,0 |
| 442 | maple0x86data | |
| 443 | maple0x86data2[0] = 0xa0; | |
| 443 | 444 | for (a=1;a < 32;a++) |
| 444 | 445 | maple0x86data2[a] = maple0x86data2[a-1] + 1; |
| 445 | buff[1] = 0xA3A2A1A0; | |
| 446 | for (a=0;a < 9;a++) | |
| 447 | { | |
| 448 | buff[2+a]=buff[1+a]+0x04040404; | |
| 449 | } | |
| 450 | buff[1] = buff[1] | 0x0c000000; | |
| 451 | 446 | maple0x86data2[3] = maple0x86data2[3] | 0x0c; |
| 452 | buff[2] = buff[2] & 0xFFCFFFFF; | |
| 453 | 447 | maple0x86data2[6] = maple0x86data2[6] & 0xcf; |
| 454 | 448 | |
| 455 | a = readinputport(0); // put keys here | |
| 456 | buff[2]= buff[2] | (a << 20); | |
| 449 | a = readinputportbytag("IN0"); // put keys here | |
| 457 | 450 | maple0x86data2[6] = maple0x86data2[6] | (a << 4); |
| 458 | if (jvs_command) | |
| 459 | *(((unsigned char *)buff)+0x15+2)=jvs_address; | |
| 460 | else | |
| 461 | *(((unsigned char *)buff)+0x15+2)=0; | |
| 462 | *(((unsigned char *)buff)+0x15+3)=0; | |
| 463 | *(((unsigned char *)buff)+0x15+8)=1; | |
| 464 | *(((unsigned char *)buff)+0x15+1)=0x8e; | |
| 465 | if (jvs_command) | |
| 466 | maple0x86data2[0x11+2] = jvs_address; | |
| 467 | else | |
| 468 | maple0x86data2[0x11+2] = 0; | |
| 469 | maple0x86data2[0x11+3] = 0; | |
| 470 | maple0x86data2[0x11+8] = 1; | |
| 471 | maple0x86data2[0x11+1] = 0x8e; | |
| 472 | maple0x86data2[0x11+9] = 1; | |
| 473 | // 4 + 1 + 0x10 + ?,8e,addr,0,?,?,addr?,len,status,report1,jvsbytes... | |
| 474 | ddtdata.length=11; | |
| 475 | tocopy=27; | |
| 476 | *(((unsigned char *)buff)+0x15+9)=1; | |
| 477 | switch (jvs_command) | |
| 451 | pos = 0x11; | |
| 452 | tocopy = 17; | |
| 453 | for (;;) | |
| 478 | 454 | { |
| 479 | case 0xf0: // reset | |
| 480 | case 0xf1: // set address | |
| 455 | if (jvs_command) | |
| 456 | maple0x86data2[pos+2] = jvs_address; | |
| 457 | else | |
| 458 | maple0x86data2[pos+2] = 0; | |
| 459 | maple0x86data2[pos+3] = 0; | |
| 460 | maple0x86data2[pos+8] = 1; | |
| 461 | maple0x86data2[pos+1] = 0x8e; | |
| 462 | maple0x86data2[pos+9] = 1; | |
| 463 | // 4 + 1 + 0x10 + ?,8e,addr,0,?,?,addr?,len,status,report1,jvsbytes... | |
| 464 | ddtdata.length=11; | |
| 465 | tocopy += 10; | |
| 466 | switch (jvs_command) | |
| 467 | { | |
| 468 | case 0xf0: // reset | |
| 469 | case 0xf1: // set address | |
| 470 | break; | |
| 471 | case 0x10: | |
| 472 | strcpy((char *)(maple0x86data2+0x11+10), "MAME test JVS I/O board"); // name | |
| 473 | maple0x86data2[pos+7]=24+2; | |
| 474 | tocopy += 24; | |
| 475 | break; | |
| 476 | case 0x11: | |
| 477 | maple0x86data2[pos+10]=0x13; // version bcd | |
| 478 | maple0x86data2[pos+7]=1+2; | |
| 479 | tocopy += 1; | |
| 480 | break; | |
| 481 | case 0x12: | |
| 482 | maple0x86data2[pos+10]=0x30; // version bcd | |
| 483 | maple0x86data2[pos+7]=1+2; | |
| 484 | tocopy += 1; | |
| 485 | break; | |
| 486 | case 0x13: | |
| 487 | maple0x86data2[pos+10]=0x10; // version bcd | |
| 488 | maple0x86data2[pos+7]=1+2; | |
| 489 | tocopy += 1; | |
| 490 | break; | |
| 491 | case 0x14: | |
| 492 | // four bytes for every available function | |
| 493 | // first function | |
| 494 | maple0x86data2[pos+10]=1; | |
| 495 | maple0x86data2[pos+11]=2; // number of players | |
| 496 | maple0x86data2[pos+12]=9; // switches per player (27 = mahjong) | |
| 497 | maple0x86data2[pos+13]=0; | |
| 498 | // second function | |
| 499 | maple0x86data2[pos+14]=2; | |
| 500 | maple0x86data2[pos+15]=2; // number of coin slots | |
| 501 | maple0x86data2[pos+16]=0; | |
| 502 | maple0x86data2[pos+17]=0; | |
| 503 | // third function | |
| 504 | maple0x86data2[pos+18]=3; | |
| 505 | maple0x86data2[pos+19]=2; // analog channels | |
| 506 | maple0x86data2[pos+20]=8; // bits per channel | |
| 507 | maple0x86data2[pos+21]=0; | |
| 508 | // no more functions | |
| 509 | maple0x86data2[pos+22]=0; | |
| 510 | maple0x86data2[pos+7]=13+2; | |
| 511 | tocopy += 13; | |
| 512 | break; | |
| 513 | case 0x21: | |
| 514 | maple0x86data2[pos+10]=0; // bits 7-6 status bits 5-0 higer bits of coin count | |
| 515 | maple0x86data2[pos+11]=0; // lower bits of coin count | |
| 516 | maple0x86data2[pos+12]=0; // like previuos two but for second coin slot | |
| 517 | maple0x86data2[pos+13]=0; | |
| 518 | maple0x86data2[pos+7]=4+2; | |
| 519 | tocopy += 4; | |
| 520 | break; | |
| 521 | case -1: // special case to read controls | |
| 522 | case -2: | |
| 523 | // report1,jvsbytes repeated for each function | |
| 524 | // first function | |
| 525 | maple0x86data2[pos+ 9]=1; // report | |
| 526 | maple0x86data2[pos+10]=0; // bits TEST TILT1 TILT2 TILT3 ? ? ? ? | |
| 527 | maple0x86data2[pos+11]=readinputportbytag("IN1"); // bits 1Pstart 1Pservice 1Pup 1Pdown 1Pleft 1Pright 1Ppush1 1Ppush2 | |
| 528 | maple0x86data2[pos+12]=readinputportbytag("IN2"); // bits 1Ppush3 1Ppush4 1Ppush5 1Ppush6 1Ppush7 1Ppush8 ... | |
| 529 | maple0x86data2[pos+13]=readinputportbytag("IN3"); // bits 2Pstart 2Pservice 2Pup 2Pdown 2Pleft 2Pright 2Ppush1 2Ppush2 | |
| 530 | maple0x86data2[pos+14]=readinputportbytag("IN4"); // bits 2Ppush3 2Ppush4 2Ppush5 2Ppush6 2Ppush7 2Ppush8 ... | |
| 531 | // second function | |
| 532 | maple0x86data2[pos+15]=1; // report | |
| 533 | maple0x86data2[pos+16]=(coin_counts[0] >> 8) & 0xff; // 1CONDITION, 1SLOT COIN(bit13-8) | |
| 534 | maple0x86data2[pos+17]=coin_counts[0] & 0xff; // 1SLOT COIN(bit7-0) | |
| 535 | maple0x86data2[pos+18]=(coin_counts[1] >> 8) & 0xff; // 2CONDITION, 2SLOT COIN(bit13-8) | |
| 536 | maple0x86data2[pos+19]=coin_counts[1] & 0xff; // 2SLOT COIN(bit7-0) | |
| 537 | // third function | |
| 538 | maple0x86data2[pos+20]=1; // report | |
| 539 | maple0x86data2[pos+21]=0xff; // channel 1 bits 7-0 | |
| 540 | maple0x86data2[pos+22]=0; // channel 1 | |
| 541 | maple0x86data2[pos+23]=0; // channel 2 bits 7-0 | |
| 542 | maple0x86data2[pos+24]=0xff; // channel 2 | |
| 543 | if (jvs_command == -1) | |
| 544 | { | |
| 545 | // ? | |
| 546 | maple0x86data2[pos+25]=0; | |
| 547 | maple0x86data2[pos+26]=0; | |
| 548 | maple0x86data2[pos+7]=17+2; | |
| 549 | tocopy += 17; | |
| 550 | } | |
| 551 | else | |
| 552 | { | |
| 553 | maple0x86data2[pos+7]=15+2; | |
| 554 | tocopy += 15; | |
| 555 | } | |
| 556 | break; | |
| 557 | } | |
| 558 | if (jvs_command == -1) | |
| 559 | { | |
| 560 | maple0x86data2[pos+4]=maple0x86data2[pos+7]+5; | |
| 561 | pos = pos+maple0x86data2[pos+4]+3; | |
| 562 | jvs_command = 0; | |
| 563 | continue; | |
| 564 | } | |
| 565 | else | |
| 566 | { | |
| 567 | maple0x86data2[pos+4]=maple0x86data2[pos+7]-1; | |
| 481 | 568 | break; |
| 482 | case 0x10: | |
| 483 | strcpy((char *)(maple0x86data2+0x11+10), "MAME test JVS I/O board"); // name | |
| 484 | maple0x86data2[0x11+7]=24+2; | |
| 485 | tocopy += 24; | |
| 486 | break; | |
| 487 | case 0x11: | |
| 488 | maple0x86data2[0x11+10]=0x13; // version bcd | |
| 489 | maple0x86data2[0x11+7]=1+2; | |
| 490 | tocopy += 1; | |
| 491 | break; | |
| 492 | case 0x12: | |
| 493 | maple0x86data2[0x11+10]=0x30; // version bcd | |
| 494 | maple0x86data2[0x11+7]=1+2; | |
| 495 | tocopy += 1; | |
| 496 | break; | |
| 497 | case 0x13: | |
| 498 | maple0x86data2[0x11+10]=0x10; // version bcd | |
| 499 | maple0x86data2[0x11+7]=1+2; | |
| 500 | tocopy += 1; | |
| 501 | break; | |
| 502 | case 0x14: | |
| 503 | // four bytes for every available function | |
| 504 | // first function | |
| 505 | maple0x86data2[0x11+10]=1; | |
| 506 | maple0x86data2[0x11+11]=2; // number of players | |
| 507 | maple0x86data2[0x11+12]=7; | |
| 508 | maple0x86data2[0x11+13]=0; | |
| 509 | // second function | |
| 510 | maple0x86data2[0x11+14]=2; | |
| 511 | maple0x86data2[0x11+15]=2; // number of coin slots | |
| 512 | maple0x86data2[0x11+16]=0; | |
| 513 | maple0x86data2[0x11+17]=0; | |
| 514 | // third function | |
| 515 | maple0x86data2[0x11+18]=3; | |
| 516 | maple0x86data2[0x11+19]=2; // channels | |
| 517 | maple0x86data2[0x11+20]=8; // bits | |
| 518 | maple0x86data2[0x11+21]=0; | |
| 519 | // no more functions | |
| 520 | maple0x86data2[0x11+22]=0; | |
| 521 | maple0x86data2[0x11+7]=13+2; | |
| 522 | tocopy += 13; | |
| 523 | break; | |
| 524 | case 0x21: | |
| 525 | maple0x86data2[0x11+10]=0; // bits 7-6 status bits 5-0 higer bits of coin count | |
| 526 | maple0x86data2[0x11+11]=0; // lower bits of coin count | |
| 527 | maple0x86data2[0x11+12]=0; // like previuos two but for second coin slot | |
| 528 | maple0x86data2[0x11+13]=0; | |
| 529 | maple0x86data2[0x11+7]=4+2; | |
| 530 | tocopy += 4; | |
| 531 | break; | |
| 569 | } | |
| 532 | 570 | } |
| 533 | 571 | for (a=0;a < tocopy;a=a+4) |
| 534 | 572 | buff[1+a/4] = maple0x86data2[a] | (maple0x86data2[a+1] << 8) | (maple0x86data2[a+2] << 16) | (maple0x86data2[a+3] << 24); |
| 535 | 573 | jvs_command=0; |
| 536 | 574 | ddtdata.length = (tocopy+7)/4; |
| 537 | 575 | } |
| 538 | else if ( | |
| 576 | else if (s | |
| 539 | 577 | { |
| 540 | 578 | // 21,*c295407 (77),*c295404,*c295405,*c295406,0,1,0 |
| 541 | ddtdata.length=1; | |
| 579 | jvs_address = (buff[1] >> 16) & 0xff; // slave address | |
| 580 | jvs_command = -2; | |
| 581 | ddtdata.length=2; | |
| 542 | 582 | } |
| 543 | else //0x27 | |
| 583 | else if (subcommand == 0x27) //0x27 | |
| 544 | 584 | { |
| 545 | ddtdata.length=1; | |
| 585 | // 27,*c295407 (77),*c295404,*c295405,*c295406,0,01,1,0,0,0 | |
| 586 | jvs_address = (buff[1] >> 16) & 0xff; // slave address | |
| 587 | jvs_command = -1; | |
| 588 | ddtdata.length=2; | |
| 546 | 589 | } |
| 590 | else // 0x13 | |
| 591 | { | |
| 592 | ddtdata.length=2; | |
| 593 | } | |
| 547 | 594 | break; |
| 548 | 595 | default: |
| 549 | 596 | #if DEBUG_MAPLE |
| r1711 | r1712 | |
| 573 | 620 | } |
| 574 | 621 | } |
| 575 | 622 | |
| 623 | static void coin_slots_callback(void *param, UINT32 oldval, UINT32 newval) | |
| 624 | { | |
| 625 | UINT32 a,b,c; | |
| 626 | ||
| 627 | c = (newval ^ oldval) & newval; | |
| 628 | b = 1; | |
| 629 | for (a=0;a < 2;a++) | |
| 630 | { | |
| 631 | if (c & b) | |
| 632 | coin_counts[a]++; | |
| 633 | b = b << 1; | |
| 634 | } | |
| 635 | } | |
| 636 | ||
| 576 | 637 | READ64_HANDLER( dc_gdrom_r ) |
| 577 | 638 | { |
| 578 | 639 | UINT32 off; |
| r1711 | r1712 | |
| 750 | 811 | dc_rtcregister[RTC1] = (dc_rtcregister[RTC1] + 1) & 0xFFFF; |
| 751 | 812 | }*/ |
| 752 | 813 | |
| 814 | MACHINE_START( dc ) | |
| 815 | { | |
| 816 | input_port_set_changed_callback(port_tag_to_index("COINS"), 0x03, coin_slots_callback, NULL); | |
| 817 | } | |
| 818 | ||
| 753 | 819 | MACHINE_RESET( dc ) |
| 754 | 820 | { |
| 755 | int a; | |
| 821 | int a; | |
| 756 | 822 | |
| 757 | 823 | /* halt the ARM7 */ |
| 758 | 824 | cpunum_set_input_line(machine, 1, INPUT_LINE_RESET, ASSERT_LINE); |
| r1711 | r1712 | |
| 760 | 826 | memset(sysctrl_regs, 0, sizeof(sysctrl_regs)); |
| 761 | 827 | memset(maple_regs, 0, sizeof(maple_regs)); |
| 762 | 828 | memset(dc_rtcregister, 0, sizeof(dc_rtcregister)); |
| 829 | memset(coin_counts, 0, sizeof(coin_counts)); | |
| 763 | 830 | |
| 764 | 831 | sysctrl_regs[SB_SBREV] = 0x0b; |
| 765 | 832 | for (a=0;a < 0x80;a++) |
| 766 | 833 | maple0x86data1[a]=0x11+a; |
| 834 | ||
| 767 | 835 | // checksums |
| 768 | maple0x86data1[0]=0xb9; | |
| 769 | maple0x86data1[1]=0xb1; | |
| 770 | maple0x86data1[18]=0xb8; | |
| 771 | maple0x86data1[19]=0x8a; | |
| 836 | maple0x86data1[0]=0xb9; | |
| 837 | maple0x86data1[1]=0xb1; | |
| 838 | maple0x86data1[18]=0xb8; | |
| 839 | maple0x86data1[19]=0x8a; | |
| 772 | 840 | } |
| 773 | 841 | |
| 774 | 842 | READ64_HANDLER( dc_aica_reg_r ) |
| r1711 | r1712 | |
| 778 | 846 | |
| 779 | 847 | reg = decode_reg_64(offset, mem_mask, &shift); |
| 780 | 848 | |
| 781 | mame_printf_verbose("AICA REG: [%08x] read %llx, mask %llx\n", 0x700000+reg*4, (UINT64)offset, mem_mask); | |
| 782 | return 0; | |
| 849 | // mame_printf_verbose("AICA REG: [%08x] read %llx, mask %llx\n", 0x700000+reg*4, (UINT64)offset, mem_mask); | |
| 850 | ||
| 851 | return (UINT64) AICA_0_r(offset*2, 0x0000)<<shift; | |
| 783 | 852 | } |
| 784 | 853 | |
| 785 | 854 | WRITE64_HANDLER( dc_aica_reg_w ) |
| r1711 | r1712 | |
| 804 | 873 | cpunum_set_input_line(Machine, 1, INPUT_LINE_RESET, CLEAR_LINE); |
| 805 | 874 | } |
| 806 | 875 | } |
| 807 | mame_printf_verbose("AICA REG: [%08x=%x] write %llx to %x, mask %llx\n", 0x700000+reg*4, dat, data, offset, mem_mask); | |
| 876 | ||
| 877 | AICA_0_w(offset*2, dat, shift ? ((mem_mask>>32)&0xffff) : (mem_mask & 0xffff)); | |
| 878 | ||
| 879 | // mame_printf_verbose("AICA REG: [%08x=%x] write %llx to %x, mask %llx\n", 0x700000+reg*4, dat, data, offset, mem_mask); | |
| 808 | 880 | } |
| 881 | ||
| 882 | READ32_HANDLER( dc_arm_aica_r ) | |
| 883 | { | |
| 884 | return AICA_0_r(offset*2, 0x0000); | |
| 885 | } | |
| 886 | ||
| 887 | WRITE32_HANDLER( dc_arm_aica_w ) | |
| 888 | { | |
| 889 | AICA_0_w(offset*2, data, mem_mask&0xffff); | |
| 890 | } | |
| 891 |
| r1711 | r1712 | |
|---|---|---|
| 566 | 566 | |
| 567 | 567 | |
| 568 | 568 | // Video Interface |
| 569 | UINT32 n64_vi_width; | |
| 569 | static UINT32 n64_vi_width; | |
| 570 | 570 | UINT32 n64_vi_origin; |
| 571 | 571 | UINT32 n64_vi_control; |
| 572 | 572 | static UINT32 n64_vi_burst, n64_vi_vsync, n64_vi_hsync, n64_vi_leap, n64_vi_hstart, n64_vi_vstart; |
| r1711 | r1712 | |
|---|---|---|
| 354 | 354 | int x = readinputport( 4 ); |
| 355 | 355 | int y = readinputport( 5 ); |
| 356 | 356 | UINT32 pix, color_base; |
| 357 | const pen_t *pens = Machine->pens; | |
| 358 | 357 | |
| 359 | 358 | /* get the pixel at the gun position */ |
| 360 | 359 | pix = ppu2c0x_get_pixel( 0, x, y ); |
| r1711 | r1712 | |
| 363 | 362 | color_base = ppu2c0x_get_colorbase( 0 ); |
| 364 | 363 | |
| 365 | 364 | /* look at the screen and see if the cursor is over a bright pixel */ |
| 366 | if ( ( pix == pens[color_base+0x20] ) || ( pix == pens[color_base+0x30] ) || | |
| 367 | ( pix == pens[color_base+0x33] ) || ( pix == pens[color_base+0x34] ) ) | |
| 365 | if ( ( pix == color_base+0x20 ) || ( pix == color_base+0x30 ) || | |
| 366 | ( pix == color_base+0x33 ) || ( pix == color_base+0x34 ) ) | |
| 368 | 367 | { |
| 369 | 368 | input_latch[0] |= 0x40; |
| 370 | 369 | } |
| r1711 | r1712 | |
|---|---|---|
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | 10 | #include "deprecat.h" |
| 11 | #include "qix.h" | |
| 12 | 11 | #include "machine/6821pia.h" |
| 13 | 12 | #include "cpu/m6800/m6800.h" |
| 14 | 13 | #include "cpu/m6805/m6805.h" |
| 15 | 14 | #include "cpu/m6809/m6809.h" |
| 16 | 15 | #include "sound/sn76496.h" |
| 16 | #include "qix.h" | |
| 17 | 17 | |
| 18 | 18 | |
| 19 | /* Globals */ | |
| 20 | UINT8 *qix_68705_port_out; | |
| 21 | UINT8 *qix_68705_ddr; | |
| 22 | 19 | |
| 20 | /************************************* | |
| 21 | * | |
| 22 | * Static function prototypes | |
| 23 | * | |
| 24 | *************************************/ | |
| 23 | 25 | |
| 24 | /* Local variables */ | |
| 25 | static UINT8 qix_68705_port_in[3]; | |
| 26 | static UINT8 qix_coinctrl; | |
| 27 | ||
| 28 | ||
| 29 | /* Prototypes */ | |
| 30 | 26 | static READ8_HANDLER( qixmcu_coin_r ); |
| 31 | 27 | static WRITE8_HANDLER( qixmcu_coinctrl_w ); |
| 32 | 28 | static WRITE8_HANDLER( qixmcu_coin_w ); |
| r1711 | r1712 | |
| 35 | 31 | |
| 36 | 32 | static WRITE8_HANDLER( pia_5_warning_w ); |
| 37 | 33 | |
| 38 | static WRITE8_HANDLER( qix_inv_flag_w ); | |
| 39 | ||
| 40 | 34 | static WRITE8_HANDLER( qix_coinctl_w ); |
| 41 | 35 | static WRITE8_HANDLER( slither_coinctl_w ); |
| 42 | 36 | |
| r1711 | r1712 | |
| 126 | 120 | static const pia6821_interface qix_pia_3_intf = |
| 127 | 121 | { |
| 128 | 122 | /*inputs : A/B,CA/B1,CA/B2 */ 0, 0, 0, 0, 0, 0, |
| 129 | /*outputs: A/B,CA/B2 */ sync_pia_4_porta_w, qix_vol_w, pia_4_ca1_w, qix_ | |
| 123 | /*outputs: A/B,CA/B2 */ sync_pia_4_porta_w, qix_vol_w, pia_4_ca1_w, qix_ | |
| 130 | 124 | /*irqs : A/B */ qix_pia_dint, qix_pia_dint |
| 131 | 125 | }; |
| 132 | 126 | |
| r1711 | r1712 | |
| 198 | 192 | static const pia6821_interface slither_pia_3_intf = |
| 199 | 193 | { |
| 200 | 194 | /*inputs : A/B,CA/B1,CA/B2 */ input_port_2_r, 0, 0, 0, 0, 0, |
| 201 | /*outputs: A/B,CA/B2 */ 0, slither_coinctl_w, 0, qix_ | |
| 195 | /*outputs: A/B,CA/B2 */ 0, slither_coinctl_w, 0, qix_ | |
| 202 | 196 | /*irqs : A/B */ qix_pia_dint, qix_pia_dint |
| 203 | 197 | }; |
| 204 | 198 | |
| r1711 | r1712 | |
| 223 | 217 | |
| 224 | 218 | MACHINE_RESET( qix ) |
| 225 | 219 | { |
| 220 | qix_state *state = machine->driver_data; | |
| 221 | ||
| 226 | 222 | /* reset the PIAs */ |
| 227 | 223 | pia_reset(); |
| 228 | 224 | |
| 229 | 225 | /* reset the coin counter register */ |
| 230 | | |
| 226 | state->coinctrl = 0x00; | |
| 231 | 227 | } |
| 232 | 228 | |
| 233 | 229 | |
| 234 | 230 | MACHINE_START( qixmcu ) |
| 235 | 231 | { |
| 232 | qix_state *state = machine->driver_data; | |
| 233 | ||
| 236 | 234 | /* configure the PIAs */ |
| 237 | 235 | pia_config(0, &qixmcu_pia_0_intf); |
| 238 | 236 | pia_config(1, &qix_pia_1_intf); |
| r1711 | r1712 | |
| 242 | 240 | pia_config(5, &qix_pia_5_intf); |
| 243 | 241 | |
| 244 | 242 | /* set up save states */ |
| 245 | state_save_register_global_array(qix_68705_port_in); | |
| 246 | state_save_register_global(qix_coinctrl); | |
| 243 | state_save_register_global_array(state->_68705_port_in); | |
| 244 | state_save_register_global(state->coinctrl); | |
| 247 | 245 | } |
| 248 | 246 | |
| 249 | 247 | MACHINE_START( slither ) |
| r1711 | r1712 | |
| 283 | 281 | * |
| 284 | 282 | *************************************/ |
| 285 | 283 | |
| 286 | WRITE8_HANDLER( zoo_bankswitch_w ) | |
| 284 | WRITE8_HANDLER( zookeep_bankswitch_w ) | |
| 287 | 285 | { |
| 288 | 286 | memory_set_bank(1, (data >> 2) & 1); |
| 289 | 287 | /* not necessary, but technically correct */ |
| 290 | qix_palettebank_w(offset,data); | |
| 288 | qix_palettebank_w(offset, data); | |
| 291 | 289 | } |
| 292 | 290 | |
| 293 | 291 | |
| r1711 | r1712 | |
| 411 | 409 | |
| 412 | 410 | READ8_HANDLER( qixmcu_coin_r ) |
| 413 | 411 | { |
| 414 | logerror("6809:qixmcu_coin_r = %02X\n", qix_68705_port_out[0]); | |
| 415 | return qix_68705_port_out[0]; | |
| 412 | qix_state *state = Machine->driver_data; | |
| 413 | ||
| 414 | logerror("6809:qixmcu_coin_r = %02X\n", state->_68705_port_out[0]); | |
| 415 | return state->_68705_port_out[0]; | |
| 416 | 416 | } |
| 417 | 417 | |
| 418 | 418 | |
| 419 | 419 | static WRITE8_HANDLER( qixmcu_coin_w ) |
| 420 | 420 | { |
| 421 | qix_state *state = Machine->driver_data; | |
| 422 | ||
| 421 | 423 | logerror("6809:qixmcu_coin_w = %02X\n", data); |
| 422 | 424 | /* this is a callback called by pia_0_w(), so I don't need to synchronize */ |
| 423 | 425 | /* the CPUs - they have already been synchronized by qix_pia_0_w() */ |
| 424 | | |
| 426 | state->_68705_port_in[0] = data; | |
| 425 | 427 | } |
| 426 | 428 | |
| 427 | 429 | |
| 428 | 430 | static WRITE8_HANDLER( qixmcu_coinctrl_w ) |
| 429 | 431 | { |
| 432 | qix_state *state = Machine->driver_data; | |
| 433 | ||
| 430 | 434 | if (!(data & 0x04)) |
| 431 | 435 | { |
| 432 | 436 | cpunum_set_input_line(Machine, 3, M68705_IRQ_LINE, ASSERT_LINE); |
| r1711 | r1712 | |
| 439 | 443 | |
| 440 | 444 | /* this is a callback called by pia_0_w(), so I don't need to synchronize */ |
| 441 | 445 | /* the CPUs - they have already been synchronized by qix_pia_0_w() */ |
| 442 | | |
| 446 | state->coinctrl = data; | |
| 443 | 447 | logerror("6809:qixmcu_coinctrl_w = %02X\n", data); |
| 444 | 448 | } |
| 445 | 449 | |
| r1711 | r1712 | |
| 453 | 457 | |
| 454 | 458 | READ8_HANDLER( qix_68705_portA_r ) |
| 455 | 459 | { |
| 456 | UINT8 ddr = qix_68705_ddr[0]; | |
| 457 | UINT8 out = qix_68705_port_out[0]; | |
| 458 | UINT8 in = qix_68705_port_in[0]; | |
| 460 | qix_state *state = Machine->driver_data; | |
| 461 | ||
| 462 | UINT8 ddr = state->_68705_ddr[0]; | |
| 463 | UINT8 out = state->_68705_port_out[0]; | |
| 464 | UINT8 in = state->_68705_port_in[0]; | |
| 459 | 465 | logerror("68705:portA_r = %02X (%02X)\n", (out & ddr) | (in & ~ddr), in); |
| 460 | 466 | return (out & ddr) | (in & ~ddr); |
| 461 | 467 | } |
| r1711 | r1712 | |
| 463 | 469 | |
| 464 | 470 | READ8_HANDLER( qix_68705_portB_r ) |
| 465 | 471 | { |
| 466 | UINT8 ddr = qix_68705_ddr[1]; | |
| 467 | UINT8 out = qix_68705_port_out[1]; | |
| 472 | qix_state *state = Machine->driver_data; | |
| 473 | ||
| 474 | UINT8 ddr = state->_68705_ddr[1]; | |
| 475 | UINT8 out = state->_68705_port_out[1]; | |
| 468 | 476 | UINT8 in = (readinputport(1) & 0x0f) | ((readinputport(1) & 0x80) >> 3); |
| 469 | 477 | return (out & ddr) | (in & ~ddr); |
| 470 | 478 | } |
| r1711 | r1712 | |
| 472 | 480 | |
| 473 | 481 | READ8_HANDLER( qix_68705_portC_r ) |
| 474 | 482 | { |
| 475 | UINT8 ddr = qix_68705_ddr[2]; | |
| 476 | UINT8 out = qix_68705_port_out[2]; | |
| 477 | UINT8 in = (qix_coinctrl & 0x08) | ((readinputport(1) & 0x70) >> 4); | |
| 483 | qix_state *state = Machine->driver_data; | |
| 484 | ||
| 485 | UINT8 ddr = state->_68705_ddr[2]; | |
| 486 | UINT8 out = state->_68705_port_out[2]; | |
| 487 | UINT8 in = (state->coinctrl & 0x08) | ((readinputport(1) & 0x70) >> 4); | |
| 478 | 488 | return (out & ddr) | (in & ~ddr); |
| 479 | 489 | } |
| 480 | 490 | |
| r1711 | r1712 | |
| 488 | 498 | |
| 489 | 499 | WRITE8_HANDLER( qix_68705_portA_w ) |
| 490 | 500 | { |
| 501 | qix_state *state = Machine->driver_data; | |
| 502 | ||
| 491 | 503 | logerror("68705:portA_w = %02X\n", data); |
| 492 | | |
| 504 | state->_68705_port_out[0] = data; | |
| 493 | 505 | } |
| 494 | 506 | |
| 495 | 507 | |
| 496 | 508 | WRITE8_HANDLER( qix_68705_portB_w ) |
| 497 | 509 | { |
| 498 | qix_68705_port_out[1] = data; | |
| 510 | qix_state *state = Machine->driver_data; | |
| 511 | ||
| 512 | state->_68705_port_out[1] = data; | |
| 499 | 513 | coin_lockout_w(0, (~data >> 6) & 1); |
| 500 | 514 | coin_counter_w(0, (data >> 7) & 1); |
| 501 | 515 | } |
| r1711 | r1712 | |
| 503 | 517 | |
| 504 | 518 | WRITE8_HANDLER( qix_68705_portC_w ) |
| 505 | 519 | { |
| 506 | qix_68705_port_out[2] = data; | |
| 520 | qix_state *state = Machine->driver_data; | |
| 521 | ||
| 522 | state->_68705_port_out[2] = data; | |
| 507 | 523 | } |
| 508 | 524 | |
| 509 | 525 | |
| r1711 | r1712 | |
| 531 | 547 | |
| 532 | 548 | /************************************* |
| 533 | 549 | * |
| 534 | * Cocktail flip | |
| 535 | * | |
| 536 | *************************************/ | |
| 537 | ||
| 538 | static WRITE8_HANDLER( qix_inv_flag_w ) | |
| 539 | { | |
| 540 | qix_cocktail_flip = data; | |
| 541 | } | |
| 542 | ||
| 543 | ||
| 544 | ||
| 545 | /************************************* | |
| 546 | * | |
| 547 | 550 | * Coin I/O for games without coin CPU |
| 548 | 551 | * |
| 549 | 552 | *************************************/ |
| r1711 | r1712 | |
| 600 | 603 | |
| 601 | 604 | static READ8_HANDLER( slither_trak_lr_r ) |
| 602 | 605 | { |
| 603 | return readinputport(qix_cocktail_flip ? 6 : 4); | |
| 606 | qix_state *state = Machine->driver_data; | |
| 607 | ||
| 608 | return readinputport(state->flip_screen ? 6 : 4); | |
| 604 | 609 | } |
| 605 | 610 | |
| 606 | 611 | |
| 607 | 612 | static READ8_HANDLER( slither_trak_ud_r ) |
| 608 | 613 | { |
| 609 | return readinputport(qix_cocktail_flip ? 5 : 3); | |
| 614 | qix_state *state = Machine->driver_data; | |
| 615 | ||
| 616 | return readinputport(state->flip_screen ? 5 : 3); | |
| 610 | 617 | } |
| r1711 | r1712 | |
|---|---|---|
| 22 | 22 | WRITE8_HANDLER( mexico86_f008_w ) |
| 23 | 23 | { |
| 24 | 24 | cpunum_set_input_line(Machine, 1, INPUT_LINE_RESET, (data & 4) ? CLEAR_LINE : ASSERT_LINE); |
| 25 | if (Machine-> | |
| 25 | if (Machine->config->cpu[2].type != CPU_DUMMY) | |
| 26 | 26 | { |
| 27 | 27 | // mexico 86, knight boy |
| 28 | 28 | cpunum_set_input_line(Machine, 2, INPUT_LINE_RESET, (data & 2) ? CLEAR_LINE : ASSERT_LINE); |
| r1711 | r1712 | |
|---|---|---|
| 287 | 287 | memset( snes_vram, 0, SNES_VRAM_SIZE ); |
| 288 | 288 | |
| 289 | 289 | /* Init Colour RAM */ |
| 290 | memset( (UINT8 *)snes_cgram, 0, SNES_CGRAM_SIZE | |
| 290 | memset( (UINT8 *)snes_cgram, 0, SNES_CGRAM_SIZE | |
| 291 | 291 | |
| 292 | 292 | /* Init oam RAM */ |
| 293 | 293 | memset( snes_oam, 0xff, SNES_OAM_SIZE ); |
| r1711 | r1712 | |
| 303 | 303 | |
| 304 | 304 | /* Inititialize registers/variables */ |
| 305 | 305 | snes_ppu.update_windows = 1; |
| 306 | snes_ppu.update_palette = 1; | |
| 307 | 306 | snes_ppu.beam.latch_vert = 0; |
| 308 | 307 | snes_ppu.beam.latch_horz = 0; |
| 309 | 308 | snes_ppu.beam.current_vert = 0; |
| r1711 | r1712 | |
| 997 | 996 | switch( offset ) |
| 998 | 997 | { |
| 999 | 998 | case INIDISP: /* Initial settings for screen */ |
| 1000 | snes_ppu.update_palette = 1; | |
| 1001 | 999 | break; |
| 1002 | 1000 | case OBSEL: /* Object size and data area designation */ |
| 1003 | 1001 | snes_ppu.layer[4].data = ((data & 0x3) * 0x2000) << 1; |
| r1711 | r1712 | |
| 1305 | 1303 | case CGDATA: /* Data for colour RAM */ |
| 1306 | 1304 | ((UINT8 *)snes_cgram)[cgram_address] = data; |
| 1307 | 1305 | cgram_address = (cgram_address + 1) % (SNES_CGRAM_SIZE - 2); |
| 1308 | snes_ppu.update_palette = 1; | |
| 1309 | 1306 | break; |
| 1310 | 1307 | case W12SEL: /* Window mask settings for BG1-2 */ |
| 1311 | 1308 | case W34SEL: /* Window mask settings for BG3-4 */ |
| r1711 | r1712 | |
| 1344 | 1341 | { |
| 1345 | 1342 | /* Store it in the extra space we made in the CGRAM |
| 1346 | 1343 | * It doesn't really go there, but it's as good a place as any. */ |
| 1347 | UINT8 r,g,b | |
| 1344 | UINT8 r,g,b | |
| 1348 | 1345 | |
| 1349 | 1346 | /* Get existing value. */ |
| 1350 | 1347 | r = snes_cgram[FIXED_COLOUR] & 0x1f; |
| r1711 | r1712 | |
| 1358 | 1355 | if( data & 0x80 ) |
| 1359 | 1356 | b = data & 0x1f; |
| 1360 | 1357 | snes_cgram[FIXED_COLOUR] = (r | (g << 5) | (b << 10)); |
| 1361 | ||
| 1362 | /* set the palette entry, adjusting to the fade setting */ | |
| 1363 | fade = (snes_ram[INIDISP] & 0xf) + 1; | |
| 1364 | r = (r * fade) >> 4; | |
| 1365 | g = (g * fade) >> 4; | |
| 1366 | b = (b * fade) >> 4; | |
| 1367 | /* palette hacks! */ | |
| 1368 | ((pen_t *)Machine->remapped_colortable)[FIXED_COLOUR] = ((r & 0x1f) | ((g & 0x1f) << 5) | ((b & 0x1f) << 10)); | |
| 1369 | 1358 | } break; |
| 1370 | 1359 | case SETINI: /* Screen mode/video select */ |
| 1371 | 1360 | /* FIXME: We only support line count here */ |
| r1711 | r1712 | |
|---|---|---|
| 57 | 57 | zaccept = 1; |
| 58 | 58 | zready = 0; |
| 59 | 59 | busreq = 0; |
| 60 | if (machine-> | |
| 60 | if (machine->config->cpu[2].type != CPU_DUMMY) | |
| 61 | 61 | cpunum_set_input_line(machine, 2,0,CLEAR_LINE); |
| 62 | 62 | |
| 63 | 63 | spacecr_prot_value = 0; |
| r1711 | r1712 | |
|---|---|---|
| 795 | 795 | int ch; |
| 796 | 796 | |
| 797 | 797 | for (ch = 0; ch < MAX_SOUND; ch++) |
| 798 | if (machine-> | |
| 798 | if (machine->config->sound[ch].type == type) | |
| 799 | 799 | { |
| 800 | 800 | int output; |
| 801 | 801 | for (output = 0; output < 2; output++) |
| r1711 | r1712 | |
|---|---|---|
| 94 | 94 | } |
| 95 | 95 | } |
| 96 | 96 | |
| 97 | MACHINE_RESET( namcos2 ){ | |
| 97 | MACHINE_RESET( namcos2 ) | |
| 98 | { | |
| 98 | 99 | int loop; |
| 99 | 100 | mFinalLapProtCount = 0; |
| 100 | 101 | |
| 102 | namcos2_eeprom = auto_malloc(namcos2_eeprom_size); | |
| 103 | ||
| 101 | 104 | /* Initialise the bank select in the sound CPU */ |
| 102 | 105 | namcos2_sound_bankselect_w(0,0); /* Page in bank 0 */ |
| 103 | 106 | |
| r1711 | r1712 | |
| 121 | 124 | |
| 122 | 125 | NVRAM_HANDLER( namcos2 ) |
| 123 | 126 | { |
| 124 | if( !namcos2_eeprom ) | |
| 125 | { | |
| 126 | namcos2_eeprom = auto_malloc(namcos2_eeprom_size); | |
| 127 | } | |
| 128 | 127 | if( read_or_write ) |
| 129 | 128 | { |
| 130 | 129 | mame_fwrite( file, namcos2_eeprom, namcos2_eeprom_size ); |
| r1711 | r1712 | |
|---|---|---|
| 816 | 816 | slapstic_reset(); |
| 817 | 817 | |
| 818 | 818 | /* see if we're 68k or 6502/6809 based */ |
| 819 | access_68k = (Machine->drv->cpu[0].type != CPU_M6809 && | |
| 820 | Machine->drv->cpu[0].type != CPU_M6502); | |
| 819 | access_68k = (Machine->config->cpu[0].type != CPU_M6809 && | |
| 820 | Machine->config->cpu[0].type != CPU_M6502); | |
| 821 | 821 | |
| 822 | 822 | /* save state */ |
| 823 | 823 | state_save_register_item("slapstic", 0, state); |
| r1711 | r1712 | |
|---|---|---|
| 3992 | 3992 | DRIVER( hmgeo ) |
| 3993 | 3993 | DRIVER( gwing2 ) |
| 3994 | 3994 | DRIVER( suchie3 ) |
| 3995 | DRIVER( toyfight ) | |
| 3995 | 3996 | DRIVER( pjustic ) |
| 3996 | 3997 | DRIVER( pstone ) |
| 3997 | 3998 | DRIVER( pstone2 ) |
| r1711 | r1712 | |
| 5406 | 5407 | DRIVER( chopperb ) /* A7003 'KK' (c) 1988 */ |
| 5407 | 5408 | DRIVER( legofair ) /* A7003 'KK' (c) 1988 */ |
| 5408 | 5409 | DRIVER( fsoccer ) /* A6006 'FS' (c) 1988 */ |
| 5410 | DRIVER( fsoccerj ) /* A6006 'FS' (c) 1988 */ | |
| 5411 | ||
| 5409 | 5412 | DRIVER( fsoccerb ) /* (c) 1988 */ |
| 5410 | 5413 | DRIVER( tdfever ) /* A6006 'TD' (c) 1987 */ |
| 5411 | 5414 | DRIVER( tdfeverj ) /* A6006 'TD' (c) 1987 */ |
| r1711 | r1712 | |
| 7022 | 7025 | DRIVER( silkroad ) /* (c) 1999 */ |
| 7023 | 7026 | |
| 7024 | 7027 | /* Afega games */ |
| 7025 | DRIVER( twinactn ) /* (c) 1996 - bootleg of | |
| 7028 | DRIVER( twinactn ) /* (c) 1996 - bootleg of US AFF Mustang | |
| 7026 | 7029 | DRIVER( stagger1 ) /* (c) 1998 */ |
| 7027 | 7030 | DRIVER( redhawk ) /* (c) 1997 */ |
| 7031 | DRIVER( redhawke ) /* (c) 1997 Excellent Co., Ltd license */ | |
| 7028 | 7032 | DRIVER( redhawkb ) /* (c) 1997 */ |
| 7029 | 7033 | DRIVER( grdnstrm ) /* (c) 1998 */ |
| 7030 | 7034 | DRIVER( bubl2000 ) /* (c) 1998 Tuning */ |
| r1711 | r1712 | |
| 7150 | 7154 | DRIVER( goldstar ) /* (c) 198? IGS */ |
| 7151 | 7155 | DRIVER( goldstbl ) /* (c) 198? IGS */ |
| 7152 | 7156 | DRIVER( moonlght ) /* bootleg */ |
| 7157 | DRIVER( cpoker ) /* (c) 198? IGS */ | |
| 7153 | 7158 | DRIVER( csk227it ) /* (c) 198? IGS */ |
| 7154 | 7159 | DRIVER( csk234it ) /* (c) 198? IGS */ |
| 7155 | 7160 | DRIVER( stellecu ) /* (c) 1998 */ |
| r1711 | r1712 | |
|---|---|---|
| 1 | /*----------- defined in video/ninjakd2.c -----------*/ | |
| 2 | ||
| 1 | 3 | extern WRITE8_HANDLER( ninjakd2_bgvideoram_w ); |
| 2 | 4 | extern WRITE8_HANDLER( ninjakd2_fgvideoram_w ); |
| 3 | 5 | extern WRITE8_HANDLER( ninjakd2_bg_ctrl_w ); |
| r1711 | r1712 | |
|---|---|---|
| 14 | 14 | WRITE8_HANDLER( m52_bg2ypos_w ); |
| 15 | 15 | WRITE8_HANDLER( m52_bgcontrol_w ); |
| 16 | 16 | WRITE8_HANDLER( m52_flipscreen_w ); |
| 17 | WRITE8_HANDLER( alpha1v_flipscreen_w ); | |
| 17 | 18 | WRITE8_HANDLER( m52_videoram_w ); |
| 18 | 19 | WRITE8_HANDLER( m52_colorram_w ); |
| 19 | 20 |
| r1711 | r1712 | |
|---|---|---|
| 16 | 16 | VIDEO_START( navarone ); |
| 17 | 17 | VIDEO_START( warpwarp ); |
| 18 | 18 | VIDEO_UPDATE( geebee ); |
| 19 | VIDEO_UPDATE( navarone ); | |
| 19 | 20 | VIDEO_UPDATE( warpwarp ); |
| 20 | 21 | WRITE8_HANDLER( warpwarp_videoram_w ); |
| 21 | 22 | WRITE8_HANDLER( geebee_videoram_w ); |
| r1711 | r1712 | |
|---|---|---|
| 1 | /*----------- defined in video/nova2001.c -----------*/ | |
| 2 | ||
| 1 | 3 | extern UINT8 *nova2001_fg_videoram, *nova2001_bg_videoram; |
| 2 | 4 | |
| 3 | 5 | extern WRITE8_HANDLER( nova2001_fg_videoram_w ); |
| r1711 | r1712 | |
|---|---|---|
| 9 | 9 | #define CVS_S2636_X_OFFSET (-26) |
| 10 | 10 | |
| 11 | 11 | |
| 12 | /*----------- defined in driver/cvs.c -----------*/ | |
| 12 | /*----------- defined in drivers/cvs.c -----------*/ | |
| 13 | 13 | |
| 14 | 14 | extern UINT8 *cvs_color_ram; |
| 15 | 15 | extern UINT8 *cvs_video_ram; |
| r1711 | r1712 | |
|---|---|---|
| 11 | 11 | extern UINT16 *seta_vram_0, *seta_vctrl_0; |
| 12 | 12 | extern UINT16 *seta_vram_2, *seta_vctrl_2; |
| 13 | 13 | extern UINT16 *seta_vregs; |
| 14 | extern size_t seta_paletteram_size; | |
| 14 | 15 | |
| 15 | 16 | extern UINT16 *seta_workram; // Needed for zombraid Crosshair hack |
| 16 | 17 | |
| r1711 | r1712 | |
| 39 | 40 | |
| 40 | 41 | VIDEO_UPDATE( seta ); |
| 41 | 42 | VIDEO_UPDATE( seta_no_layers ); |
| 43 | VIDEO_UPDATE( usclssic ); | |
| 44 | VIDEO_UPDATE( inttoote ); | |
| 42 | 45 | |
| 43 | 46 | |
| 44 | 47 | /*----------- defined in video/seta2.c -----------*/ |
| r1711 | r1712 | |
|---|---|---|
| 125 | 125 | /*----------- defined in video/leland.c -----------*/ |
| 126 | 126 | |
| 127 | 127 | extern UINT8 *ataxx_qram; |
| 128 | extern UINT8 leland_last_scanline_int; | |
| 129 | 128 | |
| 130 | 129 | WRITE8_HANDLER( leland_scroll_w ); |
| 131 | 130 | WRITE8_HANDLER( leland_gfx_port_w ); |
| r1711 | r1712 | |
|---|---|---|
| 30 | 30 | |
| 31 | 31 | /*----------- defined in video/sprint2.c -----------*/ |
| 32 | 32 | |
| 33 | extern READ8_HANDLER( sprint2_collision1_r ); | |
| 34 | extern READ8_HANDLER( sprint2_collision2_r ); | |
| 33 | READ8_HANDLER( sprint2_collision1_r ); | |
| 34 | READ8_HANDLER( sprint2_collision2_r ); | |
| 35 | 35 | |
| 36 | extern WRITE8_HANDLER( sprint2_collision_reset1_w ); | |
| 37 | extern WRITE8_HANDLER( sprint2_collision_reset2_w ); | |
| 38 | extern WRITE8_HANDLER( sprint2_video_ram_w ); | |
| 36 | WRITE8_HANDLER( sprint2_collision_reset1_w ); | |
| 37 | WRITE8_HANDLER( sprint2_collision_reset2_w ); | |
| 38 | WRITE8_HANDLER( sprint2_video_ram_w ); | |
| 39 | 39 | |
| 40 | extern VIDEO_UPDATE( sprint2 ); | |
| 41 | extern VIDEO_START( sprint2 ); | |
| 42 | extern VIDEO_EOF( sprint2 ); | |
| 40 | PALETTE_INIT( sprint2 ); | |
| 41 | VIDEO_UPDATE( sprint2 ); | |
| 42 | VIDEO_START( sprint2 ); | |
| 43 | VIDEO_EOF( sprint2 ); | |
| 43 | 44 | |
| 44 | 45 | extern UINT8* sprint2_video_ram; |
| r1711 | r1712 | |
|---|---|---|
| 42 | 42 | |
| 43 | 43 | /*----------- defined in drivers/neogeo.c -----------*/ |
| 44 | 44 | |
| 45 | void neogeo_set_display_position_interrupt_control(UINT16 data); | |
| 45 | 46 | void neogeo_set_display_counter_msb(UINT16 data); |
| 46 | 47 | void neogeo_set_display_counter_lsb(UINT16 data); |
| 47 | 48 | void neogeo_acknowledge_interrupt(UINT16 data); |
| r1711 | r1712 | |
| 140 | 141 | READ16_HANDLER( neogeo_video_register_r ); |
| 141 | 142 | WRITE16_HANDLER( neogeo_video_register_w ); |
| 142 | 143 | |
| 143 | void neogeo_set_display_position_interrupt_control(UINT16 data); | |
| 144 | ||
| 145 | 144 | void neogeo_set_palette_bank(UINT8 data); |
| 146 | 145 | void neogeo_set_screen_dark(UINT8 data); |
| 147 | 146 | READ16_HANDLER( neogeo_paletteram_r ); |
| r1711 | r1712 | |
|---|---|---|
| 26 | 26 | READ64_HANDLER( dc_aica_reg_r ); |
| 27 | 27 | WRITE64_HANDLER( dc_aica_reg_w ); |
| 28 | 28 | |
| 29 | READ32_HANDLER( dc_arm_aica_r ); | |
| 30 | WRITE32_HANDLER( dc_arm_aica_w ); | |
| 31 | ||
| 32 | MACHINE_START( dc ); | |
| 29 | 33 | MACHINE_RESET( dc ); |
| 30 | 34 | |
| 31 | void dc_vblank( void ); | |
| 32 | ||
| 33 | 35 | int compute_interrupt_level(void); |
| 34 | 36 | void update_interrupt_status(void); |
| 35 | 37 | |
| r1711 | r1712 | |
| 91 | 93 | |
| 92 | 94 | /*----------- defined in video/dc.c -----------*/ |
| 93 | 95 | |
| 96 | void dc_vblank( void ); | |
| 97 | ||
| 94 | 98 | READ64_HANDLER( pvr_ctrl_r ); |
| 95 | 99 | WRITE64_HANDLER( pvr_ctrl_w ); |
| 96 | 100 | READ64_HANDLER( pvr_ta_r ); |
| r1711 | r1712 | |
|---|---|---|
| 4 | 4 | |
| 5 | 5 | *************************************************************************/ |
| 6 | 6 | |
| 7 | /*----------- defined in video/ | |
| 7 | /*----------- defined in video/m62 | |
| 8 | 8 | |
| 9 | 9 | PALETTE_INIT( m62 ); |
| 10 | 10 | PALETTE_INIT( lotlot ); |
| r1711 | r1712 | |
|---|---|---|
| 55 | 55 | extern int starshp1_collision_latch; |
| 56 | 56 | extern int starshp1_starfield_kill; |
| 57 | 57 | extern int starshp1_mux; |
| 58 | extern int starshp1_inverse; | |
| 58 | 59 | |
| 59 | 60 | READ8_HANDLER( starshp1_rng_r ); |
| 60 | 61 | |
| r1711 | r1712 | |
| 62 | 63 | WRITE8_HANDLER( starshp1_ssadd_w ); |
| 63 | 64 | WRITE8_HANDLER( starshp1_playfield_w ); |
| 64 | 65 | |
| 66 | PALETTE_INIT( starshp1 ); | |
| 65 | 67 | VIDEO_UPDATE( starshp1 ); |
| 66 | 68 | VIDEO_EOF( starshp1 ); |
| 67 | 69 | VIDEO_START( starshp1 ); |
| r0 | r1712 | |
|---|---|---|
| 1 | /******************************************************************************* | |
| 2 | ||
| 3 | Input port macros used by many games in mutiple IREM drivers | |
| 4 | ||
| 5 | *******************************************************************************/ | |
| 6 | ||
| 7 | ||
| 8 | /**************************** Coinage Dip Swicthes ****************************/ | |
| 9 | ||
| 10 | /* with location */ | |
| 11 | #define IREM_Z80_COINAGE_TYPE_1_LOC(DIPBANK) \ | |
| 12 | /* Coin Mode 1 */ \ | |
| 13 | PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coinage ) ) PORT_CONDITION("DSW2", 0x04, PORTCOND_NOTEQUALS, 0x00) PORT_DIPLOCATION(#DIPBANK":5,6,7,8") \ | |
| 14 | /* PORT_DIPSETTING( 0x80, DEF_STR( 1C_1C ) ) */ \ | |
| 15 | PORT_DIPSETTING( 0x90, DEF_STR( 7C_1C ) ) \ | |
| 16 | PORT_DIPSETTING( 0xa0, DEF_STR( 6C_1C ) ) \ | |
| 17 | PORT_DIPSETTING( 0xb0, DEF_STR( 5C_1C ) ) \ | |
| 18 | PORT_DIPSETTING( 0xc0, DEF_STR( 4C_1C ) ) \ | |
| 19 | PORT_DIPSETTING( 0xd0, DEF_STR( 3C_1C ) ) \ | |
| 20 | PORT_DIPSETTING( 0xe0, DEF_STR( 2C_1C ) ) \ | |
| 21 | PORT_DIPSETTING( 0xf0, DEF_STR( 1C_1C ) ) \ | |
| 22 | PORT_DIPSETTING( 0x70, DEF_STR( 1C_2C ) ) \ | |
| 23 | PORT_DIPSETTING( 0x60, DEF_STR( 1C_3C ) ) \ | |
| 24 | PORT_DIPSETTING( 0x50, DEF_STR( 1C_4C ) ) \ | |
| 25 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_5C ) ) \ | |
| 26 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_6C ) ) \ | |
| 27 | PORT_DIPSETTING( 0x20, DEF_STR( 1C_7C ) ) \ | |
| 28 | PORT_DIPSETTING( 0x10, DEF_STR( 1C_8C ) ) \ | |
| 29 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) \ | |
| 30 | /* Coin Mode 2 */ \ | |
| 31 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) PORT_CONDITION("DSW2", 0x04, PORTCOND_EQUALS, 0x00) PORT_DIPLOCATION(#DIPBANK":5,6") \ | |
| 32 | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) \ | |
| 33 | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) \ | |
| 34 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) \ | |
| 35 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) \ | |
| 36 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Coin_B ) ) PORT_CONDITION("DSW2", 0x04, PORTCOND_EQUALS, 0x00) PORT_DIPLOCATION(#DIPBANK":7,8") \ | |
| 37 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_2C ) ) \ | |
| 38 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_3C ) ) \ | |
| 39 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_5C ) ) \ | |
| 40 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_6C ) ) | |
| 41 | ||
| 42 | #define IREM_Z80_COINAGE_TYPE_2_LOC(DIPBANK) \ | |
| 43 | /* Coin Mode 1 */ \ | |
| 44 | PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coinage ) ) PORT_CONDITION("DSW2", 0x04, PORTCOND_NOTEQUALS, 0x00) PORT_DIPLOCATION(#DIPBANK":5,6,7,8") \ | |
| 45 | /* PORT_DIPSETTING( 0x80, DEF_STR( Free_Play ) ) */ \ | |
| 46 | /* PORT_DIPSETTING( 0x90, DEF_STR( Free_Play ) ) */ \ | |
| 47 | PORT_DIPSETTING( 0xa0, DEF_STR( 6C_1C ) ) \ | |
| 48 | PORT_DIPSETTING( 0xb0, DEF_STR( 5C_1C ) ) \ | |
| 49 | PORT_DIPSETTING( 0xc0, DEF_STR( 4C_1C ) ) \ | |
| 50 | PORT_DIPSETTING( 0xd0, DEF_STR( 3C_1C ) ) \ | |
| 51 | PORT_DIPSETTING( 0xe0, DEF_STR( 2C_1C ) ) \ | |
| 52 | PORT_DIPSETTING( 0xf0, DEF_STR( 1C_1C ) ) \ | |
| 53 | PORT_DIPSETTING( 0x70, DEF_STR( 1C_2C ) ) \ | |
| 54 | PORT_DIPSETTING( 0x60, DEF_STR( 1C_3C ) ) \ | |
| 55 | PORT_DIPSETTING( 0x50, DEF_STR( 1C_4C ) ) \ | |
| 56 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_5C ) ) \ | |
| 57 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_6C ) ) \ | |
| 58 | /* PORT_DIPSETTING( 0x20, DEF_STR( Free_Play ) ) */ \ | |
| 59 | /* PORT_DIPSETTING( 0x10, DEF_STR( Free_Play ) ) */ \ | |
| 60 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) \ | |
| 61 | /* Coin Mode 2 */ \ | |
| 62 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) PORT_CONDITION("DSW2", 0x04, PORTCOND_EQUALS, 0x00) PORT_DIPLOCATION(#DIPBANK":5,6") \ | |
| 63 | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) \ | |
| 64 | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) \ | |
| 65 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) \ | |
| 66 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) \ | |
| 67 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Coin_B ) ) PORT_CONDITION("DSW2", 0x04, PORTCOND_EQUALS, 0x00) PORT_DIPLOCATION(#DIPBANK":7,8") \ | |
| 68 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_2C ) ) \ | |
| 69 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_3C ) ) \ | |
| 70 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_5C ) ) \ | |
| 71 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_6C ) ) | |
| 72 | ||
| 73 | ||
| 74 | /* without location */ | |
| 75 | #define IREM_Z80_COINAGE_TYPE_1 \ | |
| 76 | /* Coin Mode 1 */ \ | |
| 77 | PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coinage ) ) PORT_CONDITION("DSW2", 0x04, PORTCOND_NOTEQUALS, 0x00) \ | |
| 78 | /* PORT_DIPSETTING( 0x80, DEF_STR( 1C_1C ) ) */ \ | |
| 79 | PORT_DIPSETTING( 0x90, DEF_STR( 7C_1C ) ) \ | |
| 80 | PORT_DIPSETTING( 0xa0, DEF_STR( 6C_1C ) ) \ | |
| 81 | PORT_DIPSETTING( 0xb0, DEF_STR( 5C_1C ) ) \ | |
| 82 | PORT_DIPSETTING( 0xc0, DEF_STR( 4C_1C ) ) \ | |
| 83 | PORT_DIPSETTING( 0xd0, DEF_STR( 3C_1C ) ) \ | |
| 84 | PORT_DIPSETTING( 0xe0, DEF_STR( 2C_1C ) ) \ | |
| 85 | PORT_DIPSETTING( 0xf0, DEF_STR( 1C_1C ) ) \ | |
| 86 | PORT_DIPSETTING( 0x70, DEF_STR( 1C_2C ) ) \ | |
| 87 | PORT_DIPSETTING( 0x60, DEF_STR( 1C_3C ) ) \ | |
| 88 | PORT_DIPSETTING( 0x50, DEF_STR( 1C_4C ) ) \ | |
| 89 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_5C ) ) \ | |
| 90 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_6C ) ) \ | |
| 91 | PORT_DIPSETTING( 0x20, DEF_STR( 1C_7C ) ) \ | |
| 92 | PORT_DIPSETTING( 0x10, DEF_STR( 1C_8C ) ) \ | |
| 93 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) \ | |
| 94 | /* Coin Mode 2 */ \ | |
| 95 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) PORT_CONDITION("DSW2", 0x04, PORTCOND_EQUALS, 0x00) \ | |
| 96 | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) \ | |
| 97 | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) \ | |
| 98 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) \ | |
| 99 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) \ | |
| 100 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Coin_B ) ) PORT_CONDITION("DSW2", 0x04, PORTCOND_EQUALS, 0x00) \ | |
| 101 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_2C ) ) \ | |
| 102 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_3C ) ) \ | |
| 103 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_5C ) ) \ | |
| 104 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_6C ) ) | |
| 105 | ||
| 106 | #define IREM_Z80_COINAGE_TYPE_2 \ | |
| 107 | /* Coin Mode 1 */ \ | |
| 108 | PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coinage ) ) PORT_CONDITION("DSW2", 0x04, PORTCOND_NOTEQUALS, 0x00) \ | |
| 109 | /* PORT_DIPSETTING( 0x80, DEF_STR( Free_Play ) ) */ \ | |
| 110 | /* PORT_DIPSETTING( 0x90, DEF_STR( Free_Play ) ) */ \ | |
| 111 | PORT_DIPSETTING( 0xa0, DEF_STR( 6C_1C ) ) \ | |
| 112 | PORT_DIPSETTING( 0xb0, DEF_STR( 5C_1C ) ) \ | |
| 113 | PORT_DIPSETTING( 0xc0, DEF_STR( 4C_1C ) ) \ | |
| 114 | PORT_DIPSETTING( 0xd0, DEF_STR( 3C_1C ) ) \ | |
| 115 | PORT_DIPSETTING( 0xe0, DEF_STR( 2C_1C ) ) \ | |
| 116 | PORT_DIPSETTING( 0xf0, DEF_STR( 1C_1C ) ) \ | |
| 117 | PORT_DIPSETTING( 0x70, DEF_STR( 1C_2C ) ) \ | |
| 118 | PORT_DIPSETTING( 0x60, DEF_STR( 1C_3C ) ) \ | |
| 119 | PORT_DIPSETTING( 0x50, DEF_STR( 1C_4C ) ) \ | |
| 120 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_5C ) ) \ | |
| 121 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_6C ) ) \ | |
| 122 | /* PORT_DIPSETTING( 0x20, DEF_STR( Free_Play ) ) */ \ | |
| 123 | /* PORT_DIPSETTING( 0x10, DEF_STR( Free_Play ) ) */ \ | |
| 124 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) \ | |
| 125 | /* Coin Mode 2 */ \ | |
| 126 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) PORT_CONDITION("DSW2", 0x04, PORTCOND_EQUALS, 0x00) \ | |
| 127 | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) \ | |
| 128 | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) \ | |
| 129 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) \ | |
| 130 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) \ | |
| 131 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Coin_B ) ) PORT_CONDITION("DSW2", 0x04, PORTCOND_EQUALS, 0x00) \ | |
| 132 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_2C ) ) \ | |
| 133 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_3C ) ) \ | |
| 134 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_5C ) ) \ | |
| 135 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_6C ) ) | |
| 136 |
| r1711 | r1712 | |
|---|---|---|
| 4 | 4 | |
| 5 | 5 | *************************************************************************/ |
| 6 | 6 | |
| 7 | ||
| 8 | /* oscillators and clocks */ | |
| 9 | #define JEDI_MAIN_CPU_OSC (XTAL_10MHz) | |
| 10 | #define JEDI_AUDIO_CPU_OSC (XTAL_12_096MHz) | |
| 11 | #define JEDI_MAIN_CPU_CLOCK (JEDI_MAIN_CPU_OSC / 4) | |
| 12 | #define JEDI_AUDIO_CPU_CLOCK (JEDI_AUDIO_CPU_OSC / 8) | |
| 13 | #define JEDI_POKEY_CLOCK (JEDI_AUDIO_CPU_CLOCK) | |
| 14 | #define JEDI_TMS5220_CLOCK (JEDI_AUDIO_CPU_OSC / 2 / 9) /* div by 9 is via a binary counter that counts from 7 to 16 */ | |
| 15 | ||
| 16 | ||
| 17 | typedef struct _jedi_state jedi_state; | |
| 18 | struct _jedi_state | |
| 19 | { | |
| 20 | /* machine state */ | |
| 21 | UINT8 a2d_select; | |
| 22 | UINT8 nvram_enabled; | |
| 23 | emu_timer *interrupt_timer; | |
| 24 | ||
| 25 | /* video state */ | |
| 26 | UINT8 *foregroundram; | |
| 27 | UINT8 *backgroundram; | |
| 28 | UINT8 *spriteram; | |
| 29 | UINT8 *paletteram; | |
| 30 | UINT8 *foreground_bank; | |
| 31 | UINT8 *video_off; | |
| 32 | UINT8 *smoothing_table; | |
| 33 | UINT32 vscroll; | |
| 34 | UINT32 hscroll; | |
| 35 | ||
| 36 | /* audio state */ | |
| 37 | UINT8 audio_latch; | |
| 38 | UINT8 audio_ack_latch; | |
| 39 | UINT8 *audio_comm_stat; | |
| 40 | UINT8 *speech_data; | |
| 41 | UINT8 speech_strobe_state; | |
| 42 | }; | |
| 43 | ||
| 44 | ||
| 45 | /*----------- defined in audio/jedi.c -----------*/ | |
| 46 | ||
| 47 | MACHINE_DRIVER_EXTERN( jedi_audio ); | |
| 48 | ||
| 49 | WRITE8_HANDLER( jedi_audio_reset_w ); | |
| 50 | WRITE8_HANDLER( jedi_audio_latch_w ); | |
| 51 | READ8_HANDLER( jedi_audio_ack_latch_r ); | |
| 52 | CUSTOM_INPUT( jedi_audio_comm_stat_r ); | |
| 53 | ||
| 54 | ||
| 7 | 55 | /*----------- defined in video/jedi.c -----------*/ |
| 8 | 56 | |
| 9 | extern UINT8 *jedi_foregroundram; | |
| 10 | extern UINT8 *jedi_backgroundram; | |
| 11 | extern UINT8 *jedi_spriteram; | |
| 12 | extern UINT8 *jedi_paletteram; | |
| 13 | extern UINT8 *jedi_foreground_bank; | |
| 57 | MACHINE_DRIVER_EXTERN( jedi_video ); | |
| 14 | 58 | |
| 15 | VIDEO_START( jedi ); | |
| 16 | VIDEO_UPDATE( jedi ); | |
| 17 | ||
| 18 | WRITE8_HANDLER( jedi_alpha_banksel_w ); | |
| 19 | WRITE8_HANDLER( jedi_paletteram_w ); | |
| 20 | 59 | WRITE8_HANDLER( jedi_vscroll_w ); |
| 21 | 60 | WRITE8_HANDLER( jedi_hscroll_w ); |
| 22 | WRITE8_HANDLER( jedi_video_off_w ); | |
| 23 | WRITE8_HANDLER( jedi_PIXIRAM_w ); |
| r0 | r1712 | |
|---|---|---|
| 1 | /*************************************************************************** | |
| 2 | ||
| 3 | GAME PLAN driver | |
| 4 | ||
| 5 | driver by Chris Moore | |
| 6 | ||
| 7 | ***************************************************************************/ | |
| 8 | ||
| 9 | ||
| 10 | #define GAMEPLAN_MAIN_MASTER_CLOCK (XTAL_3_579545MHz) | |
| 11 | #define GAMEPLAN_AUDIO_MASTER_CLOCK (XTAL_3_579545MHz) | |
| 12 | #define GAMEPLAN_MAIN_CPU_CLOCK (GAMEPLAN_MAIN_MASTER_CLOCK / 4) | |
| 13 | #define GAMEPLAN_AUDIO_CPU_CLOCK (GAMEPLAN_AUDIO_MASTER_CLOCK / 4) | |
| 14 | #define GAMEPLAN_AY8910_CLOCK (GAMEPLAN_AUDIO_MASTER_CLOCK / 2) | |
| 15 | #define GAMEPLAN_PIXEL_CLOCK (XTAL_11_6688MHz / 2) | |
| 16 | ||
| 17 | ||
| 18 | typedef struct _gameplan_state gameplan_state; | |
| 19 | struct _gameplan_state | |
| 20 | { | |
| 21 | /* machine state */ | |
| 22 | UINT8 current_port; | |
| 23 | UINT8 audio_cmd; | |
| 24 | UINT8 *trvquest_question; | |
| 25 | ||
| 26 | /* video state */ | |
| 27 | UINT8 *videoram; | |
| 28 | size_t videoram_size; | |
| 29 | UINT8 video_x; | |
| 30 | UINT8 video_y; | |
| 31 | UINT8 video_command; | |
| 32 | UINT8 video_data; | |
| 33 | emu_timer *via_0_ca1_timer; | |
| 34 | }; | |
| 35 | ||
| 36 | ||
| 37 | /*----------- defined in video/gameplan.c -----------*/ | |
| 38 | ||
| 39 | MACHINE_DRIVER_EXTERN( gameplan_video ); | |
| 40 | MACHINE_DRIVER_EXTERN( leprechn_video ); | |
| 41 | MACHINE_DRIVER_EXTERN( trvquest_video ); |
| r1711 | r1712 | |
|---|---|---|
| 12 | 12 | VIDEO_START( beathead ); |
| 13 | 13 | VIDEO_UPDATE( beathead ); |
| 14 | 14 | |
| 15 | void beathead_scanline_update(int scanline); | |
| 16 | ||
| 17 | 15 | WRITE32_HANDLER( beathead_vram_transparent_w ); |
| 18 | 16 | WRITE32_HANDLER( beathead_vram_bulk_w ); |
| 19 | 17 | WRITE32_HANDLER( beathead_vram_latch_w ); |
| r1711 | r1712 | |
|---|---|---|
| 18 | 18 | #define ST0016_CHAR_BANK_MASK (ST0016_MAX_CHAR_BANK-1) |
| 19 | 19 | #define ST0016_PAL_BANK_MASK (ST0016_MAX_PAL_BANK-1) |
| 20 | 20 | |
| 21 | /*----------- defined in drivers/st0016.c -----------*/ | |
| 22 | ||
| 23 | extern UINT32 st0016_rom_bank; | |
| 24 | WRITE8_HANDLER (st0016_rom_bank_w); | |
| 25 | ||
| 26 | ||
| 21 | 27 | /*----------- defined in video/st0016.c -----------*/ |
| 22 | 28 | |
| 23 | 29 | extern UINT8 *st0016_charram,*st0016_spriteram,*st0016_paletteram; |
| r1711 | r1712 | |
| 38 | 44 | WRITE8_HANDLER (st0016_character_ram_w); |
| 39 | 45 | READ8_HANDLER (st0016_vregs_r); |
| 40 | 46 | WRITE8_HANDLER (st0016_vregs_w); |
| 41 | WRITE8_HANDLER (st0016_rom_bank_w); | |
| 42 | 47 | |
| 43 | 48 | VIDEO_START(st0016); |
| 44 | 49 | VIDEO_UPDATE(st0016); |
| 45 | 50 | |
| 46 | 51 | extern UINT32 st0016_game; |
| 47 | 52 | |
| 48 | extern UINT32 st0016_rom_bank; | |
| 49 | ||
| 50 | 53 | void st0016_save_init(void); |
| 51 | 54 | |
| 52 | 55 |
| r1711 | r1712 | |
|---|---|---|
| 10 | 10 | |
| 11 | 11 | extern UINT8 *kangaroo_video_control; |
| 12 | 12 | |
| 13 | PALETTE_INIT( kangaroo ); | |
| 14 | 13 | VIDEO_START( kangaroo ); |
| 15 | 14 | VIDEO_UPDATE( kangaroo ); |
| 16 | 15 | |
| 17 | WRITE8_HANDLER( kangaroo_blitter_w ); | |
| 18 | 16 | WRITE8_HANDLER( kangaroo_videoram_w ); |
| 19 | 17 | WRITE8_HANDLER( kangaroo_video_control_w ); |
| r1711 | r1712 | |
|---|---|---|
| 6 | 6 | |
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | #include " | |
| 9 | #include "vi | |
| 10 | 10 | |
| 11 | ||
| 12 | #define MAIN_CLOCK_OSC 20000000 /* 20 MHz */ | |
| 13 | #define SLITHER_CLOCK_OSC 21300000 /* 21.3 MHz */ | |
| 14 | #define SOUND_CLOCK_OSC 7372800 /* 7.3728 MHz */ | |
| 15 | #define COIN_CLOCK_OSC 4000000 /* 4 MHz */ | |
| 11 | 16 | #define QIX_CHARACTER_CLOCK (20000000/2/16) |
| 12 | 17 | |
| 13 | 18 | |
| 19 | typedef struct _qix_state qix_state; | |
| 20 | struct _qix_state | |
| 21 | { | |
| 22 | /* machine state */ | |
| 23 | UINT8 *_68705_port_out; | |
| 24 | UINT8 *_68705_ddr; | |
| 25 | UINT8 _68705_port_in[3]; | |
| 26 | UINT8 coinctrl; | |
| 27 | ||
| 28 | /* video state */ | |
| 29 | mc6845_t *mc6845; | |
| 30 | UINT8 *videoram; | |
| 31 | UINT8 *videoram_address; | |
| 32 | UINT8 *videoram_mask; | |
| 33 | UINT8 *paletteram; | |
| 34 | UINT8 flip_screen; | |
| 35 | UINT8 palette_bank; | |
| 36 | UINT8 leds; | |
| 37 | UINT8 *scanline_latch; | |
| 38 | }; | |
| 39 | ||
| 40 | ||
| 14 | 41 | /*----------- defined in machine/qix.c -----------*/ |
| 15 | 42 | |
| 16 | extern UINT8 *qix_68705_port_out; | |
| 17 | extern UINT8 *qix_68705_ddr; | |
| 18 | ||
| 19 | 43 | MACHINE_START( qix ); |
| 20 | 44 | MACHINE_START( qixmcu ); |
| 21 | 45 | MACHINE_START( slither ); |
| 22 | 46 | MACHINE_RESET( qix ); |
| 23 | 47 | |
| 24 | WRITE8_HANDLER( zoo_bankswitch_w ); | |
| 48 | WRITE8_HANDLER( zookeep_bankswitch_w ); | |
| 25 | 49 | |
| 26 | 50 | READ8_HANDLER( qix_data_firq_r ); |
| 27 | 51 | READ8_HANDLER( qix_data_firq_ack_r ); |
| r1711 | r1712 | |
| 44 | 68 | |
| 45 | 69 | INTERRUPT_GEN( qix_vblank_start ); |
| 46 | 70 | |
| 71 | ||
| 47 | 72 | /*----------- defined in video/qix.c -----------*/ |
| 48 | 73 | |
| 49 | extern UINT8 *qix_videoaddress; | |
| 50 | extern UINT8 qix_cocktail_flip; | |
| 74 | MACHINE_DRIVER_EXTERN( qix_video ); | |
| 75 | MACHINE_DRIVER_EXTERN( zookeep_video ); | |
| 76 | MACHINE_DRIVER_EXTERN( slither_video ); | |
| 51 | 77 | |
| 52 | VIDEO_START( qix ); | |
| 53 | VIDEO_UPDATE( qix ); | |
| 54 | ||
| 55 | WRITE8_HANDLER( qix_mc6845_address_w ); | |
| 56 | READ8_HANDLER( qix_mc6845_register_r ); | |
| 57 | WRITE8_HANDLER( qix_mc6845_register_w ); | |
| 58 | READ8_HANDLER( qix_scanline_r ); | |
| 59 | READ8_HANDLER( qix_videoram_r ); | |
| 60 | WRITE8_HANDLER( qix_videoram_w ); | |
| 61 | READ8_HANDLER( qix_addresslatch_r ); | |
| 62 | WRITE8_HANDLER( qix_addresslatch_w ); | |
| 63 | WRITE8_HANDLER( slither_vram_mask_w ); | |
| 64 | WRITE8_HANDLER( qix_paletteram_w ); | |
| 78 | WRITE8_HANDLER( qix_flip_screen_w ); | |
| 65 | 79 | WRITE8_HANDLER( qix_palettebank_w ); |
| 66 | 80 | |
| 81 | ||
| 67 | 82 | /*----------- defined in audio/qix.c -----------*/ |
| 68 | 83 | |
| 69 | DISCRETE_SOUND_EXTERN( qix ); | |
| 84 | MACHINE_DRIVER_EXTERN( qix_audio ); | |
| 85 | MACHINE_DRIVER_EXTERN( slither_audio ); | |
| 70 | 86 | |
| 71 | 87 | WRITE8_HANDLER( qix_dac_w ); |
| 72 | 88 | WRITE8_HANDLER( qix_vol_w ); |
| r1711 | r1712 | |
|---|---|---|
| 379 | 379 | extern UINT16 *snes_cgram; /* Colour RAM */ |
| 380 | 380 | extern UINT16 *snes_oam; /* Object Attribute Memory */ |
| 381 | 381 | extern UINT8 *snes_ram; /* Main memory */ |
| 382 | extern UINT8 *spc_ram; /* SPC main memory */ | |
| 383 | extern UINT8 spc_port_in[4]; /* SPC input ports */ | |
| 384 | extern UINT8 spc_port_out[4]; /* SPC output ports */ | |
| 382 | 385 | struct SNES_PPU_STRUCT |
| 383 | 386 | { |
| 384 | 387 | struct |
| r1711 | r1712 | |
| 435 | 438 | } mode7; |
| 436 | 439 | UINT8 clipmasks[6][SNES_SCR_WIDTH + 8]; |
| 437 | 440 | UINT8 update_windows; |
| 438 | UINT8 update_palette; | |
| 439 | 441 | UINT8 update_offsets; |
| 440 | 442 | UINT8 mode; |
| 441 | 443 | }; |
| r1711 | r1712 | |
| 452 | 454 | /*----------- defined in audio/snes.c -----------*/ |
| 453 | 455 | |
| 454 | 456 | /* (APU) Sound related */ |
| 455 | extern UINT8 *spc_ram; /* SPC main memory */ | |
| 456 | extern UINT8 spc_port_in[4]; /* SPC input ports */ | |
| 457 | extern UINT8 spc_port_out[4]; /* SPC output ports */ | |
| 458 | 457 | extern READ8_HANDLER( spc_io_r ); |
| 459 | 458 | extern WRITE8_HANDLER( spc_io_w ); |
| 460 | 459 | extern READ8_HANDLER( spc_ram_r ); |
| r1711 | r1712 | |
|---|---|---|
| 13 | 13 | |
| 14 | 14 | WRITE8_HANDLER( yard_videoram_w ); |
| 15 | 15 | WRITE8_HANDLER( yard_scroll_panel_w ); |
| 16 | WRITE8_HANDLER( yard_flipscreen_w ); | |
| 16 | 17 | |
| 17 | 18 | PALETTE_INIT( yard ); |
| 18 | 19 | VIDEO_START( yard ); |
| r1711 | r1712 | |
|---|---|---|
| 17 | 17 | READ32_HANDLER( zeus_r ); |
| 18 | 18 | WRITE32_HANDLER( zeus_w ); |
| 19 | 19 | |
| 20 | /*----------- defined in video/midzeus2.c -----------*/ | |
| 21 | ||
| 20 | 22 | VIDEO_START( midzeus2 ); |
| 21 | 23 | VIDEO_UPDATE( midzeus2 ); |
| 22 | 24 |
| r1711 | r1712 | |
|---|---|---|
| 91 | 91 | extern UINT16 *buggyboy_vram; |
| 92 | 92 | extern size_t buggyboy_objram_size; |
| 93 | 93 | extern size_t buggyboy_rcram_size; |
| 94 | PALETTE_INIT( buggybjr ); | |
| 94 | 95 | PALETTE_INIT( buggyboy ); |
| 95 | 96 | WRITE16_HANDLER( buggyboy_vram_w ); |
| 96 | 97 | VIDEO_START( buggyboy ); |
| r1711 | r1712 | |
| 98 | 99 | VIDEO_EOF( buggyboy ); |
| 99 | 100 | |
| 100 | 101 | extern UINT16 *buggybjr_vram; |
| 101 | PALETTE_INIT( buggybjr ); | |
| 102 | 102 | WRITE16_HANDLER( buggybjr_vram_w ); |
| 103 | 103 | VIDEO_START( buggybjr ); |
| 104 | 104 | VIDEO_UPDATE( buggybjr ); |
| r1711 | r1712 | |
|---|---|---|
| 9 | 9 | extern UINT8* sprint8_pos_h_ram; |
| 10 | 10 | extern UINT8* sprint8_pos_v_ram; |
| 11 | 11 | extern UINT8* sprint8_pos_d_ram; |
| 12 | extern UINT8* sprint8_team; | |
| 12 | 13 | |
| 14 | PALETTE_INIT( sprint8 ); | |
| 13 | 15 | VIDEO_EOF( sprint8 ); |
| 14 | 16 | VIDEO_START( sprint8 ); |
| 15 | 17 | VIDEO_UPDATE( sprint8 ); |
| r0 | r1712 | |
|---|---|---|
| 1 | /*************************************************************************** | |
| 2 | ||
| 3 | Mad Alien (c) 1980 Data East Corporation | |
| 4 | ||
| 5 | Original driver by Norbert Kehrer (February 2004) | |
| 6 | ||
| 7 | ***************************************************************************/ | |
| 8 | ||
| 9 | #define MADALIEN_MAIN_CLOCK (10595000) | |
| 10 | ||
| 11 | ||
| 12 | /*----------- defined in video/madalien.c -----------*/ | |
| 13 | ||
| 14 | extern UINT8 *madalien_videoram; | |
| 15 | extern UINT8 *madalien_charram; | |
| 16 | ||
| 17 | extern UINT8 *madalien_video_flags; | |
| 18 | extern UINT8 *madalien_video_control; | |
| 19 | extern UINT8 *madalien_scroll; | |
| 20 | extern UINT8 *madalien_edge1_pos; | |
| 21 | extern UINT8 *madalien_edge2_pos; | |
| 22 | extern UINT8 *madalien_headlight_pos; | |
| 23 | ||
| 24 | WRITE8_HANDLER( madalien_mc6845_address_w ); | |
| 25 | READ8_HANDLER( madalien_mc6845_register_r ); | |
| 26 | WRITE8_HANDLER( madalien_mc6845_register_w ); | |
| 27 | ||
| 28 | MACHINE_DRIVER_EXTERN( madalien_video ); |
| r1711 | r1712 | |
|---|---|---|
| 15 | 15 | extern UINT16 *cave_vram_1, *cave_vctrl_1; |
| 16 | 16 | extern UINT16 *cave_vram_2, *cave_vctrl_2; |
| 17 | 17 | extern UINT16 *cave_vram_3, *cave_vctrl_3; |
| 18 | extern size_t cave_paletteram_size; | |
| 18 | 19 | |
| 19 | 20 | WRITE16_HANDLER( cave_vram_0_w ); |
| 20 | 21 | WRITE16_HANDLER( cave_vram_1_w ); |
| r1711 | r1712 | |
|---|---|---|
| 35 | 35 | |
| 36 | 36 | /*----------- defined in video/tank8.c -----------*/ |
| 37 | 37 | |
| 38 | PALETTE_INIT( tank8 ); | |
| 38 | 39 | VIDEO_EOF( tank8 ); |
| 39 | 40 | VIDEO_START( tank8 ); |
| 40 | 41 | VIDEO_UPDATE( tank8 ); |
| 41 | 42 | |
| 42 | 43 | WRITE8_HANDLER( tank8_video_ram_w ); |
| 43 | 44 | |
| 44 | extern UINT8* tank8_video_ram; | |
| 45 | extern UINT8* tank8_pos_h_ram; | |
| 46 | extern UINT8* tank8_pos_v_ram; | |
| 47 | extern UINT8* tank8_pos_d_ram; | |
| 45 | extern UINT8 *tank8_video_ram; | |
| 46 | extern UINT8 *tank8_pos_h_ram; | |
| 47 | extern UINT8 *tank8_pos_v_ram; | |
| 48 | extern UINT8 *tank8_pos_d_ram; | |
| 49 | extern UINT8 *tank8_team; | |
| 48 | 50 |
| r1711 | r1712 | |
|---|---|---|
| 304 | 304 | #SOUNDS += SID6581 |
| 305 | 305 | #SOUNDS += SID8580 |
| 306 | 306 | SOUNDS += SP0256 |
| 307 | SOUNDS += AICA | |
| 307 | 308 | |
| 308 | 309 | |
| 309 | ||
| 310 | 310 | #------------------------------------------------- |
| 311 | 311 | # this is the list of driver libraries that |
| 312 | 312 | # comprise MAME plus mamedriv.o which contains |
| r1711 | r1712 | |
| 490 | 490 | $(DRIVERS)/gauntlet.o $(VIDEO)/gauntlet.o \ |
| 491 | 491 | $(DRIVERS)/harddriv.o $(MACHINE)/harddriv.o $(AUDIO)/harddriv.o $(VIDEO)/harddriv.o \ |
| 492 | 492 | $(DRIVERS)/irobot.o $(MACHINE)/irobot.o $(VIDEO)/irobot.o \ |
| 493 | $(DRIVERS)/jedi.o $(VIDEO)/jedi.o \ | |
| 493 | $(DRIVERS)/jedi.o $(AUDIO)/jedi.o $(VIDEO)/jedi.o \ | |
| 494 | 494 | $(DRIVERS)/klax.o $(VIDEO)/klax.o \ |
| 495 | 495 | $(DRIVERS)/liberatr.o $(VIDEO)/liberatr.o \ |
| 496 | 496 | $(DRIVERS)/mediagx.o \ |
| r1711 | r1712 | |
| 633 | 633 | $(DRIVERS)/kingobox.o $(VIDEO)/kingobox.o \ |
| 634 | 634 | $(DRIVERS)/lemmings.o $(VIDEO)/lemmings.o \ |
| 635 | 635 | $(DRIVERS)/liberate.o $(VIDEO)/liberate.o \ |
| 636 | $(DRIVERS)/madalien.o \ | |
| 636 | $(DRIVERS)/madalien.o $(VIDEO)/madalien.o \ | |
| 637 | 637 | $(DRIVERS)/madmotor.o $(VIDEO)/madmotor.o \ |
| 638 | 638 | $(DRIVERS)/metlclsh.o $(VIDEO)/metlclsh.o \ |
| 639 | 639 | $(DRIVERS)/pcktgal.o $(VIDEO)/pcktgal.o \ |
| r1711 | r1712 | |
| 723 | 723 | |
| 724 | 724 | $(MAMEOBJ)/gameplan.a: \ |
| 725 | 725 | $(DRIVERS)/enigma2.o \ |
| 726 | $(DRIVERS)/gameplan.o \ | |
| 726 | $(DRIVERS)/gameplan.o $(VIDEO)/gameplan.o \ | |
| 727 | 727 | $(DRIVERS)/toratora.o \ |
| 728 | 728 | |
| 729 | 729 | $(MAMEOBJ)/gametron.a: \ |
| r1711 | r1712 | |
|---|---|---|
| 65 | 65 | /* |
| 66 | 66 | Palette RAM |
| 67 | 67 | */ |
| 68 | paletteram = auto_malloc(2*machine->drv->total_colors); | |
| 69 | memset(paletteram, 0, 2*machine->drv->total_colors); | |
| 68 | paletteram = auto_malloc(2*machine->config->total_colors); | |
| 69 | memset(paletteram, 0, 2*machine->config->total_colors); | |
| 70 | 70 | } |
| 71 | 71 | |
| 72 | 72 |
| r1711 | r1712 | |
|---|---|---|
| 28 | 28 | sx = offset % 512; |
| 29 | 29 | sy = offset / 512; |
| 30 | 30 | |
| 31 | *BITMAP_ADDR16(tmpbitmap, sy, sx) = | |
| 31 | *BITMAP_ADDR16(tmpbitmap, sy, sx) = | |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | WRITE16_HANDLER( galspnbl_scroll_w ) |
| r1711 | r1712 | |
|---|---|---|
| 227 | 227 | |
| 228 | 228 | VIDEO_UPDATE( blktiger ) |
| 229 | 229 | { |
| 230 | fillbitmap(bitmap, | |
| 230 | fillbitmap(bitmap, | |
| 231 | 231 | |
| 232 | 232 | if (bgon) |
| 233 | 233 | tilemap_draw(bitmap,cliprect,screen_layout ? bg_tilemap8x4 : bg_tilemap4x8,TILEMAP_DRAW_LAYER1,0); |
| r1711 | r1712 | |
|---|---|---|
| 74 | 74 | */ |
| 75 | 75 | tmpbitmap = auto_bitmap_alloc( 256, 64, machine->screen[0].format ); |
| 76 | 76 | |
| 77 | fg_tilemap = tilemap_create(get_fg_tile_info, tilemap_scan_cols, | |
| 78 | 8, 8, 32, 32); | |
| 77 | fg_tilemap = tilemap_create(get_fg_tile_info, tilemap_scan_cols, 8, 8, 32, 32); | |
| 79 | 78 | |
| 80 | 79 | tilemap_set_transparent_pen(fg_tilemap, 0); |
| 81 | 80 | tilemap_set_scrollx(fg_tilemap, 0, 64); |
| r1711 | r1712 | |
| 83 | 82 | |
| 84 | 83 | PALETTE_INIT( tunhunt ) |
| 85 | 84 | { |
| 85 | int i; | |
| 86 | ||
| 86 | 87 | /* Tunnel Hunt uses a combination of color proms and palette RAM to specify a 16 color |
| 87 | 88 | * palette. Here, we manage only the mappings for alphanumeric characters and SHELL |
| 88 | 89 | * graphics, which are unpacked ahead of time and drawn using MAME's drawgfx primitives. |
| 89 | 90 | */ |
| 90 | 91 | |
| 92 | /* allocate the colortable */ | |
| 93 | machine->colortable = colortable_alloc(machine, 0x10); | |
| 94 | ||
| 95 | /* motion objects/box */ | |
| 96 | for (i = 0; i < 0x10; i++) | |
| 97 | colortable_entry_set_value(machine->colortable, i, i); | |
| 98 | ||
| 91 | 99 | /* AlphaNumerics (1bpp) |
| 92 | 100 | * 2 bits of hilite select from 4 different background colors |
| 93 | 101 | * Foreground color is always pen#4 |
| r1711 | r1712 | |
| 95 | 103 | */ |
| 96 | 104 | |
| 97 | 105 | /* alpha hilite#0 */ |
| 98 | colortable[0] = 0x0; /* background color#0 (transparent) */ | |
| 99 | colortable[1] = 0x4; /* foreground color */ | |
| 106 | colortable_entry_set_value(machine->colortable, 0x10, 0x0); /* background color#0 (transparent) */ | |
| 107 | colortable_entry_set_value(machine->colortable, 0x11, 0x4); /* foreground color */ | |
| 100 | 108 | |
| 101 | 109 | /* alpha hilite#1 */ |
| 102 | colortable[2] = 0x5; /* background color#1 */ | |
| 103 | colortable[3] = 0x4; /* foreground color */ | |
| 110 | colortable_entry_set_value(machine->colortable, 0x12, 0x5); /* background color#1 */ | |
| 111 | colortable_entry_set_value(machine->colortable, 0x13, 0x4); /* foreground color */ | |
| 104 | 112 | |
| 105 | 113 | /* alpha hilite#2 */ |
| 106 | colortable[4] = 0x6; /* background color#2 */ | |
| 107 | colortable[5] = 0x4; /* foreground color */ | |
| 114 | colortable_entry_set_value(machine->colortable, 0x14, 0x6); /* background color#2 */ | |
| 115 | colortable_entry_set_value(machine->colortable, 0x15, 0x4); /* foreground color */ | |
| 108 | 116 | |
| 109 | 117 | /* alpha hilite#3 */ |
| 110 | colortable[6] = 0xf; /* background color#3 */ | |
| 111 | colortable[7] = 0x4; /* foreground color */ | |
| 118 | colortable_entry_set_value(machine->colortable, 0x16, 0xf); /* background color#3 */ | |
| 119 | colortable_entry_set_value(machine->colortable, 0x17, 0x4); /* foreground color */ | |
| 112 | 120 | |
| 113 | 121 | /* shell graphics; these are either 1bpp (2 banks) or 2bpp. It isn't clear which. |
| 114 | 122 | * In any event, the following pens are associated with the shell graphics: |
| 115 | 123 | */ |
| 116 | colortable[0x8] = 0; | |
| 117 | colortable[0x9] = 4;//1; | |
| 118 | colortable[0xa] = 2; | |
| 119 | colortable[0xb] = 4; | |
| 124 | colortable_entry_set_value(machine->colortable, 0x18, 0); | |
| 125 | colortable_entry_set_value(machine->colortable, 0x19, 4);//1; | |
| 120 | 126 | } |
| 121 | 127 | |
| 122 | 128 | /* |
| r1711 | r1712 | |
| 132 | 138 | 8-E Lines (as normal) background |
| 133 | 139 | F Hilight 3 |
| 134 | 140 | */ |
| 135 | static void | |
| 141 | static void s | |
| 136 | 142 | { |
| 137 | 143 | // const UINT8 *color_prom = memory_region( REGION_PROMS ); |
| 138 | 144 | /* |
| r1711 | r1712 | |
| 186 | 192 | green = APPLY_SHADE(green,shade); |
| 187 | 193 | blue = APPLY_SHADE(blue,shade); |
| 188 | 194 | |
| 189 | palette_set_color( | |
| 195 | colortable_palette_set_color( | |
| 190 | 196 | } |
| 191 | 197 | } |
| 192 | 198 | |
| r1711 | r1712 | |
| 365 | 371 | |
| 366 | 372 | VIDEO_UPDATE( tunhunt ) |
| 367 | 373 | { |
| 368 | | |
| 374 | s | |
| 369 | 375 | |
| 370 | 376 | draw_box(machine, bitmap, cliprect); |
| 371 | 377 |
| r1711 | r1712 | |
|---|---|---|
| 17 | 17 | { |
| 18 | 18 | int i; |
| 19 | 19 | |
| 20 | for (i = 0;i < machine-> | |
| 20 | for (i = 0;i < machine->config->total_colors;i++) | |
| 21 | 21 | { |
| 22 | 22 | int bit0,bit1,bit2,r,g,b; |
| 23 | 23 |
| r1711 | r1712 | |
|---|---|---|
| 100 | 100 | machine->gfx[ttl_gfx_index] = allocgfx(&charlayout); |
| 101 | 101 | decodegfx(machine->gfx[ttl_gfx_index], memory_region(REGION_GFX3), 0, machine->gfx[ttl_gfx_index]->total_elements); |
| 102 | 102 | |
| 103 | if (machine->drv->color_table_len) | |
| 104 | machine->gfx[ttl_gfx_index]->total_colors = machine->drv->color_table_len / 16; | |
| 105 | else | |
| 106 | machine->gfx[ttl_gfx_index]->total_colors = machine->drv->total_colors / 16; | |
| 103 | machine->gfx[ttl_gfx_index]->total_colors = machine->config->total_colors / 16; | |
| 107 | 104 | |
| 108 | 105 | // create the tilemap |
| 109 | 106 | ttl_tilemap = tilemap_create(ttl_get_tile_info, tilemap_scan_rows, 8, 8, 64, 32); |
| r1711 | r1712 | |
|---|---|---|
| 28 | 28 | /* the background character columns is stored in the area dd00-dd3f */ |
| 29 | 29 | |
| 30 | 30 | /* This clears & redraws the entire screen each pass */ |
| 31 | fillbitmap(bitmap, | |
| 31 | fillbitmap(bitmap, | |
| 32 | 32 | |
| 33 | 33 | if (!bublbobl_video_enable) return 0; |
| 34 | 34 |
| r1711 | r1712 | |
|---|---|---|
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | #define layout_total(x) \ |
| 105 | (machine-> | |
| 105 | (machine->config->gfxdecodeinfo[x].gfxlayout->total) | |
| 106 | 106 | |
| 107 | 107 | static TILE_GET_INFO( get_tile_info_A_8 ) |
| 108 | 108 | { |
| r1711 | r1712 | |
|---|---|---|
| 34 | 34 | int i; |
| 35 | 35 | |
| 36 | 36 | |
| 37 | for (i = 0;i < machine-> | |
| 37 | for (i = 0;i < machine->config->total_colors;i++) | |
| 38 | 38 | { |
| 39 | 39 | int bit0,bit1,bit2,r,g,b; |
| 40 | 40 |
| r1711 | r1712 | |
|---|---|---|
| 220 | 220 | static void update_pixel(int vram, int x, int y) |
| 221 | 221 | { |
| 222 | 222 | UINT16 color = nbmj9195_videoram[vram][(y * Machine->screen[0].width) + x]; |
| 223 | *BITMAP_ADDR16(nbmj9195_tmpbitmap[vram], y, x) = | |
| 223 | *BITMAP_ADDR16(nbmj9195_tmpbitmap[vram], y, x) = | |
| 224 | 224 | } |
| 225 | 225 | |
| 226 | 226 | static TIMER_CALLBACK( blitter_timer_callback ) |
| r1711 | r1712 | |
|---|---|---|
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | 10 | |
| 11 | UINT8 *sonson_scroll; | |
| 11 | 12 | static tilemap *bg_tilemap; |
| 12 | 13 | |
| 13 | 14 | /*************************************************************************** |
| r1711 | r1712 | |
| 42 | 43 | PALETTE_INIT( sonson ) |
| 43 | 44 | { |
| 44 | 45 | int i; |
| 45 | #define TOTAL_COLORS(gfxn) (machine->gfx[gfxn]->total_colors * machine->gfx[gfxn]->color_granularity) | |
| 46 | #define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + offs]) | |
| 47 | 46 | |
| 47 | /* allocate the colortable */ | |
| 48 | machine->colortable = colortable_alloc(machine, 0x20); | |
| 48 | 49 | |
| 49 | for (i = 0;i < machine->drv->total_colors;i++) | |
| 50 | /* create a lookup table for the palette */ | |
| 51 | for (i = 0; i < 0x20; i++) | |
| 50 | 52 | { |
| 51 | int bit0,bit1,bit2,bit3,r,g,b; | |
| 53 | int bit0, bit1, bit2, bit3; | |
| 54 | int r, g, b; | |
| 52 | 55 | |
| 53 | ||
| 54 | 56 | /* red component */ |
| 55 | bit0 = (color_prom[i + machine->drv->total_colors] >> 0) & 0x01; | |
| 56 | bit1 = (color_prom[i + machine->drv->total_colors] >> 1) & 0x01; | |
| 57 | bit2 = (color_prom[i + machine->drv->total_colors] >> 2) & 0x01; | |
| 58 | bit3 = (color_prom[i + machine->drv->total_colors] >> 3) & 0x01; | |
| 57 | bit0 = (color_prom[i + 0x20] >> 0) & 0x01; | |
| 58 | bit1 = (color_prom[i + 0x20] >> 1) & 0x01; | |
| 59 | bit2 = (color_prom[i + 0x20] >> 2) & 0x01; | |
| 60 | bit3 = (color_prom[i + 0x20] >> 3) & 0x01; | |
| 59 | 61 | r = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; |
| 62 | ||
| 60 | 63 | /* green component */ |
| 61 | bit0 = (color_prom[i] >> 4) & 0x01; | |
| 62 | bit1 = (color_prom[i] >> 5) & 0x01; | |
| 63 | bit2 = (color_prom[i] >> 6) & 0x01; | |
| 64 | bit3 = (color_prom[i] >> 7) & 0x01; | |
| 64 | bit0 = (color_prom[i + 0x00] >> 4) & 0x01; | |
| 65 | bit1 = (color_prom[i + 0x00] >> 5) & 0x01; | |
| 66 | bit2 = (color_prom[i + 0x00] >> 6) & 0x01; | |
| 67 | bit3 = (color_prom[i + 0x00] >> 7) & 0x01; | |
| 65 | 68 | g = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; |
| 69 | ||
| 66 | 70 | /* blue component */ |
| 67 | bit0 = (color_prom[i] >> 0) & 0x01; | |
| 68 | bit1 = (color_prom[i] >> 1) & 0x01; | |
| 69 | bit2 = (color_prom[i] >> 2) & 0x01; | |
| 70 | bit3 = (color_prom[i] >> 3) & 0x01; | |
| 71 | bit0 = (color_prom[i + 0x00] >> 0) & 0x01; | |
| 72 | bit1 = (color_prom[i + 0x00] >> 1) & 0x01; | |
| 73 | bit2 = (color_prom[i + 0x00] >> 2) & 0x01; | |
| 74 | bit3 = (color_prom[i + 0x00] >> 3) & 0x01; | |
| 71 | 75 | b = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; |
| 72 | 76 | |
| 73 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); | |
| 77 | colortable_palette_set_color(machine->colortable, i, MAKE_RGB(r, g, b)); | |
| 74 | 78 | } |
| 75 | 79 | |
| 76 | color_prom += 2*machine->drv->total_colors; | |
| 77 | 80 | /* color_prom now points to the beginning of the lookup table */ |
| 81 | color_prom += 0x40; | |
| 78 | 82 | |
| 79 | /* characters use colors 0-15 */ | |
| 80 | for (i = 0;i < TOTAL_COLORS(0);i++) | |
| 81 | COLOR(0,i) = *(color_prom++) & 0x0f; | |
| 83 | /* characters use colors 0-0x0f */ | |
| 84 | for (i = 0; i < 0x100; i++) | |
| 85 | { | |
| 86 | UINT8 ctabentry = color_prom[i] & 0x0f; | |
| 87 | colortable_entry_set_value(machine->colortable, i, ctabentry); | |
| 88 | } | |
| 82 | 89 | |
| 83 | /* sprites use colors 16-31 */ | |
| 84 | for (i = 0;i < TOTAL_COLORS(1);i++) | |
| 85 | COLOR(1,i) = (*(color_prom++) & 0x0f) + 0x10; | |
| 90 | /* sprites use colors 0x10-0x1f */ | |
| 91 | for (i = 0x100; i < 0x200; i++) | |
| 92 | { | |
| 93 | UINT8 ctabentry = (color_prom[i] & 0x0f) | 0x10; | |
| 94 | colortable_entry_set_value(machine->colortable, i, ctabentry); | |
| 95 | } | |
| 86 | 96 | } |
| 87 | 97 | |
| 88 | 98 | WRITE8_HANDLER( sonson_videoram_w ) |
| r1711 | r1712 | |
| 97 | 107 | tilemap_mark_tile_dirty(bg_tilemap, offset); |
| 98 | 108 | } |
| 99 | 109 | |
| 100 | WRITE8_HANDLER( sonson_scroll_w ) | |
| 101 | { | |
| 102 | int row; | |
| 103 | ||
| 104 | for (row = 5; row < 32; row++) | |
| 105 | { | |
| 106 | tilemap_set_scrollx(bg_tilemap, row, data); | |
| 107 | } | |
| 108 | } | |
| 109 | ||
| 110 | 110 | WRITE8_HANDLER( sonson_flipscreen_w ) |
| 111 | 111 | { |
| 112 | 112 | if (flip_screen != (~data & 0x01)) |
| r1711 | r1712 | |
| 127 | 127 | |
| 128 | 128 | VIDEO_START( sonson ) |
| 129 | 129 | { |
| 130 | bg_tilemap = tilemap_create(get_bg_tile_info, tilemap_scan_rows, | |
| 131 | 8, 8, 32, 32); | |
| 130 | bg_tilemap = tilemap_create(get_bg_tile_info, tilemap_scan_rows, 8, 8, 32, 32); | |
| 132 | 131 | |
| 133 | 132 | tilemap_set_scroll_rows(bg_tilemap, 32); |
| 134 | 133 | } |
| r1711 | r1712 | |
| 165 | 164 | |
| 166 | 165 | VIDEO_UPDATE( sonson ) |
| 167 | 166 | { |
| 167 | int row; | |
| 168 | ||
| 169 | for (row = 5; row < 32; row++) | |
| 170 | tilemap_set_scrollx(bg_tilemap, row, *sonson_scroll); | |
| 171 | ||
| 168 | 172 | tilemap_draw(bitmap, cliprect, bg_tilemap, 0, 0); |
| 169 | 173 | draw_sprites(machine, bitmap, cliprect); |
| 170 | 174 | return 0; |
| r1711 | r1712 | |
|---|---|---|
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | |
| 49 | static void set_pens(r | |
| 49 | static void set_pens(colort | |
| 50 | 50 | { |
| 51 | 51 | int i; |
| 52 | 52 | |
| r1711 | r1712 | |
| 56 | 56 | |
| 57 | 57 | rgb_t color = MAKE_RGB(pal5bit(data >> 0), pal5bit(data >> 5), pal5bit(data >> 10)); |
| 58 | 58 | |
| 59 | colortable_palette_set_color( | |
| 59 | colortable_palette_set_color( | |
| 60 | 60 | } |
| 61 | 61 | } |
| 62 | 62 | |
| r1711 | r1712 | |
| 210 | 210 | { |
| 211 | 211 | static int old_pf1,old_pf2; |
| 212 | 212 | |
| 213 | set_pens(machine); | |
| 213 | set_pens(machine->colortable); | |
| 214 | 214 | |
| 215 | 215 | pf1_bankbase = 0x0000; |
| 216 | 216 | pf2_bankbase = 0x4000 * ((gfx_bank & 2) >> 1); |
| r1711 | r1712 | |
|---|---|---|
| 67 | 67 | 3, &resistances_rg[0], gweights, 0, 0, |
| 68 | 68 | 2, &resistances_b[0], bweights, 0, 0); |
| 69 | 69 | |
| 70 | for (i = 0; i < machine-> | |
| 70 | for (i = 0; i < machine->config->total_colors; i++) | |
| 71 | 71 | { |
| 72 | 72 | UINT16 pen; |
| 73 | 73 | int bit0, bit1, bit2, r, g, b; |
| r1711 | r1712 | |
|---|---|---|
| 65 | 65 | pen = newword & 0xff; \ |
| 66 | 66 | x = (offset % 512); /* 512 x 256 */ \ |
| 67 | 67 | y = (offset / 512); \ |
| 68 | *BITMAP_ADDR16(galpani2_bg8_bitmap_##_n_, y, x) = | |
| 68 | *BITMAP_ADDR16(galpani2_bg8_bitmap_##_n_, y, x) = | |
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | #define galpani2_BG8_PALETTE_W( _n_ ) \ |
| r1711 | r1712 | |
| 108 | 108 | int x = (offset % 256) + (offset / (256*256)) * 256 ; |
| 109 | 109 | int y = (offset / 256) % 256; |
| 110 | 110 | |
| 111 | *BITMAP_ADDR16(galpani2_bg15_bitmap, y, x) = | |
| 111 | *BITMAP_ADDR16(galpani2_bg15_bitmap, y, x) = | |
| 112 | 112 | } |
| 113 | 113 | |
| 114 | 114 |
| r1711 | r1712 | |
|---|---|---|
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | |
| 47 | static void set_pens(r | |
| 47 | static void set_pens(colort | |
| 48 | 48 | { |
| 49 | 49 | int i; |
| 50 | 50 | |
| r1711 | r1712 | |
| 54 | 54 | |
| 55 | 55 | rgb_t color = MAKE_RGB(pal5bit(data >> 0), pal5bit(data >> 5), pal5bit(data >> 10)); |
| 56 | 56 | |
| 57 | colortable_palette_set_color( | |
| 57 | colortable_palette_set_color( | |
| 58 | 58 | } |
| 59 | 59 | } |
| 60 | 60 | |
| r1711 | r1712 | |
| 173 | 173 | { |
| 174 | 174 | rectangle finalclip0, finalclip1; |
| 175 | 175 | |
| 176 | set_pens(machine); | |
| 176 | set_pens(machine->colortable); | |
| 177 | 177 | |
| 178 | 178 | fillbitmap(priority_bitmap,0,cliprect); |
| 179 | 179 | fillbitmap(bitmap,get_black_pen(machine),cliprect); |
| r1711 | r1712 | |
|---|---|---|
| 15 | 15 | static int collision[2]; |
| 16 | 16 | |
| 17 | 17 | |
| 18 | PALETTE_INIT( sprint2 ) | |
| 19 | { | |
| 20 | /* allocate the colortable */ | |
| 21 | machine->colortable = colortable_alloc(machine, 4); | |
| 22 | ||
| 23 | colortable_palette_set_color(machine->colortable, 0, MAKE_RGB(0x00, 0x00, 0x00)); | |
| 24 | colortable_palette_set_color(machine->colortable, 1, MAKE_RGB(0x5b, 0x5b, 0x5b)); | |
| 25 | colortable_palette_set_color(machine->colortable, 2, MAKE_RGB(0xa4, 0xa4, 0xa4)); | |
| 26 | colortable_palette_set_color(machine->colortable, 3, MAKE_RGB(0xff, 0xff, 0xff)); | |
| 27 | ||
| 28 | colortable_entry_set_value(machine->colortable, 0x0, 1); /* black playfield */ | |
| 29 | colortable_entry_set_value(machine->colortable, 0x1, 0); | |
| 30 | colortable_entry_set_value(machine->colortable, 0x2, 1); /* white playfield */ | |
| 31 | colortable_entry_set_value(machine->colortable, 0x3, 3); | |
| 32 | ||
| 33 | colortable_entry_set_value(machine->colortable, 0x4, 1); /* car #1 */ | |
| 34 | colortable_entry_set_value(machine->colortable, 0x5, 3); | |
| 35 | colortable_entry_set_value(machine->colortable, 0x6, 1); /* car #2 */ | |
| 36 | colortable_entry_set_value(machine->colortable, 0x7, 0); | |
| 37 | colortable_entry_set_value(machine->colortable, 0x8, 1); /* car #3 */ | |
| 38 | colortable_entry_set_value(machine->colortable, 0x9, 2); | |
| 39 | colortable_entry_set_value(machine->colortable, 0xa, 1); /* car #4 */ | |
| 40 | colortable_entry_set_value(machine->colortable, 0xb, 2); | |
| 41 | } | |
| 42 | ||
| 43 | ||
| 18 | 44 | static TILE_GET_INFO( get_tile_info ) |
| 19 | 45 | { |
| 20 | 46 | UINT8 code = sprint2_video_ram[tile_index]; |
| r1711 | r1712 | |
| 58 | 84 | } |
| 59 | 85 | |
| 60 | 86 | |
| 61 | static UINT8 collision_check(rectangle* rect) | |
| 87 | static UINT8 collision_check(colortable_t *colortable, rectangle* rect) | |
| 62 | 88 | { |
| 63 | 89 | UINT8 data = 0; |
| 64 | 90 | |
| r1711 | r1712 | |
| 66 | 92 | int y; |
| 67 | 93 | |
| 68 | 94 | for (y = rect->min_y; y <= rect->max_y; y++) |
| 69 | { | |
| 70 | 95 | for (x = rect->min_x; x <= rect->max_x; x++) |
| 71 | 96 | { |
| 72 | | |
| 97 | UINT16 a = colortable_entry_get_value(colortable, | |
| 73 | 98 | |
| 74 | 99 | if (a == 0) |
| 75 | { | |
| 76 | 100 | data |= 0x40; |
| 77 | ||
| 101 | ||
| 78 | 102 | if (a == 3) |
| 79 | { | |
| 80 | 103 | data |= 0x80; |
| 81 | } | |
| 82 | 104 | } |
| 83 | } | |
| 84 | 105 | |
| 85 | 106 | return data; |
| 86 | 107 | } |
| r1711 | r1712 | |
| 165 | 186 | get_sprite_y(i), |
| 166 | 187 | &rect, TRANSPARENCY_PEN, 1); |
| 167 | 188 | |
| 168 | collision[i] |= collision_check(&rect); | |
| 189 | collision[i] |= collision_check(machine->colortable, &rect); | |
| 169 | 190 | |
| 170 | 191 | /* check for sprite-sprite collisions */ |
| 171 | 192 | |
| 172 | 193 | for (j = 0; j < 4; j++) |
| 173 | { | |
| 174 | 194 | if (j != i) |
| 175 | 195 | { |
| 176 | 196 | drawgfx(helper, machine->gfx[1], |
| r1711 | r1712 | |
| 181 | 201 | get_sprite_y(j), |
| 182 | 202 | &rect, TRANSPARENCY_PEN, 0); |
| 183 | 203 | } |
| 184 | } | |
| 185 | 204 | |
| 186 | 205 | drawgfx(helper, machine->gfx[1], |
| 187 | 206 | get_sprite_code(i), |
| r1711 | r1712 | |
| 191 | 210 | get_sprite_y(i), |
| 192 | 211 | &rect, TRANSPARENCY_PEN, 1); |
| 193 | 212 | |
| 194 | collision[i] |= collision_check(&rect); | |
| 213 | collision[i] |= collision_check(machine->colortable, &rect); | |
| 195 | 214 | } |
| 196 | 215 | } |
| r1711 | r1712 | |
|---|---|---|
| 24 | 24 | { |
| 25 | 25 | int i; |
| 26 | 26 | |
| 27 | for (i = 0;i < machine-> | |
| 27 | for (i = 0;i < machine->config->total_colors; i++) | |
| 28 | 28 | { |
| 29 | 29 | int bit0,bit1,bit2,r,g,b; |
| 30 | 30 | |
| r1711 | r1712 | |
| 95 | 95 | int offs; |
| 96 | 96 | |
| 97 | 97 | |
| 98 | fillbitmap(bitmap, | |
| 98 | fillbitmap(bitmap, | |
| 99 | 99 | |
| 100 | 100 | |
| 101 | 101 | /* Draw the background priority characters */ |
| r1711 | r1712 | |
|---|---|---|
| 99 | 99 | }; |
| 100 | 100 | |
| 101 | 101 | |
| 102 | for (i = 0; i < machine-> | |
| 102 | for (i = 0; i < machine->config->total_colors; i++) | |
| 103 | 103 | { |
| 104 | 104 | UINT8 pen, r, g, b; |
| 105 | 105 | int bit0, bit1, bit2; |
| r1711 | r1712 | |
| 237 | 237 | /* draw the playfield elements in the correct priority order */ |
| 238 | 238 | |
| 239 | 239 | /* score area - position determined by bit 4 of the vertical timing PROM */ |
| 240 | plot_box(bitmap,0,0,RIGHT_BORDER+1,TOP_BORDER, | |
| 240 | plot_box(bitmap,0,0,RIGHT_BORDER+1,TOP_BORDER, | |
| 241 | 241 | |
| 242 | 242 | /* field */ |
| 243 | plot_box(bitmap,0,TOP_BORDER,RIGHT_BORDER+1,BOTTOM_BORDER-TOP_BORDER+1, | |
| 243 | plot_box(bitmap,0,TOP_BORDER,RIGHT_BORDER+1,BOTTOM_BORDER-TOP_BORDER+1, | |
| 244 | 244 | |
| 245 | 245 | /* car 1 */ |
| 246 | 246 | draw_sprite(machine, bitmap, cliprect, |
| r1711 | r1712 | |
| 248 | 248 | 0, carpolo_spriteram[0x0c] & 0x0f, CAR1_COLOR); |
| 249 | 249 | |
| 250 | 250 | /* border - position determined by bit 4 and 7 of the vertical timing PROM */ |
| 251 | plot_box(bitmap,0,TOP_BORDER, RIGHT_BORDER+1,1,machine->pens[LINE_PEN]); | |
| 252 | plot_box(bitmap,0,BOTTOM_BORDER,RIGHT_BORDER+1,1,machine->pens[LINE_PEN]); | |
| 253 | plot_box(bitmap,LEFT_BORDER,TOP_BORDER, 1,BOTTOM_BORDER-TOP_BORDER+1,machine->pens[LINE_PEN]); | |
| 254 | plot_box(bitmap,RIGHT_BORDER,TOP_BORDER,1,BOTTOM_BORDER-TOP_BORDER+1,machine->pens[LINE_PEN]); | |
| 251 | plot_box(bitmap,0,TOP_BORDER, RIGHT_BORDER+1,1,LINE_PEN); | |
| 252 | plot_box(bitmap,0,BOTTOM_BORDER,RIGHT_BORDER+1,1,LINE_PEN); | |
| 253 | plot_box(bitmap,LEFT_BORDER,TOP_BORDER, 1,BOTTOM_BORDER-TOP_BORDER+1,LINE_PEN); | |
| 254 | plot_box(bitmap,RIGHT_BORDER,TOP_BORDER,1,BOTTOM_BORDER-TOP_BORDER+1,LINE_PEN); | |
| 255 | 255 | |
| 256 | 256 | /* car 4 */ |
| 257 | 257 | draw_sprite(machine, bitmap, cliprect, |
| r1711 | r1712 | |
| 371 | 371 | |
| 372 | 372 | normalize_coordinates(&x1, &y1, &x2, &y2); |
| 373 | 373 | |
| 374 | fillbitmap(sprite_sprite_collision_bitmap1, machine->pens[0], 0); | |
| 375 | fillbitmap(sprite_sprite_collision_bitmap2, machine->pens[0], 0); | |
| 374 | fillbitmap(sprite_sprite_collision_bitmap1, 0, 0); | |
| 375 | fillbitmap(sprite_sprite_collision_bitmap2, 0, 0); | |
| 376 | 376 | |
| 377 | 377 | drawgfx(sprite_sprite_collision_bitmap1,machine->gfx[0], |
| 378 | 378 | code1,0, |
| r1711 | r1712 | |
| 388 | 388 | |
| 389 | 389 | for (x = x1; x < x1 + SPRITE_WIDTH; x++) |
| 390 | 390 | for (y = y1; y < y1 + SPRITE_HEIGHT; y++) |
| 391 | if ((*BITMAP_ADDR16(sprite_sprite_collision_bitmap1, y, x) == machine->pens[1]) && | |
| 392 | (*BITMAP_ADDR16(sprite_sprite_collision_bitmap2, y, x) == machine->pens[1])) | |
| 391 | if ((*BITMAP_ADDR16(sprite_sprite_collision_bitmap1, y, x) == 1) && | |
| 392 | (*BITMAP_ADDR16(sprite_sprite_collision_bitmap2, y, x) == 1)) | |
| 393 | 393 | { |
| 394 | 394 | *col_x = (x1 + x) & 0x0f; |
| 395 | 395 | *col_y = (y1 + y) & 0x0f; |
| r1711 | r1712 | |
| 426 | 426 | |
| 427 | 427 | normalize_coordinates(&x1, &y1, &x2, &y2); |
| 428 | 428 | |
| 429 | fillbitmap(sprite_goal_collision_bitmap1, machine->pens[0], 0); | |
| 430 | fillbitmap(sprite_goal_collision_bitmap2, machine->pens[0], 0); | |
| 429 | fillbitmap(sprite_goal_collision_bitmap1, 0, 0); | |
| 430 | fillbitmap(sprite_goal_collision_bitmap2, 0, 0); | |
| 431 | 431 | |
| 432 | 432 | drawgfx(sprite_goal_collision_bitmap1,machine->gfx[0], |
| 433 | 433 | code1,0, |
| r1711 | r1712 | |
| 444 | 444 | |
| 445 | 445 | for (x = x1; x < x1 + SPRITE_WIDTH; x++) |
| 446 | 446 | for (y = y1; y < y1 + SPRITE_HEIGHT; y++) |
| 447 | if ((*BITMAP_ADDR16(sprite_goal_collision_bitmap1, y, x) == | |
| 447 | if ((*BITMAP_ADDR16(sprite_goal_collision_bitmap1, y, x) == | |
| 448 | 448 | { |
| 449 | 449 | pen_t pix = *BITMAP_ADDR16(sprite_goal_collision_bitmap2, y, x); |
| 450 | 450 | |
| 451 | if (pix == | |
| 451 | if (pix == | |
| 452 | 452 | { |
| 453 | 453 | collided = 1; |
| 454 | 454 | break; |
| 455 | 455 | } |
| 456 | 456 | |
| 457 | if (!goalpost_only && (pix == | |
| 457 | if (!goalpost_only && (pix == | |
| 458 | 458 | { |
| 459 | 459 | collided = 2; |
| 460 | 460 | break; |
| r1711 | r1712 | |
| 485 | 485 | |
| 486 | 486 | normalize_coordinates(&x1, &y1, &x2, &y2); |
| 487 | 487 | |
| 488 | fillbitmap(sprite_goal_collision_bitmap1, machine->pens[0], 0); | |
| 489 | fillbitmap(sprite_goal_collision_bitmap2, machine->pens[0], 0); | |
| 488 | fillbitmap(sprite_goal_collision_bitmap1, 0, 0); | |
| 489 | fillbitmap(sprite_goal_collision_bitmap2, 0, 0); | |
| 490 | 490 | |
| 491 | 491 | drawgfx(sprite_goal_collision_bitmap1,machine->gfx[0], |
| 492 | 492 | code1,0, |
| r1711 | r1712 | |
| 503 | 503 | |
| 504 | 504 | for (x = x1; x < x1 + SPRITE_WIDTH; x++) |
| 505 | 505 | for (y = y1; y < y1 + SPRITE_HEIGHT; y++) |
| 506 | if ((*BITMAP_ADDR16(sprite_goal_collision_bitmap1, y, x) == | |
| 506 | if ((*BITMAP_ADDR16(sprite_goal_collision_bitmap1, y, x) == | |
| 507 | 507 | { |
| 508 | 508 | pen_t pix = *BITMAP_ADDR16(sprite_goal_collision_bitmap2, y, x); |
| 509 | 509 | |
| 510 | if (pix == | |
| 510 | if (pix == | |
| 511 | 511 | { |
| 512 | 512 | collided = 1; |
| 513 | 513 | break; |
| 514 | 514 | } |
| 515 | 515 | |
| 516 | if (!goalpost_only && (pix == | |
| 516 | if (!goalpost_only && (pix == | |
| 517 | 517 | { |
| 518 | 518 | collided = 2; |
| 519 | 519 | break; |
| r1711 | r1712 | |
| 543 | 543 | |
| 544 | 544 | for (x = 0; x < SPRITE_WIDTH; x++) |
| 545 | 545 | for (y = 0; y < SPRITE_HEIGHT; y++) |
| 546 | if ((*BITMAP_ADDR16(sprite_border_collision_bitmap, y, x) == | |
| 546 | if ((*BITMAP_ADDR16(sprite_border_collision_bitmap, y, x) == | |
| 547 | 547 | { |
| 548 | 548 | if (((UINT8)(x1 + x) == LEFT_BORDER) || |
| 549 | 549 | ((UINT8)(x1 + x) == RIGHT_BORDER)) |
| r1711 | r1712 | |
|---|---|---|
| 33 | 33 | { |
| 34 | 34 | int i; |
| 35 | 35 | |
| 36 | for (i = 0;i < 0x10;i++) | |
| 36 | /* allocate the colortable */ | |
| 37 | machine->colortable = colortable_alloc(machine, 0x10); | |
| 38 | ||
| 39 | /* create a lookup table for the palette */ | |
| 40 | for (i = 0; i < 0x10; i++) | |
| 37 | 41 | { |
| 38 | int bit0,bit1,bit2,r,g,b; | |
| 42 | int bit0, bit1, bit2; | |
| 43 | int r, g, b; | |
| 39 | 44 | |
| 40 | 45 | /* red component */ |
| 41 | 46 | bit0 = (color_prom[i] >> 0) & 0x01; |
| 42 | 47 | bit1 = (color_prom[i] >> 1) & 0x01; |
| 43 | 48 | bit2 = (color_prom[i] >> 2) & 0x01; |
| 44 | 49 | r = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 50 | ||
| 45 | 51 | /* green component */ |
| 46 | 52 | bit0 = (color_prom[i] >> 3) & 0x01; |
| 47 | 53 | bit1 = (color_prom[i] >> 4) & 0x01; |
| 48 | 54 | bit2 = (color_prom[i] >> 5) & 0x01; |
| 49 | 55 | g = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 56 | ||
| 50 | 57 | /* blue component */ |
| 51 | 58 | bit0 = 0; |
| 52 | 59 | bit1 = (color_prom[i] >> 6) & 0x01; |
| 53 | 60 | bit2 = (color_prom[i] >> 7) & 0x01; |
| 54 | 61 | b = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 55 | 62 | |
| 56 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); | |
| 63 | colortable_palette_set_color(machine->colortable, i, MAKE_RGB(r, g, b)); | |
| 57 | 64 | } |
| 58 | 65 | |
| 59 | color_prom += 0x10; | |
| 66 | /* color_prom now points to the beginning of the lookup table */ | |
| 67 | color_prom += 0x20; | |
| 60 | 68 | |
| 61 | /* Colortable entry */ | |
| 62 | for(i = 0; i < 0x100; i++) | |
| 63 | colortable[i] = color_prom[i]; | |
| 69 | for (i = 0; i < 0x100; i++) | |
| 70 | { | |
| 71 | UINT8 ctabentry = color_prom[i] & 0x0f; | |
| 72 | colortable_entry_set_value(machine->colortable, i, ctabentry); | |
| 73 | } | |
| 64 | 74 | } |
| 65 | 75 | |
| 66 | 76 | WRITE8_HANDLER( speedatk_videoram_w ) |
| r1711 | r1712 | |
| 85 | 95 | int code, color, region; |
| 86 | 96 | |
| 87 | 97 | code = videoram[tile_index] + ((colorram[tile_index] & 0xe0) << 3); |
| 88 | color = colorram[tile_index] & 0x | |
| 98 | color = colorram[tile_index] & 0x1f; | |
| 89 | 99 | region = (colorram[tile_index] & 0x10) >> 4; |
| 90 | 100 | |
| 91 | color += 2; | |
| 92 | if(region) | |
| 93 | color += 0x10; | |
| 94 | if (region == 1) | |
| 95 | color &= 0x1f; | |
| 96 | ||
| 97 | 101 | SET_TILE_INFO(region, code, color, 0); |
| 98 | 102 | } |
| 99 | 103 |
| r1711 | r1712 | |
|---|---|---|
| 256 | 256 | { |
| 257 | 257 | int sy,row,height,src,bank; |
| 258 | 258 | UINT8 *sprite_base; |
| 259 | | |
| 259 | i | |
| 260 | 260 | INT16 skip; /* bytes to skip before drawing each row (can be negative) */ |
| 261 | 261 | UINT8 *gfx; |
| 262 | 262 | |
| r1711 | r1712 | |
| 269 | 269 | skip = sprite_base[SPR_SKIP_LO] + (sprite_base[SPR_SKIP_HI] << 8); |
| 270 | 270 | |
| 271 | 271 | height = sprite_base[SPR_Y_BOTTOM] - sprite_base[SPR_Y_TOP]; |
| 272 | sprite_palette | |
| 272 | sprite_palette_b | |
| 273 | 273 | |
| 274 | 274 | sy = sprite_base[SPR_Y_TOP] + 1; |
| 275 | 275 | |
| r1711 | r1712 | |
| 320 | 320 | |
| 321 | 321 | if (color1 == 15) break; |
| 322 | 322 | if (color1) |
| 323 | draw_pixel(bitmap,x,y,x_flipped,y_flipped,spr_number,sprite_palette | |
| 323 | draw_pixel(bitmap,x,y,x_flipped,y_flipped,spr_number,sprite_palette_base+color1 | |
| 324 | 324 | x++; |
| 325 | 325 | x_flipped += flip_screen ? -1 : 1; |
| 326 | 326 | |
| 327 | 327 | if (color2 == 15) break; |
| 328 | 328 | if (color2) |
| 329 | draw_pixel(bitmap,x,y,x_flipped,y_flipped,spr_number,sprite_palette | |
| 329 | draw_pixel(bitmap,x,y,x_flipped,y_flipped,spr_number,sprite_palette_base+color2 | |
| 330 | 330 | x++; |
| 331 | 331 | x_flipped += flip_screen ? -1 : 1; |
| 332 | 332 | } |
| r1711 | r1712 | |
|---|---|---|
| 185 | 185 | static void update_pixel(int vram, int x, int y) |
| 186 | 186 | { |
| 187 | 187 | UINT16 color = niyanpai_videoram[vram][(y * Machine->screen[0].width) + x]; |
| 188 | *BITMAP_ADDR16(niyanpai_tmpbitmap[vram], y, x) = | |
| 188 | *BITMAP_ADDR16(niyanpai_tmpbitmap[vram], y, x) = | |
| 189 | 189 | } |
| 190 | 190 | |
| 191 | 191 | static TIMER_CALLBACK( blitter_timer_callback ) |
| r1711 | r1712 | |
|---|---|---|
| 2 | 2 | |
| 3 | 3 | Atari Return of the Jedi hardware |
| 4 | 4 | |
| 5 | driver by Dan Boris | |
| 6 | ||
| 5 | 7 | Return of the Jedi has a peculiar playfield/motion object |
| 6 | 8 | priority system. That is, there is no priority system ;-) |
| 7 | 9 | The color of the pixel which appears on screen depends on |
| r1711 | r1712 | |
| 13 | 15 | ***************************************************************************/ |
| 14 | 16 | |
| 15 | 17 | #include "driver.h" |
| 18 | #include "deprecat.h" | |
| 16 | 19 | #include "jedi.h" |
| 17 | 20 | |
| 18 | 21 | |
| 19 | 22 | #define NUM_PENS (0x1000) |
| 20 | 23 | |
| 21 | 24 | |
| 22 | /* globals */ | |
| 23 | UINT8 *jedi_foregroundram; | |
| 24 | UINT8 *jedi_backgroundram; | |
| 25 | UINT8 *jedi_spriteram; | |
| 26 | UINT8 *jedi_paletteram; | |
| 27 | UINT8 *jedi_foreground_bank; | |
| 28 | 25 | |
| 29 | /* local variables */ | |
| 30 | static UINT32 jedi_vscroll; | |
| 31 | static UINT32 jedi_hscroll; | |
| 32 | static UINT8 video_off; | |
| 33 | static UINT8 smoothing_table; | |
| 34 | ||
| 35 | ||
| 36 | ||
| 37 | 26 | /************************************* |
| 38 | 27 | * |
| 39 | * | |
| 28 | * S | |
| 40 | 29 | * |
| 41 | 30 | *************************************/ |
| 42 | 31 | |
| 43 | VIDEO_START( jedi ) | |
| 32 | static VIDEO_START( jedi ) | |
| 44 | 33 | { |
| 34 | jedi_state *state = machine->driver_data; | |
| 35 | ||
| 45 | 36 | /* register for saving */ |
| 46 | state_save_register_global(jedi_vscroll); | |
| 47 | state_save_register_global(jedi_hscroll); | |
| 48 | state_save_register_global(video_off); | |
| 49 | state_save_register_global(smoothing_table); | |
| 37 | state_save_register_global(state->vscroll); | |
| 38 | state_save_register_global(state->hscroll); | |
| 50 | 39 | } |
| 51 | 40 | |
| 52 | 41 | |
| r1711 | r1712 | |
| 77 | 66 | * |
| 78 | 67 | *************************************/ |
| 79 | 68 | |
| 80 | static void get_pens(pen_t *pens) | |
| 69 | static void get_pens(jedi_state *state, pen_t *pens) | |
| 81 | 70 | { |
| 82 | 71 | offs_t offs; |
| 83 | 72 | |
| r1711 | r1712 | |
| 85 | 74 | { |
| 86 | 75 | int r, g, b, bits, intensity; |
| 87 | 76 | |
| 88 | UINT16 color = | |
| 77 | UINT16 color = state-> | |
| 89 | 78 | |
| 90 | 79 | intensity = (color >> 9) & 7; |
| 91 | 80 | bits = (color >> 6) & 7; |
| r1711 | r1712 | |
| 100 | 89 | } |
| 101 | 90 | |
| 102 | 91 | |
| 103 | static void do_pen_lookup(mame_bitmap *bitmap, const rectangle *cliprect) | |
| 92 | static void do_pen_lookup(jedi_state *state, mame_bitmap *bitmap, const rectangle *cliprect) | |
| 104 | 93 | { |
| 105 | 94 | int y, x; |
| 106 | 95 | pen_t pens[NUM_PENS]; |
| 107 | 96 | |
| 108 | get_pens(pens); | |
| 97 | get_pens(state, pens); | |
| 109 | 98 | |
| 110 | 99 | for (y = cliprect->min_y; y <= cliprect->max_y; y++) |
| 111 | 100 | for(x = cliprect->min_x; x <= cliprect->max_x; x++) |
| r1711 | r1712 | |
| 122 | 111 | |
| 123 | 112 | WRITE8_HANDLER( jedi_vscroll_w ) |
| 124 | 113 | { |
| 125 | jedi_vscroll = data | (offset << 8); | |
| 114 | jedi_state *state = Machine->driver_data; | |
| 115 | ||
| 116 | state->vscroll = data | (offset << 8); | |
| 126 | 117 | } |
| 127 | 118 | |
| 128 | 119 | |
| 129 | 120 | WRITE8_HANDLER( jedi_hscroll_w ) |
| 130 | 121 | { |
| 131 | jedi_hscroll = data | (offset << 8); | |
| 132 | } | |
| 122 | jedi_state *state = Machine->driver_data; | |
| 133 | 123 | |
| 134 | ||
| 135 | ||
| 136 | /************************************* | |
| 137 | * | |
| 138 | * Video control | |
| 139 | * | |
| 140 | *************************************/ | |
| 141 | ||
| 142 | WRITE8_HANDLER( jedi_video_off_w ) | |
| 143 | { | |
| 144 | video_off = data; | |
| 124 | state->hscroll = data | (offset << 8); | |
| 145 | 125 | } |
| 146 | 126 | |
| 147 | 127 | |
| 148 | WRITE8_HANDLER( jedi_PIXIRAM_w ) | |
| 149 | { | |
| 150 | /* this should really be 0x07, but the PROMs were | |
| 151 | dumped at half size */ | |
| 152 | smoothing_table = data & 0x03; | |
| 153 | } | |
| 154 | 128 | |
| 155 | ||
| 156 | ||
| 157 | 129 | /************************************* |
| 158 | 130 | * |
| 159 | * Foreground drawing | |
| 131 | * Background/text layer drawing | |
| 132 | * with smoothing | |
| 160 | 133 | * |
| 161 | 134 | *************************************/ |
| 162 | 135 | |
| 163 | static void draw_ | |
| 136 | static void draw_background_and_text(jedi_state *state, mame_bitmap *bitmap, const rectangle *cliprect) | |
| 164 | 137 | { |
| 165 | offs_t offs; | |
| 166 | UINT32 *dst = BITMAP_ADDR32(bitmap, 0, 0); | |
| 167 | ||
| 168 | /* draw the bitmap 4 pixels at a time */ | |
| 169 | for (offs = 0; offs < 0x7c00; offs++) | |
| 170 | { | |
| 171 | UINT16 code = ((*jedi_foreground_bank & 0x80) << 1) | | |
| 172 | jedi_foregroundram[((offs & 0x7c00) >> 4) | ((offs & 0x7e) >> 1)]; | |
| 173 | ||
| 174 | UINT8 data = memory_region(REGION_GFX1)[(code << 4) | ((offs & 0x380) >> 6) | (offs & 0x01)]; | |
| 175 | ||
| 176 | /* the background pixel determines pen address bits A8 and A9 */ | |
| 177 | dst[0] = (dst[0] & 0xff) | ((data & 0xc0) << 2); | |
| 178 | dst[1] = (dst[1] & 0xff) | ((data & 0x30) << 4); | |
| 179 | dst[2] = (dst[2] & 0xff) | ((data & 0x0c) << 6); | |
| 180 | dst[3] = (dst[3] & 0xff) | ((data & 0x03) << 8); | |
| 181 | ||
| 182 | dst = dst + 4; | |
| 183 | } | |
| 184 | } | |
| 185 | ||
| 186 | ||
| 187 | ||
| 188 | /************************************* | |
| 189 | * | |
| 190 | * Background drawing with smoothing | |
| 191 | * | |
| 192 | *************************************/ | |
| 193 | ||
| 194 | static void draw_and_smooth_background(mame_bitmap *bitmap, const rectangle *cliprect) | |
| 195 | { | |
| 196 | 138 | int y; |
| 197 | | |
| 139 | int | |
| 198 | 140 | |
| 199 | UINT8 *prom1 = &memory_region(REGION_PROMS)[0x0000 | (smoothing_table << 8)]; | |
| 200 | UINT8 *prom2 = &memory_region(REGION_PROMS)[0x0800 | (smoothing_table << 8)]; | |
| 141 | UINT8 *tx_gfx = memory_region(REGION_GFX1); | |
| 142 | UINT8 *bg_gfx = memory_region(REGION_GFX2); | |
| 143 | UINT8 *prom1 = &memory_region(REGION_PROMS)[0x0000 | ((*state->smoothing_table & 0x03) << 8)]; | |
| 144 | UINT8 *prom2 = &memory_region(REGION_PROMS)[0x0800 | ((*state->smoothing_table & 0x03) << 8)]; | |
| 145 | int vscroll = state->vscroll; | |
| 146 | int hscroll = state->hscroll; | |
| 147 | int tx_bank = *state->foreground_bank; | |
| 148 | UINT8 *tx_ram = state->foregroundram; | |
| 149 | UINT8 *bg_ram = state->backgroundram; | |
| 201 | 150 | |
| 202 | memset(background_line_buffer, 0, 0x200 * sizeof( | |
| 151 | memset(background_line_buffer, 0, 0x200 * sizeof(int | |
| 203 | 152 | |
| 204 | 153 | for (y = cliprect->min_y; y <= cliprect->max_y; y++) |
| 205 | 154 | { |
| 206 | 155 | int x; |
| 207 | | |
| 156 | int | |
| 208 | 157 | |
| 209 | 158 | for (x = cliprect->min_x; x <= cliprect->max_x; x += 2) |
| 210 | 159 | { |
| 211 | UINT32 col; | |
| 212 | UINT32 tempcol; | |
| 213 | offs_t gfx_offs; | |
| 214 | UINT8 data1; | |
| 215 | UINT8 data2; | |
| 160 | int tx_col1, tx_col2, bg_col; | |
| 161 | int bg_tempcol; | |
| 162 | offs_t tx_gfx_offs, bg_gfx_offs; | |
| 163 | int tx_data, bg_data1, bg_data2; | |
| 216 | 164 | |
| 217 | int sy = y + jedi_vscroll; | |
| 218 | int sx = x + jedi_hscroll; | |
| 165 | int sy = y + vscroll; | |
| 166 | int sx = x + hscroll; | |
| 219 | 167 | |
| 220 | offs_t backgroundram_offs = ((sy & 0x1f0) << 1) | ((sx & 0x1f0) >> 4); | |
| 168 | /* determine offsets into video memory */ | |
| 169 | offs_t tx_offs = ((y & 0xf8) << 3) | (x >> 3); | |
| 170 | offs_t bg_offs = ((sy & 0x1f0) << 1) | ((sx & 0x1f0) >> 4); | |
| 221 | 171 | |
| 222 | /* shuffle the bank bits in */ | |
| 223 | UINT8 bank = jedi_backgroundram[0x0400 | backgroundram_offs]; | |
| 224 | UINT16 code = jedi_backgroundram[0x0000 | backgroundram_offs] | | |
| 225 | ((bank & 0x01) << 8) | | |
| 226 | ((bank & 0x08) << 6) | | |
| 227 | ((bank & 0x02) << 9); | |
| 172 | /* get the character codes */ | |
| 173 | int tx_code = ((tx_bank & 0x80) << 1) | tx_ram[tx_offs]; | |
| 174 | int bg_bank = bg_ram[0x0400 | bg_offs]; | |
| 175 | int bg_code = bg_ram[0x0000 | bg_offs] | | |
| 176 | ((bg_bank & 0x01) << 8) | | |
| 177 | ((bg_bank & 0x08) << 6) | | |
| 178 | ((bg_bank & 0x02) << 9); | |
| 228 | 179 | |
| 229 | /* flip X */ | |
| 230 | if (bank & 0x04) | |
| 180 | /* background flip X */ | |
| 181 | if (bg_bank & 0x04) | |
| 231 | 182 | sx = sx ^ 0x0f; |
| 232 | 183 | |
| 233 | /* get the pointer to the graphics */ | |
| 234 | gfx_offs = (code << 4) | (sy & 0x0e) | (((sx & 0x08) >> 3)); | |
| 184 | /* calculate the address of the gfx data */ | |
| 185 | tx_gfx_offs = (tx_code << 4) | ((y & 0x07) << 1) | ((( x & 0x04) >> 2)); | |
| 186 | bg_gfx_offs = (bg_code << 4) | (sy & 0x0e) | (((sx & 0x08) >> 3)); | |
| 235 | 187 | |
| 236 | data1 = memory_region(REGION_GFX2)[0x0000 | gfx_offs]; | |
| 237 | data2 = memory_region(REGION_GFX2)[0x8000 | gfx_offs]; | |
| 188 | /* get the gfx data */ | |
| 189 | tx_data = tx_gfx[ tx_gfx_offs]; | |
| 190 | bg_data1 = bg_gfx[0x0000 | bg_gfx_offs]; | |
| 191 | bg_data2 = bg_gfx[0x8000 | bg_gfx_offs]; | |
| 238 | 192 | |
| 239 | /* the foreground pixel determines pen address bits A0-A3 */ | |
| 193 | /* the text layer pixel determines pen address bits A8 and A9 */ | |
| 194 | if (x & 0x02) | |
| 195 | { | |
| 196 | tx_col1 = ((tx_data & 0x0c) << 6); | |
| 197 | tx_col2 = ((tx_data & 0x03) << 8); | |
| 198 | } | |
| 199 | else | |
| 200 | { | |
| 201 | tx_col1 = ((tx_data & 0xc0) << 2); | |
| 202 | tx_col2 = ((tx_data & 0x30) << 4); | |
| 203 | } | |
| 204 | ||
| 205 | /* the background pixel determines pen address bits A0-A3 */ | |
| 240 | 206 | switch (sx & 0x06) |
| 241 | 207 | { |
| 242 | case 0x00: col = ((data1 & 0x80) >> 4) | ((data1 & 0x08) >> 1) | ((data2 & 0x80) >> 6) | ((data2 & 0x08) >> 3); break; | |
| 243 | case 0x02: col = ((data1 & 0x40) >> 3) | ((data1 & 0x04) >> 0) | ((data2 & 0x40) >> 5) | ((data2 & 0x04) >> 2); break; | |
| 244 | case 0x04: col = ((data1 & 0x20) >> 2) | ((data1 & 0x02) << 1) | ((data2 & 0x20) >> 4) | ((data2 & 0x02) >> 1); break; | |
| 245 | default: col = ((data1 & 0x10) >> 1) | ((data1 & 0x01) << 2) | ((data2 & 0x10) >> 3) | ((data2 & 0x01) >> 0); break; | |
| 208 | case 0x00: bg_col = ((bg_data1 & 0x80) >> 4) | ((bg_data1 & 0x08) >> 1) | ((bg_data2 & 0x80) >> 6) | ((bg_data2 & 0x08) >> 3); break; | |
| 209 | case 0x02: bg_col = ((bg_data1 & 0x40) >> 3) | ((bg_data1 & 0x04) >> 0) | ((bg_data2 & 0x40) >> 5) | ((bg_data2 & 0x04) >> 2); break; | |
| 210 | case 0x04: bg_col = ((bg_data1 & 0x20) >> 2) | ((bg_data1 & 0x02) << 1) | ((bg_data2 & 0x20) >> 4) | ((bg_data2 & 0x02) >> 1); break; | |
| 211 | default: bg_col = ((bg_data1 & 0x10) >> 1) | ((bg_data1 & 0x01) << 2) | ((bg_data2 & 0x10) >> 3) | ((bg_data2 & 0x01) >> 0); break; | |
| 246 | 212 | } |
| 247 | 213 | |
| 248 | 214 | /* the first pixel is smoothed via a lookup using the current and last pixel value - |
| 249 | 215 | the next pixel just uses the current value directly. After we done with a pixel |
| 250 | 216 | save it for later in the line buffer RAM */ |
| 251 | tempcol = prom1[(last_col << 4) | col]; | |
| 252 | *BITMAP_ADDR32(bitmap, y, x + 0) = prom2[(background_line_buffer[x + 0] << 4) | tempcol]; | |
| 253 | *BITMAP_ADDR32(bitmap, y, x + 1) = prom2[(background_line_buffer[x + 1] << 4) | col]; | |
| 254 | background_line_buffer[x + 0] = tempcol; | |
| 255 | background_line_buffer[x + 1] = col; | |
| 217 | bg_tempcol = prom1[(bg_last_col << 4) | bg_col]; | |
| 218 | *BITMAP_ADDR32(bitmap, y, x + 0) = tx_col1 | prom2[(background_line_buffer[x + 0] << 4) | bg_tempcol]; | |
| 219 | *BITMAP_ADDR32(bitmap, y, x + 1) = tx_col2 | prom2[(background_line_buffer[x + 1] << 4) | bg_col]; | |
| 220 | background_line_buffer[x + 0] = bg_tempcol; | |
| 221 | background_line_buffer[x + 1] = bg_col; | |
| 256 | 222 | |
| 257 | last_col = col; | |
| 223 | bg_last_col = bg_col; | |
| 258 | 224 | } |
| 259 | 225 | } |
| 260 | 226 | } |
| r1711 | r1712 | |
| 267 | 233 | * |
| 268 | 234 | *************************************/ |
| 269 | 235 | |
| 270 | static void draw_sprites(mame_bitmap *bitmap) | |
| 236 | static void draw_sprites(jedi_state *state, mame_bitmap *bitmap, const rectangle *cliprect) | |
| 271 | 237 | { |
| 272 | 238 | offs_t offs; |
| 239 | UINT8 *spriteram = state->spriteram; | |
| 273 | 240 | |
| 274 | 241 | for (offs = 0x00; offs < 0x30; offs++) |
| 275 | 242 | { |
| r1711 | r1712 | |
| 278 | 245 | UINT8 *gfx; |
| 279 | 246 | |
| 280 | 247 | /* coordinates adjustments made to match screenshot */ |
| 281 | UINT8 y = 240 - jedi_spriteram[offs + 0x80] + 1; | |
| 282 | int flip_x = jedi_spriteram[offs + 0x40] & 0x10; | |
| 283 | int flip_y = jedi_spriteram[offs + 0x40] & 0x20; | |
| 284 | int tall = jedi_spriteram[offs + 0x40] & 0x08; | |
| 248 | UINT8 y = 240 - spriteram[offs + 0x80] + 1; | |
| 249 | int flip_x = spriteram[offs + 0x40] & 0x10; | |
| 250 | int flip_y = spriteram[offs + 0x40] & 0x20; | |
| 251 | int tall = spriteram[offs + 0x40] & 0x08; | |
| 285 | 252 | |
| 286 | 253 | /* shuffle the bank bits in */ |
| 287 | UINT16 code = jedi_spriteram[offs] | | |
| 288 | ((jedi_spriteram[offs + 0x40] & 0x04) << 8) | | |
| 289 | ((jedi_spriteram[offs + 0x40] & 0x40) << 3) | | |
| 290 | ((jedi_spriteram[offs + 0x40] & 0x02) << 7); | |
| 254 | UINT16 code = spriteram[offs] | | |
| 255 | ((spriteram[offs + 0x40] & 0x04) << 8) | | |
| 256 | ((spriteram[offs + 0x40] & 0x40) << 3) | | |
| 257 | ((spriteram[offs + 0x40] & 0x02) << 7); | |
| 291 | 258 | |
| 292 | 259 | /* adjust for double-height */ |
| 293 | 260 | if (tall) |
| r1711 | r1712 | |
| 307 | 274 | for (sy = 0; sy < y_size; sy++) |
| 308 | 275 | { |
| 309 | 276 | int i; |
| 310 | UINT16 x = | |
| 277 | UINT16 x = | |
| 311 | 278 | |
| 279 | if ((y < cliprect->min_y) || (y > cliprect->max_y)) | |
| 280 | continue; | |
| 281 | ||
| 312 | 282 | if (flip_x) |
| 313 | 283 | x = x + 7; |
| 314 | 284 | |
| r1711 | r1712 | |
| 357 | 327 | * |
| 358 | 328 | *************************************/ |
| 359 | 329 | |
| 360 | VIDEO_UPDATE( jedi ) | |
| 330 | static VIDEO_UPDATE( jedi ) | |
| 361 | 331 | { |
| 332 | jedi_state *state = machine->driver_data; | |
| 333 | ||
| 362 | 334 | /* if no video, clear it all to black */ |
| 363 | if (video_off) | |
| 335 | if (*state->video_off & 0x01) | |
| 364 | 336 | fillbitmap(bitmap, RGB_BLACK, cliprect); |
| 365 | 337 | else |
| 366 | 338 | { |
| 367 | /* draw the background - it needs to be done first */ | |
| 368 | draw_and_smooth_background(bitmap, cliprect); | |
| 369 | ||
| 370 | draw_foreground(bitmap); | |
| 371 | draw_sprites(bitmap); | |
| 372 | ||
| 373 | do_pen_lookup(bitmap, cliprect); | |
| 339 | /* draw the background/text layers, followed by the sprites | |
| 340 | - it needs to be done in this order*/ | |
| 341 | draw_background_and_text(state, bitmap, cliprect); | |
| 342 | draw_sprites(state, bitmap, cliprect); | |
| 343 | do_pen_lookup(state, bitmap, cliprect); | |
| 374 | 344 | } |
| 375 | 345 | |
| 376 | 346 | return 0; |
| 377 | 347 | } |
| 348 | ||
| 349 | ||
| 350 | ||
| 351 | /************************************* | |
| 352 | * | |
| 353 | * Machine driver | |
| 354 | * | |
| 355 | *************************************/ | |
| 356 | ||
| 357 | MACHINE_DRIVER_START( jedi_video ) | |
| 358 | ||
| 359 | ||
| 360 | MDRV_SCREEN_ADD("main", RASTER) | |
| 361 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) | |
| 362 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 363 | MDRV_SCREEN_SIZE(64*8, 262) /* verify vert size */ | |
| 364 | MDRV_SCREEN_VISIBLE_AREA(0*8, 37*8-1, 0*8, 30*8-1) | |
| 365 | ||
| 366 | MDRV_VIDEO_START(jedi) | |
| 367 | MDRV_VIDEO_UPDATE(jedi) | |
| 368 | MACHINE_DRIVER_END |
| r1711 | r1712 | |
|---|---|---|
| 20 | 20 | #define SUPRNOVA_DECODE_BUFFER_SIZE 0x2000 |
| 21 | 21 | |
| 22 | 22 | extern UINT32 *skns_tilemapA_ram, *skns_tilemapB_ram, *skns_v3slc_ram; |
| 23 | extern UINT32 *skns_palette_ram | |
| 23 | extern UINT32 *skns_palette_ram | |
| 24 | 24 | extern UINT32 *skns_pal_regs, *skns_v3_regs, *skns_spc_regs; |
| 25 | 25 | extern UINT32 skns_v3t_dirty[0x4000]; // allocate this elsewhere? |
| 26 | 26 | extern UINT32 skns_v3t_4bppdirty[0x8000]; // allocate this elsewhere? |
| r1711 | r1712 | |
|---|---|---|
| 30 | 30 | { |
| 31 | 31 | int i; |
| 32 | 32 | |
| 33 | for (i = 0;i < machine-> | |
| 33 | for (i = 0;i < machine->config->total_colors;i++) | |
| 34 | 34 | { |
| 35 | 35 | int x = (color_prom[i]<<8) + color_prom[0x200+i]; |
| 36 | 36 | /* The bits are in reverse order! */ |
| r1711 | r1712 | |
|---|---|---|
| 14 | 14 | int i; |
| 15 | 15 | |
| 16 | 16 | |
| 17 | for (i = 0;i < machine-> | |
| 17 | for (i = 0;i < machine->config->total_colors;i++) | |
| 18 | 18 | { |
| 19 | 19 | int bit0,bit1,bit2,r,g,b; |
| 20 | 20 |
| r1711 | r1712 | |
|---|---|---|
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | |
| 63 | static void set_pens(r | |
| 63 | static void set_pens(colort | |
| 64 | 64 | { |
| 65 | 65 | int i; |
| 66 | 66 | |
| r1711 | r1712 | |
| 70 | 70 | |
| 71 | 71 | rgb_t color = MAKE_RGB(pal5bit(data >> 0), pal5bit(data >> 5), pal5bit(data >> 10)); |
| 72 | 72 | |
| 73 | colortable_palette_set_color( | |
| 73 | colortable_palette_set_color( | |
| 74 | 74 | } |
| 75 | 75 | } |
| 76 | 76 | |
| r1711 | r1712 | |
| 288 | 288 | sect_rect(&fg_finalclip, cliprect); |
| 289 | 289 | sect_rect(&tx_finalclip, cliprect); |
| 290 | 290 | |
| 291 | set_pens(machine); | |
| 291 | set_pens(machine->colortable); | |
| 292 | 292 | |
| 293 | 293 | tilemap_set_scrollx( fg_tilemap,0, K007121_ctrlram[0][0x00] - 40 ); |
| 294 | 294 | tilemap_set_scrolly( fg_tilemap,0, K007121_ctrlram[0][0x02] ); |
| r1711 | r1712 | |
|---|---|---|
| 1476 | 1476 | } |
| 1477 | 1477 | |
| 1478 | 1478 | /* draw from the buffer */ |
| 1479 | draw_scanline16(bitmap, cliprect->min_x, y, cliprect->max_x - cliprect->min_x + 1, &scanline[cliprect->min_x], | |
| 1479 | draw_scanline16(bitmap, cliprect->min_x, y, cliprect->max_x - cliprect->min_x + 1, &scanline[cliprect->min_x], NULL | |
| 1480 | 1480 | } |
| 1481 | 1481 | |
| 1482 | 1482 | /* otherwise, draw directly from VRAM */ |
| 1483 | 1483 | else |
| 1484 | draw_scanline16(bitmap, cliprect->min_x, y, cliprect->max_x - cliprect->min_x + 1, &src1[cliprect->min_x], | |
| 1484 | draw_scanline16(bitmap, cliprect->min_x, y, cliprect->max_x - cliprect->min_x + 1, &src1[cliprect->min_x], NULL | |
| 1485 | 1485 | } |
| 1486 | 1486 | return 0; |
| 1487 | 1487 | } |
| r1711 | r1712 | |
|---|---|---|
| 11 | 11 | static UINT16 xscroll; |
| 12 | 12 | static UINT16 yscroll; |
| 13 | 13 | static tilemap *background, *foreground; |
| 14 | static const UINT8 *spritepalettebank; | |
| 15 | 14 | |
| 16 | 15 | UINT16 *amazon_videoram; |
| 17 | 16 | |
| r1711 | r1712 | |
| 35 | 34 | |
| 36 | 35 | static void draw_sprites(running_machine *machine, mame_bitmap *bitmap, const rectangle *cliprect ) |
| 37 | 36 | { |
| 37 | const UINT8 *spritepalettebank = memory_region(REGION_USER1); | |
| 38 | 38 | const gfx_element *pGfx = machine->gfx[2]; |
| 39 | 39 | const UINT16 *pSource = spriteram16; |
| 40 | 40 | int i; |
| r1711 | r1712 | |
| 95 | 95 | |
| 96 | 96 | PALETTE_INIT( amazon ) |
| 97 | 97 | { |
| 98 | #define TOTAL_COLORS(gfxn) (machine->gfx[gfxn]->total_colors * machine->gfx[gfxn]->color_granularity) | |
| 99 | #define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + offs]) | |
| 100 | 98 | int i; |
| 101 | for( i = 0; i<machine->drv->total_colors; i++) | |
| 102 | { | |
| 103 | int bit0,bit1,bit2,bit3,r,g,b; | |
| 104 | 99 | |
| 105 | bit0 = (color_prom[0] >> 0) & 0x01; | |
| 106 | bit1 = (color_prom[0] >> 1) & 0x01; | |
| 107 | bit2 = (color_prom[0] >> 2) & 0x01; | |
| 108 | bit3 = (color_prom[0] >> 3) & 0x01; | |
| 109 | r = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; | |
| 110 | bit0 = (color_prom[machine->drv->total_colors] >> 0) & 0x01; | |
| 111 | bit1 = (color_prom[machine->drv->total_colors] >> 1) & 0x01; | |
| 112 | bit2 = (color_prom[machine->drv->total_colors] >> 2) & 0x01; | |
| 113 | bit3 = (color_prom[machine->drv->total_colors] >> 3) & 0x01; | |
| 114 | g = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; | |
| 115 | bit0 = (color_prom[2*machine->drv->total_colors] >> 0) & 0x01; | |
| 116 | bit1 = (color_prom[2*machine->drv->total_colors] >> 1) & 0x01; | |
| 117 | bit2 = (color_prom[2*machine->drv->total_colors] >> 2) & 0x01; | |
| 118 | bit3 = (color_prom[2*machine->drv->total_colors] >> 3) & 0x01; | |
| 119 | b = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; | |
| 100 | /* allocate the colortable */ | |
| 101 | machine->colortable = colortable_alloc(machine, 0x100); | |
| 120 | 102 | |
| 121 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); | |
| 122 | color_prom++; | |
| 103 | /* create a lookup table for the palette */ | |
| 104 | for (i = 0; i < 0x100; i++) | |
| 105 | { | |
| 106 | int r = pal4bit(color_prom[i + 0x000]); | |
| 107 | int g = pal4bit(color_prom[i + 0x100]); | |
| 108 | int b = pal4bit(color_prom[i + 0x200]); | |
| 109 | ||
| 110 | colortable_palette_set_color(machine->colortable, i, MAKE_RGB(r, g, b)); | |
| 123 | 111 | } |
| 124 | 112 | |
| 125 | color_prom += 2*machine->drv->total_colors; | |
| 126 | 113 | /* color_prom now points to the beginning of the lookup table */ |
| 114 | color_prom += 0x300; | |
| 127 | 115 | |
| 116 | /* characters use colors 0-0x0f */ | |
| 117 | for (i = 0; i < 0x10; i++) | |
| 118 | colortable_entry_set_value(machine->colortable, i, i); | |
| 128 | 119 | |
| 129 | /* characters use colors 0-15 */ | |
| 130 | for (i = 0;i < TOTAL_COLORS(0);i++) | |
| 131 | COLOR(0,i) = i; | |
| 132 | ||
| 133 | /* background tiles use colors 192-255 in four banks */ | |
| 120 | /* background tiles use colors 0xc0-0xff in four banks */ | |
| 134 | 121 | /* the bottom two bits of the color code select the palette bank for */ |
| 135 | /* pens 0-7; the top two bits for pens 8-15. */ | |
| 136 | for (i = 0;i < TOTAL_COLORS(1);i++) | |
| 122 | /* pens 0-7; the top two bits for pens 8-0x0f. */ | |
| 123 | for (i = 0; i < 0x100; i++) | |
| 137 | 124 | { |
| 138 | if (i & 8) COLOR(1,i) = 192 + (i & 0x0f) + ((i & 0xc0) >> 2); | |
| 139 | else COLOR(1,i) = 192 + (i & 0x0f) + ((i & 0x30) >> 0); | |
| 125 | UINT8 ctabentry; | |
| 126 | ||
| 127 | if (i & 0x08) | |
| 128 | ctabentry = 0xc0 | (i & 0x0f) | ((i & 0xc0) >> 2); | |
| 129 | else | |
| 130 | ctabentry = 0xc0 | (i & 0x0f) | ((i & 0x30) >> 0); | |
| 131 | ||
| 132 | colortable_entry_set_value(machine->colortable, 0x10 + i, ctabentry); | |
| 140 | 133 | } |
| 141 | 134 | |
| 142 | 135 | /* sprites use colors 128-191 in four banks */ |
| r1711 | r1712 | |
| 144 | 137 | /* the bank is selected by another PROM and depends on the top 8 bits of */ |
| 145 | 138 | /* the sprite code. The PROM selects the bank *separately* for pens 0-7 and */ |
| 146 | 139 | /* 8-15 (like for tiles). */ |
| 147 | for (i = 0;i < | |
| 140 | for (i = 0; i < 0x | |
| 148 | 141 | { |
| 149 | int j; | |
| 142 | UINT8 ctabentry; | |
| 143 | int i_swapped = ((i & 0x0f) << 8) | ((i & 0xff0) >> 4); | |
| 150 | 144 | |
| 151 | for (j = 0;j < 16;j++) | |
| 152 | { | |
| 153 | if (i & 8) | |
| 154 | COLOR(2,i + j * (TOTAL_COLORS(2)/16)) = 128 + ((j & 0x0c) << 2) + (*color_prom & 0x0f); | |
| 155 | else | |
| 156 | COLOR(2,i + j * (TOTAL_COLORS(2)/16)) = 128 + ((j & 0x03) << 4) + (*color_prom & 0x0f); | |
| 157 | } | |
| 145 | if (i & 0x80) | |
| 146 | ctabentry = 0x80 | ((i & 0x0c) << 2) | (color_prom[i >> 4] & 0x0f); | |
| 147 | else | |
| 148 | ctabentry = 0x80 | ((i & 0x03) << 4) | (color_prom[i >> 4] & 0x0f); | |
| 158 | 149 | |
| 159 | color_ | |
| 150 | colortable_entry_set_value(machine->colortable, 0x110 + i_swapped, ctabentry); | |
| 160 | 151 | } |
| 161 | ||
| 162 | /* color_prom now points to the beginning of the sprite palette bank table */ | |
| 163 | spritepalettebank = color_prom; /* we'll need it at run time */ | |
| 164 | 152 | } |
| 165 | 153 | |
| 166 | 154 | WRITE16_HANDLER( amazon_background_w ) |
| r1711 | r1712 | |
| 201 | 189 | { |
| 202 | 190 | background = tilemap_create(get_bg_tile_info,tilemap_scan_cols,16,16,64,32); |
| 203 | 191 | foreground = tilemap_create(get_fg_tile_info,tilemap_scan_cols,8,8,64,32); |
| 204 | | |
| 192 | | |
| 205 | 193 | |
| 206 | 194 | /* register for saving */ |
| 207 | 195 | state_save_register_global(xscroll); |
| r1711 | r1712 | |
| 211 | 199 | VIDEO_UPDATE( amazon ) |
| 212 | 200 | { |
| 213 | 201 | if( xscroll&0x2000 ) |
| 214 | { | |
| 215 | 202 | fillbitmap( bitmap,get_black_pen(machine),cliprect ); |
| 216 | } | |
| 217 | 203 | else |
| 218 | { | |
| 219 | 204 | tilemap_draw( bitmap,cliprect, background, 0, 0 ); |
| 220 | ||
| 205 | ||
| 221 | 206 | draw_sprites( machine, bitmap,cliprect ); |
| 222 | 207 | tilemap_draw( bitmap,cliprect, foreground, 0, 0 ); |
| 223 | 208 | return 0; |
| r1711 | r1712 | |
|---|---|---|
| 19 | 19 | { |
| 20 | 20 | int i; |
| 21 | 21 | |
| 22 | for (i = 0;i < machine-> | |
| 22 | for (i = 0;i < machine->config->total_colors;i++) | |
| 23 | 23 | { |
| 24 | 24 | int bit0,bit1,bit2,r,g,b; |
| 25 | 25 |
| r1711 | r1712 | |
|---|---|---|
| 168 | 168 | |
| 169 | 169 | WRITE32_HANDLER( deco32_palette_dma_w ) |
| 170 | 170 | { |
| 171 | const int m=Machine-> | |
| 171 | const int m=Machine->config->total_colors; | |
| 172 | 172 | int r,g,b,i; |
| 173 | 173 | |
| 174 | 174 | for (i=0; i<m; i++) { |
| r1711 | r1712 | |
|---|---|---|
| 43 | 43 | 2, &resistances[1], bweights, 470, 0); |
| 44 | 44 | |
| 45 | 45 | /* initialize the palette with these colors */ |
| 46 | for (i = 0; i < machine-> | |
| 46 | for (i = 0; i < machine->config->total_colors; i++) | |
| 47 | 47 | { |
| 48 | 48 | int bit0, bit1, bit2; |
| 49 | 49 | int r, g, b; |
| r1711 | r1712 | |
|---|---|---|
| 181 | 181 | PALETTE_INIT( dynamski ) |
| 182 | 182 | { |
| 183 | 183 | int i; |
| 184 | #define TOTAL_COLORS(gfxn) (machine->gfx[gfxn]->total_colors * machine->gfx[gfxn]->color_granularity) | |
| 185 | #define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + offs]) | |
| 186 | 184 | |
| 187 | for (i = 0;i < machine->drv->total_colors;i++) | |
| 185 | /* allocate the colortable */ | |
| 186 | machine->colortable = colortable_alloc(machine, 0x20); | |
| 187 | ||
| 188 | /* create a lookup table for the palette */ | |
| 189 | for (i = 0; i < 0x20; i++) | |
| 188 | 190 | { |
| 189 | int data = color_prom[i] + 256 * color_prom[i+32]; | |
| 190 | palette_set_color_rgb(machine,i,pal5bit(data >> 1),pal5bit(data >> 6),pal5bit(data >> 11)); | |
| 191 | UINT16 data = (color_prom[i | 0x20] << 8) | color_prom[i]; | |
| 192 | rgb_t color = MAKE_RGB(pal5bit(data >> 1), pal5bit(data >> 6), pal5bit(data >> 11)); | |
| 193 | ||
| 194 | colortable_palette_set_color(machine->colortable, i, color); | |
| 191 | 195 | } |
| 192 | 196 | |
| 193 | color_prom += 2*machine->drv->total_colors; | |
| 194 | 197 | /* color_prom now points to the beginning of the lookup table */ |
| 198 | color_prom += 0x40; | |
| 195 | 199 | |
| 200 | /* characters */ | |
| 201 | for (i = 0; i < 0x40; i++) | |
| 202 | { | |
| 203 | UINT8 ctabentry = color_prom[i] & 0x0f; | |
| 204 | colortable_entry_set_value(machine->colortable, i, ctabentry); | |
| 205 | } | |
| 206 | ||
| 196 | 207 | /* sprites */ |
| 197 | for (i = 0;i < TOTAL_COLORS(1);i++) | |
| 198 | COLOR(1,i) = (color_prom[i] & 0x0f) + 0x10; | |
| 199 | color_prom += 0x100; | |
| 200 | ||
| 201 | /* characters */ | |
| 202 | for (i = 0;i < TOTAL_COLORS(0);i++) | |
| 203 | COLOR(0,i) = (color_prom[i] & 0x0f); | |
| 208 | for (i = 0x40; i < 0x80; i++) | |
| 209 | { | |
| 210 | UINT8 ctabentry = (color_prom[(i - 0x40) + 0x100] & 0x0f) | 0x10; | |
| 211 | colortable_entry_set_value(machine->colortable, i, ctabentry); | |
| 212 | } | |
| 204 | 213 | } |
| 205 | 214 | |
| 206 | 215 |
| r1711 | r1712 | |
|---|---|---|
| 43 | 43 | { |
| 44 | 44 | int i; |
| 45 | 45 | |
| 46 | for (i = 0;i < machine-> | |
| 46 | for (i = 0;i < machine->config->total_colors;i++) | |
| 47 | 47 | { |
| 48 | 48 | int bit0,bit1,bit2,bit3,r,g,b; |
| 49 | 49 | |
| r1711 | r1712 | |
| 57 | 57 | bit2 = (color_prom[0] >> 6) & 0x01; |
| 58 | 58 | bit3 = (color_prom[0] >> 7) & 0x01; |
| 59 | 59 | g = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; |
| 60 | bit0 = (color_prom[machine->drv->total_colors] >> 0) & 0x01; | |
| 61 | bit1 = (color_prom[machine->drv->total_colors] >> 1) & 0x01; | |
| 62 | bit2 = (color_prom[machine->drv->total_colors] >> 2) & 0x01; | |
| 63 | bit3 = (color_prom[machine->drv->total_colors] >> 3) & 0x01; | |
| 60 | bit0 = (color_prom[machine->config->total_colors] >> 0) & 0x01; | |
| 61 | bit1 = (color_prom[machine->config->total_colors] >> 1) & 0x01; | |
| 62 | bit2 = (color_prom[machine->config->total_colors] >> 2) & 0x01; | |
| 63 | bit3 = (color_prom[machine->config->total_colors] >> 3) & 0x01; | |
| 64 | 64 | b = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; |
| 65 | 65 | |
| 66 | 66 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); |
| r1711 | r1712 | |
|---|---|---|
| 12 | 12 | int i; |
| 13 | 13 | |
| 14 | 14 | color_prom+=24; /* first 24 colors are black */ |
| 15 | for (i = 0;i < machine-> | |
| 15 | for (i = 0;i < machine->config->total_colors;i++) | |
| 16 | 16 | { |
| 17 | 17 | int bit0,bit1,bit2,r,g,b; |
| 18 | 18 |
| r1711 | r1712 | |
|---|---|---|
| 38 | 38 | sy = offset / 256; |
| 39 | 39 | sx = offset % 256; |
| 40 | 40 | |
| 41 | *BITMAP_ADDR16(tmpbitmap, sy, sx) = | |
| 41 | *BITMAP_ADDR16(tmpbitmap, sy, sx) = | |
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | WRITE16_HANDLER( galpanic_paletteram_w ) |
| r1711 | r1712 | |
|---|---|---|
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | 10 | #include "video/resnet.h" |
| 11 | #include "includes/cclimber.h" | |
| 11 | 12 | |
| 12 | 13 | |
| 13 | 14 | UINT8 *cclimber_bsvideoram; |
| r1711 | r1712 | |
| 49 | 50 | 3, &resistances_rg[0], gweights, 0, 0, |
| 50 | 51 | 2, &resistances_b[0], bweights, 0, 0); |
| 51 | 52 | |
| 52 | for (i = 0;i < machine-> | |
| 53 | for (i = 0;i < machine->config->total_colors; i++) | |
| 53 | 54 | { |
| 54 | 55 | UINT8 data; |
| 55 | 56 | int bit0, bit1, bit2; |
| r1711 | r1712 | |
|---|---|---|
| 20 | 20 | { |
| 21 | 21 | int i; |
| 22 | 22 | |
| 23 | for (i = 0;i < machine-> | |
| 23 | for (i = 0;i < machine->config->total_colors;i++){ | |
| 24 | 24 | int bit0,bit1,bit2,bit3; |
| 25 | 25 | int r,g,b; |
| 26 | 26 | |
| r1711 | r1712 | |
| 31 | 31 | bit3 = (color_prom[0] >> 3) & 0x01; |
| 32 | 32 | r = 0x0e*bit0 + 0x1e*bit1 + 0x44*bit2 + 0x8f*bit3; |
| 33 | 33 | /* green component */ |
| 34 | bit0 = (color_prom[machine->drv->total_colors] >> 0) & 0x01; | |
| 35 | bit1 = (color_prom[machine->drv->total_colors] >> 1) & 0x01; | |
| 36 | bit2 = (color_prom[machine->drv->total_colors] >> 2) & 0x01; | |
| 37 | bit3 = (color_prom[machine->drv->total_colors] >> 3) & 0x01; | |
| 34 | bit0 = (color_prom[machine->config->total_colors] >> 0) & 0x01; | |
| 35 | bit1 = (color_prom[machine->config->total_colors] >> 1) & 0x01; | |
| 36 | bit2 = (color_prom[machine->config->total_colors] >> 2) & 0x01; | |
| 37 | bit3 = (color_prom[machine->config->total_colors] >> 3) & 0x01; | |
| 38 | 38 | g = 0x0e*bit0 + 0x1e*bit1 + 0x44*bit2 + 0x8f*bit3; |
| 39 | 39 | /* blue component */ |
| 40 | bit0 = (color_prom[2*machine->drv->total_colors] >> 0) & 0x01; | |
| 41 | bit1 = (color_prom[2*machine->drv->total_colors] >> 1) & 0x01; | |
| 42 | bit2 = (color_prom[2*machine->drv->total_colors] >> 2) & 0x01; | |
| 43 | bit3 = (color_prom[2*machine->drv->total_colors] >> 3) & 0x01; | |
| 40 | bit0 = (color_prom[2*machine->config->total_colors] >> 0) & 0x01; | |
| 41 | bit1 = (color_prom[2*machine->config->total_colors] >> 1) & 0x01; | |
| 42 | bit2 = (color_prom[2*machine->config->total_colors] >> 2) & 0x01; | |
| 43 | bit3 = (color_prom[2*machine->config->total_colors] >> 3) & 0x01; | |
| 44 | 44 | b = 0x0e*bit0 + 0x1e * bit1 + 0x44*bit2 + 0x8f*bit3; |
| 45 | 45 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); |
| 46 | 46 |
| r1711 | r1712 | |
|---|---|---|
| 78 | 78 | { |
| 79 | 79 | if (bmap) |
| 80 | 80 | { |
| 81 | fillbitmap(tmpbitmap, | |
| 81 | fillbitmap(tmpbitmap, | |
| 82 | 82 | memset(tmpvideoram, 0, 256*256); |
| 83 | 83 | } |
| 84 | 84 | else |
| 85 | 85 | { |
| 86 | fillbitmap(tmpbitmap2, | |
| 86 | fillbitmap(tmpbitmap2, | |
| 87 | 87 | memset(tmpvideoram2, 0, 256*256); |
| 88 | 88 | } |
| 89 | 89 | } |
| r1711 | r1712 | |
| 133 | 133 | |
| 134 | 134 | if (bmap) |
| 135 | 135 | { |
| 136 | *BITMAP_ADDR16(tmpbitmap, y, (x-6)&0xff) = | |
| 136 | *BITMAP_ADDR16(tmpbitmap, y, (x-6)&0xff) = | |
| 137 | 137 | tmpvideoram[y*256+x] = color; |
| 138 | 138 | } |
| 139 | 139 | else |
| 140 | 140 | { |
| 141 | *BITMAP_ADDR16(tmpbitmap2, y, (x-6)&0xff) = | |
| 141 | *BITMAP_ADDR16(tmpbitmap2, y, (x-6)&0xff) = | |
| 142 | 142 | tmpvideoram2[y*256+x] = color; |
| 143 | 143 | } |
| 144 | 144 | |
| r1711 | r1712 | |
| 173 | 173 | { |
| 174 | 174 | for (lx = 0; lx < 256; lx++) |
| 175 | 175 | { |
| 176 | *BITMAP_ADDR16(tmpbitmap, ly, (lx-6)&0xff) = Machine->pens[16 + tmpvideoram[ly*256+lx]]; | |
| 177 | *BITMAP_ADDR16(tmpbitmap2, ly, (lx-6)&0xff) = Machine->pens[16 + tmpvideoram2[ly*256+lx]]; | |
| 176 | *BITMAP_ADDR16(tmpbitmap, ly, (lx-6)&0xff) = 16 + tmpvideoram[ly*256+lx]; | |
| 177 | *BITMAP_ADDR16(tmpbitmap2, ly, (lx-6)&0xff) = 16 + tmpvideoram2[ly*256+lx]; | |
| 178 | 178 | } |
| 179 | 179 | } |
| 180 | 180 | } |
| r1711 | r1712 | |
|---|---|---|
| 239 | 239 | |
| 240 | 240 | gfx0 = allocgfx( &cg_layout ); |
| 241 | 241 | gfx1 = allocgfx( &shape_layout ); |
| 242 | gfx0->total_colors = machine-> | |
| 242 | gfx0->total_colors = machine->config->total_colors/256; | |
| 243 | 243 | machine->gfx[0] = gfx0; |
| 244 | 244 | |
| 245 | gfx1->total_colors = machine-> | |
| 245 | gfx1->total_colors = machine->config->total_colors/2; | |
| 246 | 246 | machine->gfx[1] = gfx1; |
| 247 | 247 | } /* namcona1_vh_start */ |
| 248 | 248 |
| r1711 | r1712 | |
|---|---|---|
| 846 | 846 | switch (newset) |
| 847 | 847 | { |
| 848 | 848 | case 0x00: |
| 849 | palette_init_radarscp(machine, | |
| 849 | palette_init_radarscp(machine, | |
| 850 | 850 | break; |
| 851 | 851 | case 0x01: |
| 852 | palette_init_dkong2b(machine, | |
| 852 | palette_init_dkong2b(machine, | |
| 853 | 853 | break; |
| 854 | 854 | } |
| 855 | 855 | } |
| r1711 | r1712 | |
|---|---|---|
| 16 | 16 | |
| 17 | 17 | PALETTE_INIT( sprint4 ) |
| 18 | 18 | { |
| 19 | palette_set_color(machine, 0, MAKE_RGB(0x00, 0x00, 0x00)); /* black */ | |
| 20 | palette_set_color(machine, 1, MAKE_RGB(0xfc, 0xdf, 0x80)); /* peach */ | |
| 21 | palette_set_color(machine, 2, MAKE_RGB(0xf0, 0x00, 0xf0)); /* violet */ | |
| 22 | palette_set_color(machine, 3, MAKE_RGB(0x00, 0xf0, 0x0f)); /* green */ | |
| 23 | palette_set_color(machine, 4, MAKE_RGB(0x30, 0x4f, 0xff)); /* blue */ | |
| 24 | palette_set_color(machine, 5, MAKE_RGB(0xff, 0xff, 0xff)); /* white */ | |
| 19 | /* allocate the colortable */ | |
| 20 | machine->colortable = colortable_alloc(machine, 6); | |
| 25 | 21 | |
| 26 | colortable[0] = 0; | |
| 27 | colortable[2] = 0; | |
| 28 | colortable[4] = 0; | |
| 29 | colortable[6] = 0; | |
| 30 | colortable[8] = 0; | |
| 22 | colortable_palette_set_color(machine->colortable, 0, MAKE_RGB(0x00, 0x00, 0x00)); /* black */ | |
| 23 | colortable_palette_set_color(machine->colortable, 1, MAKE_RGB(0xfc, 0xdf, 0x80)); /* peach */ | |
| 24 | colortable_palette_set_color(machine->colortable, 2, MAKE_RGB(0xf0, 0x00, 0xf0)); /* violet */ | |
| 25 | colortable_palette_set_color(machine->colortable, 3, MAKE_RGB(0x00, 0xf0, 0x0f)); /* green */ | |
| 26 | colortable_palette_set_color(machine->colortable, 4, MAKE_RGB(0x30, 0x4f, 0xff)); /* blue */ | |
| 27 | colortable_palette_set_color(machine->colortable, 5, MAKE_RGB(0xff, 0xff, 0xff)); /* white */ | |
| 31 | 28 | |
| 32 | colortable[1] = 1; | |
| 33 | colortable[3] = 2; | |
| 34 | colortable[5] = 3; | |
| 35 | colortable[7] = 4; | |
| 36 | colortable[9] = 5; | |
| 29 | colortable_entry_set_value(machine->colortable, 0, 0); | |
| 30 | colortable_entry_set_value(machine->colortable, 2, 0); | |
| 31 | colortable_entry_set_value(machine->colortable, 4, 0); | |
| 32 | colortable_entry_set_value(machine->colortable, 6, 0); | |
| 33 | colortable_entry_set_value(machine->colortable, 8, 0); | |
| 34 | ||
| 35 | colortable_entry_set_value(machine->colortable, 1, 1); | |
| 36 | colortable_entry_set_value(machine->colortable, 3, 2); | |
| 37 | colortable_entry_set_value(machine->colortable, 5, 3); | |
| 38 | colortable_entry_set_value(machine->colortable, 7, 4); | |
| 39 | colortable_entry_set_value(machine->colortable, 9, 5); | |
| 37 | 40 | } |
| 38 | 41 | |
| 39 | 42 | |
| r1711 | r1712 | |
| 42 | 45 | UINT8 code = videoram[tile_index]; |
| 43 | 46 | |
| 44 | 47 | if ((code & 0x30) == 0x30) |
| 45 | { | |
| 46 | 48 | SET_TILE_INFO(0, code & ~0x40, (code >> 6) ^ 3, 0); |
| 47 | } | |
| 48 | 49 | else |
| 49 | { | |
| 50 | 50 | SET_TILE_INFO(0, code, 4, 0); |
| 51 | } | |
| 52 | 51 | } |
| 53 | 52 | |
| 54 | 53 | |
| r1711 | r1712 | |
| 76 | 75 | UINT8 code = videoram[0x398 + 2 * i + 1]; |
| 77 | 76 | |
| 78 | 77 | if (i & 1) |
| 79 | { | |
| 80 | 78 | bank = 32; |
| 81 | } | |
| 82 | 79 | |
| 83 | 80 | drawgfx(bitmap, machine->gfx[1], |
| 84 | 81 | (code >> 3) | bank, |
| r1711 | r1712 | |
| 94 | 91 | |
| 95 | 92 | VIDEO_EOF( sprint4 ) |
| 96 | 93 | { |
| 97 | UINT16 BG = machine->remapped_colortable[machine->gfx[0]->color_base]; | |
| 98 | ||
| 99 | 94 | int i; |
| 100 | 95 | |
| 101 | 96 | /* check for sprite-playfield collisions */ |
| r1711 | r1712 | |
| 123 | 118 | tilemap_draw(helper, &rect, playfield, 0, 0); |
| 124 | 119 | |
| 125 | 120 | if (i & 1) |
| 126 | { | |
| 127 | 121 | bank = 32; |
| 128 | } | |
| 129 | 122 | |
| 130 | 123 | drawgfx(helper, machine->gfx[1], |
| 131 | 124 | (code >> 3) | bank, |
| r1711 | r1712 | |
| 136 | 129 | &rect, TRANSPARENCY_PEN, 1); |
| 137 | 130 | |
| 138 | 131 | for (y = rect.min_y; y <= rect.max_y; y++) |
| 139 | { | |
| 140 | 132 | for (x = rect.min_x; x <= rect.max_x; x++) |
| 141 | { | |
| 142 | if (*BITMAP_ADDR16(helper, y, x) != BG) | |
| 143 | { | |
| 133 | if (colortable_entry_get_value(machine->colortable, *BITMAP_ADDR16(helper, y, x)) != 0) | |
| 144 | 134 | sprint4_collision[i] = 1; |
| 145 | } | |
| 146 | } | |
| 147 | } | |
| 148 | 135 | } |
| 149 | 136 | |
| 150 | 137 | /* update sound status */ |
| r1711 | r1712 | |
|---|---|---|
| 34 | 34 | { |
| 35 | 35 | int i; |
| 36 | 36 | |
| 37 | for (i = 0; i < machine-> | |
| 37 | for (i = 0; i < machine->config->total_colors; i++) | |
| 38 | 38 | { |
| 39 | 39 | UINT8 pen; |
| 40 | 40 | int bit0, bit1, bit2, r, g, b; |
| r1711 | r1712 | |
| 72 | 72 | { |
| 73 | 73 | int i; |
| 74 | 74 | |
| 75 | for (i = 0; i < machine-> | |
| 75 | for (i = 0; i < machine->config->total_colors; i++) | |
| 76 | 76 | { |
| 77 | 77 | int bit0, bit1, bit2, r, g, b; |
| 78 | 78 |
| r1711 | r1712 | |
|---|---|---|
| 45 | 45 | PALETTE_INIT( travrusa ) |
| 46 | 46 | { |
| 47 | 47 | int i; |
| 48 | #define TOTAL_COLORS(gfxn) (machine->gfx[gfxn]->total_colors * machine->gfx[gfxn]->color_granularity) | |
| 49 | #define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + offs]) | |
| 50 | 48 | |
| 49 | /* allocate the colortable */ | |
| 50 | machine->colortable = colortable_alloc(machine, 0x90); | |
| 51 | 51 | |
| 52 | /* character palette */ | |
| 53 | for (i = 0;i < 128;i++) | |
| 52 | /* create a lookup table for the palette */ | |
| 53 | for (i = 0; i < 0x80; i++) | |
| 54 | 54 | { |
| 55 | int bit0,bit1,bit2,r,g,b; | |
| 55 | int bit0, bit1, bit2; | |
| 56 | int r, g, b; | |
| 56 | 57 | |
| 57 | ||
| 58 | 58 | /* red component */ |
| 59 | 59 | bit0 = 0; |
| 60 | 60 | bit1 = (color_prom[i] >> 6) & 0x01; |
| 61 | 61 | bit2 = (color_prom[i] >> 7) & 0x01; |
| 62 | 62 | r = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 63 | ||
| 63 | 64 | /* green component */ |
| 64 | 65 | bit0 = (color_prom[i] >> 3) & 0x01; |
| 65 | 66 | bit1 = (color_prom[i] >> 4) & 0x01; |
| 66 | 67 | bit2 = (color_prom[i] >> 5) & 0x01; |
| 67 | 68 | g = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 69 | ||
| 68 | 70 | /* blue component */ |
| 69 | 71 | bit0 = (color_prom[i] >> 0) & 0x01; |
| 70 | 72 | bit1 = (color_prom[i] >> 1) & 0x01; |
| 71 | 73 | bit2 = (color_prom[i] >> 2) & 0x01; |
| 72 | 74 | b = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 73 | 75 | |
| 74 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); | |
| 76 | colortable_palette_set_color(machine->colortable, i, MAKE_RGB(r, g, b)); | |
| 75 | 77 | } |
| 76 | 78 | |
| 77 | color_prom += 256; | |
| 78 | ||
| 79 | /* sprite palette */ | |
| 80 | for (i = 0;i < 16;i++) | |
| 79 | for (i = 0x80; i < 0x90; i++) | |
| 81 | 80 | { |
| 82 | int bit0,bit1,bit2,r,g,b; | |
| 81 | int bit0, bit1, bit2; | |
| 82 | int r, g, b; | |
| 83 | 83 | |
| 84 | ||
| 85 | 84 | /* red component */ |
| 86 | 85 | bit0 = 0; |
| 87 | bit1 = (color_prom[i] >> 6) & 0x01; | |
| 88 | bit2 = (color_prom[i] >> 7) & 0x01; | |
| 86 | bit1 = (color_prom[(i - 0x80) + 0x200] >> 6) & 0x01; | |
| 87 | bit2 = (color_prom[(i - 0x80) + 0x200] >> 7) & 0x01; | |
| 89 | 88 | r = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 89 | ||
| 90 | 90 | /* green component */ |
| 91 | bit0 = (color_prom[i] >> 3) & 0x01; | |
| 92 | bit1 = (color_prom[i] >> 4) & 0x01; | |
| 93 | bit2 = (color_prom[i] >> 5) & 0x01; | |
| 91 | bit0 = (color_prom[(i - 0x80) + 0x200] >> 3) & 0x01; | |
| 92 | bit1 = (color_prom[(i - 0x80) + 0x200] >> 4) & 0x01; | |
| 93 | bit2 = (color_prom[(i - 0x80) + 0x200] >> 5) & 0x01; | |
| 94 | 94 | g = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 95 | ||
| 95 | 96 | /* blue component */ |
| 96 | bit0 = (color_prom[i] >> 0) & 0x01; | |
| 97 | bit1 = (color_prom[i] >> 1) & 0x01; | |
| 98 | bit2 = (color_prom[i] >> 2) & 0x01; | |
| 97 | bit0 = (color_prom[(i - 0x80) + 0x200] >> 0) & 0x01; | |
| 98 | bit1 = (color_prom[(i - 0x80) + 0x200] >> 1) & 0x01; | |
| 99 | bit2 = (color_prom[(i - 0x80) + 0x200] >> 2) & 0x01; | |
| 99 | 100 | b = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 100 | 101 | |
| 101 | palette_set_color(machine,i | |
| 102 | colortable_palette_set_color(machine->colortable, i | |
| 102 | 103 | } |
| 103 | 104 | |
| 104 | color_prom += 32; | |
| 105 | ||
| 106 | 105 | /* color_prom now points to the beginning of the lookup table */ |
| 106 | color_prom += 0x220; | |
| 107 | 107 | |
| 108 | /* sprite lookup table */ | |
| 109 | for (i = 0;i < TOTAL_COLORS(1);i++) | |
| 110 | COLOR(1,i) = (color_prom[i] & 0x0f) + 128; | |
| 108 | /* characters */ | |
| 109 | for (i = 0; i < 0x80; i++) | |
| 110 | colortable_entry_set_value(machine->colortable, i, i); | |
| 111 | ||
| 112 | /* sprites */ | |
| 113 | for (i = 0x80; i < 0x100; i++) | |
| 114 | { | |
| 115 | UINT8 ctabentry = (color_prom[i - 0x80] & 0x0f) | 0x80; | |
| 116 | colortable_entry_set_value(machine->colortable, i, ctabentry); | |
| 117 | } | |
| 111 | 118 | } |
| 112 | 119 | |
| 113 | 120 | PALETTE_INIT( shtrider ) |
| 114 | 121 | { |
| 115 | 122 | int i; |
| 116 | #define TOTAL_COLORS(gfxn) (machine->gfx[gfxn]->total_colors * machine->gfx[gfxn]->color_granularity) | |
| 117 | #define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + offs]) | |
| 118 | 123 | |
| 124 | /* allocate the colortable */ | |
| 125 | machine->colortable = colortable_alloc(machine, 0x90); | |
| 119 | 126 | |
| 120 | /* character palette */ | |
| 121 | for (i = 0;i < 128;i++) | |
| 127 | /* create a lookup table for the palette */ | |
| 128 | for (i = 0; i < 0x80; i++) | |
| 122 | 129 | { |
| 123 | int bit0,bit1,bit2,r,g,b; | |
| 130 | int bit0, bit1, bit2; | |
| 131 | int r, g, b; | |
| 124 | 132 | |
| 125 | ||
| 126 | 133 | /* red component */ |
| 127 | 134 | bit0 = 0; |
| 128 | bit1 = (color_prom[i] >> 2) & 0x01; | |
| 129 | bit2 = (color_prom[i] >> 3) & 0x01; | |
| 135 | bit1 = (color_prom[i + 0x000] >> 2) & 0x01; | |
| 136 | bit2 = (color_prom[i + 0x000] >> 3) & 0x01; | |
| 130 | 137 | r = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 138 | ||
| 131 | 139 | /* green component */ |
| 132 | bit0 = (color_prom[i+256] >> 3) & 0x01; | |
| 133 | bit1 = (color_prom[i] >> 0) & 0x01; | |
| 134 | bit2 = (color_prom[i] >> 1) & 0x01; | |
| 140 | bit0 = (color_prom[i + 0x100] >> 3) & 0x01; | |
| 141 | bit1 = (color_prom[i + 0x000] >> 0) & 0x01; | |
| 142 | bit2 = (color_prom[i + 0x000] >> 1) & 0x01; | |
| 135 | 143 | g = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 144 | ||
| 136 | 145 | /* blue component */ |
| 137 | bit0 = (color_prom[i+256] >> 0) & 0x01; | |
| 138 | bit1 = (color_prom[i+256] >> 1) & 0x01; | |
| 139 | bit2 = (color_prom[i+256] >> 2) & 0x01; | |
| 146 | bit0 = (color_prom[i + 0x100] >> 0) & 0x01; | |
| 147 | bit1 = (color_prom[i + 0x100] >> 1) & 0x01; | |
| 148 | bit2 = (color_prom[i + 0x100] >> 2) & 0x01; | |
| 140 | 149 | b = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 141 | 150 | |
| 142 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); | |
| 151 | colortable_palette_set_color(machine->colortable, i, MAKE_RGB(r, g, b)); | |
| 143 | 152 | } |
| 144 | 153 | |
| 145 | color_prom += 512; | |
| 146 | ||
| 147 | /* color_prom now points to the beginning of the sprite palette */ | |
| 148 | ||
| 149 | /* sprite palette */ | |
| 150 | for (i = 0;i < 16;i++) | |
| 154 | for (i = 0x80; i < 0x90; i++) | |
| 151 | 155 | { |
| 152 | int bit0,bit1,bit2,r,g,b; | |
| 156 | int bit0, bit1, bit2; | |
| 157 | int r, g, b; | |
| 153 | 158 | |
| 154 | 159 | /* red component */ |
| 155 | 160 | bit0 = 0; |
| 156 | bit1 = (color_prom[i] >> 6) & 0x01; | |
| 157 | bit2 = (color_prom[i] >> 7) & 0x01; | |
| 161 | bit1 = (color_prom[(i - 0x80) + 0x200] >> 6) & 0x01; | |
| 162 | bit2 = (color_prom[(i - 0x80) + 0x200] >> 7) & 0x01; | |
| 158 | 163 | r = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 164 | ||
| 159 | 165 | /* green component */ |
| 160 | bit0 = (color_prom[i] >> 3) & 0x01; | |
| 161 | bit1 = (color_prom[i] >> 4) & 0x01; | |
| 162 | bit2 = (color_prom[i] >> 5) & 0x01; | |
| 166 | bit0 = (color_prom[(i - 0x80) + 0x200] >> 3) & 0x01; | |
| 167 | bit1 = (color_prom[(i - 0x80) + 0x200] >> 4) & 0x01; | |
| 168 | bit2 = (color_prom[(i - 0x80) + 0x200] >> 5) & 0x01; | |
| 163 | 169 | g = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 170 | ||
| 164 | 171 | /* blue component */ |
| 165 | bit0 = (color_prom[i] >> 0) & 0x01; | |
| 166 | bit1 = (color_prom[i] >> 1) & 0x01; | |
| 167 | bit2 = (color_prom[i] >> 2) & 0x01; | |
| 172 | bit0 = (color_prom[(i - 0x80) + 0x200] >> 0) & 0x01; | |
| 173 | bit1 = (color_prom[(i - 0x80) + 0x200] >> 1) & 0x01; | |
| 174 | bit2 = (color_prom[(i - 0x80) + 0x200] >> 2) & 0x01; | |
| 168 | 175 | b = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 169 | 176 | |
| 170 | palette_set_color(machine,i | |
| 177 | colortable_palette_set_color(machine->colortable, i | |
| 171 | 178 | } |
| 172 | 179 | |
| 173 | color_prom += 32; | |
| 174 | /* color_prom now points to the beginning of the sprite lookup table */ | |
| 180 | /* color_prom now points to the beginning of the lookup table */ | |
| 181 | color_prom += 0x220; | |
| 175 | 182 | |
| 176 | /* sprite lookup table */ | |
| 177 | for (i = 0;i < TOTAL_COLORS(1);i++) | |
| 178 | COLOR(1,i) = (color_prom[i] & 0x0f) + 128; | |
| 183 | /* characters */ | |
| 184 | for (i = 0; i < 0x80; i++) | |
| 185 | colortable_entry_set_value(machine->colortable, i, i); | |
| 186 | ||
| 187 | /* sprites */ | |
| 188 | for (i = 0x80; i < 0x100; i++) | |
| 189 | { | |
| 190 | UINT8 ctabentry = (color_prom[i - 0x80] & 0x0f) | 0x80; | |
| 191 | colortable_entry_set_value(machine->colortable, i, ctabentry); | |
| 192 | } | |
| 179 | 193 | } |
| 180 | 194 | |
| 181 | 195 |
| r1711 | r1712 | |
|---|---|---|
| 76 | 76 | K052109_tilemap_update(); |
| 77 | 77 | |
| 78 | 78 | fillbitmap(priority_bitmap,0,cliprect); |
| 79 | fillbitmap(bitmap, | |
| 79 | fillbitmap(bitmap, | |
| 80 | 80 | tilemap_draw(bitmap,cliprect,K052109_tilemap[1],0,1); |
| 81 | 81 | tilemap_draw(bitmap,cliprect,K052109_tilemap[2],0,2); |
| 82 | 82 | tilemap_draw(bitmap,cliprect,K052109_tilemap[0],0,4); |
| r1711 | r1712 | |
|---|---|---|
| 20 | 20 | int x,y; |
| 21 | 21 | |
| 22 | 22 | for (y = machine->screen[0].visarea.min_y; y <= machine->screen[0].visarea.max_y; y+=2) |
| 23 | { | |
| 24 | 23 | for (x = machine->screen[0].visarea.min_x; x <= machine->screen[0].visarea.max_x; x++) |
| 25 | 24 | { |
| 26 | *BITMAP_ADDR16(bitmap, y+1, x) = machine->pens[videoram[0x80*y+x] & 0x0f]; | |
| 27 | *BITMAP_ADDR16(bitmap, y, x) = machine->pens[(videoram[0x80*y+x] >> 4)& 0x0f]; | |
| 25 | *BITMAP_ADDR16(bitmap, y+1, x) = videoram[0x80*y+x] & 0x0f; | |
| 26 | *BITMAP_ADDR16(bitmap, y, x) = videoram[0x80*y+x] >> 4; | |
| 28 | 27 | } |
| 29 | } | |
| 30 | 28 | |
| 31 | 29 | return 0; |
| 32 | 30 | } |
| r1711 | r1712 | |
|---|---|---|
| 71 | 71 | |
| 72 | 72 | /* Function prototypes */ |
| 73 | 73 | |
| 74 | static void vdc_advance_line(int which); | |
| 75 | static void draw_black_line(int line); | |
| 76 | static void draw_overscan_line(int line); | |
| 77 | static void draw_sgx_overscan_line(int line); | |
| 78 | static void pce_refresh_line(int which, int line, int external_input, UINT8 *drawn, UINT16 *line_buffer); | |
| 79 | static void pce_refresh_sprites(int which, int line, UINT8 *drawn, UINT16 *line_buffer); | |
| 74 | static void vdc_advance_line(running_machine *machine, int which); | |
| 75 | static void draw_black_line(running_machine *machine, int line); | |
| 76 | static void draw_overscan_line(const pen_t *pens, int line); | |
| 77 | static void draw_sgx_overscan_line(const pen_t *pens, int line); | |
| 78 | static void pce_refresh_line(int which, int line, int external_input, UINT8 *drawn, UINT16 *line_buffer, const pen_t *pens); | |
| 79 | static void pce_refresh_sprites(running_machine *machine, int which, int line, UINT8 *drawn, UINT16 *line_buffer, const pen_t *pens); | |
| 80 | 80 | static void vdc_do_dma(int which); |
| 81 | 81 | static void vpc_init( void ); |
| 82 | 82 | |
| r1711 | r1712 | |
| 86 | 86 | if ( vce.current_bitmap_line >= 14 && vce.current_bitmap_line < 14 + 242 ) { |
| 87 | 87 | /* We are in the active display area */ |
| 88 | 88 | /* First fill the line with the overscan color */ |
| 89 | draw_overscan_line( vce.current_bitmap_line ); | |
| 89 | draw_overscan_line(machine->pens, vce.current_bitmap_line ); | |
| 90 | 90 | |
| 91 | 91 | /* Check if we need to draw more just the overscan color */ |
| 92 | 92 | if ( vdc[0].current_segment == STATE_VDW ) { |
| r1711 | r1712 | |
| 103 | 103 | vdc[0].y_scroll = ( vdc[0].current_segment_line == 0 ) ? vdc[0].vdc_data[BYR].w : ( vdc[0].y_scroll + 1 ); |
| 104 | 104 | |
| 105 | 105 | /* Draw VDC #0 background layer */ |
| 106 | pce_refresh_line( 0, vdc[0].current_segment_line, 0, drawn, line_buffer ); | |
| 106 | pce_refresh_line( 0, vdc[0].current_segment_line, 0, drawn, line_buffer, machine->pens); | |
| 107 | 107 | |
| 108 | 108 | /* Draw VDC #0 sprite layer */ |
| 109 | 109 | if(vdc[0].vdc_data[CR].w & CR_SB) { |
| 110 | pce_refresh_sprites(0, vdc[0].current_segment_line, drawn, line_buffer); | |
| 110 | pce_refresh_sprites(machine, 0, vdc[0].current_segment_line, drawn, line_buffer, machine->pens); | |
| 111 | 111 | } |
| 112 | 112 | } |
| 113 | 113 | } else { |
| 114 | 114 | /* We are in one of the blanking areas */ |
| 115 | draw_black_line( vce.current_bitmap_line ); | |
| 115 | draw_black_line(machine, vce.current_bitmap_line ); | |
| 116 | 116 | } |
| 117 | 117 | |
| 118 | 118 | /* bump current scanline */ |
| 119 | 119 | vce.current_bitmap_line = ( vce.current_bitmap_line + 1 ) % VDC_LPF; |
| 120 | vdc_advance_line( 0 ); | |
| 120 | vdc_advance_line(machine, 0 ); | |
| 121 | 121 | } |
| 122 | 122 | |
| 123 | 123 | INTERRUPT_GEN( sgx_interrupt ) |
| r1711 | r1712 | |
| 126 | 126 | if ( vce.current_bitmap_line >= 14 && vce.current_bitmap_line < 14 + 242 ) { |
| 127 | 127 | /* We are in the active display area */ |
| 128 | 128 | /* First fill the line with the overscan color */ |
| 129 | draw_sgx_overscan_line( vce.current_bitmap_line ); | |
| 129 | draw_sgx_overscan_line(machine->pens, vce.current_bitmap_line ); | |
| 130 | 130 | |
| 131 | 131 | /* Check if we need to draw more just the overscan color */ |
| 132 | 132 | if ( vdc[0].current_segment == STATE_VDW ) { |
| r1711 | r1712 | |
| 145 | 145 | vdc[1].y_scroll = ( vdc[1].current_segment_line == 0 ) ? vdc[1].vdc_data[BYR].w : ( vdc[1].y_scroll + 1 ); |
| 146 | 146 | |
| 147 | 147 | /* Draw VDC #0 background layer */ |
| 148 | pce_refresh_line( 0, vdc[0].current_segment_line, 0, drawn[0], temp_buffer[0] ); | |
| 148 | pce_refresh_line( 0, vdc[0].current_segment_line, 0, drawn[0], temp_buffer[0], machine->pens); | |
| 149 | 149 | |
| 150 | 150 | /* Draw VDC #0 sprite layer */ |
| 151 | 151 | if(vdc[0].vdc_data[CR].w & CR_SB) { |
| 152 | pce_refresh_sprites( 0, vdc[0].current_segment_line, drawn[0], temp_buffer[0] ); | |
| 152 | pce_refresh_sprites(machine, 0, vdc[0].current_segment_line, drawn[0], temp_buffer[0], machine->pens); | |
| 153 | 153 | } |
| 154 | 154 | |
| 155 | 155 | /* Draw VDC #1 background layer */ |
| 156 | pce_refresh_line( 1, vdc[1].current_segment_line, 1, drawn[1], temp_buffer[1] ); | |
| 156 | pce_refresh_line( 1, vdc[1].current_segment_line, 1, drawn[1], temp_buffer[1], machine->pens); | |
| 157 | 157 | |
| 158 | 158 | /* Draw VDC #1 sprite layer */ |
| 159 | 159 | if ( vdc[1].vdc_data[CR].w & CR_SB ) { |
| 160 | pce_refresh_sprites( 1, vdc[1].current_segment_line, drawn[1], temp_buffer[1] ); | |
| 160 | pce_refresh_sprites(machine, 1, vdc[1].current_segment_line, drawn[1], temp_buffer[1], machine->pens); | |
| 161 | 161 | } |
| 162 | 162 | |
| 163 | 163 | line_buffer = BITMAP_ADDR16( vce.bmp, vce.current_bitmap_line, 86 ); |
| r1711 | r1712 | |
| 227 | 227 | } |
| 228 | 228 | } else { |
| 229 | 229 | /* We are in one of the blanking areas */ |
| 230 | draw_black_line( vce.current_bitmap_line ); | |
| 230 | draw_black_line(machine, vce.current_bitmap_line ); | |
| 231 | 231 | } |
| 232 | 232 | |
| 233 | 233 | /* bump current scanline */ |
| 234 | 234 | vce.current_bitmap_line = ( vce.current_bitmap_line + 1 ) % VDC_LPF; |
| 235 | vdc_advance_line( 0 ); | |
| 236 | vdc_advance_line( 1 ); | |
| 235 | vdc_advance_line(machine, 0 ); | |
| 236 | vdc_advance_line(machine, 1 ); | |
| 237 | 237 | } |
| 238 | 238 | |
| 239 | static void vdc_advance_line(int which) { | |
| 239 | static void vdc_advance_line(running_machine *machine, int which) { | |
| 240 | 240 | int ret = 0; |
| 241 | 241 | |
| 242 | 242 | vdc[which].curline += 1; |
| r1711 | r1712 | |
| 342 | 342 | } |
| 343 | 343 | |
| 344 | 344 | if (ret) |
| 345 | cpunum_set_input_line( | |
| 345 | cpunum_set_input_line(machine, 0, 0, HOLD_LINE); | |
| 346 | 346 | } |
| 347 | 347 | |
| 348 | 348 | VIDEO_START( pce ) |
| r1711 | r1712 | |
| 377 | 377 | return 0; |
| 378 | 378 | } |
| 379 | 379 | |
| 380 | static void draw_black_line(int line) | |
| 380 | static void draw_black_line(running_machine *machine, int line) | |
| 381 | 381 | { |
| 382 | 382 | int i; |
| 383 | 383 | |
| r1711 | r1712 | |
| 385 | 385 | UINT16 *line_buffer = BITMAP_ADDR16( vce.bmp, line, 0 ); |
| 386 | 386 | |
| 387 | 387 | for( i=0; i< VDC_WPF; i++ ) |
| 388 | line_buffer[i] = get_black_pen( | |
| 388 | line_buffer[i] = get_black_pen( machine ); | |
| 389 | 389 | } |
| 390 | 390 | |
| 391 | static void draw_overscan_line(int line) | |
| 391 | static void draw_overscan_line(const pen_t *pens, int line) | |
| 392 | 392 | { |
| 393 | 393 | int i; |
| 394 | 394 | |
| r1711 | r1712 | |
| 399 | 399 | UINT16 *line_buffer = BITMAP_ADDR16( vce.bmp, line, 0 ); |
| 400 | 400 | |
| 401 | 401 | for ( i = 0; i < VDC_WPF; i++ ) |
| 402 | line_buffer[i] = | |
| 402 | line_buffer[i] = | |
| 403 | 403 | } |
| 404 | 404 | |
| 405 | static void draw_sgx_overscan_line(int line) { | |
| 405 | static void draw_sgx_overscan_line(const pen_t *pens, int line) { | |
| 406 | 406 | int i; |
| 407 | 407 | |
| 408 | 408 | /* Are we in greyscale mode or in color mode? */ |
| r1711 | r1712 | |
| 412 | 412 | UINT16 *line_buffer = BITMAP_ADDR16( vce.bmp, line, 0 ); |
| 413 | 413 | |
| 414 | 414 | for ( i = 0; i < VDC_WPF; i++ ) |
| 415 | line_buffer[i] = | |
| 415 | line_buffer[i] = | |
| 416 | 416 | } |
| 417 | 417 | |
| 418 | 418 | static void vram_write(int which, offs_t offset, UINT8 data) |
| r1711 | r1712 | |
| 627 | 627 | } |
| 628 | 628 | |
| 629 | 629 | |
| 630 | static void pce_refresh_line(int which, int line, int external_input, UINT8 *drawn, UINT16 *line_buffer) | |
| 630 | static void pce_refresh_line(int which, int line, int external_input, UINT8 *drawn, UINT16 *line_buffer, const pen_t *pens) | |
| 631 | 631 | { |
| 632 | static int width_table[4] = {5, 6, 7, 7}; | |
| 632 | static const int width_table[4] = {5, 6, 7, 7}; | |
| 633 | 633 | |
| 634 | 634 | int scroll_y = ( vdc[which].y_scroll & 0x01FF); |
| 635 | 635 | int scroll_x = (vdc[which].vdc_data[BXR].w & 0x03FF); |
| r1711 | r1712 | |
| 705 | 705 | if ( phys_x >= 0 && phys_x < vdc[which].physical_width ) { |
| 706 | 706 | drawn[ pixel ] = c ? 1 : 0; |
| 707 | 707 | if ( c || ! external_input ) |
| 708 | line_buffer[ pixel ] = | |
| 708 | line_buffer[ pixel ] = | |
| 709 | 709 | pixel++; |
| 710 | 710 | if ( vdc[which].physical_width != 512 ) { |
| 711 | 711 | while ( pixel < ( ( ( phys_x + 1 ) * 512 ) / vdc[which].physical_width ) ) { |
| 712 | 712 | drawn[ pixel ] = c ? 1 : 0; |
| 713 | 713 | if ( c || ! external_input ) |
| 714 | line_buffer[ pixel ] = | |
| 714 | line_buffer[ pixel ] = | |
| 715 | 715 | pixel++; |
| 716 | 716 | } |
| 717 | 717 | } |
| r1711 | r1712 | |
| 755 | 755 | } |
| 756 | 756 | } |
| 757 | 757 | |
| 758 | static void pce_refresh_sprites(int which, int line, UINT8 *drawn, UINT16 *line_buffer) | |
| 758 | static void pce_refresh_sprites(running_machine *machine, int which, int line, UINT8 *drawn, UINT16 *line_buffer, const pen_t *pens) | |
| 759 | 759 | { |
| 760 | 760 | int i; |
| 761 | 761 | UINT8 sprites_drawn=0; |
| r1711 | r1712 | |
| 807 | 807 | if(sprites_drawn > 16) { |
| 808 | 808 | vdc[which].status |= VDC_OR; |
| 809 | 809 | if(vdc[which].vdc_data[CR].w&CR_OV) |
| 810 | cpunum_set_input_line( | |
| 810 | cpunum_set_input_line(machine, 0, 0, ASSERT_LINE); | |
| 811 | 811 | continue; /* Should cause an interrupt */ |
| 812 | 812 | } |
| 813 | 813 | |
| r1711 | r1712 | |
| 828 | 828 | if ( buf[x] ) { |
| 829 | 829 | if( drawn[pixel_x] < 2 ) { |
| 830 | 830 | if( priority || drawn[pixel_x] == 0 ) { |
| 831 | line_buffer[pixel_x] = | |
| 831 | line_buffer[pixel_x] = machine->pens[color_base + vce.vce_data[0x100 + (palette << 4) + buf[x]].w]; | |
| 832 | 832 | if ( vdc[which].physical_width != 512 ) { |
| 833 | 833 | int dp = 1; |
| 834 | 834 | while ( pixel_x + dp < ( ( ( obj_x + x + 1 ) * 512 ) / vdc[which].physical_width ) ) { |
| 835 | 835 | drawn[pixel_x + dp] = i + 2; |
| 836 | line_buffer[pixel_x + dp] = | |
| 836 | line_buffer[pixel_x + dp] = | |
| 837 | 837 | dp++; |
| 838 | 838 | } |
| 839 | 839 | } |
| r1711 | r1712 | |
| 844 | 844 | else if (drawn[pixel_x]==2) |
| 845 | 845 | { |
| 846 | 846 | if(vdc[which].vdc_data[CR].w&CR_CC) |
| 847 | cpunum_set_input_line( | |
| 847 | cpunum_set_input_line(machine, 0, 0, ASSERT_LINE); | |
| 848 | 848 | vdc[which].status|=VDC_CR; |
| 849 | 849 | } |
| 850 | 850 | } |
| r1711 | r1712 | |
| 870 | 870 | if ( buf[x] ) { |
| 871 | 871 | if( drawn[pixel_x] < 2 ) { |
| 872 | 872 | if ( priority || drawn[pixel_x] == 0 ) { |
| 873 | line_buffer[pixel_x] = | |
| 873 | line_buffer[pixel_x] = | |
| 874 | 874 | if ( vdc[which].physical_width != 512 ) { |
| 875 | 875 | int dp = 1; |
| 876 | 876 | while ( pixel_x + dp < ( ( ( obj_x + x + 1 ) * 512 ) / vdc[which].physical_width ) ) { |
| 877 | 877 | drawn[pixel_x + dp] = i + 2; |
| 878 | line_buffer[pixel_x + dp] = | |
| 878 | line_buffer[pixel_x + dp] = | |
| 879 | 879 | dp++; |
| 880 | 880 | } |
| 881 | 881 | } |
| r1711 | r1712 | |
| 885 | 885 | /* Check for sprite #0 collision */ |
| 886 | 886 | else if ( drawn[pixel_x] == 2 ) { |
| 887 | 887 | if(vdc[which].vdc_data[CR].w&CR_CC) |
| 888 | cpunum_set_input_line( | |
| 888 | cpunum_set_input_line(machine, 0, 0, ASSERT_LINE); | |
| 889 | 889 | vdc[which].status|=VDC_CR; |
| 890 | 890 | } |
| 891 | 891 | } |
| r1711 | r1712 | |
| 904 | 904 | if( sprites_drawn > 16 ) { |
| 905 | 905 | vdc[which].status |= VDC_OR; |
| 906 | 906 | if(vdc[which].vdc_data[CR].w&CR_OV) |
| 907 | cpunum_set_input_line( | |
| 907 | cpunum_set_input_line(machine, 0, 0, ASSERT_LINE); | |
| 908 | 908 | } else { |
| 909 | 909 | conv_obj(which, obj_i + (cgypos << 2) + (hf ? 0 : 2), obj_l, hf, vf, buf); |
| 910 | 910 | for(x=0;x<16;x++) |
| r1711 | r1712 | |
| 914 | 914 | if ( buf[x] ) { |
| 915 | 915 | if( drawn[pixel_x] < 2 ) { |
| 916 | 916 | if( priority || drawn[pixel_x] == 0 ) { |
| 917 | line_buffer[pixel_x] = | |
| 917 | line_buffer[pixel_x] = | |
| 918 | 918 | if ( vdc[which].physical_width != 512 ) { |
| 919 | 919 | int dp = 1; |
| 920 | 920 | while ( pixel_x + dp < ( ( ( obj_x + x + 17 ) * 512 ) / vdc[which].physical_width ) ) { |
| 921 | 921 | drawn[pixel_x + dp] = i + 2; |
| 922 | line_buffer[pixel_x + dp] = | |
| 922 | line_buffer[pixel_x + dp] = | |
| 923 | 923 | dp++; |
| 924 | 924 | } |
| 925 | 925 | } |
| r1711 | r1712 | |
| 929 | 929 | /* Check for sprite #0 collision */ |
| 930 | 930 | else if ( drawn[pixel_x]==2 ) { |
| 931 | 931 | if(vdc[which].vdc_data[CR].w&CR_CC) |
| 932 | cpunum_set_input_line( | |
| 932 | cpunum_set_input_line(machine, 0, 0, ASSERT_LINE); | |
| 933 | 933 | vdc[which].status|=VDC_CR; |
| 934 | 934 | } |
| 935 | 935 | } |
| r1711 | r1712 | |
|---|---|---|
| 311 | 311 | |
| 312 | 312 | MACHINE_DRIVER_START( 20pacgal_video ) |
| 313 | 313 | |
| 314 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 315 | 314 | MDRV_VIDEO_UPDATE(20pacgal) |
| 316 | 315 | |
| 316 | MDRV_SCREEN_ADD("main", RASTER) | |
| 317 | 317 | MDRV_SCREEN_REFRESH_RATE(60) |
| 318 | MDRV_SCREEN_VBLANK_TIME( | |
| 318 | MDRV_SCREEN_VBLANK_TIME( | |
| 319 | 319 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 320 | 320 | MDRV_SCREEN_SIZE(SCREEN_WIDTH, SCREEN_HEIGHT) |
| 321 | 321 | MDRV_SCREEN_VISIBLE_AREA(0, SCREEN_WIDTH - 1, 0, SCREEN_HEIGHT - 1) |
| r1711 | r1712 | |
|---|---|---|
| 33 | 33 | int i; |
| 34 | 34 | |
| 35 | 35 | |
| 36 | for (i = 0;i < machine-> | |
| 36 | for (i = 0;i < machine->config->total_colors;i++) | |
| 37 | 37 | { |
| 38 | 38 | int bit0,bit1,bit2,r,g,b; |
| 39 | 39 |
| r1711 | r1712 | |
|---|---|---|
| 209 | 209 | int shadow, |
| 210 | 210 | int shadow_pen, int eos ) |
| 211 | 211 | { |
| 212 | const pen_t *shadow_base = machine->pens + machine->gfx[0]->color_base + (machine-> | |
| 212 | const pen_t *shadow_base = machine->pens + machine->gfx[0]->color_base + (machine->config->total_colors/2); | |
| 213 | 213 | const UINT8 *source; |
| 214 | 214 | int full_shadow=shadow&SYS16_SPR_SHADOW; |
| 215 | 215 | int partial_shadow=shadow&SYS16_SPR_PARTIAL_SHADOW; |
| 216 | int shadow_mask=(machine-> | |
| 216 | int shadow_mask=(machine->config->total_colors/2)-1; | |
| 217 | 217 | int sx, x, xcount; |
| 218 | 218 | int sy, y, ycount = 0; |
| 219 | 219 | int dx,dy; |
| r1711 | r1712 | |
| 526 | 526 | |
| 527 | 527 | palette_set_color( Machine, offset, MAKE_RGB(r, g, b) ); |
| 528 | 528 | |
| 529 | palette_set_color( Machine, offset+Machine-> | |
| 529 | palette_set_color( Machine, offset+Machine->config->total_colors/2,MAKE_RGB(rs,gs,bs)); | |
| 530 | 530 | } |
| 531 | 531 | } |
| 532 | 532 | |
| r1711 | r1712 | |
| 821 | 821 | { |
| 822 | 822 | /* initialize all entries to black - needed for Golden Axe*/ |
| 823 | 823 | int i; |
| 824 | for( i=0; i<machine-> | |
| 824 | for( i=0; i<machine->config->total_colors; i++ ){ | |
| 825 | 825 | palette_set_color( machine, i, MAKE_RGB(0,0,0) ); |
| 826 | 826 | } |
| 827 | 827 |
| r1711 | r1712 | |
|---|---|---|
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | 11 | #include "video/resnet.h" |
| 12 | #include "redalert.h" | |
| 12 | 13 | |
| 13 | 14 | |
| 14 | 15 | #define NUM_CHARMAP_PENS 0x200 |
| r1711 | r1712 | |
| 299 | 300 | |
| 300 | 301 | MACHINE_DRIVER_START( redalert_video ) |
| 301 | 302 | |
| 302 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 303 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 304 | ||
| 305 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 306 | 303 | MDRV_VIDEO_START(redalert) |
| 307 | 304 | MDRV_VIDEO_UPDATE(redalert) |
| 308 | 305 | |
| 306 | MDRV_SCREEN_ADD("main", RASTER) | |
| 309 | 307 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 308 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 309 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 310 | 310 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 311 | 311 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 312 | 312 | |
| r1711 | r1712 | |
| 322 | 322 | |
| 323 | 323 | MACHINE_DRIVER_START( demoneye_video ) |
| 324 | 324 | |
| 325 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 326 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 327 | ||
| 328 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 329 | 325 | MDRV_VIDEO_START(redalert) |
| 330 | 326 | MDRV_VIDEO_UPDATE(demoneye) |
| 331 | 327 | |
| 328 | MDRV_SCREEN_ADD("main", RASTER) | |
| 332 | 329 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 330 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 331 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 333 | 332 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 334 | 333 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 335 | 334 |
| r1711 | r1712 | |
|---|---|---|
| 351 | 351 | |
| 352 | 352 | ***************************************************************************/ |
| 353 | 353 | |
| 354 | static void draw_road( | |
| 354 | static void draw_road( | |
| 355 | 355 | { |
| 356 | 356 | const UINT8 *road_control = memory_region(REGION_GFX5); |
| 357 | 357 | const UINT8 *road_bits1 = memory_region(REGION_GFX5) + 0x2000; |
| r1711 | r1712 | |
| 362 | 362 | for (y = 128; y < 256; y++) |
| 363 | 363 | { |
| 364 | 364 | int xoffs, yoffs, xscroll, roadpal; |
| 365 | UINT8 scanline[256 + 8]; | |
| 366 | UINT8 *dest = scanline; | |
| 367 | const pen_t *colortable; | |
| 365 | UINT16 scanline[256 + 8]; | |
| 366 | UINT16 *dest = scanline; | |
| 367 | pen_t pen_base; | |
| 368 | 368 | |
| 369 | 369 | /* first add the vertical position modifier and the vertical scroll */ |
| 370 | 370 | yoffs = ((polepos_vertical_position_modifier[y] + road16_vscroll) >> 3) & 0x1ff; |
| r1711 | r1712 | |
| 373 | 373 | roadpal = polepos_road16_memory[yoffs] & 15; |
| 374 | 374 | |
| 375 | 375 | /* this becomes the palette base for the scanline */ |
| 376 | | |
| 376 | pen_ | |
| 377 | 377 | |
| 378 | 378 | /* now fetch the horizontal scroll offset for this scanline */ |
| 379 | 379 | xoffs = polepos_road16_memory[0x380 + (y & 0x7f)] & 0x3ff; |
| r1711 | r1712 | |
| 392 | 392 | { |
| 393 | 393 | /* in this case, it looks like we just fill with 0 */ |
| 394 | 394 | for (i = 0; i < 8; i++) |
| 395 | *dest++ = 0; | |
| 395 | *dest++ = pen_base | 0; | |
| 396 | 396 | } |
| 397 | 397 | |
| 398 | 398 | /* otherwise, we clock in the bits and compute the road value */ |
| r1711 | r1712 | |
| 415 | 415 | { |
| 416 | 416 | int bits = BIT(bits1,i) + (BIT(bits2,i) << 1); |
| 417 | 417 | if (!carin && bits) bits++; |
| 418 | *dest++ = roadval & 0x3f; | |
| 418 | *dest++ = pen_base | (roadval & 0x3f); | |
| 419 | 419 | roadval += bits; |
| 420 | 420 | } |
| 421 | 421 | } |
| 422 | 422 | } |
| 423 | 423 | |
| 424 | 424 | /* draw the scanline */ |
| 425 | draw_scanline | |
| 425 | draw_scanline16(bitmap, 0, y, 256, &scanline[xscroll], NULL | |
| 426 | 426 | } |
| 427 | 427 | } |
| 428 | 428 | |
| r1711 | r1712 | |
| 511 | 511 | rectangle clip = *cliprect; |
| 512 | 512 | clip.max_y = 127; |
| 513 | 513 | tilemap_draw(bitmap,&clip,bg_tilemap,0,0); |
| 514 | draw_road( | |
| 514 | draw_road( | |
| 515 | 515 | draw_sprites(machine, bitmap,cliprect); |
| 516 | 516 | tilemap_draw(bitmap,cliprect,tx_tilemap,0,0); |
| 517 | 517 | /* following code should be enabled only in a debug build */ |
| r1711 | r1712 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 3 | 2 | #include "profiler.h" |
| 4 | 3 | |
| 5 | 4 | UINT16 *taitob_scroll; |
| r1711 | r1712 | |
| 148 | 147 | { |
| 149 | 148 | /* bit 15 of pixel_scroll[0] is probably flip screen */ |
| 150 | 149 | |
| 151 | *BITMAP_ADDR16(pixel_bitmap, sy, 2*sx+0) = Machine->pens[b_fg_color_base * 16 + (data & 0xff)]; | |
| 152 | *BITMAP_ADDR16(pixel_bitmap, sy, 2*sx+1) = Machine->pens[b_fg_color_base * 16 + (data & 0xff)]; | |
| 150 | *BITMAP_ADDR16(pixel_bitmap, sy, 2*sx+0) = b_fg_color_base * 16 + (data & 0xff); | |
| 151 | *BITMAP_ADDR16(pixel_bitmap, sy, 2*sx+1) = b_fg_color_base * 16 + (data & 0xff); | |
| 153 | 152 | } |
| 154 | 153 | } |
| 155 | 154 |
| r1711 | r1712 | |
|---|---|---|
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | |
| 51 | static void set_pens(r | |
| 51 | static void set_pens(colort | |
| 52 | 52 | { |
| 53 | 53 | int i; |
| 54 | 54 | |
| r1711 | r1712 | |
| 58 | 58 | |
| 59 | 59 | rgb_t color = MAKE_RGB(pal5bit(data >> 0), pal5bit(data >> 5), pal5bit(data >> 10)); |
| 60 | 60 | |
| 61 | colortable_palette_set_color( | |
| 61 | colortable_palette_set_color( | |
| 62 | 62 | } |
| 63 | 63 | } |
| 64 | 64 | |
| r1711 | r1712 | |
| 228 | 228 | |
| 229 | 229 | VIDEO_UPDATE( jackal ) |
| 230 | 230 | { |
| 231 | set_pens(machine); | |
| 231 | set_pens(machine->colortable); | |
| 232 | 232 | draw_background(bitmap, cliprect); |
| 233 | 233 | draw_sprites(machine, bitmap, cliprect); |
| 234 | 234 | return 0; |
| r1711 | r1712 | |
|---|---|---|
| 9 | 9 | #include "includes/tank8.h" |
| 10 | 10 | |
| 11 | 11 | |
| 12 | UINT8* tank8_video_ram; | |
| 13 | UINT8* tank8_pos_h_ram; | |
| 14 | UINT8* tank8_pos_v_ram; | |
| 15 | UINT8* tank8_pos_d_ram; | |
| 12 | UINT8 *tank8_video_ram; | |
| 13 | UINT8 *tank8_pos_h_ram; | |
| 14 | UINT8 *tank8_pos_v_ram; | |
| 15 | UINT8 *tank8_pos_d_ram; | |
| 16 | UINT8 *tank8_team; | |
| 16 | 17 | |
| 17 | static tilemap* tilemap1; | |
| 18 | static tilemap* tilemap2; | |
| 18 | static tilemap *tank8_tilemap; | |
| 19 | 19 | |
| 20 | static mame_bitmap* helper1; | |
| 21 | static mame_bitmap* helper2; | |
| 22 | static mame_bitmap* helper3; | |
| 20 | static mame_bitmap *helper1; | |
| 21 | static mame_bitmap *helper2; | |
| 22 | static mame_bitmap *helper3; | |
| 23 | 23 | |
| 24 | 24 | |
| 25 | 25 | |
| 26 | PALETTE_INIT( tank8 ) | |
| 27 | { | |
| 28 | int i; | |
| 29 | ||
| 30 | /* allocate the colortable */ | |
| 31 | machine->colortable = colortable_alloc(machine, 0x0a); | |
| 32 | ||
| 33 | colortable_palette_set_color(machine->colortable, 8, MAKE_RGB(0x00, 0x00, 0x00)); | |
| 34 | colortable_palette_set_color(machine->colortable, 9, MAKE_RGB(0xff, 0xff, 0xff)); | |
| 35 | ||
| 36 | for (i = 0; i < 8; i++) | |
| 37 | { | |
| 38 | colortable_entry_set_value(machine->colortable, 2 * i + 0, 8); | |
| 39 | colortable_entry_set_value(machine->colortable, 2 * i + 1, i); | |
| 40 | } | |
| 41 | ||
| 42 | /* walls */ | |
| 43 | colortable_entry_set_value(machine->colortable, 0x10, 8); | |
| 44 | colortable_entry_set_value(machine->colortable, 0x11, 9); | |
| 45 | ||
| 46 | /* mines */ | |
| 47 | colortable_entry_set_value(machine->colortable, 0x12, 8); | |
| 48 | colortable_entry_set_value(machine->colortable, 0x13, 9); | |
| 49 | } | |
| 50 | ||
| 51 | ||
| 52 | static void set_pens(colortable_t *colortable) | |
| 53 | { | |
| 54 | if (*tank8_team & 0x01) | |
| 55 | { | |
| 56 | colortable_palette_set_color(colortable, 0, MAKE_RGB(0xff, 0x00, 0x00)); /* red */ | |
| 57 | colortable_palette_set_color(colortable, 1, MAKE_RGB(0x00, 0x00, 0xff)); /* blue */ | |
| 58 | colortable_palette_set_color(colortable, 2, MAKE_RGB(0xff, 0xff, 0x00)); /* yellow */ | |
| 59 | colortable_palette_set_color(colortable, 3, MAKE_RGB(0x00, 0xff, 0x00)); /* green */ | |
| 60 | colortable_palette_set_color(colortable, 4, MAKE_RGB(0xff, 0x00, 0xff)); /* magenta */ | |
| 61 | colortable_palette_set_color(colortable, 5, MAKE_RGB(0xe0, 0xc0, 0x70)); /* puce */ | |
| 62 | colortable_palette_set_color(colortable, 6, MAKE_RGB(0x00, 0xff, 0xff)); /* cyan */ | |
| 63 | colortable_palette_set_color(colortable, 7, MAKE_RGB(0xff, 0xaa, 0xaa)); /* pink */ | |
| 64 | } | |
| 65 | else | |
| 66 | { | |
| 67 | colortable_palette_set_color(colortable, 0, MAKE_RGB(0xff, 0x00, 0x00)); /* red */ | |
| 68 | colortable_palette_set_color(colortable, 2, MAKE_RGB(0xff, 0x00, 0x00)); /* red */ | |
| 69 | colortable_palette_set_color(colortable, 4, MAKE_RGB(0xff, 0x00, 0x00)); /* red */ | |
| 70 | colortable_palette_set_color(colortable, 6, MAKE_RGB(0xff, 0x00, 0x00)); /* red */ | |
| 71 | colortable_palette_set_color(colortable, 1, MAKE_RGB(0x00, 0x00, 0xff)); /* blue */ | |
| 72 | colortable_palette_set_color(colortable, 3, MAKE_RGB(0x00, 0x00, 0xff)); /* blue */ | |
| 73 | colortable_palette_set_color(colortable, 5, MAKE_RGB(0x00, 0x00, 0xff)); /* blue */ | |
| 74 | colortable_palette_set_color(colortable, 7, MAKE_RGB(0x00, 0x00, 0xff)); /* blue */ | |
| 75 | } | |
| 76 | } | |
| 77 | ||
| 78 | ||
| 26 | 79 | WRITE8_HANDLER( tank8_video_ram_w ) |
| 27 | 80 | { |
| 28 | 81 | tank8_video_ram[offset] = data; |
| 29 | tilemap_mark_tile_dirty(tilemap1, offset); | |
| 30 | tilemap_mark_tile_dirty(tilemap2, offset); | |
| 82 | tilemap_mark_tile_dirty(tank8_tilemap, offset); | |
| 31 | 83 | } |
| 32 | 84 | |
| 33 | 85 | |
| 34 | 86 | |
| 35 | static TILE_GET_INFO( tank8_get_tile_info | |
| 87 | static TILE_GET_INFO( tank8_get_tile_info | |
| 36 | 88 | { |
| 37 | 89 | UINT8 code = tank8_video_ram[tile_index]; |
| 38 | 90 | |
| r1711 | r1712 | |
| 40 | 92 | |
| 41 | 93 | if ((code & 0x38) == 0x28) |
| 42 | 94 | { |
| 43 | color = 9; /* walls & mines */ | |
| 95 | if ((code & 7) != 3) | |
| 96 | color = 8; /* walls */ | |
| 97 | else | |
| 98 | color = 9; /* mines */ | |
| 44 | 99 | } |
| 45 | 100 | else |
| 46 | 101 | { |
| 47 | 102 | if (tile_index & 0x010) |
| 48 | { | |
| 49 | 103 | color |= 1; |
| 50 | ||
| 104 | ||
| 51 | 105 | if (code & 0x80) |
| 52 | { | |
| 53 | 106 | color |= 2; |
| 54 | ||
| 107 | ||
| 55 | 108 | if (tile_index & 0x200) |
| 56 | { | |
| 57 | 109 | color |= 4; |
| 58 | } | |
| 59 | 110 | } |
| 60 | 111 | |
| 61 | 112 | SET_TILE_INFO(code >> 7, code, color, (code & 0x40) ? (TILE_FLIPX | TILE_FLIPY) : 0); |
| 62 | 113 | } |
| 63 | 114 | |
| 64 | 115 | |
| 65 | static TILE_GET_INFO( tank8_get_tile_info2 ) | |
| 66 | { | |
| 67 | UINT8 code = tank8_video_ram[tile_index]; | |
| 68 | 116 | |
| 69 | int color = 8; | |
| 70 | ||
| 71 | if ((code & 0x38) == 0x28) | |
| 72 | { | |
| 73 | if ((code & 7) != 3) | |
| 74 | { | |
| 75 | color = 1; /* walls */ | |
| 76 | } | |
| 77 | else | |
| 78 | { | |
| 79 | color = 2; /* mines */ | |
| 80 | } | |
| 81 | } | |
| 82 | ||
| 83 | SET_TILE_INFO(code >> 7, code, color, (code & 0x40) ? (TILE_FLIPX | TILE_FLIPY) : 0); | |
| 84 | } | |
| 85 | ||
| 86 | ||
| 87 | 117 | VIDEO_START( tank8 ) |
| 88 | 118 | { |
| 89 | 119 | helper1 = auto_bitmap_alloc(machine->screen[0].width, machine->screen[0].height, machine->screen[0].format); |
| 90 | 120 | helper2 = auto_bitmap_alloc(machine->screen[0].width, machine->screen[0].height, machine->screen[0].format); |
| 91 | 121 | helper3 = auto_bitmap_alloc(machine->screen[0].width, machine->screen[0].height, machine->screen[0].format); |
| 92 | 122 | |
| 93 | tilemap1 = tilemap_create(tank8_get_tile_info1, tilemap_scan_rows, 16, 16, 32, 32); | |
| 94 | tilemap2 = tilemap_create(tank8_get_tile_info2, tilemap_scan_rows, 16, 16, 32, 32); | |
| 123 | tank8_tilemap = tilemap_create(tank8_get_tile_info, tilemap_scan_rows, 16, 16, 32, 32); | |
| 95 | 124 | |
| 96 | 125 | /* VBLANK starts on scanline #256 and ends on scanline #24 */ |
| 97 | 126 | |
| 98 | tilemap_set_scrolly(tilemap1, 0, 2 * 24); | |
| 99 | tilemap_set_scrolly(tilemap2, 0, 2 * 24); | |
| 127 | tilemap_set_scrolly(tank8_tilemap, 0, 2 * 24); | |
| 100 | 128 | } |
| 101 | 129 | |
| 102 | 130 | |
| r1711 | r1712 | |
| 112 | 140 | } |
| 113 | 141 | |
| 114 | 142 | |
| 115 | static void draw_sprites(running_machine *machine, mame_bitmap | |
| 143 | static void draw_sprites(running_machine *machine, mame_bitmap | |
| 116 | 144 | { |
| 117 | 145 | int i; |
| 118 | 146 | |
| r1711 | r1712 | |
| 135 | 163 | } |
| 136 | 164 | |
| 137 | 165 | |
| 138 | static void draw_bullets(mame_bitmap | |
| 166 | static void draw_bullets(mame_bitmap | |
| 139 | 167 | { |
| 140 | 168 | int i; |
| 141 | 169 | |
| r1711 | r1712 | |
| 162 | 190 | if (rect.max_y > cliprect->max_y) |
| 163 | 191 | rect.max_y = cliprect->max_y; |
| 164 | 192 | |
| 165 | fillbitmap(bitmap, i, &rect); | |
| 193 | fillbitmap(bitmap, (i << 1) | 0x01, &rect); | |
| 166 | 194 | } |
| 167 | 195 | } |
| 168 | 196 | |
| r1711 | r1712 | |
| 175 | 203 | |
| 176 | 204 | VIDEO_UPDATE( tank8 ) |
| 177 | 205 | { |
| 178 | tilemap_draw(bitmap, cliprect, tilemap1, 0, 0); | |
| 206 | set_pens(machine->colortable); | |
| 207 | tilemap_draw(bitmap, cliprect, tank8_tilemap, 0, 0); | |
| 179 | 208 | |
| 180 | 209 | draw_sprites(machine, bitmap, cliprect); |
| 181 | 210 | draw_bullets(bitmap, cliprect); |
| r1711 | r1712 | |
| 185 | 214 | |
| 186 | 215 | VIDEO_EOF( tank8 ) |
| 187 | 216 | { |
| 188 | const rectangle | |
| 217 | const rectangle | |
| 189 | 218 | |
| 190 | 219 | int x; |
| 191 | 220 | int y; |
| 192 | 221 | |
| 193 | tilemap_draw(helper1, clip, tilemap | |
| 222 | tilemap_draw(helper1, clip, tank8_tilemap | |
| 194 | 223 | |
| 195 | 224 | fillbitmap(helper2, 8, clip); |
| 196 | 225 | fillbitmap(helper3, 8, clip); |
| r1711 | r1712 | |
| 207 | 236 | const UINT16* p3 = BITMAP_ADDR16(helper3, y, 0); |
| 208 | 237 | |
| 209 | 238 | if (y % 2 != cpu_getcurrentframe() % 2) |
| 210 | { | |
| 211 | 239 | continue; /* video display is interlaced */ |
| 212 | } | |
| 213 | 240 | |
| 214 | 241 | for (x = clip->min_x; x <= clip->max_x; x++) |
| 215 | 242 | { |
| 216 | 243 | UINT8 index; |
| 217 | 244 | |
| 218 | if (p1[x] == 8) | |
| 245 | /* neither wall nor mine */ | |
| 246 | if ((p1[x] != 0x11) && (p1[x] != 0x13)) | |
| 219 | 247 | { |
| 220 | state = 0; continue; /* neither wall nor mine */ | |
| 248 | state = 0; | |
| 249 | continue; | |
| 221 | 250 | } |
| 222 | if (p2[x] == 8 && p3[x] == 8) | |
| 251 | ||
| 252 | /* neither tank nor bullet */ | |
| 253 | if ((p2[x] == 8) && (p3[x] == 8)) | |
| 223 | 254 | { |
| 224 | state = 0; continue; /* neither tank nor bullet */ | |
| 255 | state = 0; | |
| 256 | continue; | |
| 225 | 257 | } |
| 226 | if (p3[x] != 8 && p1[x] == 2) | |
| 258 | ||
| 259 | /* bullets cannot hit mines */ | |
| 260 | if ((p3[x] != 8) && (p1[x] == 0x13)) | |
| 227 | 261 | { |
| 228 | state = 0; continue; /* bullets cannot hit mines */ | |
| 262 | state = 0; | |
| 263 | continue; | |
| 229 | 264 | } |
| 230 | 265 | |
| 231 | 266 | if (state) |
| 232 | { | |
| 233 | 267 | continue; |
| 234 | } | |
| 235 | 268 | |
| 236 | 269 | if (p3[x] != 8) |
| 237 | 270 | { |
| 238 | index = p3[x] | 0x18; | |
| 271 | index = ((p3[x] & ~0x01) >> 1) | 0x18; | |
| 239 | 272 | |
| 240 | 273 | if (1) |
| 241 | { | |
| 242 | 274 | index |= 0x20; |
| 243 | ||
| 275 | ||
| 244 | 276 | if (0) |
| 245 | { | |
| 246 | 277 | index |= 0x40; |
| 247 | ||
| 278 | ||
| 248 | 279 | if (1) |
| 249 | { | |
| 250 | 280 | index |= 0x80; |
| 251 | } | |
| 252 | 281 | } |
| 253 | 282 | else |
| 254 | 283 | { |
| 255 | index = p2[x] | 0x10; | |
| 284 | int sprite_num = (p2[x] & ~0x01) >> 1; | |
| 285 | index = sprite_num | 0x10; | |
| 256 | 286 | |
| 257 | if (p1[x] == 1) | |
| 258 | { | |
| 287 | if (p1[x] == 0x11) | |
| 259 | 288 | index |= 0x20; |
| 260 | } | |
| 261 | if (y - get_y_pos(p2[x]) >= 8) | |
| 262 | { | |
| 289 | ||
| 290 | if (y - get_y_pos(sprite_num) >= 8) | |
| 263 | 291 | index |= 0x40; /* collision on bottom side */ |
| 264 | } | |
| 265 | if (x - get_x_pos(p2[x]) >= 8) | |
| 266 | { | |
| 292 | ||
| 293 | if (x - get_x_pos(sprite_num) >= 8) | |
| 267 | 294 | index |= 0x80; /* collision on right side */ |
| 268 | } | |
| 269 | 295 | } |
| 270 | 296 | |
| 271 | 297 | timer_set(video_screen_get_time_until_pos(0, y, x), NULL, index, tank8_collision_callback); |
| r1711 | r1712 | |
|---|---|---|
| 2288 | 2288 | |
| 2289 | 2289 | for (i = 0;i < chips;i++) |
| 2290 | 2290 | { |
| 2291 | int has_separate_screen = (device_list_find_by_index(machine->config->devicelist, VIDEO_SCREEN, i) != NULL); | |
| 2291 | 2292 | int xd,yd; |
| 2292 | 2293 | TC0100SCN_dblwidth[i]=0; |
| 2293 | 2294 | |
| r1711 | r1712 | |
| 2306 | 2307 | Thundfox is the only one of those with two chips, and |
| 2307 | 2308 | we're safe as it uses single width tilemaps. */ |
| 2308 | 2309 | |
| 2309 | myclip = machine->screen[ | |
| 2310 | myclip = machine->screen[ | |
| 2310 | 2311 | |
| 2311 | 2312 | TC0100SCN_cliprect[i] = myclip; |
| 2312 | 2313 |
| r1711 | r1712 | |
|---|---|---|
| 54 | 54 | /* This function is also used by Eggs. */ |
| 55 | 55 | if (color_prom == 0) return; |
| 56 | 56 | |
| 57 | for (i = 0;i < machine-> | |
| 57 | for (i = 0;i < machine->config->total_colors;i++) | |
| 58 | 58 | { |
| 59 | 59 | int bit0,bit1,bit2,r,g,b; |
| 60 | 60 | |
| r1711 | r1712 | |
| 99 | 99 | int i; |
| 100 | 100 | |
| 101 | 101 | |
| 102 | for (i = 0;i < machine-> | |
| 102 | for (i = 0;i < machine->config->total_colors;i++) | |
| 103 | 103 | { |
| 104 | 104 | int bit0,bit1,bit2,r,g,b; |
| 105 | 105 |
| r1711 | r1712 | |
|---|---|---|
| 62 | 62 | int i; |
| 63 | 63 | |
| 64 | 64 | |
| 65 | for (i = 0;i < machine-> | |
| 65 | for (i = 0;i < machine->config->total_colors;i++) | |
| 66 | 66 | { |
| 67 | 67 | int bit0,bit1,bit2,bit3,r,g,b; |
| 68 | 68 | |
| r1711 | r1712 | |
| 72 | 72 | bit2 = (color_prom[0] >> 2) & 0x01; |
| 73 | 73 | bit3 = (color_prom[0] >> 3) & 0x01; |
| 74 | 74 | r = 0x0e * bit0 + 0x1f * bit1 + 0x42 * bit2 + 0x90 * bit3; |
| 75 | bit0 = (color_prom[machine->drv->total_colors] >> 0) & 0x01; | |
| 76 | bit1 = (color_prom[machine->drv->total_colors] >> 1) & 0x01; | |
| 77 | bit2 = (color_prom[machine->drv->total_colors] >> 2) & 0x01; | |
| 78 | bit3 = (color_prom[machine->drv->total_colors] >> 3) & 0x01; | |
| 75 | bit0 = (color_prom[machine->config->total_colors] >> 0) & 0x01; | |
| 76 | bit1 = (color_prom[machine->config->total_colors] >> 1) & 0x01; | |
| 77 | bit2 = (color_prom[machine->config->total_colors] >> 2) & 0x01; | |
| 78 | bit3 = (color_prom[machine->config->total_colors] >> 3) & 0x01; | |
| 79 | 79 | g = 0x0e * bit0 + 0x1f * bit1 + 0x42 * bit2 + 0x90 * bit3; |
| 80 | bit0 = (color_prom[2*machine->drv->total_colors] >> 0) & 0x01; | |
| 81 | bit1 = (color_prom[2*machine->drv->total_colors] >> 1) & 0x01; | |
| 82 | bit2 = (color_prom[2*machine->drv->total_colors] >> 2) & 0x01; | |
| 83 | bit3 = (color_prom[2*machine->drv->total_colors] >> 3) & 0x01; | |
| 80 | bit0 = (color_prom[2*machine->config->total_colors] >> 0) & 0x01; | |
| 81 | bit1 = (color_prom[2*machine->config->total_colors] >> 1) & 0x01; | |
| 82 | bit2 = (color_prom[2*machine->config->total_colors] >> 2) & 0x01; | |
| 83 | bit3 = (color_prom[2*machine->config->total_colors] >> 3) & 0x01; | |
| 84 | 84 | b = 0x0e * bit0 + 0x1f * bit1 + 0x42 * bit2 + 0x90 * bit3; |
| 85 | 85 | |
| 86 | 86 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); |
| r1711 | r1712 | |
|---|---|---|
| 22 | 22 | |
| 23 | 23 | PALETTE_INIT( mermaid ) |
| 24 | 24 | { |
| 25 | #define TOTAL_COLORS(gfxn) (machine->gfx[gfxn]->total_colors * machine->gfx[gfxn]->color_granularity) | |
| 26 | #define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + offs]) | |
| 27 | ||
| 28 | // first, the char actor/sprite palette | |
| 29 | 25 | int i; |
| 30 | 26 | |
| 31 | for (i = 0; i < TOTAL_COLORS(0); i++) | |
| 27 | /* allocate the colortable */ | |
| 28 | machine->colortable = colortable_alloc(machine, 0x41); | |
| 29 | ||
| 30 | for (i = 0; i < 0x40; i++) | |
| 32 | 31 | { |
| 33 | int r = 0x21 * BIT(*color_prom, 0) + 0x47 * BIT(*color_prom, 1) + 0x97 * BIT(*color_prom, 2); | |
| 34 | int g = 0x21 * BIT(*color_prom, 3) + 0x47 * BIT(*color_prom, 4) + 0x97 * BIT(*color_prom, 5); | |
| 35 | int b = 0x47 * BIT(*color_prom, 6) + 0x97 * BIT(*color_prom, 7); | |
| 32 | int r = 0x21 * BIT(color_prom[i], 0) + 0x47 * BIT(color_prom[i], 1) + 0x97 * BIT(color_prom[i], 2); | |
| 33 | int g = 0x21 * BIT(color_prom[i], 3) + 0x47 * BIT(color_prom[i], 4) + 0x97 * BIT(color_prom[i], 5); | |
| 34 | int b = 0x47 * BIT(color_prom[i], 6) + 0x97 * BIT(color_prom[i], 7); | |
| 36 | 35 | |
| 37 | palette_set_color(machine, i, MAKE_RGB(r, g, b)); | |
| 38 | ||
| 39 | color_prom++; | |
| 36 | colortable_palette_set_color(machine->colortable, i, MAKE_RGB(r, g, b)); | |
| 40 | 37 | } |
| 41 | 38 | |
| 42 | // blue background | |
| 43 | palette_set_color(machine, TOTAL_COLORS(0), MAKE_RGB(0, 0, 0xff)); | |
| 39 | /* blue background */ | |
| 40 | colortable_palette_set_color(machine->colortable, 0x40, MAKE_RGB(0, 0, 0xff)); | |
| 44 | 41 | |
| 45 | // set up background palette | |
| 46 | COLOR(2,0) = 32; | |
| 47 | COLOR(2,1) = 33; | |
| 42 | /* char/sprite palette */ | |
| 43 | for (i = 0; i < 0x40; i++) | |
| 44 | colortable_entry_set_value(machine->colortable, i, i); | |
| 48 | 45 | |
| 49 | COLOR(2,2) = 64; | |
| 50 | COLOR(2,3) = 33; | |
| 46 | /* background palette */ | |
| 47 | colortable_entry_set_value(machine->colortable, 0x40, 0x20); | |
| 48 | colortable_entry_set_value(machine->colortable, 0x41, 0x21); | |
| 49 | colortable_entry_set_value(machine->colortable, 0x42, 0x40); | |
| 50 | colortable_entry_set_value(machine->colortable, 0x43, 0x21); | |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | WRITE8_HANDLER( mermaid_videoram2_w ) |
| r1711 | r1712 | |
| 141 | 141 | |
| 142 | 142 | VIDEO_START( mermaid ) |
| 143 | 143 | { |
| 144 | bg_tilemap = tilemap_create(get_bg_tile_info, tilemap_scan_rows, | |
| 145 | 8, 8, 32, 32); | |
| 146 | ||
| 147 | fg_tilemap = tilemap_create(get_fg_tile_info, tilemap_scan_rows, | |
| 148 | 8, 8, 32, 32); | |
| 149 | ||
| 144 | bg_tilemap = tilemap_create(get_bg_tile_info, tilemap_scan_rows, 8, 8, 32, 32); | |
| 150 | 145 | tilemap_set_scroll_cols(bg_tilemap, 32); |
| 146 | ||
| 147 | fg_tilemap = tilemap_create(get_fg_tile_info, tilemap_scan_rows, 8, 8, 32, 32); | |
| 151 | 148 | tilemap_set_scroll_cols(fg_tilemap, 32); |
| 152 | 149 | tilemap_set_transparent_pen(fg_tilemap, 0); |
| 153 | 150 | } |
| r1711 | r1712 | |
|---|---|---|
| 61 | 61 | |
| 62 | 62 | VIDEO_START( gdrawpkr ) |
| 63 | 63 | { |
| 64 | mc6845 = mc6845 | |
| 64 | mc6845 = devtag_get_token(machine, MC6845, "crtc" | |
| 65 | 65 | bg_tilemap = tilemap_create(get_bg_tile_info, tilemap_scan_rows, 8, 8, 32, 31); |
| 66 | 66 | } |
| 67 | 67 | |
| r1711 | r1712 | |
| 86 | 86 | /* 00000BGR */ |
| 87 | 87 | if (color_prom == 0) return; |
| 88 | 88 | |
| 89 | for (i = 0;i < machine-> | |
| 89 | for (i = 0;i < machine->config->total_colors;i++) | |
| 90 | 90 | { |
| 91 | 91 | int bit0, bit1, bit2, r, g, b; |
| 92 | 92 |
| r1711 | r1712 | |
|---|---|---|
| 148 | 148 | |
| 149 | 149 | static void bbusters_draw_block(running_machine *machine, mame_bitmap *dest,int x,int y,int size,int flipx,int flipy,UINT32 sprite,int color,int bank,int block) |
| 150 | 150 | { |
| 151 | | |
| 151 | | |
| 152 | 152 | UINT32 xinc=(scale_line_count * 0x10000 ) / size; |
| 153 | 153 | UINT8 pixel; |
| 154 | 154 | int x_index; |
| r1711 | r1712 | |
| 176 | 176 | |
| 177 | 177 | pixel=*srcptr++; |
| 178 | 178 | if (x+(x_index>>16)>=0 && x+(x_index>>16)<256 && pixel!=15) |
| 179 | destline[x+(x_index>>16)]=pa | |
| 179 | destline[x+(x_index>>16)]= pen_base + pixel | |
| 180 | 180 | |
| 181 | 181 | if (flipx) |
| 182 | 182 | x_index-=xinc; |
| r1711 | r1712 | |
|---|---|---|
| 38 | 38 | int i; |
| 39 | 39 | PALETTE_INIT_CALL(RRRR_GGGG_BBBB); |
| 40 | 40 | |
| 41 | if(!(machine-> | |
| 41 | if(!(machine->config->video_attributes & VIDEO_HAS_SHADOWS)) | |
| 42 | 42 | popmessage("driver should use VIDEO_HAS_SHADOWS"); |
| 43 | 43 | |
| 44 | 44 | /* prepare shadow draw table */ |
| r1711 | r1712 | |
| 53 | 53 | int i; |
| 54 | 54 | PALETTE_INIT_CALL(RRRR_GGGG_BBBB); |
| 55 | 55 | |
| 56 | if(!(machine-> | |
| 56 | if(!(machine->config->video_attributes & VIDEO_HAS_SHADOWS)) | |
| 57 | 57 | popmessage("driver should use VIDEO_HAS_SHADOWS"); |
| 58 | 58 | |
| 59 | 59 | /* prepare shadow draw table */ |
| r1711 | r1712 | |
|---|---|---|
| 167 | 167 | { |
| 168 | 168 | int i; |
| 169 | 169 | |
| 170 | for (i = 0; i < machine-> | |
| 170 | for (i = 0; i < machine->config->total_colors; i++) | |
| 171 | 171 | { |
| 172 | 172 | int r = (i > 8) ? 0xff : 0xaa * ((i >> 0) & 1); |
| 173 | 173 | int g = 0xaa * ((i >> 1) & 1); |
| r1711 | r1712 | |
|---|---|---|
| 541 | 541 | |
| 542 | 542 | MACHINE_DRIVER_START( leland_video ) |
| 543 | 543 | |
| 544 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 544 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 545 | 545 | MDRV_VIDEO_START(leland) |
| 546 | 546 | MDRV_VIDEO_UPDATE(leland) |
| 547 | 547 | |
| 548 | 548 | MDRV_PALETTE_LENGTH(1024) |
| 549 | 549 | |
| 550 | MDRV_SCREEN_ADD("main", RASTER) | |
| 550 | 551 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 551 | 552 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 552 | 553 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 30*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 40 | 40 | g = 0.6*g; |
| 41 | 41 | b = 0.6*b; |
| 42 | 42 | } |
| 43 | palette_set_color(machine,color+machine-> | |
| 43 | palette_set_color(machine,color+machine->config->total_colors/2, MAKE_RGB(r, g, b)); | |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | // 315-5242 |
| r1711 | r1712 | |
| 166 | 166 | |
| 167 | 167 | machine->gfx[sys24_char_gfx_index] = allocgfx(&sys24_char_layout); |
| 168 | 168 | |
| 169 | if (machine->drv->color_table_len) | |
| 170 | machine->gfx[sys24_char_gfx_index]->total_colors = machine->drv->color_table_len / 16; | |
| 171 | else | |
| 172 | machine->gfx[sys24_char_gfx_index]->total_colors = machine->drv->total_colors / 16; | |
| 169 | machine->gfx[sys24_char_gfx_index]->total_colors = machine->config->total_colors / 16; | |
| 173 | 170 | |
| 174 | 171 | state_save_register_global_pointer(sys24_tile_ram, 0x10000/2); |
| 175 | 172 | state_save_register_global_pointer(sys24_char_ram, 0x80000/2); |
| r1711 | r1712 | |
|---|---|---|
| 58 | 58 | The bootleg is the same, but the outputs are not inverted. |
| 59 | 59 | |
| 60 | 60 | ***************************************************************************/ |
| 61 | static void convert_color_prom(running_machine *machine, | |
| 61 | static void convert_color_prom(running_machine *machine, | |
| 62 | 62 | { |
| 63 | int i | |
| 63 | int i | |
| 64 | 64 | |
| 65 | 65 | |
| 66 | 66 | /* palette entries 0-15 are directly used by the background and changed at runtime */ |
| 67 | pal_index = 16; | |
| 68 | 67 | color_prom += 32; |
| 69 | 68 | |
| 70 | 69 | /* characters */ |
| r1711 | r1712 | |
| 73 | 72 | int prom_offs = i | ((i & 8) << 1); /* address bits 3 and 4 are tied together */ |
| 74 | 73 | int bit0,bit1,bit2,r,g,b; |
| 75 | 74 | |
| 76 | ||
| 77 | 75 | /* red component */ |
| 78 | 76 | bit0 = ((color_prom[prom_offs] ^ invertmask) >> 0) & 0x01; |
| 79 | 77 | bit1 = ((color_prom[prom_offs] ^ invertmask) >> 1) & 0x01; |
| r1711 | r1712 | |
| 90 | 88 | bit2 = ((color_prom[prom_offs] ^ invertmask) >> 7) & 0x01; |
| 91 | 89 | b = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 92 | 90 | |
| 93 | palette_set_color(machine, | |
| 91 | palette_set_color(machine,16 + (2 * i) | |
| 94 | 92 | } |
| 95 | 93 | |
| 96 | 94 | color_prom += 32; |
| r1711 | r1712 | |
| 117 | 115 | bit2 = ((color_prom[256] ^ invertmask) >> 3) & 0x01; |
| 118 | 116 | b = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 119 | 117 | |
| 120 | palette_set_color(machine, | |
| 118 | palette_set_color(machine,48 | |
| 121 | 119 | |
| 122 | 120 | color_prom++; |
| 123 | 121 | } |
| 124 | ||
| 125 | ||
| 126 | /* palette entries 0-15 are directly used by the background */ | |
| 127 | ||
| 128 | for (i = 0;i < 16;i++) /* characters */ | |
| 129 | { | |
| 130 | *(colortable++) = 0; /* since chars are transparent, the PROM only */ | |
| 131 | /* stores the non transparent color */ | |
| 132 | *(colortable++) = i + 16; | |
| 133 | } | |
| 134 | for (i = 0;i < 256;i++) /* sprites */ | |
| 135 | { | |
| 136 | *(colortable++) = i + 16+16; | |
| 137 | } | |
| 138 | 122 | } |
| 139 | 123 | |
| 140 | 124 | PALETTE_INIT( popeye ) |
| 141 | 125 | { |
| 142 | 126 | invertmask = 0xff; |
| 143 | 127 | |
| 144 | convert_color_prom(machine,color | |
| 128 | convert_color_prom(machine,color | |
| 145 | 129 | } |
| 146 | 130 | |
| 147 | 131 | PALETTE_INIT( popeyebl ) |
| 148 | 132 | { |
| 149 | 133 | invertmask = 0x00; |
| 150 | 134 | |
| 151 | convert_color_prom(machine,color | |
| 135 | convert_color_prom(machine,color | |
| 152 | 136 | } |
| 153 | 137 | |
| 154 | 138 | static void set_background_palette(running_machine *machine,int bank) |
| r1711 | r1712 | |
| 215 | 199 | if (flip_screen) |
| 216 | 200 | sy = 512-8 - sy; |
| 217 | 201 | |
| 218 | colour = | |
| 202 | colour = | |
| 219 | 203 | for (y = 0; y < 8; y++) |
| 220 | 204 | { |
| 221 | 205 | for (x = 0; x < 8; x++) |
| r1711 | r1712 | |
| 232 | 216 | if (flip_screen) |
| 233 | 217 | sy = 512-4 - sy; |
| 234 | 218 | |
| 235 | colour = | |
| 219 | colour = | |
| 236 | 220 | for (y = 0; y < 4; y++) |
| 237 | 221 | { |
| 238 | 222 | for (x = 0; x < 8; x++) |
| r1711 | r1712 | |
|---|---|---|
| 16 | 16 | { |
| 17 | 17 | int i; |
| 18 | 18 | |
| 19 | for (i = 0;i < machine-> | |
| 19 | for (i = 0;i < machine->config->total_colors;i++) | |
| 20 | 20 | { |
| 21 | 21 | int bit0,bit1,bit2,r,g,b; |
| 22 | 22 | bit0 = (color_prom[i] >> 0) & 0x01; |
| r1711 | r1712 | |
|---|---|---|
| 14 | 14 | |
| 15 | 15 | #include "driver.h" |
| 16 | 16 | #include "deprecat.h" |
| 17 | #include " | |
| 17 | #include " | |
| 18 | 18 | |
| 19 | 19 | UINT16 *lemmings_pixel_0_data,*lemmings_pixel_1_data,*lemmings_vram_data,*lemmings_control_data; |
| 20 | 20 | static UINT16 *sprite_triple_buffer_0,*sprite_triple_buffer_1; |
| r1711 | r1712 | |
| 130 | 130 | if (sx>2047 || sy>255) |
| 131 | 131 | return; |
| 132 | 132 | |
| 133 | *BITMAP_ADDR16(bitmap0, sy, sx+0) = Machine->pens[((src>>8)&0xf)|0x100]; | |
| 134 | *BITMAP_ADDR16(bitmap0, sy, sx+1) = Machine->pens[((src>>0)&0xf)|0x100]; | |
| 133 | *BITMAP_ADDR16(bitmap0, sy, sx+0) = ((src>>8)&0xf)|0x100; | |
| 134 | *BITMAP_ADDR16(bitmap0, sy, sx+1) = ((src>>0)&0xf)|0x100; | |
| 135 | 135 | } |
| 136 | 136 | |
| 137 | 137 | WRITE16_HANDLER( lemmings_pixel_1_w ) |
| r1711 | r1712 | |
|---|---|---|
| 46 | 46 | int i; |
| 47 | 47 | |
| 48 | 48 | |
| 49 | for (i = 0;i < machine-> | |
| 49 | for (i = 0;i < machine->config->total_colors;i++) | |
| 50 | 50 | { |
| 51 | 51 | int bit0,bit1,bit2,r,g,b; |
| 52 | 52 | |
| r1711 | r1712 | |
| 58 | 58 | r = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 59 | 59 | /* green component */ |
| 60 | 60 | bit0 = (color_prom[i] >> 3) & 0x01; |
| 61 | bit1 = (color_prom[i + machine->drv->total_colors] >> 0) & 0x01; | |
| 62 | bit2 = (color_prom[i + machine->drv->total_colors] >> 1) & 0x01; | |
| 61 | bit1 = (color_prom[i + machine->config->total_colors] >> 0) & 0x01; | |
| 62 | bit2 = (color_prom[i + machine->config->total_colors] >> 1) & 0x01; | |
| 63 | 63 | g = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 64 | 64 | /* blue component */ |
| 65 | 65 | bit0 = 0; |
| 66 | bit1 = (color_prom[i + machine->drv->total_colors] >> 2) & 0x01; | |
| 67 | bit2 = (color_prom[i + machine->drv->total_colors] >> 3) & 0x01; | |
| 66 | bit1 = (color_prom[i + machine->config->total_colors] >> 2) & 0x01; | |
| 67 | bit2 = (color_prom[i + machine->config->total_colors] >> 3) & 0x01; | |
| 68 | 68 | b = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 69 | 69 | |
| 70 | 70 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); |
| r1711 | r1712 | |
|---|---|---|
| 119 | 119 | |
| 120 | 120 | |
| 121 | 121 | #include "driver.h" |
| 122 | #include "deprecat.h" | |
| 123 | 122 | #include "toaplan1.h" |
| 124 | 123 | #include "cpu/m68000/m68000.h" |
| 125 | 124 | |
| r1711 | r1712 | |
| 946 | 945 | UINT32 code,UINT32 color,int flipx,int flipy,int sx,int sy, |
| 947 | 946 | const rectangle *clip,int priority) |
| 948 | 947 | { |
| 949 | | |
| 948 | i | |
| 950 | 949 | UINT8 *source_base = gfx->gfxdata + (code % gfx->total_elements) * gfx->char_modulo; |
| 951 | 950 | |
| 952 | 951 | int sprite_screen_height = ((1<<16)*gfx->height+0x8000)>>16; |
| r1711 | r1712 | |
| 1028 | 1027 | if( c != 0 ) |
| 1029 | 1028 | { |
| 1030 | 1029 | if (pri[x] < priority) |
| 1031 | dest[x] = pal | |
| 1030 | dest[x] = pal_base+c | |
| 1032 | 1031 | pri[x] = 0xff; // mark it "already drawn" |
| 1033 | 1032 | } |
| 1034 | 1033 | x_index += dx; |
| r1711 | r1712 | |
|---|---|---|
| 57 | 57 | { |
| 58 | 58 | int i; |
| 59 | 59 | |
| 60 | #define TOTAL_COLORS(gfxn) (machine->gfx[gfxn]->total_colors * machine->gfx[gfxn]->color_granularity) | |
| 61 | #define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + offs]) | |
| 60 | /* allocate the colortable */ | |
| 61 | machine->colortable = colortable_alloc(machine, 0x31); | |
| 62 | 62 | |
| 63 | /* first, the character/sprite palette */ | |
| 64 | for (i = 0;i < machine->drv->total_colors-1; i++) | |
| 63 | /* create a lookup table for the palette */ | |
| 64 | for (i = 0; i < 0x30; i++) | |
| 65 | 65 | { |
| 66 | int bit0,bit1,bit2,r,g,b; | |
| 66 | int bit0, bit1, bit2; | |
| 67 | int r, g, b; | |
| 67 | 68 | |
| 68 | 69 | /* red component */ |
| 69 | ||
| 70 | bit0 = (*color_prom >> 0) & 0x01; | |
| 71 | bit1 = (*color_prom >> 1) & 0x01; | |
| 72 | bit2 = (*color_prom >> 2) & 0x01; | |
| 73 | ||
| 70 | bit0 = (color_prom[i] >> 0) & 0x01; | |
| 71 | bit1 = (color_prom[i] >> 1) & 0x01; | |
| 72 | bit2 = (color_prom[i] >> 2) & 0x01; | |
| 74 | 73 | r = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 75 | 74 | |
| 76 | 75 | /* green component */ |
| 77 | ||
| 78 | bit0 = (*color_prom >> 3) & 0x01; | |
| 79 | bit1 = (*color_prom >> 4) & 0x01; | |
| 80 | bit2 = (*color_prom >> 5) & 0x01; | |
| 81 | ||
| 76 | bit0 = (color_prom[i] >> 3) & 0x01; | |
| 77 | bit1 = (color_prom[i] >> 4) & 0x01; | |
| 78 | bit2 = (color_prom[i] >> 5) & 0x01; | |
| 82 | 79 | g = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 83 | 80 | |
| 84 | 81 | /* blue component */ |
| 85 | ||
| 86 | 82 | bit0 = 0; |
| 87 | bit1 = (*color_prom >> 6) & 0x01; | |
| 88 | bit2 = (*color_prom >> 7) & 0x01; | |
| 89 | ||
| 83 | bit1 = (color_prom[i] >> 6) & 0x01; | |
| 84 | bit2 = (color_prom[i] >> 7) & 0x01; | |
| 90 | 85 | b = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 91 | 86 | |
| 92 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); | |
| 93 | ||
| 94 | color_prom++; | |
| 87 | colortable_palette_set_color(machine->colortable, i, MAKE_RGB(r, g, b)); | |
| 95 | 88 | } |
| 96 | 89 | |
| 97 | 90 | /* white for bullets */ |
| 91 | colortable_palette_set_color(machine->colortable, 0x30, RGB_WHITE); | |
| 98 | 92 | |
| 99 | palette_set_color(machine,machine->drv->total_colors-1,MAKE_RGB(0xff,0xff,0xff)); | |
| 93 | for (i = 0; i < 0x20; i++) | |
| 94 | if ((i & 3) == 0) | |
| 95 | colortable_entry_set_value(machine->colortable, i, 0); | |
| 100 | 96 | |
| 101 | for (i = 0;i < | |
| 97 | for (i = 0; i < | |
| 102 | 98 | { |
| 103 | COLOR(0,i ) = (32 + (i / 2)); | |
| 104 | COLOR(0,i+1) = (40 + (i / 2)); | |
| 99 | colortable_entry_set_value(machine->colortable, 0x20 + i, 32 + (i / 2)); | |
| 100 | colortable_entry_set_value(machine->colortable, 0x21 + i, 40 + (i / 2)); | |
| 105 | 101 | } |
| 106 | 102 | |
| 107 | for (i = 0;i < TOTAL_COLORS(3);i++) | |
| 108 | { | |
| 109 | if ((i & 3) == 0) COLOR(3,i) = 0; | |
| 110 | } | |
| 111 | ||
| 112 | 103 | /* bullet */ |
| 113 | COLOR(2, 0) = 0; | |
| 114 | COLOR(2, 1) = 48; | |
| 104 | colortable_entry_set_value(machine->colortable, 0x30, 0); | |
| 105 | colortable_entry_set_value(machine->colortable, 0x31, 0x30); | |
| 115 | 106 | } |
| 116 | 107 | |
| 117 | 108 | static TILE_GET_INFO( get_bg_tile_info ) |
| r1711 | r1712 | |
| 132 | 123 | |
| 133 | 124 | VIDEO_START( zodiack ) |
| 134 | 125 | { |
| 135 | bg_tilemap = tilemap_create(get_bg_tile_info, tilemap_scan_rows, | |
| 136 | 8, 8, 32, 32); | |
| 126 | bg_tilemap = tilemap_create(get_bg_tile_info, tilemap_scan_rows, 8, 8, 32, 32); | |
| 137 | 127 | |
| 138 | fg_tilemap = tilemap_create(get_fg_tile_info, tilemap_scan_rows, | |
| 139 | 8, 8, 32, 32); | |
| 128 | fg_tilemap = tilemap_create(get_fg_tile_info, tilemap_scan_rows, 8, 8, 32, 32); | |
| 140 | 129 | |
| 141 | 130 | tilemap_set_transparent_pen(fg_tilemap, 0); |
| 142 | 131 | tilemap_set_scroll_cols(fg_tilemap, 32); |
| r1711 | r1712 | |
| 207 | 196 | int i; |
| 208 | 197 | |
| 209 | 198 | for (i = 0; i < 32; i++) |
| 210 | { | |
| 211 | 199 | tilemap_set_scrolly(fg_tilemap, i, zodiack_attributesram[i * 2]); |
| 212 | } | |
| 213 | 200 | |
| 214 | 201 | tilemap_draw(bitmap, cliprect, bg_tilemap, 0, 0); |
| 215 | 202 | tilemap_draw(bitmap, cliprect, fg_tilemap, 0, 0); |
| r1711 | r1712 | |
|---|---|---|
| 15 | 15 | |
| 16 | 16 | static UINT32 pvrctrl_regs[0x100/4]; |
| 17 | 17 | static UINT32 pvrta_regs[0x2000/4]; |
| 18 | static int pvr_parconfseq[] = {1,2,3,2,3,4,5,6,5,6,7,8,9,10,11,12,13,14,13,14,15,16,17,16,17,0,0,0,0,0,18,19,20,19,20,21,22,23,22,23}; | |
| 19 | static int pvr_wordsvertex[24] = {8,8,8,8,8,16,16,8,8,8, 8, 8,8,8,8,8,16,16, 8,16,16,8,16,16}; | |
| 20 | static int pvr_wordspolygon[24] = {8,8,8,8,8, 8, 8,8,8,8,16,16,8,8,8,8, 8, 8,16,16,16,8, 8, 8}; | |
| 18 | static const int pvr_parconfseq[] = {1,2,3,2,3,4,5,6,5,6,7,8,9,10,11,12,13,14,13,14,15,16,17,16,17,0,0,0,0,0,18,19,20,19,20,21,22,23,22,23}; | |
| 19 | static const int pvr_wordsvertex[24] = {8,8,8,8,8,16,16,8,8,8, 8, 8,8,8,8,8,16,16, 8,16,16,8,16,16}; | |
| 20 | static const int pvr_wordspolygon[24] = {8,8,8,8,8, 8, 8,8,8,8,16,16,8,8,8,8, 8, 8,16,16,16,8, 8, 8}; | |
| 21 | 21 | static int pvr_parameterconfig[64]; |
| 22 | 22 | |
| 23 | 23 | UINT64 *dc_texture_ram; |
| r1711 | r1712 | |
| 26 | 26 | static int start_render_received; |
| 27 | 27 | static int alloc_ctrl_OPB_Mode, alloc_ctrl_PT_OPB, alloc_ctrl_TM_OPB, alloc_ctrl_T_OPB, alloc_ctrl_ZM_OPB, alloc_ctrl_O_OPB; |
| 28 | 28 | |
| 29 | struct testsprites | |
| 29 | static struct testsprites | |
| 30 | 30 | { |
| 31 | 31 | int positionx, positiony; |
| 32 | 32 | int sizex, sizey; |
| r1711 | r1712 | |
|---|---|---|
| 31 | 31 | { |
| 32 | 32 | tileram = (UINT16 *)auto_malloc(0x400 * sizeof(UINT16)); |
| 33 | 33 | |
| 34 | bg_tilemap = tilemap_create(get_bg_tile_info, tilemap_scan_rows, | |
| 35 | 8, 8, 40, 25); | |
| 34 | bg_tilemap = tilemap_create(get_bg_tile_info, tilemap_scan_rows, 8, 8, 40, 25); | |
| 36 | 35 | } |
| 37 | 36 | |
| 38 | 37 | WRITE8_HANDLER( mole_videoram_w ) |
| r1711 | r1712 | |
|---|---|---|
| 220 | 220 | machine->gfx[taitojc_gfx_index] = allocgfx(&taitojc_char_layout); |
| 221 | 221 | |
| 222 | 222 | /* set the color information */ |
| 223 | if (machine->drv->color_table_len) | |
| 224 | machine->gfx[taitojc_gfx_index]->total_colors = machine->drv->color_table_len / 16; | |
| 225 | else | |
| 226 | machine->gfx[taitojc_gfx_index]->total_colors = machine->drv->total_colors / 16; | |
| 223 | machine->gfx[taitojc_gfx_index]->total_colors = machine->config->total_colors / 16; | |
| 227 | 224 | |
| 228 | 225 | taitojc_texture = auto_malloc(0x400000); |
| 229 | 226 |
| r1711 | r1712 | |
|---|---|---|
| 219 | 219 | |
| 220 | 220 | VIDEO_UPDATE( bionicc ) |
| 221 | 221 | { |
| 222 | fillbitmap(bitmap, | |
| 222 | fillbitmap(bitmap, | |
| 223 | 223 | tilemap_draw(bitmap,cliprect,fg_tilemap,1|TILEMAP_DRAW_LAYER1,0); /* nothing in FRONT */ |
| 224 | 224 | tilemap_draw(bitmap,cliprect,bg_tilemap,0,0); |
| 225 | 225 | tilemap_draw(bitmap,cliprect,fg_tilemap,0|TILEMAP_DRAW_LAYER1,0); |
| r1711 | r1712 | |
|---|---|---|
| 41 | 41 | 76543210 |
| 42 | 42 | RRRGGGBB |
| 43 | 43 | */ |
| 44 | for (i = 0; i < machine-> | |
| 44 | for (i = 0; i < machine->config->total_colors; i++) | |
| 45 | 45 | { |
| 46 | 46 | int bit0, bit1, bit2, r, g, b; |
| 47 | 47 |
| r0 | r1712 | |
|---|---|---|
| 1 | /*************************************************************************** | |
| 2 | ||
| 3 | GAME PLAN driver | |
| 4 | ||
| 5 | driver by Chris Moore | |
| 6 | ||
| 7 | ****************************************************************************/ | |
| 8 | ||
| 9 | #include "driver.h" | |
| 10 | #include "deprecat.h" | |
| 11 | #include "machine/6522via.h" | |
| 12 | #include "gameplan.h" | |
| 13 | ||
| 14 | ||
| 15 | ||
| 16 | /************************************* | |
| 17 | * | |
| 18 | * Constants | |
| 19 | * | |
| 20 | *************************************/ | |
| 21 | ||
| 22 | #define HTOTAL (0x160) | |
| 23 | #define HBEND (0x000) | |
| 24 | #define HBSTART (0x100) | |
| 25 | #define VTOTAL (0x118) | |
| 26 | #define VBEND (0x000) | |
| 27 | #define VBSTART (0x100) | |
| 28 | ||
| 29 | #define GAMEPLAN_NUM_PENS (0x08) | |
| 30 | #define LEPRECHN_NUM_PENS (0x10) | |
| 31 | ||
| 32 | ||
| 33 | ||
| 34 | /************************************* | |
| 35 | * | |
| 36 | * Palette handling | |
| 37 | * | |
| 38 | *************************************/ | |
| 39 | ||
| 40 | static void gameplan_get_pens(pen_t *pens) | |
| 41 | { | |
| 42 | offs_t i; | |
| 43 | ||
| 44 | for (i = 0; i < GAMEPLAN_NUM_PENS; i++) | |
| 45 | pens[i] = MAKE_RGB(pal1bit(i >> 0), pal1bit(i >> 1), pal1bit(i >> 2)); | |
| 46 | } | |
| 47 | ||
| 48 | ||
| 49 | /* RGBI palette. Is it correct, or does it use the standard RGB? */ | |
| 50 | static void leprechn_get_pens(pen_t *pens) | |
| 51 | { | |
| 52 | offs_t i; | |
| 53 | ||
| 54 | for (i = 0; i < LEPRECHN_NUM_PENS; i++) | |
| 55 | { | |
| 56 | UINT8 bk = (i & 8) ? 0x40 : 0x00; | |
| 57 | UINT8 r = (i & 1) ? 0xff : bk; | |
| 58 | UINT8 g = (i & 2) ? 0xff : bk; | |
| 59 | UINT8 b = (i & 4) ? 0xff : bk; | |
| 60 | ||
| 61 | pens[i] = MAKE_RGB(r, g, b); | |
| 62 | } | |
| 63 | } | |
| 64 | ||
| 65 | ||
| 66 | ||
| 67 | /************************************* | |
| 68 | * | |
| 69 | * Update | |
| 70 | * | |
| 71 | *************************************/ | |
| 72 | ||
| 73 | static VIDEO_UPDATE( gameplan ) | |
| 74 | { | |
| 75 | gameplan_state *state = machine->driver_data; | |
| 76 | pen_t pens[GAMEPLAN_NUM_PENS]; | |
| 77 | offs_t offs; | |
| 78 | ||
| 79 | gameplan_get_pens(pens); | |
| 80 | ||
| 81 | for (offs = 0; offs < state->videoram_size; offs++) | |
| 82 | { | |
| 83 | UINT8 y = offs >> 8; | |
| 84 | UINT8 x = offs & 0xff; | |
| 85 | ||
| 86 | *BITMAP_ADDR32(bitmap, y, x) = pens[state->videoram[offs] & 0x07]; | |
| 87 | } | |
| 88 | ||
| 89 | return 0; | |
| 90 | } | |
| 91 | ||
| 92 | ||
| 93 | static VIDEO_UPDATE( leprechn ) | |
| 94 | { | |
| 95 | gameplan_state *state = machine->driver_data; | |
| 96 | pen_t pens[LEPRECHN_NUM_PENS]; | |
| 97 | offs_t offs; | |
| 98 | ||
| 99 | leprechn_get_pens(pens); | |
| 100 | ||
| 101 | for (offs = 0; offs < state->videoram_size; offs++) | |
| 102 | { | |
| 103 | UINT8 y = offs >> 8; | |
| 104 | UINT8 x = offs & 0xff; | |
| 105 | ||
| 106 | *BITMAP_ADDR32(bitmap, y, x) = pens[state->videoram[offs]]; | |
| 107 | } | |
| 108 | ||
| 109 | return 0; | |
| 110 | } | |
| 111 | ||
| 112 | ||
| 113 | ||
| 114 | /************************************* | |
| 115 | * | |
| 116 | * VIA | |
| 117 | * | |
| 118 | *************************************/ | |
| 119 | ||
| 120 | static WRITE8_HANDLER( video_data_w ) | |
| 121 | { | |
| 122 | gameplan_state *state = Machine->driver_data; | |
| 123 | ||
| 124 | state->video_data = data; | |
| 125 | } | |
| 126 | ||
| 127 | ||
| 128 | static WRITE8_HANDLER( gameplan_video_command_w ) | |
| 129 | { | |
| 130 | gameplan_state *state = Machine->driver_data; | |
| 131 | ||
| 132 | state->video_command = data & 0x07; | |
| 133 | } | |
| 134 | ||
| 135 | ||
| 136 | static WRITE8_HANDLER( leprechn_video_command_w ) | |
| 137 | { | |
| 138 | gameplan_state *state = Machine->driver_data; | |
| 139 | ||
| 140 | state->video_command = (data >> 3) & 0x07; | |
| 141 | } | |
| 142 | ||
| 143 | ||
| 144 | static TIMER_CALLBACK( clear_screen_done_callback ) | |
| 145 | { | |
| 146 | /* indicate that the we are done clearing the screen */ | |
| 147 | via_0_ca1_w(0, 0); | |
| 148 | } | |
| 149 | ||
| 150 | ||
| 151 | static WRITE8_HANDLER( video_command_trigger_w ) | |
| 152 | { | |
| 153 | gameplan_state *state = Machine->driver_data; | |
| 154 | ||
| 155 | if (data == 0) | |
| 156 | { | |
| 157 | switch (state->video_command) | |
| 158 | { | |
| 159 | /* draw pixel */ | |
| 160 | case 0: | |
| 161 | /* auto-adjust X? */ | |
| 162 | if (state->video_data & 0x10) | |
| 163 | { | |
| 164 | if (state->video_data & 0x40) | |
| 165 | state->video_x = state->video_x - 1; | |
| 166 | else | |
| 167 | state->video_x = state->video_x + 1; | |
| 168 | } | |
| 169 | ||
| 170 | /* auto-adjust Y? */ | |
| 171 | if (state->video_data & 0x20) | |
| 172 | { | |
| 173 | if (state->video_data & 0x80) | |
| 174 | state->video_y = state->video_y - 1; | |
| 175 | else | |
| 176 | state->video_y = state->video_y + 1; | |
| 177 | } | |
| 178 | ||
| 179 | state->videoram[state->video_y * (HBSTART - HBEND) + state->video_x] = state->video_data & 0x0f; | |
| 180 | ||
| 181 | break; | |
| 182 | ||
| 183 | /* load X register */ | |
| 184 | case 1: | |
| 185 | state->video_x = state->video_data; | |
| 186 | break; | |
| 187 | ||
| 188 | /* load Y register */ | |
| 189 | case 2: | |
| 190 | state->video_y = state->video_data; | |
| 191 | break; | |
| 192 | ||
| 193 | /* clear screen */ | |
| 194 | case 3: | |
| 195 | /* indicate that the we are busy */ | |
| 196 | via_0_ca1_w(0, 1); | |
| 197 | ||
| 198 | memset(state->videoram, state->video_data & 0x0f, state->videoram_size); | |
| 199 | ||
| 200 | /* set a timer for an arbitrarily short period. | |
| 201 | The real time it takes to clear to screen is not | |
| 202 | important to the software */ | |
| 203 | timer_call_after_resynch(NULL, 0, clear_screen_done_callback); | |
| 204 | ||
| 205 | break; | |
| 206 | } | |
| 207 | } | |
| 208 | } | |
| 209 | ||
| 210 | ||
| 211 | static TIMER_CALLBACK( via_irq_delayed ) | |
| 212 | { | |
| 213 | cpunum_set_input_line(machine, 0, 0, param); | |
| 214 | } | |
| 215 | ||
| 216 | ||
| 217 | static void via_irq(int state) | |
| 218 | { | |
| 219 | /* Kaos sits in a tight loop polling the VIA irq flags register, but that register is | |
| 220 | cleared by the irq handler. Therefore, I wait a bit before triggering the irq to | |
| 221 | leave time for the program to see the flag change. */ | |
| 222 | timer_set(ATTOTIME_IN_USEC(50), NULL, state, via_irq_delayed); | |
| 223 | } | |
| 224 | ||
| 225 | ||
| 226 | static READ8_HANDLER( vblank_r ) | |
| 227 | { | |
| 228 | /* this is needed for trivia quest */ | |
| 229 | return 0x20; | |
| 230 | } | |
| 231 | ||
| 232 | ||
| 233 | static const struct via6522_interface gameplan_via_0_interface = | |
| 234 | { | |
| 235 | 0, vblank_r, /*inputs : A/B */ | |
| 236 | 0, 0, 0, 0, /*inputs : CA/B1,CA/B2 */ | |
| 237 | video_data_w, gameplan_video_command_w, /*outputs: A/B */ | |
| 238 | 0, 0, video_command_trigger_w, 0, /*outputs: CA/B1,CA/B2 */ | |
| 239 | via_irq /*irq */ | |
| 240 | }; | |
| 241 | ||
| 242 | ||
| 243 | static const struct via6522_interface leprechn_via_0_interface = | |
| 244 | { | |
| 245 | 0, vblank_r, /*inputs : A/B */ | |
| 246 | 0, 0, 0, 0, /*inputs : CA/B1,CA/B2 */ | |
| 247 | video_data_w, leprechn_video_command_w, /*outputs: A/B */ | |
| 248 | 0, 0, video_command_trigger_w, 0, /*outputs: CA/B1,CA/B2 */ | |
| 249 | via_irq /*irq */ | |
| 250 | }; | |
| 251 | ||
| 252 | ||
| 253 | static const struct via6522_interface trvquest_via_0_interface = | |
| 254 | { | |
| 255 | 0, vblank_r, /*inputs : A/B */ | |
| 256 | 0, 0, 0, 0, /*inputs : CA/B1,CA/B2 */ | |
| 257 | video_data_w, gameplan_video_command_w, /*outputs: A/B */ | |
| 258 | 0, 0, video_command_trigger_w, 0, /*outputs: CA/B1,CA/B2 */ | |
| 259 | 0 /*irq */ | |
| 260 | }; | |
| 261 | ||
| 262 | ||
| 263 | static TIMER_CALLBACK( via_0_ca1_timer_callback ) | |
| 264 | { | |
| 265 | gameplan_state *state = machine->driver_data; | |
| 266 | ||
| 267 | /* !VBLANK is connected to CA1 */ | |
| 268 | via_0_ca1_w(0, (UINT8)param); | |
| 269 | ||
| 270 | if (param) | |
| 271 | timer_adjust_oneshot(state->via_0_ca1_timer, video_screen_get_time_until_pos(0, VBSTART, 0), 0); | |
| 272 | else | |
| 273 | timer_adjust_oneshot(state->via_0_ca1_timer, video_screen_get_time_until_pos(0, VBEND, 0), 1); | |
| 274 | } | |
| 275 | ||
| 276 | ||
| 277 | static void create_via_0_timer(gameplan_state *state) | |
| 278 | { | |
| 279 | state->via_0_ca1_timer = timer_alloc(via_0_ca1_timer_callback, NULL); | |
| 280 | } | |
| 281 | ||
| 282 | ||
| 283 | static void start_via_0_timer(gameplan_state *state) | |
| 284 | { | |
| 285 | timer_adjust_oneshot(state->via_0_ca1_timer, video_screen_get_time_until_pos(0, VBSTART, 0), 0); | |
| 286 | } | |
| 287 | ||
| 288 | ||
| 289 | ||
| 290 | /************************************* | |
| 291 | * | |
| 292 | * Start | |
| 293 | * | |
| 294 | *************************************/ | |
| 295 | ||
| 296 | static VIDEO_START( common ) | |
| 297 | { | |
| 298 | gameplan_state *state = machine->driver_data; | |
| 299 | ||
| 300 | state->videoram_size = (HBSTART - HBEND) * (VBSTART - VBEND); | |
| 301 | state->videoram = auto_malloc(state->videoram_size); | |
| 302 | ||
| 303 | create_via_0_timer(state); | |
| 304 | ||
| 305 | /* register for save states */ | |
| 306 | state_save_register_global_pointer(state->videoram, state->videoram_size); | |
| 307 | state_save_register_global(state->video_x); | |
| 308 | state_save_register_global(state->video_y); | |
| 309 | state_save_register_global(state->video_command); | |
| 310 | state_save_register_global(state->video_data); | |
| 311 | } | |
| 312 | ||
| 313 | ||
| 314 | static VIDEO_START( gameplan ) | |
| 315 | { | |
| 316 | via_config(0, &gameplan_via_0_interface); | |
| 317 | ||
| 318 | VIDEO_START_CALL(common); | |
| 319 | } | |
| 320 | ||
| 321 | ||
| 322 | static VIDEO_START( leprechn ) | |
| 323 | { | |
| 324 | via_config(0, &leprechn_via_0_interface); | |
| 325 | ||
| 326 | VIDEO_START_CALL(common); | |
| 327 | } | |
| 328 | ||
| 329 | ||
| 330 | static VIDEO_START( trvquest ) | |
| 331 | { | |
| 332 | via_config(0, &trvquest_via_0_interface); | |
| 333 | ||
| 334 | VIDEO_START_CALL(common); | |
| 335 | } | |
| 336 | ||
| 337 | ||
| 338 | ||
| 339 | /************************************* | |
| 340 | * | |
| 341 | * Reset | |
| 342 | * | |
| 343 | *************************************/ | |
| 344 | ||
| 345 | static VIDEO_RESET( gameplan ) | |
| 346 | { | |
| 347 | via_reset(); | |
| 348 | start_via_0_timer(machine->driver_data); | |
| 349 | } | |
| 350 | ||
| 351 | ||
| 352 | ||
| 353 | /************************************* | |
| 354 | * | |
| 355 | * Machine drivers | |
| 356 | * | |
| 357 | *************************************/ | |
| 358 | ||
| 359 | MACHINE_DRIVER_START( gameplan_video ) | |
| 360 | MDRV_VIDEO_START(gameplan) | |
| 361 | MDRV_VIDEO_RESET(gameplan) | |
| 362 | ||
| 363 | MDRV_VIDEO_START(gameplan) | |
| 364 | MDRV_VIDEO_UPDATE(gameplan) | |
| 365 | ||
| 366 | MDRV_SCREEN_ADD("main", RASTER) | |
| 367 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) | |
| 368 | MDRV_SCREEN_RAW_PARAMS(GAMEPLAN_PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART) | |
| 369 | MACHINE_DRIVER_END | |
| 370 | ||
| 371 | ||
| 372 | MACHINE_DRIVER_START( leprechn_video ) | |
| 373 | MDRV_VIDEO_START(leprechn) | |
| 374 | MDRV_VIDEO_UPDATE(leprechn) | |
| 375 | MACHINE_DRIVER_END | |
| 376 | ||
| 377 | ||
| 378 | MACHINE_DRIVER_START( trvquest_video ) | |
| 379 | MDRV_IMPORT_FROM(gameplan_video) | |
| 380 | MDRV_VIDEO_START(trvquest) | |
| 381 | MDRV_VIDEO_UPDATE(gameplan) | |
| 382 | MACHINE_DRIVER_END |
| r1711 | r1712 | |
|---|---|---|
| 59 | 59 | } |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | WRITE8_HANDLER( ikki_scroll_w ) | |
| 63 | { | |
| 64 | ikki_scroll[offset] = data; | |
| 65 | } | |
| 66 | ||
| 67 | 62 | WRITE8_HANDLER( ikki_scrn_ctrl_w ) |
| 68 | 63 | { |
| 69 | 64 | ikki_flipscreen = (data >> 2) & 1; |
| r1711 | r1712 | |
|---|---|---|
| 27 | 27 | * |
| 28 | 28 | *************************************/ |
| 29 | 29 | |
| 30 | static offs_t scanline_offset[240]; | |
| 31 | static UINT8 scanline_palette[240]; | |
| 32 | ||
| 33 | static int current_scanline; | |
| 34 | 30 | static UINT32 finescroll; |
| 35 | 31 | static offs_t vram_latch_offset; |
| 36 | 32 | |
| r1711 | r1712 | |
| 115 | 111 | UINT32 oldword = finescroll; |
| 116 | 112 | UINT32 newword = COMBINE_DATA(&finescroll); |
| 117 | 113 | |
| 118 | /* if VBLANK is going off on a non-zero scanline, suspend time */ | |
| 119 | if ((oldword & 8) && !(newword & 8) && current_scanline != 0) | |
| 114 | /* if VBLANK is going off on a scanline other than the last, suspend time */ | |
| 115 | if ((oldword & 8) && !(newword & 8) && video_screen_get_vpos(0) != 261) | |
| 120 | 116 | { |
| 121 | logerror("Suspending time! (scanline = %d)\n", c | |
| 117 | logerror("Suspending time! (scanline = %d)\n", video_sc | |
| 122 | 118 | cpunum_set_input_line(Machine, 0, INPUT_LINE_HALT, ASSERT_LINE); |
| 123 | 119 | } |
| 124 | 120 | } |
| r1711 | r1712 | |
| 180 | 176 | |
| 181 | 177 | /************************************* |
| 182 | 178 | * |
| 183 | * Scanline updater | |
| 184 | * | |
| 185 | *************************************/ | |
| 186 | ||
| 187 | void beathead_scanline_update(int scanline) | |
| 188 | { | |
| 189 | /* remember the current scanline */ | |
| 190 | current_scanline = scanline; | |
| 191 | ||
| 192 | /* grab the latch for the previous scanline */ | |
| 193 | scanline--; | |
| 194 | if (scanline < 0 || scanline >= 240) | |
| 195 | return; | |
| 196 | ||
| 197 | /* cache the offset and palette for this scanline */ | |
| 198 | scanline_offset[scanline] = (finescroll & 8) ? ~0 : vram_latch_offset + (finescroll & 3); | |
| 199 | scanline_palette[scanline] = *beathead_palette_select & 0x7f; | |
| 200 | } | |
| 201 | ||
| 202 | ||
| 203 | ||
| 204 | /************************************* | |
| 205 | * | |
| 206 | 179 | * Main screen refresher |
| 207 | 180 | * |
| 208 | 181 | *************************************/ |
| r1711 | r1712 | |
| 214 | 187 | /* generate the final screen */ |
| 215 | 188 | for (y = cliprect->min_y; y <= cliprect->max_y; y++) |
| 216 | 189 | { |
| 217 | offs_t src = scanline_offset[y] + cliprect->min_x; | |
| 218 | UINT8 scanline[336]; | |
| 190 | pen_t pen_base = (*beathead_palette_select & 0x7f) * 256; | |
| 191 | UINT16 scanline[336]; | |
| 219 | 192 | |
| 220 | /* unswizzle the scanline first */ | |
| 221 | if (scanline_offset[y] != ~0) | |
| 193 | /* blanking */ | |
| 194 | if (finescroll & 8) | |
| 195 | for (x = cliprect->min_x; x <= cliprect->max_x; x++) | |
| 196 | scanline[x] = pen_base; | |
| 197 | ||
| 198 | /* non-blanking */ | |
| 199 | else | |
| 222 | 200 | { |
| 201 | offs_t scanline_offset = vram_latch_offset + (finescroll & 3); | |
| 202 | offs_t src = scanline_offset + cliprect->min_x; | |
| 203 | ||
| 204 | /* unswizzle the scanline first */ | |
| 223 | 205 | for (x = cliprect->min_x; x <= cliprect->max_x; x++) |
| 224 | scanline[x] = ((UINT8 *)videoram32)[BYTE4_XOR_LE(src++)]; | |
| 206 | scanline[x] = pen_base | ((UINT8 *)videoram32)[BYTE4_XOR_LE(src++)]; | |
| 225 | 207 | } |
| 226 | else | |
| 227 | memset(scanline, 0, sizeof(scanline)); | |
| 228 | 208 | |
| 229 | 209 | /* then draw it */ |
| 230 | draw_scanline | |
| 210 | draw_scanline16(bitmap, cliprect->min_x, y, cliprect->max_x - cliprect->min_x + 1, &scanline[cliprect->min_x], NULL | |
| 231 | 211 | } |
| 232 | 212 | return 0; |
| 233 | 213 | } |
| r1711 | r1712 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "video/resnet.h" | |
| 10 | 11 | |
| 11 | ||
| 12 | ||
| 12 | 13 | UINT8 *sbasketb_palettebank; |
| 13 | 14 | UINT8 *sbasketb_spriteram_select; |
| 14 | 15 | |
| r1711 | r1712 | |
| 31 | 32 | ***************************************************************************/ |
| 32 | 33 | PALETTE_INIT( sbasketb ) |
| 33 | 34 | { |
| 35 | static const int resistances[4] = { 2000, 1000, 470, 220 }; | |
| 36 | double rweights[4], gweights[4], bweights[4]; | |
| 34 | 37 | int i; |
| 35 | #define TOTAL_COLORS(gfxn) (machine->gfx[gfxn]->total_colors * machine->gfx[gfxn]->color_granularity) | |
| 36 | #define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + offs]) | |
| 37 | 38 | |
| 39 | /* compute the color output resistor weights */ | |
| 40 | compute_resistor_weights(0, 255, -1.0, | |
| 41 | 4, resistances, rweights, 1000, 0, | |
| 42 | 4, resistances, gweights, 1000, 0, | |
| 43 | 4, resistances, bweights, 1000, 0); | |
| 38 | 44 | |
| 39 | for (i = 0;i < machine->drv->total_colors;i++) | |
| 45 | /* allocate the colortable */ | |
| 46 | machine->colortable = colortable_alloc(machine, 0x100); | |
| 47 | ||
| 48 | /* create a lookup table for the palette */ | |
| 49 | for (i = 0; i < 0x100; i++) | |
| 40 | 50 | { |
| 41 | int bit0,bit1,bit2,bit3,r,g,b; | |
| 51 | int bit0, bit1, bit2, bit3; | |
| 52 | int r, g, b; | |
| 42 | 53 | |
| 54 | /* red component */ | |
| 55 | bit0 = (color_prom[i + 0x000] >> 0) & 0x01; | |
| 56 | bit1 = (color_prom[i + 0x000] >> 1) & 0x01; | |
| 57 | bit2 = (color_prom[i + 0x000] >> 2) & 0x01; | |
| 58 | bit3 = (color_prom[i + 0x000] >> 3) & 0x01; | |
| 59 | r = combine_4_weights(rweights, bit0, bit1, bit2, bit3); | |
| 43 | 60 | |
| 44 | bit0 = (color_prom[0] >> 0) & 0x01; | |
| 45 | bit1 = (color_prom[0] >> 1) & 0x01; | |
| 46 | bit2 = (color_prom[0] >> 2) & 0x01; | |
| 47 | bit3 = (color_prom[0] >> 3) & 0x01; | |
| 48 | r = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; | |
| 49 | bit0 = (color_prom[machine->drv->total_colors] >> 0) & 0x01; | |
| 50 | bit1 = (color_prom[machine->drv->total_colors] >> 1) & 0x01; | |
| 51 | bit2 = (color_prom[machine->drv->total_colors] >> 2) & 0x01; | |
| 52 | bit3 = (color_prom[machine->drv->total_colors] >> 3) & 0x01; | |
| 53 | g = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; | |
| 54 | bit0 = (color_prom[2*machine->drv->total_colors] >> 0) & 0x01; | |
| 55 | bit1 = (color_prom[2*machine->drv->total_colors] >> 1) & 0x01; | |
| 56 | bit2 = (color_prom[2*machine->drv->total_colors] >> 2) & 0x01; | |
| 57 | bit3 = (color_prom[2*machine->drv->total_colors] >> 3) & 0x01; | |
| 58 | b = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; | |
| 61 | /* green component */ | |
| 62 | bit0 = (color_prom[i + 0x100] >> 0) & 0x01; | |
| 63 | bit1 = (color_prom[i + 0x100] >> 1) & 0x01; | |
| 64 | bit2 = (color_prom[i + 0x100] >> 2) & 0x01; | |
| 65 | bit3 = (color_prom[i + 0x100] >> 3) & 0x01; | |
| 66 | g = combine_4_weights(gweights, bit0, bit1, bit2, bit3); | |
| 59 | 67 | |
| 60 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); | |
| 61 | color_prom++; | |
| 68 | /* blue component */ | |
| 69 | bit0 = (color_prom[i + 0x200] >> 0) & 0x01; | |
| 70 | bit1 = (color_prom[i + 0x200] >> 1) & 0x01; | |
| 71 | bit2 = (color_prom[i + 0x200] >> 2) & 0x01; | |
| 72 | bit3 = (color_prom[i + 0x200] >> 3) & 0x01; | |
| 73 | b = combine_4_weights(bweights, bit0, bit1, bit2, bit3); | |
| 74 | ||
| 75 | colortable_palette_set_color(machine->colortable, i, MAKE_RGB(r, g, b)); | |
| 62 | 76 | } |
| 63 | 77 | |
| 64 | color_prom += 2*machine->drv->total_colors; | |
| 65 | /* color_prom now points to the beginning of the character lookup table */ | |
| 78 | /* color_prom now points to the beginning of the lookup table,*/ | |
| 79 | color_prom += 0x300; | |
| 66 | 80 | |
| 81 | /* characters use colors 0xf0-0xff */ | |
| 82 | for (i = 0; i < 0x100; i++) | |
| 83 | { | |
| 84 | UINT8 ctabentry = (color_prom[i] & 0x0f) | 0xf0; | |
| 85 | colortable_entry_set_value(machine->colortable, i, ctabentry); | |
| 86 | } | |
| 67 | 87 | |
| 68 | /* characters use colors 240-255 */ | |
| 69 | for (i = 0;i < TOTAL_COLORS(0);i++) | |
| 70 | COLOR(0,i) = (*(color_prom++) & 0x0f) + 240; | |
| 71 | ||
| 72 | 88 | /* sprites use colors 0-256 (?) in 16 banks */ |
| 73 | for (i = 0;i < | |
| 89 | for (i = 0; i < 0x | |
| 74 | 90 | { |
| 75 | 91 | int j; |
| 76 | 92 | |
| 77 | ||
| 78 | for (j = 0;j < 16;j++) | |
| 79 | COLOR(1,i + j * TOTAL_COLORS(1)/16) = (*color_prom & 0x0f) + 16 * j; | |
| 80 | ||
| 81 | color_prom++; | |
| 93 | for (j = 0; j < 0x10; j++) | |
| 94 | { | |
| 95 | UINT8 ctabentry = (j << 4) | (color_prom[i + 0x100] & 0x0f); | |
| 96 | colortable_entry_set_value(machine->colortable, 0x100 + ((j << 8) | i), ctabentry); | |
| 97 | } | |
| 82 | 98 | } |
| 83 | 99 | } |
| 84 | 100 | |
| r1711 | r1712 | |
| 103 | 119 | } |
| 104 | 120 | } |
| 105 | 121 | |
| 106 | WRITE8_HANDLER( sbasketb_scroll_w ) | |
| 107 | { | |
| 108 | int col; | |
| 109 | ||
| 110 | for (col = 6; col < 32; col++) | |
| 111 | { | |
| 112 | tilemap_set_scrolly(bg_tilemap, col, data); | |
| 113 | } | |
| 114 | } | |
| 115 | ||
| 116 | 122 | static TILE_GET_INFO( get_bg_tile_info ) |
| 117 | 123 | { |
| 118 | 124 | int code = videoram[tile_index] + ((colorram[tile_index] & 0x20) << 3); |
| r1711 | r1712 | |
| 124 | 130 | |
| 125 | 131 | VIDEO_START( sbasketb ) |
| 126 | 132 | { |
| 127 | bg_tilemap = tilemap_create(get_bg_tile_info, tilemap_scan_rows, | |
| 128 | 8, 8, 32, 32); | |
| 133 | bg_tilemap = tilemap_create(get_bg_tile_info, tilemap_scan_rows, 8, 8, 32, 32); | |
| 129 | 134 | |
| 130 | 135 | tilemap_set_scroll_cols(bg_tilemap, 32); |
| 131 | 136 | } |
| r1711 | r1712 | |
| 167 | 172 | |
| 168 | 173 | VIDEO_UPDATE( sbasketb ) |
| 169 | 174 | { |
| 175 | int col; | |
| 176 | ||
| 177 | for (col = 6; col < 32; col++) | |
| 178 | { | |
| 179 | tilemap_set_scrolly(bg_tilemap, col, *sbasketb_scroll); | |
| 180 | } | |
| 181 | ||
| 170 | 182 | tilemap_draw(bitmap, cliprect, bg_tilemap, 0, 0); |
| 171 | 183 | draw_sprites(machine, bitmap, cliprect); |
| 172 | 184 | return 0; |
| r1711 | r1712 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 10 | 11 | #include "video/mc6845.h" |
| 11 | 12 | #include "qix.h" |
| 12 | 13 | |
| 13 | 14 | |
| 14 | /* Globals */ | |
| 15 | UINT8 *qix_videoaddress; | |
| 16 | UINT8 qix_cocktail_flip; | |
| 17 | 15 | |
| 18 | ||
| 19 | /* Local variables */ | |
| 20 | static mc6845_t *mc6845; | |
| 21 | static UINT8 vram_mask; | |
| 22 | static UINT8 qix_palettebank; | |
| 23 | static UINT8 leds; | |
| 24 | static UINT8 scanline_latch; | |
| 25 | ||
| 26 | ||
| 27 | ||
| 28 | 16 | /************************************* |
| 29 | 17 | * |
| 30 | 18 | * Static function prototypes |
| 31 | 19 | * |
| 32 | 20 | *************************************/ |
| 33 | 21 | |
| 34 | static void qix_display_enable_changed(int display_enabled); | |
| 22 | static void qix_display_enable_changed(running_machine *machine, mc6845_t *mc6845, int display_enabled); | |
| 35 | 23 | |
| 36 | static void *qix_begin_update(mame_bitmap *bitmap, const rectangle *cliprect); | |
| 24 | static void *qix_begin_update(running_machine *machine, mc6845_t *mc6845, mame_bitmap *bitmap, const rectangle *cliprect); | |
| 37 | 25 | |
| 38 | static void qix_update_row(mame_bitmap *bitmap, | |
| 26 | static void qix_update_row(running_machine *machine, | |
| 27 | mc6845_t *mc6845, | |
| 28 | mame_bitmap *bitmap, | |
| 39 | 29 | const rectangle *cliprect, |
| 40 | 30 | UINT16 ma, |
| 41 | 31 | UINT8 ra, |
| r1711 | r1712 | |
| 47 | 37 | |
| 48 | 38 | /************************************* |
| 49 | 39 | * |
| 50 | * | |
| 40 | * S | |
| 51 | 41 | * |
| 52 | 42 | *************************************/ |
| 53 | 43 | |
| 54 | static | |
| 44 | static VIDEO | |
| 55 | 45 | { |
| 56 | 0, /* screen we are acting on */ | |
| 57 | QIX_CHARACTER_CLOCK, /* the clock (pin 21) of the chip */ | |
| 58 | 8, /* number of pixels per video memory address */ | |
| 59 | qix_begin_update, /* before pixel update callback */ | |
| 60 | qix_update_row, /* row update callback */ | |
| 61 | 0, /* after pixel update callback */ | |
| 62 | qix_display_enable_changed /* call back for display state changes */ | |
| 63 | }; | |
| 46 | qix_state *state = machine->driver_data; | |
| 64 | 47 | |
| 48 | /* get the pointer to the mc6845 object */ | |
| 49 | state->mc6845 = devtag_get_token(machine, MC6845, "vid-u18"); | |
| 65 | 50 | |
| 66 | VIDEO_START( qix ) | |
| 67 | { | |
| 68 | /* configure the CRT controller */ | |
| 69 | mc6845 = mc6845_config(&mc6845_intf); | |
| 70 | ||
| 71 | 51 | /* allocate memory for the full video RAM */ |
| 72 | videoram = auto_malloc(256 * 256); | |
| 52 | state->videoram = auto_malloc(256 * 256); | |
| 73 | 53 | |
| 74 | /* initialize the mask for games that don't use it */ | |
| 75 | vram_mask = 0xff; | |
| 76 | ||
| 77 | 54 | /* set up save states */ |
| 78 | state_save_register_global_pointer(videoram, 256 * 256); | |
| 79 | state_save_register_global(qix_cocktail_flip); | |
| 80 | state_save_register_global(vram_mask); | |
| 81 | state_save_register_global(qix_palettebank); | |
| 82 | state_save_register_global(leds); | |
| 55 | state_save_register_global_pointer(state->videoram, 256 * 256); | |
| 56 | state_save_register_global(state->flip_screen); | |
| 57 | state_save_register_global(state->palette_bank); | |
| 58 | state_save_register_global(state->leds); | |
| 83 | 59 | } |
| 84 | 60 | |
| 85 | 61 | |
| r1711 | r1712 | |
| 90 | 66 | * |
| 91 | 67 | *************************************/ |
| 92 | 68 | |
| 93 | static void qix_display_enable_changed(int display_enabled) | |
| 69 | static void qix_display_enable_changed(running_machine *machine, mc6845_t *mc6845, int display_enabled) | |
| 94 | 70 | { |
| 71 | qix_state *state = machine->driver_data; | |
| 72 | ||
| 95 | 73 | /* on the rising edge, latch the scanline */ |
| 96 | 74 | if (display_enabled) |
| 97 | 75 | { |
| r1711 | r1712 | |
| 99 | 77 | UINT8 ra = mc6845_get_ra(mc6845); |
| 100 | 78 | |
| 101 | 79 | /* RA0-RA2 goes to D0-D2 and MA5-MA9 goes to D3-D7 */ |
| 102 | scanline_latch = ((ma >> 2) & 0xf8) | (ra & 0x07); | |
| 80 | *state->scanline_latch = ((ma >> 2) & 0xf8) | (ra & 0x07); | |
| 103 | 81 | } |
| 104 | 82 | } |
| 105 | 83 | |
| 106 | 84 | |
| 107 | READ8_HANDLER( qix_scanline_r ) | |
| 108 | { | |
| 109 | return scanline_latch; | |
| 110 | } | |
| 111 | 85 | |
| 112 | ||
| 113 | ||
| 114 | 86 | /************************************* |
| 115 | 87 | * |
| 116 | * | |
| 88 | * C | |
| 117 | 89 | * |
| 118 | 90 | *************************************/ |
| 119 | 91 | |
| 120 | WRITE8_HANDLER( | |
| 92 | WRITE8_HANDLER( qix_flip | |
| 121 | 93 | { |
| 122 | /* Slither appears to extend the basic hardware by providing */ | |
| 123 | /* a mask register which controls which data bits get written */ | |
| 124 | /* to video RAM */ | |
| 125 | vram_mask = data; | |
| 94 | qix_state *state = Machine->driver_data; | |
| 95 | ||
| 96 | state->flip_screen = data; | |
| 126 | 97 | } |
| 127 | 98 | |
| 128 | 99 | |
| r1711 | r1712 | |
| 142 | 113 | * |
| 143 | 114 | *************************************/ |
| 144 | 115 | |
| 145 | READ8_HANDLER( qix_videoram_r ) | |
| 116 | static READ8_HANDLER( qix_videoram_r ) | |
| 146 | 117 | { |
| 118 | qix_state *state = Machine->driver_data; | |
| 119 | ||
| 147 | 120 | /* add in the upper bit of the address latch */ |
| 148 | offset += (qix_videoaddress[0] & 0x80) << 8; | |
| 149 | return videoram[offset]; | |
| 121 | offset += (state->videoram_address[0] & 0x80) << 8; | |
| 122 | return state->videoram[offset]; | |
| 150 | 123 | } |
| 151 | 124 | |
| 152 | 125 | |
| 153 | WRITE8_HANDLER( qix_videoram_w ) | |
| 126 | static WRITE8_HANDLER( qix_videoram_w ) | |
| 154 | 127 | { |
| 128 | qix_state *state = Machine->driver_data; | |
| 129 | ||
| 155 | 130 | /* update the screen in case the game is writing "behind" the beam - |
| 156 | 131 | Zookeeper likes to do this */ |
| 157 | video_screen_update_ | |
| 132 | video_screen_update_ | |
| 158 | 133 | |
| 159 | 134 | /* add in the upper bit of the address latch */ |
| 160 | offset += ( | |
| 135 | offset += (state->videoram_address[0] & 0x80) << 8; | |
| 161 | 136 | |
| 137 | /* write the data */ | |
| 138 | state->videoram[offset] = data; | |
| 139 | } | |
| 140 | ||
| 141 | ||
| 142 | static WRITE8_HANDLER( slither_videoram_w ) | |
| 143 | { | |
| 144 | qix_state *state = Machine->driver_data; | |
| 145 | ||
| 146 | /* update the screen in case the game is writing "behind" the beam - | |
| 147 | Zookeeper likes to do this */ | |
| 148 | video_screen_update_now(0); | |
| 149 | ||
| 150 | /* add in the upper bit of the address latch */ | |
| 151 | offset += (state->videoram_address[0] & 0x80) << 8; | |
| 152 | ||
| 162 | 153 | /* blend the data */ |
| 163 | videoram[offset] = (videoram[offset] & ~vram_mask) | (data & vram_mask); | |
| 154 | state->videoram[offset] = (state->videoram[offset] & ~*state->videoram_mask) | (data & *state->videoram_mask); | |
| 164 | 155 | } |
| 165 | 156 | |
| 166 | 157 | |
| r1711 | r1712 | |
| 180 | 171 | * |
| 181 | 172 | *************************************/ |
| 182 | 173 | |
| 183 | READ8_HANDLER( qix_addresslatch_r ) | |
| 174 | static READ8_HANDLER( qix_addresslatch_r ) | |
| 184 | 175 | { |
| 176 | qix_state *state = Machine->driver_data; | |
| 177 | ||
| 185 | 178 | /* compute the value at the address latch */ |
| 186 | offset = (qix_videoaddress[0] << 8) | qix_videoaddress[1]; | |
| 187 | return videoram[offset]; | |
| 179 | offset = (state->videoram_address[0] << 8) | state->videoram_address[1]; | |
| 180 | return state->videoram[offset]; | |
| 188 | 181 | } |
| 189 | 182 | |
| 190 | 183 | |
| 184 | static WRITE8_HANDLER( qix_addresslatch_w ) | |
| 185 | { | |
| 186 | qix_state *state = Machine->driver_data; | |
| 191 | 187 | |
| 192 | WRITE8_HANDLER( qix_addresslatch_w ) | |
| 188 | /* compute the value at the address latch */ | |
| 189 | offset = (state->videoram_address[0] << 8) | state->videoram_address[1]; | |
| 190 | ||
| 191 | /* write the data */ | |
| 192 | state->videoram[offset] = data; | |
| 193 | } | |
| 194 | ||
| 195 | ||
| 196 | static WRITE8_HANDLER( slither_addresslatch_w ) | |
| 193 | 197 | { |
| 198 | qix_state *state = Machine->driver_data; | |
| 199 | ||
| 194 | 200 | /* compute the value at the address latch */ |
| 195 | offset = ( | |
| 201 | offset = (state->videoram_address[0] << 8) | state->videoram_address[1]; | |
| 196 | 202 | |
| 197 | 203 | /* blend the data */ |
| 198 | videoram[offset] = (videoram[offset] & ~vram_mask) | (data & vram_mask); | |
| 204 | state->videoram[offset] = (state->videoram[offset] & ~*state->videoram_mask) | (data & *state->videoram_mask); | |
| 199 | 205 | } |
| 200 | 206 | |
| 201 | 207 | |
| r1711 | r1712 | |
| 209 | 215 | #define NUM_PENS (0x100) |
| 210 | 216 | |
| 211 | 217 | |
| 212 | WRITE8_HANDLER( qix_paletteram_w ) | |
| 218 | static WRITE8_HANDLER( qix_paletteram_w ) | |
| 213 | 219 | { |
| 214 | | |
| 220 | qix | |
| 215 | 221 | |
| 222 | UINT8 old_data = state->paletteram[offset]; | |
| 223 | ||
| 216 | 224 | /* set the palette RAM value */ |
| 217 | paletteram[offset] = data; | |
| 225 | state->paletteram[offset] = data; | |
| 218 | 226 | |
| 219 | 227 | /* trigger an update if a currently visible pen has changed */ |
| 220 | if (((offset >> 8) == | |
| 228 | if (((offset >> 8) == state->palette_bank) && | |
| 221 | 229 | (old_data != data)) |
| 222 | video_screen_update_ | |
| 230 | video_screen_update_ | |
| 223 | 231 | } |
| 224 | 232 | |
| 225 | 233 | |
| 226 | 234 | WRITE8_HANDLER( qix_palettebank_w ) |
| 227 | 235 | { |
| 236 | qix_state *state = Machine->driver_data; | |
| 237 | ||
| 228 | 238 | /* set the bank value */ |
| 229 | if ( | |
| 239 | if (state->palette_bank != (data & 3)) | |
| 230 | 240 | { |
| 231 | video_screen_update_partial(0, video_screen_get_vpos(0) - 1); | |
| 232 | qix_palettebank = data & 3; | |
| 241 | video_screen_update_now(0); | |
| 242 | state->palette_bank = data & 3; | |
| 233 | 243 | } |
| 234 | 244 | |
| 235 | 245 | /* LEDs are in the upper 6 bits */ |
| 236 | leds = ~data & 0xfc; | |
| 246 | state->leds = ~data & 0xfc; | |
| 237 | 247 | } |
| 238 | 248 | |
| 239 | 249 | |
| 240 | static void get_pens(pen_t *pens) | |
| 250 | static void get_pens(qix_state *state, pen_t *pens) | |
| 241 | 251 | { |
| 242 | 252 | offs_t offs; |
| 243 | 253 | |
| r1711 | r1712 | |
| 264 | 274 | 0xff /* value = 3, intensity = 3 */ |
| 265 | 275 | }; |
| 266 | 276 | |
| 267 | for (offs = | |
| 277 | for (offs = state->palette_bank << 8; offs < (state->palette_bank << 8) + NUM_PENS; offs++) | |
| 268 | 278 | { |
| 269 | 279 | int bits, intensity, r, g, b; |
| 270 | 280 | |
| 271 | UINT8 data = paletteram[offs]; | |
| 281 | UINT8 data = state->paletteram[offs]; | |
| 272 | 282 | |
| 273 | 283 | /* compute R, G, B from the table */ |
| 274 | 284 | intensity = (data >> 0) & 0x03; |
| r1711 | r1712 | |
| 292 | 302 | * |
| 293 | 303 | *************************************/ |
| 294 | 304 | |
| 295 | WRITE8_HANDLER( qix_mc6845_address_w ) | |
| 305 | static WRITE8_HANDLER( qix_mc6845_address_w ) | |
| 296 | 306 | { |
| 297 | mc6845_address_w(mc6845, data); | |
| 307 | qix_state *state = Machine->driver_data; | |
| 308 | ||
| 309 | mc6845_address_w(state->mc6845, data); | |
| 298 | 310 | } |
| 299 | 311 | |
| 300 | 312 | |
| 301 | READ8_HANDLER( qix_mc6845_register_r ) | |
| 313 | static READ8_HANDLER( qix_mc6845_register_r ) | |
| 302 | 314 | { |
| 303 | return mc6845_register_r(mc6845); | |
| 315 | qix_state *state = Machine->driver_data; | |
| 316 | ||
| 317 | return mc6845_register_r(state->mc6845); | |
| 304 | 318 | } |
| 305 | 319 | |
| 306 | 320 | |
| 307 | WRITE8_HANDLER( qix_mc6845_register_w ) | |
| 321 | static WRITE8_HANDLER( qix_mc6845_register_w ) | |
| 308 | 322 | { |
| 309 | mc6845_register_w(mc6845, data); | |
| 323 | qix_state *state = Machine->driver_data; | |
| 324 | ||
| 325 | mc6845_register_w(state->mc6845, data); | |
| 310 | 326 | } |
| 311 | 327 | |
| 312 | 328 | |
| r1711 | r1712 | |
| 318 | 334 | * |
| 319 | 335 | *************************************/ |
| 320 | 336 | |
| 321 | static void *qix_begin_update(mame_bitmap *bitmap, const rectangle *cliprect) | |
| 337 | static void *qix_begin_update(running_machine *machine, mc6845_t *mc6845, mame_bitmap *bitmap, const rectangle *cliprect) | |
| 322 | 338 | { |
| 339 | qix_state *state = machine->driver_data; | |
| 340 | ||
| 323 | 341 | #if 0 |
| 324 | 342 | // note the confusing bit order! |
| 325 | 343 | popmessage("self test leds: %d%d %d%d%d%d",BIT(leds,7),BIT(leds,5),BIT(leds,6),BIT(leds,4),BIT(leds,2),BIT(leds,3)); |
| r1711 | r1712 | |
| 328 | 346 | /* create the pens */ |
| 329 | 347 | static pen_t pens[NUM_PENS]; |
| 330 | 348 | |
| 331 | get_pens(pens); | |
| 349 | get_pens(state, pens); | |
| 332 | 350 | |
| 333 | 351 | return pens; |
| 334 | 352 | } |
| 335 | 353 | |
| 336 | 354 | |
| 337 | static void qix_update_row(mame_bitmap *bitmap, const rectangle *cliprect, | |
| 355 | static void qix_update_row(running_machine *machine, mc6845_t *mc6845, mame_bitmap *bitmap, const rectangle *cliprect, | |
| 338 | 356 | UINT16 ma, UINT8 ra, UINT16 y, UINT8 x_count, void *param) |
| 339 | 357 | { |
| 358 | qix_state *state = machine->driver_data; | |
| 340 | 359 | UINT16 x; |
| 341 | 360 | UINT8 scanline[256]; |
| 342 | 361 | |
| r1711 | r1712 | |
| 344 | 363 | |
| 345 | 364 | /* the memory is hooked up to the MA, RA lines this way */ |
| 346 | 365 | offs_t offs = ((ma << 6) & 0xf800) | ((ra << 8) & 0x0700); |
| 347 | offs_t offs_xor = | |
| 366 | offs_t offs_xor = s | |
| 348 | 367 | |
| 349 | 368 | for (x = 0; x < x_count * 8; x++) |
| 350 | scanline[x] = videoram[(offs + x) ^ offs_xor]; | |
| 369 | scanline[x] = state->videoram[(offs + x) ^ offs_xor]; | |
| 351 | 370 | |
| 352 | 371 | draw_scanline8(bitmap, 0, y, x_count * 8, scanline, pens, -1); |
| 353 | 372 | } |
| r1711 | r1712 | |
| 360 | 379 | * |
| 361 | 380 | *************************************/ |
| 362 | 381 | |
| 363 | VIDEO_UPDATE( qix | |
| 382 | static VIDEO_UPDATE( qix | |
| 364 | 383 | { |
| 365 | | |
| 384 | qix | |
| 366 | 385 | |
| 386 | mc6845_update(state->mc6845, bitmap, cliprect); | |
| 387 | ||
| 367 | 388 | return 0; |
| 368 | 389 | } |
| 390 | ||
| 391 | ||
| 392 | ||
| 393 | /************************************* | |
| 394 | * | |
| 395 | * Memory handlers | |
| 396 | * | |
| 397 | *************************************/ | |
| 398 | ||
| 399 | static ADDRESS_MAP_START( qix_video_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 400 | AM_RANGE(0x0000, 0x7fff) AM_READWRITE(qix_videoram_r, qix_videoram_w) | |
| 401 | AM_RANGE(0x8000, 0x83ff) AM_RAM AM_SHARE(1) | |
| 402 | AM_RANGE(0x8400, 0x87ff) AM_RAM AM_BASE(&generic_nvram) AM_SIZE(&generic_nvram_size) | |
| 403 | AM_RANGE(0x8800, 0x8800) AM_MIRROR(0x03ff) AM_WRITE(qix_palettebank_w) | |
| 404 | AM_RANGE(0x8c00, 0x8c00) AM_MIRROR(0x03fe) AM_READWRITE(qix_data_firq_r, qix_data_firq_w) | |
| 405 | AM_RANGE(0x8c01, 0x8c01) AM_MIRROR(0x03fe) AM_READWRITE(qix_video_firq_ack_r, qix_video_firq_ack_w) | |
| 406 | AM_RANGE(0x9000, 0x93ff) AM_READWRITE(MRA8_RAM, qix_paletteram_w) AM_BASE_MEMBER(qix_state, paletteram) | |
| 407 | AM_RANGE(0x9400, 0x9400) AM_MIRROR(0x03fc) AM_READWRITE(qix_addresslatch_r, qix_addresslatch_w) | |
| 408 | AM_RANGE(0x9402, 0x9403) AM_MIRROR(0x03fc) AM_WRITE(MWA8_RAM) AM_BASE_MEMBER(qix_state, videoram_address) | |
| 409 | AM_RANGE(0x9800, 0x9800) AM_MIRROR(0x03ff) AM_READ(MRA8_RAM) AM_BASE_MEMBER(qix_state, scanline_latch) | |
| 410 | AM_RANGE(0x9c00, 0x9c00) AM_MIRROR(0x03fe) AM_WRITE(qix_mc6845_address_w) | |
| 411 | AM_RANGE(0x9c01, 0x9c01) AM_MIRROR(0x03fe) AM_READWRITE(qix_mc6845_register_r, qix_mc6845_register_w) | |
| 412 | AM_RANGE(0xa000, 0xffff) AM_ROM | |
| 413 | ADDRESS_MAP_END | |
| 414 | ||
| 415 | ||
| 416 | static ADDRESS_MAP_START( zookeep_video_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 417 | AM_RANGE(0x0000, 0x7fff) AM_READWRITE(qix_videoram_r, qix_videoram_w) | |
| 418 | AM_RANGE(0x8000, 0x83ff) AM_RAM AM_SHARE(1) | |
| 419 | AM_RANGE(0x8400, 0x87ff) AM_RAM AM_BASE(&generic_nvram) AM_SIZE(&generic_nvram_size) | |
| 420 | AM_RANGE(0x8800, 0x8800) AM_MIRROR(0x03fe) AM_WRITE(qix_palettebank_w) | |
| 421 | AM_RANGE(0x8801, 0x8801) AM_MIRROR(0x03fe) AM_WRITE(zookeep_bankswitch_w) | |
| 422 | AM_RANGE(0x8c00, 0x8c00) AM_MIRROR(0x03fe) AM_READWRITE(qix_data_firq_r, qix_data_firq_w) | |
| 423 | AM_RANGE(0x8c01, 0x8c01) AM_MIRROR(0x03fe) AM_READWRITE(qix_video_firq_ack_r, qix_video_firq_ack_w) | |
| 424 | AM_RANGE(0x9000, 0x93ff) AM_READWRITE(MRA8_RAM, qix_paletteram_w) AM_BASE_MEMBER(qix_state, paletteram) | |
| 425 | AM_RANGE(0x9400, 0x9400) AM_MIRROR(0x03fc) AM_READWRITE(qix_addresslatch_r, qix_addresslatch_w) | |
| 426 | AM_RANGE(0x9402, 0x9403) AM_MIRROR(0x03fc) AM_WRITE(MWA8_RAM) AM_BASE_MEMBER(qix_state, videoram_address) | |
| 427 | AM_RANGE(0x9800, 0x9800) AM_MIRROR(0x03ff) AM_READ(MRA8_RAM) AM_BASE_MEMBER(qix_state, scanline_latch) | |
| 428 | AM_RANGE(0x9c00, 0x9c00) AM_MIRROR(0x03fe) AM_WRITE(qix_mc6845_address_w) | |
| 429 | AM_RANGE(0x9c01, 0x9c01) AM_MIRROR(0x03fe) AM_READWRITE(qix_mc6845_register_r, qix_mc6845_register_w) | |
| 430 | AM_RANGE(0xa000, 0xbfff) AM_ROMBANK(1) | |
| 431 | AM_RANGE(0xc000, 0xffff) AM_ROM | |
| 432 | ADDRESS_MAP_END | |
| 433 | ||
| 434 | ||
| 435 | static ADDRESS_MAP_START( slither_video_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 436 | AM_RANGE(0x0000, 0x7fff) AM_READWRITE(qix_videoram_r, slither_videoram_w) | |
| 437 | AM_RANGE(0x8000, 0x83ff) AM_RAM AM_SHARE(1) | |
| 438 | AM_RANGE(0x8400, 0x87ff) AM_RAM AM_BASE(&generic_nvram) AM_SIZE(&generic_nvram_size) | |
| 439 | AM_RANGE(0x8800, 0x8800) AM_MIRROR(0x03ff) AM_WRITE(qix_palettebank_w) | |
| 440 | AM_RANGE(0x8c00, 0x8c00) AM_MIRROR(0x03fe) AM_READWRITE(qix_data_firq_r, qix_data_firq_w) | |
| 441 | AM_RANGE(0x8c01, 0x8c01) AM_MIRROR(0x03fe) AM_READWRITE(qix_video_firq_ack_r, qix_video_firq_ack_w) | |
| 442 | AM_RANGE(0x9000, 0x93ff) AM_READWRITE(MRA8_RAM, qix_paletteram_w) AM_BASE_MEMBER(qix_state, paletteram) | |
| 443 | AM_RANGE(0x9400, 0x9400) AM_MIRROR(0x03fc) AM_READWRITE(qix_addresslatch_r, slither_addresslatch_w) | |
| 444 | AM_RANGE(0x9401, 0x9401) AM_MIRROR(0x03fc) AM_WRITE(MWA8_RAM) AM_BASE_MEMBER(qix_state, videoram_mask) | |
| 445 | AM_RANGE(0x9402, 0x9403) AM_MIRROR(0x03fc) AM_WRITE(MWA8_RAM) AM_BASE_MEMBER(qix_state, videoram_address) | |
| 446 | AM_RANGE(0x9800, 0x9800) AM_MIRROR(0x03ff) AM_READ(MRA8_RAM) AM_BASE_MEMBER(qix_state, scanline_latch) | |
| 447 | AM_RANGE(0x9c00, 0x9c00) AM_MIRROR(0x03fe) AM_WRITE(qix_mc6845_address_w) | |
| 448 | AM_RANGE(0x9c01, 0x9c01) AM_MIRROR(0x03fe) AM_READWRITE(qix_mc6845_register_r, qix_mc6845_register_w) | |
| 449 | AM_RANGE(0xa000, 0xffff) AM_ROM | |
| 450 | ADDRESS_MAP_END | |
| 451 | ||
| 452 | ||
| 453 | ||
| 454 | /************************************* | |
| 455 | * | |
| 456 | * Machine driver | |
| 457 | * | |
| 458 | *************************************/ | |
| 459 | ||
| 460 | static const mc6845_interface mc6845_intf = | |
| 461 | { | |
| 462 | 0, /* screen we are acting on */ | |
| 463 | QIX_CHARACTER_CLOCK, /* the clock (pin 21) of the chip */ | |
| 464 | 8, /* number of pixels per video memory address */ | |
| 465 | qix_begin_update, /* before pixel update callback */ | |
| 466 | qix_update_row, /* row update callback */ | |
| 467 | 0, /* after pixel update callback */ | |
| 468 | qix_display_enable_changed /* call back for display state changes */ | |
| 469 | }; | |
| 470 | ||
| 471 | ||
| 472 | MACHINE_DRIVER_START( qix_video ) | |
| 473 | MDRV_CPU_ADD_TAG("video", M6809, MAIN_CLOCK_OSC/4/4) /* 1.25 MHz */ | |
| 474 | MDRV_CPU_PROGRAM_MAP(qix_video_map,0) | |
| 475 | ||
| 476 | MDRV_VIDEO_START(qix) | |
| 477 | MDRV_VIDEO_UPDATE(qix) | |
| 478 | ||
| 479 | MDRV_DEVICE_ADD("vid-u18", MC6845) | |
| 480 | MDRV_DEVICE_CONFIG(mc6845_intf) | |
| 481 | ||
| 482 | MDRV_SCREEN_ADD("main", RASTER) | |
| 483 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) | |
| 484 | MDRV_SCREEN_RAW_PARAMS(QIX_CHARACTER_CLOCK*8, 256, 0, 256, 256, 0, 256) /* temporary, CRTC will configure screen */ | |
| 485 | MACHINE_DRIVER_END | |
| 486 | ||
| 487 | ||
| 488 | MACHINE_DRIVER_START( zookeep_video ) | |
| 489 | MDRV_CPU_MODIFY("video") | |
| 490 | MDRV_CPU_PROGRAM_MAP(zookeep_video_map,0) | |
| 491 | MACHINE_DRIVER_END | |
| 492 | ||
| 493 | ||
| 494 | MACHINE_DRIVER_START( slither_video ) | |
| 495 | MDRV_CPU_REPLACE("video", M6809, SLITHER_CLOCK_OSC/4/4) /* 1.34 MHz */ | |
| 496 | MDRV_CPU_PROGRAM_MAP(slither_video_map,0) | |
| 497 | MACHINE_DRIVER_END |
| r1711 | r1712 | |
|---|---|---|
| 100 | 100 | static struct DEBUGOPTS debug_options = {5, {0,0,0,0,0,0}, 0, 0, 0}; |
| 101 | 101 | /* red green blue purple yellow cyan grey white */ |
| 102 | 102 | static const UINT16 dbg_mode_colours[8] = { 0x1f, 0x3e0, 0x7c00, 0x7c1f, 0x3ff, 0x7fe0, 0x4210, 0x7fff }; |
| 103 | static UINT8 snes_dbg_video( | |
| 103 | static UINT8 snes_dbg_video( | |
| 104 | 104 | #endif /* SNES_DBG_video */ |
| 105 | 105 | |
| 106 | 106 | /* Forward declarations */ |
| 107 | static void snes_update_line_2(running_machine *machine, UINT8 screen, UINT8 layer, UINT16 curline ); | |
| 108 | static void snes_update_line_2_hi(running_machine *machine, UINT8 screen, UINT8 layer, UINT16 curline ); | |
| 109 | static void snes_update_line_4(running_machine *machine, UINT8 screen, UINT8 layer, UINT16 curline ); | |
| 110 | static void snes_update_line_4_hi(running_machine *machine, UINT8 screen, UINT8 layer, UINT16 curline ); | |
| 111 | static void snes_update_line_8(running_machine *machine, UINT8 screen, UINT8 layer, UINT16 curline ); | |
| 112 | static void snes_update_line_mode7(running_machine *machine, UINT8 screen, UINT8 layer, UINT16 curline ); | |
| 107 | static void snes_update_line_2(UINT8 screen, UINT8 layer, UINT16 curline ); | |
| 108 | static void snes_update_line_2_hi(UINT8 screen, UINT8 layer, UINT16 curline ); | |
| 109 | static void snes_update_line_4(UINT8 screen, UINT8 layer, UINT16 curline ); | |
| 110 | static void snes_update_line_4_hi(UINT8 screen, UINT8 layer, UINT16 curline ); | |
| 111 | static void snes_update_line_8(UINT8 screen, UINT8 layer, UINT16 curline ); | |
| 112 | static void snes_update_line_mode7(UINT8 screen, UINT8 layer, UINT16 curline ); | |
| 113 | 113 | |
| 114 | 114 | /* Lookup tables */ |
| 115 | 115 | static const UINT8 table_bgd_pty[2][4][2] = { { {7,10}, {6,9}, {1,4}, {0,3} }, { {3,10}, {1,7}, {0,0}, {0,0} } }; |
| r1711 | r1712 | |
| 136 | 136 | }; |
| 137 | 137 | struct SNES_MODE_CONFIG |
| 138 | 138 | { |
| 139 | void (*drawLayer[5])( | |
| 139 | void (*drawLayer[5])( | |
| 140 | 140 | UINT8 count; |
| 141 | 141 | }; |
| 142 | 142 | |
| r1711 | r1712 | |
| 160 | 160 | * Routine for additive/subtractive blending |
| 161 | 161 | * between the main and sub screens. |
| 162 | 162 | *****************************************/ |
| 163 | INLINE void snes_draw_blend( | |
| 163 | INLINE void snes_draw_blend( | |
| 164 | 164 | { |
| 165 | 165 | #ifdef SNES_DBG_video |
| 166 | 166 | if( !debug_options.transparency_disabled ) |
| r1711 | r1712 | |
| 186 | 186 | } |
| 187 | 187 | else /* Fixed colour */ |
| 188 | 188 | { |
| 189 | r = (*colour & 0x1f) + (machine->remapped_colortable[FIXED_COLOUR] & 0x1f); | |
| 190 | g = ((*colour & 0x3e0) >> 5) + ((machine->remapped_colortable[FIXED_COLOUR] & 0x3e0) >> 5); | |
| 191 | b = ((*colour & 0x7c00) >> 10) + ((machine->remapped_colortable[FIXED_COLOUR] & 0x7c00) >> 10); | |
| 189 | r = (*colour & 0x1f) + (snes_cgram[FIXED_COLOUR] & 0x1f); | |
| 190 | g = ((*colour & 0x3e0) >> 5) + ((snes_cgram[FIXED_COLOUR] & 0x3e0) >> 5); | |
| 191 | b = ((*colour & 0x7c00) >> 10) + ((snes_cgram[FIXED_COLOUR] & 0x7c00) >> 10); | |
| 192 | 192 | if( snes_ram[CGADSUB] & 0x40 ) /* FIXME: We shouldn't halve for the back colour */ |
| 193 | 193 | { |
| 194 | 194 | r >>= 1; |
| r1711 | r1712 | |
| 220 | 220 | } |
| 221 | 221 | else /* Fixed colour */ |
| 222 | 222 | { |
| 223 | r = (*colour & 0x1f) - (machine->remapped_colortable[FIXED_COLOUR] & 0x1f); | |
| 224 | g = ((*colour & 0x3e0) >> 5) - ((machine->remapped_colortable[FIXED_COLOUR] & 0x3e0) >> 5); | |
| 225 | b = ((*colour & 0x7c00) >> 10) - ((machine->remapped_colortable[FIXED_COLOUR] & 0x7c00) >> 10); | |
| 223 | r = (*colour & 0x1f) - (snes_cgram[FIXED_COLOUR] & 0x1f); | |
| 224 | g = ((*colour & 0x3e0) >> 5) - ((snes_cgram[FIXED_COLOUR] & 0x3e0) >> 5); | |
| 225 | b = ((*colour & 0x7c00) >> 10) - ((snes_cgram[FIXED_COLOUR] & 0x7c00) >> 10); | |
| 226 | 226 | if( r > 0x1f ) r = 0; |
| 227 | 227 | if( g > 0x1f ) g = 0; |
| 228 | 228 | if( b > 0x1f ) b = 0; |
| r1711 | r1712 | |
| 243 | 243 | * |
| 244 | 244 | * Draw tiles with 2 bit planes(4 colors) |
| 245 | 245 | *****************************************/ |
| 246 | INLINE void snes_draw_tile_2( | |
| 246 | INLINE void snes_draw_tile_2( | |
| 247 | 247 | { |
| 248 | 248 | UINT8 mask, plane[2]; |
| 249 | 249 | UINT16 c; |
| r1711 | r1712 | |
| 283 | 283 | { |
| 284 | 284 | if( (scanlines[screen].zbuf[ii] <= priority) && (ii >= 0) ) |
| 285 | 285 | { |
| 286 | c = | |
| 286 | c = s | |
| 287 | 287 | if( screen == MAINSCREEN ) /* Only blend main screens */ |
| 288 | snes_draw_blend( | |
| 288 | snes_draw_blend( | |
| 289 | 289 | scanlines[screen].buffer[ii] = c; |
| 290 | 290 | scanlines[screen].zbuf[ii] = priority; |
| 291 | 291 | } |
| r1711 | r1712 | |
| 298 | 298 | * |
| 299 | 299 | * Draw 2 tiles with 2 bit planes(4 colors) |
| 300 | 300 | *****************************************/ |
| 301 | INLINE void snes_draw_tile_2x2( | |
| 301 | INLINE void snes_draw_tile_2x2( | |
| 302 | 302 | { |
| 303 | 303 | if( flip ) |
| 304 | 304 | { |
| 305 | snes_draw_tile_2(machine, screen, layer, tileaddr + 16, x, priority, flip, pal ); | |
| 306 | snes_draw_tile_2(machine, screen, layer, tileaddr, x + 8, priority, flip, pal ); | |
| 305 | snes_draw_tile_2(screen, layer, tileaddr + 16, x, priority, flip, pal ); | |
| 306 | snes_draw_tile_2(screen, layer, tileaddr, x + 8, priority, flip, pal ); | |
| 307 | 307 | } |
| 308 | 308 | else |
| 309 | 309 | { |
| 310 | snes_draw_tile_2(machine, screen, layer, tileaddr, x, priority, flip, pal ); | |
| 311 | snes_draw_tile_2(machine, screen, layer, tileaddr + 16, x + 8, priority, flip, pal ); | |
| 310 | snes_draw_tile_2(screen, layer, tileaddr, x, priority, flip, pal ); | |
| 311 | snes_draw_tile_2(screen, layer, tileaddr + 16, x + 8, priority, flip, pal ); | |
| 312 | 312 | } |
| 313 | 313 | } |
| 314 | 314 | |
| r1711 | r1712 | |
| 317 | 317 | * |
| 318 | 318 | * Draw tiles with 4 bit planes(16 colors) |
| 319 | 319 | *****************************************/ |
| 320 | INLINE void snes_draw_tile_4( | |
| 320 | INLINE void snes_draw_tile_4( | |
| 321 | 321 | { |
| 322 | 322 | UINT8 mask, plane[4]; |
| 323 | 323 | UINT16 c; |
| r1711 | r1712 | |
| 361 | 361 | { |
| 362 | 362 | if( (scanlines[screen].zbuf[ii] <= priority) && (ii >= 0) ) |
| 363 | 363 | { |
| 364 | c = | |
| 364 | c = s | |
| 365 | 365 | if( screen == MAINSCREEN ) /* Only blend main screens */ |
| 366 | snes_draw_blend( | |
| 366 | snes_draw_blend( | |
| 367 | 367 | scanlines[screen].buffer[ii] = c; |
| 368 | 368 | scanlines[screen].zbuf[ii] = priority; |
| 369 | 369 | } |
| r1711 | r1712 | |
| 376 | 376 | * |
| 377 | 377 | * Draw 2 tiles with 4 bit planes(16 colors) |
| 378 | 378 | *****************************************/ |
| 379 | INLINE void snes_draw_tile_4x2( | |
| 379 | INLINE void snes_draw_tile_4x2( | |
| 380 | 380 | { |
| 381 | 381 | if( flip ) |
| 382 | 382 | { |
| 383 | snes_draw_tile_4(machine, screen, layer, tileaddr + 32, x, priority, flip, pal ); | |
| 384 | snes_draw_tile_4(machine, screen, layer, tileaddr, x + 8, priority, flip, pal ); | |
| 383 | snes_draw_tile_4(screen, layer, tileaddr + 32, x, priority, flip, pal ); | |
| 384 | snes_draw_tile_4(screen, layer, tileaddr, x + 8, priority, flip, pal ); | |
| 385 | 385 | } |
| 386 | 386 | else |
| 387 | 387 | { |
| 388 | snes_draw_tile_4(machine, screen, layer, tileaddr, x, priority, flip, pal ); | |
| 389 | snes_draw_tile_4(machine, screen, layer, tileaddr + 32, x + 8, priority, flip, pal ); | |
| 388 | snes_draw_tile_4(screen, layer, tileaddr, x, priority, flip, pal ); | |
| 389 | snes_draw_tile_4(screen, layer, tileaddr + 32, x + 8, priority, flip, pal ); | |
| 390 | 390 | } |
| 391 | 391 | } |
| 392 | 392 | |
| r1711 | r1712 | |
| 395 | 395 | * |
| 396 | 396 | * Draw tiles with 8 bit planes(256 colors) |
| 397 | 397 | *****************************************/ |
| 398 | INLINE void snes_draw_tile_8( | |
| 398 | INLINE void snes_draw_tile_8( | |
| 399 | 399 | { |
| 400 | 400 | UINT8 mask, plane[8]; |
| 401 | 401 | UINT16 c; |
| r1711 | r1712 | |
| 447 | 447 | { |
| 448 | 448 | if( (scanlines[screen].zbuf[ii] <= priority) && (ii >= 0) ) |
| 449 | 449 | { |
| 450 | c = | |
| 450 | c = s | |
| 451 | 451 | if( screen == MAINSCREEN ) /* Only blend main screens */ |
| 452 | snes_draw_blend( | |
| 452 | snes_draw_blend( | |
| 453 | 453 | scanlines[screen].buffer[ii] = c; |
| 454 | 454 | scanlines[screen].zbuf[ii] = priority; |
| 455 | 455 | } |
| r1711 | r1712 | |
| 462 | 462 | * |
| 463 | 463 | * Draw 2 tiles with 8 bit planes(256 colors) |
| 464 | 464 | *****************************************/ |
| 465 | INLINE void snes_draw_tile_8x2( | |
| 465 | INLINE void snes_draw_tile_8x2( | |
| 466 | 466 | { |
| 467 | 467 | if( flip ) |
| 468 | 468 | { |
| 469 | snes_draw_tile_8(machine, screen, layer, tileaddr + 64, x, priority, flip ); | |
| 470 | snes_draw_tile_8(machine, screen, layer, tileaddr, x + 8, priority, flip ); | |
| 469 | snes_draw_tile_8(screen, layer, tileaddr + 64, x, priority, flip ); | |
| 470 | snes_draw_tile_8(screen, layer, tileaddr, x + 8, priority, flip ); | |
| 471 | 471 | } |
| 472 | 472 | else |
| 473 | 473 | { |
| 474 | snes_draw_tile_8(machine, screen, layer, tileaddr, x, priority, flip ); | |
| 475 | snes_draw_tile_8(machine, screen, layer, tileaddr + 64, x + 8, priority, flip ); | |
| 474 | snes_draw_tile_8(screen, layer, tileaddr, x, priority, flip ); | |
| 475 | snes_draw_tile_8(screen, layer, tileaddr + 64, x + 8, priority, flip ); | |
| 476 | 476 | } |
| 477 | 477 | } |
| 478 | 478 | |
| r1711 | r1712 | |
| 483 | 483 | * The same as snes_draw_tile_4() except |
| 484 | 484 | * that it takes a blend parameter. |
| 485 | 485 | *****************************************/ |
| 486 | INLINE void snes_draw_tile_object( | |
| 486 | INLINE void snes_draw_tile_object( | |
| 487 | 487 | { |
| 488 | 488 | UINT8 mask, plane[4]; |
| 489 | 489 | UINT16 c; |
| r1711 | r1712 | |
| 527 | 527 | { |
| 528 | 528 | if( ii >= 0 ) |
| 529 | 529 | { |
| 530 | c = | |
| 530 | c = s | |
| 531 | 531 | if( blend && screen == MAINSCREEN ) /* Only blend main screens */ |
| 532 | snes_draw_blend( | |
| 532 | snes_draw_blend( | |
| 533 | 533 | |
| 534 | 534 | scanlines[screen].buffer[ii] = c; |
| 535 | 535 | scanlines[screen].zbuf[ii] = priority; |
| r1711 | r1712 | |
| 546 | 546 | * that it takes a blend parameter. |
| 547 | 547 | * Wide version. |
| 548 | 548 | *****************************************/ |
| 549 | INLINE void snes_draw_tile_object_w( | |
| 549 | INLINE void snes_draw_tile_object_w( | |
| 550 | 550 | { |
| 551 | 551 | UINT8 mask, plane[4]; |
| 552 | 552 | UINT16 c; |
| r1711 | r1712 | |
| 591 | 591 | { |
| 592 | 592 | if( ii >= 0 ) |
| 593 | 593 | { |
| 594 | c = | |
| 594 | c = s | |
| 595 | 595 | if( blend && screen == MAINSCREEN ) /* Only blend main screens */ |
| 596 | snes_draw_blend( | |
| 596 | snes_draw_blend( | |
| 597 | 597 | |
| 598 | 598 | scanlines[screen].buffer[ii] = c; |
| 599 | 599 | scanlines[screen].zbuf[ii] = priority; |
| r1711 | r1712 | |
| 609 | 609 | * |
| 610 | 610 | * Update an entire line of 2 bit plane tiles. |
| 611 | 611 | *********************************************/ |
| 612 | static void snes_update_line_2( | |
| 612 | static void snes_update_line_2( | |
| 613 | 613 | { |
| 614 | 614 | UINT32 tmap, tile; |
| 615 | 615 | UINT16 ii, vflip, hflip, pal; |
| r1711 | r1712 | |
| 722 | 722 | |
| 723 | 723 | if( tile_size ) |
| 724 | 724 | { |
| 725 | snes_draw_tile_2x2( | |
| 725 | snes_draw_tile_2x2( | |
| 726 | 726 | } |
| 727 | 727 | else |
| 728 | 728 | { |
| 729 | snes_draw_tile_2( | |
| 729 | snes_draw_tile_2( | |
| 730 | 730 | } |
| 731 | 731 | } |
| 732 | 732 | } |
| r1711 | r1712 | |
| 737 | 737 | * Update an entire line of 2 bit plane tiles. |
| 738 | 738 | * This is the hires version. |
| 739 | 739 | *********************************************/ |
| 740 | static void snes_update_line_2_hi( | |
| 740 | static void snes_update_line_2_hi( | |
| 741 | 741 | { |
| 742 | 742 | UINT32 tmap, tile; |
| 743 | 743 | UINT16 ii, vflip, hflip, pal; |
| r1711 | r1712 | |
| 852 | 852 | { |
| 853 | 853 | if( hflip ) |
| 854 | 854 | { |
| 855 | snes_draw_tile_2x2(machine, screen, layer, snes_ppu.layer[layer].data + (tile << 4) + tile_line, ((ii >> 1) * (8 << (tile_size + 1))) - (hshift << 1) + 16, priority, hflip, pal ); | |
| 856 | snes_draw_tile_2x2(machine, screen, layer, snes_ppu.layer[layer].data + ((tile + 2) << 4) + tile_line, ((ii >> 1) * (8 << (tile_size + 1))) - (hshift << 1), priority, hflip, pal ); | |
| 855 | snes_draw_tile_2x2(screen, layer, snes_ppu.layer[layer].data + (tile << 4) + tile_line, ((ii >> 1) * (8 << (tile_size + 1))) - (hshift << 1) + 16, priority, hflip, pal ); | |
| 856 | snes_draw_tile_2x2(screen, layer, snes_ppu.layer[layer].data + ((tile + 2) << 4) + tile_line, ((ii >> 1) * (8 << (tile_size + 1))) - (hshift << 1), priority, hflip, pal ); | |
| 857 | 857 | } |
| 858 | 858 | else |
| 859 | 859 | { |
| 860 | snes_draw_tile_2x2(machine, screen, layer, snes_ppu.layer[layer].data + (tile << 4) + tile_line, ((ii >> 1) * (8 << (tile_size + 1))) - (hshift << 1), priority, hflip, pal ); | |
| 861 | snes_draw_tile_2x2(machine, screen, layer, snes_ppu.layer[layer].data + ((tile + 2) << 4) + tile_line, ((ii >> 1) * (8 << (tile_size + 1))) - (hshift << 1) + 16, priority, hflip, pal ); | |
| 860 | snes_draw_tile_2x2(screen, layer, snes_ppu.layer[layer].data + (tile << 4) + tile_line, ((ii >> 1) * (8 << (tile_size + 1))) - (hshift << 1), priority, hflip, pal ); | |
| 861 | snes_draw_tile_2x2(screen, layer, snes_ppu.layer[layer].data + ((tile + 2) << 4) + tile_line, ((ii >> 1) * (8 << (tile_size + 1))) - (hshift << 1) + 16, priority, hflip, pal ); | |
| 862 | 862 | } |
| 863 | 863 | } |
| 864 | 864 | else |
| 865 | 865 | { |
| 866 | snes_draw_tile_2x2( | |
| 866 | snes_draw_tile_2x2( | |
| 867 | 867 | } |
| 868 | 868 | } |
| 869 | 869 | } |
| r1711 | r1712 | |
| 873 | 873 | * |
| 874 | 874 | * Update an entire line of 4 bit plane tiles. |
| 875 | 875 | *********************************************/ |
| 876 | static void snes_update_line_4( | |
| 876 | static void snes_update_line_4( | |
| 877 | 877 | { |
| 878 | 878 | UINT32 tmap, tile; |
| 879 | 879 | UINT16 ii, vflip, hflip, pal; |
| r1711 | r1712 | |
| 972 | 972 | |
| 973 | 973 | if( tile_size ) |
| 974 | 974 | { |
| 975 | snes_draw_tile_4x2( | |
| 975 | snes_draw_tile_4x2( | |
| 976 | 976 | } |
| 977 | 977 | else |
| 978 | 978 | { |
| 979 | snes_draw_tile_4( | |
| 979 | snes_draw_tile_4( | |
| 980 | 980 | } |
| 981 | 981 | } |
| 982 | 982 | } |
| r1711 | r1712 | |
| 987 | 987 | * Update an entire line of 4 bit plane tiles. |
| 988 | 988 | * This is the hires version |
| 989 | 989 | *********************************************/ |
| 990 | static void snes_update_line_4_hi( | |
| 990 | static void snes_update_line_4_hi( | |
| 991 | 991 | { |
| 992 | 992 | UINT32 tmap, tile; |
| 993 | 993 | UINT16 ii, vflip, hflip, pal; |
| r1711 | r1712 | |
| 1089 | 1089 | { |
| 1090 | 1090 | if( hflip ) |
| 1091 | 1091 | { |
| 1092 | snes_draw_tile_4x2(machine, screen, layer, snes_ppu.layer[layer].data + (tile << 5) + tile_line, ((ii >> 1) * (8 << (tile_size + 1))) - (hshift << 1) + 16, priority, hflip, pal ); | |
| 1093 | snes_draw_tile_4x2(machine, screen, layer, snes_ppu.layer[layer].data + ((tile + 2) << 5) + tile_line, ((ii >> 1) * (8 << (tile_size + 1))) - (hshift << 1), priority, hflip, pal ); | |
| 1092 | snes_draw_tile_4x2(screen, layer, snes_ppu.layer[layer].data + (tile << 5) + tile_line, ((ii >> 1) * (8 << (tile_size + 1))) - (hshift << 1) + 16, priority, hflip, pal ); | |
| 1093 | snes_draw_tile_4x2(screen, layer, snes_ppu.layer[layer].data + ((tile + 2) << 5) + tile_line, ((ii >> 1) * (8 << (tile_size + 1))) - (hshift << 1), priority, hflip, pal ); | |
| 1094 | 1094 | } |
| 1095 | 1095 | else |
| 1096 | 1096 | { |
| 1097 | snes_draw_tile_4x2(machine, screen, layer, snes_ppu.layer[layer].data + (tile << 5) + tile_line, ((ii >> 1) * (8 << (tile_size + 1))) - (hshift << 1), priority, hflip, pal ); | |
| 1098 | snes_draw_tile_4x2(machine, screen, layer, snes_ppu.layer[layer].data + ((tile + 2) << 5) + tile_line, ((ii >> 1) * (8 << (tile_size + 1))) - (hshift << 1) + 16, priority, hflip, pal ); | |
| 1097 | snes_draw_tile_4x2(screen, layer, snes_ppu.layer[layer].data + (tile << 5) + tile_line, ((ii >> 1) * (8 << (tile_size + 1))) - (hshift << 1), priority, hflip, pal ); | |
| 1098 | snes_draw_tile_4x2(screen, layer, snes_ppu.layer[layer].data + ((tile + 2) << 5) + tile_line, ((ii >> 1) * (8 << (tile_size + 1))) - (hshift << 1) + 16, priority, hflip, pal ); | |
| 1099 | 1099 | } |
| 1100 | 1100 | } |
| 1101 | 1101 | else |
| 1102 | 1102 | { |
| 1103 | snes_draw_tile_4x2( | |
| 1103 | snes_draw_tile_4x2( | |
| 1104 | 1104 | } |
| 1105 | 1105 | } |
| 1106 | 1106 | } |
| r1711 | r1712 | |
| 1110 | 1110 | * |
| 1111 | 1111 | * Update an entire line of 8 bit plane tiles. |
| 1112 | 1112 | *********************************************/ |
| 1113 | static void snes_update_line_8( | |
| 1113 | static void snes_update_line_8( | |
| 1114 | 1114 | { |
| 1115 | 1115 | UINT32 tmap, tile; |
| 1116 | 1116 | UINT16 ii, vflip, hflip, pal; |
| r1711 | r1712 | |
| 1208 | 1208 | |
| 1209 | 1209 | if( tile_size ) |
| 1210 | 1210 | { |
| 1211 | snes_draw_tile_8x2( | |
| 1211 | snes_draw_tile_8x2( | |
| 1212 | 1212 | } |
| 1213 | 1213 | else |
| 1214 | 1214 | { |
| 1215 | snes_draw_tile_8( | |
| 1215 | snes_draw_tile_8( | |
| 1216 | 1216 | } |
| 1217 | 1217 | } |
| 1218 | 1218 | } |
| r1711 | r1712 | |
| 1222 | 1222 | * |
| 1223 | 1223 | * Update an entire line of mode7 tiles. |
| 1224 | 1224 | *********************************************/ |
| 1225 | static void snes_update_line_mode7( | |
| 1225 | static void snes_update_line_mode7( | |
| 1226 | 1226 | { |
| 1227 | 1227 | UINT32 tiled; |
| 1228 | 1228 | INT16 ma, mb, mc, md; |
| r1711 | r1712 | |
| 1326 | 1326 | if( snes_ram[CGWSEL] & 0x1 ) |
| 1327 | 1327 | clr = ((colour & 0x7) << 2) | ((colour & 0x38) << 4) | ((colour & 0xc0) << 7); |
| 1328 | 1328 | else |
| 1329 | clr = | |
| 1329 | clr = s | |
| 1330 | 1330 | /* Only blend main screens */ |
| 1331 | 1331 | if( screen == MAINSCREEN ) |
| 1332 | snes_draw_blend( | |
| 1332 | snes_draw_blend( | |
| 1333 | 1333 | |
| 1334 | 1334 | scanlines[screen].buffer[xpos] = clr; |
| 1335 | 1335 | scanlines[screen].zbuf[xpos] = table_bgd_pty[1][0][priority]; |
| r1711 | r1712 | |
| 1343 | 1343 | * Update an entire line of sprites. |
| 1344 | 1344 | * FIXME: We need to support high priority bit |
| 1345 | 1345 | *********************************************/ |
| 1346 | static void snes_update_objects( | |
| 1346 | static void snes_update_objects( | |
| 1347 | 1347 | { |
| 1348 | 1348 | INT8 xs, ys; |
| 1349 | 1349 | UINT8 line, widemode = 0; |
| r1711 | r1712 | |
| 1417 | 1417 | if( (x + (count << 3) < SNES_SCR_WIDTH + 8) ) |
| 1418 | 1418 | { |
| 1419 | 1419 | if( widemode ) |
| 1420 | snes_draw_tile_object_w( | |
| 1420 | snes_draw_tile_object_w( | |
| 1421 | 1421 | else |
| 1422 | snes_draw_tile_object( | |
| 1422 | snes_draw_tile_object( | |
| 1423 | 1423 | } |
| 1424 | 1424 | time_over++; /* Increase time_over. Should we stop drawing if exceeded 34 tiles? */ |
| 1425 | 1425 | } |
| r1711 | r1712 | |
| 1431 | 1431 | if( (x + (xs << 3) < SNES_SCR_WIDTH + 8) ) |
| 1432 | 1432 | { |
| 1433 | 1433 | if( widemode ) |
| 1434 | snes_draw_tile_object_w( | |
| 1434 | snes_draw_tile_object_w( | |
| 1435 | 1435 | else |
| 1436 | snes_draw_tile_object( | |
| 1436 | snes_draw_tile_object( | |
| 1437 | 1437 | } |
| 1438 | 1438 | time_over++; /* Increase time_over. Should we stop drawing if exceeded 34 tiles? */ |
| 1439 | 1439 | } |
| r1711 | r1712 | |
| 1761 | 1761 | } |
| 1762 | 1762 | |
| 1763 | 1763 | /********************************************* |
| 1764 | * snes_update_palette() | |
| 1765 | * | |
| 1766 | * Update the palette with the latest changes. | |
| 1767 | *********************************************/ | |
| 1768 | static void snes_update_palette(running_machine *machine) | |
| 1769 | { | |
| 1770 | UINT8 r, g, b, fade; | |
| 1771 | UINT16 ii; | |
| 1772 | UINT32 col; | |
| 1773 | ||
| 1774 | /* Reset the flag */ | |
| 1775 | snes_ppu.update_palette = 0; | |
| 1776 | ||
| 1777 | /* Modify the palette to fade out the colours */ | |
| 1778 | fade = (snes_ram[INIDISP] & 0xf) + 1; | |
| 1779 | for( ii = 0; ii <= 256; ii++ ) | |
| 1780 | { | |
| 1781 | col = machine->pens[snes_cgram[ii] & 0x7fff]; | |
| 1782 | r = ((col & 0x1f) * fade) >> 4; | |
| 1783 | g = (((col & 0x3e0) >> 5) * fade) >> 4; | |
| 1784 | b = (((col & 0x7c00) >> 10) * fade) >> 4; | |
| 1785 | /* palette hacks! */ | |
| 1786 | ((pen_t *)machine->remapped_colortable)[ii] = ((r & 0x1f) | ((g & 0x1f) << 5) | ((b & 0x1f) << 10)); | |
| 1787 | } | |
| 1788 | } | |
| 1789 | ||
| 1790 | /********************************************* | |
| 1791 | 1764 | * snes_update_offsets() |
| 1792 | 1765 | * |
| 1793 | 1766 | * Update the offsets with the latest changes. |
| r1711 | r1712 | |
| 1810 | 1783 | * |
| 1811 | 1784 | * Redraw the current line. |
| 1812 | 1785 | *********************************************/ |
| 1813 | static void snes_refresh_scanline( | |
| 1786 | static void snes_refresh_scanline( | |
| 1814 | 1787 | { |
| 1815 | 1788 | UINT16 ii; |
| 1789 | int x; | |
| 1790 | int fade; | |
| 1791 | struct SCANLINE *scanline; | |
| 1816 | 1792 | |
| 1817 | 1793 | profiler_mark(PROFILER_VIDEO); |
| 1818 | 1794 | |
| 1819 | 1795 | if( snes_ram[INIDISP] & 0x80 ) /* screen is forced blank */ |
| 1820 | { | |
| 1821 | rectangle r = machine->screen[0].visarea; | |
| 1822 | r.min_y = r.max_y = curline; | |
| 1823 | fillbitmap(bitmap, machine->pens[0], &r); | |
| 1824 | } | |
| 1796 | for (x = 0; x < SNES_SCR_WIDTH; x++) | |
| 1797 | *BITMAP_ADDR32(bitmap, curline, x) = RGB_BLACK; | |
| 1825 | 1798 | else |
| 1826 | 1799 | { |
| 1827 | 1800 | /* Update clip window masks if necessary */ |
| 1828 | 1801 | if( snes_ppu.update_windows ) |
| 1829 | 1802 | snes_update_windowmasks(); |
| 1830 | /* Update the palette if necessary */ | |
| 1831 | if( snes_ppu.update_palette ) | |
| 1832 | snes_update_palette(machine); | |
| 1833 | 1803 | /* Update the offsets if necessary */ |
| 1834 | 1804 | if( snes_ppu.update_offsets ) |
| 1835 | 1805 | snes_update_offsets(); |
| r1711 | r1712 | |
| 1843 | 1813 | { |
| 1844 | 1814 | /* Not sure if this is correct behaviour, but a few games seem to |
| 1845 | 1815 | * require it. (SMW, Zelda etc) */ |
| 1846 | scanlines[SUBSCREEN].buffer[ii] = | |
| 1816 | scanlines[SUBSCREEN].buffer[ii] = s | |
| 1847 | 1817 | /* Draw back colour */ |
| 1848 | scanlines[MAINSCREEN].buffer[ii] = | |
| 1818 | scanlines[MAINSCREEN].buffer[ii] = s | |
| 1849 | 1819 | } |
| 1850 | 1820 | |
| 1851 | 1821 | /* Draw subscreen */ |
| 1852 | 1822 | if( snes_ram[TS] & 0x10 ) |
| 1853 | snes_update_objects( | |
| 1823 | snes_update_objects( | |
| 1854 | 1824 | for( ii = 0; ii < snes_modedefs[snes_ppu.mode].count; ii++ ) |
| 1855 | 1825 | { |
| 1856 | 1826 | if( snes_ram[TS] & (0x1 << ii) ) |
| 1857 | snes_modedefs[snes_ppu.mode].drawLayer[ii]( | |
| 1827 | snes_modedefs[snes_ppu.mode].drawLayer[ii]( | |
| 1858 | 1828 | } |
| 1859 | 1829 | /* Draw the back plane */ |
| 1860 | 1830 | #ifdef SNES_DBG_video |
| r1711 | r1712 | |
| 1864 | 1834 | { |
| 1865 | 1835 | for( ii = 0; ii < SNES_SCR_WIDTH; ii++ ) |
| 1866 | 1836 | { |
| 1867 | snes_draw_blend( | |
| 1837 | snes_draw_blend( | |
| 1868 | 1838 | } |
| 1869 | 1839 | } |
| 1870 | 1840 | /* Draw mainscreen */ |
| 1871 | 1841 | if( snes_ram[TM] & 0x10 ) |
| 1872 | snes_update_objects( | |
| 1842 | snes_update_objects( | |
| 1873 | 1843 | for( ii = 0; ii < snes_modedefs[snes_ppu.mode].count; ii++ ) |
| 1874 | 1844 | { |
| 1875 | 1845 | if( snes_ram[TM] & (0x1 << ii) ) |
| 1876 | snes_modedefs[snes_ppu.mode].drawLayer[ii]( | |
| 1846 | snes_modedefs[snes_ppu.mode].drawLayer[ii]( | |
| 1877 | 1847 | } |
| 1878 | 1848 | |
| 1879 | 1849 | #ifdef SNES_DBG_video |
| 1880 | if( snes_dbg_video( | |
| 1850 | if( snes_dbg_video( | |
| 1881 | 1851 | { |
| 1882 | 1852 | profiler_mark(PROFILER_END); |
| 1883 | 1853 | return; |
| r1711 | r1712 | |
| 1885 | 1855 | |
| 1886 | 1856 | /* Toggle drawing of subscreen or mainscreen */ |
| 1887 | 1857 | if( debug_options.draw_subscreen ) |
| 1888 | | |
| 1858 | s | |
| 1889 | 1859 | else |
| 1890 | 1860 | #endif /* SNES_DBG_video */ |
| 1861 | scanline = &scanlines[MAINSCREEN]; | |
| 1891 | 1862 | |
| 1892 | 1863 | /* Phew! Draw the line to screen */ |
| 1893 | memcpy( (UINT16 *)bitmap->base + bitmap->rowpixels * curline, scanlines[MAINSCREEN].buffer, (SNES_SCR_WIDTH * 2) * sizeof(UINT16) ); | |
| 1864 | fade = (snes_ram[INIDISP] & 0xf) + 1; | |
| 1865 | ||
| 1866 | for (x = 0; x < SNES_SCR_WIDTH; x++) | |
| 1867 | { | |
| 1868 | int r = ((scanline->buffer[x] & 0x1f) * fade) >> 4; | |
| 1869 | int g = (((scanline->buffer[x] & 0x3e0) >> 5) * fade) >> 4; | |
| 1870 | int b = (((scanline->buffer[x] & 0x7c00) >> 10) * fade) >> 4; | |
| 1871 | *BITMAP_ADDR32(bitmap, curline, x) = MAKE_RGB(pal5bit(r), pal5bit(g), pal5bit(b)); | |
| 1872 | } | |
| 1894 | 1873 | } |
| 1895 | 1874 | |
| 1896 | 1875 | profiler_mark(PROFILER_END); |
| r1711 | r1712 | |
| 1901 | 1880 | int y; |
| 1902 | 1881 | |
| 1903 | 1882 | for (y = cliprect->min_y; y <= cliprect->max_y; y++) |
| 1904 | snes_refresh_scanline( | |
| 1883 | snes_refresh_scanline( | |
| 1905 | 1884 | return 0; |
| 1906 | 1885 | } |
| 1907 | 1886 | |
| r1711 | r1712 | |
| 1910 | 1889 | |
| 1911 | 1890 | #ifdef SNES_DBG_video |
| 1912 | 1891 | |
| 1913 | static void snes_dbg_draw_maps( | |
| 1892 | static void snes_dbg_draw_maps( | |
| 1914 | 1893 | { |
| 1915 | 1894 | UINT32 tile, addr = tmap; |
| 1916 | 1895 | UINT16 ii, vflip, hflip, pal; |
| r1711 | r1712 | |
| 1934 | 1913 | switch( bpl ) |
| 1935 | 1914 | { |
| 1936 | 1915 | case 1: |
| 1937 | snes_draw_tile_2( | |
| 1916 | snes_draw_tile_2( | |
| 1938 | 1917 | break; |
| 1939 | 1918 | case 2: |
| 1940 | 1919 | pal <<= 2; |
| 1941 | snes_draw_tile_4( | |
| 1920 | snes_draw_tile_4( | |
| 1942 | 1921 | break; |
| 1943 | 1922 | case 4: |
| 1944 | snes_draw_tile_8( | |
| 1923 | snes_draw_tile_8( | |
| 1945 | 1924 | break; |
| 1946 | 1925 | } |
| 1947 | 1926 | } |
| r1711 | r1712 | |
| 1951 | 1930 | //ui_draw_text( str, 0, 227 ); |
| 1952 | 1931 | } |
| 1953 | 1932 | |
| 1954 | static void snes_dbg_draw_all_tiles( | |
| 1933 | static void snes_dbg_draw_all_tiles( | |
| 1955 | 1934 | { |
| 1956 | 1935 | UINT16 ii, jj, kk; |
| 1957 | 1936 | UINT32 addr = tileaddr; |
| r1711 | r1712 | |
| 1970 | 1949 | switch( bpl ) |
| 1971 | 1950 | { |
| 1972 | 1951 | case 1: |
| 1973 | snes_draw_tile_2( | |
| 1952 | snes_draw_tile_2( | |
| 1974 | 1953 | break; |
| 1975 | 1954 | case 2: |
| 1976 | snes_draw_tile_4( | |
| 1955 | snes_draw_tile_4( | |
| 1977 | 1956 | break; |
| 1978 | 1957 | case 4: |
| 1979 | snes_draw_tile_8( | |
| 1958 | snes_draw_tile_8( | |
| 1980 | 1959 | break; |
| 1981 | 1960 | } |
| 1982 | 1961 | addr += (bpl * 16); |
| r1711 | r1712 | |
| 1990 | 1969 | //ui_draw_text( str, 0, 227 ); |
| 1991 | 1970 | } |
| 1992 | 1971 | |
| 1993 | static UINT8 snes_dbg_video( | |
| 1972 | static UINT8 snes_dbg_video( | |
| 1994 | 1973 | { |
| 1995 | 1974 | UINT16 ii; |
| 1996 | 1975 | |
| r1711 | r1712 | |
| 2155 | 2134 | { |
| 2156 | 2135 | scanlines[MAINSCREEN].buffer[ii] = 0; |
| 2157 | 2136 | } |
| 2158 | snes_dbg_draw_all_tiles( | |
| 2137 | snes_dbg_draw_all_tiles( | |
| 2159 | 2138 | } |
| 2160 | 2139 | return 1; |
| 2161 | 2140 | } |
| r1711 | r1712 | |
| 2179 | 2158 | /* Draw back colour */ |
| 2180 | 2159 | for( ii = 0; ii < SNES_SCR_WIDTH; ii++ ) |
| 2181 | 2160 | scanlines[MAINSCREEN].buffer[ii] = machine->pens[0]; |
| 2182 | snes_dbg_draw_maps( | |
| 2161 | snes_dbg_draw_maps( | |
| 2183 | 2162 | draw_scanline16( bitmap, 0, curline, SNES_SCR_WIDTH, scanlines[MAINSCREEN].buffer, machine->pens, 200 ); |
| 2184 | 2163 | return 1; |
| 2185 | 2164 | } |
| r1711 | r1712 | |
| 2193 | 2172 | *BITMAP_ADDR16(bitmap, curline, SNES_DBG_HORZ_POS - 2 ) = machine->pens[32767]; |
| 2194 | 2173 | for( ii = 0; ii < 5; ii++ ) |
| 2195 | 2174 | { |
| 2196 | *BITMAP_ADDR16(bitmap, curline, SNES_DBG_HORZ_POS - 19 + ii) = machine->remapped_colortable[0]; | |
| 2197 | *BITMAP_ADDR16(bitmap, curline, SNES_DBG_HORZ_POS - 9 + ii) = machine->remapped_colortable[FIXED_COLOUR]; | |
| 2175 | *BITMAP_ADDR16(bitmap, curline, SNES_DBG_HORZ_POS - 19 + ii) = snes_cgram[0]; | |
| 2176 | *BITMAP_ADDR16(bitmap, curline, SNES_DBG_HORZ_POS - 9 + ii) = snes_cgram[FIXED_COLOUR]; | |
| 2198 | 2177 | } |
| 2199 | 2178 | /* Draw window positions */ |
| 2200 | 2179 | scanlines[MAINSCREEN].buffer[snes_ram[WH0]] = machine->pens[dbg_mode_colours[0]]; |
| r1711 | r1712 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 11 | 10 | |
| 12 | 11 | UINT16 *glass_spriteram; |
| 13 | 12 | UINT16 *glass_vregs; |
| r1711 | r1712 | |
| 101 | 100 | for (i = 0; i < 320; i++){ |
| 102 | 101 | int color = *gfx; |
| 103 | 102 | gfx++; |
| 104 | *BITMAP_ADDR16(screen_bitmap, j, i) = | |
| 103 | *BITMAP_ADDR16(screen_bitmap, j, i) = | |
| 105 | 104 | } |
| 106 | 105 | } |
| 107 | 106 | } else { |
| 108 | fillbitmap(screen_bitmap, | |
| 107 | fillbitmap(screen_bitmap, | |
| 109 | 108 | } |
| 110 | 109 | } |
| 111 | 110 | } |
| r1711 | r1712 | |
|---|---|---|
| 951 | 951 | if ((toaplan2_sub_cpu == CPU_2_Z80) && (data == 3)) |
| 952 | 952 | { |
| 953 | 953 | /* HACK! When tilted, sound CPU needs to be reset. */ |
| 954 | if (Machine-> | |
| 954 | if (Machine->config->sound[0].type == SOUND_YM3812) | |
| 955 | 955 | { |
| 956 | 956 | cpunum_set_input_line(Machine, 1, INPUT_LINE_RESET, PULSE_LINE); |
| 957 | 957 | sndti_reset(SOUND_YM3812, 0); |
| r1711 | r1712 | |
|---|---|---|
| 39 | 39 | int i; |
| 40 | 40 | int bit0, bit1, bit2, bit3, r, g, b; |
| 41 | 41 | |
| 42 | for (i = 0; i < machine-> | |
| 42 | for (i = 0; i < machine->config->total_colors; i++) | |
| 43 | 43 | { |
| 44 | 44 | bit0 = (color_prom[0] >> 0) & 0x01; |
| 45 | 45 | bit1 = (color_prom[0] >> 1) & 0x01; |
| r1711 | r1712 | |
| 51 | 51 | bit2 = (color_prom[0] >> 6) & 0x01; |
| 52 | 52 | bit3 = (color_prom[0] >> 7) & 0x01; |
| 53 | 53 | g = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; |
| 54 | bit0 = (color_prom[machine->drv->total_colors] >> 0) & 0x01; | |
| 55 | bit1 = (color_prom[machine->drv->total_colors] >> 1) & 0x01; | |
| 56 | bit2 = (color_prom[machine->drv->total_colors] >> 2) & 0x01; | |
| 57 | bit3 = (color_prom[machine->drv->total_colors] >> 3) & 0x01; | |
| 54 | bit0 = (color_prom[machine->config->total_colors] >> 0) & 0x01; | |
| 55 | bit1 = (color_prom[machine->config->total_colors] >> 1) & 0x01; | |
| 56 | bit2 = (color_prom[machine->config->total_colors] >> 2) & 0x01; | |
| 57 | bit3 = (color_prom[machine->config->total_colors] >> 3) & 0x01; | |
| 58 | 58 | b = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; |
| 59 | 59 | |
| 60 | 60 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); |
| r1711 | r1712 | |
| 143 | 143 | static void update_pixel(int x,int y) |
| 144 | 144 | { |
| 145 | 145 | int color = pastelg_videoram[(y * Machine->screen[0].width) + x]; |
| 146 | *BITMAP_ADDR16(pastelg_tmpbitmap, y, x) = | |
| 146 | *BITMAP_ADDR16(pastelg_tmpbitmap, y, x) = | |
| 147 | 147 | } |
| 148 | 148 | |
| 149 | 149 | static TIMER_CALLBACK( blitter_timer_callback ) |
| r1711 | r1712 | |
|---|---|---|
| 36 | 36 | { |
| 37 | 37 | int i; |
| 38 | 38 | |
| 39 | for (i = 0; i < machine-> | |
| 39 | for (i = 0; i < machine->config->total_colors; i++) | |
| 40 | 40 | { |
| 41 | 41 | UINT8 pen; |
| 42 | 42 | int h, r, g, b; |
| r1711 | r1712 | |
|---|---|---|
| 14 | 14 | { |
| 15 | 15 | int i; |
| 16 | 16 | |
| 17 | for (i = 0;i < machine-> | |
| 17 | for (i = 0;i < machine->config->total_colors;i++) | |
| 18 | 18 | { |
| 19 | 19 | int bit0,bit1,bit2,r,g,b; |
| 20 | 20 |
| r1711 | r1712 | |
|---|---|---|
| 133 | 133 | last_bank=bank_base; |
| 134 | 134 | tilemap_set_flip(ALL_TILEMAPS,flipscreen ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0); |
| 135 | 135 | |
| 136 | fillbitmap(bitmap, | |
| 136 | fillbitmap(bitmap, | |
| 137 | 137 | //AT |
| 138 | 138 | draw_sprites(machine, bitmap,cliprect,0,0x07c0,0x0800); |
| 139 | 139 | draw_sprites(machine, bitmap,cliprect,1,0x0000,0x0800); |
| r1711 | r1712 | |
| 272 | 272 | last_bank=bank_base; |
| 273 | 273 | tilemap_set_flip(ALL_TILEMAPS,flipscreen ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0); |
| 274 | 274 | |
| 275 | fillbitmap(bitmap, | |
| 275 | fillbitmap(bitmap, | |
| 276 | 276 | |
| 277 | 277 | /* This appears to be correct priority */ |
| 278 | 278 | if (alpha68k_microcontroller_id == 0x8814) /* Sky Adventure */ |
| r1711 | r1712 | |
| 308 | 308 | last_bank=bank_base; |
| 309 | 309 | tilemap_set_flip(ALL_TILEMAPS,flipscreen ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0); |
| 310 | 310 | |
| 311 | fillbitmap(bitmap, | |
| 311 | fillbitmap(bitmap, | |
| 312 | 312 | |
| 313 | 313 | /* This appears to be correct priority */ |
| 314 | 314 | draw_sprites_V(machine,bitmap,cliprect,0,0x07c0,0x0800,0x4000,0x8000,0x3fff); |
| r1711 | r1712 | |
| 480 | 480 | VIDEO_UPDATE( kyros ) |
| 481 | 481 | { |
| 482 | 482 | colortable_entry_set_value(machine->colortable, 0x100, *videoram16 & 0xff); |
| 483 | fillbitmap(bitmap, | |
| 483 | fillbitmap(bitmap, | |
| 484 | 484 | |
| 485 | 485 | kyros_draw_sprites(machine, bitmap,cliprect,2,0x0800); |
| 486 | 486 | kyros_draw_sprites(machine, bitmap,cliprect,3,0x0c00); |
| r1711 | r1712 | |
| 538 | 538 | VIDEO_UPDATE( sstingry ) |
| 539 | 539 | { |
| 540 | 540 | colortable_entry_set_value(machine->colortable, 0x100, *videoram16 & 0xff); |
| 541 | fillbitmap(bitmap, | |
| 541 | fillbitmap(bitmap, | |
| 542 | 542 | |
| 543 | 543 | sstingry_draw_sprites(machine, bitmap,cliprect,2,0x0800); |
| 544 | 544 | sstingry_draw_sprites(machine, bitmap,cliprect,3,0x0c00); |
| r1711 | r1712 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "starfire.h" | |
| 8 | 9 | |
| 9 | 10 | |
| 10 | 11 | #define NUM_PENS (0x40) |
| r1711 | r1712 | |
|---|---|---|
| 25 | 25 | { |
| 26 | 26 | int i; |
| 27 | 27 | |
| 28 | for (i = 0;i < 32;i++) | |
| 28 | /* allocate the colortable */ | |
| 29 | machine->colortable = colortable_alloc(machine, 0x40); | |
| 30 | ||
| 31 | /* create a lookup table for the palette */ | |
| 32 | for (i = 0; i < 0x20; i++) | |
| 29 | 33 | { |
| 30 | int bit1,bit2,r,g,b; | |
| 34 | int bit0, bit1; | |
| 35 | int r, g, b; | |
| 31 | 36 | |
| 37 | /* red component */ | |
| 38 | bit0 = (color_prom[i] >> 0) & 0x01; | |
| 39 | bit1 = (color_prom[i] >> 5) & 0x01; | |
| 40 | r = 0x47 * bit0 + 0x97 * bit1; | |
| 32 | 41 | |
| 33 | bit1 = (color_prom[i] >> 0) & 0x01; | |
| 34 | bit2 = (color_prom[i] >> 5) & 0x01; | |
| 35 | r = 0x47 * bit1 + 0x97 * bit2; | |
| 36 | bit1 = (color_prom[i] >> 2) & 0x01; | |
| 37 | bit2 = (color_prom[i] >> 6) & 0x01; | |
| 38 | g = 0x47 * bit1 + 0x97 * bit2; | |
| 39 | bit1 = (color_prom[i] >> 4) & 0x01; | |
| 40 | bit2 = (color_prom[i] >> 7) & 0x01; | |
| 41 | b = 0x47 * bit1 + 0x97 * bit2; | |
| 42 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); | |
| 42 | /* green component */ | |
| 43 | bit0 = (color_prom[i] >> 2) & 0x01; | |
| 44 | bit1 = (color_prom[i] >> 6) & 0x01; | |
| 45 | g = 0x47 * bit0 + 0x97 * bit1; | |
| 46 | ||
| 47 | /* blue component */ | |
| 48 | bit0 = (color_prom[i] >> 4) & 0x01; | |
| 49 | bit1 = (color_prom[i] >> 7) & 0x01; | |
| 50 | b = 0x47 * bit0 + 0x97 * bit1; | |
| 51 | ||
| 52 | colortable_palette_set_color(machine->colortable, i, MAKE_RGB(r, g, b)); | |
| 43 | 53 | } |
| 44 | 54 | |
| 45 | /* This is for the stars colors */ | |
| 46 | for (i = 32;i < 64;i++) | |
| 55 | /* star colors */ | |
| 56 | for (i = 0x20; i < 0x40; i++) | |
| 47 | 57 | { |
| 48 | int bit1,bit2,r,g,b; | |
| 58 | int bit0, bit1; | |
| 59 | int r, g, b; | |
| 49 | 60 | |
| 50 | bit2 = (i >> 4) & 0x01; | |
| 51 | bit1 = (i >> 3) & 0x01; | |
| 52 | b = 0x47 * bit1 + 0x97 * bit2; | |
| 53 | bit2 = (i >> 2) & 0x01; | |
| 54 | bit1 = (i >> 1) & 0x01; | |
| 55 | g = 0x47 * bit1 + 0x97 * bit2; | |
| 56 | bit1 = i & 0x01; | |
| 57 | r = 0x47 * bit1; | |
| 58 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); | |
| 61 | /* red component */ | |
| 62 | bit0 = ((i - 0x20) >> 3) & 0x01; | |
| 63 | bit1 = ((i - 0x20) >> 4) & 0x01; | |
| 64 | b = 0x47 * bit0 + 0x97 * bit1; | |
| 65 | ||
| 66 | /* green component */ | |
| 67 | bit0 = ((i - 0x20) >> 1) & 0x01; | |
| 68 | bit1 = ((i - 0x20) >> 2) & 0x01; | |
| 69 | g = 0x47 * bit0 + 0x97 * bit1; | |
| 70 | ||
| 71 | /* blue component */ | |
| 72 | bit0 = ((i - 0x20) >> 0) & 0x01; | |
| 73 | r = 0x47 * bit0; | |
| 74 | ||
| 75 | colortable_palette_set_color(machine->colortable, i, MAKE_RGB(r, g, b)); | |
| 59 | 76 | } |
| 60 | 77 | |
| 78 | /* color_prom now points to the beginning of the lookup table */ | |
| 79 | color_prom += 0x20; | |
| 80 | ||
| 61 | 81 | /* characters */ |
| 62 | for (i = 0;i < | |
| 82 | for (i = 0; i < 0x20; i++) | |
| 63 | 83 | { |
| 64 | colortable[4 * i] = 0; | |
| 65 | colortable[4 * i + 1] = i + 0x08; | |
| 66 | colortable[4 * i + 2] = i + 0x10; | |
| 67 | colortable[4 * i + 3] = i + 0x18; | |
| 84 | UINT8 ctabentry = ((i << 3) & 0x18) | ((i >> 2) & 0x07); | |
| 85 | colortable_entry_set_value(machine->colortable, i, ctabentry); | |
| 68 | 86 | } |
| 69 | 87 | |
| 70 | 88 | /* sprites */ |
| 71 | for (i = 0;i < 4 | |
| 89 | for (i = 0x20; i < 0x40 | |
| 72 | 90 | { |
| 73 | | |
| 91 | UINT8 c | |
| 74 | 92 | |
| 93 | ctabentry = BITSWAP8((color_prom[i - 0x20] >> 0) & 0x0f, 7,6,5,4,0,1,2,3); | |
| 94 | colortable_entry_set_value(machine->colortable, i + 0x00, ctabentry); | |
| 75 | 95 | |
| 76 | /* low 4 bits are for sprite n */ | |
| 77 | bit0 = (color_prom[i + 32] >> 3) & 0x01; | |
| 78 | bit1 = (color_prom[i + 32] >> 2) & 0x01; | |
| 79 | bit2 = (color_prom[i + 32] >> 1) & 0x01; | |
| 80 | bit3 = (color_prom[i + 32] >> 0) & 0x01; | |
| 81 | colortable[i + 4 * 8] = 1 * bit0 + 2 * bit1 + 4 * bit2 + 8 * bit3; | |
| 96 | ctabentry = BITSWAP8((color_prom[i - 0x20] >> 4) & 0x0f, 7,6,5,4,0,1,2,3); | |
| 97 | colortable_entry_set_value(machine->colortable, i + 0x20, ctabentry); | |
| 98 | } | |
| 82 | 99 | |
| 83 | /* high 4 bits are for sprite n + 8 */ | |
| 84 | bit0 = (color_prom[i + 32] >> 7) & 0x01; | |
| 85 | bit1 = (color_prom[i + 32] >> 6) & 0x01; | |
| 86 | bit2 = (color_prom[i + 32] >> 5) & 0x01; | |
| 87 | bit3 = (color_prom[i + 32] >> 4) & 0x01; | |
| 88 | colortable[i + 4 * 16] = 1 * bit0 + 2 * bit1 + 4 * bit2 + 8 * bit3; | |
| 89 | } | |
| 100 | /* stars */ | |
| 101 | for (i = 0x60; i < 0x80; i++) | |
| 102 | colortable_entry_set_value(machine->colortable, i, (i - 0x60) + 0x20); | |
| 90 | 103 | } |
| 91 | 104 | |
| 92 | 105 | WRITE8_HANDLER( redclash_videoram_w ) |
| r1711 | r1712 | |
| 247 | 260 | } |
| 248 | 261 | } |
| 249 | 262 | |
| 250 | static void draw_bullets( | |
| 263 | static void draw_bullets( | |
| 251 | 264 | { |
| 252 | 265 | int offs; |
| 253 | 266 | |
| r1711 | r1712 | |
| 264 | 277 | |
| 265 | 278 | if (sx >= cliprect->min_x && sx <= cliprect->max_x && |
| 266 | 279 | sy >= cliprect->min_y && sy <= cliprect->max_y) |
| 267 | *BITMAP_ADDR16(bitmap, sy, sx) = | |
| 280 | *BITMAP_ADDR16(bitmap, sy, sx) = | |
| 268 | 281 | } |
| 269 | 282 | } |
| 270 | 283 | |
| r1711 | r1712 | |
| 344 | 357 | /* Space Raider doesn't use the Va bit, and it is also set up to */ |
| 345 | 358 | /* window the stars to a certain x range */ |
| 346 | 359 | |
| 347 | void redclash_draw_stars( | |
| 360 | void redclash_draw_stars( | |
| 348 | 361 | { |
| 349 | 362 | int i; |
| 350 | 363 | UINT8 tempbit, feedback, star_color, xloc, yloc; |
| r1711 | r1712 | |
| 390 | 403 | if ((xloc>=firstx) && (xloc<=lastx)) |
| 391 | 404 | { |
| 392 | 405 | star_color = (state >> 9) & 0x1f; |
| 393 | *BITMAP_ADDR16(bitmap, yloc, xloc) = | |
| 406 | *BITMAP_ADDR16(bitmap, yloc, xloc) = | |
| 394 | 407 | } |
| 395 | 408 | } |
| 396 | 409 | } |
| r1711 | r1712 | |
| 409 | 422 | VIDEO_UPDATE( redclash ) |
| 410 | 423 | { |
| 411 | 424 | fillbitmap(bitmap, get_black_pen(machine), cliprect); |
| 412 | redclash_draw_stars(machine, bitmap, cliprect, | |
| 425 | redclash_draw_stars(machine->pens, bitmap, cliprect, 0x60, 0, 0x00, 0xff); | |
| 413 | 426 | draw_sprites(machine, bitmap, cliprect); |
| 414 | draw_bullets(machine, bitmap, cliprect); | |
| 427 | draw_bullets(machine->pens, bitmap, cliprect); | |
| 415 | 428 | tilemap_draw(bitmap, cliprect, fg_tilemap, 0, 0); |
| 416 | 429 | return 0; |
| 417 | 430 | } |
| r1711 | r1712 | |
|---|---|---|
| 24 | 24 | static rgb_t palette[64]; |
| 25 | 25 | |
| 26 | 26 | #define TOTAL_COLORS(gfxn) (Machine->gfx[gfxn]->total_colors * Machine->gfx[gfxn]->color_granularity) |
| 27 | #define COLOR(gfxn,offs) (Machine-> | |
| 27 | #define COLOR(gfxn,offs) (Machine->config->gfxdecodeinfo[gfxn].color_codes_start + offs) | |
| 28 | 28 | |
| 29 | 29 | |
| 30 | 30 | |
| r1711 | r1712 | |
| 39 | 39 | { |
| 40 | 40 | int i; |
| 41 | 41 | |
| 42 | for (i = 0; i < machine-> | |
| 42 | for (i = 0; i < machine->config->total_colors; i++) | |
| 43 | 43 | { |
| 44 | 44 | int bit0, bit1, bit2, r, g, b; |
| 45 | 45 | |
| r1711 | r1712 | |
| 193 | 193 | |
| 194 | 194 | VIDEO_START( rockola ) |
| 195 | 195 | { |
| 196 | mc6845 = mc6845 | |
| 196 | mc6845 = devtag_get_token(machine, MC6845, "crtc" | |
| 197 | 197 | |
| 198 | 198 | bg_tilemap = tilemap_create(get_bg_tile_info, tilemap_scan_rows, 8, 8, 32, 32); |
| 199 | 199 | fg_tilemap = tilemap_create(get_fg_tile_info, tilemap_scan_rows, 8, 8, 32, 32); |
| r1711 | r1712 | |
| 214 | 214 | { |
| 215 | 215 | int i; |
| 216 | 216 | |
| 217 | for (i = 0; i < machine-> | |
| 217 | for (i = 0; i < machine->config->total_colors; i++) | |
| 218 | 218 | { |
| 219 | 219 | int bit0, bit1, bit2, r, g, b; |
| 220 | 220 | |
| r1711 | r1712 | |
| 315 | 315 | |
| 316 | 316 | VIDEO_START( satansat ) |
| 317 | 317 | { |
| 318 | mc6845 = mc6845 | |
| 318 | mc6845 = devtag_get_token(machine, MC6845, "crtc" | |
| 319 | 319 | |
| 320 | 320 | bg_tilemap = tilemap_create(satansat_get_bg_tile_info, tilemap_scan_rows, 8, 8, 32, 32); |
| 321 | 321 | fg_tilemap = tilemap_create(satansat_get_fg_tile_info, tilemap_scan_rows, 8, 8, 32, 32); |
| r1711 | r1712 | |
|---|---|---|
| 277 | 277 | { |
| 278 | 278 | int i; |
| 279 | 279 | |
| 280 | for (i = 0; i < machine-> | |
| 280 | for (i = 0; i < machine->config->total_colors; i++) | |
| 281 | 281 | { |
| 282 | 282 | UINT8 pen; |
| 283 | 283 | int r, g, b; |
| r1711 | r1712 | |
|---|---|---|
| 11 | 11 | UINT8* sprint8_pos_h_ram; |
| 12 | 12 | UINT8* sprint8_pos_v_ram; |
| 13 | 13 | UINT8* sprint8_pos_d_ram; |
| 14 | UINT8* sprint8_team; | |
| 14 | 15 | |
| 15 | 16 | static tilemap* tilemap1; |
| 16 | 17 | static tilemap* tilemap2; |
| r1711 | r1712 | |
| 19 | 20 | static mame_bitmap* helper2; |
| 20 | 21 | |
| 21 | 22 | |
| 23 | PALETTE_INIT( sprint8 ) | |
| 24 | { | |
| 25 | int i; | |
| 26 | ||
| 27 | /* allocate the colortable */ | |
| 28 | machine->colortable = colortable_alloc(machine, 0x12); | |
| 29 | ||
| 30 | for (i = 0; i < 0x10; i++) | |
| 31 | { | |
| 32 | colortable_entry_set_value(machine->colortable, 2 * i + 0, 0x10); | |
| 33 | colortable_entry_set_value(machine->colortable, 2 * i + 1, i); | |
| 34 | } | |
| 35 | ||
| 36 | colortable_entry_set_value(machine->colortable, 0x20, 0x10); | |
| 37 | colortable_entry_set_value(machine->colortable, 0x21, 0x10); | |
| 38 | colortable_entry_set_value(machine->colortable, 0x22, 0x10); | |
| 39 | colortable_entry_set_value(machine->colortable, 0x23, 0x11); | |
| 40 | } | |
| 41 | ||
| 42 | ||
| 43 | static void set_pens(colortable_t *colortable) | |
| 44 | { | |
| 45 | int i; | |
| 46 | ||
| 47 | for (i = 0; i < 0x10; i += 8) | |
| 48 | { | |
| 49 | if (*sprint8_team & 1) | |
| 50 | { | |
| 51 | colortable_palette_set_color(colortable, i + 0, MAKE_RGB(0xff, 0x00, 0x00)); /* red */ | |
| 52 | colortable_palette_set_color(colortable, i + 1, MAKE_RGB(0x00, 0x00, 0xff)); /* blue */ | |
| 53 | colortable_palette_set_color(colortable, i + 2, MAKE_RGB(0xff, 0xff, 0x00)); /* yellow */ | |
| 54 | colortable_palette_set_color(colortable, i + 3, MAKE_RGB(0x00, 0xff, 0x00)); /* green */ | |
| 55 | colortable_palette_set_color(colortable, i + 4, MAKE_RGB(0xff, 0x00, 0xff)); /* magenta */ | |
| 56 | colortable_palette_set_color(colortable, i + 5, MAKE_RGB(0xe0, 0xc0, 0x70)); /* puce */ | |
| 57 | colortable_palette_set_color(colortable, i + 6, MAKE_RGB(0x00, 0xff, 0xff)); /* cyan */ | |
| 58 | colortable_palette_set_color(colortable, i + 7, MAKE_RGB(0xff, 0xaa, 0xaa)); /* pink */ | |
| 59 | } | |
| 60 | else | |
| 61 | { | |
| 62 | colortable_palette_set_color(colortable, i + 0, MAKE_RGB(0xff, 0x00, 0x00)); /* red */ | |
| 63 | colortable_palette_set_color(colortable, i + 1, MAKE_RGB(0x00, 0x00, 0xff)); /* blue */ | |
| 64 | colortable_palette_set_color(colortable, i + 2, MAKE_RGB(0xff, 0x00, 0x00)); /* red */ | |
| 65 | colortable_palette_set_color(colortable, i + 3, MAKE_RGB(0x00, 0x00, 0xff)); /* blue */ | |
| 66 | colortable_palette_set_color(colortable, i + 4, MAKE_RGB(0xff, 0x00, 0x00)); /* red */ | |
| 67 | colortable_palette_set_color(colortable, i + 5, MAKE_RGB(0x00, 0x00, 0xff)); /* blue */ | |
| 68 | colortable_palette_set_color(colortable, i + 6, MAKE_RGB(0xff, 0x00, 0x00)); /* red */ | |
| 69 | colortable_palette_set_color(colortable, i + 7, MAKE_RGB(0x00, 0x00, 0xff)); /* blue */ | |
| 70 | } | |
| 71 | } | |
| 72 | ||
| 73 | colortable_palette_set_color(colortable, 0x10, MAKE_RGB(0x00, 0x00, 0x00)); | |
| 74 | colortable_palette_set_color(colortable, 0x11, MAKE_RGB(0xff, 0xff, 0xff)); | |
| 75 | } | |
| 76 | ||
| 77 | ||
| 22 | 78 | static TILE_GET_INFO( get_tile_info1 ) |
| 23 | 79 | { |
| 24 | 80 | UINT8 code = sprint8_video_ram[tile_index]; |
| r1711 | r1712 | |
| 26 | 82 | int color = 0; |
| 27 | 83 | |
| 28 | 84 | if ((code & 0x30) != 0x30) /* ? */ |
| 29 | { | |
| 30 | 85 | color = 17; |
| 31 | } | |
| 32 | 86 | else |
| 33 | 87 | { |
| 34 | 88 | if ((tile_index + 1) & 0x010) |
| 35 | { | |
| 36 | 89 | color |= 1; |
| 37 | ||
| 90 | ||
| 38 | 91 | if (code & 0x80) |
| 39 | { | |
| 40 | 92 | color |= 2; |
| 41 | ||
| 93 | ||
| 42 | 94 | if (tile_index & 0x200) |
| 43 | { | |
| 44 | 95 | color |= 4; |
| 45 | ||
| 96 | ||
| 46 | 97 | } |
| 47 | 98 | |
| 48 | 99 | SET_TILE_INFO(code >> 7, code, color, (code & 0x40) ? (TILE_FLIPX | TILE_FLIPY) : 0); |
| r1711 | r1712 | |
| 56 | 107 | int color = 0; |
| 57 | 108 | |
| 58 | 109 | if ((code & 0x38) != 0x28) |
| 59 | { | |
| 60 | 110 | color = 16; |
| 61 | } | |
| 62 | 111 | else |
| 63 | { | |
| 64 | 112 | color = 17; |
| 65 | } | |
| 66 | 113 | |
| 67 | 114 | SET_TILE_INFO(code >> 7, code, color, (code & 0x40) ? (TILE_FLIPX | TILE_FLIPY) : 0); |
| 68 | 115 | } |
| r1711 | r1712 | |
| 101 | 148 | int y = sprint8_pos_v_ram[i]; |
| 102 | 149 | |
| 103 | 150 | if (code & 0x80) |
| 104 | { | |
| 105 | 151 | x |= 0x100; |
| 106 | } | |
| 107 | 152 | |
| 108 | 153 | drawgfx(bitmap, machine->gfx[2], |
| 109 | 154 | code ^ 7, |
| r1711 | r1712 | |
| 123 | 168 | |
| 124 | 169 | VIDEO_UPDATE( sprint8 ) |
| 125 | 170 | { |
| 171 | set_pens(machine->colortable); | |
| 126 | 172 | tilemap_draw(bitmap, cliprect, tilemap1, 0, 0); |
| 127 | ||
| 128 | 173 | draw_sprites(machine, bitmap, cliprect); |
| 129 | 174 | return 0; |
| 130 | 175 | } |
| r1711 | r1712 | |
| 137 | 182 | |
| 138 | 183 | tilemap_draw(helper2, &machine->screen[0].visarea, tilemap2, 0, 0); |
| 139 | 184 | |
| 140 | fillbitmap(helper1, | |
| 185 | fillbitmap(helper1, machine->pens[0x20], &machine->screen[0].visarea); | |
| 141 | 186 | |
| 142 | 187 | draw_sprites(machine, helper1, &machine->screen[0].visarea); |
| 143 | 188 | |
| r1711 | r1712 | |
| 147 | 192 | const UINT16* p2 = BITMAP_ADDR16(helper2, y, 0); |
| 148 | 193 | |
| 149 | 194 | for (x = machine->screen[0].visarea.min_x; x <= machine->screen[0].visarea.max_x; x++) |
| 150 | { | |
| 151 | if (p1[x] != 16 && p2[x] != 16) | |
| 152 | { | |
| 153 | timer_set(video_screen_get_time_until_pos(0, y + 24, x), NULL, p1[x], sprint8_collision_callback); | |
| 154 | } | |
| 155 | } | |
| 195 | if (p1[x] != 0x20 && p2[x] == 0x23) | |
| 196 | timer_set(video_screen_get_time_until_pos(0, y + 24, x), NULL, | |
| 197 | colortable_entry_get_value(machine->colortable, p1[x]), | |
| 198 | sprint8_collision_callback); | |
| 156 | 199 | } |
| 157 | 200 | } |
| r1711 | r1712 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "video/resnet.h" | |
| 10 | 11 | |
| 11 | 12 | static int palettebank; |
| 12 | 13 | |
| r1711 | r1712 | |
| 29 | 30 | ***************************************************************************/ |
| 30 | 31 | PALETTE_INIT( mikie ) |
| 31 | 32 | { |
| 33 | static const int resistances[4] = { 2200, 1000, 470, 220 }; | |
| 34 | double rweights[4], gweights[4], bweights[4]; | |
| 32 | 35 | int i; |
| 33 | #define TOTAL_COLORS(gfxn) (machine->gfx[gfxn]->total_colors * machine->gfx[gfxn]->color_granularity) | |
| 34 | #define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + offs]) | |
| 35 | 36 | |
| 37 | /* compute the color output resistor weights */ | |
| 38 | compute_resistor_weights(0, 255, -1.0, | |
| 39 | 4, resistances, rweights, 470, 0, | |
| 40 | 4, resistances, gweights, 470, 0, | |
| 41 | 4, resistances, bweights, 470, 0); | |
| 36 | 42 | |
| 37 | for (i = 0;i < machine->drv->total_colors;i++) | |
| 43 | /* allocate the colortable */ | |
| 44 | machine->colortable = colortable_alloc(machine, 0x100); | |
| 45 | ||
| 46 | /* create a lookup table for the palette */ | |
| 47 | for (i = 0; i < 0x100; i++) | |
| 38 | 48 | { |
| 39 | int bit0,bit1,bit2,bit3,r,g,b; | |
| 49 | int bit0, bit1, bit2, bit3; | |
| 50 | int r, g, b; | |
| 40 | 51 | |
| 52 | /* red component */ | |
| 53 | bit0 = (color_prom[i + 0x000] >> 0) & 0x01; | |
| 54 | bit1 = (color_prom[i + 0x000] >> 1) & 0x01; | |
| 55 | bit2 = (color_prom[i + 0x000] >> 2) & 0x01; | |
| 56 | bit3 = (color_prom[i + 0x000] >> 3) & 0x01; | |
| 57 | r = combine_4_weights(rweights, bit0, bit1, bit2, bit3); | |
| 41 | 58 | |
| 42 | bit0 = (color_prom[0] >> 0) & 0x01; | |
| 43 | bit1 = (color_prom[0] >> 1) & 0x01; | |
| 44 | bit2 = (color_prom[0] >> 2) & 0x01; | |
| 45 | bit3 = (color_prom[0] >> 3) & 0x01; | |
| 46 | r = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; | |
| 47 | bit0 = (color_prom[machine->drv->total_colors] >> 0) & 0x01; | |
| 48 | bit1 = (color_prom[machine->drv->total_colors] >> 1) & 0x01; | |
| 49 | bit2 = (color_prom[machine->drv->total_colors] >> 2) & 0x01; | |
| 50 | bit3 = (color_prom[machine->drv->total_colors] >> 3) & 0x01; | |
| 51 | g = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; | |
| 52 | bit0 = (color_prom[2*machine->drv->total_colors] >> 0) & 0x01; | |
| 53 | bit1 = (color_prom[2*machine->drv->total_colors] >> 1) & 0x01; | |
| 54 | bit2 = (color_prom[2*machine->drv->total_colors] >> 2) & 0x01; | |
| 55 | bit3 = (color_prom[2*machine->drv->total_colors] >> 3) & 0x01; | |
| 56 | b = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; | |
| 59 | /* green component */ | |
| 60 | bit0 = (color_prom[i + 0x100] >> 0) & 0x01; | |
| 61 | bit1 = (color_prom[i + 0x100] >> 1) & 0x01; | |
| 62 | bit2 = (color_prom[i + 0x100] >> 2) & 0x01; | |
| 63 | bit3 = (color_prom[i + 0x100] >> 3) & 0x01; | |
| 64 | g = combine_4_weights(gweights, bit0, bit1, bit2, bit3); | |
| 57 | 65 | |
| 58 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); | |
| 66 | /* blue component */ | |
| 67 | bit0 = (color_prom[i + 0x200] >> 0) & 0x01; | |
| 68 | bit1 = (color_prom[i + 0x200] >> 1) & 0x01; | |
| 69 | bit2 = (color_prom[i + 0x200] >> 2) & 0x01; | |
| 70 | bit3 = (color_prom[i + 0x200] >> 3) & 0x01; | |
| 71 | b = combine_4_weights(bweights, bit0, bit1, bit2, bit3); | |
| 59 | 72 | |
| 60 | color_p | |
| 73 | colortable_palette_set_color(machine->colortable, i, MAKE_RGB(r, g, b)); | |
| 61 | 74 | } |
| 62 | 75 | |
| 63 | color_prom += 2*machine->drv->total_colors; | |
| 64 | /* color_prom now points to the beginning of the character lookup table */ | |
| 76 | /* color_prom now points to the beginning of the lookup table,*/ | |
| 77 | color_prom += 0x300; | |
| 65 | 78 | |
| 66 | ||
| 67 | /* there are eight 32 colors palette banks; sprites use colors 0-15 and */ | |
| 68 | /* characters 16-31 of each bank. */ | |
| 69 | for (i = 0;i < TOTAL_COLORS(0)/8;i++) | |
| 79 | /* characters use colors 0x10-0x1f of each 0x20 color bank, | |
| 80 | while sprites use colors 0-0x0f */ | |
| 81 | for (i = 0; i < 0x200; i++) | |
| 70 | 82 | { |
| 71 | 83 | int j; |
| 72 | 84 | |
| 73 | ||
| 74 | for (j = 0;j < 8;j++) | |
| 75 | COLOR(0,i + j * TOTAL_COLORS(0)/8) = (*color_prom & 0x0f) + 32 * j + 16; | |
| 76 | ||
| 77 | color_prom++; | |
| 85 | for (j = 0; j < 8; j++) | |
| 86 | { | |
| 87 | UINT8 ctabentry = (j << 5) | ((~i & 0x100) >> 4) | (color_prom[i] & 0x0f); | |
| 88 | colortable_entry_set_value(machine->colortable, ((i & 0x100) << 3) | (j << 8) | (i & 0xff), ctabentry); | |
| 89 | } | |
| 78 | 90 | } |
| 79 | ||
| 80 | for (i = 0;i < TOTAL_COLORS(1)/8;i++) | |
| 81 | { | |
| 82 | int j; | |
| 83 | ||
| 84 | ||
| 85 | for (j = 0;j < 8;j++) | |
| 86 | COLOR(1,i + j * TOTAL_COLORS(1)/8) = (*color_prom & 0x0f) + 32 * j; | |
| 87 | ||
| 88 | color_prom++; | |
| 89 | } | |
| 90 | 91 | } |
| 91 | 92 | |
| 92 | 93 | WRITE8_HANDLER( mikie_videoram_w ) |
| r1711 | r1712 | |
|---|---|---|
| 14 | 14 | { |
| 15 | 15 | int j; |
| 16 | 16 | |
| 17 | for (j = 0;j < | |
| 17 | for (j = 0; j < 0x200; j++) | |
| 18 | 18 | { |
| 19 | int r = (j & 1) >> 0; | |
| 20 | int g = (j & 2) >> 1; | |
| 21 | int b = (j & 4) >> 2; | |
| 22 | int i = (j & 8) >> 3; | |
| 19 | int data; | |
| 20 | int r, g, b, i; | |
| 23 | 21 | |
| 22 | if (j & 0x01) | |
| 23 | data = (j >> 5) & 0x0f; | |
| 24 | else | |
| 25 | data = (j >> 1) & 0x0f; | |
| 26 | ||
| 27 | r = (data & 1) >> 0; | |
| 28 | g = (data & 2) >> 1; | |
| 29 | b = (data & 4) >> 2; | |
| 30 | i = (data & 8) >> 3; | |
| 31 | ||
| 24 | 32 | r = 0xff * r; |
| 25 | 33 | g = 0x7f * g * (i + 1); |
| 26 | 34 | b = 0x7f * b * (i + 1); |
| 27 | 35 | |
| 28 | palette_set_color(machine,j,MAKE_RGB(r,g,b)); | |
| 36 | palette_set_color(machine,j,MAKE_RGB(r, g, b)); | |
| 29 | 37 | } |
| 30 | ||
| 31 | for (j = 0;j < 256;j++) | |
| 32 | { | |
| 33 | colortable[2*j] = j & 0x0f; | |
| 34 | colortable[2*j+1] = j >> 4; | |
| 35 | } | |
| 36 | 38 | } |
| 37 | 39 | |
| 38 | 40 | |
| r1711 | r1712 | |
| 49 | 51 | |
| 50 | 52 | VIDEO_START(usgames) |
| 51 | 53 | { |
| 52 | mc6845 = mc6845 | |
| 54 | mc6845 = devtag_get_token(machine, MC6845, "crtc" | |
| 53 | 55 | usgames_tilemap = tilemap_create(get_usgames_tile_info,tilemap_scan_rows, 8, 8,64,32); |
| 54 | 56 | } |
| 55 | 57 |
| r1711 | r1712 | |
|---|---|---|
| 93 | 93 | |
| 94 | 94 | VIDEO_START( suna16 ) |
| 95 | 95 | { |
| 96 | paletteram16 = auto_malloc( machine-> | |
| 96 | paletteram16 = auto_malloc( machine->config->total_colors * sizeof(UINT16) ); | |
| 97 | 97 | } |
| 98 | 98 | |
| 99 | 99 | READ16_HANDLER( suna16_paletteram16_r ) |
| r1711 | r1712 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "video/resnet.h" | |
| 10 | 11 | |
| 11 | 12 | |
| 12 | 13 | |
| r1711 | r1712 | |
| 51 | 52 | ***************************************************************************/ |
| 52 | 53 | PALETTE_INIT( zaccaria ) |
| 53 | 54 | { |
| 54 | int i,j,k; | |
| 55 | #define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + offs]) | |
| 55 | int i, j, k; | |
| 56 | static const int resistances_rg[] = { 1200, 1000, 820 }; | |
| 57 | static const int resistances_b[] = { 1000, 820 }; | |
| 56 | 58 | |
| 57 | for (i = 0;i < machine->drv->total_colors;i++) | |
| 58 | { | |
| 59 | int bit0,bit1,bit2,r,g,b; | |
| 59 | double weights_rg[3], weights_b[2]; | |
| 60 | 60 | |
| 61 | compute_resistor_weights(0, 0xff, -1.0, | |
| 62 | 3, resistances_rg, weights_rg, 390, 0, | |
| 63 | 2, resistances_b, weights_b, 470, 0, | |
| 64 | 0, 0, 0, 0, 0); | |
| 61 | 65 | |
| 66 | /* allocate the colortable */ | |
| 67 | machine->colortable = colortable_alloc(machine, 0x200); | |
| 68 | ||
| 69 | for (i = 0; i < 0x200; i++) | |
| 70 | { | |
| 62 | 71 | /* |
| 63 | 72 | TODO: I'm not sure, but I think that pen 0 must always be black, otherwise |
| 64 | 73 | there's some junk brown background in Jack Rabbit. |
| r1711 | r1712 | |
| 68 | 77 | black anyway. |
| 69 | 78 | */ |
| 70 | 79 | if (((i % 64) / 8) == 0) |
| 71 | { | |
| 72 | palette_set_color(machine,i,MAKE_RGB(0,0,0)); | |
| 73 | } | |
| 80 | colortable_palette_set_color(machine->colortable, i, RGB_BLACK); | |
| 74 | 81 | else |
| 75 | 82 | { |
| 83 | int bit0, bit1, bit2; | |
| 84 | int r, g, b; | |
| 85 | ||
| 76 | 86 | /* red component */ |
| 77 | bit0 = (color_prom[0] >> 3) & 0x01; | |
| 78 | bit1 = (color_prom[0] >> 2) & 0x01; | |
| 79 | bit2 = (color_prom[0] >> 1) & 0x01; | |
| 80 | r = 0x46 * bit0 + 0x53 * bit1 + 0x66 * bit2; | |
| 87 | bit0 = (color_prom[i + 0x000] >> 3) & 0x01; | |
| 88 | bit1 = (color_prom[i + 0x000] >> 2) & 0x01; | |
| 89 | bit2 = (color_prom[i + 0x000] >> 1) & 0x01; | |
| 90 | r = combine_3_weights(weights_rg, bit0, bit1, bit2); | |
| 91 | ||
| 81 | 92 | /* green component */ |
| 82 | bit0 = (color_prom[0] >> 0) & 0x01; | |
| 83 | bit1 = (color_prom[machine->drv->total_colors] >> 3) & 0x01; | |
| 84 | bit2 = (color_prom[machine->drv->total_colors] >> 2) & 0x01; | |
| 85 | g = 0x46 * bit0 + 0x53 * bit1 + 0x66 * bit2; | |
| 93 | bit0 = (color_prom[i + 0x000] >> 0) & 0x01; | |
| 94 | bit1 = (color_prom[i + 0x200] >> 3) & 0x01; | |
| 95 | bit2 = (color_prom[i + 0x200] >> 2) & 0x01; | |
| 96 | g = combine_3_weights(weights_rg, bit0, bit1, bit2); | |
| 97 | ||
| 86 | 98 | /* blue component */ |
| 87 | bit0 = (color_prom[machine->drv->total_colors] >> 1) & 0x01; | |
| 88 | bit1 = (color_prom[machine->drv->total_colors] >> 0) & 0x01; | |
| 89 | b = 0x66 * bit0 + 0x96 * bit1; | |
| 90 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); | |
| 99 | bit0 = (color_prom[i + 0x200] >> 1) & 0x01; | |
| 100 | bit1 = (color_prom[i + 0x200] >> 0) & 0x01; | |
| 101 | b = combine_2_weights(weights_b, bit0, bit1); | |
| 102 | ||
| 103 | colortable_palette_set_color(machine->colortable, i, MAKE_RGB(r, g, b)); | |
| 91 | 104 | } |
| 92 | ||
| 93 | color_prom++; | |
| 94 | 105 | } |
| 95 | 106 | |
| 96 | 107 | /* There are 512 unique colors, which seem to be organized in 8 blocks */ |
| r1711 | r1712 | |
| 98 | 109 | /* but in interleaved order, like Phoenix. Additionally, colors for */ |
| 99 | 110 | /* background and sprites are interleaved. */ |
| 100 | 111 | for (i = 0;i < 8;i++) |
| 101 | { | |
| 102 | 112 | for (j = 0;j < 4;j++) |
| 103 | { | |
| 104 | 113 | for (k = 0;k < 8;k++) |
| 105 | { | |
| 106 | 114 | /* swap j and k to make the colors sequential */ |
| 107 | COLOR(0,32 * i + 8 * j + k) = 64 * i + 8 * k + 2*j; | |
| 108 | } | |
| 109 | } | |
| 110 | } | |
| 115 | colortable_entry_set_value(machine->colortable, 0 + 32 * i + 8 * j + k, 64 * i + 8 * k + 2*j); | |
| 116 | ||
| 111 | 117 | for (i = 0;i < 8;i++) |
| 112 | { | |
| 113 | 118 | for (j = 0;j < 4;j++) |
| 114 | { | |
| 115 | 119 | for (k = 0;k < 8;k++) |
| 116 | { | |
| 117 | 120 | /* swap j and k to make the colors sequential */ |
| 118 | COLOR(1,32 * i + 8 * j + k) = 64 * i + 8 * k + 2*j+1; | |
| 119 | } | |
| 120 | } | |
| 121 | } | |
| 121 | colortable_entry_set_value(machine->colortable, 256 + 32 * i + 8 * j + k, 64 * i + 8 * k + 2*j+1); | |
| 122 | 122 | } |
| 123 | 123 | |
| 124 | 124 |
| r1711 | r1712 | |
|---|---|---|
| 16 | 16 | { |
| 17 | 17 | int i; |
| 18 | 18 | |
| 19 | for (i = 0;i < machine-> | |
| 19 | for (i = 0;i < machine->config->total_colors;i++) | |
| 20 | 20 | { |
| 21 | 21 | int bit0,bit1,bit2,r,g,b; |
| 22 | 22 |
| r1711 | r1712 | |
|---|---|---|
| 42 | 42 | * set both color clocks equal for one color |
| 43 | 43 | **********************************************/ |
| 44 | 44 | #define SETCOL_B(o,d) \ |
| 45 | antic.color_lookup[o] = ( | |
| 45 | antic.color_lookup[o] = (( | |
| 46 | 46 | |
| 47 | 47 | /********************************************** |
| 48 | 48 | * set left color clock for one color |
| 49 | 49 | **********************************************/ |
| 50 | 50 | #define SETCOL_L(o,d) \ |
| 51 | *((UINT8*)&antic.color_lookup[o] + 0) = | |
| 51 | *((UINT8*)&antic.color_lookup[o] + 0) = | |
| 52 | 52 | |
| 53 | 53 | /********************************************** |
| 54 | 54 | * set right color clock for one color |
| 55 | 55 | **********************************************/ |
| 56 | 56 | #define SETCOL_R(o,d) \ |
| 57 | *((UINT8*)&antic.color_lookup[o] + 1) = | |
| 57 | *((UINT8*)&antic.color_lookup[o] + 1) = | |
| 58 | 58 | |
| 59 | 59 | |
| 60 | 60 |
| r1711 | r1712 | |
|---|---|---|
| 60 | 60 | 2, resistances_b, weights_b, 470, 0); |
| 61 | 61 | |
| 62 | 62 | |
| 63 | for (i = 0; i < machine-> | |
| 63 | for (i = 0; i < machine->config->total_colors; i++) | |
| 64 | 64 | { |
| 65 | 65 | int bit0, bit1, bit2, r, g, b; |
| 66 | 66 |
| r1711 | r1712 | |
|---|---|---|
| 88 | 88 | return (col & 0x0f) | ((row & 0x1f) << 4) | ((col & 0x70) << 5); |
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 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) | |
| 91 | static 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) | |
| 92 | 92 | { |
| 93 | 93 | int const lo = videoram[(tile_index << 1)]; |
| 94 | 94 | int const hi = videoram[(tile_index << 1) | 1]; |
| r1711 | r1712 | |
| 282 | 282 | |
| 283 | 283 | |
| 284 | 284 | |
| 285 | void bg_ctrl(int offset, int data, tilemap* tilemap) | |
| 285 | static void bg_ctrl(int offset, int data, tilemap* tilemap) | |
| 286 | 286 | { |
| 287 | 287 | int scrollx = tilemap_get_scrollx(tilemap, 0); |
| 288 | 288 | int scrolly = tilemap_get_scrolly(tilemap, 0); |
| r1711 | r1712 | |
|---|---|---|
| 8 | 8 | *****************************************************************************/ |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 12 | 11 | |
| 13 | 12 | int mjsister_screen_redraw; |
| 14 | 13 | int mjsister_flip_screen; |
| r1711 | r1712 | |
| 40 | 39 | c1 = (data & 0x0f) + mjsister_colorbank * 0x20; |
| 41 | 40 | c2 = ((data & 0xf0) >> 4) + mjsister_colorbank * 0x20; |
| 42 | 41 | |
| 43 | *BITMAP_ADDR16(mjsister_tmpbitmap0, y, x*2+0) = Machine->pens[c1]; | |
| 44 | *BITMAP_ADDR16(mjsister_tmpbitmap0, y, x*2+1) = Machine->pens[c2]; | |
| 42 | *BITMAP_ADDR16(mjsister_tmpbitmap0, y, x*2+0) = c1; | |
| 43 | *BITMAP_ADDR16(mjsister_tmpbitmap0, y, x*2+1) = c2; | |
| 45 | 44 | } |
| 46 | 45 | |
| 47 | 46 | static void mjsister_plot1(int offset,UINT8 data) |
| r1711 | r1712 | |
| 59 | 58 | if (c2) |
| 60 | 59 | c2 += mjsister_colorbank * 0x20 + 0x10; |
| 61 | 60 | |
| 62 | *BITMAP_ADDR16(mjsister_tmpbitmap1, y, x*2+0) = Machine->pens[c1]; | |
| 63 | *BITMAP_ADDR16(mjsister_tmpbitmap1, y, x*2+1) = Machine->pens[c2]; | |
| 61 | *BITMAP_ADDR16(mjsister_tmpbitmap1, y, x*2+0) = c1; | |
| 62 | *BITMAP_ADDR16(mjsister_tmpbitmap1, y, x*2+1) = c2; | |
| 64 | 63 | } |
| 65 | 64 | |
| 66 | 65 | WRITE8_HANDLER( mjsister_videoram_w ) |
| r1711 | r1712 | |
|---|---|---|
| 270 | 270 | |
| 271 | 271 | |
| 272 | 272 | |
| 273 | /************************************* | |
| 274 | * | |
| 275 | * Outputs | |
| 276 | * | |
| 277 | *************************************/ | |
| 278 | ||
| 273 | 279 | WRITE8_HANDLER( m52_flipscreen_w ) |
| 274 | 280 | { |
| 281 | /* screen flip is handled both by software and hardware */ | |
| 282 | flip_screen_set((data & 0x01) ^ (~readinputportbytag("DSW2") & 0x01)); | |
| 283 | ||
| 275 | 284 | coin_counter_w(0, data & 0x02); |
| 276 | 285 | coin_counter_w(1, data & 0x20); |
| 286 | } | |
| 277 | 287 | |
| 278 | /* screen flip is handled both by software and hardware */ | |
| 279 | ||
| 280 | flip_screen_set((data ^ ~readinputport(4)) & 1); | |
| 288 | WRITE8_HANDLER( alpha1v_flipscreen_w ) | |
| 289 | { | |
| 290 | flip_screen_set(data & 0x01); | |
| 281 | 291 | } |
| 282 | 292 | |
| 283 | 293 | |
| r1711 | r1712 | |
| 300 | 310 | |
| 301 | 311 | xpos += 128; |
| 302 | 312 | |
| 313 | /* this may not be correct */ | |
| 314 | ypos = ypos + (22 - 8); | |
| 315 | ||
| 303 | 316 | drawgfx(bitmap, machine->gfx[image], |
| 304 | 317 | 0, 0, |
| 305 | 318 | flip_screen, |
| r1711 | r1712 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "includes/warpwarp.h" | |
| 10 | #include "video/resnet.h" | |
| 11 | #include "warpwarp.h" | |
| 11 | 12 | |
| 12 | 13 | |
| 13 | 14 | UINT8 *geebee_videoram,*warpwarp_videoram; |
| r1711 | r1712 | |
| 27 | 28 | MAKE_RGB(0x7f,0x7f,0x7f) /* grey */ |
| 28 | 29 | }; |
| 29 | 30 | |
| 30 | static const UINT16 geebee_colortable[] = | |
| 31 | { | |
| 32 | 0, 1, | |
| 33 | 1, 0, | |
| 34 | 0, 2, | |
| 35 | 2, 0 | |
| 36 | }; | |
| 37 | ||
| 38 | static const UINT16 navarone_colortable[] = | |
| 39 | { | |
| 40 | 0, 2, | |
| 41 | 2, 0, | |
| 42 | }; | |
| 43 | ||
| 44 | ||
| 45 | /* Initialise the palette */ | |
| 46 | 31 | PALETTE_INIT( geebee ) |
| 47 | 32 | { |
| 48 | int i; | |
| 49 | for (i = 0; i < sizeof(geebee_palette)/sizeof(geebee_palette[0]); i++) | |
| 50 | palette_set_color(machine,i,geebee_palette[i]); | |
| 51 | memcpy(colortable, geebee_colortable, sizeof (geebee_colortable)); | |
| 33 | palette_set_color(machine, 0, geebee_palette[0]); | |
| 34 | palette_set_color(machine, 1, geebee_palette[1]); | |
| 35 | palette_set_color(machine, 2, geebee_palette[1]); | |
| 36 | palette_set_color(machine, 3, geebee_palette[0]); | |
| 37 | palette_set_color(machine, 4, geebee_palette[0]); | |
| 38 | palette_set_color(machine, 5, geebee_palette[2]); | |
| 39 | palette_set_color(machine, 6, geebee_palette[2]); | |
| 40 | palette_set_color(machine, 7, geebee_palette[0]); | |
| 52 | 41 | } |
| 53 | 42 | |
| 54 | /* Initialise the palette */ | |
| 55 | 43 | PALETTE_INIT( navarone ) |
| 56 | 44 | { |
| 57 | int i; | |
| 58 | for (i = 0; i < sizeof(geebee_palette)/sizeof(geebee_palette[0]); i++) | |
| 59 | palette_set_color(machine,i,geebee_palette[i]); | |
| 60 | memcpy(colortable, navarone_colortable, sizeof (navarone_colortable)); | |
| 45 | palette_set_color(machine, 0, geebee_palette[0]); | |
| 46 | palette_set_color(machine, 1, geebee_palette[2]); | |
| 47 | palette_set_color(machine, 2, geebee_palette[2]); | |
| 48 | palette_set_color(machine, 3, geebee_palette[0]); | |
| 49 | palette_set_color(machine, 4, geebee_palette[1]); | |
| 61 | 50 | } |
| 62 | 51 | |
| 63 | 52 | |
| r1711 | r1712 | |
| 66 | 55 | Warp Warp doesn't use PROMs - the 8-bit code is directly converted into a |
| 67 | 56 | color. |
| 68 | 57 | |
| 69 | The color RAM is connected to the RGB output this way (I think - schematics | |
| 70 | are fuzzy): | |
| 58 | The color RAM is connected to the RGB output this way: | |
| 71 | 59 | |
| 72 | bit 7 -- 3 | |
| 60 | bit 7 -- 390 ohm resistor -- BLUE | |
| 73 | 61 | -- 820 ohm resistor -- BLUE |
| 74 | -- 3 | |
| 62 | -- 390 ohm resistor -- GREEN | |
| 75 | 63 | -- 820 ohm resistor -- GREEN |
| 76 | 64 | -- 1.6kohm resistor -- GREEN |
| 77 | -- 3 | |
| 65 | -- 390 ohm resistor -- RED | |
| 78 | 66 | -- 820 ohm resistor -- RED |
| 79 | 67 | bit 0 -- 1.6kohm resistor -- RED |
| 80 | 68 | |
| r1711 | r1712 | |
| 85 | 73 | PALETTE_INIT( warpwarp ) |
| 86 | 74 | { |
| 87 | 75 | int i; |
| 76 | static const int resistances_tiles_rg[] = { 1600, 820, 390 }; | |
| 77 | static const int resistances_tiles_b[] = { 820, 390 }; | |
| 78 | static const int resistance_ball[] = { 220 }; | |
| 88 | 79 | |
| 89 | for (i = 0;i < machine->drv->total_colors;i++) | |
| 80 | double weights_tiles_rg[3], weights_tiles_b[2], weight_ball[1]; | |
| 81 | ||
| 82 | compute_resistor_weights(0, 0xff, -1.0, | |
| 83 | 3, resistances_tiles_rg, weights_tiles_rg, 150, 0, | |
| 84 | 2, resistances_tiles_b, weights_tiles_b, 150, 0, | |
| 85 | 1, resistance_ball, weight_ball, 150, 0); | |
| 86 | ||
| 87 | for (i = 0; i < 0x100; i++) | |
| 90 | 88 | { |
| 91 | int bit0,bit1,bit2,r,g,b; | |
| 89 | int bit0, bit1, bit2; | |
| 90 | int r,g,b; | |
| 92 | 91 | |
| 93 | ||
| 94 | 92 | /* red component */ |
| 95 | 93 | bit0 = (i >> 0) & 0x01; |
| 96 | 94 | bit1 = (i >> 1) & 0x01; |
| 97 | 95 | bit2 = (i >> 2) & 0x01; |
| 98 | r = 0x1f * bit0 + 0x3c * bit1 + 0xa4 * bit2; | |
| 96 | r = combine_3_weights(weights_tiles_rg, bit0, bit1, bit2); | |
| 97 | ||
| 99 | 98 | /* green component */ |
| 100 | 99 | bit0 = (i >> 3) & 0x01; |
| 101 | 100 | bit1 = (i >> 4) & 0x01; |
| 102 | 101 | bit2 = (i >> 5) & 0x01; |
| 103 | g = 0x1f * bit0 + 0x3c * bit1 + 0xa4 * bit2; | |
| 102 | g = combine_3_weights(weights_tiles_rg, bit0, bit1, bit2); | |
| 103 | ||
| 104 | 104 | /* blue component */ |
| 105 | bit0 = 0; | |
| 106 | bit1 = (i >> 6) & 0x01; | |
| 107 | bit2 = (i >> 7) & 0x01; | |
| 108 | b = 0x1f * bit0 + 0x3c * bit1 + 0xa4 * bit2; | |
| 105 | bit0 = (i >> 6) & 0x01; | |
| 106 | bit1 = (i >> 7) & 0x01; | |
| 107 | b = combine_2_weights(weights_tiles_b, bit0, bit1); | |
| 109 | 108 | |
| 110 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); | |
| 109 | palette_set_color(machine, (i * 2) + 0, RGB_BLACK); | |
| 110 | palette_set_color(machine, (i * 2) + 1, MAKE_RGB(r, g, b)); | |
| 111 | 111 | } |
| 112 | 112 | |
| 113 | for (i = 0;i < machine->drv->color_table_len;i += 2) | |
| 114 | { | |
| 115 | colortable[i] = 0; /* black background */ | |
| 116 | colortable[i + 1] = i / 2; /* colored foreground */ | |
| 117 | } | |
| 113 | palette_set_color(machine, 0x200, MAKE_RGB(weight_ball[0], weight_ball[0], weight_ball[0])); | |
| 118 | 114 | } |
| 119 | 115 | |
| 120 | 116 | |
| r1711 | r1712 | |
| 222 | 218 | |
| 223 | 219 | ***************************************************************************/ |
| 224 | 220 | |
| 225 | INLINE void geebee_plot(mame_bitmap *bitmap, const rectangle *cliprect, int x, int y, | |
| 221 | INLINE void geebee_plot(mame_bitmap *bitmap, const rectangle *cliprect, int x, int y, pen_t pen) | |
| 226 | 222 | { |
| 227 | 223 | if (x >= cliprect->min_x && x <= cliprect->max_x && y >= cliprect->min_y && y <= cliprect->max_y) |
| 228 | 224 | *BITMAP_ADDR16(bitmap, y, x) = pen; |
| 229 | 225 | } |
| 230 | 226 | |
| 231 | static void draw_ball(mame_bitmap *bitmap, const rectangle *cliprect, | |
| 227 | static void draw_ball(mame_bitmap *bitmap, const rectangle *cliprect,pen_t pen | |
| 232 | 228 | { |
| 233 | 229 | if (warpwarp_ball_on) |
| 234 | 230 | { |
| r1711 | r1712 | |
| 237 | 233 | int i,j; |
| 238 | 234 | |
| 239 | 235 | for (i = warpwarp_ball_sizey;i > 0;i--) |
| 240 | { | |
| 241 | 236 | for (j = warpwarp_ball_sizex;j > 0;j--) |
| 242 | { | |
| 243 | geebee_plot(bitmap, cliprect, x-j, y-i, color); | |
| 244 | } | |
| 245 | } | |
| 237 | geebee_plot(bitmap, cliprect, x-j, y-i, pen); | |
| 246 | 238 | } |
| 247 | 239 | } |
| 248 | 240 | |
| r1711 | r1712 | |
| 259 | 251 | } |
| 260 | 252 | |
| 261 | 253 | |
| 254 | VIDEO_UPDATE( navarone ) | |
| 255 | { | |
| 256 | tilemap_draw(bitmap,cliprect,bg_tilemap,0,0); | |
| 262 | 257 | |
| 258 | draw_ball(bitmap,cliprect,4); | |
| 259 | return 0; | |
| 260 | } | |
| 261 | ||
| 262 | ||
| 263 | 263 | VIDEO_UPDATE( warpwarp ) |
| 264 | 264 | { |
| 265 | 265 | tilemap_draw(bitmap,cliprect,bg_tilemap,0,0); |
| 266 | 266 | |
| 267 | draw_ball(bitmap,cliprect,0x | |
| 267 | draw_ball(bitmap,cliprect,0x200); | |
| 268 | 268 | return 0; |
| 269 | 269 | } |
| r1711 | r1712 | |
|---|---|---|
| 36 | 36 | int i; |
| 37 | 37 | int bit0, bit1, bit2, bit3, bit4, r, g, b; |
| 38 | 38 | |
| 39 | for (i = 0; i < machine-> | |
| 39 | for (i = 0; i < machine->config->total_colors; i++) { | |
| 40 | 40 | bit0 = (color_prom[0] >> 2) & 0x01; |
| 41 | 41 | bit1 = (color_prom[0] >> 3) & 0x01; |
| 42 | 42 | bit2 = (color_prom[0] >> 4) & 0x01; |
| 43 | 43 | bit3 = (color_prom[0] >> 5) & 0x01; |
| 44 | 44 | bit4 = (color_prom[0] >> 6) & 0x01; |
| 45 | 45 | r = 0x08 * bit0 + 0x11 * bit1 + 0x21 * bit2 + 0x43 * bit3 + 0x82 * bit4; |
| 46 | bit0 = (color_prom[machine->drv->total_colors] >> 5) & 0x01; | |
| 47 | bit1 = (color_prom[machine->drv->total_colors] >> 6) & 0x01; | |
| 48 | bit2 = (color_prom[machine->drv->total_colors] >> 7) & 0x01; | |
| 46 | bit0 = (color_prom[machine->config->total_colors] >> 5) & 0x01; | |
| 47 | bit1 = (color_prom[machine->config->total_colors] >> 6) & 0x01; | |
| 48 | bit2 = (color_prom[machine->config->total_colors] >> 7) & 0x01; | |
| 49 | 49 | bit3 = (color_prom[0] >> 0) & 0x01; |
| 50 | 50 | bit4 = (color_prom[0] >> 1) & 0x01; |
| 51 | 51 | g = 0x08 * bit0 + 0x11 * bit1 + 0x21 * bit2 + 0x43 * bit3 + 0x82 * bit4; |
| 52 | bit0 = (color_prom[machine->drv->total_colors] >> 0) & 0x01; | |
| 53 | bit1 = (color_prom[machine->drv->total_colors] >> 1) & 0x01; | |
| 54 | bit2 = (color_prom[machine->drv->total_colors] >> 2) & 0x01; | |
| 55 | bit3 = (color_prom[machine->drv->total_colors] >> 3) & 0x01; | |
| 56 | bit4 = (color_prom[machine->drv->total_colors] >> 4) & 0x01; | |
| 52 | bit0 = (color_prom[machine->config->total_colors] >> 0) & 0x01; | |
| 53 | bit1 = (color_prom[machine->config->total_colors] >> 1) & 0x01; | |
| 54 | bit2 = (color_prom[machine->config->total_colors] >> 2) & 0x01; | |
| 55 | bit3 = (color_prom[machine->config->total_colors] >> 3) & 0x01; | |
| 56 | bit4 = (color_prom[machine->config->total_colors] >> 4) & 0x01; | |
| 57 | 57 | b = 0x08 * bit0 + 0x11 * bit1 + 0x21 * bit2 + 0x43 * bit3 + 0x82 * bit4; |
| 58 | 58 | |
| 59 | 59 | palette_set_color(machine, i, MAKE_RGB(r, g, b)); |
| r1711 | r1712 | |
| 263 | 263 | px = x + (i ^ xx); |
| 264 | 264 | py = y; |
| 265 | 265 | |
| 266 | *BITMAP_ADDR16(ojankoc_tmpbitmap, py, px) = | |
| 266 | *BITMAP_ADDR16(ojankoc_tmpbitmap, py, px) = | |
| 267 | 267 | |
| 268 | 268 | color1 >>= 1; |
| 269 | 269 | color2 >>= 1; |
| r1711 | r1712 | |
|---|---|---|
| 318 | 318 | static void update_pixel0(int x, int y) |
| 319 | 319 | { |
| 320 | 320 | UINT8 color = nbmj8891_videoram0[(y * Machine->screen[0].width) + x]; |
| 321 | *BITMAP_ADDR16(nbmj8891_tmpbitmap0, y, x) = | |
| 321 | *BITMAP_ADDR16(nbmj8891_tmpbitmap0, y, x) = | |
| 322 | 322 | } |
| 323 | 323 | |
| 324 | 324 | static void update_pixel1(int x, int y) |
| 325 | 325 | { |
| 326 | 326 | UINT8 color = nbmj8891_videoram1[(y * Machine->screen[0].width) + x]; |
| 327 | *BITMAP_ADDR16(nbmj8891_tmpbitmap1, y, x) = | |
| 327 | *BITMAP_ADDR16(nbmj8891_tmpbitmap1, y, x) = | |
| 328 | 328 | } |
| 329 | 329 | |
| 330 | 330 | static TIMER_CALLBACK( blitter_timer_callback ) |
| r1711 | r1712 | |
|---|---|---|
| 21 | 21 | PALETTE_INIT( kncljoe ) |
| 22 | 22 | { |
| 23 | 23 | int i; |
| 24 | #define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + offs]) | |
| 25 | 24 | |
| 26 | for (i = 0;i < 128;i++) | |
| 25 | /* allocate the colortable */ | |
| 26 | machine->colortable = colortable_alloc(machine, 0x90); | |
| 27 | ||
| 28 | /* create a lookup table for the palette */ | |
| 29 | for (i = 0; i < 0x80; i++) | |
| 27 | 30 | { |
| 28 | int bit0,bit1,bit2,bit3,r,g,b; | |
| 31 | int r = pal4bit(color_prom[i + 0x000]); | |
| 32 | int g = pal4bit(color_prom[i + 0x100]); | |
| 33 | int b = pal4bit(color_prom[i + 0x200]); | |
| 29 | 34 | |
| 30 | bit0 = (color_prom[0] >> 0) & 0x01; | |
| 31 | bit1 = (color_prom[0] >> 1) & 0x01; | |
| 32 | bit2 = (color_prom[0] >> 2) & 0x01; | |
| 33 | bit3 = (color_prom[0] >> 3) & 0x01; | |
| 34 | r = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; | |
| 35 | bit0 = (color_prom[0x100] >> 0) & 0x01; | |
| 36 | bit1 = (color_prom[0x100] >> 1) & 0x01; | |
| 37 | bit2 = (color_prom[0x100] >> 2) & 0x01; | |
| 38 | bit3 = (color_prom[0x100] >> 3) & 0x01; | |
| 39 | g = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; | |
| 40 | bit0 = (color_prom[0x200] >> 0) & 0x01; | |
| 41 | bit1 = (color_prom[0x200] >> 1) & 0x01; | |
| 42 | bit2 = (color_prom[0x200] >> 2) & 0x01; | |
| 43 | bit3 = (color_prom[0x200] >> 3) & 0x01; | |
| 44 | b = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; | |
| 45 | ||
| 46 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); | |
| 47 | color_prom++; | |
| 35 | colortable_palette_set_color(machine->colortable, i, MAKE_RGB(r, g, b)); | |
| 48 | 36 | } |
| 49 | 37 | |
| 50 | color_prom += 2*256 + 128; /* bottom half is not used */ | |
| 51 | ||
| 52 | for (i = 0;i < 16;i++) | |
| 38 | for (i = 0x80; i < 0x90; i++) | |
| 53 | 39 | { |
| 54 | int bit0,bit1,bit2,r,g,b; | |
| 40 | int bit0, bit1, bit2; | |
| 41 | int r, g, b; | |
| 55 | 42 | |
| 56 | 43 | /* red component */ |
| 57 | 44 | bit0 = 0; |
| 58 | bit1 = (*color_prom >> 6) & 0x01; | |
| 59 | bit2 = (*color_prom >> 7) & 0x01; | |
| 45 | bit1 = (color_prom[(i - 0x80) + 0x300] >> 6) & 0x01; | |
| 46 | bit2 = (color_prom[(i - 0x80) + 0x300] >> 7) & 0x01; | |
| 60 | 47 | r = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 48 | ||
| 61 | 49 | /* green component */ |
| 62 | bit0 = (*color_prom >> 3) & 0x01; | |
| 63 | bit1 = (*color_prom >> 4) & 0x01; | |
| 64 | bit2 = (*color_prom >> 5) & 0x01; | |
| 50 | bit0 = (color_prom[(i - 0x80) + 0x300] >> 3) & 0x01; | |
| 51 | bit1 = (color_prom[(i - 0x80) + 0x300] >> 4) & 0x01; | |
| 52 | bit2 = (color_prom[(i - 0x80) + 0x300] >> 5) & 0x01; | |
| 65 | 53 | g = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 54 | ||
| 66 | 55 | /* blue component */ |
| 67 | bit0 = (*color_prom >> 0) & 0x01; | |
| 68 | bit1 = (*color_prom >> 1) & 0x01; | |
| 69 | bit2 = (*color_prom >> 2) & 0x01; | |
| 56 | bit0 = (color_prom[(i - 0x80) + 0x300] >> 0) & 0x01; | |
| 57 | bit1 = (color_prom[(i - 0x80) + 0x300] >> 1) & 0x01; | |
| 58 | bit2 = (color_prom[(i - 0x80) + 0x300] >> 2) & 0x01; | |
| 70 | 59 | b = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 71 | 60 | |
| 72 | palette_set_color(machine,i+128,MAKE_RGB(r,g,b)); | |
| 73 | color_prom ++; | |
| 61 | colortable_palette_set_color(machine->colortable, i, MAKE_RGB(r, g, b)); | |
| 74 | 62 | } |
| 75 | 63 | |
| 76 | color_prom += 16; /* bottom half is not used */ | |
| 64 | /* color_prom now points to the beginning of the lookup table */ | |
| 65 | color_prom += 0x320; | |
| 77 | 66 | |
| 67 | /* chars */ | |
| 68 | for (i = 0; i < 0x80; i++) | |
| 69 | colortable_entry_set_value(machine->colortable, i, i); | |
| 70 | ||
| 78 | 71 | /* sprite lookup table */ |
| 79 | for (i = 0;i < 1 | |
| 72 | for (i = 0x80; i < 0x100; i++) | |
| 80 | 73 | { |
| 81 | COLOR(1,i) = 128 + (*(color_prom++) & 0x0f); | |
| 74 | UINT8 ctabentry = (color_prom[i - 0x80] & 0x0f) | 0x80; | |
| 75 | colortable_entry_set_value(machine->colortable, i, ctabentry); | |
| 82 | 76 | } |
| 83 | 77 | } |
| 84 | 78 |
| r1711 | r1712 | |
|---|---|---|
| 17 | 17 | int i; |
| 18 | 18 | |
| 19 | 19 | |
| 20 | for (i = 0;i < machine-> | |
| 20 | for (i = 0;i < machine->config->total_colors;i++) | |
| 21 | 21 | { |
| 22 | 22 | int bit0,bit1,bit2,bit3,r,g,b; |
| 23 | 23 | |
| r1711 | r1712 | |
| 35 | 35 | bit3 = (color_prom[0] >> 7) & 0x01; |
| 36 | 36 | g = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; |
| 37 | 37 | /* blue component */ |
| 38 | bit0 = (color_prom[machine->drv->total_colors] >> 0) & 0x01; | |
| 39 | bit1 = (color_prom[machine->drv->total_colors] >> 1) & 0x01; | |
| 40 | bit2 = (color_prom[machine->drv->total_colors] >> 2) & 0x01; | |
| 41 | bit3 = (color_prom[machine->drv->total_colors] >> 3) & 0x01; | |
| 38 | bit0 = (color_prom[machine->config->total_colors] >> 0) & 0x01; | |
| 39 | bit1 = (color_prom[machine->config->total_colors] >> 1) & 0x01; | |
| 40 | bit2 = (color_prom[machine->config->total_colors] >> 2) & 0x01; | |
| 41 | bit3 = (color_prom[machine->config->total_colors] >> 3) & 0x01; | |
| 42 | 42 | b = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; |
| 43 | 43 | |
| 44 | 44 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); |
| r1711 | r1712 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | 2 | |
| 3 | #define TOTAL_COLORS(gfxn) (machine->gfx[gfxn]->total_colors * machine->gfx[gfxn]->color_granularity) | |
| 4 | #define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + offs]) | |
| 5 | ||
| 6 | 3 | UINT8 *gunsmoke_scrollx; |
| 7 | 4 | UINT8 *gunsmoke_scrolly; |
| 8 | 5 |
| r1711 | r1712 | |
|---|---|---|
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | |
| 90 | static void set_pens(r | |
| 90 | static void set_pens(colort | |
| 91 | 91 | { |
| 92 | 92 | int i; |
| 93 | 93 | |
| r1711 | r1712 | |
| 97 | 97 | int g = pal3bit(~cvs_palette_ram[i] >> 2); |
| 98 | 98 | int b = pal3bit(~cvs_palette_ram[i] >> 5); |
| 99 | 99 | |
| 100 | colortable_palette_set_color( | |
| 100 | colortable_palette_set_color( | |
| 101 | 101 | } |
| 102 | 102 | } |
| 103 | 103 | |
| r1711 | r1712 | |
| 214 | 214 | mame_bitmap *s2636_1_bitmap; |
| 215 | 215 | mame_bitmap *s2636_2_bitmap; |
| 216 | 216 | |
| 217 | set_pens(machine); | |
| 217 | set_pens(machine->colortable); | |
| 218 | 218 | |
| 219 | 219 | /* create our background character set, which is a software |
| 220 | 220 | selectable mixture of RAM and ROM based tiles */ |
| r1711 | r1712 | |
|---|---|---|
| 153 | 153 | UINT16 *seta_vram_0, *seta_vctrl_0; |
| 154 | 154 | UINT16 *seta_vram_2, *seta_vctrl_2; |
| 155 | 155 | UINT16 *seta_vregs; |
| 156 | size_t seta_paletteram_size; | |
| 156 | 157 | |
| 157 | 158 | UINT16 *seta_workram; // Used for zombraid crosshair hack |
| 158 | 159 | |
| r1711 | r1712 | |
| 562 | 563 | PALETTE_INIT( blandia ) |
| 563 | 564 | { |
| 564 | 565 | int color, pen; |
| 565 | for( color = 0; color < 32; color++ ) | |
| 566 | for( pen = 0; pen < 64; pen++ ) | |
| 566 | ||
| 567 | /* allocate the colortable */ | |
| 568 | machine->colortable = colortable_alloc(machine, 0x600); | |
| 569 | ||
| 570 | for (color = 0; color < 0x20; color++) | |
| 571 | for (pen = 0; pen < 0x40; pen++) | |
| 567 | 572 | { |
| 568 | colortable[color * 64 + pen + 16*32] = (pen % 16) + color * 0x10 + 16*32*1; | |
| 569 | colortable[color * 64 + pen + 16*32+64*32] = pen + 16*32*2; | |
| 573 | colortable_entry_set_value(machine->colortable, 0x200 + ((color << 6) | pen), 0x200 + ((color << 4) | (pen & 0x0f))); | |
| 574 | colortable_entry_set_value(machine->colortable, 0xa00 + ((color << 6) | pen), 0x400 + pen); | |
| 570 | 575 | } |
| 571 | 576 | } |
| 572 | 577 | |
| r1711 | r1712 | |
| 577 | 582 | PALETTE_INIT( gundhara ) |
| 578 | 583 | { |
| 579 | 584 | int color, pen; |
| 580 | for( color = 0; color < 32; color++ ) | |
| 581 | for( pen = 0; pen < 64; pen++ ) | |
| 585 | ||
| 586 | /* allocate the colortable */ | |
| 587 | machine->colortable = colortable_alloc(machine, 0x600); | |
| 588 | ||
| 589 | for (color = 0; color < 0x20; color++) | |
| 590 | for (pen = 0; pen < 0x40; pen++) | |
| 582 | 591 | { |
| 583 | colortable[color * 64 + pen + 32*16 + 32*64*0] = (((color&~3) * 16 + pen)%(32*16)) + 32*16*2; | |
| 584 | colortable[color * 64 + pen + 32*16 + 32*64*1] = (((color&~3) * 16 + pen)%(32*16)) + 32*16*1; | |
| 592 | colortable_entry_set_value(machine->colortable, 0x200 + ((color << 6) | pen), 0x400 + ((((color & ~3) << 4) + pen) & 0x1ff)); | |
| 593 | colortable_entry_set_value(machine->colortable, 0xa00 + ((color << 6) | pen), 0x200 + ((((color & ~3) << 4) + pen) & 0x1ff)); | |
| 585 | 594 | } |
| 586 | 595 | } |
| 587 | 596 | |
| r1711 | r1712 | |
| 591 | 600 | PALETTE_INIT( jjsquawk ) |
| 592 | 601 | { |
| 593 | 602 | int color, pen; |
| 594 | for( color = 0; color < 32; color++ ) | |
| 595 | for( pen = 0; pen < 64; pen++ ) | |
| 603 | ||
| 604 | /* allocate the colortable */ | |
| 605 | machine->colortable = colortable_alloc(machine, 0x600); | |
| 606 | ||
| 607 | for (color = 0; color < 0x20; color++) | |
| 608 | for (pen = 0; pen < 0x40; pen++) | |
| 596 | 609 | { |
| 597 | colortable[color * 64 + pen + 32*16 + 32*64*0] = ((color * 16 + pen)%(32*16)) + 32*16*2; | |
| 598 | colortable[color * 64 + pen + 32*16 + 32*64*1] = ((color * 16 + pen)%(32*16)) + 32*16*1; | |
| 610 | colortable_entry_set_value(machine->colortable, 0x200 + ((color << 6) | pen), 0x400 + (((color << 4) + pen) & 0x1ff)); | |
| 611 | colortable_entry_set_value(machine->colortable, 0xa00 + ((color << 6) | pen), 0x200 + (((color << 4) + pen) & 0x1ff)); | |
| 599 | 612 | } |
| 600 | 613 | } |
| 601 | 614 | |
| r1711 | r1712 | |
| 604 | 617 | PALETTE_INIT( zingzip ) |
| 605 | 618 | { |
| 606 | 619 | int color, pen; |
| 607 | for( color = 0; color < 32; color++ ) | |
| 608 | for( pen = 0; pen < 64; pen++ ) | |
| 609 | colortable[color * 64 + pen + 32*16*2] = ((color * 16 + pen)%(32*16)) + 32*16*2; | |
| 620 | ||
| 621 | /* allocate the colortable */ | |
| 622 | machine->colortable = colortable_alloc(machine, 0x600); | |
| 623 | ||
| 624 | for (color = 0; color < 0x20; color++) | |
| 625 | for (pen = 0; pen < 0x40; pen++) | |
| 626 | colortable_entry_set_value(machine->colortable, 0x400 + ((color << 6) | pen), 0x400 + (((color << 4) + pen) & 0x1ff)); | |
| 610 | 627 | } |
| 611 | 628 | |
| 612 | 629 | // color prom |
| r1711 | r1712 | |
| 625 | 642 | int color, pen; |
| 626 | 643 | int x; |
| 627 | 644 | |
| 645 | /* allocate the colortable */ | |
| 646 | machine->colortable = colortable_alloc(machine, 0x400); | |
| 647 | ||
| 628 | 648 | /* DECODE PROM */ |
| 629 | for (x = 0 | |
| 649 | for (x = 0 | |
| 630 | 650 | { |
| 631 | | |
| 651 | UINT16 data = (color_prom[x*2] <<8) | color_prom[x*2+1]; | |
| 632 | 652 | |
| 633 | | |
| 653 | rgb_t | |
| 634 | 654 | |
| 635 | if (x>=0x100) palette_set_color_rgb(machine,x,pal5bit(data >> 10),pal5bit(data >> 5),pal5bit(data >> 0)); | |
| 636 | else palette_set_color_rgb(machine,x+0x300,pal5bit(data >> 10),pal5bit(data >> 5),pal5bit(data >> 0)); | |
| 655 | if (x >= 0x100) | |
| 656 | colortable_palette_set_color(machine->colortable, x + 0x000, color); | |
| 657 | else | |
| 658 | colortable_palette_set_color(machine->colortable, x + 0x300, color); | |
| 637 | 659 | } |
| 638 | 660 | |
| 639 | for( color = 0; color < 32; color++ ) | |
| 640 | for( pen = 0; pen < 64; pen++ ) | |
| 641 | colortable[color * 64 + pen + 512] = ((((color & 0x1f) * 16 + pen)%512)+512); | |
| 661 | for (color = 0; color < 0x20; color++) | |
| 662 | for (pen = 0; pen < 0x40; pen++) | |
| 663 | colortable_entry_set_value(machine->colortable, 0x200 + ((color << 6) | pen), 0x200 + (((color << 4) + pen) & 0x1ff)); | |
| 664 | } | |
| 642 | 665 | |
| 666 | ||
| 667 | static void set_pens(running_machine *machine) | |
| 668 | { | |
| 669 | offs_t i; | |
| 670 | ||
| 671 | for (i = 0; i < seta_paletteram_size / 2; i++) | |
| 672 | { | |
| 673 | UINT16 data = paletteram16[i]; | |
| 674 | ||
| 675 | rgb_t color = MAKE_RGB(pal5bit(data >> 10), pal5bit(data >> 5), pal5bit(data >> 0)); | |
| 676 | ||
| 677 | if (machine->colortable != NULL) | |
| 678 | colortable_palette_set_color(machine->colortable, i, color); | |
| 679 | else | |
| 680 | palette_set_color(machine, i, color); | |
| 681 | } | |
| 643 | 682 | } |
| 644 | 683 | |
| 645 | 684 | |
| 685 | static void usclssic_set_pens(colortable_t *colortable) | |
| 686 | { | |
| 687 | offs_t i; | |
| 646 | 688 | |
| 689 | for (i = 0; i < 0x200; i++) | |
| 690 | { | |
| 691 | UINT16 data = paletteram16[i]; | |
| 647 | 692 | |
| 693 | rgb_t color = MAKE_RGB(pal5bit(data >> 10), pal5bit(data >> 5), pal5bit(data >> 0)); | |
| 648 | 694 | |
| 695 | if (i >= 0x100) | |
| 696 | colortable_palette_set_color(colortable, i - 0x100, color); | |
| 697 | else | |
| 698 | colortable_palette_set_color(colortable, i + 0x200, color); | |
| 699 | } | |
| 700 | } | |
| 701 | ||
| 702 | ||
| 703 | ||
| 649 | 704 | /*************************************************************************** |
| 650 | 705 | |
| 651 | 706 | |
| r1711 | r1712 | |
| 660 | 715 | int offs, col; |
| 661 | 716 | int xoffs, yoffs; |
| 662 | 717 | |
| 663 | int total_color_codes = machine-> | |
| 718 | int total_color_codes = machine->config->gfxdecodeinfo[0].total_color_codes; | |
| 664 | 719 | |
| 665 | 720 | int ctrl = spriteram16[ 0x600/2 ]; |
| 666 | 721 | int ctrl2 = spriteram16[ 0x602/2 ]; |
| r1711 | r1712 | |
| 764 | 819 | int offs; |
| 765 | 820 | int xoffs, yoffs; |
| 766 | 821 | |
| 767 | int total_color_codes = machine-> | |
| 822 | int total_color_codes = machine->config->gfxdecodeinfo[0].total_color_codes; | |
| 768 | 823 | |
| 769 | 824 | int ctrl = spriteram16[ 0x600/2 ]; |
| 770 | 825 | int ctrl2 = spriteram16[ 0x602/2 ]; |
| r1711 | r1712 | |
| 832 | 887 | /* For games without tilemaps */ |
| 833 | 888 | VIDEO_UPDATE( seta_no_layers ) |
| 834 | 889 | { |
| 835 | fillbitmap(bitmap,machine->pens[0x1f0],cliprect); | |
| 890 | set_pens(machine); | |
| 891 | fillbitmap(bitmap,0x1f0,cliprect); | |
| 836 | 892 | draw_sprites(machine,bitmap,cliprect); |
| 837 | 893 | return 0; |
| 838 | 894 | } |
| 839 | 895 | |
| 840 | 896 | |
| 841 | 897 | /* For games with 1 or 2 tilemaps */ |
| 842 | VIDEO_UPDATE( seta ) | |
| 898 | static VIDEO_UPDATE( seta_layers ) | |
| 843 | 899 | { |
| 844 | 900 | int layers_ctrl = -1; |
| 845 | 901 | int enab_0, enab_1, x_0, x_1, y_0, y_1; |
| r1711 | r1712 | |
| 921 | 977 | } |
| 922 | 978 | #endif |
| 923 | 979 | |
| 924 | fillbitmap(bitmap, | |
| 980 | fillbitmap(bitmap, | |
| 925 | 981 | |
| 926 | 982 | if (order & 1) // swap the layers? |
| 927 | 983 | { |
| r1711 | r1712 | |
| 972 | 1028 | } |
| 973 | 1029 | return 0; |
| 974 | 1030 | } |
| 1031 | ||
| 1032 | ||
| 1033 | VIDEO_UPDATE( seta ) | |
| 1034 | { | |
| 1035 | set_pens(machine); | |
| 1036 | return VIDEO_UPDATE_CALL(seta_layers); | |
| 1037 | } | |
| 1038 | ||
| 1039 | ||
| 1040 | VIDEO_UPDATE( usclssic ) | |
| 1041 | { | |
| 1042 | usclssic_set_pens(machine->colortable); | |
| 1043 | return VIDEO_UPDATE_CALL(seta_layers); | |
| 1044 | } | |
| 1045 | ||
| 1046 | ||
| 1047 | VIDEO_UPDATE( inttoote ) | |
| 1048 | { | |
| 1049 | /* no palette to set */ | |
| 1050 | return VIDEO_UPDATE_CALL(seta_layers); | |
| 1051 | } |
| r1711 | r1712 | |
|---|---|---|
| 12 | 12 | { |
| 13 | 13 | int i; |
| 14 | 14 | |
| 15 | for (i = 0;i < machine-> | |
| 15 | for (i = 0;i < machine->config->total_colors;i++) | |
| 16 | 16 | { |
| 17 | 17 | int r = ( i & 0x8 ) ? 0xff : 0x00; |
| 18 | 18 | int g = ( i & 0x4 ) ? 0xff : 0x00; |
| r1711 | r1712 | |
|---|---|---|
| 36 | 36 | { |
| 37 | 37 | int i,col; |
| 38 | 38 | |
| 39 | for (i = 0;i < machine-> | |
| 39 | for (i = 0;i < machine->config->total_colors;i++) | |
| 40 | 40 | { |
| 41 | 41 | col = (color_prom[i]<<8)+color_prom[i+512]; |
| 42 | 42 | palette_set_color_rgb(machine,i,pal5bit(col >> 10),pal5bit(col >> 5),pal5bit(col >> 0)); |
| r1711 | r1712 | |
|---|---|---|
| 69 | 69 | machine->gfx[ttl_gfx_index] = allocgfx(&charlayout); |
| 70 | 70 | decodegfx(machine->gfx[ttl_gfx_index], memory_region(REGION_GFX1), 0, machine->gfx[ttl_gfx_index]->total_elements); |
| 71 | 71 | |
| 72 | if (machine->drv->color_table_len) | |
| 73 | machine->gfx[ttl_gfx_index]->total_colors = machine->drv->color_table_len / 16; | |
| 74 | else | |
| 75 | machine->gfx[ttl_gfx_index]->total_colors = machine->drv->total_colors / 16; | |
| 72 | machine->gfx[ttl_gfx_index]->total_colors = machine->config->total_colors / 16; | |
| 76 | 73 | |
| 77 | 74 | // create the tilemap |
| 78 | 75 | ttl_tilemap = tilemap_create(ttl_get_tile_info, tilemap_scan_rows, 8, 8, 64, 32); |
| r1711 | r1712 | |
|---|---|---|
| 112 | 112 | for (v = 2*8; v < 30*8; v++) /*only for visible area*/ |
| 113 | 113 | { |
| 114 | 114 | int h; |
| 115 | UINT | |
| 115 | UINT16 line_data[256]; | |
| 116 | 116 | |
| 117 | 117 | UINT32 map_v_scr_100 = (scroll_v + v) & 0x100; |
| 118 | 118 | UINT32 rom18D_addr = ((scroll_v + v) & 0xf8) + (map_v_scr_100<<5); |
| 119 | 119 | UINT32 rom15F_addr = (((scroll_v + v) & 0x07)<<2) + (map_v_scr_100<<5); |
| 120 | 120 | UINT32 map_v_scr_1fe_6 =((scroll_v + v) & 0x1fe)<<6; |
| 121 | 121 | |
| 122 | | |
| 122 | | |
| 123 | 123 | |
| 124 | 124 | for (h = 0; h < 0x100; h++) |
| 125 | 125 | { |
| r1711 | r1712 | |
| 154 | 154 | graph_data >>= 4; |
| 155 | 155 | graph_data &= 0x0f; |
| 156 | 156 | |
| 157 | line_data[h] = graph_color + graph_data; | |
| 157 | line_data[h] = pen_base + graph_color + graph_data; | |
| 158 | 158 | |
| 159 | 159 | /*priority: background over sprites*/ |
| 160 | 160 | if (map_v_scr_100 && ((graph_data & 0x0c)==0x0c)) |
| 161 | *BITMAP_ADDR16(tmpbitmap, v, h) = | |
| 161 | *BITMAP_ADDR16(tmpbitmap, v, h) = line | |
| 162 | 162 | } |
| 163 | 163 | |
| 164 | 164 | if (flipscreen) |
| 165 | 165 | { |
| 166 | 166 | int i; |
| 167 | UINT | |
| 167 | UINT16 line_data_flip_x[256]; | |
| 168 | 168 | for (i=0; i<256; i++) |
| 169 | 169 | line_data_flip_x[i] = line_data[255-i]; |
| 170 | draw_scanline | |
| 170 | draw_scanline16(bitmap, 0, 255-v, 256, line_data_flip_x, NULL , -1); | |
| 171 | 171 | } |
| 172 | 172 | else |
| 173 | draw_scanline | |
| 173 | draw_scanline16(bitmap, 0, v, 256, line_data, NULL, -1); | |
| 174 | 174 | } |
| 175 | 175 | } |
| 176 | 176 |
| r1711 | r1712 | |
|---|---|---|
| 30 | 30 | PALETTE_INIT( timelimt ) { |
| 31 | 31 | int i; |
| 32 | 32 | |
| 33 | for (i = 0;i < machine-> | |
| 33 | for (i = 0;i < machine->config->total_colors;i++) | |
| 34 | 34 | { |
| 35 | 35 | int bit0,bit1,bit2,r,g,b; |
| 36 | 36 |
| r1711 | r1712 | |
|---|---|---|
| 206 | 206 | |
| 207 | 207 | WRITE16_HANDLER( deco16_palette_dma_w ) |
| 208 | 208 | { |
| 209 | const int m=Machine-> | |
| 209 | const int m=Machine->config->total_colors; | |
| 210 | 210 | int r,g,b,i; |
| 211 | 211 | |
| 212 | 212 | for (i=0; i<m; i++) { |
| r1711 | r1712 | |
|---|---|---|
| 45 | 45 | { |
| 46 | 46 | int i; |
| 47 | 47 | |
| 48 | for (i = 0; i < machine-> | |
| 48 | for (i = 0; i < machine->config->total_colors; i++) | |
| 49 | 49 | { |
| 50 | 50 | palette_set_color_rgb(machine,i,pal4bit(color_prom[0x0000]),pal4bit(color_prom[0x0800]),pal4bit(color_prom[0x1000])); |
| 51 | 51 | color_prom++; |
| r1711 | r1712 | |
|---|---|---|
| 15 | 15 | { |
| 16 | 16 | int i,bit0,bit1,bit2,r,g,b; |
| 17 | 17 | |
| 18 | for (i = 0;i < machine-> | |
| 18 | for (i = 0;i < machine->config->total_colors; i++) | |
| 19 | 19 | { |
| 20 | 20 | /* red component */ |
| 21 | 21 | bit0 = (*color_prom >> 0) & 0x01; |
| r1711 | r1712 | |
|---|---|---|
| 81 | 81 | K052109_tilemap_update(); |
| 82 | 82 | |
| 83 | 83 | /* note: FIX layer is not used */ |
| 84 | fillbitmap(bitmap, | |
| 84 | fillbitmap(bitmap, | |
| 85 | 85 | // if (bottom9_video_enable) |
| 86 | 86 | { |
| 87 | 87 | K051960_sprites_draw(bitmap,cliprect,1,1); |
| r1711 | r1712 | |
|---|---|---|
| 373 | 373 | if (sb_enable) draw_sprites(machine,bitmap,clip,0); |
| 374 | 374 | |
| 375 | 375 | /* Render background over sprites */ |
| 376 | copyscrollbitmap_trans(bitmap,front_bitmap,1,&scrollx,1,&scrolly,clip, | |
| 376 | copyscrollbitmap_trans(bitmap,front_bitmap,1,&scrollx,1,&scrolly,clip, | |
| 377 | 377 | |
| 378 | 378 | /* Render high priority sprites, if enabled */ |
| 379 | 379 | if (sb_enable) draw_sprites(machine,bitmap,clip,1); |
| r1711 | r1712 | |
|---|---|---|
| 49 | 49 | PALETTE_INIT( mrdo ) |
| 50 | 50 | { |
| 51 | 51 | int i; |
| 52 | #define TOTAL_COLORS(gfxn) (machine->gfx[gfxn]->total_colors * machine->gfx[gfxn]->color_granularity) | |
| 53 | #define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + offs]) | |
| 54 | 52 | |
| 55 | 53 | const int R1 = 150; |
| 56 | 54 | const int R2 = 120; |
| r1711 | r1712 | |
| 61 | 59 | int weight[16]; |
| 62 | 60 | const float potadjust = 0.2f; /* diode voltage drop */ |
| 63 | 61 | |
| 64 | for (i = | |
| 62 | for (i = 0x0f; i >= 0; i--) | |
| 65 | 63 | { |
| 66 | 64 | float par = 0; |
| 67 | 65 | |
| r1711 | r1712 | |
| 76 | 74 | } |
| 77 | 75 | else pot[i] = 0; |
| 78 | 76 | |
| 79 | weight[i] = | |
| 77 | weight[i] = 0xff * pot[i] / pot[0x0f]; | |
| 80 | 78 | } |
| 81 | 79 | |
| 82 | for (i = 0;i < 256;i++) | |
| 80 | /* allocate the colortable */ | |
| 81 | machine->colortable = colortable_alloc(machine, 0x100); | |
| 82 | ||
| 83 | for (i = 0; i < 0x100; i++) | |
| 83 | 84 | { |
| 84 | 85 | int a1,a2; |
| 85 | int bits0,bits2,r,g,b; | |
| 86 | int bits0, bits2; | |
| 87 | int r, g, b; | |
| 86 | 88 | |
| 87 | 89 | a1 = ((i >> 3) & 0x1c) + (i & 0x03) + 32; |
| 88 | 90 | a2 = ((i >> 0) & 0x1c) + (i & 0x03); |
| 89 | 91 | |
| 92 | /* red component */ | |
| 90 | 93 | bits0 = (color_prom[a1] >> 0) & 0x03; |
| 91 | 94 | bits2 = (color_prom[a2] >> 0) & 0x03; |
| 92 | 95 | r = weight[bits0 + (bits2 << 2)]; |
| 96 | ||
| 97 | /* green component */ | |
| 93 | 98 | bits0 = (color_prom[a1] >> 2) & 0x03; |
| 94 | 99 | bits2 = (color_prom[a2] >> 2) & 0x03; |
| 95 | 100 | g = weight[bits0 + (bits2 << 2)]; |
| 101 | ||
| 102 | /* blue component */ | |
| 96 | 103 | bits0 = (color_prom[a1] >> 4) & 0x03; |
| 97 | 104 | bits2 = (color_prom[a2] >> 4) & 0x03; |
| 98 | 105 | b = weight[bits0 + (bits2 << 2)]; |
| 99 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); | |
| 106 | ||
| 107 | colortable_palette_set_color(machine->colortable, i, MAKE_RGB(r, g, b)); | |
| 100 | 108 | } |
| 101 | 109 | |
| 102 | color_prom += 64; | |
| 110 | /* color_prom now points to the beginning of the lookup table */ | |
| 111 | color_prom += 0x40; | |
| 103 | 112 | |
| 113 | /* characters */ | |
| 114 | for (i = 0; i < 0x100; i++) | |
| 115 | colortable_entry_set_value(machine->colortable, i, i); | |
| 116 | ||
| 104 | 117 | /* sprites */ |
| 105 | for (i = 0;i < | |
| 118 | for (i = 0x100; i < 0x140 | |
| 106 | 119 | { |
| 107 | | |
| 120 | UINT8 ctabentry = color_prom[(i - 0x100) & 0x1f]; | |
| 108 | 121 | |
| 109 | if (i < 32) | |
| 110 | bits = color_prom[i] & 0x0f; /* low 4 bits are for sprite color n */ | |
| 122 | if ((i - 0x100) & 0x20) | |
| 123 | ctabentry = ctabentry >> 4; /* high 4 bits are for sprite color n + 8 */ | |
| 111 | 124 | else |
| 112 | b | |
| 125 | ctabentry = ctabentry | |
| 113 | 126 | |
| 114 | | |
| 127 | colorta | |
| 115 | 128 | } |
| 116 | 129 | } |
| 117 | 130 |
| r1711 | r1712 | |
|---|---|---|
| 31 | 31 | { |
| 32 | 32 | int i; |
| 33 | 33 | |
| 34 | for (i = 0;i < machine-> | |
| 34 | for (i = 0;i < machine->config->total_colors;i++) | |
| 35 | 35 | { |
| 36 | 36 | int bit0,bit1,bit2,bit3,r,g,b; |
| 37 | 37 | |
| r1711 | r1712 | |
| 43 | 43 | r = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; |
| 44 | 44 | |
| 45 | 45 | /* green component */ |
| 46 | bit0 = (color_prom[machine->drv->total_colors] >> 0) & 0x01; | |
| 47 | bit1 = (color_prom[machine->drv->total_colors] >> 1) & 0x01; | |
| 48 | bit2 = (color_prom[machine->drv->total_colors] >> 2) & 0x01; | |
| 49 | bit3 = (color_prom[machine->drv->total_colors] >> 3) & 0x01; | |
| 46 | bit0 = (color_prom[machine->config->total_colors] >> 0) & 0x01; | |
| 47 | bit1 = (color_prom[machine->config->total_colors] >> 1) & 0x01; | |
| 48 | bit2 = (color_prom[machine->config->total_colors] >> 2) & 0x01; | |
| 49 | bit3 = (color_prom[machine->config->total_colors] >> 3) & 0x01; | |
| 50 | 50 | g = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; |
| 51 | 51 | |
| 52 | 52 | /* blue component */ |
| 53 | bit0 = (color_prom[2*machine->drv->total_colors] >> 0) & 0x01; | |
| 54 | bit1 = (color_prom[2*machine->drv->total_colors] >> 1) & 0x01; | |
| 55 | bit2 = (color_prom[2*machine->drv->total_colors] >> 2) & 0x01; | |
| 56 | bit3 = (color_prom[2*machine->drv->total_colors] >> 3) & 0x01; | |
| 53 | bit0 = (color_prom[2*machine->config->total_colors] >> 0) & 0x01; | |
| 54 | bit1 = (color_prom[2*machine->config->total_colors] >> 1) & 0x01; | |
| 55 | bit2 = (color_prom[2*machine->config->total_colors] >> 2) & 0x01; | |
| 56 | bit3 = (color_prom[2*machine->config->total_colors] >> 3) & 0x01; | |
| 57 | 57 | b = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; |
| 58 | 58 | |
| 59 | 59 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); |
| r1711 | r1712 | |
|---|---|---|
| 53 | 53 | |
| 54 | 54 | ***************************************************************************/ |
| 55 | 55 | |
| 56 | static | |
| 56 | static rgb | |
| 57 | 57 | { |
| 58 | int bit0,bit1,bit2,r,g,b; | |
| 58 | int bit0, bit1, bit2; | |
| 59 | int r, g, b; | |
| 59 | 60 | |
| 60 | 61 | /* red component */ |
| 61 | 62 | bit0 = (data >> 0) & 0x01; |
| r1711 | r1712 | |
| 74 | 75 | bit1 = (data >> 7) & 0x01; |
| 75 | 76 | b = 0x4f * bit0 + 0xa8 * bit1; |
| 76 | 77 | |
| 77 | | |
| 78 | r | |
| 78 | 79 | } |
| 79 | 80 | |
| 80 | 81 | |
| r1711 | r1712 | |
| 83 | 84 | int i; |
| 84 | 85 | |
| 85 | 86 | for (i = 0; i < 0x40; i++) |
| 86 | { | |
| 87 | lasso_set_color(machine, i, *color_prom); | |
| 88 | color_prom++; | |
| 89 | } | |
| 87 | palette_set_color(machine, i, get_color(color_prom[i])); | |
| 90 | 88 | } |
| 91 | 89 | |
| 92 | 90 | |
| 93 | /* 16 color tiles with a 4 color step for the palettes */ | |
| 94 | 91 | PALETTE_INIT( wwjgtin ) |
| 95 | 92 | { |
| 96 | int | |
| 93 | int i | |
| 97 | 94 | |
| 98 | PALETTE_INIT_CALL(lasso); | |
| 95 | /* allocate the colortable */ | |
| 96 | machine->colortable = colortable_alloc(machine, 0x40); | |
| 99 | 97 | |
| 100 | for( color = 0; color < 0x10; color++ ) | |
| 101 | for( pen = 0; pen < 0x10; pen++ ) | |
| 102 | colortable[color * 0x10 + pen + 0x40] = (color * 4 + pen) & 0x3f; | |
| 103 | } | |
| 98 | for (i = 0; i < 0x40; i++) | |
| 99 | colortable_palette_set_color(machine->colortable, i, get_color(color_prom[i])); | |
| 104 | 100 | |
| 101 | /* characters/sprites */ | |
| 102 | for (i = 0; i < 0x40; i++) | |
| 103 | colortable_entry_set_value(machine->colortable, i, i); | |
| 105 | 104 | |
| 106 | static void set_back_color(running_machine *machine) | |
| 107 | { | |
| 108 | int i; | |
| 105 | /* track */ | |
| 106 | for (i = 0x40; i < 0x140; i++) | |
| 107 | { | |
| 108 | UINT8 ctabentry; | |
| 109 | 109 | |
| 110 | /* stuff into color#0 of each palette */ | |
| 111 | for (i = 0; i < 0x40; i += 4) | |
| 112 | lasso_set_color(machine, i, *lasso_back_color); | |
| 110 | if ((i - 0x40) & 0x03) | |
| 111 | ctabentry = ((((i - 0x40) & 0xf0) >> 2) + ((i - 0x40) & 0x0f)) & 0x3f; | |
| 112 | else | |
| 113 | ctabentry = 0; | |
| 114 | ||
| 115 | colortable_entry_set_value(machine->colortable, i, ctabentry); | |
| 116 | } | |
| 113 | 117 | } |
| 114 | 118 | |
| 115 | 119 | |
| 116 | static void | |
| 120 | static void | |
| 117 | 121 | { |
| 118 | 122 | int i; |
| 119 | 123 | |
| 120 | 124 | /* the last palette entries can be changed */ |
| 121 | 125 | for (i = 0; i < 4; i++) |
| 122 | l | |
| 126 | col | |
| 123 | 127 | } |
| 124 | 128 | |
| 125 | 129 | |
| r1711 | r1712 | |
| 174 | 178 | VIDEO_START( lasso ) |
| 175 | 179 | { |
| 176 | 180 | /* create tilemap */ |
| 177 | bg_tilemap = tilemap_create(lasso_get_bg_tile_info, tilemap_scan_rows, | |
| 181 | bg_tilemap = tilemap_create(lasso_get_bg_tile_info, tilemap_scan_rows, | |
| 178 | 182 | |
| 183 | tilemap_set_transparent_pen(bg_tilemap, 0); | |
| 184 | ||
| 179 | 185 | /* register for saving */ |
| 180 | 186 | state_save_register_global(gfxbank); |
| 181 | 187 | } |
| r1711 | r1712 | |
| 183 | 189 | VIDEO_START( wwjgtin ) |
| 184 | 190 | { |
| 185 | 191 | /* create tilemaps */ |
| 186 | bg_tilemap = tilemap_create(lasso_get_bg_tile_info, tilemap_scan_rows, 8, 8, 32, 32); | |
| 187 | track_tilemap = tilemap_create(wwjgtin_get_track_tile_info, tilemap_scan_rows, 16,16, 0x80,0x40); | |
| 192 | bg_tilemap = tilemap_create(lasso_get_bg_tile_info, tilemap_scan_rows, 8, 8, 32, 32); | |
| 193 | track_tilemap = tilemap_create(wwjgtin_get_track_tile_info, tilemap_scan_rows, 16, 16, 128, 64); | |
| 188 | 194 | |
| 189 | tilemap_set_transparent_pen(bg_tilemap,0); | |
| 195 | tilemap_set_transparent_pen(bg_tilemap, 0); | |
| 190 | 196 | |
| 191 | 197 | /* register for saving */ |
| 192 | 198 | state_save_register_global(gfxbank); |
| r1711 | r1712 | |
| 196 | 202 | VIDEO_START( pinbo ) |
| 197 | 203 | { |
| 198 | 204 | /* create tilemap */ |
| 199 | bg_tilemap = tilemap_create(pinbo_get_bg_tile_info, tilemap_scan_rows, | |
| 205 | bg_tilemap = tilemap_create(pinbo_get_bg_tile_info, tilemap_scan_rows, | |
| 200 | 206 | |
| 201 | 207 | /* register for saving */ |
| 202 | 208 | state_save_register_global(gfxbank); |
| r1711 | r1712 | |
| 334 | 340 | } |
| 335 | 341 | |
| 336 | 342 | |
| 337 | static void draw_lasso( | |
| 343 | static void draw_lasso( | |
| 338 | 344 | { |
| 339 | const UINT8 *source = lasso_bitmap_ram; | |
| 340 | int x,y; | |
| 341 | pen_t pen = machine->pens[0x3f]; | |
| 345 | offs_t offs; | |
| 346 | pen_t pen = pens[0x3f]; | |
| 342 | 347 | |
| 348 | for (offs = 0; offs < 0x2000; offs++) | |
| 349 | { | |
| 350 | int bit; | |
| 351 | UINT8 data; | |
| 352 | UINT8 x; | |
| 353 | UINT8 y = offs >> 5; | |
| 343 | 354 | |
| 344 | for (y = 0; y < 256; y++) | |
| 345 | { | |
| 346 | for (x = 0; x < 256; ) | |
| 355 | if (flip_screen_y) | |
| 356 | y = ~y; | |
| 357 | ||
| 358 | if ((y < cliprect->min_y) || (y > cliprect->max_y)) | |
| 359 | continue; | |
| 360 | ||
| 361 | x = (offs & 0x1f) << 3; | |
| 362 | data = lasso_bitmap_ram[offs]; | |
| 363 | ||
| 364 | if (flip_screen_x) | |
| 365 | x = ~x; | |
| 366 | ||
| 367 | for (bit = 0; bit < 8; bit++) | |
| 347 | 368 | { |
| 348 | int bit; | |
| 369 | if ((data & 0x80) && (x >= cliprect->min_x) && (x <= cliprect->max_x)) | |
| 370 | *BITMAP_ADDR16(bitmap, y, x) = pen; | |
| 349 | 371 | |
| 350 | UINT8 data = *source++; | |
| 372 | if (flip_screen_x) | |
| 373 | x = x - 1; | |
| 374 | else | |
| 375 | x = x + 1; | |
| 351 | 376 | |
| 352 | for (bit = 0; bit < 8; bit++) | |
| 353 | { | |
| 354 | if (data & 0x80) | |
| 355 | { | |
| 356 | if (flip_screen_x) | |
| 357 | { | |
| 358 | if (flip_screen_y) | |
| 359 | *BITMAP_ADDR16(bitmap, 255-y, 255-x) = pen; | |
| 360 | else | |
| 361 | *BITMAP_ADDR16(bitmap, y, 255-x) = pen; | |
| 362 | } | |
| 363 | else | |
| 364 | { | |
| 365 | if (flip_screen_y) | |
| 366 | *BITMAP_ADDR16(bitmap, 255-y, x) = pen; | |
| 367 | else | |
| 368 | *BITMAP_ADDR16(bitmap, y, x) = pen; | |
| 369 | } | |
| 370 | } | |
| 371 | ||
| 372 | x++; | |
| 373 | data <<= 1; | |
| 374 | } | |
| 377 | data = data << 1; | |
| 375 | 378 | } |
| 376 | 379 | } |
| 377 | 380 | } |
| r1711 | r1712 | |
| 379 | 382 | |
| 380 | 383 | VIDEO_UPDATE( lasso ) |
| 381 | 384 | { |
| 382 | set_back_color(machine); | |
| 385 | palette_set_color(machine, 0, get_color(*lasso_back_color)); | |
| 386 | fillbitmap(bitmap, machine->pens[0], cliprect); | |
| 383 | 387 | |
| 384 | 388 | tilemap_draw(bitmap, cliprect, bg_tilemap, 0, 0); |
| 385 | draw_lasso(machine, bitmap); | |
| 389 | draw_lasso(machine->pens, bitmap, cliprect); | |
| 386 | 390 | draw_sprites(machine, bitmap, cliprect, 0); |
| 387 | 391 | |
| 388 | 392 | return 0; |
| r1711 | r1712 | |
| 390 | 394 | |
| 391 | 395 | VIDEO_UPDATE( chameleo ) |
| 392 | 396 | { |
| 393 | set_back_color(machine); | |
| 397 | palette_set_color(machine, 0, get_color(*lasso_back_color)); | |
| 398 | fillbitmap(bitmap, machine->pens[0], cliprect); | |
| 394 | 399 | |
| 395 | 400 | tilemap_draw(bitmap, cliprect, bg_tilemap, 0, 0); |
| 396 | 401 | draw_sprites(machine, bitmap, cliprect, 0); |
| r1711 | r1712 | |
| 401 | 406 | |
| 402 | 407 | VIDEO_UPDATE( wwjgtin ) |
| 403 | 408 | { |
| 404 | set_back_color(machine); | |
| 405 | set_wwjgtin_last_colors(machine); | |
| 409 | colortable_palette_set_color(machine->colortable, 0, get_color(*lasso_back_color)); | |
| 410 | wwjgtin_set_last_four_colors(machine->colortable); | |
| 406 | 411 | |
| 407 | tilemap_set_scrollx(track_tilemap,0,wwjgtin_track_scroll[0] + wwjgtin_track_scroll[1]*256); | |
| 408 | tilemap_set_scrolly(track_tilemap,0,wwjgtin_track_scroll[2] + wwjgtin_track_scroll[3]*256); | |
| 412 | tilemap_set_scrollx(track_tilemap, 0, wwjgtin_track_scroll[0] + wwjgtin_track_scroll[1]*256); | |
| 413 | tilemap_set_scrolly(track_tilemap, 0, wwjgtin_track_scroll[2] + wwjgtin_track_scroll[3]*256); | |
| 409 | 414 | |
| 410 | 415 | if (wwjgtin_track_enable) |
| 411 | 416 | tilemap_draw(bitmap, cliprect, track_tilemap, 0, 0); |
| 412 | 417 | else |
| 413 | fillbitmap(bitmap, machine | |
| 418 | fillbitmap(bitmap, get_black_pen(machine) | |
| 414 | 419 | |
| 415 | 420 | draw_sprites(machine, bitmap, cliprect, 1); // reverse order |
| 416 | 421 | tilemap_draw(bitmap, cliprect, bg_tilemap, 0, 0); |
| r1711 | r1712 | |
|---|---|---|
| 7 | 7 | ******************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 11 | 10 | #include "nb1413m3.h" |
| 12 | 11 | |
| 13 | 12 | |
| r1711 | r1712 | |
| 269 | 268 | static void update_pixel(int x, int y) |
| 270 | 269 | { |
| 271 | 270 | int color = mjsikaku_videoram[(y * 512) + x]; |
| 272 | *BITMAP_ADDR16(mjsikaku_tmpbitmap, y, x) = | |
| 271 | *BITMAP_ADDR16(mjsikaku_tmpbitmap, y, x) = | |
| 273 | 272 | } |
| 274 | 273 | |
| 275 | 274 | static void writeram_low(int x, int y, int color) |
| r1711 | r1712 | |
| 554 | 553 | |
| 555 | 554 | ******************************************************************************/ |
| 556 | 555 | |
| 557 | static void common_video_start( | |
| 556 | static void common_video_start(running_machine *machine) | |
| 558 | 557 | { |
| 559 | mjsikaku_tmpbitmap = auto_bitmap_alloc(512, 256, | |
| 558 | mjsikaku_tmpbitmap = auto_bitmap_alloc(512, 256, machine->screen[0].format); | |
| 560 | 559 | mjsikaku_videoram = auto_malloc(512 * 256 * sizeof(UINT16)); |
| 561 | 560 | nbmj8688_clut = auto_malloc(0x20 * sizeof(UINT8)); |
| 562 | 561 | memset(mjsikaku_videoram, 0, (512 * 256 * sizeof(UINT16))); |
| r1711 | r1712 | |
| 567 | 566 | VIDEO_START( mbmj8688_8bit ) |
| 568 | 567 | { |
| 569 | 568 | mjsikaku_gfxmode = GFXTYPE_8BIT; |
| 570 | common_video_start(); | |
| 569 | common_video_start(machine); | |
| 571 | 570 | } |
| 572 | 571 | |
| 573 | 572 | VIDEO_START( mbmj8688_hybrid_12bit ) |
| 574 | 573 | { |
| 575 | 574 | mjsikaku_gfxmode = GFXTYPE_HYBRID_12BIT; |
| 576 | common_video_start(); | |
| 575 | common_video_start(machine); | |
| 577 | 576 | } |
| 578 | 577 | |
| 579 | 578 | VIDEO_START( mbmj8688_pure_12bit ) |
| 580 | 579 | { |
| 581 | 580 | mjsikaku_gfxmode = GFXTYPE_PURE_12BIT; |
| 582 | common_video_start(); | |
| 581 | common_video_start(machine); | |
| 583 | 582 | } |
| 584 | 583 | |
| 585 | 584 | VIDEO_START( mbmj8688_hybrid_16bit ) |
| 586 | 585 | { |
| 587 | 586 | mjsikaku_gfxmode = GFXTYPE_HYBRID_16BIT; |
| 588 | common_video_start(); | |
| 587 | common_video_start(machine); | |
| 589 | 588 | } |
| 590 | 589 | |
| 591 | 590 | VIDEO_START( mbmj8688_pure_16bit ) |
| 592 | 591 | { |
| 593 | 592 | mjsikaku_gfxmode = GFXTYPE_PURE_16BIT; |
| 594 | common_video_start(); | |
| 593 | common_video_start(machine); | |
| 595 | 594 | } |
| 596 | 595 | |
| 597 | 596 | VIDEO_START( mbmj8688_pure_16bit_LCD ) |
| r1711 | r1712 | |
| 601 | 600 | HD61830B_ram[0] = auto_malloc(0x10000); |
| 602 | 601 | HD61830B_ram[1] = auto_malloc(0x10000); |
| 603 | 602 | |
| 604 | common_video_start(); | |
| 603 | common_video_start(machine); | |
| 605 | 604 | } |
| 606 | 605 | |
| 607 | 606 |
| r1711 | r1712 | |
|---|---|---|
| 18 | 18 | PALETTE_INIT( mrjong ) |
| 19 | 19 | { |
| 20 | 20 | int i; |
| 21 | #define TOTAL_COLORS(gfxn) (machine->gfx[gfxn]->total_colors * machine->gfx[gfxn]->color_granularity) | |
| 22 | #define COLOR(gfxn, offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + (offs)]) | |
| 23 | 21 | |
| 24 | for (i = 0; i < machine->drv->total_colors; i++) | |
| 22 | /* allocate the colortable */ | |
| 23 | machine->colortable = colortable_alloc(machine, 0x10); | |
| 24 | ||
| 25 | /* create a lookup table for the palette */ | |
| 26 | for (i = 0; i < 0x10; i++) | |
| 25 | 27 | { |
| 26 | int bit0, bit1, bit2, r, g, b; | |
| 28 | int bit0, bit1, bit2; | |
| 29 | int r, g, b; | |
| 27 | 30 | |
| 28 | 31 | /* red component */ |
| 29 | bit0 = (*color_prom >> 0) & 0x01; | |
| 30 | bit1 = (*color_prom >> 1) & 0x01; | |
| 31 | bit2 = (*color_prom >> 2) & 0x01; | |
| 32 | bit0 = (color_prom[i] >> 0) & 0x01; | |
| 33 | bit1 = (color_prom[i] >> 1) & 0x01; | |
| 34 | bit2 = (color_prom[i] >> 2) & 0x01; | |
| 32 | 35 | r = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 36 | ||
| 33 | 37 | /* green component */ |
| 34 | bit0 = (*color_prom >> 3) & 0x01; | |
| 35 | bit1 = (*color_prom >> 4) & 0x01; | |
| 36 | bit2 = (*color_prom >> 5) & 0x01; | |
| 38 | bit0 = (color_prom[i] >> 3) & 0x01; | |
| 39 | bit1 = (color_prom[i] >> 4) & 0x01; | |
| 40 | bit2 = (color_prom[i] >> 5) & 0x01; | |
| 37 | 41 | g = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 42 | ||
| 38 | 43 | /* blue component */ |
| 39 | 44 | bit0 = 0; |
| 40 | bit1 = (*color_prom >> 6) & 0x01; | |
| 41 | bit2 = (*color_prom >> 7) & 0x01; | |
| 45 | bit1 = (color_prom[i] >> 6) & 0x01; | |
| 46 | bit2 = (color_prom[i] >> 7) & 0x01; | |
| 42 | 47 | b = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 43 | 48 | |
| 44 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); | |
| 45 | color_prom++; | |
| 49 | colortable_palette_set_color(machine->colortable, i, MAKE_RGB(r, g, b)); | |
| 46 | 50 | } |
| 47 | 51 | |
| 48 | color_prom += 0x10; | |
| 49 | 52 | /* color_prom now points to the beginning of the lookup table */ |
| 53 | color_prom += 0x20; | |
| 50 | 54 | |
| 51 | /* character lookup table */ | |
| 52 | /* sprites use the same color lookup table as characters */ | |
| 53 | for (i = 0; i < TOTAL_COLORS(0); i++) | |
| 54 | COLOR(0, i) = *(color_prom++) & 0x0f; | |
| 55 | /* characters/sprites */ | |
| 56 | for (i = 0; i < 0x80; i++) | |
| 57 | { | |
| 58 | UINT8 ctabentry = color_prom[i] & 0x0f; | |
| 59 | colortable_entry_set_value(machine->colortable, i, ctabentry); | |
| 60 | } | |
| 55 | 61 | } |
| 56 | 62 | |
| 57 | 63 | |
| r1711 | r1712 | |
| 92 | 98 | |
| 93 | 99 | VIDEO_START( mrjong ) |
| 94 | 100 | { |
| 95 | bg_tilemap = tilemap_create(get_bg_tile_info, tilemap_scan_rows_flip_xy, | |
| 96 | 8, 8, 32, 32); | |
| 101 | bg_tilemap = tilemap_create(get_bg_tile_info, tilemap_scan_rows_flip_xy, 8, 8, 32, 32); | |
| 97 | 102 | } |
| 98 | 103 | |
| 99 | 104 | static void draw_sprites(running_machine *machine, mame_bitmap *bitmap, const rectangle *cliprect) |
| r1711 | r1712 | |
|---|---|---|
| 11 | 11 | int i; |
| 12 | 12 | |
| 13 | 13 | |
| 14 | for (i = 0;i < machine-> | |
| 14 | for (i = 0;i < machine->config->total_colors;i++) | |
| 15 | 15 | { |
| 16 | 16 | int bit0,bit1,bit2,r,g,b; |
| 17 | 17 |
| r1711 | r1712 | |
|---|---|---|
| 16 | 16 | { |
| 17 | 17 | int i; |
| 18 | 18 | |
| 19 | for (i = 0;i < machine-> | |
| 19 | for (i = 0;i < machine->config->total_colors; i++) | |
| 20 | 20 | { |
| 21 | 21 | int bit0,bit1,bit2,r,g,b; |
| 22 | 22 |
| r1711 | r1712 | |
|---|---|---|
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | |
| 44 | static void set_pens(r | |
| 44 | static void set_pens(colort | |
| 45 | 45 | { |
| 46 | 46 | int i; |
| 47 | 47 | |
| r1711 | r1712 | |
| 51 | 51 | |
| 52 | 52 | rgb_t color = MAKE_RGB(pal5bit(data >> 0), pal5bit(data >> 5), pal5bit(data >> 10)); |
| 53 | 53 | |
| 54 | colortable_palette_set_color( | |
| 54 | colortable_palette_set_color( | |
| 55 | 55 | } |
| 56 | 56 | } |
| 57 | 57 | |
| r1711 | r1712 | |
| 252 | 252 | |
| 253 | 253 | VIDEO_UPDATE( ddrible ) |
| 254 | 254 | { |
| 255 | set_pens(machine); | |
| 255 | set_pens(machine->colortable); | |
| 256 | 256 | |
| 257 | 257 | tilemap_set_flip(fg_tilemap, (ddribble_vregs[0][4] & 0x08) ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0); |
| 258 | 258 | tilemap_set_flip(bg_tilemap, (ddribble_vregs[1][4] & 0x08) ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0); |
| r1711 | r1712 | |
|---|---|---|
| 106 | 106 | { |
| 107 | 107 | int i; |
| 108 | 108 | |
| 109 | for (i = 0;i < machine-> | |
| 109 | for (i = 0;i < machine->config->total_colors;i++) | |
| 110 | 110 | { |
| 111 | 111 | int bit0,bit1,bit2,r,g,b; |
| 112 | 112 | bit0 = (color_prom[i] >> 0) & 0x01; |
| r1711 | r1712 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "video/resnet.h" | |
| 10 | 11 | |
| 11 | 12 | |
| 12 | 13 | #define GLOBAL_FLIP_X (*taitosj_video_mode & 0x01) |
| 13 | 14 | #define GLOBAL_FLIP_Y (*taitosj_video_mode & 0x02) |
| 14 | 15 | #define SPRITE_RAM_PAGE_OFFSET ((*taitosj_video_mode & 0x04) ? 0x80 : 0x00) |
| 15 | 16 | #define SPRITES_ON (*taitosj_video_mode & 0x80) |
| 17 | #define TRANSPARENT_PEN (0x40) | |
| 16 | 18 | |
| 17 | 19 | |
| 18 | 20 | UINT8 *taitosj_videoram_1; |
| r1711 | r1712 | |
| 84 | 86 | |
| 85 | 87 | ***************************************************************************/ |
| 86 | 88 | |
| 87 | static int draworder[32][4]; | |
| 89 | static int draw_order[32][4]; | |
| 88 | 90 | |
| 89 | 91 | |
| 90 | 92 | /*************************************************************************** |
| r1711 | r1712 | |
| 96 | 98 | |
| 97 | 99 | The RAM is connected to the RGB output this way: |
| 98 | 100 | |
| 99 | bit 0 -- inverter -- 2 | |
| 101 | bit 0 -- inverter -- 270 ohm resistor -- RED | |
| 100 | 102 | bit 7 -- inverter -- 470 ohm resistor -- RED |
| 101 | 103 | -- inverter -- 1 kohm resistor -- RED |
| 102 | -- inverter -- 2 | |
| 104 | -- inverter -- 270 ohm resistor -- GREEN | |
| 103 | 105 | -- inverter -- 470 ohm resistor -- GREEN |
| 104 | 106 | -- inverter -- 1 kohm resistor -- GREEN |
| 105 | -- inverter -- 2 | |
| 107 | -- inverter -- 270 ohm resistor -- BLUE | |
| 106 | 108 | -- inverter -- 470 ohm resistor -- BLUE |
| 107 | 109 | bit 0 -- inverter -- 1 kohm resistor -- BLUE |
| 108 | 110 | |
| 109 | 111 | ***************************************************************************/ |
| 110 | 112 | |
| 111 | ||
| 113 | s | |
| 112 | 114 | { |
| 115 | static const int resistances[3] = { 1000, 470, 270 }; | |
| 116 | double rweights[3], gweights[3], bweights[3]; | |
| 113 | 117 | int i; |
| 114 | #define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + offs]) | |
| 115 | 118 | |
| 116 | /* all gfx elements use the same palette */ | |
| 117 | for (i = 0 ;i < 64; i++) | |
| 118 | { | |
| 119 | /* we create both a "normal" lookup table and one where pen 0 is */ | |
| 120 | /* always mapped to color 0. This is needed for transparency. */ | |
| 119 | /* compute the color output resistor weights */ | |
| 120 | compute_resistor_weights(0, 255, -1.0, | |
| 121 | 3, resistances, rweights, 0, 0, | |
| 122 | 3, resistances, gweights, 0, 0, | |
| 123 | 3, resistances, bweights, 0, 0); | |
| 121 | 124 | |
| 122 | COLOR(0, i) = i; | |
| 123 | ||
| 124 | if ((i % 8) == 0) | |
| 125 | COLOR(0, i + 64) = 0; | |
| 126 | else | |
| 127 | COLOR(0, i + 64) = i; | |
| 128 | } | |
| 129 | ||
| 130 | /* do a simple conversion of the PROM into layer priority order. Note that */ | |
| 131 | /* this is a simplification, which assumes the PROM encodes a sensible priority */ | |
| 132 | /* scheme. */ | |
| 133 | color_prom = memory_region(REGION_PROMS); | |
| 134 | ||
| 135 | for (i = 0; i < 32; i++) | |
| 125 | for (i = 0; i < 0x40; i++) | |
| 136 | 126 | { |
| 137 | int j, mask; | |
| 127 | int bit0, bit1, bit2; | |
| 128 | int r, g, b, val; | |
| 138 | 129 | |
| 139 | mask = 0; /* start with all four layers active, so we'll get the highest */ | |
| 140 | /* priority one in the first loop */ | |
| 141 | ||
| 142 | for (j = 3; j >= 0; j--) | |
| 143 | { | |
| 144 | int data; | |
| 145 | ||
| 146 | data = color_prom[0x10 * (i & 0x0f) + mask]; | |
| 147 | if (i & 0x10) data >>= 2; | |
| 148 | data &= 0x03; | |
| 149 | mask |= (1 << data); /* in next loop, we'll see which of the remaining */ | |
| 150 | /* layers has top priority when this one is transparent */ | |
| 151 | draworder[i][j] = data; | |
| 152 | } | |
| 153 | } | |
| 154 | } | |
| 155 | ||
| 156 | ||
| 157 | static void set_colors(running_machine *machine) | |
| 158 | { | |
| 159 | offs_t offs; | |
| 160 | ||
| 161 | for (offs = 0; offs < 0x40; offs++) | |
| 162 | { | |
| 163 | int bit0,bit1,bit2; | |
| 164 | int r,g,b,val; | |
| 165 | ||
| 166 | 130 | /* red component */ |
| 167 | val = taitosj_paletteram[( | |
| 131 | val = taitosj_paletteram[(i | |
| 168 | 132 | bit0 = (~val >> 6) & 0x01; |
| 169 | 133 | bit1 = (~val >> 7) & 0x01; |
| 170 | val = taitosj_paletteram[( | |
| 134 | val = taitosj_paletteram[(i | |
| 171 | 135 | bit2 = (~val >> 0) & 0x01; |
| 172 | r = | |
| 136 | r = combine_3_weights(rweights, | |
| 173 | 137 | |
| 174 | 138 | /* green component */ |
| 175 | val = taitosj_paletteram[( | |
| 139 | val = taitosj_paletteram[(i | |
| 176 | 140 | bit0 = (~val >> 3) & 0x01; |
| 177 | 141 | bit1 = (~val >> 4) & 0x01; |
| 178 | 142 | bit2 = (~val >> 5) & 0x01; |
| 179 | g = | |
| 143 | g = combine_3_weights(gweights, | |
| 180 | 144 | |
| 181 | 145 | /* blue component */ |
| 182 | val = taitosj_paletteram[( | |
| 146 | val = taitosj_paletteram[(i | |
| 183 | 147 | bit0 = (~val >> 0) & 0x01; |
| 184 | 148 | bit1 = (~val >> 1) & 0x01; |
| 185 | 149 | bit2 = (~val >> 2) & 0x01; |
| 186 | b = | |
| 150 | b = combine_3_weights(bweights, | |
| 187 | 151 | |
| 188 | palette_set_color(machine, | |
| 152 | palette_set_color(machine, i | |
| 189 | 153 | } |
| 190 | 154 | } |
| 191 | 155 | |
| r1711 | r1712 | |
| 203 | 167 | Start the video hardware emulation. |
| 204 | 168 | |
| 205 | 169 | ***************************************************************************/ |
| 170 | ||
| 171 | static void compute_draw_order(void) | |
| 172 | { | |
| 173 | int i; | |
| 174 | ||
| 175 | /* do a simple conversion of the PROM into layer priority order. Note that */ | |
| 176 | /* this is a simplification, which assumes the PROM encodes a sensible priority */ | |
| 177 | /* scheme. */ | |
| 178 | for (i = 0; i < 32; i++) | |
| 179 | { | |
| 180 | int j; | |
| 181 | int mask = 0; /* start with all four layers active, so we'll get the highest */ | |
| 182 | /* priority one in the first loop */ | |
| 183 | for (j = 3; j >= 0; j--) | |
| 184 | { | |
| 185 | UINT8 *color_prom = memory_region(REGION_PROMS); | |
| 186 | ||
| 187 | int data = color_prom[0x10 * (i & 0x0f) + mask] & 0x0f; | |
| 188 | ||
| 189 | if (i & 0x10) | |
| 190 | data = data >> 2; | |
| 191 | else | |
| 192 | data = data & 0x03; | |
| 193 | ||
| 194 | mask |= (1 << data); /* in next loop, we'll see which of the remaining */ | |
| 195 | /* layers has top priority when this one is transparent */ | |
| 196 | draw_order[i][j] = data; | |
| 197 | } | |
| 198 | } | |
| 199 | } | |
| 200 | ||
| 201 | ||
| 206 | 202 | VIDEO_START( taitosj ) |
| 207 | 203 | { |
| 208 | 204 | int i; |
| r1711 | r1712 | |
| 223 | 219 | memset(dirtysprite1, 1, sizeof(dirtysprite1)); |
| 224 | 220 | memset(dirtysprite2, 1, sizeof(dirtysprite2)); |
| 225 | 221 | |
| 222 | compute_draw_order(); | |
| 223 | ||
| 226 | 224 | state_save_register_func_postload(taitosj_postload); |
| 227 | 225 | } |
| 228 | 226 | |
| r1711 | r1712 | |
| 339 | 337 | } |
| 340 | 338 | |
| 341 | 339 | /* draw the sprites into seperate bitmaps and check overlapping region */ |
| 340 | fillbitmap(sprite_layer_collbitmap1, TRANSPARENT_PEN, NULL); | |
| 342 | 341 | drawgfx(sprite_sprite_collbitmap1, get_sprite_gfx_element(machine, which1), |
| 343 | 342 | taitosj_spriteram[SPRITE_RAM_PAGE_OFFSET + offs1 + 3] & 0x3f, |
| 344 | 343 | 0, |
| 345 | 344 | taitosj_spriteram[SPRITE_RAM_PAGE_OFFSET + offs1 + 2] & 0x01, |
| 346 | 345 | taitosj_spriteram[SPRITE_RAM_PAGE_OFFSET + offs1 + 2] & 0x02, |
| 347 | 346 | sx1, sy1, |
| 348 | 0, TRANSPARENCY_ | |
| 347 | 0, TRANSPARENCY_P | |
| 349 | 348 | |
| 349 | fillbitmap(sprite_sprite_collbitmap2, TRANSPARENT_PEN, NULL); | |
| 350 | 350 | drawgfx(sprite_sprite_collbitmap2, get_sprite_gfx_element(machine, which2), |
| 351 | 351 | taitosj_spriteram[SPRITE_RAM_PAGE_OFFSET + offs2 + 3] & 0x3f, |
| 352 | 352 | 0, |
| 353 | 353 | taitosj_spriteram[SPRITE_RAM_PAGE_OFFSET + offs2 + 2] & 0x01, |
| 354 | 354 | taitosj_spriteram[SPRITE_RAM_PAGE_OFFSET + offs2 + 2] & 0x02, |
| 355 | 355 | sx2, sy2, |
| 356 | 0, TRANSPARENCY_ | |
| 356 | 0, TRANSPARENCY_P | |
| 357 | 357 | |
| 358 | 358 | for (y = miny; y < maxy; y++) |
| 359 | { | |
| 360 | 359 | for (x = minx; x < maxx; x++) |
| 361 | { | |
| 362 | if ((*BITMAP_ADDR16(sprite_sprite_collbitmap1, y, x) != machine->pens[0]) && | |
| 363 | (*BITMAP_ADDR16(sprite_sprite_collbitmap2, y, x) != machine->pens[0])) | |
| 364 | { | |
| 360 | if ((*BITMAP_ADDR16(sprite_sprite_collbitmap1, y, x) != TRANSPARENT_PEN) && | |
| 361 | (*BITMAP_ADDR16(sprite_sprite_collbitmap2, y, x) != TRANSPARENT_PEN)) | |
| 365 | 362 | return 1; /* collided */ |
| 366 | } | |
| 367 | } | |
| 368 | } | |
| 369 | 363 | |
| 370 | 364 | return 0; |
| 371 | 365 | } |
| r1711 | r1712 | |
| 480 | 474 | |
| 481 | 475 | static int check_sprite_layer_bitpattern(running_machine *machine, int which, rectangle *sprite_areas) |
| 482 | 476 | { |
| 483 | int y; | |
| 477 | int y, x; | |
| 484 | 478 | offs_t offs = which * 4; |
| 485 | 479 | int result = 0; /* no collisions */ |
| 486 | 480 | |
| r1711 | r1712 | |
| 497 | 491 | int flip_y = (taitosj_spriteram[SPRITE_RAM_PAGE_OFFSET + offs + 2] & 0x02) ^ GLOBAL_FLIP_Y; |
| 498 | 492 | |
| 499 | 493 | /* draw sprite into a bitmap and check if layers collide */ |
| 494 | fillbitmap(sprite_layer_collbitmap1, TRANSPARENT_PEN, NULL); | |
| 500 | 495 | drawgfx(sprite_layer_collbitmap1, get_sprite_gfx_element(machine, which), |
| 501 | 496 | taitosj_spriteram[SPRITE_RAM_PAGE_OFFSET + offs + 3] & 0x3f, |
| 502 | 497 | 0, |
| 503 | 498 | flip_x, flip_y, |
| 504 | 499 | 0,0, |
| 505 | 0,TRANSPARENCY_ | |
| 500 | 0,TRANSPARENCY_P | |
| 506 | 501 | |
| 507 | 502 | for (y = miny; y < maxy; y++) |
| 508 | { | |
| 509 | int x; | |
| 510 | ||
| 511 | 503 | for (x = minx; x < maxx; x++) |
| 512 | { | |
| 513 | if (*BITMAP_ADDR16(sprite_layer_collbitmap1, y - miny, x - minx) != machine->pens[0]) /* is there anything to check for ? */ | |
| 504 | if (*BITMAP_ADDR16(sprite_layer_collbitmap1, y - miny, x - minx) != TRANSPARENT_PEN) /* is there anything to check for ? */ | |
| 514 | 505 | { |
| 515 | if (check_layer_1 && (*BITMAP_ADDR16(sprite_layer_collbitmap2[0], y, x) != | |
| 506 | if (check_layer_1 && (*BITMAP_ADDR16(sprite_layer_collbitmap2[0], y, x) != TRANSPARENT_PEN | |
| 516 | 507 | result |= 0x01; /* collided with layer 1 */ |
| 517 | 508 | |
| 518 | if (check_layer_2 && (*BITMAP_ADDR16(sprite_layer_collbitmap2[1], y, x) != | |
| 509 | if (check_layer_2 && (*BITMAP_ADDR16(sprite_layer_collbitmap2[1], y, x) != TRANSPARENT_PEN | |
| 519 | 510 | result |= 0x02; /* collided with layer 2 */ |
| 520 | 511 | |
| 521 | if (check_layer_3 && (*BITMAP_ADDR16(sprite_layer_collbitmap2[2], y, x) != | |
| 512 | if (check_layer_3 && (*BITMAP_ADDR16(sprite_layer_collbitmap2[2], y, x) != TRANSPARENT_PEN | |
| 522 | 513 | result |= 0x04; /* collided with layer 3 */ |
| 523 | 514 | } |
| 524 | } | |
| 525 | } | |
| 526 | 515 | |
| 527 | 516 | return result; |
| 528 | 517 | } |
| r1711 | r1712 | |
| 588 | 577 | { |
| 589 | 578 | offs_t offs; |
| 590 | 579 | |
| 580 | fillbitmap(taitosj_layer_bitmap[0], TRANSPARENT_PEN, NULL); | |
| 581 | fillbitmap(taitosj_layer_bitmap[1], TRANSPARENT_PEN, NULL); | |
| 582 | fillbitmap(taitosj_layer_bitmap[2], TRANSPARENT_PEN, NULL); | |
| 583 | ||
| 591 | 584 | for (offs = 0; offs < 0x0400; offs++) |
| 592 | 585 | { |
| 593 | 586 | int sx = offs % 32; |
| r1711 | r1712 | |
| 598 | 591 | |
| 599 | 592 | drawgfx(taitosj_layer_bitmap[0],machine->gfx[taitosj_colorbank[0] & 0x08 ? 2 : 0], |
| 600 | 593 | taitosj_videoram_1[offs], |
| 601 | | |
| 594 | | |
| 602 | 595 | GLOBAL_FLIP_X,GLOBAL_FLIP_Y, |
| 603 | 596 | 8*sx,8*sy, |
| 604 | 0,TRANSPARENCY_ | |
| 597 | 0,TRANSPARENCY_P | |
| 605 | 598 | |
| 606 | 599 | drawgfx(taitosj_layer_bitmap[1],machine->gfx[taitosj_colorbank[0] & 0x80 ? 2 : 0], |
| 607 | 600 | taitosj_videoram_2[offs], |
| 608 | ( | |
| 601 | ( | |
| 609 | 602 | GLOBAL_FLIP_X,GLOBAL_FLIP_Y, |
| 610 | 603 | 8*sx,8*sy, |
| 611 | 0,TRANSPARENCY_ | |
| 604 | 0,TRANSPARENCY_P | |
| 612 | 605 | |
| 613 | 606 | drawgfx(taitosj_layer_bitmap[2],machine->gfx[taitosj_colorbank[1] & 0x08 ? 2 : 0], |
| 614 | 607 | taitosj_videoram_3[offs], |
| 615 | | |
| 608 | | |
| 616 | 609 | GLOBAL_FLIP_X,GLOBAL_FLIP_Y, |
| 617 | 610 | 8*sx,8*sy, |
| 618 | 0,TRANSPARENCY_ | |
| 611 | 0,TRANSPARENCY_P | |
| 619 | 612 | } |
| 620 | 613 | } |
| 621 | 614 | |
| r1711 | r1712 | |
| 704 | 697 | scrollx = -(scrollx & 0xf8) + ((scrollx + fudge1[which]) & 7) + fudge2[which]; |
| 705 | 698 | |
| 706 | 699 | if (GLOBAL_FLIP_Y) |
| 707 | { | |
| 708 | 700 | for (i = 0;i < 32;i++) |
| 709 | 701 | scrolly[31 - i] = taitosj_colscrolly[32 * which + i] + taitosj_scroll[2 * which + 1]; |
| 710 | } | |
| 711 | 702 | else |
| 712 | { | |
| 713 | 703 | for (i = 0;i < 32;i++) |
| 714 | 704 | scrolly[i] = -taitosj_colscrolly[32 * which + i] - taitosj_scroll[2 * which + 1]; |
| 715 | } | |
| 716 | 705 | |
| 717 | copyscrollbitmap_trans(bitmap, taitosj_layer_bitmap[which], 1, &scrollx, 32, scrolly, cliprect, | |
| 706 | copyscrollbitmap_trans(bitmap, taitosj_layer_bitmap[which], 1, &scrollx, 32, scrolly, cliprect, TRANSPARENT_PEN | |
| 718 | 707 | |
| 719 | 708 | /* store parts covered with sprites for sprites/layers collision detection */ |
| 720 | 709 | for (i = 0; i < 0x20; i++) |
| r1711 | r1712 | |
| 736 | 725 | int i, scrolly, scrollx[32 * 8]; |
| 737 | 726 | |
| 738 | 727 | for (i = 1; i < 32*8; i++) /* 1-255 ! */ |
| 739 | { | |
| 740 | 728 | if (GLOBAL_FLIP_Y) |
| 741 | { | |
| 742 | 729 | switch (which) |
| 743 | 730 | { |
| 744 | case 0: scrollx[32 * 8 - i] = 0 ;break; | |
| 745 | case 1: scrollx[32 * 8 - i] = kikstart_scrollram[i] + ((taitosj_scroll[2 * which] + 0x0a) & 0xff);break; | |
| 746 | case 2: scrollx[32 * 8 - i] = kikstart_scrollram[0x100 + i] + ((taitosj_scroll[2 * which] + 0xc) & 0xff);break; | |
| 731 | case 0: scrollx[32 * 8 - i] = 0 ;break; | |
| 732 | case 1: scrollx[32 * 8 - i] = kikstart_scrollram[i] + ((taitosj_scroll[2 * which] + 0x0a) & 0xff);break; | |
| 733 | case 2: scrollx[32 * 8 - i] = kikstart_scrollram[0x100 + i] + ((taitosj_scroll[2 * which] + 0xc) & 0xff);break; | |
| 747 | 734 | } |
| 748 | } | |
| 749 | 735 | else |
| 750 | { | |
| 751 | 736 | switch (which) |
| 752 | 737 | { |
| 753 | case 0: scrollx[i] = 0 ;break; | |
| 754 | case 1: scrollx[i] = 0xff - kikstart_scrollram[i - 1] - ((taitosj_scroll[2 * which] - 0x10) & 0xff);break; | |
| 755 | case 2: scrollx[i] = 0xff - kikstart_scrollram[0x100 + i - 1] - ((taitosj_scroll[2 * which] - 0x12) & 0xff);break; | |
| 738 | case 0: scrollx[i] = 0 ;break; | |
| 739 | case 1: scrollx[i] = 0xff - kikstart_scrollram[i - 1] - ((taitosj_scroll[2 * which] - 0x10) & 0xff);break; | |
| 740 | case 2: scrollx[i] = 0xff - kikstart_scrollram[0x100 + i - 1] - ((taitosj_scroll[2 * which] - 0x12) & 0xff);break; | |
| 756 | 741 | } |
| 757 | } | |
| 758 | } | |
| 759 | 742 | |
| 760 | 743 | scrolly = taitosj_scroll[2 * which + 1]; /* always 0 */ |
| 761 | copyscrollbitmap_trans(bitmap, taitosj_layer_bitmap[which], 32 * 8, scrollx, 1, &scrolly, cliprect, | |
| 744 | copyscrollbitmap_trans(bitmap, taitosj_layer_bitmap[which], 32 * 8, scrollx, 1, &scrolly, cliprect, TRANSPARENT_PEN | |
| 762 | 745 | |
| 763 | 746 | /* store parts covered with sprites for sprites/layers collision detection */ |
| 764 | 747 | for (i = 0; i < 0x20; i++) |
| r1711 | r1712 | |
| 792 | 775 | |
| 793 | 776 | for (i = 0; i < 4; i++) |
| 794 | 777 | { |
| 795 | int which = draworder[*taitosj_video_priority & 0x1f][i]; | |
| 778 | int which = draw_order[*taitosj_video_priority & 0x1f][i]; | |
| 796 | 779 | |
| 797 | 780 | copy_layer(machine, bitmap, cliprect, copy_layer_func, which, sprites_on, sprite_areas); |
| 798 | 781 | } |
| r1711 | r1712 | |
| 815 | 798 | int sprites_on[0x20]; /* 1 if sprite is active */ |
| 816 | 799 | rectangle sprite_areas[0x20]; /* areas on bitmap (sprite locations) */ |
| 817 | 800 | |
| 818 | set_ | |
| 801 | set_pen | |
| 819 | 802 | |
| 820 | 803 | decode_modified(machine); |
| 821 | 804 |
| r1711 | r1712 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "video/resnet.h" | |
| 2 | 3 | |
| 3 | 4 | UINT8 *kingofb_videoram2; |
| 4 | 5 | UINT8 *kingofb_colorram2; |
| r1711 | r1712 | |
| 29 | 30 | bit 3 -- 51 ohm resistor -- BLUE |
| 30 | 31 | |
| 31 | 32 | ***************************************************************************/ |
| 32 | PALETTE_INIT( kingofb ) | |
| 33 | ||
| 34 | static void palette_init_common(running_machine *machine, const UINT8 *color_prom, | |
| 35 | void (*get_rgb_data)(const UINT8 *, int, int *, int *, int *)) | |
| 33 | 36 | { |
| 37 | static const int resistances[4] = { 1500, 750, 360, 180 }; | |
| 38 | static const int resistances_fg[1] = { 51 }; | |
| 39 | double rweights[4], gweights[4], bweights[4]; | |
| 40 | double rweights_fg[1], gweights_fg[1], bweights_fg[1]; | |
| 34 | 41 | int i; |
| 35 | #define TOTAL_COLORS(gfxn) (machine->gfx[gfxn]->total_colors * machine->gfx[gfxn]->color_granularity) | |
| 36 | #define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + offs]) | |
| 37 | 42 | |
| 43 | /* compute the color output resistor weights */ | |
| 44 | double scale = compute_resistor_weights(0, 255, -1.0, | |
| 45 | 1, resistances_fg, rweights_fg, 0, 0, | |
| 46 | 1, resistances_fg, gweights_fg, 0, 0, | |
| 47 | 1, resistances_fg, bweights_fg, 0, 0); | |
| 38 | 48 | |
| 39 | for (i = 0;i < 256;i++) | |
| 49 | compute_resistor_weights(0, 255, scale, | |
| 50 | 4, resistances, rweights, 470, 0, | |
| 51 | 4, resistances, gweights, 470, 0, | |
| 52 | 4, resistances, bweights, 470, 0); | |
| 53 | ||
| 54 | /* allocate the colortable */ | |
| 55 | machine->colortable = colortable_alloc(machine, 0x108); | |
| 56 | ||
| 57 | for (i = 0; i < 0x100; i++) | |
| 40 | 58 | { |
| 41 | int bit0,bit1,bit2,bit3,r,g,b; | |
| 59 | int r_data, g_data, b_data; | |
| 60 | int bit0, bit1, bit2, bit3; | |
| 61 | int r, g, b; | |
| 42 | 62 | |
| 63 | get_rgb_data(color_prom, i, &r_data, &g_data, &b_data); | |
| 43 | 64 | |
| 44 | 65 | /* red component */ |
| 45 | bit0 = (color_prom[0] >> 0) & 0x01; | |
| 46 | bit1 = (color_prom[0] >> 1) & 0x01; | |
| 47 | bit2 = (color_prom[0] >> 2) & 0x01; | |
| 48 | bit3 = (color_prom[0] >> 3) & 0x01; | |
| 49 | r = 0x10 * bit0 + 0x21 * bit1 + 0x45 * bit2 + 0x89 * bit3; | |
| 66 | bit0 = (r_data >> 0) & 0x01; | |
| 67 | bit1 = (r_data >> 1) & 0x01; | |
| 68 | bit2 = (r_data >> 2) & 0x01; | |
| 69 | bit3 = (r_data >> 3) & 0x01; | |
| 70 | r = combine_4_weights(rweights, bit0, bit1, bit2, bit3); | |
| 71 | ||
| 50 | 72 | /* green component */ |
| 51 | bit0 = (color_prom[256] >> 0) & 0x01; | |
| 52 | bit1 = (color_prom[256] >> 1) & 0x01; | |
| 53 | bit2 = (color_prom[256] >> 2) & 0x01; | |
| 54 | bit3 = (color_prom[256] >> 3) & 0x01; | |
| 55 | g = 0x10 * bit0 + 0x21 * bit1 + 0x45 * bit2 + 0x89 * bit3; | |
| 73 | bit0 = (g_data >> 0) & 0x01; | |
| 74 | bit1 = (g_data >> 1) & 0x01; | |
| 75 | bit2 = (g_data >> 2) & 0x01; | |
| 76 | bit3 = (g_data >> 3) & 0x01; | |
| 77 | g = combine_4_weights(gweights, bit0, bit1, bit2, bit3); | |
| 78 | ||
| 56 | 79 | /* blue component */ |
| 57 | bit0 = (color_prom[2*256] >> 0) & 0x01; | |
| 58 | bit1 = (color_prom[2*256] >> 1) & 0x01; | |
| 59 | bit2 = (color_prom[2*256] >> 2) & 0x01; | |
| 60 | bit3 = (color_prom[2*256] >> 3) & 0x01; | |
| 61 | b = 0x10 * bit0 + 0x21 * bit1 + 0x45 * bit2 + 0x89 * bit3; | |
| 80 | bit0 = (b_data >> 0) & 0x01; | |
| 81 | bit1 = (b_data >> 1) & 0x01; | |
| 82 | bit2 = (b_data >> 2) & 0x01; | |
| 83 | bit3 = (b_data >> 3) & 0x01; | |
| 84 | b = combine_4_weights(bweights, bit0, bit1, bit2, bit3); | |
| 62 | 85 | |
| 63 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); | |
| 64 | color_prom++; | |
| 86 | colortable_palette_set_color(machine->colortable, i, MAKE_RGB(r, g, b)); | |
| 65 | 87 | } |
| 66 | 88 | |
| 67 | ||
| 68 | 89 | /* the foreground chars directly map to primary colors */ |
| 69 | for (i = 0;i < 8;i++) | |
| 70 | palette_set_color_rgb(machine,i+256,pal1bit(i >> 2),pal1bit(i >> 1),pal1bit(i >> 0)); | |
| 71 | ||
| 72 | for (i = 0;i < TOTAL_COLORS(0)/2;i++) | |
| 90 | for (i = 0x100; i < 0x108; i++) | |
| 73 | 91 | { |
| 74 | COLOR(0,2*i+0) = 0; /* transparent */ | |
| 75 | COLOR(0,2*i+1) = 256 + i; | |
| 76 | } | |
| 77 | } | |
| 92 | int r, g, b; | |
| 78 | 93 | |
| 94 | /* red component */ | |
| 95 | r = (((i - 0x100) >> 2) & 0x01) * rweights_fg[0]; | |
| 79 | 96 | |
| 80 | /* Ring King has one 256x8 PROM instead of two 256x4 */ | |
| 81 | PALETTE_INIT( ringking ) | |
| 82 | { | |
| 83 | int i; | |
| 84 | #define TOTAL_COLORS(gfxn) (machine->gfx[gfxn]->total_colors * machine->gfx[gfxn]->color_granularity) | |
| 85 | #define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + offs]) | |
| 97 | /* green component */ | |
| 98 | g = (((i - 0x100) >> 1) & 0x01) * gweights_fg[0]; | |
| 86 | 99 | |
| 100 | /* blue component */ | |
| 101 | b = (((i - 0x100) >> 0) & 0x01) * bweights_fg[0]; | |
| 87 | 102 | |
| 88 | for (i = 0;i < 256;i++) | |
| 103 | colortable_palette_set_color(machine->colortable, i, MAKE_RGB(r, g, b)); | |
| 104 | } | |
| 105 | ||
| 106 | for (i = 0; i < 0x100; i++) | |
| 107 | colortable_entry_set_value(machine->colortable, i, i); | |
| 108 | ||
| 109 | for (i = 0x101; i < 0x110; i += 2) | |
| 89 | 110 | { |
| 90 | int bit0,bit1,bit2,bit3,r,g,b; | |
| 111 | UINT16 ctabentry = ((i - 0x101) >> 1) | 0x100; | |
| 112 | colortable_entry_set_value(machine->colortable, i, ctabentry); | |
| 113 | } | |
| 114 | } | |
| 91 | 115 | |
| 92 | 116 | |
| 93 | /* red component */ | |
| 94 | bit0 = (color_prom[0] >> 4) & 0x01; | |
| 95 | bit1 = (color_prom[0] >> 5) & 0x01; | |
| 96 | bit2 = (color_prom[0] >> 6) & 0x01; | |
| 97 | bit3 = (color_prom[0] >> 7) & 0x01; | |
| 98 | r = 0x10 * bit0 + 0x21 * bit1 + 0x45 * bit2 + 0x89 * bit3; | |
| 99 | /* green component */ | |
| 100 | bit0 = (color_prom[0] >> 0) & 0x01; | |
| 101 | bit1 = (color_prom[0] >> 1) & 0x01; | |
| 102 | bit2 = (color_prom[0] >> 2) & 0x01; | |
| 103 | bit3 = (color_prom[0] >> 3) & 0x01; | |
| 104 | g = 0x10 * bit0 + 0x21 * bit1 + 0x45 * bit2 + 0x89 * bit3; | |
| 105 | /* blue component */ | |
| 106 | bit0 = (color_prom[256] >> 0) & 0x01; | |
| 107 | bit1 = (color_prom[256] >> 1) & 0x01; | |
| 108 | bit2 = (color_prom[256] >> 2) & 0x01; | |
| 109 | bit3 = (color_prom[256] >> 3) & 0x01; | |
| 110 | b = 0x10 * bit0 + 0x21 * bit1 + 0x45 * bit2 + 0x89 * bit3; | |
| 117 | static void kingofb_get_rgb_data(const UINT8 *color_prom, int i, int *r_data, int *g_data, int *b_data) | |
| 118 | { | |
| 119 | *r_data = color_prom[i + 0x000] & 0x0f; | |
| 120 | *g_data = color_prom[i + 0x100] & 0x0f; | |
| 121 | *b_data = color_prom[i + 0x200] & 0x0f; | |
| 122 | } | |
| 111 | 123 | |
| 112 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); | |
| 113 | color_prom++; | |
| 114 | } | |
| 115 | 124 | |
| 125 | static void ringking_get_rgb_data(const UINT8 *color_prom, int i, int *r_data, int *g_data, int *b_data) | |
| 126 | { | |
| 127 | *r_data = (color_prom[i + 0x000] >> 4) & 0x0f; | |
| 128 | *g_data = (color_prom[i + 0x000] >> 0) & 0x0f; | |
| 129 | *b_data = (color_prom[i + 0x100] >> 0) & 0x0f; | |
| 130 | } | |
| 116 | 131 | |
| 117 | /* the foreground chars directly map to primary colors */ | |
| 118 | for (i = 0;i < 8;i++) | |
| 119 | palette_set_color_rgb(machine,i+256,pal1bit(i >> 2),pal1bit(i >> 1),pal1bit(i >> 0)); | |
| 120 | 132 | |
| 121 | for (i = 0;i < TOTAL_COLORS(0)/2;i++) | |
| 122 | { | |
| 123 | COLOR(0,2*i+0) = 0; /* transparent */ | |
| 124 | COLOR(0,2*i+1) = 256 + i; | |
| 125 | } | |
| 133 | PALETTE_INIT( kingofb ) | |
| 134 | { | |
| 135 | palette_init_common(machine, color_prom, kingofb_get_rgb_data); | |
| 126 | 136 | } |
| 127 | 137 | |
| 138 | PALETTE_INIT( ringking ) | |
| 139 | { | |
| 140 | palette_init_common(machine, color_prom, ringking_get_rgb_data); | |
| 141 | } | |
| 142 | ||
| 128 | 143 | WRITE8_HANDLER( kingofb_videoram_w ) |
| 129 | 144 | { |
| 130 | 145 | videoram[offset] = data; |
| r1711 | r1712 | |
| 188 | 203 | |
| 189 | 204 | VIDEO_START( kingofb ) |
| 190 | 205 | { |
| 191 | bg_tilemap = tilemap_create(get_bg_tile_info, tilemap_scan_cols_flip_y, | |
| 192 | 16, 16, 16, 16); | |
| 206 | bg_tilemap = tilemap_create(get_bg_tile_info, tilemap_scan_cols_flip_y, 16, 16, 16, 16); | |
| 207 | fg_tilemap = tilemap_create(get_fg_tile_info, tilemap_scan_cols_flip_y, 8, 8, 32, 32); | |
| 193 | 208 | |
| 194 | fg_tilemap = tilemap_create(get_fg_tile_info, tilemap_scan_cols_flip_y, | |
| 195 | 8, 8, 32, 32); | |
| 196 | ||
| 197 | 209 | tilemap_set_transparent_pen(fg_tilemap, 0); |
| 198 | 210 | } |
| 199 | 211 |
| r1711 | r1712 | |
|---|---|---|
| 180 | 180 | static void update_pixel(int x, int y) |
| 181 | 181 | { |
| 182 | 182 | UINT8 color = nbmj8991_videoram[(y * Machine->screen[0].width) + x]; |
| 183 | *BITMAP_ADDR16(nbmj8991_tmpbitmap, y, x) = | |
| 183 | *BITMAP_ADDR16(nbmj8991_tmpbitmap, y, x) = | |
| 184 | 184 | } |
| 185 | 185 | |
| 186 | 186 | static TIMER_CALLBACK( blitter_timer_callback ) |
| r1711 | r1712 | |
|---|---|---|
| 115 | 115 | |
| 116 | 116 | colortable_entry_set_value(machine->colortable, 0x180 + i_swapped, ctabentry); |
| 117 | 117 | } |
| 118 | ||
| 119 | // for (i = 0;i < TOTAL_COLORS(2)/16;i++) | |
| 120 | // { | |
| 121 | // int j; | |
| 122 | ||
| 123 | // for (j = 0;j < 16;j++) | |
| 124 | // { | |
| 125 | // if (i & 8) | |
| 126 | // COLOR(2,i + j * (TOTAL_COLORS(2)/16)) = 128 + ((j & 0x0c) << 2) + (*color_prom & 0x0f); | |
| 127 | // else | |
| 128 | // COLOR(2,i + j * (TOTAL_COLORS(2)/16)) = 128 + ((j & 0x03) << 4) + (*color_prom & 0x0f); | |
| 129 | // } | |
| 130 | ||
| 131 | // color_prom++; | |
| 132 | // } | |
| 133 | 118 | } |
| 134 | 119 | |
| 135 | 120 |
| r1711 | r1712 | |
|---|---|---|
| 84 | 84 | |
| 85 | 85 | if (front>>8) color = front>>8; |
| 86 | 86 | else color = (back>>8) + 256; |
| 87 | *BITMAP_ADDR16(tmpbitmap, y, x) = | |
| 87 | *BITMAP_ADDR16(tmpbitmap, y, x) = | |
| 88 | 88 | |
| 89 | 89 | if (front&0xff) color = front&0xff; |
| 90 | 90 | else color = (back&0xff) + 256; |
| 91 | *BITMAP_ADDR16(tmpbitmap, y, x+1) = | |
| 91 | *BITMAP_ADDR16(tmpbitmap, y, x+1) = | |
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | |
| r1711 | r1712 | |
| 113 | 113 | { |
| 114 | 114 | int x,y; |
| 115 | 115 | |
| 116 | pen_t color = | |
| 116 | pen_t color = | |
| 117 | 117 | |
| 118 | 118 | for (y = 0;y < 256;y++) |
| 119 | 119 | { |
| r1711 | r1712 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | 2 | #include "deprecat.h" |
| 3 | 3 | #include "video/konamiic.h" |
| 4 | #include "f1gp.h" | |
| 4 | 5 | |
| 5 | 6 | |
| 6 | 7 | UINT16 *f1gp_spr1vram,*f1gp_spr2vram,*f1gp_spr1cgram,*f1gp_spr2cgram; |
| r1711 | r1712 | |
|---|---|---|
| 14 | 14 | { |
| 15 | 15 | int i; |
| 16 | 16 | |
| 17 | for ( i = 0; i < machine-> | |
| 17 | for ( i = 0; i < machine->config->total_colors; i++ ) | |
| 18 | 18 | { |
| 19 | 19 | int bit0,bit1,bit2,bit3,r,g,b; |
| 20 | 20 | |
| r1711 | r1712 | |
| 26 | 26 | r = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; |
| 27 | 27 | |
| 28 | 28 | /* green component */ |
| 29 | bit0 = (color_prom[machine->drv->total_colors] >> 0) & 0x01; | |
| 30 | bit1 = (color_prom[machine->drv->total_colors] >> 1) & 0x01; | |
| 31 | bit2 = (color_prom[machine->drv->total_colors] >> 2) & 0x01; | |
| 32 | bit3 = (color_prom[machine->drv->total_colors] >> 3) & 0x01; | |
| 29 | bit0 = (color_prom[machine->config->total_colors] >> 0) & 0x01; | |
| 30 | bit1 = (color_prom[machine->config->total_colors] >> 1) & 0x01; | |
| 31 | bit2 = (color_prom[machine->config->total_colors] >> 2) & 0x01; | |
| 32 | bit3 = (color_prom[machine->config->total_colors] >> 3) & 0x01; | |
| 33 | 33 | g = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; |
| 34 | 34 | |
| 35 | 35 | /* blue component */ |
| 36 | bit0 = (color_prom[2*machine->drv->total_colors] >> 0) & 0x01; | |
| 37 | bit1 = (color_prom[2*machine->drv->total_colors] >> 1) & 0x01; | |
| 38 | bit2 = (color_prom[2*machine->drv->total_colors] >> 2) & 0x01; | |
| 39 | bit3 = (color_prom[2*machine->drv->total_colors] >> 3) & 0x01; | |
| 36 | bit0 = (color_prom[2*machine->config->total_colors] >> 0) & 0x01; | |
| 37 | bit1 = (color_prom[2*machine->config->total_colors] >> 1) & 0x01; | |
| 38 | bit2 = (color_prom[2*machine->config->total_colors] >> 2) & 0x01; | |
| 39 | bit3 = (color_prom[2*machine->config->total_colors] >> 3) & 0x01; | |
| 40 | 40 | b = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; |
| 41 | 41 | |
| 42 | 42 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); |
| r1711 | r1712 | |
| 49 | 49 | { |
| 50 | 50 | int i; |
| 51 | 51 | |
| 52 | for ( i = 0; i < machine-> | |
| 52 | for ( i = 0; i < machine->config->total_colors; i++ ) | |
| 53 | 53 | { |
| 54 | 54 | int bit0,bit1,bit2,bit3,r,g,b; |
| 55 | 55 | |
| r1711 | r1712 | |
| 61 | 61 | r = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; |
| 62 | 62 | |
| 63 | 63 | /* green component */ |
| 64 | bit0 = (color_prom[machine->drv->total_colors] >> 0) & 0x11; | |
| 65 | bit1 = (color_prom[machine->drv->total_colors] >> 1) & 0x11; | |
| 66 | bit2 = (color_prom[machine->drv->total_colors] >> 2) & 0x11; | |
| 67 | bit3 = (color_prom[machine->drv->total_colors] >> 3) & 0x11; | |
| 64 | bit0 = (color_prom[machine->config->total_colors] >> 0) & 0x11; | |
| 65 | bit1 = (color_prom[machine->config->total_colors] >> 1) & 0x11; | |
| 66 | bit2 = (color_prom[machine->config->total_colors] >> 2) & 0x11; | |
| 67 | bit3 = (color_prom[machine->config->total_colors] >> 3) & 0x11; | |
| 68 | 68 | g = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; |
| 69 | 69 | |
| 70 | 70 | /* blue component */ |
| 71 | bit0 = (color_prom[2*machine->drv->total_colors] >> 0) & 0x11; | |
| 72 | bit1 = (color_prom[2*machine->drv->total_colors] >> 1) & 0x11; | |
| 73 | bit2 = (color_prom[2*machine->drv->total_colors] >> 2) & 0x11; | |
| 74 | bit3 = (color_prom[2*machine->drv->total_colors] >> 3) & 0x11; | |
| 71 | bit0 = (color_prom[2*machine->config->total_colors] >> 0) & 0x11; | |
| 72 | bit1 = (color_prom[2*machine->config->total_colors] >> 1) & 0x11; | |
| 73 | bit2 = (color_prom[2*machine->config->total_colors] >> 2) & 0x11; | |
| 74 | bit3 = (color_prom[2*machine->config->total_colors] >> 3) & 0x11; | |
| 75 | 75 | b = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; |
| 76 | 76 | |
| 77 | 77 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); |
| r1711 | r1712 | |
|---|---|---|
| 400 | 400 | sy -= (EXIDY440_VBSTART - EXIDY440_VBEND); |
| 401 | 401 | |
| 402 | 402 | /* draw line */ |
| 403 | draw_scanline8(bitmap, 0, y, (EXIDY440_HBSTART - EXIDY440_HBEND), &local_videoram[sy * 512], | |
| 403 | draw_scanline8(bitmap, 0, y, (EXIDY440_HBSTART - EXIDY440_HBEND), &local_videoram[sy * 512], NULL | |
| 404 | 404 | } |
| 405 | 405 | |
| 406 | 406 | /* draw the sprites */ |
| r1711 | r1712 | |
|---|---|---|
| 123 | 123 | { |
| 124 | 124 | int i; |
| 125 | 125 | |
| 126 | for (i = 0; i < 256; ++i) | |
| 126 | /* allocate the colortable */ | |
| 127 | machine->colortable = colortable_alloc(machine, 0x100); | |
| 128 | ||
| 129 | /* create a lookup table for the palette */ | |
| 130 | for (i = 0; i < 0x100; i++) | |
| 127 | 131 | { |
| 128 | int bit0, bit1, bit2, bit3; | |
| 129 | int r, g, b; | |
| 132 | int r = pal4bit(color_prom[i + 0x000]); | |
| 133 | int g = pal4bit(color_prom[i + 0x100]); | |
| 134 | int b = pal4bit(color_prom[i + 0x200]); | |
| 130 | 135 | |
| 131 | bit0 = BIT(color_prom[i], 0); | |
| 132 | bit1 = BIT(color_prom[i], 1); | |
| 133 | bit2 = BIT(color_prom[i], 2); | |
| 134 | bit3 = BIT(color_prom[i], 3); | |
| 135 | r = 0x0d * bit0 + 0x1e * bit1 + 0x41 * bit2 + 0x8a * bit3; | |
| 136 | colortable_palette_set_color(machine->colortable, i, MAKE_RGB(r, g, b)); | |
| 137 | } | |
| 136 | 138 | |
| 137 | bit0 = BIT(color_prom[i + 0x100], 0); | |
| 138 | bit1 = BIT(color_prom[i + 0x100], 1); | |
| 139 | bit2 = BIT(color_prom[i + 0x100], 2); | |
| 140 | bit3 = BIT(color_prom[i + 0x100], 3); | |
| 141 | g = 0x0d * bit0 + 0x1e * bit1 + 0x41 * bit2 + 0x8a * bit3; | |
| 139 | /* color_prom now points to the beginning of the lookup table */ | |
| 140 | color_prom += 0x300; | |
| 142 | 141 | |
| 143 | bit0 = BIT(color_prom[i + 0x200], 0); | |
| 144 | bit1 = BIT(color_prom[i + 0x200], 1); | |
| 145 | bit2 = BIT(color_prom[i + 0x200], 2); | |
| 146 | bit3 = BIT(color_prom[i + 0x200], 3); | |
| 147 | b = 0x0d * bit0 + 0x1e * bit1 + 0x41 * bit2 + 0x8a * bit3; | |
| 148 | ||
| 149 | palette_set_color(machine, i, MAKE_RGB(r, g, b)); | |
| 150 | } | |
| 151 | ||
| 152 | 142 | /* TODO */ |
| 153 | for (i = 0; i < | |
| 143 | for (i = 0; i < 0x100; i++ | |
| 154 | 144 | { |
| 155 | colortable[i] = (color_prom[i + 0x900] & 0xf) + 0x00; | |
| 145 | UINT8 ctabentry = (color_prom[i + 0x600] & 0x0f) | 0x00; | |
| 146 | colortable_entry_set_value(machine->colortable, i, ctabentry); | |
| 156 | 147 | } |
| 157 | 148 | } |
| 158 | 149 | |
| r1711 | r1712 | |
| 451 | 442 | else |
| 452 | 443 | color = ~ic162[prom_addr] & 0x3f; |
| 453 | 444 | |
| 454 | *BITMAP_ADDR16(bitmap, y, x) = | |
| 445 | *BITMAP_ADDR16(bitmap, y, x) = | |
| 455 | 446 | } |
| 456 | 447 | } |
| 457 | 448 | |
| r1711 | r1712 | |
| 590 | 581 | bit 2 -- 4.7kohm resistor -- RED |
| 591 | 582 | |
| 592 | 583 | ***************************************************************************/ |
| 584 | PALETTE_INIT( buggybjr ) | |
| 585 | { | |
| 586 | int i; | |
| 587 | ||
| 588 | for (i = 0; i < 0x100; i++) | |
| 589 | { | |
| 590 | int bit0, bit1, bit2, bit3, bit4; | |
| 591 | int r, g, b; | |
| 592 | ||
| 593 | bit0 = BIT(color_prom[i + 0x000], 0); | |
| 594 | bit1 = BIT(color_prom[i + 0x000], 1); | |
| 595 | bit2 = BIT(color_prom[i + 0x000], 2); | |
| 596 | bit3 = BIT(color_prom[i + 0x000], 3); | |
| 597 | bit4 = BIT(color_prom[i + 0x300], 2); | |
| 598 | r = 0x06 * bit4 + 0x0d * bit0 + 0x1e * bit1 + 0x41 * bit2 + 0x8a * bit3; | |
| 599 | ||
| 600 | bit0 = BIT(color_prom[i + 0x100], 0); | |
| 601 | bit1 = BIT(color_prom[i + 0x100], 1); | |
| 602 | bit2 = BIT(color_prom[i + 0x100], 2); | |
| 603 | bit3 = BIT(color_prom[i + 0x100], 3); | |
| 604 | bit4 = BIT(color_prom[i + 0x300], 1); | |
| 605 | g = 0x06 * bit4 + 0x0d * bit0 + 0x1e * bit1 + 0x41 * bit2 + 0x8a * bit3; | |
| 606 | ||
| 607 | bit0 = BIT(color_prom[i + 0x200], 0); | |
| 608 | bit1 = BIT(color_prom[i + 0x200], 1); | |
| 609 | bit2 = BIT(color_prom[i + 0x200], 2); | |
| 610 | bit3 = BIT(color_prom[i + 0x200], 3); | |
| 611 | bit4 = BIT(color_prom[i + 0x300], 0); | |
| 612 | b = 0x06 * bit4 + 0x0d * bit0 + 0x1e * bit1 + 0x41 * bit2 + 0x8a * bit3; | |
| 613 | ||
| 614 | palette_set_color(machine, i, MAKE_RGB(r, g, b)); | |
| 615 | } | |
| 616 | } | |
| 617 | ||
| 593 | 618 | PALETTE_INIT( buggyboy ) |
| 594 | 619 | { |
| 595 | 620 | int i; |
| 596 | 621 | |
| 597 | for (i = 0; i < 256; ++i) | |
| 622 | /* allocate the colortable */ | |
| 623 | machine->colortable = colortable_alloc(machine, 0x100); | |
| 624 | ||
| 625 | /* create a lookup table for the palette */ | |
| 626 | for (i = 0; i < 0x100; i++) | |
| 598 | 627 | { |
| 599 | 628 | int bit0, bit1, bit2, bit3, bit4; |
| 600 | 629 | int r, g, b; |
| 601 | 630 | |
| 602 | bit0 = BIT(color_prom[i], 0); | |
| 603 | bit1 = BIT(color_prom[i], 1); | |
| 604 | bit2 = BIT(color_prom[i], 2); | |
| 605 | bit3 = BIT(color_prom[i], 3); | |
| 631 | bit0 = BIT(color_prom[i + 0x000], 0); | |
| 632 | bit1 = BIT(color_prom[i + 0x000], 1); | |
| 633 | bit2 = BIT(color_prom[i + 0x000], 2); | |
| 634 | bit3 = BIT(color_prom[i + 0x000], 3); | |
| 606 | 635 | bit4 = BIT(color_prom[i + 0x300], 2); |
| 607 | 636 | r = 0x06 * bit4 + 0x0d * bit0 + 0x1e * bit1 + 0x41 * bit2 + 0x8a * bit3; |
| 608 | 637 | |
| r1711 | r1712 | |
| 620 | 649 | bit4 = BIT(color_prom[i + 0x300], 0); |
| 621 | 650 | b = 0x06 * bit4 + 0x0d * bit0 + 0x1e * bit1 + 0x41 * bit2 + 0x8a * bit3; |
| 622 | 651 | |
| 623 | palette_set_color(machine, i, MAKE_RGB(r,g,b)); | |
| 652 | colortable_palette_set_color(machine->colortable, i, MAKE_RGB(r, g, b)); | |
| 624 | 653 | } |
| 625 | 654 | |
| 655 | /* color_prom now points to the beginning of the lookup table */ | |
| 656 | color_prom += 0x400; | |
| 657 | ||
| 626 | 658 | /* Characters use colours 192-255 */ |
| 627 | for (i = 0; i < | |
| 659 | for (i = 0; i < 0x100; i++ | |
| 628 | 660 | { |
| 629 | colortable[i] = 192 + color_prom[i + 0x400] + ((i & 0xc0) >> 2); | |
| 661 | UINT8 ctabentry = 0xc0 | (((i & 0xc0) >> 2)) | (color_prom[i] & 0x0f); | |
| 662 | colortable_entry_set_value(machine->colortable, i, ctabentry); | |
| 630 | 663 | } |
| 631 | 664 | } |
| 632 | 665 |
| r1711 | r1712 | |
|---|---|---|
| 1216 | 1216 | decodegfx(machine->gfx[gfx_index], data, 0, machine->gfx[gfx_index]->total_elements); |
| 1217 | 1217 | |
| 1218 | 1218 | /* set the color information */ |
| 1219 | if (machine->drv->color_table_len) | |
| 1220 | machine->gfx[gfx_index]->total_colors = machine->drv->color_table_len / (1 << bpp); | |
| 1221 | else | |
| 1222 | machine->gfx[gfx_index]->total_colors = machine->drv->total_colors / (1 << bpp); | |
| 1219 | machine->gfx[gfx_index]->total_colors = machine->config->total_colors / (1 << bpp); | |
| 1223 | 1220 | } |
| 1224 | 1221 | |
| 1225 | 1222 | |
| r1711 | r1712 | |
| 2548 | 2545 | fatalerror("Unknown plane_order"); |
| 2549 | 2546 | } |
| 2550 | 2547 | |
| 2551 | if (VERBOSE && !(machine-> | |
| 2548 | if (VERBOSE && !(machine->config->video_attributes & VIDEO_HAS_SHADOWS)) | |
| 2552 | 2549 | popmessage("driver should use VIDEO_HAS_SHADOWS"); |
| 2553 | 2550 | |
| 2554 | 2551 | /* prepare shadow draw table */ |
| r1711 | r1712 | |
| 3041 | 3038 | fatalerror("Unsupported plane_order"); |
| 3042 | 3039 | } |
| 3043 | 3040 | |
| 3044 | if (VERBOSE && !(machine-> | |
| 3041 | if (VERBOSE && !(machine->config->video_attributes & VIDEO_HAS_SHADOWS)) | |
| 3045 | 3042 | popmessage("driver should use VIDEO_HAS_SHADOWS"); |
| 3046 | 3043 | |
| 3047 | 3044 | |
| r1711 | r1712 | |
| 3787 | 3784 | { |
| 3788 | 3785 | if (machine->screen[0].format == BITMAP_FORMAT_RGB32) |
| 3789 | 3786 | { |
| 3790 | if ((machine-> | |
| 3787 | if ((machine->config->video_attributes & (VIDEO_HAS_SHADOWS|VIDEO_HAS_HIGHLIGHTS)) != VIDEO_HAS_SHADOWS+VIDEO_HAS_HIGHLIGHTS) | |
| 3791 | 3788 | popmessage("driver missing SHADOWS or HIGHLIGHTS flag"); |
| 3792 | 3789 | } |
| 3793 | 3790 | else |
| 3794 | 3791 | { |
| 3795 | if (!(machine-> | |
| 3792 | if (!(machine->config->video_attributes & VIDEO_HAS_SHADOWS)) | |
| 3796 | 3793 | popmessage("driver should use VIDEO_HAS_SHADOWS"); |
| 3797 | 3794 | } |
| 3798 | 3795 | } |
| r1711 | r1712 | |
| 3929 | 3926 | fatalerror("Unsupported layout"); |
| 3930 | 3927 | } |
| 3931 | 3928 | |
| 3932 | if (VERBOSE && !(machine-> | |
| 3929 | if (VERBOSE && !(machine->config->video_attributes & VIDEO_HAS_SHADOWS)) | |
| 3933 | 3930 | popmessage("driver should use VIDEO_HAS_SHADOWS"); |
| 3934 | 3931 | |
| 3935 | 3932 | /* prepare shadow draw table */ |
| r1711 | r1712 | |
| 4231 | 4228 | |
| 4232 | 4229 | VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS |
| 4233 | 4230 | */ |
| 4234 | if (machine-> | |
| 4231 | if (machine->config->video_attributes & VIDEO_HAS_SHADOWS) | |
| 4235 | 4232 | { |
| 4236 | if (bitmap->bpp == 32 && (machine-> | |
| 4233 | if (bitmap->bpp == 32 && (machine->config->video_attributes & VIDEO_HAS_HIGHLIGHTS)) | |
| 4237 | 4234 | shdmask = 3; // enable all shadows and highlights |
| 4238 | 4235 | else |
| 4239 | 4236 | shdmask = 0; // enable default shadows |
| r1711 | r1712 | |
| 6490 | 6487 | if (!(dirty[0]|dirty[1]|dirty[2]|dirty[3]|dirty[4]|dirty[5]|dirty[6]|dirty[7])) return(0); |
| 6491 | 6488 | } |
| 6492 | 6489 | |
| 6493 | pal_ptr = machine-> | |
| 6490 | pal_ptr = machine-> | |
| 6494 | 6491 | src_gfx = machine->gfx[K056832_gfxnum]; |
| 6495 | 6492 | src_base = src_gfx->gfxdata; |
| 6496 | 6493 | src_pitch = src_gfx->line_modulo; |
| r1711 | r1712 | |
| 8285 | 8282 | linedata_offs += line_start * linedata_adv; // pre-advance line info offset for the clipped region |
| 8286 | 8283 | |
| 8287 | 8284 | // load physical palette base |
| 8288 | pal_base = machine-> | |
| 8285 | pal_base = machine-> | |
| 8289 | 8286 | |
| 8290 | 8287 | // walk the target bitmap within the visible area vertically or horizontally, one line at a time |
| 8291 | 8288 | for (line_pos=line_start; line_pos<=line_end; linedata_offs+=linedata_adv, line_pos++) |
| r1711 | r1712 | |
|---|---|---|
| 248 | 248 | if (layers_ctrl&1) |
| 249 | 249 | for (i = 0; i <= 1; i++) |
| 250 | 250 | tilemap_draw(bitmap, cliprect, tilemap_0, i, i); |
| 251 | else fillbitmap(bitmap,machine->pens[0],cliprect); | |
| 251 | else | |
| 252 | fillbitmap(bitmap,0,cliprect); | |
| 252 | 253 | |
| 253 | 254 | if (layers_ctrl&2) |
| 254 | 255 | for (i = 0; i <= 1; i++) |
| r1711 | r1712 | |
|---|---|---|
| 292 | 292 | break; |
| 293 | 293 | |
| 294 | 294 | case 0x04: |
| 295 | if (Machine-> | |
| 295 | if (Machine->config->total_colors >= 256 * 8) | |
| 296 | 296 | update_palette_bank((gfx_palettebank & ~4) | (val << 2)); |
| 297 | 297 | break; |
| 298 | 298 |
| r1711 | r1712 | |
|---|---|---|
| 21 | 21 | { |
| 22 | 22 | int i; |
| 23 | 23 | |
| 24 | for (i = 0; i < machine-> | |
| 24 | for (i = 0; i < machine->config->total_colors; i++) | |
| 25 | 25 | { |
| 26 | 26 | int col; |
| 27 | 27 | |
| 28 | col = (color_prom[i] << 8) + color_prom[i + machine->drv->total_colors]; | |
| 29 | ||
| 30 | palette_set_color_rgb(machine,i,pal5bit(col >> 10),pal5bit(col >> 5),pal5bit(col >> 0)); | |
| 28 | col = (color_prom[i] << 8) + color_prom[i + machine->config->total_colors]; | |
| 29 | palette_set_color_rgb(machine,i ^ 0x0f,pal5bit(col >> 10),pal5bit(col >> 5),pal5bit(col >> 0)); | |
| 31 | 30 | } |
| 32 | ||
| 33 | for (i = 0; i < machine->drv->total_colors; i++) | |
| 34 | { | |
| 35 | colortable[i] = i ^ 0x0f; | |
| 36 | } | |
| 37 | 31 | } |
| 38 | 32 | |
| 39 | 33 | |
| r1711 | r1712 | |
| 41 | 35 | { |
| 42 | 36 | int i; |
| 43 | 37 | |
| 44 | for (i = 0; i < machine-> | |
| 38 | for (i = 0; i < machine->config->total_colors; i++) | |
| 45 | 39 | { |
| 46 | 40 | int col; |
| 47 | 41 | |
| 48 | col = (color_prom[i] << 8) + color_prom[i + machine-> | |
| 42 | col = (color_prom[i] << 8) + color_prom[i + machine->config->total_colors]; | |
| 49 | 43 | palette_set_color_rgb(machine,i,pal5bit(col >> 10),pal5bit(col >> 5),pal5bit(col >> 0)); |
| 50 | 44 | } |
| 51 | 45 | } |
| r1711 | r1712 | |
| 286 | 280 | int offs, col; |
| 287 | 281 | int xoffs, yoffs; |
| 288 | 282 | |
| 289 | int total_color_codes = machine-> | |
| 283 | int total_color_codes = machine->config->gfxdecodeinfo[0].total_color_codes; | |
| 290 | 284 | |
| 291 | 285 | int ctrl = spriteram16[ 0x600/2 ]; |
| 292 | 286 | int ctrl2 = spriteram16[ 0x602/2 ]; |
| r0 | r1712 | |
|---|---|---|
| 1 | /*************************************************************************** | |
| 2 | ||
| 3 | Mad Alien (c) 1980 Data East Corporation | |
| 4 | ||
| 5 | Original driver by Norbert Kehrer (February 2004) | |
| 6 | ||
| 7 | ***************************************************************************/ | |
| 8 | ||
| 9 | #include "driver.h" | |
| 10 | #include "video/mc6845.h" | |
| 11 | #include "madalien.h" | |
| 12 | ||
| 13 | ||
| 14 | #define PIXEL_CLOCK (MADALIEN_MAIN_CLOCK / 2) | |
| 15 | ||
| 16 | ||
| 17 | UINT8 *madalien_videoram; | |
| 18 | UINT8 *madalien_charram; | |
| 19 | ||
| 20 | UINT8 *madalien_video_flags; | |
| 21 | UINT8 *madalien_video_control; /* bit #0 is set during player 2's turn, bit #3 is set during CRTC initialization */ | |
| 22 | UINT8 *madalien_scroll; | |
| 23 | UINT8 *madalien_edge1_pos; | |
| 24 | UINT8 *madalien_edge2_pos; | |
| 25 | UINT8 *madalien_headlight_pos; | |
| 26 | ||
| 27 | static mc6845_t *mc6845; | |
| 28 | ||
| 29 | static tilemap *tilemap_fg; | |
| 30 | ||
| 31 | static tilemap *tilemap_edge1[4]; | |
| 32 | static tilemap *tilemap_edge2[4]; | |
| 33 | ||
| 34 | static mame_bitmap *headlight_bitmap; | |
| 35 | ||
| 36 | ||
| 37 | static PALETTE_INIT( madalien ) | |
| 38 | { | |
| 39 | int i; | |
| 40 | ||
| 41 | /* allocate the colortable */ | |
| 42 | machine->colortable = colortable_alloc(machine, 0x20); | |
| 43 | ||
| 44 | for (i = 0; i < 0x20; i++) | |
| 45 | { | |
| 46 | int r = 0; | |
| 47 | int g = 0; | |
| 48 | int b = 0; | |
| 49 | ||
| 50 | if (BIT(color_prom[i], 0)) | |
| 51 | r += 0x3f; | |
| 52 | if (BIT(color_prom[i], 1)) | |
| 53 | r += 0xc0; | |
| 54 | if (BIT(color_prom[i], 2)) | |
| 55 | g += 0x3f; | |
| 56 | if (BIT(color_prom[i], 3)) | |
| 57 | g += 0xc0; | |
| 58 | if (BIT(color_prom[i], 4)) | |
| 59 | b += 0x3f; | |
| 60 | if (BIT(color_prom[i], 5)) | |
| 61 | b += 0xc0; | |
| 62 | ||
| 63 | colortable_palette_set_color(machine->colortable, i, MAKE_RGB(r, g, b)); | |
| 64 | } | |
| 65 | ||
| 66 | for (i = 0; i < 0x10; i++) | |
| 67 | colortable_entry_set_value(machine->colortable, i, i); | |
| 68 | ||
| 69 | for (i = 0x10; i < 0x20; i++) | |
| 70 | { | |
| 71 | UINT8 ctabentry = i - 0x10; | |
| 72 | ||
| 73 | if (BIT((i - 0x10), 1)) | |
| 74 | ctabentry = ctabentry ^ 0x06; | |
| 75 | ||
| 76 | if (BIT((i - 0x10), 2)) | |
| 77 | ctabentry = ctabentry ^ 0x06; | |
| 78 | ||
| 79 | colortable_entry_set_value(machine->colortable, i, ctabentry); | |
| 80 | } | |
| 81 | ||
| 82 | for (i = 0x20; i < 0x30; i++) | |
| 83 | colortable_entry_set_value(machine->colortable, i, (i - 0x20) | 0x10); | |
| 84 | } | |
| 85 | ||
| 86 | ||
| 87 | WRITE8_HANDLER( madalien_mc6845_address_w ) | |
| 88 | { | |
| 89 | mc6845_address_w(mc6845, data); | |
| 90 | } | |
| 91 | ||
| 92 | READ8_HANDLER( madalien_mc6845_register_r ) | |
| 93 | { | |
| 94 | return mc6845_register_r(mc6845); | |
| 95 | } | |
| 96 | ||
| 97 | WRITE8_HANDLER( madalien_mc6845_register_w ) | |
| 98 | { | |
| 99 | mc6845_register_w(mc6845, data); | |
| 100 | } | |
| 101 | ||
| 102 | ||
| 103 | INLINE int scan_helper(int col, int row, int section) | |
| 104 | { | |
| 105 | return (section << 8) | ((~col & 0x0f) << 3) | row; | |
| 106 | } | |
| 107 | ||
| 108 | ||
| 109 | static TILEMAP_MAPPER( scan_mode0 ) | |
| 110 | { | |
| 111 | return scan_helper(col, row, 0); | |
| 112 | } | |
| 113 | static TILEMAP_MAPPER( scan_mode1 ) | |
| 114 | { | |
| 115 | return scan_helper(col, row, 1); | |
| 116 | } | |
| 117 | static TILEMAP_MAPPER( scan_mode2 ) | |
| 118 | { | |
| 119 | return scan_helper(col, row, BIT(col, 4) ? 1 : 0); | |
| 120 | } | |
| 121 | static TILEMAP_MAPPER( scan_mode3 ) | |
| 122 | { | |
| 123 | return scan_helper(col, row, BIT(col, 4) ? 0 : 1); | |
| 124 | } | |
| 125 | ||
| 126 | ||
| 127 | static TILE_GET_INFO( get_tile_info_BG_1 ) | |
| 128 | { | |
| 129 | UINT8 *map = memory_region(REGION_USER1) + ((*madalien_video_flags & 0x08) << 6); | |
| 130 | ||
| 131 | SET_TILE_INFO(1, map[tile_index], BIT(*madalien_video_flags, 2) ? 2 : 0, 0); | |
| 132 | } | |
| 133 | ||
| 134 | ||
| 135 | static TILE_GET_INFO( get_tile_info_BG_2 ) | |
| 136 | { | |
| 137 | UINT8 *map = memory_region(REGION_USER1) + ((*madalien_video_flags & 0x08) << 6) + 0x80; | |
| 138 | ||
| 139 | SET_TILE_INFO(1, map[tile_index], BIT(*madalien_video_flags, 2) ? 2 : 0, 0); | |
| 140 | } | |
| 141 | ||
| 142 | ||
| 143 | static TILE_GET_INFO( get_tile_info_FG ) | |
| 144 | { | |
| 145 | SET_TILE_INFO(0, madalien_videoram[tile_index], 0, 0); | |
| 146 | } | |
| 147 | ||
| 148 | ||
| 149 | static VIDEO_START( madalien ) | |
| 150 | { | |
| 151 | int i; | |
| 152 | ||
| 153 | static const tilemap_mapper_callback scan_functions[4] = | |
| 154 | { | |
| 155 | scan_mode0, scan_mode1, scan_mode2, scan_mode3 | |
| 156 | }; | |
| 157 | ||
| 158 | static const int tilemap_cols[4] = | |
| 159 | { | |
| 160 | 16, 16, 32, 32 | |
| 161 | }; | |
| 162 | ||
| 163 | mc6845 = devtag_get_token(machine, MC6845, "crtc"); | |
| 164 | ||
| 165 | tilemap_fg = tilemap_create(get_tile_info_FG, tilemap_scan_cols_flip_x, 8, 8, 32, 32); | |
| 166 | tilemap_set_transparent_pen(tilemap_fg, 0); | |
| 167 | tilemap_set_scrolldx(tilemap_fg, 0, 0x50); | |
| 168 | tilemap_set_scrolldy(tilemap_fg, 0, 0x20); | |
| 169 | ||
| 170 | for (i = 0; i < 4; i++) | |
| 171 | { | |
| 172 | tilemap_edge1[i] = tilemap_create(get_tile_info_BG_1, scan_functions[i], 16, 16, tilemap_cols[i], 8); | |
| 173 | tilemap_set_scrolldx(tilemap_edge1[i], 0, 0x50); | |
| 174 | tilemap_set_scrolldy(tilemap_edge1[i], 0, 0x20); | |
| 175 | ||
| 176 | tilemap_edge2[i] = tilemap_create(get_tile_info_BG_2, scan_functions[i], 16, 16, tilemap_cols[i], 8); | |
| 177 | tilemap_set_scrolldx(tilemap_edge2[i], 0, 0x50); | |
| 178 | tilemap_set_scrolldy(tilemap_edge2[i], 0, machine->screen[0].height - 256); | |
| 179 | } | |
| 180 | ||
| 181 | headlight_bitmap = auto_bitmap_alloc(128, 128, BITMAP_FORMAT_INDEXED16); | |
| 182 | ||
| 183 | drawgfx(headlight_bitmap, machine->gfx[2], 0, 0, 0, 0, 0x00, 0x00, NULL, TRANSPARENCY_NONE, 0); | |
| 184 | drawgfx(headlight_bitmap, machine->gfx[2], 0, 0, 0, 1, 0x00, 0x40, NULL, TRANSPARENCY_NONE, 0); | |
| 185 | } | |
| 186 | ||
| 187 | ||
| 188 | static void draw_edges(mame_bitmap *bitmap, const rectangle *cliprect, int flip_screen, int scroll_mode) | |
| 189 | { | |
| 190 | rectangle clip_edge1; | |
| 191 | rectangle clip_edge2; | |
| 192 | ||
| 193 | clip_edge1 = *cliprect; | |
| 194 | clip_edge2 = *cliprect; | |
| 195 | ||
| 196 | if (flip_screen) | |
| 197 | { | |
| 198 | clip_edge1.min_y = *madalien_edge1_pos | 0x80; | |
| 199 | clip_edge2.max_y = (*madalien_edge2_pos & 0x7f) ^ 0x7f; | |
| 200 | } | |
| 201 | else | |
| 202 | { | |
| 203 | clip_edge1.max_y = (*madalien_edge1_pos & 0x7f) ^ 0x7f; | |
| 204 | clip_edge2.min_y = *madalien_edge2_pos | 0x80; | |
| 205 | } | |
| 206 | ||
| 207 | sect_rect(&clip_edge1, cliprect); | |
| 208 | sect_rect(&clip_edge2, cliprect); | |
| 209 | ||
| 210 | tilemap_mark_all_tiles_dirty(tilemap_edge1[scroll_mode]); | |
| 211 | tilemap_mark_all_tiles_dirty(tilemap_edge2[scroll_mode]); | |
| 212 | ||
| 213 | tilemap_set_flip(tilemap_edge1[scroll_mode], flip_screen ? TILEMAP_FLIPX | TILEMAP_FLIPY : 0); | |
| 214 | tilemap_set_scrollx(tilemap_edge1[scroll_mode], 0, -(*madalien_scroll & 0xfc)); | |
| 215 | tilemap_set_scrolly(tilemap_edge1[scroll_mode], 0, *madalien_edge1_pos & 0x7f); | |
| 216 | ||
| 217 | tilemap_set_flip(tilemap_edge2[scroll_mode], flip_screen ? TILEMAP_FLIPX : TILEMAP_FLIPY); | |
| 218 | tilemap_set_scrollx(tilemap_edge2[scroll_mode], 0, -(*madalien_scroll & 0xfc)); | |
| 219 | tilemap_set_scrolly(tilemap_edge2[scroll_mode], 0, *madalien_edge2_pos & 0x7f); | |
| 220 | ||
| 221 | tilemap_draw(bitmap, &clip_edge1, tilemap_edge1[scroll_mode], 0, 0); | |
| 222 | tilemap_draw(bitmap, &clip_edge2, tilemap_edge2[scroll_mode], 0, 0); | |
| 223 | } | |
| 224 | ||
| 225 | ||
| 226 | static void draw_headlight(mame_bitmap *bitmap, const rectangle *cliprect, int flip_screen) | |
| 227 | { | |
| 228 | if (BIT(*madalien_video_flags, 0)) | |
| 229 | { | |
| 230 | UINT8 y; | |
| 231 | ||
| 232 | for (y = 0; y < 0x80; y++) | |
| 233 | { | |
| 234 | UINT8 x; | |
| 235 | UINT8 hy = y - *madalien_headlight_pos; | |
| 236 | ||
| 237 | if (flip_screen) | |
| 238 | hy = ~hy; | |
| 239 | ||
| 240 | if ((hy < cliprect->min_y) || (hy > cliprect->max_y)) | |
| 241 | continue; | |
| 242 | ||
| 243 | for (x = 0; x < 0x80; x++) | |
| 244 | { | |
| 245 | UINT8 hx = x; | |
| 246 | ||
| 247 | if (flip_screen) | |
| 248 | hx = ~hx; | |
| 249 | ||
| 250 | if ((hx < cliprect->min_x) || (hx > cliprect->max_x)) | |
| 251 | continue; | |
| 252 | ||
| 253 | if (*BITMAP_ADDR16(headlight_bitmap, y, x) != 0) | |
| 254 | *BITMAP_ADDR16(bitmap, hy, hx) |= 8; | |
| 255 | } | |
| 256 | } | |
| 257 | } | |
| 258 | } | |
| 259 | ||
| 260 | ||
| 261 | static void draw_foreground(running_machine *machine, mame_bitmap *bitmap, const rectangle *cliprect, int flip_screen) | |
| 262 | { | |
| 263 | int i; | |
| 264 | ||
| 265 | for (i = 0; i < 256; i++) | |
| 266 | decodechar(machine->gfx[0], i, madalien_charram); | |
| 267 | ||
| 268 | tilemap_mark_all_tiles_dirty(tilemap_fg); | |
| 269 | tilemap_set_flip(tilemap_fg, flip_screen ? TILEMAP_FLIPX | TILEMAP_FLIPY : 0); | |
| 270 | tilemap_draw(bitmap, cliprect, tilemap_fg, 0, 0); | |
| 271 | } | |
| 272 | ||
| 273 | ||
| 274 | static VIDEO_UPDATE( madalien ) | |
| 275 | { | |
| 276 | int flip_screen = BIT(readinputportbytag("DIP"), 6) && BIT(*madalien_video_control, 0); | |
| 277 | ||
| 278 | // bits #0 and #1 define scrolling mode | |
| 279 | // | |
| 280 | // mode 0 - cycle over map section A | |
| 281 | // mode 1 - cycle over map section B | |
| 282 | // | |
| 283 | // mode 2 - transition from B to A | |
| 284 | // mode 3 - transition from A to B | |
| 285 | int scroll_mode = *madalien_scroll & 3; | |
| 286 | ||
| 287 | fillbitmap(bitmap, machine->pens[0], cliprect); | |
| 288 | draw_edges(bitmap, cliprect, flip_screen, scroll_mode); | |
| 289 | draw_foreground(machine, bitmap, cliprect, flip_screen); | |
| 290 | ||
| 291 | /* highlight section A (outside of tunnels) */ | |
| 292 | ||
| 293 | if (scroll_mode != 1) | |
| 294 | { | |
| 295 | int x; | |
| 296 | int y; | |
| 297 | ||
| 298 | int min_x = 0; | |
| 299 | int max_x = 0xff; | |
| 300 | ||
| 301 | if (scroll_mode == 2) | |
| 302 | min_x = (*madalien_scroll & 0xfc); | |
| 303 | ||
| 304 | if (scroll_mode == 3) | |
| 305 | max_x = (*madalien_scroll & 0xfc) - 1; | |
| 306 | ||
| 307 | if (flip_screen) | |
| 308 | { | |
| 309 | int max_x_save = max_x; | |
| 310 | max_x = 0xff - min_x; | |
| 311 | min_x = 0xff - max_x_save; | |
| 312 | } | |
| 313 | ||
| 314 | for (y = cliprect->min_y; y <= cliprect->max_y ; y++) | |
| 315 | for (x = min_x; x <= max_x; x++) | |
| 316 | if ((x >= cliprect->min_x) && (x <= cliprect->max_x)) | |
| 317 | *BITMAP_ADDR16(bitmap, y, x) |= 8; | |
| 318 | } | |
| 319 | ||
| 320 | draw_headlight(bitmap, cliprect, flip_screen); | |
| 321 | ||
| 322 | return 0; | |
| 323 | } | |
| 324 | ||
| 325 | ||
| 326 | static const UINT32 headlight_xoffset[] = | |
| 327 | { | |
| 328 | STEP8(0x78, 1), | |
| 329 | STEP8(0x70, 1), | |
| 330 | STEP8(0x68, 1), | |
| 331 | STEP8(0x60, 1), | |
| 332 | STEP8(0x58, 1), | |
| 333 | STEP8(0x50, 1), | |
| 334 | STEP8(0x48, 1), | |
| 335 | STEP8(0x40, 1), | |
| 336 | STEP8(0x38, 1), | |
| 337 | STEP8(0x30, 1), | |
| 338 | STEP8(0x28, 1), | |
| 339 | STEP8(0x20, 1), | |
| 340 | STEP8(0x18, 1), | |
| 341 | STEP8(0x10, 1), | |
| 342 | STEP8(0x08, 1), | |
| 343 | STEP8(0x00, 1), | |
| 344 | }; | |
| 345 | ||
| 346 | static const UINT32 headlight_yoffset[] = | |
| 347 | { | |
| 348 | STEP32(0x0000, 0x80), STEP32(0x1000, 0x80) | |
| 349 | }; | |
| 350 | ||
| 351 | static const gfx_layout headlightlayout = | |
| 352 | { | |
| 353 | 128, 64, | |
| 354 | 1, | |
| 355 | 1, | |
| 356 | { 0 }, | |
| 357 | EXTENDED_XOFFS, | |
| 358 | EXTENDED_YOFFS, | |
| 359 | 0x2000, | |
| 360 | headlight_xoffset, | |
| 361 | headlight_yoffset | |
| 362 | }; | |
| 363 | ||
| 364 | static const gfx_layout charlayout = | |
| 365 | { | |
| 366 | 8, 8, | |
| 367 | 256, | |
| 368 | 3, | |
| 369 | { 2*0x4000, 1*0x4000, 0*0x4000 }, | |
| 370 | { STEP8(0, 1) }, | |
| 371 | { STEP8(0, 8) }, | |
| 372 | 64 | |
| 373 | }; | |
| 374 | ||
| 375 | static const gfx_layout tilelayout = | |
| 376 | { | |
| 377 | 16, 16, | |
| 378 | RGN_FRAC(1,3), | |
| 379 | 3, | |
| 380 | { RGN_FRAC(2,3), RGN_FRAC(1,3), RGN_FRAC(0,3) }, | |
| 381 | { | |
| 382 | 0x30*8+4, 0x30*8+5, 0x30*8+6, 0x30*8+7, | |
| 383 | 0x20*8+4, 0x20*8+5, 0x20*8+6, 0x20*8+7, | |
| 384 | 0x10*8+4, 0x10*8+5, 0x10*8+6, 0x10*8+7, | |
| 385 | 0x00*8+4, 0x00*8+5, 0x00*8+6, 0x00*8+7 | |
| 386 | }, | |
| 387 | { STEP16(0, 8) }, | |
| 388 | 0x200 | |
| 389 | }; | |
| 390 | ||
| 391 | ||
| 392 | static GFXDECODE_START( madalien ) | |
| 393 | GFXDECODE_ENTRY( 0, 0, charlayout, 0x20, 2 ) /* foreground characters, stored in RAM */ | |
| 394 | GFXDECODE_ENTRY( REGION_GFX1, 0, tilelayout, 0, 4 ) | |
| 395 | GFXDECODE_ENTRY( REGION_GFX2, 0, headlightlayout, 0, 1 ) | |
| 396 | GFXDECODE_END | |
| 397 | ||
| 398 | ||
| 399 | static const mc6845_interface mc6845_intf = | |
| 400 | { | |
| 401 | 0, /* screen we are acting on */ | |
| 402 | PIXEL_CLOCK / 8, /* the clock of the chip */ | |
| 403 | 8, /* number of pixels per video memory address */ | |
| 404 | NULL, /* before pixel update callback */ | |
| 405 | NULL, /* row update callback */ | |
| 406 | NULL, /* after pixel update callback */ | |
| 407 | NULL /* call back for display state changes */ | |
| 408 | }; | |
| 409 | ||
| 410 | ||
| 411 | MACHINE_DRIVER_START( madalien_video ) | |
| 412 | ||
| 413 | ||
| 414 | MDRV_SCREEN_ADD("main", RASTER) | |
| 415 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, 336, 0, 256, 288, 0, 256) | |
| 416 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 417 | ||
| 418 | MDRV_GFXDECODE(madalien) | |
| 419 | MDRV_PALETTE_LENGTH(0x30) | |
| 420 | MDRV_PALETTE_INIT(madalien) | |
| 421 | MDRV_VIDEO_START(madalien) | |
| 422 | MDRV_VIDEO_UPDATE(madalien) | |
| 423 | ||
| 424 | MDRV_DEVICE_ADD("crtc", MC6845) | |
| 425 | MDRV_DEVICE_CONFIG(mc6845_intf) | |
| 426 | MACHINE_DRIVER_END |
| r1711 | r1712 | |
|---|---|---|
| 202 | 202 | |
| 203 | 203 | MACHINE_DRIVER_START( crgolf_video ) |
| 204 | 204 | |
| 205 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 206 | 205 | MDRV_VIDEO_START(crgolf) |
| 207 | 206 | MDRV_VIDEO_UPDATE(crgolf) |
| 208 | 207 | |
| 208 | MDRV_SCREEN_ADD("main", RASTER) | |
| 209 | 209 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 210 | 210 | MDRV_SCREEN_SIZE(256, 256) |
| 211 | 211 | MDRV_SCREEN_VISIBLE_AREA(0, 255, 8, 247) |
| 212 | 212 | MDRV_SCREEN_REFRESH_RATE(60) |
| 213 | MDRV_SCREEN_VBLANK_TIME( | |
| 213 | MDRV_SCREEN_VBLANK_TIME( | |
| 214 | 214 | MACHINE_DRIVER_END |
| r1711 | r1712 | |
|---|---|---|
| 47 | 47 | int i; |
| 48 | 48 | |
| 49 | 49 | |
| 50 | for (i = 0;i < machine-> | |
| 50 | for (i = 0;i < machine->config->total_colors;i++) | |
| 51 | 51 | { |
| 52 | 52 | int bit0,bit1,bit2,bit3,r,g,b; |
| 53 | 53 | |
| r1711 | r1712 | |
| 62 | 62 | bit2 = (color_prom[i] >> 6) & 0x01; |
| 63 | 63 | bit3 = (color_prom[i] >> 7) & 0x01; |
| 64 | 64 | g = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; |
| 65 | bit0 = (color_prom[i + machine->drv->total_colors] >> 0) & 0x01; | |
| 66 | bit1 = (color_prom[i + machine->drv->total_colors] >> 1) & 0x01; | |
| 67 | bit2 = (color_prom[i + machine->drv->total_colors] >> 2) & 0x01; | |
| 68 | bit3 = (color_prom[i + machine->drv->total_colors] >> 3) & 0x01; | |
| 65 | bit0 = (color_prom[i + machine->config->total_colors] >> 0) & 0x01; | |
| 66 | bit1 = (color_prom[i + machine->config->total_colors] >> 1) & 0x01; | |
| 67 | bit2 = (color_prom[i + machine->config->total_colors] >> 2) & 0x01; | |
| 68 | bit3 = (color_prom[i + machine->config->total_colors] >> 3) & 0x01; | |
| 69 | 69 | b = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; |
| 70 | 70 | |
| 71 | 71 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); |
| r1711 | r1712 | |
|---|---|---|
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | |
| 28 | static void set_pens(r | |
| 28 | static void set_pens(colort | |
| 29 | 29 | { |
| 30 | 30 | int i; |
| 31 | 31 | |
| r1711 | r1712 | |
| 35 | 35 | |
| 36 | 36 | rgb_t color = MAKE_RGB(pal5bit(data >> 0), pal5bit(data >> 5), pal5bit(data >> 10)); |
| 37 | 37 | |
| 38 | colortable_palette_set_color( | |
| 38 | colortable_palette_set_color( | |
| 39 | 39 | } |
| 40 | 40 | } |
| 41 | 41 | |
| r1711 | r1712 | |
| 90 | 90 | |
| 91 | 91 | VIDEO_UPDATE( bladestl ) |
| 92 | 92 | { |
| 93 | set_pens(machine); | |
| 93 | set_pens(machine->colortable); | |
| 94 | 94 | |
| 95 | 95 | K007342_tilemap_update(); |
| 96 | 96 |
| r1711 | r1712 | |
|---|---|---|
| 60 | 60 | /* RRRBBBGG */ |
| 61 | 61 | if (color_prom == 0) return; |
| 62 | 62 | |
| 63 | for (i = 0;i < machine-> | |
| 63 | for (i = 0;i < machine->config->total_colors;i++) | |
| 64 | 64 | { |
| 65 | 65 | int bit0,bit1,bit2,r,g,b; |
| 66 | 66 | |
| r1711 | r1712 | |
| 136 | 136 | |
| 137 | 137 | VIDEO_START(funworld) |
| 138 | 138 | { |
| 139 | mc6845 = mc6845 | |
| 139 | mc6845 = devtag_get_token(machine, MC6845, "crtc" | |
| 140 | 140 | bg_tilemap = tilemap_create(get_bg_tile_info, tilemap_scan_rows, 4, 8, 96, 29); |
| 141 | 141 | } |
| 142 | 142 | |
| 143 | 143 | VIDEO_START(magiccrd) |
| 144 | 144 | { |
| 145 | mc6845 = mc6845 | |
| 145 | mc6845 = devtag_get_token(machine, MC6845, "crtc" | |
| 146 | 146 | bg_tilemap = tilemap_create(get_bg_tile_info, tilemap_scan_rows, 4, 8, 112, 34); |
| 147 | 147 | } |
| 148 | 148 | |
| 149 | 149 | VIDEO_START(snookr10) |
| 150 | 150 | { |
| 151 | // mc6845 = mc6845 | |
| 151 | // mc6845 = devtag_get_token(machine, MC6845, "crtc" | |
| 152 | 152 | bg_tilemap = tilemap_create(get_bg_tile_info, tilemap_scan_rows, 4, 8, 128, 32); |
| 153 | 153 | } |
| 154 | 154 |
| r1711 | r1712 | |
|---|---|---|
| 5 | 5 | *************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "includes/atarifb.h" | |
| 8 | 9 | |
| 9 | 10 | |
| 10 | 11 | /* local */ |
| r1711 | r1712 | |
|---|---|---|
| 110 | 110 | } |
| 111 | 111 | } |
| 112 | 112 | |
| 113 | INTERRUPT_GEN( cpoker_interrupt ) | |
| 114 | { | |
| 115 | if (cpu_getiloops() % 2) | |
| 116 | cpunum_set_input_line(machine, 0, 0, HOLD_LINE); | |
| 117 | else | |
| 118 | cpunum_set_input_line(machine, 0, INPUT_LINE_NMI, PULSE_LINE); | |
| 119 | } | |
| 120 | ||
| 113 | 121 | INTERRUPT_GEN( cska_interrupt ) |
| 114 | 122 | { |
| 115 | 123 | UINT8 * RAM = memory_region(REGION_CPU1); |
| r1711 | r1712 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 11 | 10 | |
| 12 | 11 | UINT8 *toypop_videoram; |
| 13 | 12 | |
| r1711 | r1712 | |
| 177 | 176 | |
| 178 | 177 | static void draw_background(mame_bitmap *bitmap) |
| 179 | 178 | { |
| 180 | register int offs, x, y; | |
| 181 | UINT8 scanline[288]; | |
| 179 | int offs, x, y; | |
| 180 | UINT16 scanline[288]; | |
| 181 | pen_t pen_base = 0x300 + 0x10*palettebank; | |
| 182 | 182 | |
| 183 | 183 | // copy the background image from RAM (0x190200-0x19FDFF) to bitmap |
| 184 | 184 | if (bitmapflip) |
| r1711 | r1712 | |
| 189 | 189 | for (x = 0; x < 288; x+=2) |
| 190 | 190 | { |
| 191 | 191 | UINT16 data = toypop_bg_image[offs]; |
| 192 | scanline[x] = data; | |
| 193 | scanline[x+1] = data >> 8; | |
| 192 | scanline[x] = pen_base | (data & 0x0f); | |
| 193 | scanline[x+1] = pen_base | (data >> 8); | |
| 194 | 194 | offs--; |
| 195 | 195 | } |
| 196 | draw_scanline | |
| 196 | draw_scanline16(bitmap, 0, y, 288, scanline, NULL | |
| 197 | 197 | } |
| 198 | 198 | } |
| 199 | 199 | else |
| r1711 | r1712 | |
| 204 | 204 | for (x = 0; x < 288; x+=2) |
| 205 | 205 | { |
| 206 | 206 | UINT16 data = toypop_bg_image[offs]; |
| 207 | scanline[x] = data >> 8; | |
| 208 | scanline[x+1] = data; | |
| 207 | scanline[x] = pen_base | (data >> 8); | |
| 208 | scanline[x+1] = pen_base | (data & 0x0f); | |
| 209 | 209 | offs++; |
| 210 | 210 | } |
| 211 | draw_scanline | |
| 211 | draw_scanline16(bitmap, 0, y, 288, scanline, NULL | |
| 212 | 212 | } |
| 213 | 213 | } |
| 214 | 214 | } |
| r1711 | r1712 | |
|---|---|---|
| 14 | 14 | { |
| 15 | 15 | int i, red, green, blue; |
| 16 | 16 | |
| 17 | for (i = 0;i < machine-> | |
| 17 | for (i = 0;i < machine->config->total_colors;i++) | |
| 18 | 18 | { |
| 19 | 19 | red = color_prom[i]; |
| 20 | green = color_prom[machine->drv->total_colors+i]; | |
| 21 | blue = color_prom[2*machine->drv->total_colors+i]; | |
| 20 | green = color_prom[machine->config->total_colors+i]; | |
| 21 | blue = color_prom[2*machine->config->total_colors+i]; | |
| 22 | 22 | |
| 23 | 23 | palette_set_color_rgb(machine,i,pal4bit(red),pal4bit(green),pal4bit(blue)); |
| 24 | 24 | } |
| r1711 | r1712 | |
|---|---|---|
| 17 | 17 | |
| 18 | 18 | PALETTE_INIT( ultratnk ) |
| 19 | 19 | { |
| 20 | palette_set_color(machine, 0, MAKE_RGB(0x00, 0x00, 0x00)); | |
| 21 | palette_set_color(machine, 1, MAKE_RGB(0xa4, 0xa4, 0xa4)); | |
| 22 | palette_set_color(machine, 2, MAKE_RGB(0x5b, 0x5b, 0x5b)); | |
| 23 | palette_set_color(machine, 3, MAKE_RGB(0xff, 0xff, 0xff)); | |
| 20 | /* allocate the colortable */ | |
| 21 | machine->colortable = colortable_alloc(machine, 4); | |
| 24 | 22 | |
| 25 | colortable[0] = color_prom[0x00] & 3; | |
| 26 | colortable[2] = color_prom[0x00] & 3; | |
| 27 | colortable[4] = color_prom[0x00] & 3; | |
| 28 | colortable[6] = color_prom[0x00] & 3; | |
| 29 | colortable[8] = color_prom[0x00] & 3; | |
| 23 | colortable_palette_set_color(machine->colortable, 0, MAKE_RGB(0x00, 0x00, 0x00)); | |
| 24 | colortable_palette_set_color(machine->colortable, 1, MAKE_RGB(0xa4, 0xa4, 0xa4)); | |
| 25 | colortable_palette_set_color(machine->colortable, 2, MAKE_RGB(0x5b, 0x5b, 0x5b)); | |
| 26 | colortable_palette_set_color(machine->colortable, 3, MAKE_RGB(0xff, 0xff, 0xff)); | |
| 30 | 27 | |
| 31 | colortable[1] = color_prom[0x01] & 3; | |
| 32 | colortable[3] = color_prom[0x02] & 3; | |
| 33 | colortable[5] = color_prom[0x04] & 3; | |
| 34 | colortable[7] = color_prom[0x08] & 3; | |
| 35 | colortable[9] = color_prom[0x10] & 3; | |
| 28 | colortable_entry_set_value(machine->colortable, 0, color_prom[0x00] & 3); | |
| 29 | colortable_entry_set_value(machine->colortable, 2, color_prom[0x00] & 3); | |
| 30 | colortable_entry_set_value(machine->colortable, 4, color_prom[0x00] & 3); | |
| 31 | colortable_entry_set_value(machine->colortable, 6, color_prom[0x00] & 3); | |
| 32 | colortable_entry_set_value(machine->colortable, 8, color_prom[0x00] & 3); | |
| 33 | ||
| 34 | colortable_entry_set_value(machine->colortable, 1, color_prom[0x01] & 3); | |
| 35 | colortable_entry_set_value(machine->colortable, 3, color_prom[0x02] & 3); | |
| 36 | colortable_entry_set_value(machine->colortable, 5, color_prom[0x04] & 3); | |
| 37 | colortable_entry_set_value(machine->colortable, 7, color_prom[0x08] & 3); | |
| 38 | colortable_entry_set_value(machine->colortable, 9, color_prom[0x10] & 3); | |
| 36 | 39 | } |
| 37 | 40 | |
| 38 | 41 | |
| r1711 | r1712 | |
| 41 | 44 | UINT8 code = videoram[tile_index]; |
| 42 | 45 | |
| 43 | 46 | if (code & 0x20) |
| 44 | { | |
| 45 | 47 | SET_TILE_INFO(0, code, code >> 6, 0); |
| 46 | } | |
| 47 | 48 | else |
| 48 | { | |
| 49 | 49 | SET_TILE_INFO(0, code, 4, 0); |
| 50 | } | |
| 51 | 50 | } |
| 52 | 51 | |
| 53 | 52 | |
| r1711 | r1712 | |
| 75 | 74 | UINT8 code = videoram[0x398 + 2 * i + 1]; |
| 76 | 75 | |
| 77 | 76 | if (code & 4) |
| 78 | { | |
| 79 | 77 | bank = 32; |
| 80 | } | |
| 81 | 78 | |
| 82 | 79 | if (!(attr & 0x80)) |
| 83 | 80 | { |
| r1711 | r1712 | |
| 97 | 94 | |
| 98 | 95 | VIDEO_EOF( ultratnk ) |
| 99 | 96 | { |
| 100 | UINT16 BG = machine->remapped_colortable[machine->gfx[0]->color_base]; | |
| 101 | ||
| 102 | 97 | int i; |
| 98 | UINT16 BG = colortable_entry_get_value(machine->colortable, 0); | |
| 103 | 99 | |
| 104 | 100 | /* check for sprite-playfield collisions */ |
| 105 | 101 | |
| r1711 | r1712 | |
| 126 | 122 | tilemap_draw(helper, &rect, playfield, 0, 0); |
| 127 | 123 | |
| 128 | 124 | if (code & 4) |
| 129 | { | |
| 130 | 125 | bank = 32; |
| 131 | } | |
| 132 | 126 | |
| 133 | 127 | drawgfx(helper, machine->gfx[1], |
| 134 | 128 | (code >> 3) | bank, |
| r1711 | r1712 | |
| 139 | 133 | &rect, TRANSPARENCY_PEN, 1); |
| 140 | 134 | |
| 141 | 135 | for (y = rect.min_y; y <= rect.max_y; y++) |
| 142 | { | |
| 143 | 136 | for (x = rect.min_x; x <= rect.max_x; x++) |
| 144 | { | |
| 145 | if (*BITMAP_ADDR16(helper, y, x) != BG) | |
| 146 | { | |
| 137 | if (colortable_entry_get_value(machine->colortable, *BITMAP_ADDR16(helper, y, x)) != BG) | |
| 147 | 138 | ultratnk_collision[i] = 1; |
| 148 | } | |
| 149 | } | |
| 150 | } | |
| 151 | 139 | } |
| 152 | 140 | |
| 153 | 141 | /* update sound status */ |
| r1711 | r1712 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "deprecat.h" | |
| 11 | 10 | |
| 12 | 11 | UINT8 *superqix_videoram; |
| 13 | 12 | UINT8 *superqix_bitmapram,*superqix_bitmapram2; |
| r1711 | r1712 | |
| 92 | 91 | |
| 93 | 92 | superqix_bitmapram[offset] = data; |
| 94 | 93 | |
| 95 | *BITMAP_ADDR16(fg_bitmap[0], y, x + 0) = Machine->pens[data >> 4]; | |
| 96 | *BITMAP_ADDR16(fg_bitmap[0], y, x + 1) = Machine->pens[data & 0x0f]; | |
| 94 | *BITMAP_ADDR16(fg_bitmap[0], y, x + 0) = data >> 4; | |
| 95 | *BITMAP_ADDR16(fg_bitmap[0], y, x + 1) = data & 0x0f; | |
| 97 | 96 | } |
| 98 | 97 | } |
| 99 | 98 | |
| r1711 | r1712 | |
| 106 | 105 | |
| 107 | 106 | superqix_bitmapram2[offset] = data; |
| 108 | 107 | |
| 109 | *BITMAP_ADDR16(fg_bitmap[1], y, x + 0) = Machine->pens[data >> 4]; | |
| 110 | *BITMAP_ADDR16(fg_bitmap[1], y, x + 1) = Machine->pens[data & 0x0f]; | |
| 108 | *BITMAP_ADDR16(fg_bitmap[1], y, x + 0) = data >> 4; | |
| 109 | *BITMAP_ADDR16(fg_bitmap[1], y, x + 1) = data & 0x0f; | |
| 111 | 110 | } |
| 112 | 111 | } |
| 113 | 112 |
| r1711 | r1712 | |
|---|---|---|
| 332 | 332 | UINT16 src_pixel = *BITMAP_ADDR16(main_bitmap, y, x); |
| 333 | 333 | |
| 334 | 334 | if (*BITMAP_ADDR16(sl_bitmap, y, x) == 0xff) |
| 335 | src_pixel += machine-> | |
| 335 | src_pixel += machine->config->total_colors; | |
| 336 | 336 | |
| 337 | 337 | *BITMAP_ADDR16(bitmap, y, x) = src_pixel; |
| 338 | 338 | } |
| r1711 | r1712 | |
|---|---|---|
| 32 | 32 | size_t lockon_objectram_size; |
| 33 | 33 | size_t lockon_groundram_size; |
| 34 | 34 | |
| 35 | UINT8 *obj_pal_ram; | |
| 36 | 35 | |
| 37 | 36 | /************************************* |
| 38 | 37 | * |
| r1711 | r1712 | |
| 62 | 61 | |
| 63 | 62 | /* Object palette RAM control */ |
| 64 | 63 | static UINT32 iden; |
| 64 | static UINT8 *obj_pal_ram; | |
| 65 | 65 | static UINT32 obj_pal_latch; |
| 66 | 66 | static UINT32 obj_pal_addr; |
| 67 | 67 | |
| r1711 | r1712 | |
| 283 | 283 | | (((d1 >> x_gran) & 1) << 1) |
| 284 | 284 | | ( (d0 >> x_gran) & 1); |
| 285 | 285 | |
| 286 | *bmpaddr++ = | |
| 286 | *bmpaddr++ = | |
| 287 | 287 | |
| 288 | 288 | x_offs = (x_offs + 1) & 0x1ff; |
| 289 | 289 | } |
| r1711 | r1712 | |
| 411 | 411 | color += ((rom_data2 >> gpbal2_0) & 0x1) << 1; |
| 412 | 412 | color += ((rom_data3 >> gpbal2_0) & 0x1) << 2; |
| 413 | 413 | |
| 414 | *bmpaddr++ = | |
| 414 | *bmpaddr++ = | |
| 415 | 415 | |
| 416 | 416 | /* Update the counters */ |
| 417 | 417 | tz2213_cy = (UINT8)tz2213_dx > (UINT8)~(tz2213_x); |
| r1711 | r1712 | |
| 468 | 468 | UINT8 clr = obj_pal_ram[(pal << 4) + COLOR]; \ |
| 469 | 469 | UINT16 *pix = (line + px); \ |
| 470 | 470 | if (!(clr == 0xff && ((*pix & 0xe00) == 0xa00))) \ |
| 471 | *pix = | |
| 471 | *pix = | |
| 472 | 472 | } \ |
| 473 | 473 | px = (px + 1) & 0x7ff; \ |
| 474 | 474 | } while(0) |
| r1711 | r1712 | |
| 859 | 859 | x_pos = lockon_hud_ram[offs + 1] & 0x1ff; |
| 860 | 860 | x_size = (lockon_hud_ram[offs + 1] >> 12) & 7; |
| 861 | 861 | code = (lockon_hud_ram[offs] >> 9) & 0x7f; |
| 862 | colour = | |
| 862 | colour = | |
| 863 | 863 | layout = (code >> 5) & 3; |
| 864 | 864 | |
| 865 | 865 | rom_a12_7 = (code & 0xfe) << 6; |
| r1711 | r1712 | |
|---|---|---|
| 149 | 149 | } |
| 150 | 150 | |
| 151 | 151 | /* sprites map to the lower 16 palette entries */ |
| 152 | for (i = 64*4; i < machine-> | |
| 152 | for (i = 64*4; i < machine->config->total_colors; i++) | |
| 153 | 153 | { |
| 154 | 154 | UINT8 ctabentry = color_prom[i] & 0x0f; |
| 155 | 155 | colortable_entry_set_value(machine->colortable, i, ctabentry); |
| r1711 | r1712 | |
|---|---|---|
| 804 | 804 | UINT8 n, bits = 0; |
| 805 | 805 | UINT8 b = gtia.w.colbk & 0xf0; |
| 806 | 806 | UINT8 c = gtia.w.colpf1 & 0x0f; |
| 807 | UINT8 atari_A = Machine->pens[((b+0x30)&0xf0)+c]; | |
| 808 | UINT8 atari_B = Machine->pens[((b+0x70)&0xf0)+c]; | |
| 809 | UINT8 atari_C = Machine->pens[b+c]; | |
| 810 | UINT8 atari_D = Machine->pens[gtia.w.colbk]; | |
| 807 | UINT8 atari_A = ((b+0x30)&0xf0)+c; | |
| 808 | UINT8 atari_B = ((b+0x70)&0xf0)+c; | |
| 809 | UINT8 atari_C = b+c; | |
| 810 | UINT8 atari_D = gtia.w.colbk; | |
| 811 | 811 | |
| 812 | 812 | for( x = 0; x < width * 4; x++ ) |
| 813 | 813 | { |
| r1711 | r1712 | |
| 878 | 878 | UINT8 n, bits = 0; |
| 879 | 879 | UINT8 b = gtia.w.colpf2 & 0xf0; |
| 880 | 880 | UINT8 c = gtia.w.colpf1 & 0x0f; |
| 881 | UINT8 atari_A = Machine->pens[((b+0x30)&0xf0)+c]; | |
| 882 | UINT8 atari_B = Machine->pens[((b+0x70)&0xf0)+c]; | |
| 883 | UINT8 atari_C = Machine->pens[b+c]; | |
| 884 | UINT8 atari_D = Machine->pens[gtia.w.colpf2]; | |
| 881 | UINT8 atari_A = ((b+0x30)&0xf0)+c; | |
| 882 | UINT8 atari_B = ((b+0x70)&0xf0)+c; | |
| 883 | UINT8 atari_C = b+c; | |
| 884 | UINT8 atari_D = gtia.w.colpf2; | |
| 885 | 885 | |
| 886 | 886 | for( x = 0; x < width * 4; x++ ) |
| 887 | 887 | { |
| r1711 | r1712 | |
| 1052 | 1052 | dst[2] = antic.color_lookup[PBK] | antic.color_lookup[PBK] << 16; |
| 1053 | 1053 | dst[3] = antic.color_lookup[PBK] | antic.color_lookup[PBK] << 16; |
| 1054 | 1054 | |
| 1055 | draw_scanline8(tmpbitmap, 12, y, sizeof(scanline), (const UINT8 *) scanline, | |
| 1055 | draw_scanline8(tmpbitmap, 12, y, sizeof(scanline), (const UINT8 *) scanline, NULL | |
| 1056 | 1056 | } |
| 1057 | 1057 | |
| 1058 | 1058 | static int cycle(void) |
| r1711 | r1712 | |
|---|---|---|
| 353 | 353 | |
| 354 | 354 | /* copy the polygon bitmap */ |
| 355 | 355 | for (y = cliprect->min_y; y <= cliprect->max_y; y++) |
| 356 | draw_scanline8(bitmap, 0, y, BITMAP_WIDTH, &bitmap_base[y * BITMAP_WIDTH], | |
| 356 | draw_scanline8(bitmap, 0, y, BITMAP_WIDTH, &bitmap_base[y * BITMAP_WIDTH], NULL | |
| 357 | 357 | |
| 358 | 358 | /* redraw the non-zero characters in the alpha layer */ |
| 359 | 359 | for (y = offs = 0; y < 32; y++) |
| r1711 | r1712 | |
|---|---|---|
| 32 | 32 | int i; |
| 33 | 33 | int bit0, bit1, bit2, r, g, b; |
| 34 | 34 | |
| 35 | for (i = 0; i < machine-> | |
| 35 | for (i = 0; i < machine->config->total_colors; i++) | |
| 36 | 36 | { |
| 37 | 37 | /* red component */ |
| 38 | 38 | bit0 = (*color_prom >> 0) & 0x01; |
| r1711 | r1712 | |
|---|---|---|
| 108 | 108 | } |
| 109 | 109 | |
| 110 | 110 | |
| 111 | /************************************* | |
| 112 | * | |
| 113 | * Tilemap info callback | |
| 114 | * | |
| 115 | *************************************/ | |
| 116 | ||
| 111 | 117 | static TILE_GET_INFO( get_tile_info ) |
| 112 | 118 | { |
| 113 | 119 | UINT8 attr = videoram[tile_index*2 + 0]; |
| r1711 | r1712 | |
| 117 | 123 | } |
| 118 | 124 | |
| 119 | 125 | |
| 126 | /************************************* | |
| 127 | * | |
| 128 | * Video RAM access | |
| 129 | * | |
| 130 | *************************************/ | |
| 131 | ||
| 120 | 132 | WRITE8_HANDLER( m57_videoram_w ) |
| 121 | 133 | { |
| 122 | 134 | videoram[offset] = data; |
| r1711 | r1712 | |
| 124 | 136 | } |
| 125 | 137 | |
| 126 | 138 | |
| 139 | /************************************* | |
| 140 | * | |
| 141 | * Video startup | |
| 142 | * | |
| 143 | *************************************/ | |
| 144 | ||
| 127 | 145 | VIDEO_START( m57 ) |
| 128 | 146 | { |
| 129 | 147 | bg_tilemap = tilemap_create(get_tile_info, tilemap_scan_rows, 8, 8, 32, 32); |
| r1711 | r1712 | |
| 131 | 149 | } |
| 132 | 150 | |
| 133 | 151 | |
| 152 | /************************************* | |
| 153 | * | |
| 154 | * Outputs | |
| 155 | * | |
| 156 | *************************************/ | |
| 157 | ||
| 134 | 158 | WRITE8_HANDLER( m57_flipscreen_w ) |
| 135 | 159 | { |
| 136 | 160 | /* screen flip is handled both by software and hardware */ |
| 137 | data ^= ~readinputport(4) & 1; | |
| 138 | ||
| 139 | flipscreen = data & 1; | |
| 161 | flipscreen = (data & 0x01) ^ (~readinputportbytag("DSW2") & 0x01); | |
| 140 | 162 | tilemap_set_flip(bg_tilemap, flipscreen ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0); |
| 141 | 163 | |
| 142 | 164 | coin_counter_w(0,data & 0x02); |
| r1711 | r1712 | |
| 144 | 166 | } |
| 145 | 167 | |
| 146 | 168 | |
| 169 | /************************************* | |
| 170 | * | |
| 171 | * Background rendering | |
| 172 | * | |
| 173 | *************************************/ | |
| 147 | 174 | |
| 148 | ||
| 149 | 175 | static void draw_background(running_machine *machine, mame_bitmap *bitmap, const rectangle *cliprect) |
| 150 | 176 | { |
| 151 | 177 | int y; |
| r1711 | r1712 | |
| 155 | 181 | tilemap_draw(bitmap, cliprect, bg_tilemap, 0, 0); |
| 156 | 182 | } |
| 157 | 183 | |
| 184 | /************************************* | |
| 185 | * | |
| 186 | * Sprite rendering | |
| 187 | * | |
| 188 | *************************************/ | |
| 189 | ||
| 158 | 190 | static void draw_sprites(running_machine *machine, mame_bitmap *bitmap, const rectangle *cliprect) |
| 159 | 191 | { |
| 160 | 192 | int offs; |
| r1711 | r1712 | |
| 192 | 224 | |
| 193 | 225 | |
| 194 | 226 | |
| 227 | /************************************* | |
| 228 | * | |
| 229 | * Video update | |
| 230 | * | |
| 231 | *************************************/ | |
| 232 | ||
| 195 | 233 | VIDEO_UPDATE( m57 ) |
| 196 | 234 | { |
| 197 | 235 | draw_background(machine, bitmap, cliprect); |
| r1711 | r1712 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | #include "de | |
| 10 | #include "video/resnet.h" | |
| 11 | 11 | |
| 12 | ||
| 13 | UINT8 *sraider_grid_data; | |
| 14 | UINT8 sraider_grid_color; | |
| 15 | ||
| 12 | 16 | /* Use the Zero Hour star generator board */ |
| 13 | extern void redclash_set_stars_enable( UINT8 on ); | |
| 14 | extern void redclash_update_stars_state(void); | |
| 15 | extern void redclash_set_stars_speed( UINT8 speed ); | |
| 16 | extern void redclash_draw_stars(running_machine *machine, mame_bitmap *bitmap, const rectangle *cliprect, UINT8 palette_offset, UINT8 sraider, UINT8 firstx, UINT8 lastx); | |
| 17 | void redclash_set_stars_enable( UINT8 on ); | |
| 18 | void redclash_update_stars_state(void); | |
| 19 | void redclash_set_stars_speed( UINT8 speed ); | |
| 20 | void redclash_draw_stars(const pen_t *pens, mame_bitmap *bitmap, const rectangle *cliprect, UINT8 palette_offset, UINT8 sraider, UINT8 firstx, UINT8 lastx); | |
| 17 | 21 | |
| 18 | 22 | static tilemap *bg_tilemap; |
| 19 | 23 | static tilemap *grid_tilemap; |
| r1711 | r1712 | |
| 36 | 40 | bit 0 -- inverter -- 470 ohm resistor -- RED |
| 37 | 41 | |
| 38 | 42 | ***************************************************************************/ |
| 39 | PALETTE_INIT( ladybug ) | |
| 43 | ||
| 44 | static void palette_init_common(running_machine *machine, const UINT8 *color_prom, int colortable_size, | |
| 45 | int r_bit0, int r_bit1, int g_bit0, int g_bit1, int b_bit0, int b_bit1) | |
| 40 | 46 | { |
| 47 | static const int resistances[2] = { 470, 220 }; | |
| 48 | double rweights[2], gweights[2], bweights[2]; | |
| 41 | 49 | int i; |
| 42 | 50 | |
| 43 | for (i = 0;i < 32;i++) | |
| 51 | /* compute the color output resistor weights */ | |
| 52 | compute_resistor_weights(0, 255, -1.0, | |
| 53 | 2, resistances, rweights, 470, 0, | |
| 54 | 2, resistances, gweights, 470, 0, | |
| 55 | 2, resistances, bweights, 470, 0); | |
| 56 | ||
| 57 | /* allocate the colortable */ | |
| 58 | machine->colortable = colortable_alloc(machine, colortable_size); | |
| 59 | ||
| 60 | /* create a lookup table for the palette */ | |
| 61 | for (i = 0; i < 0x20; i++) | |
| 44 | 62 | { |
| 45 | int bit1,bit2,r,g,b; | |
| 63 | int bit0, bit1; | |
| 64 | int r, g, b; | |
| 46 | 65 | |
| 66 | /* red component */ | |
| 67 | bit0 = (~color_prom[i] >> r_bit0) & 0x01; | |
| 68 | bit1 = (~color_prom[i] >> r_bit1) & 0x01; | |
| 69 | r = combine_2_weights(rweights, bit0, bit1); | |
| 47 | 70 | |
| 48 | bit1 = (~color_prom[i] >> 0) & 0x01; | |
| 49 | bit2 = (~color_prom[i] >> 5) & 0x01; | |
| 50 | r = 0x47 * bit1 + 0x97 * bit2; | |
| 51 | bit1 = (~color_prom[i] >> 2) & 0x01; | |
| 52 | bit2 = (~color_prom[i] >> 6) & 0x01; | |
| 53 | g = 0x47 * bit1 + 0x97 * bit2; | |
| 54 | bit1 = (~color_prom[i] >> 4) & 0x01; | |
| 55 | bit2 = (~color_prom[i] >> 7) & 0x01; | |
| 56 | b = 0x47 * bit1 + 0x97 * bit2; | |
| 57 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); | |
| 71 | /* green component */ | |
| 72 | bit0 = (~color_prom[i] >> g_bit0) & 0x01; | |
| 73 | bit1 = (~color_prom[i] >> g_bit1) & 0x01; | |
| 74 | g = combine_2_weights(gweights, bit0, bit1); | |
| 75 | ||
| 76 | /* blue component */ | |
| 77 | bit0 = (~color_prom[i] >> b_bit0) & 0x01; | |
| 78 | bit1 = (~color_prom[i] >> b_bit1) & 0x01; | |
| 79 | b = combine_2_weights(bweights, bit0, bit1); | |
| 80 | ||
| 81 | colortable_palette_set_color(machine->colortable, i, MAKE_RGB(r, g, b)); | |
| 58 | 82 | } |
| 59 | 83 | |
| 84 | /* color_prom now points to the beginning of the lookup table */ | |
| 85 | color_prom += 0x20; | |
| 86 | ||
| 60 | 87 | /* characters */ |
| 61 | for (i = 0;i < | |
| 88 | for (i = 0; i < 0x20; i++) | |
| 62 | 89 | { |
| 63 | colortable[4 * i] = 0; | |
| 64 | colortable[4 * i + 1] = i + 0x08; | |
| 65 | colortable[4 * i + 2] = i + 0x10; | |
| 66 | colortable[4 * i + 3] = i + 0x18; | |
| 90 | UINT8 ctabentry = ((i << 3) & 0x18) | ((i >> 2) & 0x07); | |
| 91 | colortable_entry_set_value(machine->colortable, i, ctabentry); | |
| 67 | 92 | } |
| 68 | 93 | |
| 69 | 94 | /* sprites */ |
| 70 | for (i = 0;i < 4 | |
| 95 | for (i = 0x20; i < 0x40 | |
| 71 | 96 | { |
| 72 | | |
| 97 | UINT8 c | |
| 73 | 98 | |
| 99 | ctabentry = BITSWAP8((color_prom[i - 0x20] >> 0) & 0x0f, 7,6,5,4,0,1,2,3); | |
| 100 | colortable_entry_set_value(machine->colortable, i + 0x00, ctabentry); | |
| 74 | 101 | |
| 75 | /* low 4 bits are for sprite n */ | |
| 76 | bit0 = (color_prom[i + 32] >> 3) & 0x01; | |
| 77 | bit1 = (color_prom[i + 32] >> 2) & 0x01; | |
| 78 | bit2 = (color_prom[i + 32] >> 1) & 0x01; | |
| 79 | bit3 = (color_prom[i + 32] >> 0) & 0x01; | |
| 80 | colortable[i + 4 * 8] = 1 * bit0 + 2 * bit1 + 4 * bit2 + 8 * bit3; | |
| 81 | ||
| 82 | /* high 4 bits are for sprite n + 8 */ | |
| 83 | bit0 = (color_prom[i + 32] >> 7) & 0x01; | |
| 84 | bit1 = (color_prom[i + 32] >> 6) & 0x01; | |
| 85 | bit2 = (color_prom[i + 32] >> 5) & 0x01; | |
| 86 | bit3 = (color_prom[i + 32] >> 4) & 0x01; | |
| 87 | colortable[i + 4 * 16] = 1 * bit0 + 2 * bit1 + 4 * bit2 + 8 * bit3; | |
| 102 | ctabentry = BITSWAP8((color_prom[i - 0x20] >> 4) & 0x0f, 7,6,5,4,0,1,2,3); | |
| 103 | colortable_entry_set_value(machine->colortable, i + 0x20, ctabentry); | |
| 88 | 104 | } |
| 89 | 105 | } |
| 90 | 106 | |
| 107 | ||
| 108 | PALETTE_INIT( ladybug ) | |
| 109 | { | |
| 110 | palette_init_common(machine, color_prom, 0x20, 0, 5, 2, 6, 4, 7); | |
| 111 | } | |
| 112 | ||
| 91 | 113 | PALETTE_INIT( sraider ) |
| 92 | 114 | { |
| 93 | 115 | int i; |
| 94 | 116 | |
| 95 | for (i = 0;i < 32;i++) | |
| 96 | { | |
| 97 | int bit1,bit2,r,g,b; | |
| 117 | /* the resistor net may be probably different than Lady Bug */ | |
| 118 | palette_init_common(machine, color_prom, 0x41, 3, 0, 5, 4, 7, 6); | |
| 98 | 119 | |
| 99 | ||
| 100 | bit1 = (~color_prom[i] >> 3) & 0x01; | |
| 101 | bit2 = (~color_prom[i] >> 0) & 0x01; | |
| 102 | r = 0x47 * bit1 + 0x97 * bit2; | |
| 103 | bit1 = (~color_prom[i] >> 5) & 0x01; | |
| 104 | bit2 = (~color_prom[i] >> 4) & 0x01; | |
| 105 | g = 0x47 * bit1 + 0x97 * bit2; | |
| 106 | bit1 = (~color_prom[i] >> 7) & 0x01; | |
| 107 | bit2 = (~color_prom[i] >> 6) & 0x01; | |
| 108 | b = 0x47 * bit1 + 0x97 * bit2; | |
| 109 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); | |
| 110 | } | |
| 111 | ||
| 112 | /* This is for the stars colors */ | |
| 113 | for (i = 32;i < 64;i++) | |
| 120 | /* star colors */ | |
| 121 | for (i = 0x20; i < 0x40; i++) | |
| 114 | 122 | { |
| 115 | int bit1,bit2,r,g,b; | |
| 123 | int bit0, bit1; | |
| 124 | int r, g, b; | |
| 116 | 125 | |
| 126 | /* red component */ | |
| 127 | bit0 = ((i - 0x20) >> 3) & 0x01; | |
| 128 | bit1 = ((i - 0x20) >> 4) & 0x01; | |
| 129 | b = 0x47 * bit0 + 0x97 * bit1; | |
| 117 | 130 | |
| 118 | bit2 = (i >> 4) & 0x01; | |
| 119 | bit1 = (i >> 3) & 0x01; | |
| 120 | b = 0x47 * bit1 + 0x97 * bit2; | |
| 121 | bit2 = (i >> 2) & 0x01; | |
| 122 | bit1 = (i >> 1) & 0x01; | |
| 123 | g = 0x47 * bit1 + 0x97 * bit2; | |
| 124 | bit1 = i & 0x01; | |
| 125 | r = 0x47 * bit1; | |
| 126 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); | |
| 127 | } | |
| 131 | /* green component */ | |
| 132 | bit0 = ((i - 0x20) >> 1) & 0x01; | |
| 133 | bit1 = ((i - 0x20) >> 2) & 0x01; | |
| 134 | g = 0x47 * bit0 + 0x97 * bit1; | |
| 128 | 135 | |
| 129 | /* This is reserved for the grid color */ | |
| 130 | palette_set_color(machine,64,MAKE_RGB(0,0,0)); | |
| 136 | /* blue component */ | |
| 137 | bit0 = ((i - 0x20) >> 0) & 0x01; | |
| 138 | r = 0x47 * bit0; | |
| 131 | 139 | |
| 132 | /* characters */ | |
| 133 | for (i = 0;i < 8;i++) | |
| 134 | { | |
| 135 | colortable[4 * i] = 0; | |
| 136 | colortable[4 * i + 1] = i + 0x08; | |
| 137 | colortable[4 * i + 2] = i + 0x10; | |
| 138 | colortable[4 * i + 3] = i + 0x18; | |
| 140 | colortable_palette_set_color(machine->colortable, i, MAKE_RGB(r, g, b)); | |
| 139 | 141 | } |
| 140 | 142 | |
| 141 | /* sprites */ | |
| 142 | for (i = 0;i < 4 * 8;i++) | |
| 143 | { | |
| 144 | int bit0,bit1,bit2,bit3; | |
| 143 | for (i = 0x60; i < 0x80; i++) | |
| 144 | colortable_entry_set_value(machine->colortable, i, (i - 0x60) + 0x20); | |
| 145 | 145 | |
| 146 | ||
| 147 | /* low 4 bits are for sprite n */ | |
| 148 | bit0 = (color_prom[i + 32] >> 3) & 0x01; | |
| 149 | bit1 = (color_prom[i + 32] >> 2) & 0x01; | |
| 150 | bit2 = (color_prom[i + 32] >> 1) & 0x01; | |
| 151 | bit3 = (color_prom[i + 32] >> 0) & 0x01; | |
| 152 | colortable[i + 4 * 8] = 1 * bit0 + 2 * bit1 + 4 * bit2 + 8 * bit3; | |
| 153 | ||
| 154 | /* high 4 bits are for sprite n + 8 */ | |
| 155 | bit0 = (color_prom[i + 32] >> 7) & 0x01; | |
| 156 | bit1 = (color_prom[i + 32] >> 6) & 0x01; | |
| 157 | bit2 = (color_prom[i + 32] >> 5) & 0x01; | |
| 158 | bit3 = (color_prom[i + 32] >> 4) & 0x01; | |
| 159 | colortable[i + 4 * 16] = 1 * bit0 + 2 * bit1 + 4 * bit2 + 8 * bit3; | |
| 160 | } | |
| 161 | ||
| 162 | 146 | /* stationary part of grid */ |
| 163 | colortable[32 + 64] = 0; | |
| 164 | colortable[32 + 64 + 1] = 64; | |
| 147 | colortable_entry_set_value(machine->colortable, 0x81, 0x40); | |
| 165 | 148 | } |
| 166 | 149 | |
| 167 | 150 | WRITE8_HANDLER( ladybug_videoram_w ) |
| r1711 | r1712 | |
| 258 | 241 | |
| 259 | 242 | //////////////////////////////////////////////////// |
| 260 | 243 | |
| 261 | static UINT8 gridline[256]; | |
| 262 | ||
| 263 | WRITE8_HANDLER( sraider_grid_data_w ) | |
| 264 | { | |
| 265 | static int x = 0; | |
| 266 | ||
| 267 | if (x == 0) | |
| 268 | { | |
| 269 | tilemap_mark_all_tiles_dirty(grid_tilemap); | |
| 270 | x = 1; | |
| 271 | } | |
| 272 | gridline[offset] = data; | |
| 273 | ||
| 274 | } | |
| 275 | ||
| 276 | 244 | WRITE8_HANDLER( sraider_io_w ) |
| 277 | 245 | { |
| 278 | 246 | // bit7 = flip |
| r1711 | r1712 | |
| 288 | 256 | tilemap_mark_all_tiles_dirty(ALL_TILEMAPS); |
| 289 | 257 | } |
| 290 | 258 | |
| 291 | palette_set_color_rgb(Machine,64, | |
| 292 | ((data&0x40)>>6)*0xff, | |
| 293 | ((data&0x20)>>5)*0xff, | |
| 294 | ((data&0x10)>>4)*0xff); | |
| 259 | sraider_grid_color = data & 0x70; | |
| 295 | 260 | |
| 296 | 261 | redclash_set_stars_enable((data&0x08)>>3); |
| 297 | 262 | |
| r1711 | r1712 | |
| 326 | 291 | |
| 327 | 292 | VIDEO_START( ladybug ) |
| 328 | 293 | { |
| 329 | bg_tilemap = tilemap_create(get_bg_tile_info, tilemap_scan_rows, | |
| 330 | 8, 8, 32, 32); | |
| 331 | ||
| 294 | bg_tilemap = tilemap_create(get_bg_tile_info, tilemap_scan_rows, 8, 8, 32, 32); | |
| 332 | 295 | tilemap_set_scroll_rows(bg_tilemap, 32); |
| 296 | tilemap_set_transparent_pen(bg_tilemap, 0); | |
| 333 | 297 | } |
| 334 | 298 | |
| 335 | 299 | VIDEO_START( sraider ) |
| 336 | 300 | { |
| 337 | grid_tilemap = tilemap_create(get_grid_tile_info, tilemap_scan_rows, | |
| 338 | 8, 8, 32, 32); | |
| 339 | ||
| 301 | grid_tilemap = tilemap_create(get_grid_tile_info, tilemap_scan_rows, 8, 8, 32, 32); | |
| 340 | 302 | tilemap_set_scroll_rows(grid_tilemap, 32); |
| 303 | tilemap_set_transparent_pen(grid_tilemap, 0); | |
| 341 | 304 | |
| 342 | bg_tilemap = tilemap_create(get_bg_tile_info, tilemap_scan_rows, | |
| 343 | 8, 8, 32, 32); | |
| 344 | ||
| 305 | bg_tilemap = tilemap_create(get_bg_tile_info, tilemap_scan_rows, 8, 8, 32, 32); | |
| 345 | 306 | tilemap_set_scroll_rows(bg_tilemap, 32); |
| 346 | ||
| 347 | tilemap_set_transparent_pen(grid_tilemap, 0); | |
| 348 | 307 | tilemap_set_transparent_pen(bg_tilemap, 0); |
| 349 | 308 | } |
| 350 | 309 | |
| r1711 | r1712 | |
| 403 | 362 | { |
| 404 | 363 | int offs; |
| 405 | 364 | |
| 365 | // clear the bg bitmap | |
| 366 | fillbitmap(bitmap,machine->pens[0],cliprect); | |
| 367 | ||
| 406 | 368 | for (offs = 0; offs < 32; offs++) |
| 407 | 369 | { |
| 408 | 370 | int sx = offs % 4; |
| r1711 | r1712 | |
| 448 | 410 | |
| 449 | 411 | // draw the stars |
| 450 | 412 | if (flip_screen) |
| 451 | redclash_draw_stars(machine,bitmap,cliprect, | |
| 413 | redclash_draw_stars(machine->pens,bitmap,cliprect,0x60,1,0x27,0xff); | |
| 452 | 414 | else |
| 453 | redclash_draw_stars(machine,bitmap,cliprect, | |
| 415 | redclash_draw_stars(machine->pens,bitmap,cliprect,0x60,1,0x00,0xd8); | |
| 454 | 416 | |
| 455 | // draw the horizontal gridlines | |
| 417 | // draw the gridlines | |
| 418 | colortable_palette_set_color(machine->colortable, 0x40, MAKE_RGB(sraider_grid_color & 0x40 ? 0xff : 0, | |
| 419 | sraider_grid_color & 0x20 ? 0xff : 0, | |
| 420 | sraider_grid_color & 0x10 ? 0xff : 0)); | |
| 456 | 421 | tilemap_draw(bitmap, cliprect, grid_tilemap, 0, flip_screen); |
| 457 | for(i=0;i<256;i++) | |
| 422 | ||
| 423 | for (i = 0; i < 0x100; i++) | |
| 458 | 424 | { |
| 459 | if ( | |
| 425 | if (sraid | |
| 460 | 426 | { |
| 427 | UINT8 x = i; | |
| 428 | ||
| 429 | int height = cliprect->max_y - cliprect->min_y + 1; | |
| 430 | ||
| 461 | 431 | if (flip_screen) |
| 462 | plot_box(bitmap,i^0xff,0,1,255,machine->pens[64]); | |
| 463 | else | |
| 464 | plot_box(bitmap,i,0,1,255,machine->pens[64]); | |
| 432 | x = ~x; | |
| 433 | ||
| 434 | plot_box(bitmap, x, cliprect->min_y, 1, height, machine->pens[0x81]); | |
| 465 | 435 | } |
| 466 | 436 | } |
| 467 | 437 |
| r1711 | r1712 | |
|---|---|---|
| 104 | 104 | } |
| 105 | 105 | |
| 106 | 106 | |
| 107 | static void set_pens(r | |
| 107 | static void set_pens(colort | |
| 108 | 108 | { |
| 109 | 109 | int i; |
| 110 | 110 | |
| r1711 | r1712 | |
| 114 | 114 | |
| 115 | 115 | rgb_t color = MAKE_RGB(pal5bit(data >> 0), pal5bit(data >> 5), pal5bit(data >> 10)); |
| 116 | 116 | |
| 117 | colortable_palette_set_color( | |
| 117 | colortable_palette_set_color( | |
| 118 | 118 | } |
| 119 | 119 | } |
| 120 | 120 | |
| r1711 | r1712 | |
| 489 | 489 | { |
| 490 | 490 | int i; |
| 491 | 491 | |
| 492 | set_pens(machine); | |
| 492 | set_pens(machine->colortable); | |
| 493 | 493 | |
| 494 | 494 | if (K007121_ctrlram[0][0x01] & 0x02) |
| 495 | 495 | { |
| r1711 | r1712 | |
| 649 | 649 | { |
| 650 | 650 | int i; |
| 651 | 651 | |
| 652 | set_pens(machine); | |
| 652 | set_pens(machine->colortable); | |
| 653 | 653 | |
| 654 | 654 | for( i=0; i<32; i++ ) |
| 655 | 655 | { |
| r1711 | r1712 | |
|---|---|---|
| 20 | 20 | { |
| 21 | 21 | int i; |
| 22 | 22 | |
| 23 | for (i = 0; i < machine-> | |
| 23 | for (i = 0; i < machine->config->total_colors; i++) | |
| 24 | 24 | { |
| 25 | 25 | UINT8 pen; |
| 26 | 26 | int r, g, b; |
| r1711 | r1712 | |
|---|---|---|
| 4 | 4 | static int layer_colorbase[2]; |
| 5 | 5 | static int rockrage_vreg; |
| 6 | 6 | |
| 7 | ||
| 7 | 8 | PALETTE_INIT( rockrage ) |
| 8 | 9 | { |
| 9 | 10 | int i; |
| 10 | #define TOTAL_COLORS(gfxn) (machine->gfx[gfxn]->total_colors * machine->gfx[gfxn]->color_granularity) | |
| 11 | #define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + offs]) | |
| 12 | 11 | |
| 13 | /* build the lookup table for sprites. Palette is dynamic. */ | |
| 14 | for (i = 0;i < TOTAL_COLORS(0)/2; i++){ | |
| 15 | COLOR(0,i) = 0x00 + (color_prom[i] & 0x0f); | |
| 16 | COLOR(0,(TOTAL_COLORS(0)/2)+i) = 0x10 + (color_prom[0x100+i] & 0x0f); | |
| 12 | /* allocate the colortable */ | |
| 13 | machine->colortable = colortable_alloc(machine, 0x40); | |
| 14 | ||
| 15 | /* sprites */ | |
| 16 | for (i = 0x20; i < 0x40; i++) | |
| 17 | colortable_entry_set_value(machine->colortable, i, i); | |
| 18 | ||
| 19 | /* characters */ | |
| 20 | for (i = 0x40; i < 0x140; i++) | |
| 21 | { | |
| 22 | UINT8 ctabentry; | |
| 23 | ||
| 24 | ctabentry = (color_prom[(i - 0x40) + 0x000] & 0x0f) | 0x00; | |
| 25 | colortable_entry_set_value(machine->colortable, i + 0x000, ctabentry); | |
| 26 | ||
| 27 | ctabentry = (color_prom[(i - 0x40) + 0x100] & 0x0f) | 0x10; | |
| 28 | colortable_entry_set_value(machine->colortable, i + 0x100, ctabentry); | |
| 17 | 29 | } |
| 18 | 30 | } |
| 19 | 31 | |
| 32 | ||
| 33 | static void set_pens(colortable_t *colortable) | |
| 34 | { | |
| 35 | int i; | |
| 36 | ||
| 37 | for (i = 0x00; i < 0x80; i += 2) | |
| 38 | { | |
| 39 | UINT16 data = paletteram[i] | (paletteram[i | 1] << 8); | |
| 40 | ||
| 41 | rgb_t color = MAKE_RGB(pal5bit(data >> 0), pal5bit(data >> 5), pal5bit(data >> 10)); | |
| 42 | ||
| 43 | colortable_palette_set_color(colortable, i >> 1, color); | |
| 44 | } | |
| 45 | } | |
| 46 | ||
| 47 | ||
| 20 | 48 | /*************************************************************************** |
| 21 | 49 | |
| 22 | 50 | Callback for the K007342 |
| r1711 | r1712 | |
| 84 | 112 | |
| 85 | 113 | VIDEO_UPDATE( rockrage ) |
| 86 | 114 | { |
| 115 | set_pens(machine->colortable); | |
| 116 | ||
| 87 | 117 | K007342_tilemap_update(); |
| 88 | 118 | |
| 89 | 119 | K007342_tilemap_draw( bitmap,cliprect, 0, TILEMAP_DRAW_OPAQUE ,0); |
| r1711 | r1712 | |
|---|---|---|
| 89 | 89 | |
| 90 | 90 | |
| 91 | 91 | |
| 92 | static void draw_sky( | |
| 92 | static void draw_sky( | |
| 93 | 93 | { |
| 94 | 94 | int x,y; |
| 95 | 95 | |
| 96 | 96 | for (y = 0;y < 256;y++) |
| 97 | { | |
| 98 | 97 | for (x = 0;x < 256;x++) |
| 99 | { | |
| 100 | *BITMAP_ADDR16(bitmap, y, x) = machine->pens[128 + x/2]; | |
| 101 | } | |
| 102 | } | |
| 98 | *BITMAP_ADDR16(bitmap, y, x) = 128 + x/2; | |
| 103 | 99 | } |
| 104 | 100 | |
| 105 | 101 | |
| r1711 | r1712 | |
| 136 | 132 | for (offs = 0;offs < 256;offs++) |
| 137 | 133 | scroll[offs] = -buggychl_scrollh[offs]; |
| 138 | 134 | |
| 139 | copyscrollbitmap_trans(bitmap,tmpbitmap2,256,scroll,0,0,cliprect, | |
| 135 | copyscrollbitmap_trans(bitmap,tmpbitmap2,256,scroll,0,0,cliprect, | |
| 140 | 136 | } |
| 141 | 137 | |
| 142 | 138 | |
| r1711 | r1712 | |
| 222 | 218 | { |
| 223 | 219 | int dx = flip_screen_x ? (255 - sx - px) : (sx + px); |
| 224 | 220 | if ((dx & ~0xff) == 0) |
| 225 | *BITMAP_ADDR16(bitmap, dy, dx) = | |
| 221 | *BITMAP_ADDR16(bitmap, dy, dx) = | |
| 226 | 222 | } |
| 227 | 223 | |
| 228 | 224 | /* the following line is almost certainly wrong */ |
| r1711 | r1712 | |
| 244 | 240 | |
| 245 | 241 | |
| 246 | 242 | if (sky_on) |
| 247 | draw_sky( | |
| 243 | draw_sky( | |
| 248 | 244 | else |
| 249 | fillbitmap(bitmap, | |
| 245 | fillbitmap(bitmap, | |
| 250 | 246 | |
| 251 | 247 | /* decode modified characters */ |
| 252 | 248 | for (code = 0;code < 256;code++) |
| 253 | { | |
| 254 | 249 | if (dirtychar[code]) |
| 255 | 250 | decodechar(machine->gfx[0],code,buggychl_character_ram); |
| 256 | } | |
| 257 | 251 | |
| 258 | 252 | if (bg_on) |
| 259 | 253 | draw_bg(machine, bitmap, cliprect); |
| r1711 | r1712 | |
|---|---|---|
| 8 | 8 | #include "deprecat.h" |
| 9 | 9 | #include "includes/starshp1.h" |
| 10 | 10 | |
| 11 | UINT8* starshp1_playfield_ram; | |
| 12 | UINT8* starshp1_hpos_ram; | |
| 13 | UINT8* starshp1_vpos_ram; | |
| 14 | UINT8* starshp1_obj_ram; | |
| 11 | UINT8 *starshp1_playfield_ram; | |
| 12 | UINT8 *starshp1_hpos_ram; | |
| 13 | UINT8 *starshp1_vpos_ram; | |
| 14 | UINT8 *starshp1_obj_ram; | |
| 15 | 15 | |
| 16 | 16 | int starshp1_ship_explode; |
| 17 | 17 | int starshp1_ship_picture; |
| r1711 | r1712 | |
| 29 | 29 | int starshp1_phasor; |
| 30 | 30 | int starshp1_collision_latch; |
| 31 | 31 | int starshp1_mux; |
| 32 | int starshp1_inverse; | |
| 32 | 33 | |
| 33 | static UINT16 | |
| 34 | static UINT16 | |
| 34 | 35 | |
| 35 | static mame_bitmap | |
| 36 | static mame_bitmap | |
| 36 | 37 | |
| 37 | static tilemap | |
| 38 | static tilemap | |
| 38 | 39 | |
| 39 | 40 | |
| 41 | static void set_pens(colortable_t *colortable) | |
| 42 | { | |
| 43 | colortable_palette_set_color(colortable, starshp1_inverse ? 7 : 0, MAKE_RGB(0x00, 0x00, 0x00)); | |
| 44 | colortable_palette_set_color(colortable, starshp1_inverse ? 6 : 1, MAKE_RGB(0x1e, 0x1e, 0x1e)); | |
| 45 | colortable_palette_set_color(colortable, starshp1_inverse ? 5 : 2, MAKE_RGB(0x4e, 0x4e, 0x4e)); | |
| 46 | colortable_palette_set_color(colortable, starshp1_inverse ? 4 : 3, MAKE_RGB(0x6c, 0x6c, 0x6c)); | |
| 47 | colortable_palette_set_color(colortable, starshp1_inverse ? 3 : 4, MAKE_RGB(0x93, 0x93, 0x93)); | |
| 48 | colortable_palette_set_color(colortable, starshp1_inverse ? 2 : 5, MAKE_RGB(0xb1, 0xb1, 0xb1)); | |
| 49 | colortable_palette_set_color(colortable, starshp1_inverse ? 1 : 6, MAKE_RGB(0xe1, 0xe1, 0xe1)); | |
| 50 | colortable_palette_set_color(colortable, starshp1_inverse ? 0 : 7, MAKE_RGB(0xff, 0xff, 0xff)); | |
| 51 | } | |
| 52 | ||
| 53 | ||
| 54 | PALETTE_INIT( starshp1 ) | |
| 55 | { | |
| 56 | int i; | |
| 57 | ||
| 58 | static const UINT16 colortable_source[] = | |
| 59 | { | |
| 60 | 0, 3, /* 0x00 - 0x01 - alpha numerics */ | |
| 61 | 0, 2, /* 0x02 - 0x03 - sprites (Z=0) */ | |
| 62 | 0, 5, /* 0x04 - 0x05 - sprites (Z=1) */ | |
| 63 | 0, 2, 4, 6, /* 0x06 - 0x09 - spaceship (EXPLODE=0) */ | |
| 64 | 0, 6, 6, 7, /* 0x0a - 0x0d - spaceship (EXPLODE=1) */ | |
| 65 | 5, 2, /* 0x0e - 0x0f - star field */ | |
| 66 | 7, /* 0x10 - phasor */ | |
| 67 | 5, 7 /* 0x11 - circle */ | |
| 68 | }; | |
| 69 | ||
| 70 | /* allocate the colortable */ | |
| 71 | machine->colortable = colortable_alloc(machine, 8); | |
| 72 | ||
| 73 | for (i = 0; i < sizeof(colortable_source) / sizeof(colortable_source[0]); i++) | |
| 74 | colortable_entry_set_value(machine->colortable, i, colortable_source[i]); | |
| 75 | } | |
| 76 | ||
| 77 | ||
| 40 | 78 | static TILE_GET_INFO( get_tile_info ) |
| 41 | 79 | { |
| 42 | 80 | UINT8 code = starshp1_playfield_ram[tile_index]; |
| r1711 | r1712 | |
| 61 | 99 | |
| 62 | 100 | for (i = 0; i < 0x10000; i++) |
| 63 | 101 | { |
| 64 | int bit = | |
| 65 | (val >> 0xF) ^ | |
| 66 | (val >> 0xC) ^ | |
| 67 | (val >> 0x7) ^ | |
| 68 | (val >> 0x1) ^ 1; | |
| 102 | int bit = (val >> 0xf) ^ | |
| 103 | (val >> 0xc) ^ | |
| 104 | (val >> 0x7) ^ | |
| 105 | (val >> 0x1) ^ 1; | |
| 69 | 106 | |
| 70 | 107 | LSFR[i] = val; |
| 71 | 108 | |
| r1711 | r1712 | |
| 117 | 154 | */ |
| 118 | 155 | |
| 119 | 156 | if (data != 0x87) |
| 120 | { | |
| 121 | 157 | starshp1_ship_picture = data; |
| 122 | } | |
| 123 | 158 | } |
| 124 | 159 | |
| 125 | 160 | |
| r1711 | r1712 | |
| 152 | 187 | UINT16* pLine = BITMAP_ADDR16(bitmap, y, 0); |
| 153 | 188 | |
| 154 | 189 | for (x = 0; x < bitmap->width; x++) |
| 155 | { | |
| 156 | 190 | if ((p[x] & 0x5b56) == 0x5b44) |
| 157 | { | |
| 158 | pLine[x] = (p[x] & 0x0400) ? 5 : 2; | |
| 159 | } | |
| 160 | } | |
| 191 | pLine[x] = (p[x] & 0x0400) ? 0x0e : 0x0f; | |
| 161 | 192 | } |
| 162 | 193 | } |
| 163 | 194 | |
| r1711 | r1712 | |
| 202 | 233 | int y = get_sprite_vpos(14); |
| 203 | 234 | |
| 204 | 235 | if (x <= 0) |
| 205 | { | |
| 206 | 236 | x -= (xzoom * starshp1_ship_hoffset) >> 16; |
| 207 | ||
| 237 | ||
| 208 | 238 | if (y <= 0) |
| 209 | { | |
| 210 | 239 | y -= (yzoom * starshp1_ship_voffset) >> 16; |
| 211 | } | |
| 212 | 240 | |
| 213 | 241 | drawgfxzoom(bitmap, machine->gfx[2], |
| 214 | 242 | starshp1_ship_picture & 0x03, |
| r1711 | r1712 | |
| 225 | 253 | int i; |
| 226 | 254 | |
| 227 | 255 | for (i = 128; i < 240; i++) |
| 228 | { | |
| 229 | 256 | if (i >= get_sprite_vpos(13)) |
| 230 | 257 | { |
| 231 | *BITMAP_ADDR16(bitmap, i, 2 * i + 0) = 7; | |
| 232 | *BITMAP_ADDR16(bitmap, i, 2 * i + 1) = 7; | |
| 233 | *BITMAP_ADDR16(bitmap, i, 2 * (255 - i) + 0) = 7; | |
| 234 | *BITMAP_ADDR16(bitmap, i, 2 * (255 - i) + 1) = 7; | |
| 258 | *BITMAP_ADDR16(bitmap, i, 2 * i + 0) = 0x10; | |
| 259 | *BITMAP_ADDR16(bitmap, i, 2 * i + 1) = 0x10; | |
| 260 | *BITMAP_ADDR16(bitmap, i, 2 * (255 - i) + 0) = 0x10; | |
| 261 | *BITMAP_ADDR16(bitmap, i, 2 * (255 - i) + 1) = 0x10; | |
| 235 | 262 | } |
| 236 | } | |
| 237 | 263 | } |
| 238 | 264 | |
| 239 | 265 | |
| r1711 | r1712 | |
| 268 | 294 | h2 = bitmap->width - 1; |
| 269 | 295 | |
| 270 | 296 | for (x = h1; x <= h2; x++) |
| 271 | { | |
| 272 | 297 | if (starshp1_circle_mod) |
| 273 | 298 | { |
| 274 | 299 | if (p[x] & 1) |
| 275 | { | |
| 276 | pLine[x] = 5; | |
| 277 | } | |
| 300 | pLine[x] = 0x11; | |
| 278 | 301 | } |
| 279 | 302 | else |
| 280 | { | |
| 281 | pLine[x] = 7; | |
| 282 | } | |
| 283 | } | |
| 303 | pLine[x] = 0x12; | |
| 284 | 304 | } |
| 285 | 305 | } |
| 286 | 306 | |
| r1711 | r1712 | |
| 307 | 327 | x++; |
| 308 | 328 | |
| 309 | 329 | if (d < 0) |
| 310 | { | |
| 311 | 330 | d += 4 * x + 6; |
| 312 | } | |
| 313 | 331 | else |
| 314 | { | |
| 315 | 332 | d += 4 * (x - y--) + 10; |
| 316 | } | |
| 317 | 333 | } |
| 318 | 334 | } |
| 319 | 335 | |
| 320 | 336 | |
| 321 | static int spaceship_collision(mame_bitmap | |
| 337 | static int spaceship_collision(mame_bitmap | |
| 322 | 338 | { |
| 323 | 339 | int x; |
| 324 | 340 | int y; |
| r1711 | r1712 | |
| 328 | 344 | const UINT16* pLine = BITMAP_ADDR16(helper, y, 0); |
| 329 | 345 | |
| 330 | 346 | for (x = rect->min_x; x <= rect->max_x; x++) |
| 331 | { | |
| 332 | 347 | if (pLine[x] != 0) |
| 333 | { | |
| 334 | 348 | return 1; |
| 335 | } | |
| 336 | } | |
| 337 | 349 | } |
| 338 | 350 | |
| 339 | 351 | return 0; |
| r1711 | r1712 | |
| 349 | 361 | } |
| 350 | 362 | |
| 351 | 363 | |
| 352 | static int circle_collision(rectangle | |
| 364 | static int circle_collision(rectangle | |
| 353 | 365 | { |
| 354 | 366 | int center_x = get_circle_hpos(); |
| 355 | 367 | int center_y = get_circle_vpos(); |
| 356 | 368 | |
| 357 | 369 | int r = get_radius(); |
| 358 | 370 | |
| 359 | return | |
| 360 | point_in_circle(rect->min_x, rect->min_y, center_x, center_y, r) || | |
| 361 | point_in_circle(rect->min_x, rect->max_y, center_x, center_y, r) || | |
| 362 | point_in_circle(rect->max_x, rect->min_y, center_x, center_y, r) || | |
| 363 | point_in_circle(rect->max_x, rect->max_y, center_x, center_y, r); | |
| 371 | return point_in_circle(rect->min_x, rect->min_y, center_x, center_y, r) || | |
| 372 | point_in_circle(rect->min_x, rect->max_y, center_x, center_y, r) || | |
| 373 | point_in_circle(rect->max_x, rect->min_y, center_x, center_y, r) || | |
| 374 | point_in_circle(rect->max_x, rect->max_y, center_x, center_y, r); | |
| 364 | 375 | } |
| 365 | 376 | |
| 366 | 377 | |
| 367 | 378 | VIDEO_UPDATE( starshp1 ) |
| 368 | 379 | { |
| 380 | set_pens(machine->colortable); | |
| 381 | ||
| 369 | 382 | fillbitmap(bitmap, machine->pens[0], cliprect); |
| 370 | 383 | |
| 371 | 384 | if (starshp1_starfield_kill == 0) |
| r1711 | r1712 | |
| 386 | 399 | |
| 387 | 400 | if (starshp1_phasor != 0) |
| 388 | 401 | draw_phasor(bitmap); |
| 402 | ||
| 389 | 403 | return 0; |
| 390 | 404 | } |
| 391 | 405 | |
| r1711 | r1712 | |
| 414 | 428 | draw_spaceship(machine, helper, &machine->screen[0].visarea); |
| 415 | 429 | |
| 416 | 430 | if (circle_collision(&machine->screen[0].visarea)) |
| 417 | { | |
| 418 | 431 | starshp1_collision_latch |= 1; |
| 419 | ||
| 432 | ||
| 420 | 433 | if (circle_collision(&rect)) |
| 421 | { | |
| 422 | 434 | starshp1_collision_latch |= 2; |
| 423 | ||
| 435 | ||
| 424 | 436 | if (spaceship_collision(helper, &rect)) |
| 425 | { | |
| 426 | 437 | starshp1_collision_latch |= 4; |
| 427 | ||
| 438 | ||
| 428 | 439 | if (spaceship_collision(helper, &machine->screen[0].visarea)) |
| 429 | { | |
| 430 | 440 | starshp1_collision_latch |= 8; |
| 431 | } | |
| 432 | 441 | } |
| r1711 | r1712 | |
|---|---|---|
| 18 | 18 | extern void dp_full_sync(void); |
| 19 | 19 | |
| 20 | 20 | extern UINT32 n64_vi_origin; |
| 21 | extern UINT32 n64_vi_width; | |
| 22 | 21 | extern UINT32 n64_vi_control; |
| 23 | 22 | |
| 24 | 23 | extern UINT32 dp_start; |
| r1711 | r1712 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 3 | 2 | #include "video/taitoic.h" |
| 4 | 3 | #include "includes/taito_f2.h" |
| 5 | 4 | |
| r1711 | r1712 | |
| 374 | 373 | UINT32 code,UINT32 color,int flipx,int flipy,int sx,int sy, |
| 375 | 374 | const rectangle *clip,int scalex, int scaley) |
| 376 | 375 | { |
| 377 | | |
| 376 | i | |
| 378 | 377 | UINT8 *source_base = gfx->gfxdata + (code % gfx->total_elements) * gfx->char_modulo; |
| 379 | 378 | |
| 380 | 379 | int sprite_screen_height = (scaley*gfx->height+0x8000)>>16; |
| r1711 | r1712 | |
| 480 | 479 | // Blend mode 1 - Sprite under tilemap, use sprite palette with tilemap data |
| 481 | 480 | if ((f2_spriteblendmode&0xc0)==0xc0 && sprite_priority==(tilemap_priority-1)) |
| 482 | 481 | { |
| 483 | dest[x]=(pal | |
| 482 | dest[x]=((pal_base+c)&0xfff0)|(dest[x]&0xf); | |
| 484 | 483 | } |
| 485 | 484 | // Blend mode 1 - Sprite over tilemap, use sprite data with tilemap palette |
| 486 | 485 | else if ((f2_spriteblendmode&0xc0)==0xc0 && sprite_priority==(tilemap_priority+1)) |
| 487 | 486 | { |
| 488 | 487 | if (dest[x]&0xf) |
| 489 | dest[x]=(dest[x]&0xfff0)|(pal | |
| 488 | dest[x]=(dest[x]&0xfff0)|((pal_base+c)&0xf); | |
| 490 | 489 | else |
| 491 | dest[x]=pal | |
| 490 | dest[x]=pal_base+c | |
| 492 | 491 | } |
| 493 | 492 | // Blend mode 2 - Sprite under tilemap, use sprite data with tilemap palette |
| 494 | 493 | else if ((f2_spriteblendmode&0xc0)==0x80 && sprite_priority==(tilemap_priority-1)) |
| r1711 | r1712 | |
| 498 | 497 | // Blend mode 2 - Sprite over tilemap, alternate sprite palette, confirmed in Pulirula level 2 |
| 499 | 498 | else if ((f2_spriteblendmode&0xc0)==0x80 && sprite_priority==(tilemap_priority+1)) |
| 500 | 499 | { |
| 501 | dest[x]=(pal | |
| 500 | dest[x]=((pal_base+c)&0xffef); // Pulirula level 2, Liquid Kids attract mode | |
| 502 | 501 | } |
| 503 | 502 | // No blending |
| 504 | 503 | else |
| 505 | 504 | { |
| 506 | 505 | if (sprite_priority>tilemap_priority) // Ninja Kids confirms tilemap takes priority in equal value case |
| 507 | dest[x]=pal | |
| 506 | dest[x]=pal_base+c | |
| 508 | 507 | } |
| 509 | 508 | pri[x] |= 0x80; |
| 510 | 509 | } |
| r1711 | r1712 | |
|---|---|---|
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | |
| 77 | static void set_pens(r | |
| 77 | static void set_pens(colort | |
| 78 | 78 | { |
| 79 | 79 | int i; |
| 80 | 80 | |
| r1711 | r1712 | |
| 83 | 83 | UINT16 data = paletteram[i] | (paletteram_2[i] << 8); |
| 84 | 84 | rgb_t color = MAKE_RGB(pal4bit(data >> 4), pal4bit(data >> 0), pal4bit(data >> 8)); |
| 85 | 85 | |
| 86 | colortable_palette_set_color( | |
| 86 | colortable_palette_set_color( | |
| 87 | 87 | } |
| 88 | 88 | } |
| 89 | 89 | |
| r1711 | r1712 | |
| 294 | 294 | |
| 295 | 295 | VIDEO_UPDATE( stfight ) |
| 296 | 296 | { |
| 297 | set_pens(machine); | |
| 297 | set_pens(machine->colortable); | |
| 298 | 298 | |
| 299 | 299 | fillbitmap(priority_bitmap,0,cliprect); |
| 300 | 300 |
| r1711 | r1712 | |
|---|---|---|
| 117 | 117 | sortlayers(layer, layerpri); |
| 118 | 118 | |
| 119 | 119 | fillbitmap(priority_bitmap, 0, cliprect); |
| 120 | fillbitmap(bitmap, | |
| 120 | fillbitmap(bitmap, | |
| 121 | 121 | |
| 122 | 122 | K056832_tilemap_draw(machine, bitmap, cliprect, layer[0], 0, 1); |
| 123 | 123 | K056832_tilemap_draw(machine, bitmap, cliprect, layer[1], 0, 2); |
| r1711 | r1712 | |
|---|---|---|
| 170 | 170 | { |
| 171 | 171 | int i,r,g,b; |
| 172 | 172 | |
| 173 | #define TOTAL_COLORS(gfxn) (machine->gfx[gfxn]->total_colors * machine->gfx[gfxn]->color_granularity) | |
| 174 | #define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + offs]) | |
| 175 | ||
| 176 | 173 | /* background/sprites palette variables */ |
| 177 | 174 | |
| 178 | 175 | static const int resistors_0[6] = { 33000, 15000, 8200, 4700, 2200, 1000 }; |
| r1711 | r1712 | |
| 227 | 224 | color_prom++; |
| 228 | 225 | } |
| 229 | 226 | |
| 230 | /* text lookup */ | |
| 231 | for (i = 0; i < TOTAL_COLORS(0)/2; i++) | |
| 232 | { | |
| 233 | COLOR(0, 2*i+0 ) = 0; /* transparent "black" */ | |
| 234 | COLOR(0, 2*i+1 ) = i; | |
| 235 | } | |
| 236 | ||
| 237 | 227 | /* sprites use the second PROM to control 8 x LS368. We copy content of this PROM over here */ |
| 238 | 228 | for (i = 0; i < 32; i++) |
| 239 | 229 | { |
| r1711 | r1712 | |
| 590 | 580 | |
| 591 | 581 | VIDEO_UPDATE( tubep ) |
| 592 | 582 | { |
| 593 | int offs; | |
| 594 | 583 | int DISP_ = DISP^1; |
| 595 | 584 | |
| 596 | /* draw background ram */ | |
| 597 | { | |
| 598 | const pen_t *pens = &machine->pens[ 32 ]; //change it later | |
| 585 | const pen_t *pens = &machine->pens[ 32 ]; //change it later | |
| 599 | 586 | |
| 600 | UINT32 h,v; | |
| 601 | UINT8 * romBxx = memory_region(REGION_USER1) + 0x2000*background_romsel; | |
| 587 | UINT32 v; | |
| 588 | UINT8 *text_gfx_base = memory_region(REGION_GFX1); | |
| 589 | UINT8 *romBxx = memory_region(REGION_USER1) + 0x2000*background_romsel; | |
| 602 | 590 | |
| 603 | | |
| 591 | | |
| 604 | 592 | |
| 605 | for (v = cliprect->min_y; v <= cliprect->max_y; v++) /* only for current scanline */ | |
| 593 | for (v = cliprect->min_y; v <= cliprect->max_y; v++) /* only for current scanline */ | |
| 594 | { | |
| 595 | UINT32 h; | |
| 596 | UINT32 sp_data0=0,sp_data1=0,sp_data2=0; | |
| 597 | for (h = 0*8; h < 32*8; h++) | |
| 606 | 598 | { |
| 607 | UINT32 sp_data0=0,sp_data1=0,sp_data2=0; | |
| 608 | for (h = 0*8; h < 32*8; h++) | |
| 599 | offs_t text_offs; | |
| 600 | UINT8 text_code; | |
| 601 | UINT8 text_gfx_data; | |
| 602 | ||
| 603 | sp_data2 = sp_data1; | |
| 604 | sp_data1 = sp_data0; | |
| 605 | sp_data0 = spritemap[ h + v*256 +(DISP_*256*256) ]; | |
| 606 | ||
| 607 | text_offs = ((v >> 3) << 6) | ((h >> 3) << 1); | |
| 608 | text_code = tubep_textram[text_offs]; | |
| 609 | text_gfx_data = text_gfx_base[(text_code << 3) | (v & 0x07)]; | |
| 610 | ||
| 611 | if (text_gfx_data & (0x80 >> (h & 0x07))) | |
| 612 | *BITMAP_ADDR16(bitmap, v, h) = machine->pens[(tubep_textram[text_offs + 1] & 0x0f) | color_A4]; | |
| 613 | else | |
| 609 | 614 | { |
| 610 | 615 | UINT32 bg_data; |
| 611 | 616 | UINT32 sp_data; |
| 612 | UINT32 sel0,sel1,sel2; | |
| 613 | 617 | |
| 614 | 618 | UINT32 romB_addr = (((h>>1)&0x3f)^((h&0x80)?0x00:0x3f)) | (((v&0x7f)^((v&0x80)?0x00:0x7f))<<6); |
| 615 | 619 | |
| r1711 | r1712 | |
| 638 | 642 | |
| 639 | 643 | romB_data_h>>=2; |
| 640 | 644 | |
| 641 | sp_data2 = sp_data1; | |
| 642 | sp_data1 = sp_data0; | |
| 643 | sp_data0 = spritemap[ h + v*256 +(DISP_*256*256) ]; | |
| 644 | sel0 = 0; | |
| 645 | if (sp_data0 != 0x0f) | |
| 646 | sel0 = 1; | |
| 647 | ||
| 648 | sel1 = 1; | |
| 649 | if (sp_data1 != 0x0f) | |
| 650 | sel1 = 0; | |
| 651 | ||
| 652 | sel2 = 0; | |
| 653 | if (sp_data2 != 0x0f) | |
| 654 | sel2 = 1; | |
| 655 | ||
| 656 | if (sel0&sel1&sel2) | |
| 645 | if ((sp_data0 != 0x0f) && (sp_data1 == 0x0f) && (sp_data2 != 0x0f)) | |
| 657 | 646 | sp_data = sp_data2; |
| 658 | 647 | else |
| 659 | 648 | sp_data = sp_data1; |
| 660 | 649 | |
| 661 | if (sp_data!=0x0f) | |
| 650 | if (sp_data != 0x0f) | |
| 662 | 651 | bg_data = prom2[sp_data | color_A4]; |
| 663 | 652 | |
| 664 | 653 | *BITMAP_ADDR16(bitmap, v, h) = pens[ bg_data*64 + romB_data_h ]; |
| r1711 | r1712 | |
| 666 | 655 | } |
| 667 | 656 | } |
| 668 | 657 | |
| 669 | /* draw the character mapped graphics */ | |
| 670 | for (offs = 0;offs < 0x800; offs+=2) | |
| 671 | { | |
| 672 | int sx,sy; | |
| 673 | ||
| 674 | sx = (offs/2) % 32; | |
| 675 | //if (flipscreen[0]) sx = 31 - sx; | |
| 676 | sy = (offs/2) / 32; | |
| 677 | //if (flipscreen[1]) sy = 31 - sy; | |
| 678 | ||
| 679 | if ((cliprect->min_y&(~0x07)) == 8*sy) | |
| 680 | { | |
| 681 | drawgfx(bitmap,machine->gfx[0], | |
| 682 | tubep_textram[offs], | |
| 683 | ((tubep_textram[offs+1]) & 0x0f) | color_A4, | |
| 684 | 0,0, /*flipscreen[0],flipscreen[1],*/ | |
| 685 | 8*sx,8*sy, | |
| 686 | cliprect, TRANSPARENCY_PEN, machine->pens[0]); | |
| 687 | } | |
| 688 | } | |
| 689 | ||
| 690 | ||
| 691 | 658 | return 0; |
| 692 | 659 | } |
| 693 | 660 | |
| r1711 | r1712 | |
| 717 | 684 | PALETTE_INIT( rjammer ) |
| 718 | 685 | { |
| 719 | 686 | int i; |
| 720 | #define TOTAL_COLORS(gfxn) (machine->gfx[gfxn]->total_colors * machine->gfx[gfxn]->color_granularity) | |
| 721 | #define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + offs]) | |
| 722 | 687 | |
| 723 | 688 | static const int resistors_rg[3] = { 1000, 470, 220 }; |
| 724 | 689 | static const int resistors_b [2] = { 470, 220 }; |
| r1711 | r1712 | |
| 730 | 695 | 2, resistors_b, weights_b, 470, 0, |
| 731 | 696 | 0, 0, 0, 0, 0 ); |
| 732 | 697 | |
| 733 | for (i = 0;i < machine-> | |
| 698 | for (i = 0;i < machine->config->total_colors;i++) | |
| 734 | 699 | { |
| 735 | 700 | int bit0,bit1,bit2,r,g,b; |
| 736 | 701 | |
| r1711 | r1712 | |
| 753 | 718 | |
| 754 | 719 | color_prom++; |
| 755 | 720 | } |
| 756 | ||
| 757 | ||
| 758 | /* text: colors 0, 17-31 from PROM @16B */ | |
| 759 | for (i = 0; i < TOTAL_COLORS(0)/2; i++) | |
| 760 | { | |
| 761 | COLOR(0, 2*i + 0) = 0; /* transparent "black" */ | |
| 762 | COLOR(0, 2*i + 1) = i+16; /* /SOFF is on the A4 line */ | |
| 763 | } | |
| 764 | 721 | } |
| 765 | 722 | |
| 766 | 723 | |
| r1711 | r1712 | |
| 778 | 735 | |
| 779 | 736 | VIDEO_UPDATE( rjammer ) |
| 780 | 737 | { |
| 781 | int offs; | |
| 782 | 738 | int DISP_ = DISP^1; |
| 783 | 739 | |
| 784 | /* draw background ram */ | |
| 785 | { | |
| 786 | const pen_t *pens = &machine->pens[ 0x00 ]; | |
| 740 | const pen_t *pens = &machine->pens[ 0x00 ]; | |
| 787 | 741 | |
| 788 | UINT32 h,v; | |
| 789 | UINT8 * rom13D = memory_region(REGION_USER1); | |
| 790 | UINT8 * rom11BD = memory_region(REGION_USER1)+0x1000; | |
| 791 | UINT8 * rom19C = memory_region(REGION_USER1)+0x5000; | |
| 742 | UINT32 v; | |
| 743 | UINT8 *text_gfx_base = memory_region(REGION_GFX1); | |
| 744 | UINT8 *rom13D = memory_region(REGION_USER1); | |
| 745 | UINT8 *rom11BD = memory_region(REGION_USER1)+0x1000; | |
| 746 | UINT8 *rom19C = memory_region(REGION_USER1)+0x5000; | |
| 792 | 747 | |
| 793 | ||
| 794 | 748 | /* this can be optimized further by extracting constants out of the loop */ |
| 795 | 749 | /* especially read from ROM19C can be done once per 8 pixels*/ |
| 796 | 750 | /* and the data could be bitswapped beforehand */ |
| 797 | 751 | |
| 798 | for (v = cliprect->min_y; v <= cliprect->max_y; v++) /* only for current scanline */ | |
| 752 | for (v = cliprect->min_y; v <= cliprect->max_y; v++) /* only for current scanline */ | |
| 753 | { | |
| 754 | UINT32 h; | |
| 755 | UINT32 sp_data0=0,sp_data1=0,sp_data2=0; | |
| 756 | UINT8 pal14h4_pin19; | |
| 757 | UINT8 pal14h4_pin18; | |
| 758 | UINT8 pal14h4_pin13; | |
| 759 | ||
| 760 | UINT32 addr = (v*2) | page; | |
| 761 | UINT32 ram_data = rjammer_backgroundram[ addr ] + 256*(rjammer_backgroundram[ addr+1 ]&0x2f); | |
| 762 | ||
| 763 | addr = (v>>3) | ((ls377_data&0x1f)<<5); | |
| 764 | pal14h4_pin13 = (rom19C[addr] >> ((v&7)^7) ) &1; | |
| 765 | pal14h4_pin19 = (ram_data>>13) & 1; | |
| 766 | ||
| 767 | for (h = 0*8; h < 32*8; h++) | |
| 799 | 768 | { |
| 800 | UINT32 sp_data0=0,sp_data1=0,sp_data2=0; | |
| 801 | UINT8 pal14h4_pin19; | |
| 802 | UINT8 pal14h4_pin18; | |
| 803 | UINT8 pal14h4_pin13; | |
| 769 | offs_t text_offs; | |
| 770 | UINT8 text_code; | |
| 771 | UINT8 text_gfx_data; | |
| 804 | 772 | |
| 805 | UINT32 addr = (v*2) | page; | |
| 806 | UINT32 ram_data = rjammer_backgroundram[ addr ] + 256*(rjammer_backgroundram[ addr+1 ]&0x2f); | |
| 773 | sp_data2 = sp_data1; | |
| 774 | sp_data1 = sp_data0; | |
| 775 | sp_data0 = spritemap[ h + v*256 +(DISP_*256*256) ]; | |
| 807 | 776 | |
| 808 | addr = (v>>3) | ((ls377_data&0x1f)<<5); | |
| 809 | pal14h4_pin13 = (rom19C[addr] >> ((v&7)^7) ) &1; | |
| 810 | pal14h4_pin19 = (ram_data>>13) & 1; | |
| 777 | text_offs = ((v >> 3) << 6) | ((h >> 3) << 1); | |
| 778 | text_code = tubep_textram[text_offs]; | |
| 779 | text_gfx_data = text_gfx_base[(text_code << 3) | (v & 0x07)]; | |
| 811 | 780 | |
| 812 | for (h = 0*8; h < 32*8; h++) | |
| 781 | if (text_gfx_data & (0x80 >> (h & 0x07))) | |
| 782 | *BITMAP_ADDR16(bitmap, v, h) = machine->pens[0x10 | (tubep_textram[text_offs + 1] & 0x0f)]; | |
| 783 | else | |
| 813 | 784 | { |
| 814 | 785 | UINT32 sp_data; |
| 815 | UINT32 sel0,sel1,sel2; | |
| 816 | 786 | |
| 817 | sp_data2 = sp_data1; | |
| 818 | sp_data1 = sp_data0; | |
| 819 | sp_data0 = spritemap[ h + v*256 +(DISP_*256*256) ]; | |
| 820 | sel0 = 0; | |
| 821 | if (sp_data0 != 0x0f) | |
| 822 | sel0 = 1; | |
| 823 | ||
| 824 | sel1 = 1; | |
| 825 | if (sp_data1 != 0x0f) | |
| 826 | sel1 = 0; | |
| 827 | ||
| 828 | sel2 = 0; | |
| 829 | if (sp_data2 != 0x0f) | |
| 830 | sel2 = 1; | |
| 831 | ||
| 832 | if (sel0&sel1&sel2) | |
| 787 | if ((sp_data0 != 0x0f) && (sp_data1 == 0x0f) && (sp_data2 != 0x0f)) | |
| 833 | 788 | sp_data = sp_data2; |
| 834 | 789 | else |
| 835 | 790 | sp_data = sp_data1; |
| 836 | 791 | |
| 837 | if (sp_data!=0x0f) | |
| 838 | { | |
| 792 | if (sp_data != 0x0f) | |
| 839 | 793 | *BITMAP_ADDR16(bitmap, v, h) = pens[0x00+ sp_data ]; |
| 840 | } | |
| 841 | 794 | else |
| 842 | 795 | { |
| 843 | 796 | UINT32 bg_data; |
| r1711 | r1712 | |
| 864 | 817 | addr = (h>>3) | (ls377_data<<5); |
| 865 | 818 | pal14h4_pin18 = (rom19C[addr] >> ((h&7)^7) ) &1; |
| 866 | 819 | |
| 867 | /* | |
| 868 | PAL14H4 @15A functions: | |
| 820 | /* | |
| 821 | PAL14H4 @15A funct | |
| 869 | 822 | |
| 870 | PIN6 = disable color on offscreen area | |
| 823 | PIN6 = disable color on offscreen area | |
| 824 | PIN19,PIN18,PIN13 = arguments for PIN17 function | |
| 825 | PIN17 = background color bank (goes to A4 line on PROM @16A) | |
| 826 | formula for PIN17 is: | |
| 871 | 827 | |
| 872 | PIN19,PIN18,PIN13 = arguments for PIN17 function | |
| 828 | PIN17 = ( PIN13 & PIN8 & PIN9 & !PIN11 & PIN12 ) | |
| 829 | | ( PIN18 & PIN8 & PIN9 & PIN11 & !PIN12 ) | |
| 830 | | ( PIN19 ) | |
| 831 | where: | |
| 832 | PIN 8 = bit 3 of bg_data | |
| 833 | PIN 9 = bit 2 of bg_data | |
| 834 | PIN 11= bit 1 of bg_data | |
| 835 | PIN 12= bit 0 of bg_data | |
| 873 | 836 | |
| 874 | PIN17 = background color bank (goes to A4 line on PROM @16A) | |
| 875 | formula for PIN17 is: | |
| 837 | not used by now, but for the record: | |
| 876 | 838 | |
| 877 | PIN17 = ( PIN13 & PIN8 & PIN9 & !PIN11 & PIN12 ) | |
| 878 | | ( PIN18 & PIN8 & PIN9 & PIN11 & !PIN12 ) | |
| 879 | | ( PIN19 ) | |
| 880 | ||
| 881 | where: | |
| 882 | PIN 8 = bit 3 of bg_data | |
| 883 | PIN 9 = bit 2 of bg_data | |
| 884 | PIN 11= bit 1 of bg_data | |
| 885 | PIN 12= bit 0 of bg_data | |
| 886 | ||
| 887 | ||
| 888 | not used by now, but for the record: | |
| 889 | ||
| 890 | PIN15 = select prom @16B (active low) | |
| 891 | PIN16 = select prom @16A (active low) | |
| 892 | PINs: 1,2,3,4,5 and 7,14 are used for priority system | |
| 893 | ||
| 894 | */ | |
| 839 | PIN15 = select prom @16B (active low) | |
| 840 | PIN16 = select prom @16A (active low) | |
| 841 | PINs: 1,2,3,4,5 and 7,14 are used for priority system | |
| 842 | */ | |
| 895 | 843 | color_bank = (pal14h4_pin13 & ((bg_data&0x08)>>3) & ((bg_data&0x04)>>2) & (((bg_data&0x02)>>1)^1) & (bg_data&0x01) ) |
| 896 | 844 | | (pal14h4_pin18 & ((bg_data&0x08)>>3) & ((bg_data&0x04)>>2) & ((bg_data&0x02)>>1) & ((bg_data&0x01)^1) ) |
| 897 | 845 | | (pal14h4_pin19); |
| r1711 | r1712 | |
| 901 | 849 | } |
| 902 | 850 | } |
| 903 | 851 | |
| 904 | /* draw the character mapped graphics */ | |
| 905 | for (offs = 0;offs < 0x800; offs+=2) | |
| 906 | { | |
| 907 | int sx,sy; | |
| 908 | ||
| 909 | sx = (offs/2) % 32; | |
| 910 | //if (flipscreen[0]) sx = 31 - sx; | |
| 911 | sy = (offs/2) / 32; | |
| 912 | //if (flipscreen[1]) sy = 31 - sy; | |
| 913 | ||
| 914 | if ((cliprect->min_y&(~0x07)) == 8*sy) | |
| 915 | { | |
| 916 | drawgfx(bitmap,machine->gfx[0], | |
| 917 | tubep_textram[offs], | |
| 918 | (tubep_textram[offs+1]) & 0x0f, | |
| 919 | 0,0, /*flipscreen[0],flipscreen[1],*/ | |
| 920 | 8*sx,8*sy, | |
| 921 | cliprect, TRANSPARENCY_PEN, machine->pens[0]); | |
| 922 | } | |
| 923 | } | |
| 924 | ||
| 925 | 852 | return 0; |
| 926 | 853 | } |
| 927 | 854 |
| r1711 | r1712 | |
|---|---|---|
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | 8 | #include "deprecat.h" |
| 9 | #include "exidy.h" | |
| 9 | 10 | |
| 10 | 11 | |
| 11 | 12 | UINT8 *exidy_videoram; |
| r1711 | r1712 | |
|---|---|---|
| 6 | 6 | { |
| 7 | 7 | int i; |
| 8 | 8 | |
| 9 | for (i = 0;i < machine-> | |
| 9 | for (i = 0;i < machine->config->total_colors;i++) | |
| 10 | 10 | { |
| 11 | 11 | int bit0,bit1,bit2,bit3,r,g,b; |
| 12 | 12 | |
| r1711 | r1712 | |
| 20 | 20 | bit2 = (color_prom[i] >> 6) & 0x01; |
| 21 | 21 | bit3 = (color_prom[i] >> 7) & 0x01; |
| 22 | 22 | g = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; |
| 23 | bit0 = (color_prom[i + machine->drv->total_colors] >> 0) & 0x01; | |
| 24 | bit1 = (color_prom[i + machine->drv->total_colors] >> 1) & 0x01; | |
| 25 | bit2 = (color_prom[i + machine->drv->total_colors] >> 2) & 0x01; | |
| 26 | bit3 = (color_prom[i + machine->drv->total_colors] >> 3) & 0x01; | |
| 23 | bit0 = (color_prom[i + machine->config->total_colors] >> 0) & 0x01; | |
| 24 | bit1 = (color_prom[i + machine->config->total_colors] >> 1) & 0x01; | |
| 25 | bit2 = (color_prom[i + machine->config->total_colors] >> 2) & 0x01; | |
| 26 | bit3 = (color_prom[i + machine->config->total_colors] >> 3) & 0x01; | |
| 27 | 27 | b = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; |
| 28 | 28 | |
| 29 | 29 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); |
| r1711 | r1712 | |
|---|---|---|
| 26 | 26 | } |
| 27 | 27 | |
| 28 | 28 | |
| 29 | static void set_pens(r | |
| 29 | static void set_pens(colort | |
| 30 | 30 | { |
| 31 | 31 | int i; |
| 32 | 32 | |
| r1711 | r1712 | |
| 36 | 36 | |
| 37 | 37 | rgb_t color = MAKE_RGB(pal5bit(data >> 0), pal5bit(data >> 5), pal5bit(data >> 10)); |
| 38 | 38 | |
| 39 | colortable_palette_set_color( | |
| 39 | colortable_palette_set_color( | |
| 40 | 40 | } |
| 41 | 41 | } |
| 42 | 42 | |
| r1711 | r1712 | |
| 153 | 153 | sect_rect(&finalclip0, cliprect); |
| 154 | 154 | sect_rect(&finalclip1, cliprect); |
| 155 | 155 | |
| 156 | set_pens(machine); | |
| 156 | set_pens(machine->colortable); | |
| 157 | 157 | |
| 158 | 158 | /* set scroll registers */ |
| 159 | 159 | xoffs = K007121_ctrlram[0][0x00]; |
| r1711 | r1712 | |
|---|---|---|
| 191 | 191 | |
| 192 | 192 | /************************************* |
| 193 | 193 | * |
| 194 | * Outputs | |
| 195 | * | |
| 196 | *************************************/ | |
| 197 | ||
| 198 | WRITE8_HANDLER( yard_flipscreen_w ) | |
| 199 | { | |
| 200 | /* screen flip is handled both by software and hardware */ | |
| 201 | flip_screen_set((data & 0x01) ^ (~readinputportbytag("DSW2") & 0x01)); | |
| 202 | ||
| 203 | coin_counter_w(0, data & 0x02); | |
| 204 | coin_counter_w(1, data & 0x20); | |
| 205 | } | |
| 206 | ||
| 207 | ||
| 208 | ||
| 209 | /************************************* | |
| 210 | * | |
| 194 | 211 | * Sprite rendering |
| 195 | 212 | * |
| 196 | 213 | *************************************/ |
| r1711 | r1712 | |
|---|---|---|
| 89 | 89 | |
| 90 | 90 | /* The game does not initialise the palette at startup. It should |
| 91 | 91 | be totally black */ |
| 92 | for (pen = 0; pen < machine-> | |
| 92 | for (pen = 0; pen < machine->config->total_colors; pen++) | |
| 93 | 93 | palette_set_color(machine,pen,MAKE_RGB(0,0,0)); |
| 94 | 94 | } |
| 95 | 95 | #endif |
| r1711 | r1712 | |
|---|---|---|
| 89 | 89 | static void draw_sprite( /* slow slow slow, but it's ok for now */ |
| 90 | 90 | mame_bitmap *bitmap, |
| 91 | 91 | const UINT16 *pen_data, |
| 92 | | |
| 92 | i | |
| 93 | 93 | int xpos, int ypos, |
| 94 | 94 | int width, int height, |
| 95 | 95 | int flipx, int flipy, int pri ) |
| r1711 | r1712 | |
| 127 | 127 | |
| 128 | 128 | if( pen ) |
| 129 | 129 | { |
| 130 | if(pdest[sx]<pval) { dest[sx] = pal_ | |
| 130 | if(pdest[sx]<pval) { dest[sx] = pal_base + pen | |
| 131 | 131 | |
| 132 | 132 | pdest[sx]|=0x10; |
| 133 | 133 | } |
| r1711 | r1712 | |
| 211 | 211 | int xpos = source[1]; |
| 212 | 212 | int ypos = source[2]; |
| 213 | 213 | |
| 214 | | |
| 214 | i | |
| 215 | 215 | int height = 16<<((attributes>>6)&0x3); |
| 216 | 216 | int width = 16<<((attributes>>4)&0x3); |
| 217 | 217 | const UINT16 *pen_data = 0; |
| r1711 | r1712 | |
| 275 | 275 | } |
| 276 | 276 | |
| 277 | 277 | //if( sprite_which==count || !input_code_pressed( KEYCODE_B ) ) |
| 278 | draw_sprite( bitmap, pen_data, pal_ | |
| 278 | draw_sprite( bitmap, pen_data, pal_base, xpos, ypos, width, height, flipx, flipy, (attributes&0x4000) ); | |
| 279 | 279 | } |
| 280 | 280 | |
| 281 | 281 | count++; |
| r1711 | r1712 | |
| 362 | 362 | */ |
| 363 | 363 | const UINT16 *gfx_data = gfx_base + (code&0x7ff)*16 + bank_table[(code>>11)&0x3]*0x8000; |
| 364 | 364 | int color = (code>>13); |
| 365 | | |
| 365 | i | |
| 366 | 366 | int x, y; |
| 367 | 367 | |
| 368 | 368 | if( opaque ) |
| r1711 | r1712 | |
| 377 | 377 | { |
| 378 | 378 | int effx = (x - xpos) ^ xxor; |
| 379 | 379 | UINT16 data = gfxptr[effx / 4]; |
| 380 | dest[x] = pal_ | |
| 380 | dest[x] = pal_base + ((data >> 4*(~effx & 3)) & 0x0f); | |
| 381 | 381 | pdest[x] |= 1; |
| 382 | 382 | } |
| 383 | 383 | } |
| r1711 | r1712 | |
| 397 | 397 | UINT8 pen = (data >> 4*(~effx & 3)) & 0x0f; |
| 398 | 398 | if (pen) |
| 399 | 399 | { |
| 400 | dest[x] = pal_ | |
| 400 | dest[x] = pal_base + pen | |
| 401 | 401 | pdest[x] |= 4; |
| 402 | 402 | } |
| 403 | 403 | } |
| r1711 | r1712 | |
|---|---|---|
| 58 | 58 | UINT16 *cave_vram_1, *cave_vctrl_1; |
| 59 | 59 | UINT16 *cave_vram_2, *cave_vctrl_2; |
| 60 | 60 | UINT16 *cave_vram_3, *cave_vctrl_3; |
| 61 | size_t cave_paletteram_size; | |
| 61 | 62 | |
| 62 | 63 | /* Variables only used here: */ |
| 63 | 64 | |
| 64 | 65 | static tilemap *tilemap_0; |
| 65 | static int | |
| 66 | static int | |
| 66 | 67 | static tilemap *tilemap_1; |
| 67 | static int | |
| 68 | static int | |
| 68 | 69 | static tilemap *tilemap_2; |
| 69 | static int | |
| 70 | static int | |
| 70 | 71 | static tilemap *tilemap_3; |
| 71 | static int | |
| 72 | static int | |
| 72 | 73 | |
| 73 | 74 | |
| 74 | 75 | |
| r1711 | r1712 | |
| 87 | 88 | const UINT8 *pen_data; /* points to top left corner of tile data */ |
| 88 | 89 | int line_offset; |
| 89 | 90 | |
| 90 | | |
| 91 | | |
| 91 | 92 | int tile_width, tile_height; |
| 92 | 93 | int total_width, total_height; /* in screen coordinates */ |
| 93 | 94 | int x, y, xcount0, ycount0; |
| r1711 | r1712 | |
| 137 | 138 | { |
| 138 | 139 | int color, pen; |
| 139 | 140 | |
| 141 | /* allocate the colortable */ | |
| 142 | machine->colortable = colortable_alloc(machine, 0x0800); | |
| 143 | ||
| 140 | 144 | /* Fill the 0-3fff range, used by sprites ($40 color codes * $100 pens) |
| 141 | 145 | Here sprites have 16 pens, but the sprite drawing routine always |
| 142 | 146 | multiplies the color code by $100 (for consistency). |
| 143 | 147 | That's why we need this function. */ |
| 144 | 148 | |
| 145 | for( color = 0; color < 0x40; color++ ) | |
| 146 | for( pen = 0; pen < 16; pen++ ) | |
| 147 | colortable[color * 256 + pen] = color * 16 + pen; | |
| 149 | for (color = 0; color < 0x40; color++) | |
| 150 | for (pen = 0; pen < 0x10; pen++) | |
| 151 | colortable_entry_set_value(machine->colortable, (color << 8) | pen, (color << 4) | pen); | |
| 148 | 152 | } |
| 149 | 153 | |
| 150 | 154 | PALETTE_INIT( ddonpach ) |
| 151 | 155 | { |
| 152 | 156 | int color, pen; |
| 153 | 157 | |
| 158 | /* allocate the colortable */ | |
| 159 | machine->colortable = colortable_alloc(machine, 0x8000); | |
| 160 | ||
| 154 | 161 | /* Fill the 8000-83ff range ($40 color codes * $10 pens) for |
| 155 | 162 | layers 0 & 1 which are 4 bits deep rather than 8 bits deep |
| 156 | 163 | like layer 2, but use the first 16 color of every 256 for |
| 157 | 164 | any given color code. */ |
| 158 | 165 | |
| 159 | for( color = 0; color < 0x40; color++ ) | |
| 160 | for( pen = 0; pen < 16; pen++ ) | |
| 161 | colortable[color * 16 + pen + 0x8000] = 0x4000 + color * 256 + pen; | |
| 166 | for (color = 0; color < 0x40; color++) | |
| 167 | for (pen = 0; pen < 0x10; pen++) | |
| 168 | colortable_entry_set_value(machine->colortable, 0x8000 | (color << 4) | pen, 0x4000 | (color << 8) | pen); | |
| 162 | 169 | } |
| 163 | 170 | |
| 164 | 171 | PALETTE_INIT( mazinger ) |
| 165 | 172 | { |
| 166 | 173 | int color, pen; |
| 167 | 174 | |
| 168 | /* Sprites (encrypted) are 4 bit deep */ | |
| 169 | for( color = 0; color < 0x40; color++ ) | |
| 170 | for( pen = 0; pen < 256; pen++ ) | |
| 171 | colortable[color * 256 + pen] = color * 16 + pen; | |
| 175 | /* allocate the colortable */ | |
| 176 | machine->colortable = colortable_alloc(machine, 0x4000); | |
| 172 | 177 | |
| 173 | /* Layer 0 is 6 bit deep, there are 64 color codes but only $400 | |
| 178 | /* sprites (encrypted) are 4 bit deep */ | |
| 179 | for (color = 0; color < 0x40; color++) | |
| 180 | for (pen = 0; pen < 0x100; pen++) | |
| 181 | colortable_entry_set_value(machine->colortable, (color << 8) | pen, (color << 4) + pen); /* yes, PLUS, not OR */ | |
| 182 | ||
| 183 | /* layer 0 is 6 bit deep, there are 64 color codes but only $400 | |
| 174 | 184 | colors are actually addressable */ |
| 175 | for( color = 0; color < 0x40; color++ ) | |
| 176 | for( pen = 0; pen < 64; pen++ ) | |
| 177 | colortable[color * 64 + pen + 0x4400] = 0x400 + (color % (64/4)) * 64 + pen; | |
| 185 | for (color = 0; color < 0x40; color++) | |
| 186 | for (pen = 0; pen < 0x40; pen++) | |
| 187 | colortable_entry_set_value(machine->colortable, 0x4400 | (color << 6) | pen, 0x400 | ((color & 0x0f) << 6) | pen); | |
| 178 | 188 | } |
| 179 | 189 | |
| 180 | 190 | PALETTE_INIT( sailormn ) |
| 181 | 191 | { |
| 182 | 192 | int color, pen; |
| 183 | 193 | |
| 184 | /* Sprites (encrypted) are 4 bit deep */ | |
| 185 | for( color = 0; color < 0x40; color++ ) | |
| 186 | for( pen = 0; pen < 256; pen++ ) | |
| 187 | colortable[color * 256 + pen] = color * 16 + pen; | |
| 194 | /* allocate the colortable */ | |
| 195 | machine->colortable = colortable_alloc(machine, 0x2000); | |
| 188 | 196 | |
| 189 | /* Layer 2 is 6 bit deep, there are 64 color codes but only $400 | |
| 197 | /* sprites (encrypted) are 4 bit deep */ | |
| 198 | for (color = 0; color < 0x40; color++) | |
| 199 | for (pen = 0; pen < 0x100; pen++) | |
| 200 | colortable_entry_set_value(machine->colortable, (color << 8) | pen, (color << 4) + pen); /* yes, PLUS, not OR */ | |
| 201 | ||
| 202 | /* layer 2 is 6 bit deep, there are 64 color codes but only $400 | |
| 190 | 203 | colors are actually addressable */ |
| 191 | for( color = 0; color < 0x40; color++ ) | |
| 192 | for( pen = 0; pen < 64; pen++ ) | |
| 193 | colortable[color * 64 + pen + 0x4c00] = 0xc00 + (color % (64/4)) * 64 + pen; | |
| 204 | for (color = 0; color < 0x40; color++) | |
| 205 | for (pen = 0; pen < 0x40; pen++) | |
| 206 | colortable_entry_set_value(machine->colortable, 0x4c00 | (color << 6) | pen, 0xc00 | ((color & 0x0f) << 6) | pen); | |
| 194 | 207 | } |
| 195 | 208 | |
| 196 | 209 | PALETTE_INIT( pwrinst2 ) |
| 197 | 210 | { |
| 198 | 211 | int color, pen; |
| 199 | 212 | |
| 200 | for( color = 0; color < 0x80; color++ ) | |
| 201 | for( pen = 0; pen < 16; pen++ ) | |
| 202 | colortable[color * 256 + pen] = color * 16 + pen; | |
| 213 | /* allocate the colortable */ | |
| 214 | machine->colortable = colortable_alloc(machine, 0x2800); | |
| 203 | 215 | |
| 204 | for( color = 0x8000; color < machine->drv->color_table_len; color++ ) | |
| 205 | colortable[color] = (color - 0x8000) % machine->drv->total_colors; | |
| 216 | for (color = 0; color < 0x80; color++) | |
| 217 | for (pen = 0; pen < 0x10; pen++) | |
| 218 | colortable_entry_set_value(machine->colortable, (color << 8) | pen, (color << 4) | pen); | |
| 219 | ||
| 220 | for (pen = 0x8000; pen < 0xa800; pen++) | |
| 221 | colortable_entry_set_value(machine->colortable, pen, pen - 0x8000); | |
| 206 | 222 | } |
| 207 | 223 | |
| 208 | 224 | PALETTE_INIT( korokoro ) |
| 209 | 225 | { |
| 210 | 226 | int color, pen; |
| 211 | 227 | |
| 212 | for( color = 0; color < 0x40; color++ ) | |
| 213 | for( pen = 0; pen < 16; pen++ ) | |
| 214 | colortable[color * 256 + pen] = 0x3c00 + color * 16 + pen; | |
| 228 | /* allocate the colortable */ | |
| 229 | machine->colortable = colortable_alloc(machine, 0x4000); | |
| 230 | ||
| 231 | for (color = 0; color < 0x40; color++) | |
| 232 | for (pen = 0; pen < 0x10; pen++) | |
| 233 | colortable_entry_set_value(machine->colortable, (color << 8) | pen, 0x3c00 | (color << 4) | pen); | |
| 215 | 234 | } |
| 216 | 235 | |
| 236 | ||
| 237 | static void set_pens(running_machine *machine) | |
| 238 | { | |
| 239 | offs_t i; | |
| 240 | ||
| 241 | for (i = 0; i < cave_paletteram_size / 2; i++) | |
| 242 | { | |
| 243 | UINT16 data = paletteram16[i]; | |
| 244 | ||
| 245 | rgb_t color = MAKE_RGB(pal5bit(data >> 5), pal5bit(data >> 10), pal5bit(data >> 0)); | |
| 246 | ||
| 247 | if (machine->colortable != NULL) | |
| 248 | colortable_palette_set_color(machine->colortable, i, color); | |
| 249 | else | |
| 250 | palette_set_color(machine, i, color); | |
| 251 | } | |
| 252 | } | |
| 253 | ||
| 254 | ||
| 217 | 255 | /*************************************************************************** |
| 218 | 256 | |
| 219 | 257 | Tiles Format |
| r1711 | r1712 | |
| 409 | 447 | switch( num ) |
| 410 | 448 | { |
| 411 | 449 | case 4: |
| 412 | tilemap_3 = tilemap_create( get_tile_info_3, tilemap_scan_rows, | |
| 413 | 8,8, 512/8,512/8 ); | |
| 450 | tilemap_3 = tilemap_create( get_tile_info_3, tilemap_scan_rows, 8,8, 512/8,512/8 ); | |
| 414 | 451 | tilemap_set_transparent_pen(tilemap_3, 0); |
| 415 | 452 | tilemap_set_scroll_rows(tilemap_3, 1); |
| 416 | 453 | tilemap_set_scroll_cols(tilemap_3, 1); |
| 417 | 454 | |
| 418 | 455 | case 3: |
| 419 | tilemap_2 = tilemap_create( get_tile_info_2, tilemap_scan_rows, | |
| 420 | 8,8, 512/8,512/8 ); | |
| 456 | tilemap_2 = tilemap_create( get_tile_info_2, tilemap_scan_rows, 8,8, 512/8,512/8 ); | |
| 421 | 457 | tilemap_set_transparent_pen(tilemap_2, 0); |
| 422 | 458 | tilemap_set_scroll_rows(tilemap_2, 1); |
| 423 | 459 | tilemap_set_scroll_cols(tilemap_2, 1); |
| 424 | 460 | |
| 425 | 461 | case 2: |
| 426 | tilemap_1 = tilemap_create( get_tile_info_1, tilemap_scan_rows, | |
| 427 | 8,8, 512/8,512/8 ); | |
| 462 | tilemap_1 = tilemap_create( get_tile_info_1, tilemap_scan_rows, 8,8, 512/8,512/8 ); | |
| 428 | 463 | tilemap_set_transparent_pen(tilemap_1, 0); |
| 429 | 464 | tilemap_set_scroll_rows(tilemap_1, 1); |
| 430 | 465 | tilemap_set_scroll_cols(tilemap_1, 1); |
| 431 | 466 | |
| 432 | 467 | case 1: |
| 433 | tilemap_0 = tilemap_create( get_tile_info_0, tilemap_scan_rows, | |
| 434 | 8,8, 512/8,512/8 ); | |
| 468 | tilemap_0 = tilemap_create( get_tile_info_0, tilemap_scan_rows, 8,8, 512/8,512/8 ); | |
| 435 | 469 | tilemap_set_transparent_pen(tilemap_0, 0); |
| 436 | 470 | tilemap_set_scroll_rows(tilemap_0, 1); |
| 437 | 471 | tilemap_set_scroll_cols(tilemap_0, 1); |
| r1711 | r1712 | |
| 447 | 481 | cave_row_effect_offs_n = -1; |
| 448 | 482 | cave_row_effect_offs_f = 1; |
| 449 | 483 | |
| 450 | // background_color = machine->drv->gfxdecodeinfo[0].color_codes_start; | |
| 451 | background_color = machine->drv->gfxdecodeinfo[0].color_codes_start + | |
| 452 | (machine->drv->gfxdecodeinfo[0].total_color_codes-1) * | |
| 484 | background_color = machine->config->gfxdecodeinfo[0].color_codes_start + | |
| 485 | (machine->config->gfxdecodeinfo[0].total_color_codes-1) * | |
| 453 | 486 | machine->gfx[0]->color_granularity; |
| 454 | 487 | |
| 455 | 488 | switch(cave_kludge) |
| r1711 | r1712 | |
| 521 | 554 | { |
| 522 | 555 | const int region = REGION_GFX1; |
| 523 | 556 | |
| 524 | | |
| 557 | | |
| 525 | 558 | const UINT8 *base_gfx = memory_region(region); |
| 526 | 559 | int code_max = memory_region_length(region) / (16*16); |
| 527 | 560 | |
| r1711 | r1712 | |
| 622 | 655 | sprite->priority = (attr & 0x0030) >> 4; |
| 623 | 656 | sprite->flags = SPRITE_VISIBLE_CAVE; |
| 624 | 657 | sprite->line_offset = sprite->tile_width; |
| 625 | sprite-> | |
| 658 | sprite->base_pen | |
| 626 | 659 | |
| 627 | 660 | if (glob_flipx) { x = max_x - x - sprite->total_width; flipx = !flipx; } |
| 628 | 661 | if (glob_flipy) { y = max_y - y - sprite->total_height; flipy = !flipy; } |
| r1711 | r1712 | |
| 642 | 675 | { |
| 643 | 676 | const int region = REGION_GFX1; |
| 644 | 677 | |
| 645 | | |
| 678 | | |
| 646 | 679 | const UINT8 *base_gfx = memory_region(region); |
| 647 | 680 | int code_max = memory_region_length(region) / (16*16); |
| 648 | 681 | |
| r1711 | r1712 | |
| 692 | 725 | if (cave_spritetype == 3) /* pwrinst2 */ |
| 693 | 726 | { |
| 694 | 727 | sprite->priority = ((attr & 0x0010) >> 4)+2; |
| 695 | sprite-> | |
| 728 | sprite->base_pen | |
| 696 | 729 | } |
| 697 | 730 | else |
| 698 | 731 | { |
| 699 | 732 | sprite->priority = (attr & 0x0030) >> 4; |
| 700 | sprite-> | |
| 733 | sprite->base_pen | |
| 701 | 734 | } |
| 702 | 735 | |
| 703 | 736 | sprite->flags = SPRITE_VISIBLE_CAVE; |
| r1711 | r1712 | |
| 880 | 913 | |
| 881 | 914 | { |
| 882 | 915 | const UINT8 *pen_data = sprite->pen_data -1 -sprite->line_offset; |
| 883 | | |
| 916 | | |
| 884 | 917 | int x,y; |
| 885 | 918 | UINT8 pen; |
| 886 | 919 | int pitch = blit.line_offset*dy/2; |
| r1711 | r1712 | |
| 901 | 934 | source+=xcount>>16; |
| 902 | 935 | xcount &= 0xffff; |
| 903 | 936 | pen = *source; |
| 904 | if (pen) dest[x] = | |
| 937 | if (pen) dest[x] = base_ | |
| 905 | 938 | } |
| 906 | 939 | xcount += sprite->zoomx_re; |
| 907 | 940 | } |
| r1711 | r1712 | |
| 972 | 1005 | |
| 973 | 1006 | { |
| 974 | 1007 | const UINT8 *pen_data = sprite->pen_data -1 -sprite->line_offset; |
| 975 | | |
| 1008 | | |
| 976 | 1009 | int x,y; |
| 977 | 1010 | UINT8 pen; |
| 978 | 1011 | int pitch = blit.line_offset*dy/2; |
| r1711 | r1712 | |
| 997 | 1030 | xcount &= 0xffff; |
| 998 | 1031 | pen = *source; |
| 999 | 1032 | if (pen && (zbf[x]<=pri_sp)){ |
| 1000 | dest[x] = | |
| 1033 | dest[x] = base_ | |
| 1001 | 1034 | zbf[x] = pri_sp; |
| 1002 | 1035 | } |
| 1003 | 1036 | } |
| r1711 | r1712 | |
| 1066 | 1099 | |
| 1067 | 1100 | { |
| 1068 | 1101 | const UINT8 *pen_data = sprite->pen_data; |
| 1069 | | |
| 1102 | | |
| 1070 | 1103 | int x,y; |
| 1071 | 1104 | UINT8 pen; |
| 1072 | 1105 | int pitch = blit.line_offset*dy/2; |
| r1711 | r1712 | |
| 1078 | 1111 | source = pen_data; |
| 1079 | 1112 | for( x=x1; x!=x2; x+=dx ){ |
| 1080 | 1113 | pen = *source; |
| 1081 | if (pen) dest[x] = | |
| 1114 | if (pen) dest[x] = base_ | |
| 1082 | 1115 | source++; |
| 1083 | 1116 | } |
| 1084 | 1117 | pen_data += sprite->line_offset; |
| r1711 | r1712 | |
| 1143 | 1176 | |
| 1144 | 1177 | { |
| 1145 | 1178 | const UINT8 *pen_data = sprite->pen_data; |
| 1146 | | |
| 1179 | | |
| 1147 | 1180 | int x,y; |
| 1148 | 1181 | UINT8 pen; |
| 1149 | 1182 | int pitch = blit.line_offset*dy/2; |
| r1711 | r1712 | |
| 1160 | 1193 | pen = *source; |
| 1161 | 1194 | if ( pen && (zbf[x]<=pri_sp)) |
| 1162 | 1195 | { |
| 1163 | dest[x] = | |
| 1196 | dest[x] = base_ | |
| 1164 | 1197 | zbf[x] = pri_sp; |
| 1165 | 1198 | } |
| 1166 | 1199 | source++; |
| r1711 | r1712 | |
| 1406 | 1439 | int pri, pri2; |
| 1407 | 1440 | int layers_ctrl = -1; |
| 1408 | 1441 | |
| 1442 | set_pens(machine); | |
| 1443 | ||
| 1409 | 1444 | blit.baseaddr = bitmap->base; |
| 1410 | 1445 | blit.line_offset = bitmap->rowpixels * bitmap->bpp / 8; |
| 1411 | 1446 | |
| r1711 | r1712 | |
| 1490 | 1525 | |
| 1491 | 1526 | cave_sprite_check(machine, cliprect); |
| 1492 | 1527 | |
| 1493 | fillbitmap(bitmap,machine-> | |
| 1528 | fillbitmap(bitmap,machine-> | |
| 1494 | 1529 | |
| 1495 | 1530 | /* |
| 1496 | 1531 | Tiles and sprites are ordered by priority (0 back, 3 front) with |
| r1711 | r1712 | |
|---|---|---|
| 46 | 46 | int i; |
| 47 | 47 | |
| 48 | 48 | |
| 49 | for (i = 0;i < machine-> | |
| 49 | for (i = 0;i < machine->config->total_colors;i++) | |
| 50 | 50 | { |
| 51 | 51 | int bit0,bit1,bit2,bit3,r,g,b; |
| 52 | 52 | |
| r1711 | r1712 | |
| 61 | 61 | bit2 = (color_prom[0] >> 6) & 0x01; |
| 62 | 62 | bit3 = (color_prom[0] >> 7) & 0x01; |
| 63 | 63 | g = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; |
| 64 | bit0 = (color_prom[machine->drv->total_colors] >> 0) & 0x01; | |
| 65 | bit1 = (color_prom[machine->drv->total_colors] >> 1) & 0x01; | |
| 66 | bit2 = (color_prom[machine->drv->total_colors] >> 2) & 0x01; | |
| 67 | bit3 = (color_prom[machine->drv->total_colors] >> 3) & 0x01; | |
| 64 | bit0 = (color_prom[machine->config->total_colors] >> 0) & 0x01; | |
| 65 | bit1 = (color_prom[machine->config->total_colors] >> 1) & 0x01; | |
| 66 | bit2 = (color_prom[machine->config->total_colors] >> 2) & 0x01; | |
| 67 | bit3 = (color_prom[machine->config->total_colors] >> 3) & 0x01; | |
| 68 | 68 | b = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; |
| 69 | 69 | |
| 70 | 70 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); |
| r1711 | r1712 | |
|---|---|---|
| 81 | 81 | { |
| 82 | 82 | int i; |
| 83 | 83 | |
| 84 | for (i = 0;i < machine-> | |
| 84 | for (i = 0;i < machine->config->total_colors;i++) | |
| 85 | 85 | { |
| 86 | 86 | int bit0,bit1,bit2,bit3,r,g,b; |
| 87 | 87 | |
| r1711 | r1712 | |
| 95 | 95 | bit2 = (color_prom[i] >> 6) & 0x01; |
| 96 | 96 | bit3 = (color_prom[i] >> 7) & 0x01; |
| 97 | 97 | g = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; |
| 98 | bit0 = (color_prom[i + machine->drv->total_colors] >> 0) & 0x01; | |
| 99 | bit1 = (color_prom[i + machine->drv->total_colors] >> 1) & 0x01; | |
| 100 | bit2 = (color_prom[i + machine->drv->total_colors] >> 2) & 0x01; | |
| 101 | bit3 = (color_prom[i + machine->drv->total_colors] >> 3) & 0x01; | |
| 98 | bit0 = (color_prom[i + machine->config->total_colors] >> 0) & 0x01; | |
| 99 | bit1 = (color_prom[i + machine->config->total_colors] >> 1) & 0x01; | |
| 100 | bit2 = (color_prom[i + machine->config->total_colors] >> 2) & 0x01; | |
| 101 | bit3 = (color_prom[i + machine->config->total_colors] >> 3) & 0x01; | |
| 102 | 102 | b = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; |
| 103 | 103 | |
| 104 | 104 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); |
| r1711 | r1712 | |
|---|---|---|
| 228 | 228 | if (data) |
| 229 | 229 | { |
| 230 | 230 | if (flip_screen) |
| 231 | { | |
| 232 | *BITMAP_ADDR16(bitmap, 255 - y, 255 - x) = machine->pens[data]; | |
| 233 | } | |
| 231 | *BITMAP_ADDR16(bitmap, 255 - y, 255 - x) = data; | |
| 234 | 232 | else |
| 235 | { | |
| 236 | *BITMAP_ADDR16(bitmap, y, x) = machine->pens[data]; | |
| 237 | } | |
| 233 | *BITMAP_ADDR16(bitmap, y, x) = data; | |
| 238 | 234 | } |
| 239 | 235 | } |
| 240 | 236 | } |
| r1711 | r1712 | |
|---|---|---|
| 157 | 157 | |
| 158 | 158 | /* map pens 1:1 */ |
| 159 | 159 | substitute_pens = auto_malloc(65536 * sizeof(*substitute_pens)); |
| 160 | for (i = 0; i < machine-> | |
| 160 | for (i = 0; i < machine->config->total_colors; i++) | |
| 161 | 161 | substitute_pens[i] = i; |
| 162 | 162 | machine->pens = substitute_pens; |
| 163 | 163 |
| r1711 | r1712 | |
|---|---|---|
| 103 | 103 | data = (ROM[rom_addr] & 0xf0) >> 4; |
| 104 | 104 | |
| 105 | 105 | if((data != 0x0f) && (data != 0)) |
| 106 | *BITMAP_ADDR16(bitmap, sy, xpos+i) = | |
| 106 | *BITMAP_ADDR16(bitmap, sy, xpos+i) = | |
| 107 | 107 | |
| 108 | 108 | if(hs) |
| 109 | 109 | { |
| r1711 | r1712 | |
| 113 | 113 | data = (ROM[rom_addr ^ 0x100] & 0xf0) >> 4; |
| 114 | 114 | |
| 115 | 115 | if((data != 0x0f) && (data != 0)) |
| 116 | *BITMAP_ADDR16(bitmap, sy, xpos+i+16) = | |
| 116 | *BITMAP_ADDR16(bitmap, sy, xpos+i+16) = | |
| 117 | 117 | } |
| 118 | 118 | } |
| 119 | 119 | } |
| r1711 | r1712 | |
| 326 | 326 | else |
| 327 | 327 | col = (TILE_ROM[rom_addr] & 0xf0) >> 4; |
| 328 | 328 | |
| 329 | *BITMAP_ADDR16(bitmap, sy, sx) = | |
| 329 | *BITMAP_ADDR16(bitmap, sy, sx) = | |
| 330 | 330 | } |
| 331 | 331 | |
| 332 | 332 | for(sx = 16; sx < 256; sx++) |
| r1711 | r1712 | |
| 357 | 357 | else |
| 358 | 358 | col = (TILE_ROM[rom_addr] & 0xf0) >> 4; |
| 359 | 359 | |
| 360 | *BITMAP_ADDR16(bitmap, sy, sx) = | |
| 360 | *BITMAP_ADDR16(bitmap, sy, sx) = | |
| 361 | 361 | } |
| 362 | 362 | } |
| 363 | 363 | } |
| r1711 | r1712 | |
| 567 | 567 | all_ff = 0; |
| 568 | 568 | |
| 569 | 569 | if(col != 0x0f && col != 0x00) |
| 570 | *BITMAP_ADDR16(bitmap, sy, sx) = | |
| 570 | *BITMAP_ADDR16(bitmap, sy, sx) = | |
| 571 | 571 | } |
| 572 | 572 | } |
| 573 | 573 | |
| r1711 | r1712 | |
| 607 | 607 | all_ff = 0; |
| 608 | 608 | |
| 609 | 609 | if(col != 0x0f && col != 0x00) |
| 610 | *BITMAP_ADDR16(bitmap, sy, sx) = | |
| 610 | *BITMAP_ADDR16(bitmap, sy, sx) = | |
| 611 | 611 | } |
| 612 | 612 | } |
| 613 | 613 |
| r1711 | r1712 | |
|---|---|---|
| 56 | 56 | fillbitmap(priority_bitmap,0,cliprect); |
| 57 | 57 | |
| 58 | 58 | /* Ensure screen blanked even when bottom layer not drawn due to disable bit */ |
| 59 | fillbitmap(bitmap, | |
| 59 | fillbitmap(bitmap, | |
| 60 | 60 | |
| 61 | 61 | TC0100SCN_tilemap_draw(machine,bitmap,cliprect,0,layer[0],TILEMAP_DRAW_OPAQUE,1); |
| 62 | 62 | TC0100SCN_tilemap_draw(machine,bitmap,cliprect,0,layer[1],0,2); |
| r1711 | r1712 | |
| 81 | 81 | fillbitmap(priority_bitmap,0,cliprect); |
| 82 | 82 | |
| 83 | 83 | /* Ensure screen blanked even when bottom layer not drawn due to disable bit */ |
| 84 | fillbitmap(bitmap, | |
| 84 | fillbitmap(bitmap, | |
| 85 | 85 | |
| 86 | 86 | TC0100SCN_tilemap_draw(machine,bitmap,cliprect,0,layer[0],TILEMAP_DRAW_OPAQUE,1); |
| 87 | 87 | TC0100SCN_tilemap_draw(machine,bitmap,cliprect,0,layer[1],0,2); |
| r1711 | r1712 | |
|---|---|---|
| 9 | 9 | { |
| 10 | 10 | int i; |
| 11 | 11 | |
| 12 | for (i = 0;i < machine-> | |
| 12 | for (i = 0;i < machine->config->total_colors;i++) | |
| 13 | 13 | { |
| 14 | 14 | int bit0,bit1,bit2,bit3,r,g,b; |
| 15 | 15 | |
| r1711 | r1712 | |
| 26 | 26 | bit3 = (color_prom[i] >> 3) & 0x01; |
| 27 | 27 | g = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; |
| 28 | 28 | /* blue component */ |
| 29 | bit0 = (color_prom[i + machine->drv->total_colors] >> 0) & 0x01; | |
| 30 | bit1 = (color_prom[i + machine->drv->total_colors] >> 1) & 0x01; | |
| 31 | bit2 = (color_prom[i + machine->drv->total_colors] >> 2) & 0x01; | |
| 32 | bit3 = (color_prom[i + machine->drv->total_colors] >> 3) & 0x01; | |
| 29 | bit0 = (color_prom[i + machine->config->total_colors] >> 0) & 0x01; | |
| 30 | bit1 = (color_prom[i + machine->config->total_colors] >> 1) & 0x01; | |
| 31 | bit2 = (color_prom[i + machine->config->total_colors] >> 2) & 0x01; | |
| 32 | bit3 = (color_prom[i + machine->config->total_colors] >> 3) & 0x01; | |
| 33 | 33 | b = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; |
| 34 | 34 | |
| 35 | 35 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); |
| r1711 | r1712 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 9 | 8 | |
| 10 | 9 | int wolfpack_collision; |
| 11 | 10 | |
| r1711 | r1712 | |
| 31 | 30 | static mame_bitmap* helper; |
| 32 | 31 | |
| 33 | 32 | |
| 34 | ||
| 33 | PALETTE | |
| 35 | 34 | { |
| 36 | | |
| 35 | int | |
| 37 | 36 | |
| 38 | color = 0x48; | |
| 37 | /* allocate the colortable */ | |
| 38 | machine->colortable = colortable_alloc(machine, 8); | |
| 39 | 39 | |
| 40 | if (data & 0x10) color += 0x13; | |
| 41 | if (data & 0x20) color += 0x22; | |
| 42 | if (data & 0x40) color += 0x3A; | |
| 43 | if (data & 0x80) color += 0x48; | |
| 40 | colortable_palette_set_color(machine->colortable, 0, MAKE_RGB(0x00, 0x00, 0x00)); | |
| 41 | colortable_palette_set_color(machine->colortable, 1, MAKE_RGB(0xc1, 0xc1, 0xc1)); | |
| 42 | colortable_palette_set_color(machine->colortable, 2, MAKE_RGB(0x81, 0x81, 0x81)); | |
| 43 | colortable_palette_set_color(machine->colortable, 3, MAKE_RGB(0x48, 0x48, 0x48)); | |
| 44 | 44 | |
| 45 | palette_set_color(Machine,3,MAKE_RGB(color,color,color)); | |
| 45 | for (i = 0; i < 4; i++) | |
| 46 | { | |
| 47 | rgb_t color = colortable_palette_get_color(machine->colortable, i); | |
| 46 | 48 | |
| 47 | palette_set_color_rgb(Machine,7, | |
| 48 | color < 0xb8 ? color + 0x48 : 0xff, | |
| 49 | color < 0xb8 ? color + 0x48 : 0xff, | |
| 50 | color < 0xb8 ? color + 0x48 : 0xff); | |
| 49 | colortable_palette_set_color(machine->colortable, 4 + i, | |
| 50 | MAKE_RGB(RGB_RED(color) < 0xb8 ? RGB_RED(color) + 0x48 : 0xff, | |
| 51 | RGB_GREEN(color) < 0xb8 ? RGB_GREEN(color) + 0x48 : 0xff, | |
| 52 | RGB_BLUE(color) < 0xb8 ? RGB_BLUE(color) + 0x48 : 0xff)); | |
| 53 | } | |
| 51 | 54 | |
| 52 | wolfpack_ship_size = data >> 2; | |
| 55 | colortable_entry_set_value(machine->colortable, 0x00, 0); | |
| 56 | colortable_entry_set_value(machine->colortable, 0x01, 1); | |
| 57 | colortable_entry_set_value(machine->colortable, 0x02, 1); | |
| 58 | colortable_entry_set_value(machine->colortable, 0x03, 0); | |
| 59 | colortable_entry_set_value(machine->colortable, 0x04, 0); | |
| 60 | colortable_entry_set_value(machine->colortable, 0x05, 2); | |
| 61 | colortable_entry_set_value(machine->colortable, 0x06, 0); | |
| 62 | colortable_entry_set_value(machine->colortable, 0x07, 3); | |
| 63 | colortable_entry_set_value(machine->colortable, 0x08, 4); | |
| 64 | colortable_entry_set_value(machine->colortable, 0x09, 5); | |
| 65 | colortable_entry_set_value(machine->colortable, 0x0a, 6); | |
| 66 | colortable_entry_set_value(machine->colortable, 0x0b, 7); | |
| 53 | 67 | } |
| 54 | 68 | |
| 55 | 69 | |
| 70 | WRITE8_HANDLER( wolfpack_ship_size_w ) | |
| 71 | { | |
| 72 | wolfpack_ship_size = data; | |
| 73 | } | |
| 56 | 74 | WRITE8_HANDLER( wolfpack_video_invert_w ) |
| 57 | 75 | { |
| 58 | 76 | wolfpack_video_invert = data & 1; |
| r1711 | r1712 | |
| 111 | 129 | |
| 112 | 130 | for (i = 0; i < 0x8000; i++) |
| 113 | 131 | { |
| 114 | int bit = | |
| 115 | (val >> 0x0) ^ | |
| 116 | (val >> 0xE) ^ 1; | |
| 132 | int bit = (val >> 0x0) ^ (val >> 0xe) ^ 1; | |
| 117 | 133 | |
| 118 | 134 | val = (val << 1) | (bit & 1); |
| 119 | 135 | |
| r1711 | r1712 | |
| 128 | 144 | { |
| 129 | 145 | static const UINT32 scaler[] = |
| 130 | 146 | { |
| 131 | 0x00000, 0x00500, 0x00 | |
| 147 | 0x00000, 0x00500, 0x00a00, 0x01000, | |
| 132 | 148 | 0x01000, 0x01200, 0x01500, 0x01800, |
| 133 | 0x01800, 0x01 | |
| 149 | 0x01800, 0x01d00, 0x02200, 0x02800, | |
| 134 | 150 | 0x02800, 0x02800, 0x02800, 0x02800, |
| 135 | 151 | 0x02800, 0x03000, 0x03800, 0x04000, |
| 136 | 0x04000, 0x04500, 0x04A00, 0x05000, | |
| 137 | 0x05000, 0x05500, 0x05A00, 0x06000, | |
| 138 | 0x06000, 0x06A00, 0x07500, 0x08000, | |
| 139 | 0x08000, 0x08A00, 0x09500, 0x0A000, | |
| 140 | 0x0A000, 0x0B000, 0x0C000, 0x0D000, | |
| 141 | 0x0D000, 0x0E000, 0x0F000, 0x10000, | |
| 142 | 0x10000, 0x11A00, 0x13500, 0x15000, | |
| 143 | 0x15000, 0x17500, 0x19A00, 0x1C000, | |
| 144 | 0x1C000, 0x1EA00, 0x21500, 0x24000, | |
| 145 | 0x24000, 0x26A00, 0x29500, 0x2C000, | |
| 146 | 0x2C000, 0x2FA00, 0x33500, 0x37000 | |
| 152 | 0x04000, 0x04500, 0x04a00, 0x05000, | |
| 153 | 0x05000, 0x05500, 0x05a00, 0x06000, | |
| 154 | 0x06000, 0x06a00, 0x07500, 0x08000, | |
| 155 | 0x08000, 0x08a00, 0x09500, 0x0a000, | |
| 156 | 0x0a000, 0x0b000, 0x0c000, 0x0d000, | |
| 157 | 0x0d000, 0x0e000, 0x0f000, 0x10000, | |
| 158 | 0x10000, 0x11a00, 0x13500, 0x15000, | |
| 159 | 0x15000, 0x17500, 0x19a00, 0x1c000, | |
| 160 | 0x1c000, 0x1ea00, 0x21500, 0x24000, | |
| 161 | 0x24000, 0x26a00, 0x29500, 0x2c000, | |
| 162 | 0x2c000, 0x2fa00, 0x33500, 0x37000 | |
| 147 | 163 | }; |
| 148 | 164 | |
| 149 | int chop = (scaler[wolfpack_ship_size] * wolfpack_ship_h_precess) >> 16; | |
| 165 | int chop = (scaler[wolfpack_ship_size >> 2] * wolfpack_ship_h_precess) >> 16; | |
| 150 | 166 | |
| 151 | 167 | drawgfxzoom(bitmap, machine->gfx[1], |
| 152 | 168 | wolfpack_ship_pic, |
| r1711 | r1712 | |
| 156 | 172 | 128, |
| 157 | 173 | cliprect, |
| 158 | 174 | TRANSPARENCY_PEN, 0, |
| 159 | 2 * scaler[wolfpack_ship_size], scaler[wolfpack_ship_size]); | |
| 175 | 2 * scaler[wolfpack_ship_size >> 2], scaler[wolfpack_ship_size >> 2]); | |
| 160 | 176 | } |
| 161 | 177 | |
| 162 | 178 | |
| r1711 | r1712 | |
| 182 | 198 | int x2; |
| 183 | 199 | |
| 184 | 200 | if (y % 16 == 1) |
| 185 | { | |
| 186 | 201 | count = (count - 1) & 7; |
| 187 | } | |
| 188 | 202 | |
| 189 | 203 | x1 = 248 - wolfpack_torpedo_h - count; |
| 190 | 204 | x2 = 248 - wolfpack_torpedo_h + count; |
| 191 | 205 | |
| 192 | 206 | for (x = 2 * x1; x < 2 * x2; x++) |
| 193 | { | |
| 194 | 207 | if (LFSR[(current_index + 0x300 * y + x) % 0x8000]) |
| 195 | { | |
| 196 | 208 | *BITMAP_ADDR16(bitmap, y, x) = 1; |
| 197 | } | |
| 198 | } | |
| 199 | 209 | } |
| 200 | 210 | } |
| 201 | 211 | |
| r1711 | r1712 | |
| 205 | 215 | rectangle rect = *cliprect; |
| 206 | 216 | |
| 207 | 217 | if (!(wolfpack_pt_pic & 0x20)) |
| 208 | { | |
| 209 | 218 | rect.min_x = 256; |
| 210 | ||
| 219 | ||
| 211 | 220 | if (!(wolfpack_pt_pic & 0x10)) |
| 212 | { | |
| 213 | 221 | rect.max_x = 255; |
| 214 | } | |
| 215 | 222 | |
| 216 | 223 | drawgfx(bitmap, machine->gfx[2], |
| 217 | 224 | wolfpack_pt_pic, |
| r1711 | r1712 | |
| 233 | 240 | } |
| 234 | 241 | |
| 235 | 242 | |
| 236 | static void draw_water(mame_bitmap* bitmap, const rectangle* cliprect) | |
| 243 | static void draw_water(colortable_t *colortable, mame_bitmap* bitmap, const rectangle* cliprect) | |
| 237 | 244 | { |
| 238 | 245 | rectangle rect = *cliprect; |
| 239 | 246 | |
| r1711 | r1712 | |
| 241 | 248 | int y; |
| 242 | 249 | |
| 243 | 250 | if (rect.max_y > 127) |
| 244 | { | |
| 245 | 251 | rect.max_y = 127; |
| 246 | } | |
| 247 | 252 | |
| 248 | 253 | for (y = rect.min_y; y <= rect.max_y; y++) |
| 249 | 254 | { |
| 250 | 255 | UINT16* p = BITMAP_ADDR16(bitmap, y, 0); |
| 251 | 256 | |
| 252 | 257 | for (x = rect.min_x; x <= rect.max_x; x++) |
| 253 | { | |
| 254 | p[x] |= 4; | |
| 255 | } | |
| 258 | p[x] = colortable_entry_get_value(colortable, p[x]) | 0x08; | |
| 256 | 259 | } |
| 257 | 260 | } |
| 258 | 261 | |
| r1711 | r1712 | |
| 262 | 265 | int i; |
| 263 | 266 | int j; |
| 264 | 267 | |
| 268 | UINT8 color = 0x48; | |
| 269 | if (wolfpack_ship_size & 0x10) color += 0x13; | |
| 270 | if (wolfpack_ship_size & 0x20) color += 0x22; | |
| 271 | if (wolfpack_ship_size & 0x40) color += 0x3a; | |
| 272 | if (wolfpack_ship_size & 0x80) color += 0x48; | |
| 273 | ||
| 274 | colortable_palette_set_color(machine->colortable, 3, MAKE_RGB(color,color,color)); | |
| 275 | colortable_palette_set_color(machine->colortable, 7, MAKE_RGB(color < 0xb8 ? color + 0x48 : 0xff, | |
| 276 | color < 0xb8 ? color + 0x48 : 0xff, | |
| 277 | color < 0xb8 ? color + 0x48 : 0xff)); | |
| 278 | ||
| 265 | 279 | fillbitmap(bitmap, wolfpack_video_invert, cliprect); |
| 266 | 280 | |
| 267 | 281 | for (i = 0; i < 8; i++) |
| 268 | { | |
| 269 | 282 | for (j = 0; j < 32; j++) |
| 270 | 283 | { |
| 271 | 284 | int code = wolfpack_alpha_num_ram[32 * i + j]; |
| r1711 | r1712 | |
| 279 | 292 | cliprect, |
| 280 | 293 | TRANSPARENCY_NONE, 0); |
| 281 | 294 | } |
| 282 | } | |
| 283 | 295 | |
| 284 | 296 | draw_pt(machine, bitmap, cliprect); |
| 285 | 297 | draw_ship(machine, bitmap, cliprect); |
| 286 | 298 | draw_torpedo(machine, bitmap, cliprect); |
| 287 | draw_water(bitmap, cliprect); | |
| 299 | draw_water(machine->colortable, bitmap, cliprect); | |
| 288 | 300 | return 0; |
| 289 | 301 | } |
| 290 | 302 | |
| r1711 | r1712 | |
| 318 | 330 | continue; |
| 319 | 331 | |
| 320 | 332 | if (*BITMAP_ADDR16(helper, y, x)) |
| 321 | { | |
| 322 | 333 | wolfpack_collision = 1; |
| 323 | } | |
| 324 | 334 | } |
| 325 | 335 | } |
| 326 | 336 |
| r1711 | r1712 | |
|---|---|---|
| 25 | 25 | #define RES_1 0xc0 /* this is a guess */ |
| 26 | 26 | #define RES_2 0x3f /* this is a guess */ |
| 27 | 27 | |
| 28 | /* Stick black in there */ | |
| 29 | palette_set_color(machine,0,MAKE_RGB(0,0,0)); | |
| 28 | /* allocate the colortable */ | |
| 29 | machine->colortable = colortable_alloc(machine, 0x100); | |
| 30 | 30 | |
| 31 | /* ? Skip the first byte ? */ | |
| 32 | color_prom++; | |
| 33 | ||
| 34 | for (i = 1;i < machine->drv->total_colors;i++) | |
| 31 | /* create a lookup table for the palette */ | |
| 32 | for (i = 0; i < 0x100; i++) | |
| 35 | 33 | { |
| 36 | int bit0, bit1, bit2, bit3, r, g, b; | |
| 34 | int bit0, bit1, bit2, bit3; | |
| 35 | int r, g, b; | |
| 37 | 36 | |
| 38 | bit0 = (*color_prom >> 0) & 0x01; /* intensity */ | |
| 39 | bit1 = (*color_prom >> 1) & 0x01; /* red */ | |
| 40 | bit2 = (*color_prom >> 2) & 0x01; /* green */ | |
| 41 | bit3 = (*color_prom >> 3) & 0x01; /* blue */ | |
| 37 | bit0 = (color_prom[i] >> 0) & 0x01; /* intensity */ | |
| 38 | bit1 = (color_prom[i] >> 1) & 0x01; /* red */ | |
| 39 | bit2 = (color_prom[i] >> 2) & 0x01; /* green */ | |
| 40 | bit3 = (color_prom[i] >> 3) & 0x01; /* blue */ | |
| 42 | 41 | |
| 43 | 42 | /* red component */ |
| 44 | 43 | r = RES_1 * bit1; |
| r1711 | r1712 | |
| 52 | 51 | b = RES_1 * bit3; |
| 53 | 52 | if (bit3) b += RES_2 * bit0; |
| 54 | 53 | |
| 55 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); | |
| 56 | color_prom += 4; | |
| 54 | colortable_palette_set_color(machine->colortable, i, MAKE_RGB(r, g, b)); | |
| 57 | 55 | } |
| 58 | 56 | |
| 59 | for (i = 0;i < | |
| 57 | for (i = 0; i < 0x200; i += 2) | |
| 60 | 58 | { |
| 61 | colortable[i++] = 0; | |
| 62 | colortable[i] = (i/2) + 1; | |
| 59 | colortable_entry_set_value(machine->colortable, i + 0, 0); | |
| 60 | colortable_entry_set_value(machine->colortable, i + 1, i >> 1); | |
| 63 | 61 | } |
| 64 | 62 | } |
| 65 | 63 | |
| r1711 | r1712 | |
| 72 | 70 | static TILE_GET_INFO( get_bg_tile_info ) |
| 73 | 71 | { |
| 74 | 72 | int code = videoram[tile_index]; |
| 75 | int color = videoram[tile_index] | |
| 73 | int color = videoram[tile_index] | | |
| 76 | 74 | |
| 77 | 75 | SET_TILE_INFO(0, code, color, 0); |
| 78 | 76 | } |
| 79 | 77 | |
| 80 | 78 | VIDEO_START( tankbatt ) |
| 81 | 79 | { |
| 82 | bg_tilemap = tilemap_create(get_bg_tile_info, tilemap_scan_rows, | |
| 83 | 8, 8, 32, 32); | |
| 80 | bg_tilemap = tilemap_create(get_bg_tile_info, tilemap_scan_rows, 8, 8, 32, 32); | |
| 84 | 81 | } |
| 85 | 82 | |
| 86 | 83 | static void draw_bullets(running_machine *machine, mame_bitmap *bitmap, const rectangle *cliprect) |
| r1711 | r1712 | |
| 89 | 86 | |
| 90 | 87 | for (offs = 0;offs < tankbatt_bulletsram_size;offs += 2) |
| 91 | 88 | { |
| 92 | int color = | |
| 89 | int color = 0xff; /* cyan, same color as the tanks */ | |
| 93 | 90 | int x = tankbatt_bulletsram[offs + 1]; |
| 94 | 91 | int y = 255 - tankbatt_bulletsram[offs] - 2; |
| 95 | 92 |
| r1711 | r1712 | |
|---|---|---|
| 236 | 236 | * |
| 237 | 237 | *************************************/ |
| 238 | 238 | |
| 239 | static void draw_background( | |
| 239 | static void draw_background( | |
| 240 | 240 | { |
| 241 | 241 | int x, y; |
| 242 | 242 | |
| r1711 | r1712 | |
| 260 | 260 | int stop2 = background_latches[10] >> 4; |
| 261 | 261 | int stop3 = background_latches[11] >> 4; |
| 262 | 262 | UINT8 *mixer = &background_mixer[(background_latches[12] << 4) & 0xf0]; |
| 263 | UINT8 scanline[VISIBLE_X_MAX]; | |
| 264 | const pen_t *pens; | |
| 263 | UINT16 scanline[VISIBLE_X_MAX]; | |
| 264 | pen_t pen_base = 0x200 + ((background_latches[12] >> 4) << 4); | |
| 265 | 265 | |
| 266 | 266 | /* the cocktail flip flag controls whether we count up or down in X */ |
| 267 | 267 | if (!exerion_cocktail_flip) |
| r1711 | r1712 | |
| 292 | 292 | lookupval = mixer[combined >> 8] & 3; |
| 293 | 293 | |
| 294 | 294 | /* the color index comes from the looked up value combined with the pixel data */ |
| 295 | scanline[x] = (lookupval << 2) | ((combined >> (2 * lookupval)) & 3); | |
| 295 | scanline[x] = pen_base | (lookupval << 2) | ((combined >> (2 * lookupval)) & 3); | |
| 296 | 296 | |
| 297 | 297 | /* the start/stop counters are clocked when the low 5 bits of the X counter overflow */ |
| 298 | 298 | if (!(++xoffs0 & 0x1f)) start0++, stop0++; |
| r1711 | r1712 | |
| 329 | 329 | lookupval = mixer[combined >> 8] & 3; |
| 330 | 330 | |
| 331 | 331 | /* the color index comes from the looked up value combined with the pixel data */ |
| 332 | scanline[x] = (lookupval << 2) | ((combined >> (2 * lookupval)) & 3); | |
| 332 | scanline[x] = pen_base | (lookupval << 2) | ((combined >> (2 * lookupval)) & 3); | |
| 333 | 333 | |
| 334 | 334 | /* the start/stop counters are clocked when the low 5 bits of the X counter overflow */ |
| 335 | 335 | if (!(xoffs0-- & 0x1f)) start0++, stop0++; |
| r1711 | r1712 | |
| 340 | 340 | } |
| 341 | 341 | |
| 342 | 342 | /* draw the scanline */ |
| 343 | pens = &machine->pens[0x200 + ((background_latches[12] >> 4) << 4)]; | |
| 344 | draw_scanline8(bitmap, cliprect->min_x, y, cliprect->max_x - cliprect->min_x + 1, &scanline[cliprect->min_x], pens, -1); | |
| 343 | draw_scanline16(bitmap, cliprect->min_x, y, cliprect->max_x - cliprect->min_x + 1, &scanline[cliprect->min_x], NULL, -1); | |
| 345 | 344 | } |
| 346 | 345 | } |
| 347 | 346 | |
| r1711 | r1712 | |
| 357 | 356 | int sx, sy, offs, i; |
| 358 | 357 | |
| 359 | 358 | /* draw background */ |
| 360 | draw_background( | |
| 359 | draw_background( | |
| 361 | 360 | |
| 362 | 361 | /* draw sprites */ |
| 363 | 362 | for (i = 0; i < spriteram_size; i += 4) |
| r1711 | r1712 | |
|---|---|---|
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | |
| 106 | static void set_pens(r | |
| 106 | static void set_pens(colort | |
| 107 | 107 | { |
| 108 | 108 | int i; |
| 109 | 109 | |
| r1711 | r1712 | |
| 113 | 113 | int g = pal4bit(paletteram[i | 0x000] >> 4); |
| 114 | 114 | int b = pal4bit(paletteram[i | 0x000] >> 0); |
| 115 | 115 | |
| 116 | colortable_palette_set_color( | |
| 116 | colortable_palette_set_color( | |
| 117 | 117 | } |
| 118 | 118 | |
| 119 | colortable_palette_set_color( | |
| 119 | colortable_palette_set_color( | |
| 120 | 120 | } |
| 121 | 121 | |
| 122 | 122 | |
| r1711 | r1712 | |
| 134 | 134 | |
| 135 | 135 | #define DM_GETSCROLL(n) (((darkmist_scroll[(n)]<<1)&0xff) + ((darkmist_scroll[(n)]&0x80)?1:0) +( ((darkmist_scroll[(n)-1]<<4) | (darkmist_scroll[(n)-1]<<12) )&0xff00)) |
| 136 | 136 | |
| 137 | set_pens(machine); | |
| 137 | set_pens(machine->colortable); | |
| 138 | 138 | |
| 139 | 139 | tilemap_set_scrollx(bgtilemap, 0, DM_GETSCROLL(0x2)); |
| 140 | 140 | tilemap_set_scrolly(bgtilemap, 0, DM_GETSCROLL(0x6)); |
| r1711 | r1712 | |
|---|---|---|
| 877 | 877 | |
| 878 | 878 | /*************************************************************************** |
| 879 | 879 | |
| 880 | ||
| 881 | Palette - RRRRGGGGBBBB???? | |
| 882 | ||
| 883 | ||
| 884 | ***************************************************************************/ | |
| 885 | ||
| 886 | #ifdef UNUSED_FUNCTION | |
| 887 | WRITE16_HANDLER( afega_palette_w ) | |
| 888 | { | |
| 889 | int r,g,b; | |
| 890 | data = COMBINE_DATA(&paletteram16[offset]); | |
| 891 | b = ((data & 0x00F0) >> 3 ) + ((data & 0x0002) >> 1); | |
| 892 | g = ((data & 0x0F00) >> 7 ) + ((data & 0x0004) >> 2); | |
| 893 | r = ((data & 0xF000) >> 11) + ((data & 0x0008) >> 3); | |
| 894 | palette_set_color_rgb( Machine, offset, pal5bit(r) , pal5bit(g) , pal5bit(b) ); | |
| 895 | } | |
| 896 | #endif | |
| 897 | ||
| 898 | /* This game uses 8 bit tiles, so it ignores the color codes and just | |
| 899 | uses the same 256 colors for every tile */ | |
| 900 | PALETTE_INIT( grdnstrm ) | |
| 901 | { | |
| 902 | int color, pen; | |
| 903 | for( color = 0; color < 16; color++ ) | |
| 904 | for( pen = 0; pen < 256; pen++ ) | |
| 905 | colortable[color * 256 + pen + 256*3] = 256*0 + pen; | |
| 906 | } | |
| 907 | ||
| 908 | ||
| 909 | /*************************************************************************** | |
| 910 | ||
| 911 | 880 | Tilemaps |
| 912 | 881 | |
| 913 | 882 | Offset: Bits: Value: |
| r1711 | r1712 | |
| 949 | 918 | |
| 950 | 919 | static tilemap *tilemap_0, *tilemap_1; |
| 951 | 920 | |
| 952 | static TILE_GET_INFO( get_tile_info_0 ) | |
| 921 | static TILE_GET_INFO( get_tile_info_0_4bit ) | |
| 953 | 922 | { |
| 954 | 923 | UINT16 code = afega_vram_0[tile_index]; |
| 955 | 924 | SET_TILE_INFO( |
| r1711 | r1712 | |
| 958 | 927 | (code & 0xf000) >> 12, |
| 959 | 928 | 0); |
| 960 | 929 | } |
| 930 | static TILE_GET_INFO( get_tile_info_0_8bit ) | |
| 931 | { | |
| 932 | UINT16 code = afega_vram_0[tile_index]; | |
| 933 | SET_TILE_INFO( | |
| 934 | 0, | |
| 935 | code, | |
| 936 | 0, | |
| 937 | 0); | |
| 938 | } | |
| 961 | 939 | static TILE_GET_INFO( get_tile_info_1 ) |
| 962 | 940 | { |
| 963 | 941 | UINT16 code = afega_vram_1[tile_index]; |
| r1711 | r1712 | |
| 996 | 974 | memset(spriteram_old2,0,0x1000); |
| 997 | 975 | |
| 998 | 976 | |
| 999 | tilemap_0 = tilemap_create( get_tile_info_0, afega_tilemap_scan_pages, | |
| 977 | tilemap_0 = tilemap_create( get_tile_info_0_4bit, afega_tilemap_scan_pages, | |
| 1000 | 978 | |
| 1001 | 979 | 16,16, |
| 1002 | 980 | TILES_PER_PAGE_X*PAGES_PER_TMAP_X,TILES_PER_PAGE_Y*PAGES_PER_TMAP_Y); |
| r1711 | r1712 | |
| 1010 | 988 | } |
| 1011 | 989 | |
| 1012 | 990 | |
| 991 | VIDEO_START( grdnstrm ) | |
| 992 | { | |
| 993 | spriteram_old = auto_malloc(0x1000); | |
| 994 | spriteram_old2 = auto_malloc(0x1000); | |
| 995 | memset(spriteram_old,0,0x1000); | |
| 996 | memset(spriteram_old2,0,0x1000); | |
| 1013 | 997 | |
| 998 | ||
| 999 | tilemap_0 = tilemap_create( get_tile_info_0_8bit, afega_tilemap_scan_pages, | |
| 1000 | ||
| 1001 | 16,16, | |
| 1002 | TILES_PER_PAGE_X*PAGES_PER_TMAP_X,TILES_PER_PAGE_Y*PAGES_PER_TMAP_Y); | |
| 1003 | ||
| 1004 | tilemap_1 = tilemap_create( get_tile_info_1, tilemap_scan_cols, | |
| 1005 | ||
| 1006 | 8,8, | |
| 1007 | 32,32); | |
| 1008 | ||
| 1009 | tilemap_set_transparent_pen(tilemap_1,0xf); | |
| 1010 | } | |
| 1011 | ||
| 1012 | ||
| 1014 | 1013 | VIDEO_START( firehawk ) |
| 1015 | 1014 | { |
| 1016 | 1015 | spriteram_old = auto_malloc(0x1000); |
| r1711 | r1712 | |
| 1019 | 1018 | memset(spriteram_old2,0,0x1000); |
| 1020 | 1019 | |
| 1021 | 1020 | |
| 1022 | tilemap_0 = tilemap_create( get_tile_info_0, firehawk_tilemap_scan_pages, | |
| 1021 | tilemap_0 = tilemap_create( get_tile_info_0_8bit, firehawk_tilemap_scan_pages, | |
| 1023 | 1022 | |
| 1024 | 1023 | 16,16, |
| 1025 | 1024 | TILES_PER_PAGE_X*FIREHAWK_PAGES_PER_TMAP_X,TILES_PER_PAGE_Y*FIREHAWK_PAGES_PER_TMAP_Y); |
| r1711 | r1712 | |
|---|---|---|
| 17 | 17 | static tilemap * tx_tilemap; |
| 18 | 18 | static gfx_element * back_gfx; |
| 19 | 19 | static UINT32 extyoffs[32*8]; |
| 20 | static UINT32 extxoffs[8] = { 0, 1, 2, 3, 4, 5, 6, 7 }; | |
| 21 | 20 | |
| 22 | 21 | static const gfx_layout backlayout = |
| 23 | 22 | { |
| 24 | 23 | 8,8*32, /* 8*8 characters */ |
| 25 | 4, /* 256 characters */ | |
| 26 | 1, /* 1 bits per pixel */ | |
| 24 | 4, /* 256 characters */ | |
| 25 | 1, /* 1 bit per pixel */ | |
| 27 | 26 | { 0 }, |
| 28 | 27 | { 0, 1, 2, 3, 4, 5, 6, 7 }, |
| 29 | | |
| 28 | EXTENDED_YOFFS | |
| 30 | 29 | 32*8*8, /* every char takes 8 consecutive bytes */ |
| 31 | | |
| 30 | NULL | |
| 32 | 31 | }; |
| 33 | 32 | |
| 34 | 33 | static const gfx_layout charlayout = |
| 35 | 34 | { |
| 36 | 35 | 8,8, /* 8*8 characters */ |
| 37 | 36 | 256, /* 256 characters */ |
| 38 | 1, /* 1 bit | |
| 37 | 1, /* 1 bit | |
| 39 | 38 | { 0 }, |
| 40 | 39 | { 0, 1, 2, 3, 4, 5, 6, 7 }, |
| 41 | 40 | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 }, |
| r1711 | r1712 | |
|---|---|---|
| 1508 | 1508 | MDRV_MACHINE_RESET(bfcobra) |
| 1509 | 1509 | |
| 1510 | 1510 | /* TODO */ |
| 1511 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1511 | 1512 | MDRV_SCREEN_REFRESH_RATE(60) |
| 1512 | MDRV_SCREEN_VBLANK_TIME( | |
| 1513 | MDRV_SCREEN_VBLANK_TIME( | |
| 1513 | 1514 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 1514 | 1515 | MDRV_SCREEN_SIZE(256, 256) |
| 1515 | 1516 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0, 256-1) |
| r1711 | r1712 | |
|---|---|---|
| 44 | 44 | { |
| 45 | 45 | int i; |
| 46 | 46 | |
| 47 | for (i = 0; i < machine-> | |
| 47 | for (i = 0; i < machine->config->total_colors; i++) | |
| 48 | 48 | { |
| 49 | 49 | int bit0, bit1, bit2, r, g, b; |
| 50 | 50 | |
| r1711 | r1712 | |
| 298 | 298 | MDRV_CPU_IO_MAP(rcasino_io_map, 0) |
| 299 | 299 | MDRV_CPU_VBLANK_INT(irq0_line_hold, 1) |
| 300 | 300 | |
| 301 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 302 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 303 | ||
| 304 | 301 | // video hardware |
| 305 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 302 | ||
| 303 | MDRV_SCREEN_ADD("main", RASTER) | |
| 304 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 305 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 306 | 306 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 307 | 307 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 308 | 308 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 309 | 309 | |
| 310 | 310 | MDRV_GFXDECODE(rcasino) |
| 311 | 311 | MDRV_PALETTE_LENGTH(64) |
| 312 | MDRV_COLORTABLE_LENGTH(64) | |
| 313 | 312 | |
| 314 | 313 | MDRV_PALETTE_INIT(rcasino) |
| 315 | 314 | MDRV_VIDEO_START(rcasino) |
| r1711 | r1712 | |
|---|---|---|
| 231 | 231 | MDRV_CPU_IO_MAP(readport,0) |
| 232 | 232 | MDRV_CPU_VBLANK_INT(irq3_line_hold,NUM_INTS_FRAME) |
| 233 | 233 | |
| 234 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 235 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 236 | ||
| 237 | 234 | MDRV_GFXDECODE(sbugger) |
| 238 | 235 | |
| 239 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 236 | ||
| 237 | MDRV_SCREEN_ADD("main", RASTER) | |
| 238 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 239 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 240 | 240 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 241 | 241 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 242 | 242 | MDRV_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 0*8, 32*8-1) |
| 243 | ||
| 243 | 244 | MDRV_PALETTE_LENGTH(512) |
| 244 | 245 | |
| 245 | 246 | MDRV_PALETTE_INIT(sbugger) |
| r1711 | r1712 | |
|---|---|---|
| 192 | 192 | MDRV_CPU_PROGRAM_MAP(targeth_readmem,targeth_writemem) |
| 193 | 193 | MDRV_CPU_VBLANK_INT(targeth_interrupt,3) |
| 194 | 194 | |
| 195 | /* video hardware */ | |
| 196 | MDRV_SCREEN_ADD("main", RASTER) | |
| 195 | 197 | MDRV_SCREEN_REFRESH_RATE(60) |
| 196 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 197 | ||
| 198 | /* video hardware */ | |
| 199 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 198 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 200 | 199 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 201 | 200 | MDRV_SCREEN_SIZE(64*16, 32*16) /* 1024x512 */ |
| 202 | 201 | MDRV_SCREEN_VISIBLE_AREA(0, 24*16-1, 16, 16*16-1) /* 400x240 */ |
| 202 | ||
| 203 | 203 | MDRV_GFXDECODE(0x080000) |
| 204 | 204 | MDRV_PALETTE_LENGTH(1024) |
| 205 | 205 |
| r1711 | r1712 | |
|---|---|---|
| 94 | 94 | MDRV_CPU_IO_MAP(readport,0) |
| 95 | 95 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 96 | 96 | |
| 97 | /* video hardware */ | |
| 98 | MDRV_SCREEN_ADD("main", RASTER) | |
| 97 | 99 | MDRV_SCREEN_REFRESH_RATE(60) |
| 98 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 99 | ||
| 100 | /* video hardware */ | |
| 101 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 100 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 102 | 101 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 103 | 102 | MDRV_SCREEN_SIZE(256, 512) |
| 104 | 103 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0, 512-1) |
| 104 | ||
| 105 | 105 | MDRV_GFXDECODE(intrscti) |
| 106 | 106 | MDRV_PALETTE_LENGTH(0x100) |
| 107 | 107 |
| r1711 | r1712 | |
|---|---|---|
| 814 | 814 | MDRV_CPU_ADD(M68705,2000000) |
| 815 | 815 | MDRV_CPU_PROGRAM_MAP(m68705_readmem,m68705_writemem) |
| 816 | 816 | |
| 817 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 818 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 819 | 817 | MDRV_INTERLEAVE(100) /* 100 CPU slices per frame - an high value to ensure proper */ |
| 820 | 818 | |
| 821 | 819 | /* synchronization of the CPUs */ |
| 822 | 820 | MDRV_MACHINE_RESET(ta7630) |
| 823 | 821 | |
| 824 | 822 | /* video hardware */ |
| 825 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 823 | MDRV_SCREEN_ADD("main", RASTER) | |
| 824 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 825 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 826 | 826 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 827 | 827 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 828 | 828 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 829 | ||
| 829 | 830 | MDRV_GFXDECODE(nycaptor) |
| 830 | 831 | MDRV_PALETTE_LENGTH(512) |
| 831 | 832 | |
| r1711 | r1712 | |
| 868 | 869 | MDRV_CPU_PROGRAM_MAP(m68705_readmem,m68705_writemem) |
| 869 | 870 | #endif |
| 870 | 871 | |
| 871 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 872 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 873 | 872 | MDRV_INTERLEAVE(1) |
| 874 | 873 | MDRV_MACHINE_RESET(ta7630) |
| 875 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 874 | ||
| 875 | MDRV_SCREEN_ADD("main", RASTER) | |
| 876 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 877 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 876 | 878 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 877 | 879 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 878 | 880 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 881 | ||
| 879 | 882 | MDRV_GFXDECODE(nycaptor) |
| 880 | 883 | MDRV_PALETTE_LENGTH(512) |
| 881 | 884 | |
| r1711 | r1712 | |
| 915 | 918 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 916 | 919 | MDRV_CPU_VBLANK_INT(irq0_line_hold,2) |
| 917 | 920 | |
| 918 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 919 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 920 | 921 | MDRV_INTERLEAVE(2) |
| 921 | 922 | MDRV_MACHINE_RESET(ta7630) |
| 922 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 923 | ||
| 924 | MDRV_SCREEN_ADD("main", RASTER) | |
| 925 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 926 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 923 | 927 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 924 | 928 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 925 | 929 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 930 | ||
| 926 | 931 | MDRV_GFXDECODE(nycaptor) |
| 927 | 932 | MDRV_PALETTE_LENGTH(512) |
| 928 | 933 |
| r1711 | r1712 | |
|---|---|---|
| 1333 | 1333 | MDRV_CPU_IO_MAP(readport,writeport) |
| 1334 | 1334 | MDRV_CPU_VBLANK_INT(irq0_line_hold,2) /* ??? one extra irq seems to be needed for music (see input5_r) */ |
| 1335 | 1335 | |
| 1336 | /* video hardware */ | |
| 1337 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1336 | 1338 | MDRV_SCREEN_REFRESH_RATE(60) |
| 1337 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1338 | ||
| 1339 | /* video hardware */ | |
| 1340 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1339 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1341 | 1340 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1342 | 1341 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 1343 | 1342 | MDRV_SCREEN_VISIBLE_AREA(8*8, (64-8)*8-1, 1*8, 31*8-1 ) |
| 1343 | ||
| 1344 | 1344 | MDRV_GFXDECODE(mgakuen) |
| 1345 | 1345 | MDRV_PALETTE_LENGTH(1024) /* less colors than the others */ |
| 1346 | 1346 | |
| r1711 | r1712 | |
| 1367 | 1367 | MDRV_CPU_IO_MAP(readport,writeport) |
| 1368 | 1368 | MDRV_CPU_VBLANK_INT(irq0_line_hold,2) /* ??? one extra irq seems to be needed for music (see input5_r) */ |
| 1369 | 1369 | |
| 1370 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1371 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1372 | ||
| 1373 | 1370 | MDRV_NVRAM_HANDLER(mitchell) |
| 1374 | 1371 | |
| 1375 | 1372 | /* video hardware */ |
| 1376 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1373 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1374 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1375 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1377 | 1376 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1378 | 1377 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 1379 | 1378 | MDRV_SCREEN_VISIBLE_AREA(8*8, (64-8)*8-1, 1*8, 31*8-1 ) |
| 1379 | ||
| 1380 | 1380 | MDRV_GFXDECODE(mitchell) |
| 1381 | 1381 | MDRV_PALETTE_LENGTH(2048) |
| 1382 | 1382 | |
| r1711 | r1712 | |
| 1470 | 1470 | /* audio CPU */ |
| 1471 | 1471 | MDRV_CPU_PROGRAM_MAP(mstworld_sound_readmem,mstworld_sound_writemem) |
| 1472 | 1472 | |
| 1473 | /* video hardware */ | |
| 1474 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1473 | 1475 | MDRV_SCREEN_REFRESH_RATE(60) |
| 1474 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 1475 | ||
| 1476 | /* video hardware */ | |
| 1477 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1476 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 1478 | 1477 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1479 | 1478 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 1480 | 1479 | MDRV_SCREEN_VISIBLE_AREA(8*8, (64-8)*8-1, 1*8, 31*8-1 ) |
| 1480 | ||
| 1481 | 1481 | MDRV_GFXDECODE(mstworld) |
| 1482 | 1482 | MDRV_PALETTE_LENGTH(2048) |
| 1483 | 1483 | |
| r1711 | r1712 | |
| 1501 | 1501 | MDRV_CPU_IO_MAP(readport,writeport) |
| 1502 | 1502 | MDRV_CPU_VBLANK_INT(irq0_line_hold,2) /* ??? one extra irq seems to be needed for music (see input5_r) */ |
| 1503 | 1503 | |
| 1504 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1505 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1506 | ||
| 1507 | 1504 | MDRV_NVRAM_HANDLER(mitchell) |
| 1508 | 1505 | |
| 1509 | 1506 | /* video hardware */ |
| 1510 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1507 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1508 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1509 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1511 | 1510 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1512 | 1511 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 1513 | 1512 | MDRV_SCREEN_VISIBLE_AREA(8*8, (64-8)*8-1, 1*8, 31*8-1 ) |
| 1513 | ||
| 1514 | 1514 | MDRV_GFXDECODE(marukin) |
| 1515 | 1515 | MDRV_PALETTE_LENGTH(2048) |
| 1516 | 1516 |
| r1711 | r1712 | |
|---|---|---|
| 616 | 616 | static MACHINE_DRIVER_START( rainbow ) |
| 617 | 617 | |
| 618 | 618 | /* basic machine hardware */ |
| 619 | MDRV_CPU_ADD(M68000, | |
| 619 | MDRV_CPU_ADD(M68000, XTAL_16MHz/2) /* verified on pcb */ | |
| 620 | 620 | MDRV_CPU_PROGRAM_MAP(rainbow_readmem,rainbow_writemem) |
| 621 | 621 | MDRV_CPU_VBLANK_INT(irq4_line_hold,1) |
| 622 | 622 | |
| 623 | MDRV_CPU_ADD(Z80, 4 | |
| 623 | MDRV_CPU_ADD(Z80, XTAL_16MHz/4 | |
| 624 | 624 | MDRV_CPU_PROGRAM_MAP(rainbow_s_readmem,rainbow_s_writemem) |
| 625 | 625 | |
| 626 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 627 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 628 | 626 | MDRV_INTERLEAVE(10) /* 10 CPU slices per frame - enough for the sound CPU to read all commands */ |
| 629 | 627 | |
| 630 | 628 | /* video hardware */ |
| 631 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 629 | MDRV_SCREEN_ADD("main", RASTER) | |
| 630 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 631 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 632 | 632 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 633 | 633 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 634 | 634 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 30*8-1) |
| 635 | ||
| 635 | 636 | MDRV_GFXDECODE(rainbow) |
| 636 | 637 | MDRV_PALETTE_LENGTH(8192) |
| 637 | 638 | |
| r1711 | r1712 | |
| 641 | 642 | /* sound hardware */ |
| 642 | 643 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 643 | 644 | |
| 644 | MDRV_SOUND_ADD(YM2151, 4 | |
| 645 | MDRV_SOUND_ADD(YM2151, XTAL_16MHz/4 | |
| 645 | 646 | MDRV_SOUND_CONFIG(ym2151_interface) |
| 646 | 647 | MDRV_SOUND_ROUTE(0, "mono", 0.50) |
| 647 | 648 | MDRV_SOUND_ROUTE(1, "mono", 0.50) |
| r1711 | r1712 | |
| 658 | 659 | MDRV_CPU_ADD(Z80, 4000000) |
| 659 | 660 | MDRV_CPU_PROGRAM_MAP(jumping_sound_readmem,jumping_sound_writemem) |
| 660 | 661 | |
| 661 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 662 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 663 | 662 | MDRV_INTERLEAVE(10) /* 10 CPU slices per frame - enough ? */ |
| 664 | 663 | |
| 665 | 664 | /* video hardware */ |
| 666 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 665 | MDRV_SCREEN_ADD("main", RASTER) | |
| 666 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 667 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 667 | 668 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 668 | 669 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 669 | 670 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 30*8-1) |
| 671 | ||
| 670 | 672 | MDRV_GFXDECODE(jumping) |
| 671 | 673 | MDRV_PALETTE_LENGTH(8192) |
| 672 | 674 |
| r1711 | r1712 | |
|---|---|---|
| 308 | 308 | /* audio CPU */ /* 4 MHz ??? */ |
| 309 | 309 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 310 | 310 | /* NMI is caused by the main CPU */ |
| 311 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 312 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 313 | 311 | |
| 314 | 312 | /* video hardware */ |
| 315 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 313 | MDRV_SCREEN_ADD("main", RASTER) | |
| 314 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 315 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 316 | 316 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 317 | 317 | MDRV_SCREEN_SIZE(512, 256) |
| 318 | 318 | MDRV_SCREEN_VISIBLE_AREA(0, 512-1, 16, 240-1) |
| 319 | ||
| 319 | 320 | MDRV_GFXDECODE(galspnbl) |
| 320 | 321 | MDRV_PALETTE_LENGTH(1024 + 32768) |
| 321 | 322 |
| r1711 | r1712 | |
|---|---|---|
| 261 | 261 | /* audio CPU */ |
| 262 | 262 | MDRV_CPU_PROGRAM_MAP(sound_mem_map, 0) |
| 263 | 263 | |
| 264 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 265 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 266 | 264 | MDRV_MACHINE_START(blktiger) |
| 267 | 265 | |
| 268 | 266 | /* video hardware */ |
| 269 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 267 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 268 | ||
| 269 | MDRV_SCREEN_ADD("main", RASTER) | |
| 270 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 271 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 270 | 272 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 271 | 273 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 272 | 274 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 275 | ||
| 273 | 276 | MDRV_GFXDECODE(blktiger) |
| 274 | 277 | MDRV_PALETTE_LENGTH(1024) |
| 275 | 278 |
| r1711 | r1712 | |
|---|---|---|
| 278 | 278 | |
| 279 | 279 | SEIBU_SOUND_SYSTEM_CPU(14318180/4) |
| 280 | 280 | |
| 281 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 282 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 283 | 281 | MDRV_INTERLEAVE(60) |
| 284 | 282 | |
| 285 | 283 | MDRV_MACHINE_RESET(seibu_sound_2) |
| 286 | 284 | |
| 287 | 285 | // video hardware |
| 288 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 286 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 287 | ||
| 288 | MDRV_SCREEN_ADD("main", RASTER) | |
| 289 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 290 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 289 | 291 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 290 | 292 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 291 | 293 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 294 | ||
| 292 | 295 | MDRV_GFXDECODE(dynduke) |
| 293 | 296 | MDRV_PALETTE_LENGTH(2048) |
| 294 | 297 |
| r1711 | r1712 | |
|---|---|---|
| 297 | 297 | MDRV_CPU_ADD(M6502, 12096000 / 16) /* ? */ |
| 298 | 298 | MDRV_CPU_PROGRAM_MAP(cpu_map, 0) |
| 299 | 299 | |
| 300 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 301 | 300 | MDRV_MACHINE_RESET(mgolf) |
| 302 | 301 | |
| 303 | 302 | /* video hardware */ |
| 304 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 303 | MDRV_SCREEN_ADD("main", RASTER) | |
| 304 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 305 | 305 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 306 | 306 | MDRV_SCREEN_SIZE(256, 262) |
| 307 | 307 | MDRV_SCREEN_VISIBLE_AREA(0, 255, 0, 223) |
| 308 | ||
| 308 | 309 | MDRV_GFXDECODE(mgolf) |
| 309 | 310 | MDRV_PALETTE_LENGTH(4) |
| 310 | 311 |
| r1711 | r1712 | |
|---|---|---|
| 439 | 439 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 440 | 440 | |
| 441 | 441 | MDRV_MACHINE_RESET(mlc) |
| 442 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 443 | 442 | MDRV_NVRAM_HANDLER(93C46) /* Actually 93c45 */ |
| 444 | 443 | |
| 445 | 444 | /* video hardware */ |
| 446 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 445 | MDRV_SCREEN_ADD("main", RASTER) | |
| 446 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 447 | 447 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 448 | 448 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 449 | 449 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 450 | ||
| 450 | 451 | MDRV_GFXDECODE(deco_mlc) |
| 451 | 452 | MDRV_PALETTE_LENGTH(2048) |
| 452 | 453 | |
| r1711 | r1712 | |
| 470 | 471 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 471 | 472 | |
| 472 | 473 | MDRV_MACHINE_RESET(mlc) |
| 473 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 474 | 474 | MDRV_NVRAM_HANDLER(93C46) /* Actually 93c45 */ |
| 475 | 475 | |
| 476 | 476 | /* video hardware */ |
| 477 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 477 | MDRV_SCREEN_ADD("main", RASTER) | |
| 478 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 478 | 479 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 479 | 480 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 480 | 481 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 482 | ||
| 481 | 483 | MDRV_GFXDECODE(deco_mlc) |
| 482 | 484 | MDRV_PALETTE_LENGTH(2048) |
| 483 | 485 |
| r1711 | r1712 | |
|---|---|---|
| 282 | 282 | |
| 283 | 283 | |
| 284 | 284 | static GFXDECODE_START( tunhunt ) |
| 285 | GFXDECODE_ENTRY( REGION_GFX1, 0x000, alpha_layout, 0, 4 ) | |
| 286 | GFXDECODE_ENTRY( REGION_GFX2, 0x200, obj_layout, 8, 1 ) | |
| 287 | GFXDECODE_ENTRY( REGION_GFX2, 0x000, obj_layout, 8, 1 ) /* second bank, or second bitplane? */ | |
| 285 | GFXDECODE_ENTRY( REGION_GFX1, 0x000, alpha_layout, 0x10, 4 ) | |
| 286 | GFXDECODE_ENTRY( REGION_GFX2, 0x200, obj_layout, 0x18, 1 ) | |
| 287 | GFXDECODE_ENTRY( REGION_GFX2, 0x000, obj_layout, 0x18, 1 ) /* second bank, or second bitplane? */ | |
| 288 | 288 | GFXDECODE_END |
| 289 | 289 | |
| 290 | 290 | |
| r1711 | r1712 | |
| 321 | 321 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 322 | 322 | MDRV_CPU_VBLANK_INT(irq0_line_hold,2) /* ? probably wrong */ |
| 323 | 323 | |
| 324 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 325 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 326 | ||
| 327 | 324 | /* video hardware */ |
| 328 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 325 | MDRV_SCREEN_ADD("main", RASTER) | |
| 326 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 327 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 329 | 328 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 330 | 329 | MDRV_SCREEN_SIZE(256, 256-16) |
| 331 | 330 | MDRV_SCREEN_VISIBLE_AREA(0, 255, 0, 255-16) |
| 331 | ||
| 332 | 332 | MDRV_GFXDECODE(tunhunt) |
| 333 | MDRV_PALETTE_LENGTH(16) | |
| 334 | MDRV_COLORTABLE_LENGTH(16) | |
| 333 | MDRV_PALETTE_LENGTH(0x1a) | |
| 335 | 334 | |
| 336 | 335 | MDRV_PALETTE_INIT(tunhunt) |
| 337 | 336 | MDRV_VIDEO_START(tunhunt) |
| r1711 | r1712 | |
|---|---|---|
| 198 | 198 | MDRV_CPU_PROGRAM_MAP(sound_cpu,0) |
| 199 | 199 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,16) /* ? */ |
| 200 | 200 | |
| 201 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 202 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 203 | ||
| 204 | 201 | /* video hardware */ |
| 205 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 202 | MDRV_SCREEN_ADD("main", RASTER) | |
| 203 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 204 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 206 | 205 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 207 | 206 | MDRV_SCREEN_SIZE(256, 256) |
| 208 | 207 | MDRV_SCREEN_VISIBLE_AREA(1*8, 32*8-1, 1*8, 31*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 353 | 353 | if(x*2 < cliprect->max_x) |
| 354 | 354 | { |
| 355 | 355 | color = (bitmap0[count + (vbuffer^1)*0x20000/2] & 0xff00) >> 8; |
| 356 | *BITMAP_ADDR16(bitmap, y, x*2 + 0) = | |
| 356 | *BITMAP_ADDR16(bitmap, y, x*2 + 0) = | |
| 357 | 357 | |
| 358 | 358 | color = bitmap0[count + (vbuffer^1)*0x20000/2] & 0xff; |
| 359 | *BITMAP_ADDR16(bitmap, y, x*2 + 1) = | |
| 359 | *BITMAP_ADDR16(bitmap, y, x*2 + 1) = | |
| 360 | 360 | } |
| 361 | 361 | |
| 362 | 362 | count++; |
| r1711 | r1712 | |
| 372 | 372 | { |
| 373 | 373 | color = bitmap1[count + (vbuffer^1)*0x20000/2] & 0xff; |
| 374 | 374 | if(color != 0) |
| 375 | *BITMAP_ADDR16(bitmap, y, x*2 + 1) = | |
| 375 | *BITMAP_ADDR16(bitmap, y, x*2 + 1) = | |
| 376 | 376 | |
| 377 | 377 | color = (bitmap1[count + (vbuffer^1)*0x20000/2] & 0xff00) >> 8; |
| 378 | 378 | if(color != 0) |
| 379 | *BITMAP_ADDR16(bitmap, y, x*2 + 0) = | |
| 379 | *BITMAP_ADDR16(bitmap, y, x*2 + 0) = | |
| 380 | 380 | } |
| 381 | 381 | |
| 382 | 382 | count++; |
| r1711 | r1712 | |
| 392 | 392 | MDRV_CPU_IO_MAP(pasha2_io,0) |
| 393 | 393 | MDRV_CPU_VBLANK_INT(irq0_line_hold, 1) |
| 394 | 394 | |
| 395 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 396 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 397 | ||
| 398 | 395 | MDRV_NVRAM_HANDLER(93C46) |
| 399 | 396 | |
| 400 | 397 | /* video hardware */ |
| 401 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 398 | MDRV_SCREEN_ADD("main", RASTER) | |
| 399 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 400 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 402 | 401 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 403 | 402 | MDRV_SCREEN_SIZE(512, 512) |
| 404 | 403 | MDRV_SCREEN_VISIBLE_AREA(0, 383, 0, 239) |
| 404 | ||
| 405 | 405 | MDRV_PALETTE_LENGTH(0x200) |
| 406 | 406 | |
| 407 | 407 | MDRV_VIDEO_START(pasha2) |
| r1711 | r1712 | |
|---|---|---|
| 339 | 339 | MDRV_CPU_PERIODIC_INT(audio_interrupt, 480) |
| 340 | 340 | |
| 341 | 341 | MDRV_INTERLEAVE(100) // higher if sound stutters |
| 342 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 343 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 344 | 342 | |
| 345 | 343 | MDRV_GFXDECODE(rungun) |
| 346 | 344 | |
| r1711 | r1712 | |
| 348 | 346 | MDRV_NVRAM_HANDLER(rungun) |
| 349 | 347 | |
| 350 | 348 | /* video hardware */ |
| 351 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 349 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 350 | ||
| 351 | MDRV_SCREEN_ADD("main", RASTER) | |
| 352 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 353 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 352 | 354 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 353 | 355 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 354 | 356 | MDRV_SCREEN_VISIBLE_AREA(88, 88+384-1, 24, 24+224-1) |
| 357 | ||
| 355 | 358 | MDRV_PALETTE_LENGTH(1024) |
| 356 | 359 | |
| 357 | 360 | MDRV_VIDEO_START(rng) |
| r1711 | r1712 | |
|---|---|---|
| 826 | 826 | MDRV_CPU_PROGRAM_MAP(crystal_mem,0) |
| 827 | 827 | MDRV_CPU_VBLANK_INT(crystal_interrupt,1) |
| 828 | 828 | |
| 829 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 830 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 831 | ||
| 832 | 829 | MDRV_MACHINE_RESET(crystal) |
| 833 | 830 | |
| 834 | 831 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 835 | 832 | |
| 836 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 833 | MDRV_SCREEN_ADD("main", RASTER) | |
| 834 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 835 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 837 | 836 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) |
| 838 | 837 | MDRV_SCREEN_SIZE(320, 240) |
| 839 | 838 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 239) |
| 839 | ||
| 840 | 840 | MDRV_PALETTE_LENGTH(8192) |
| 841 | 841 | |
| 842 | 842 | MDRV_VIDEO_START(crystal) |
| r1711 | r1712 | |
|---|---|---|
| 586 | 586 | MDRV_CPU_PROGRAM_MAP(main_map, 0) |
| 587 | 587 | MDRV_CPU_PERIODIC_INT(irq0_line_assert, (double)MASTER_CLOCK / 4096 / 12) |
| 588 | 588 | MDRV_WATCHDOG_TIME_INIT(ATTOTIME_IN_HZ(CLOCK_3KHZ / 256)) |
| 589 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 590 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 591 | 589 | MDRV_NVRAM_HANDLER(atari_vg) |
| 592 | 590 | |
| 593 | 591 | /* video hardware */ |
| 594 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_VECTOR ) | |
| 595 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) | |
| 592 | MDRV_SCREEN_ADD("main", VECTOR) | |
| 593 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 596 | 594 | MDRV_SCREEN_SIZE(400, 300) |
| 597 | 595 | MDRV_SCREEN_VISIBLE_AREA(0, 580, 0, 570) |
| 596 | ||
| 598 | 597 | MDRV_PALETTE_LENGTH(256) |
| 599 | 598 | |
| 600 | 599 | MDRV_VIDEO_START(avg_tempest) |
| r1711 | r1712 | |
|---|---|---|
| 293 | 293 | /* audio CPU */ |
| 294 | 294 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 295 | 295 | |
| 296 | /* video hardware */ | |
| 297 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 298 | ||
| 299 | MDRV_SCREEN_ADD("main", RASTER) | |
| 296 | 300 | MDRV_SCREEN_REFRESH_RATE(58) |
| 297 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION /* frames per second, vblank duration taken from Burger Time */) | |
| 298 | ||
| 299 | /* video hardware */ | |
| 300 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 301 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */ /* frames per second, vblank duration taken from Burger Time */) | |
| 301 | 302 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 302 | 303 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 303 | 304 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 305 | ||
| 304 | 306 | MDRV_GFXDECODE(madmotor) |
| 305 | 307 | MDRV_PALETTE_LENGTH(1024) |
| 306 | 308 |
| r1711 | r1712 | |
|---|---|---|
| 431 | 431 | MDRV_NVRAM_HANDLER(atarigen) |
| 432 | 432 | |
| 433 | 433 | /* video hardware */ |
| 434 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 434 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 435 | 435 | MDRV_GFXDECODE(eprom) |
| 436 | 436 | MDRV_PALETTE_LENGTH(2048) |
| 437 | 437 | |
| 438 | MDRV_SCREEN_ADD("main", | |
| 438 | MDRV_SCREEN_ADD("main", RASTER) | |
| 439 | 439 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 440 | 440 | /* note: these parameters are from published specs, not derived */ |
| 441 | 441 | /* the board uses a SYNGEN chip to generate video signals */ |
| r1711 | r1712 | |
| 462 | 462 | MDRV_NVRAM_HANDLER(atarigen) |
| 463 | 463 | |
| 464 | 464 | /* video hardware */ |
| 465 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 465 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 466 | 466 | MDRV_GFXDECODE(eprom) |
| 467 | 467 | MDRV_PALETTE_LENGTH(2048) |
| 468 | 468 | |
| 469 | MDRV_SCREEN_ADD("main", | |
| 469 | MDRV_SCREEN_ADD("main", RASTER) | |
| 470 | 470 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 471 | 471 | /* note: these parameters are from published specs, not derived */ |
| 472 | 472 | /* the board uses a SYNGEN chip to generate video signals */ |
| r1711 | r1712 | |
| 492 | 492 | MDRV_NVRAM_HANDLER(atarigen) |
| 493 | 493 | |
| 494 | 494 | /* video hardware */ |
| 495 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 495 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 496 | 496 | MDRV_GFXDECODE(guts) |
| 497 | 497 | MDRV_PALETTE_LENGTH(2048) |
| 498 | 498 | |
| 499 | MDRV_SCREEN_ADD("main", | |
| 499 | MDRV_SCREEN_ADD("main", RASTER) | |
| 500 | 500 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 501 | 501 | /* note: these parameters are from published specs, not derived */ |
| 502 | 502 | /* the board uses a SYNGEN chip to generate video signals */ |
| r1711 | r1712 | |
|---|---|---|
| 746 | 746 | /* audio CPU */ // 3 MHz |
| 747 | 747 | MDRV_CPU_PROGRAM_MAP(tokio_sound_map, 0) // NMIs are triggered by the main CPU, IRQs are triggered by the YM2203 |
| 748 | 748 | |
| 749 | MDRV_SCREEN_REFRESH_RATE(VSYNC) // 59.185606 Hz | |
| 750 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(VBLANK)) // 2560 us | |
| 751 | 749 | MDRV_INTERLEAVE(100) // 100 CPU slices per frame - a high value to ensure proper synchronization of the CPUs |
| 752 | 750 | |
| 753 | 751 | // video hardware |
| 754 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 752 | ||
| 753 | MDRV_SCREEN_ADD("main", RASTER) | |
| 754 | MDRV_SCREEN_REFRESH_RATE(VSYNC) // 59.185606 Hz | |
| 755 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(VBLANK)) // 2560 us | |
| 755 | 756 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 756 | 757 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 757 | 758 | MDRV_SCREEN_VISIBLE_AREA(0, 32*8-1, 2*8, 30*8-1) |
| 759 | ||
| 758 | 760 | MDRV_GFXDECODE(bublbobl) |
| 759 | 761 | MDRV_PALETTE_LENGTH(256) |
| 760 | 762 | |
| r1711 | r1712 | |
| 789 | 791 | MDRV_CPU_PROGRAM_MAP(mcu_map, 0) |
| 790 | 792 | MDRV_CPU_VBLANK_INT(irq0_line_pulse, 1) // comes from the same clock that latches the INT pin on the second Z80 |
| 791 | 793 | |
| 792 | MDRV_SCREEN_REFRESH_RATE(VSYNC) // 59.185606 Hz | |
| 793 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(VBLANK)) // 2560 us | |
| 794 | 794 | MDRV_INTERLEAVE(100) // 100 CPU slices per frame - a high value to ensure proper synchronization of the CPUs |
| 795 | 795 | |
| 796 | 796 | // video hardware |
| 797 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 797 | ||
| 798 | MDRV_SCREEN_ADD("main", RASTER) | |
| 799 | MDRV_SCREEN_REFRESH_RATE(VSYNC) // 59.185606 Hz | |
| 800 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(VBLANK)) // 2560 us | |
| 798 | 801 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 799 | 802 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 800 | 803 | MDRV_SCREEN_VISIBLE_AREA(0, 32*8-1, 2*8, 30*8-1) |
| 804 | ||
| 801 | 805 | MDRV_GFXDECODE(bublbobl) |
| 802 | 806 | MDRV_PALETTE_LENGTH(256) |
| 803 | 807 |
| r1711 | r1712 | |
|---|---|---|
| 466 | 466 | MDRV_MACHINE_RESET( chinsan ) |
| 467 | 467 | |
| 468 | 468 | /* video hardware */ |
| 469 | MDRV_ | |
| 469 | MDRV_SC | |
| 470 | 470 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 471 | 471 | MDRV_SCREEN_SIZE(512, 256) |
| 472 | 472 | MDRV_SCREEN_REFRESH_RATE(60) |
| 473 | MDRV_SCREEN_VBLANK_TIME( | |
| 473 | MDRV_SCREEN_VBLANK_TIME( | |
| 474 | 474 | MDRV_SCREEN_VISIBLE_AREA(24, 512-24-1, 16, 256-16-1) |
| 475 | ||
| 475 | 476 | MDRV_GFXDECODE(chinsan) |
| 476 | 477 | MDRV_PALETTE_LENGTH(0x100) |
| 477 | 478 |
| r1711 | r1712 | |
|---|---|---|
| 262 | 262 | /* audio CPU */ |
| 263 | 263 | MDRV_CPU_PROGRAM_MAP(skyfox_sound_readmem,skyfox_sound_writemem) |
| 264 | 264 | |
| 265 | /* video hardware */ | |
| 266 | MDRV_SCREEN_ADD("main", RASTER) | |
| 265 | 267 | MDRV_SCREEN_REFRESH_RATE(60) |
| 266 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) // we're using IPT_VBLANK | |
| 267 | ||
| 268 | /* video hardware */ | |
| 269 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 268 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) // we're using IPT_VBLANK | |
| 270 | 269 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 271 | 270 | MDRV_SCREEN_SIZE(512, 256) |
| 272 | 271 | MDRV_SCREEN_VISIBLE_AREA(0+0x60, 320-1+0x60, 0+16, 256-1-16) // from $30*2 to $CC*2+8 |
| 272 | ||
| 273 | 273 | MDRV_GFXDECODE(skyfox) |
| 274 | 274 | MDRV_PALETTE_LENGTH(256+256) /* 256 static colors (+256 for the background??) */ |
| 275 | 275 |
| r1711 | r1712 | |
|---|---|---|
| 479 | 479 | MDRV_CPU_PROGRAM_MAP(s_readmem,s_writemem) |
| 480 | 480 | MDRV_CPU_IO_MAP(s_readport,s_writeport) |
| 481 | 481 | |
| 482 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 483 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 484 | ||
| 485 | 482 | MDRV_MACHINE_RESET(cshooter) |
| 486 | 483 | |
| 487 | 484 | /* video hardware */ |
| 488 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 485 | MDRV_SCREEN_ADD("main", RASTER) | |
| 486 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 487 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 489 | 488 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 490 | 489 | MDRV_SCREEN_SIZE(256, 256) |
| 491 | 490 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 16, 256-1-16) |
| 491 | ||
| 492 | 492 | MDRV_GFXDECODE(cshooter) |
| 493 | 493 | MDRV_PALETTE_LENGTH(0x1000) |
| 494 | 494 | |
| r1711 | r1712 | |
| 508 | 508 | MDRV_CPU_PROGRAM_MAP(s2_readmem,s2_writemem) |
| 509 | 509 | MDRV_CPU_IO_MAP(s_readport,s_writeport) |
| 510 | 510 | |
| 511 | ||
| 512 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 513 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 514 | ||
| 515 | 511 | MDRV_MACHINE_RESET(cshooter) |
| 516 | 512 | |
| 517 | 513 | /* video hardware */ |
| 518 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 514 | MDRV_SCREEN_ADD("main", RASTER) | |
| 515 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 516 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 519 | 517 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 520 | 518 | MDRV_SCREEN_SIZE(256, 256) |
| 521 | 519 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 16, 256-1-16) |
| 520 | ||
| 522 | 521 | MDRV_GFXDECODE(cshooter) |
| 523 | 522 | MDRV_PALETTE_LENGTH(0x1000) |
| 524 | 523 |
| r1711 | r1712 | |
|---|---|---|
| 552 | 552 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_START2 ) |
| 553 | 553 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 554 | 554 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 555 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_ | |
| 555 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 556 | 556 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 557 | 557 | |
| 558 | 558 | PORT_START_TAG("IN1") |
| r1711 | r1712 | |
| 566 | 566 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 567 | 567 | |
| 568 | 568 | PORT_START_TAG("DSW") |
| 569 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:1,2") | |
| 569 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:1,2") | |
| 570 | 570 | PORT_DIPSETTING( 0x0001, DEF_STR( 3C_1C ) ) |
| 571 | 571 | PORT_DIPSETTING( 0x0002, DEF_STR( 2C_1C ) ) |
| 572 | 572 | PORT_DIPSETTING( 0x0003, DEF_STR( 1C_1C ) ) |
| 573 | 573 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_2C ) ) |
| 574 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:3,4") | |
| 574 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:3,4") | |
| 575 | 575 | PORT_DIPSETTING( 0x0004, DEF_STR( 3C_1C ) ) |
| 576 | 576 | PORT_DIPSETTING( 0x0008, DEF_STR( 2C_1C ) ) |
| 577 | 577 | PORT_DIPSETTING( 0x000c, DEF_STR( 1C_1C ) ) |
| 578 | 578 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_2C ) ) |
| 579 | /* The following two select country in the Chinese version (ROMs not available) | |
| 580 | Based on Super Volley '91 PCB Infos, the settings are: | |
| 581 | China |off|off| | |
| 582 | Taiwan |on |off| | |
| 583 | HongKong |off|on | */ | |
| 584 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW1:5,6") | |
| 585 | PORT_DIPSETTING( 0x0030, "Off - Off" ) | |
| 586 | PORT_DIPSETTING( 0x0020, "Off - On" ) | |
| 587 | PORT_DIPSETTING( 0x0010, "On - Off" ) | |
| 588 | PORT_DIPSETTING( 0x0000, "On - On" ) | |
| 579 | PORT_DIPUNUSED_DIPLOC( 0x0010, 0x0010, "SW1:5" ) /* Listed as "Unused" */ | |
| 580 | PORT_DIPUNUSED_DIPLOC( 0x0020, 0x0020, "SW1:6" ) /* Listed as "Unused" */ | |
| 589 | 581 | PORT_DIPNAME( 0x0040, 0x0000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:7") |
| 590 | 582 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) |
| 591 | 583 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| r1711 | r1712 | |
| 608 | 600 | PORT_DIPSETTING( 0x2000, DEF_STR( Normal ) ) |
| 609 | 601 | PORT_DIPSETTING( 0x0000, DEF_STR( Hard ) ) |
| 610 | 602 | /* When the players continue, only half of the time in SW2:7 is added */ |
| 611 | PORT_DIPNAME( 0x4000, 0x4000, "2 Players Time | |
| 603 | PORT_DIPNAME( 0x4000, 0x4000, "2 Players Time Per Credit" ) PORT_DIPLOCATION("SW2:7") | |
| 612 | 604 | PORT_DIPSETTING( 0x4000, "3 min" ) |
| 613 | 605 | PORT_DIPSETTING( 0x0000, "2 min" ) |
| 614 | 606 | /* The next one is reported as 'Must be off' in Super Volley '91 PCB Infos */ |
| 615 | PORT_DIPNAME( 0x8000, 0x8000, "Debug" ) PORT_DIPLOCATION("SW2:8") | |
| 607 | PORT_DIPNAME( 0x8000, 0x8000, "Debug" ) PORT_DIPLOCATION("SW2:8") | |
| 616 | 608 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) |
| 617 | 609 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 618 | 610 | INPUT_PORTS_END |
| r1711 | r1712 | |
| 633 | 625 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_START2 ) |
| 634 | 626 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 635 | 627 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 636 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_ | |
| 628 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 637 | 629 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 638 | 630 | |
| 639 | 631 | PORT_START_TAG("IN1") |
| r1711 | r1712 | |
| 647 | 639 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 648 | 640 | |
| 649 | 641 | PORT_START_TAG("DSW") |
| 650 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Coin_A ) ) | |
| 642 | /* Dips bank 1 */ | |
| 643 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:1,2") | |
| 651 | 644 | PORT_DIPSETTING( 0x0001, DEF_STR( 3C_1C ) ) |
| 652 | 645 | PORT_DIPSETTING( 0x0002, DEF_STR( 2C_1C ) ) |
| 653 | 646 | PORT_DIPSETTING( 0x0003, DEF_STR( 1C_1C ) ) |
| 654 | 647 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_2C ) ) |
| 655 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Coin_B ) ) | |
| 648 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:3,4") | |
| 656 | 649 | PORT_DIPSETTING( 0x0004, DEF_STR( 3C_1C ) ) |
| 657 | 650 | PORT_DIPSETTING( 0x0008, DEF_STR( 2C_1C ) ) |
| 658 | 651 | PORT_DIPSETTING( 0x000c, DEF_STR( 1C_1C ) ) |
| 659 | 652 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_2C ) ) |
| 660 | /* the following two select country in the Chinese version (ROMs not available) */ | |
| 661 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Unknown ) ) | |
| 662 | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) | |
| 663 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 664 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unknown ) ) | |
| 665 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) | |
| 666 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 667 | PORT_DIPNAME( 0x0040, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 653 | PORT_DIPUNUSED_DIPLOC( 0x0010, 0x0010, "SW1:5" ) | |
| 654 | PORT_DIPUNUSED_DIPLOC( 0x0020, 0x0020, "SW1:6" ) | |
| 655 | PORT_DIPNAME( 0x0040, 0x0000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:7") | |
| 668 | 656 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) |
| 669 | 657 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 670 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Unused ) ) | |
| 671 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 672 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 673 | PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Unused ) ) | |
| 674 | PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) | |
| 675 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 676 | PORT_DIPNAME( 0x0600, 0x0600, "1 Player Starting Score" ) | |
| 658 | PORT_DIPUNUSED_DIPLOC( 0x0080, 0x0080, "SW1:8" ) | |
| 659 | /* Dips bank 2 */ | |
| 660 | PORT_DIPUNUSED_DIPLOC( 0x0100, 0x0100, "SW2:1" ) | |
| 661 | PORT_DIPNAME( 0x0600, 0x0600, "1 Player Starting Score" ) PORT_DIPLOCATION("SW2:2,3") | |
| 677 | 662 | PORT_DIPSETTING( 0x0600, "12-12" ) |
| 678 | 663 | PORT_DIPSETTING( 0x0400, "11-11" ) |
| 679 | 664 | PORT_DIPSETTING( 0x0200, "11-12" ) |
| 680 | 665 | PORT_DIPSETTING( 0x0000, "10-12" ) |
| 681 | PORT_DIPNAME( 0x1800, 0x1800, "2 Players Starting Score" ) | |
| 666 | PORT_DIPNAME( 0x1800, 0x1800, "2 Players Starting Score" ) PORT_DIPLOCATION("SW2:4,5") | |
| 682 | 667 | PORT_DIPSETTING( 0x1800, "9-9" ) |
| 683 | 668 | PORT_DIPSETTING( 0x1000, "7-7" ) |
| 684 | 669 | PORT_DIPSETTING( 0x0800, "5-5" ) |
| 685 | 670 | PORT_DIPSETTING( 0x0000, "0-0" ) |
| 686 | PORT_DIPNAME( 0x2000, 0x2000, DEF_STR( Difficulty ) ) | |
| 671 | PORT_DIPNAME( 0x2000, 0x2000, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:6") | |
| 687 | 672 | PORT_DIPSETTING( 0x2000, DEF_STR( Normal ) ) |
| 688 | 673 | PORT_DIPSETTING( 0x0000, DEF_STR( Hard ) ) |
| 689 | PORT_DIPNAME( 0x4000, 0x4000, "2 Players Time | |
| 674 | PORT_DIPNAME( 0x4000, 0x4000, "2 Players Time Per Credit" ) PORT_DIPLOCATION("SW2:7") | |
| 690 | 675 | PORT_DIPSETTING( 0x4000, "3 min" ) |
| 691 | 676 | PORT_DIPSETTING( 0x0000, "2 min" ) |
| 692 | PORT_DIPNAME( 0x8000, 0x8000, "Debug" ) | |
| 677 | PORT_DIPNAME( 0x8000, 0x8000, "Debug" ) PORT_DIPLOCATION("SW2:8") | |
| 693 | 678 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) |
| 694 | 679 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 695 | 680 | INPUT_PORTS_END |
| 696 | 681 | |
| 682 | static INPUT_PORTS_START( pspikesc ) | |
| 683 | PORT_INCLUDE( pspikes ) | |
| 684 | ||
| 685 | PORT_MODIFY("DSW") | |
| 686 | PORT_DIPNAME( 0x0030, 0x0030, "Country" ) PORT_DIPLOCATION("SW1:5,6") | |
| 687 | PORT_DIPSETTING( 0x0030, "China" ) | |
| 688 | PORT_DIPSETTING( 0x0020, "Taiwan" ) | |
| 689 | PORT_DIPSETTING( 0x0010, "Hong-Kong" ) | |
| 690 | PORT_DIPSETTING( 0x0000, "China" ) | |
| 691 | INPUT_PORTS_END | |
| 692 | ||
| 693 | ||
| 697 | 694 | static INPUT_PORTS_START( karatblz ) |
| 698 | 695 | PORT_START_TAG("IN0") |
| 699 | 696 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| r1711 | r1712 | |
| 752 | 749 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(4) |
| 753 | 750 | |
| 754 | 751 | PORT_START_TAG("DSW") |
| 755 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coinage ) ) | |
| 752 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coinage ) ) | |
| 756 | 753 | PORT_DIPSETTING( 0x0004, DEF_STR( 4C_1C ) ) |
| 757 | 754 | PORT_DIPSETTING( 0x0005, DEF_STR( 3C_1C ) ) |
| 758 | 755 | PORT_DIPSETTING( 0x0006, DEF_STR( 2C_1C ) ) |
| r1711 | r1712 | |
| 761 | 758 | PORT_DIPSETTING( 0x0002, DEF_STR( 1C_3C ) ) |
| 762 | 759 | PORT_DIPSETTING( 0x0001, DEF_STR( 1C_5C ) ) |
| 763 | 760 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_6C ) ) |
| 764 | PORT_DIPNAME( 0x0008, 0x0008, "2 Coins to Start, 1 to Continue" ) PORT_DIPLOCATION("SW1:4") | |
| 765 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) | |
| 766 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 767 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:5") | |
| 761 | PORT_DIPNAME( 0x0008, 0x0008, "Continue Coin" ) PORT_DIPLOCATION("SW1:4") | |
| 762 | PORT_DIPSETTING( 0x0008, "Start 1 Coin/Continue 1 Coin" ) | |
| 763 | PORT_DIPSETTING( 0x0000, "Start 2 Coin/Continue 1 Coin" ) | |
| 764 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:5") | |
| 768 | 765 | PORT_DIPSETTING( 0x0000, "1" ) |
| 769 | 766 | PORT_DIPSETTING( 0x0010, "2" ) |
| 770 | PORT_DIPNAME( 0x0060, 0x0060, DEF_STR( Cabinet ) ) | |
| 767 | PORT_DIPNAME( 0x0060, 0x0060, DEF_STR( Cabinet ) ) | |
| 771 | 768 | PORT_DIPSETTING( 0x0060, "2 Players" ) /* 1 Unit / 2 Players */ |
| 772 | 769 | PORT_DIPSETTING( 0x0040, "3 Players" ) /* 1 Unit / 3 Players */ |
| 773 | 770 | PORT_DIPSETTING( 0x0020, "4 Players" ) /* 1 Unit / 4 Players */ |
| r1711 | r1712 | |
| 782 | 779 | /* According to Turbo Force manual, here DSW2 starts */ |
| 783 | 780 | PORT_SERVICE_DIPLOC( 0x0100, IP_ACTIVE_LOW, "SW2:1" ) |
| 784 | 781 | /* Default is DEF_STR( Hard ) */ |
| 785 | PORT_DIPNAME( 0x0600, 0x0200, "Number of Enemies" ) | |
| 782 | PORT_DIPNAME( 0x0600, 0x0200, "Number of Enemies" ) | |
| 786 | 783 | PORT_DIPSETTING( 0x0400, DEF_STR( Easy ) ) |
| 787 | 784 | PORT_DIPSETTING( 0x0600, DEF_STR( Normal ) ) |
| 788 | 785 | PORT_DIPSETTING( 0x0200, DEF_STR( Hard ) ) |
| 789 | 786 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 790 | 787 | /* Default is DEF_STR( Hard ) */ |
| 791 | PORT_DIPNAME( 0x1800, 0x0800, "Strength of Enemies" ) | |
| 788 | PORT_DIPNAME( 0x1800, 0x0800, "Strength of Enemies" ) | |
| 792 | 789 | PORT_DIPSETTING( 0x1000, DEF_STR( Easy ) ) |
| 793 | 790 | PORT_DIPSETTING( 0x1800, DEF_STR( Normal ) ) |
| 794 | 791 | PORT_DIPSETTING( 0x0800, DEF_STR( Hard ) ) |
| r1711 | r1712 | |
| 797 | 794 | PORT_DIPNAME( 0x2000, 0x2000, "Freeze" ) PORT_DIPLOCATION("SW2:6") |
| 798 | 795 | PORT_DIPSETTING( 0x2000, DEF_STR( Off ) ) |
| 799 | 796 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 800 | PORT_DIPNAME( 0x4000, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 797 | PORT_DIPNAME( 0x4000, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 801 | 798 | PORT_DIPSETTING( 0x4000, DEF_STR( Off ) ) |
| 802 | 799 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 803 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Flip_Screen ) ) | |
| 800 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Flip_Screen ) ) | |
| 804 | 801 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) |
| 805 | 802 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 806 | 803 | INPUT_PORTS_END |
| r1711 | r1712 | |
| 878 | 875 | PORT_DIPSETTING( 0x0000, "1-1C 1-2 HPs" ) |
| 879 | 876 | /* According to Spinal Breakers manual, here DSW2 starts */ |
| 880 | 877 | /* Default in US manual is DEF_STR( Hardest ) */ |
| 881 | PORT_DIPNAME( 0x0300, 0x0000, DEF_STR( Difficulty ) ) | |
| 878 | PORT_DIPNAME( 0x0300, 0x0000, DEF_STR( Difficulty ) ) | |
| 882 | 879 | PORT_DIPSETTING( 0x0300, DEF_STR( Normal ) ) |
| 883 | 880 | PORT_DIPSETTING( 0x0200, DEF_STR( Easy ) ) |
| 884 | 881 | PORT_DIPSETTING( 0x0100, DEF_STR( Hard ) ) |
| 885 | 882 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 886 | PORT_DIPNAME( 0x0400, 0x0400, "Coin Slot" ) PORT_DIPLOCATION("SW2:3") | |
| 887 | PORT_DIPSETTING( 0x0000, "Same" ) | |
| 888 | PORT_DIPSETTING( 0x0400, "Individual" ) | |
| 889 | PORT_DIPNAME( 0x0800, 0x0800, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW2:4") | |
| 883 | PORT_DIPNAME( 0x0400, 0x0400, "Credits For Extra Hitpoints" )PORT_DIPLOCATION("SW2:3") | |
| 884 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 885 | PORT_DIPSETTING( 0x0400, DEF_STR( On ) ) | |
| 886 | PORT_DIPNAME( 0x0800, 0x0800, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW2:4") | |
| 890 | 887 | PORT_DIPSETTING( 0x0800, DEF_STR( Off ) ) |
| 891 | 888 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 892 | PORT_DIPNAME( 0x1000, 0x1000, "Lever Type" ) | |
| 889 | PORT_DIPNAME( 0x1000, 0x1000, "Lever Type" ) | |
| 893 | 890 | PORT_DIPSETTING( 0x1000, "Digital" ) |
| 894 | PORT_DIPSETTING( 0x0000, "Analog" ) /* This setting causes lever error??? */ | |
| 891 | PORT_DIPSETTING( 0x0000, "Analog" ) /* This setting causes lever error??? */ | |
| 895 | 892 | PORT_SERVICE_DIPLOC( 0x2000, IP_ACTIVE_LOW, "SW2:6" ) |
| 896 | PORT_DIPNAME( 0x4000, 0x4000, "Health Pack" ) | |
| 893 | PORT_DIPNAME( 0x4000, 0x4000, "Health Pack" ) | |
| 897 | 894 | PORT_DIPSETTING( 0x4000, "32 Hitpoints" ) |
| 898 | 895 | PORT_DIPSETTING( 0x0000, "40 Hitpoints" ) |
| 899 | 896 | /* Default in US manual is "5 points" */ |
| 900 | PORT_DIPNAME( 0x8000, 0x0000, "Life Restoration" ) | |
| 897 | PORT_DIPNAME( 0x8000, 0x0000, "Life Restoration" ) | |
| 901 | 898 | PORT_DIPSETTING( 0x8000, "10 Points" ) |
| 902 | 899 | PORT_DIPSETTING( 0x0000, "5 Points" ) |
| 903 | 900 | INPUT_PORTS_END |
| 904 | 901 | |
| 905 | static INPUT_PORTS_START( spinlbrj ) | |
| 906 | PORT_INCLUDE(spinlbrk) | |
| 907 | ||
| 908 | PORT_MODIFY("DSW") | |
| 909 | PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW2:7") | |
| 910 | PORT_DIPSETTING( 0x0400, "Unlimited" ) | |
| 911 | PORT_DIPSETTING( 0x0000, "6 Times" ) | |
| 912 | INPUT_PORTS_END | |
| 913 | ||
| 914 | 902 | static INPUT_PORTS_START( spinlbru ) |
| 915 | 903 | PORT_INCLUDE(spinlbrk) |
| 916 | 904 | |
| 917 | 905 | PORT_MODIFY("DSW") |
| 918 | PORT_DIPNAME( 0x4000, 0x4000, "Health Pack" ) | |
| 906 | PORT_DIPNAME( 0x4000, 0x4000, "Health Pack" ) | |
| 919 | 907 | PORT_DIPSETTING( 0x4000, "20 Hitpoints" ) |
| 920 | 908 | PORT_DIPSETTING( 0x0000, "32 Hitpoints" ) |
| 921 | 909 | INPUT_PORTS_END |
| r1711 | r1712 | |
| 929 | 917 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 930 | 918 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 931 | 919 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 932 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 920 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) //COIN1 in service | |
| 933 | 921 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 934 | 922 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 935 | 923 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_START1 ) |
| 936 | 924 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_START2 ) |
| 937 | 925 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_SERVICE ) /* "TEST" */ |
| 938 | 926 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_TILT ) |
| 939 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_ | |
| 927 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 940 | 928 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_COIN3 ) |
| 941 | 929 | |
| 942 | 930 | PORT_START_TAG("IN1") |
| r1711 | r1712 | |
| 959 | 947 | PORT_DIPSETTING( 0x0002, DEF_STR( 1C_3C ) ) |
| 960 | 948 | PORT_DIPSETTING( 0x0001, DEF_STR( 1C_5C ) ) |
| 961 | 949 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_6C ) ) |
| 962 | PORT_DIPNAME( 0x0008, 0x0008, "2 Coins to Start, 1 to Continue" ) PORT_DIPLOCATION("SW1:4") | |
| 963 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) | |
| 964 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 965 | PORT_DIPNAME( 0x0010, 0x0000, "Coin Slot" ) PORT_DIPLOCATION("SW1:5") | |
| 950 | PORT_DIPNAME( 0x0008, 0x0008, "Continue Coin" ) PORT_DIPLOCATION("SW1:4") | |
| 951 | PORT_DIPSETTING( 0x0008, "Start 1 Coin/Continue 1 Coin" ) | |
| 952 | PORT_DIPSETTING( 0x0000, "Start 2 Coin/Continue 1 Coin" ) | |
| 953 | PORT_DIPNAME( 0x0010, 0x0000, "Coin Slot" ) PORT_DIPLOCATION("SW1:5") | |
| 966 | 954 | PORT_DIPSETTING( 0x0010, "Same" ) |
| 967 | 955 | PORT_DIPSETTING( 0x0000, "Individual" ) |
| 968 | PORT_DIPNAME( 0x0020, 0x0000, "Play Mode" ) PORT_DIPLOCATION("SW1:6") | |
| 956 | PORT_DIPNAME( 0x0020, 0x0000, "Play Mode" ) PORT_DIPLOCATION("SW1:6") | |
| 969 | 957 | PORT_DIPSETTING( 0x0020, "2 Players" ) |
| 970 | 958 | PORT_DIPSETTING( 0x0000, "3 Players" ) |
| 971 | PORT_DIPNAME( 0x0040, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 959 | PORT_DIPNAME( 0x0040, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 972 | 960 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) |
| 973 | 961 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 974 | 962 | PORT_SERVICE_DIPLOC( 0x0080, IP_ACTIVE_LOW, "SW1:8" ) |
| 975 | 963 | /* According to Turbo Force manual, here DSW2 starts */ |
| 976 | PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Flip_Screen ) ) | |
| 964 | PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Flip_Screen ) ) | |
| 977 | 965 | PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) |
| 978 | 966 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 979 | PORT_DIPNAME( 0x0e00, 0x0800, DEF_STR( Difficulty ) ) | |
| 967 | PORT_DIPNAME( 0x0e00, 0x0800, DEF_STR( Difficulty ) ) | |
| 980 | 968 | PORT_DIPSETTING( 0x0e00, "1 (Easiest)") |
| 981 | 969 | PORT_DIPSETTING( 0x0c00, "2" ) |
| 982 | 970 | PORT_DIPSETTING( 0x0a00, "3" ) |
| r1711 | r1712 | |
| 988 | 976 | PORT_DIPNAME( 0x1000, 0x1000, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:5") |
| 989 | 977 | PORT_DIPSETTING( 0x0000, "2" ) |
| 990 | 978 | PORT_DIPSETTING( 0x1000, "3" ) |
| 991 | PORT_DIPNAME( 0x2000, 0x2000, DEF_STR( Bonus_Life ) ) | |
| 979 | PORT_DIPNAME( 0x2000, 0x2000, DEF_STR( Bonus_Life ) ) | |
| 992 | 980 | PORT_DIPSETTING( 0x2000, "200000" ) |
| 993 | 981 | PORT_DIPSETTING( 0x0000, "300000" ) |
| 994 | 982 | /* The following 2 are listed in Turbo Force manual as N.C. (aka No Connection) and "Should be kept on OFF" */ |
| 995 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW2:7") | |
| 996 | PORT_DIPSETTING( 0x4000, DEF_STR( Off ) ) | |
| 997 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 998 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW2:8") | |
| 999 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) | |
| 1000 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 983 | PORT_DIPUNUSED_DIPLOC( 0x4000, 0x4000, "SW2:7" ) /* Listed as "Unused" */ | |
| 984 | PORT_DIPUNUSED_DIPLOC( 0x8000, 0x8000, "SW2:8" ) /* Listed as "Unused" */ | |
| 1001 | 985 | |
| 1002 | 986 | |
| 1003 | 987 | PORT_START_TAG("IN2") |
| r1711 | r1712 | |
| 1027 | 1011 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_START2 ) |
| 1028 | 1012 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1029 | 1013 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1030 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_ | |
| 1014 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 1031 | 1015 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1032 | 1016 | |
| 1033 | 1017 | PORT_START_TAG("IN1") |
| r1711 | r1712 | |
| 1041 | 1025 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1042 | 1026 | |
| 1043 | 1027 | PORT_START_TAG("DSW1") |
| 1044 | PORT_DIPNAME( 0x0001, 0x0001, "Coin Slot" ) | |
| 1028 | /* Dips bank 1 */ | |
| 1029 | /* "Free Play mode: Have SW1:1-8 ON." */ | |
| 1030 | PORT_DIPNAME( 0x0001, 0x0001, "Coin Slot" ) PORT_DIPLOCATION("SW1:1") | |
| 1045 | 1031 | PORT_DIPSETTING( 0x0001, "Same" ) |
| 1046 | 1032 | PORT_DIPSETTING( 0x0000, "Individual" ) |
| 1047 | PORT_DIPNAME( 0x000e, 0x000e, DEF_STR( Coin_A ) ) | |
| 1033 | PORT_DIPNAME( 0x000e, 0x000e, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:2,3,4") | |
| 1048 | 1034 | PORT_DIPSETTING( 0x000a, DEF_STR( 3C_1C ) ) |
| 1049 | 1035 | PORT_DIPSETTING( 0x000c, DEF_STR( 2C_1C ) ) |
| 1050 | 1036 | PORT_DIPSETTING( 0x000e, DEF_STR( 1C_1C ) ) |
| r1711 | r1712 | |
| 1053 | 1039 | PORT_DIPSETTING( 0x0004, DEF_STR( 1C_4C ) ) |
| 1054 | 1040 | PORT_DIPSETTING( 0x0002, DEF_STR( 1C_5C ) ) |
| 1055 | 1041 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_6C ) ) |
| 1056 | PORT_DIPNAME( 0x0070, 0x0070, DEF_STR( Coin_B ) ) | |
| 1042 | PORT_DIPNAME( 0x0070, 0x0070, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:5,6,7") | |
| 1057 | 1043 | PORT_DIPSETTING( 0x0050, DEF_STR( 3C_1C ) ) |
| 1058 | 1044 | PORT_DIPSETTING( 0x0060, DEF_STR( 2C_1C ) ) |
| 1059 | 1045 | PORT_DIPSETTING( 0x0070, DEF_STR( 1C_1C ) ) |
| r1711 | r1712 | |
| 1062 | 1048 | PORT_DIPSETTING( 0x0020, DEF_STR( 1C_4C ) ) |
| 1063 | 1049 | PORT_DIPSETTING( 0x0010, DEF_STR( 1C_5C ) ) |
| 1064 | 1050 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_6C ) ) |
| 1065 | PORT_DIPNAME( 0x0080, 0x0080, "2 Coins to Start, 1 to Continue" ) | |
| 1066 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 1067 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1068 | PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Flip_Screen ) ) | |
| 1051 | PORT_DIPNAME( 0x0080, 0x0080, "Continue Coin" ) PORT_DIPLOCATION("SW1:8") /* "When ON SW1:2-7 are disabled." */ | |
| 1052 | PORT_DIPSETTING( 0x0080, "Start 1 Coin/Continue 1 Coin" ) | |
| 1053 | PORT_DIPSETTING( 0x0000, "Start 2 Coin/Continue 1 Coin" ) | |
| 1054 | ||
| 1055 | /* Dips bank 2 */ | |
| 1056 | PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW2:1") | |
| 1069 | 1057 | PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) |
| 1070 | 1058 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1071 | PORT_DIPNAME( 0x0200, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 1059 | PORT_DIPNAME( 0x0200, 0x0000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:2") | |
| 1072 | 1060 | PORT_DIPSETTING( 0x0200, DEF_STR( Off ) ) |
| 1073 | 1061 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1074 | PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Difficulty ) ) | |
| 1062 | PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:3,4") | |
| 1075 | 1063 | PORT_DIPSETTING( 0x0800, DEF_STR( Easy ) ) |
| 1076 | 1064 | PORT_DIPSETTING( 0x0c00, DEF_STR( Normal ) ) |
| 1077 | 1065 | PORT_DIPSETTING( 0x0400, DEF_STR( Hard ) ) |
| 1078 | 1066 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 1079 | PORT_DIPNAME( 0x3000, 0x3000, DEF_STR( Lives ) ) | |
| 1067 | PORT_DIPNAME( 0x3000, 0x3000, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:5,6") | |
| 1080 | 1068 | PORT_DIPSETTING( 0x2000, "1" ) |
| 1081 | 1069 | PORT_DIPSETTING( 0x1000, "2" ) |
| 1082 | 1070 | PORT_DIPSETTING( 0x3000, "3" ) |
| 1083 | 1071 | PORT_DIPSETTING( 0x0000, "4" ) |
| 1084 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Bonus_Life ) ) | |
| 1072 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW2:7") | |
| 1085 | 1073 | PORT_DIPSETTING( 0x4000, "200000" ) |
| 1086 | 1074 | PORT_DIPSETTING( 0x0000, "300000" ) |
| 1087 | 1075 | PORT_SERVICE( 0x8000, IP_ACTIVE_LOW ) |
| 1088 | 1076 | |
| 1077 | /* Dips bank 3 (not documented) */ | |
| 1089 | 1078 | PORT_START_TAG("DSW2") |
| 1090 | PORT_DIPNAME( 0x0001, 0x0000, "Country" ) | |
| 1079 | PORT_DIPNAME( 0x0001, 0x0000, "Country" ) PORT_DIPLOCATION("SW3:1") | |
| 1091 | 1080 | PORT_DIPSETTING( 0x0000, DEF_STR( Japan ) ) |
| 1092 | 1081 | PORT_DIPSETTING( 0x0001, "Taiwan" ) |
| 1093 | 1082 | /* TODO: there are others in the table at 11910 */ |
| r1711 | r1712 | |
| 1122 | 1111 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_START2 ) |
| 1123 | 1112 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1124 | 1113 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1125 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_ | |
| 1114 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 1126 | 1115 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1127 | 1116 | |
| 1128 | 1117 | PORT_START_TAG("DSW1") |
| 1118 | /* "Free Play mode: Have SW1:1-8 ON." */ | |
| 1129 | 1119 | PORT_DIPNAME( 0x0001, 0x0001, "Coin Slot" ) PORT_DIPLOCATION("SW1:1") |
| 1130 | 1120 | PORT_DIPSETTING( 0x0001, "Same" ) |
| 1131 | 1121 | PORT_DIPSETTING( 0x0000, "Individual" ) |
| r1711 | r1712 | |
| 1147 | 1137 | PORT_DIPSETTING( 0x0020, DEF_STR( 1C_4C ) ) |
| 1148 | 1138 | PORT_DIPSETTING( 0x0010, DEF_STR( 1C_5C ) ) |
| 1149 | 1139 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_6C ) ) |
| 1150 | PORT_DIPNAME( 0x0080, 0x0080, "2 Coins to Start, 1 to Continue" ) PORT_DIPLOCATION("SW1:8") | |
| 1151 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 1152 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1140 | PORT_DIPNAME( 0x0080, 0x0080, "Continue Coin" ) PORT_DIPLOCATION("SW1:8") /* "When ON, SW1:2-7 are disabled." */ | |
| 1141 | PORT_DIPSETTING( 0x0080, "Start 1 Coin/Continue 1 Coin" ) | |
| 1142 | PORT_DIPSETTING( 0x0000, "Start 2 Coin/Continue 1 Coin" ) | |
| 1153 | 1143 | |
| 1154 | 1144 | PORT_START_TAG("DSW2") |
| 1155 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) | |
| 1145 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) | |
| 1156 | 1146 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 1157 | 1147 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1158 | PORT_DIPNAME( 0x0002, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 1148 | PORT_DIPNAME( 0x0002, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 1159 | 1149 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) |
| 1160 | 1150 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1161 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Difficulty ) ) | |
| 1151 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Difficulty ) ) | |
| 1162 | 1152 | PORT_DIPSETTING( 0x0008, DEF_STR( Easy ) ) |
| 1163 | 1153 | PORT_DIPSETTING( 0x000c, DEF_STR( Normal ) ) |
| 1164 | 1154 | PORT_DIPSETTING( 0x0004, DEF_STR( Hard ) ) |
| r1711 | r1712 | |
| 1168 | 1158 | PORT_DIPSETTING( 0x0010, "2" ) |
| 1169 | 1159 | PORT_DIPSETTING( 0x0030, "3" ) |
| 1170 | 1160 | PORT_DIPSETTING( 0x0000, "4" ) |
| 1171 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Bonus_Life ) ) | |
| 1161 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Bonus_Life ) ) | |
| 1172 | 1162 | PORT_DIPSETTING( 0x0040, "200000" ) |
| 1173 | 1163 | PORT_DIPSETTING( 0x0000, "300000" ) |
| 1174 | 1164 | PORT_SERVICE_DIPLOC( 0x0080, IP_ACTIVE_LOW, "SW2:8" ) |
| r1711 | r1712 | |
| 1177 | 1167 | PORT_START_TAG("DSW3") |
| 1178 | 1168 | PORT_DIPNAME( 0x000f, 0x0000, "Country" ) |
| 1179 | 1169 | PORT_DIPSETTING( 0x0000, "Any" ) |
| 1180 | PORT_DIPSETTING( 0x000f, | |
| 1170 | PORT_DIPSETTING( 0x000f, " | |
| 1181 | 1171 | PORT_DIPSETTING( 0x000e, "Korea" ) |
| 1182 | 1172 | PORT_DIPSETTING( 0x000d, "Hong Kong" ) |
| 1183 | 1173 | PORT_DIPSETTING( 0x000b, "Taiwan" ) |
| r1711 | r1712 | |
| 1406 | 1396 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 1407 | 1397 | MDRV_CPU_IO_MAP(turbofrc_sound_readport,turbofrc_sound_writeport) |
| 1408 | 1398 | /* IRQs are triggered by the YM2610 */ |
| 1409 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1410 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1411 | 1399 | |
| 1412 | 1400 | MDRV_MACHINE_RESET(aerofgt) |
| 1413 | 1401 | |
| 1414 | 1402 | /* video hardware */ |
| 1415 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1403 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1404 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1405 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1416 | 1406 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1417 | 1407 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 1418 | 1408 | MDRV_SCREEN_VISIBLE_AREA(0*8+4, 44*8+4-1, 0*8, 30*8-1) |
| 1409 | ||
| 1419 | 1410 | MDRV_GFXDECODE(pspikes) |
| 1420 | 1411 | MDRV_PALETTE_LENGTH(2048) |
| 1421 | 1412 | |
| r1711 | r1712 | |
| 1442 | 1433 | |
| 1443 | 1434 | /* + Z80 for sound */ |
| 1444 | 1435 | |
| 1445 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1446 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1447 | ||
| 1448 | 1436 | /* video hardware */ |
| 1449 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1437 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1438 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1439 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1450 | 1440 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1451 | 1441 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 1452 | 1442 | MDRV_SCREEN_VISIBLE_AREA(0*8+4, 44*8+4-1, 0*8, 30*8-1) |
| r1711 | r1712 | |
| 1472 | 1462 | MDRV_CPU_PROGRAM_MAP(pspikesb_map,0) |
| 1473 | 1463 | MDRV_CPU_VBLANK_INT(irq1_line_hold,1)/* all irq vectors are the same */ |
| 1474 | 1464 | |
| 1475 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1476 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1477 | ||
| 1478 | 1465 | /* video hardware */ |
| 1479 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1466 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1467 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1468 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1480 | 1469 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1481 | 1470 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 1482 | 1471 | MDRV_SCREEN_VISIBLE_AREA(0*8+4, 44*8+4-1, 0*8, 30*8-1) |
| r1711 | r1712 | |
| 1501 | 1490 | MDRV_CPU_PROGRAM_MAP(pspikesc_map,0) |
| 1502 | 1491 | MDRV_CPU_VBLANK_INT(irq1_line_hold,1)/* all irq vectors are the same */ |
| 1503 | 1492 | |
| 1504 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1505 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1506 | ||
| 1507 | 1493 | /* video hardware */ |
| 1508 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1494 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1495 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1496 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1509 | 1497 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1510 | 1498 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 1511 | 1499 | MDRV_SCREEN_VISIBLE_AREA(0*8+4, 44*8+4-1, 0*8, 30*8-1) |
| r1711 | r1712 | |
| 1535 | 1523 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 1536 | 1524 | MDRV_CPU_IO_MAP(turbofrc_sound_readport,turbofrc_sound_writeport) |
| 1537 | 1525 | /* IRQs are triggered by the YM2610 */ |
| 1538 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1539 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1540 | 1526 | |
| 1541 | 1527 | MDRV_MACHINE_RESET(aerofgt) |
| 1542 | 1528 | |
| 1543 | 1529 | /* video hardware */ |
| 1544 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1530 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1531 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1532 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1545 | 1533 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1546 | 1534 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 1547 | 1535 | MDRV_SCREEN_VISIBLE_AREA(1*8, 45*8-1, 0*8, 30*8-1) |
| r1711 | r1712 | |
| 1574 | 1562 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 1575 | 1563 | MDRV_CPU_IO_MAP(turbofrc_sound_readport,turbofrc_sound_writeport) |
| 1576 | 1564 | /* IRQs are triggered by the YM2610 */ |
| 1577 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1578 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1579 | 1565 | |
| 1580 | 1566 | MDRV_MACHINE_RESET(aerofgt) |
| 1581 | 1567 | |
| 1582 | 1568 | /* video hardware */ |
| 1583 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1569 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1570 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1571 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1584 | 1572 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1585 | 1573 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 1586 | 1574 | MDRV_SCREEN_VISIBLE_AREA(1*8, 45*8-1, 0*8, 30*8-1) |
| r1711 | r1712 | |
| 1613 | 1601 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 1614 | 1602 | MDRV_CPU_IO_MAP(turbofrc_sound_readport,turbofrc_sound_writeport) |
| 1615 | 1603 | /* IRQs are triggered by the YM2610 */ |
| 1616 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1617 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1618 | 1604 | |
| 1619 | 1605 | MDRV_MACHINE_RESET(aerofgt) |
| 1620 | 1606 | |
| 1621 | 1607 | /* video hardware */ |
| 1622 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1608 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1609 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1610 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1623 | 1611 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1624 | 1612 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 1625 | 1613 | MDRV_SCREEN_VISIBLE_AREA(0*8, 44*8-1, 0*8, 30*8-1) |
| r1711 | r1712 | |
| 1652 | 1640 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 1653 | 1641 | MDRV_CPU_IO_MAP(aerofgt_sound_readport,aerofgt_sound_writeport) |
| 1654 | 1642 | /* IRQs are triggered by the YM2610 */ |
| 1655 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1656 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(500)) | |
| 1657 | /* wrong but improves sprite-background synchronization */ | |
| 1658 | 1643 | |
| 1659 | 1644 | MDRV_MACHINE_RESET(aerofgt) |
| 1660 | 1645 | |
| 1661 | 1646 | /* video hardware */ |
| 1662 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1647 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1648 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1649 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(500)) | |
| 1650 | /* wrong but improves sprite-background synchronization */ | |
| 1663 | 1651 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1664 | 1652 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 1665 | 1653 | MDRV_SCREEN_VISIBLE_AREA(0*8+12, 40*8-1+12, 0*8, 28*8-1) |
| r1711 | r1712 | |
| 1692 | 1680 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 1693 | 1681 | MDRV_CPU_IO_MAP(aerofgt_sound_readport,aerofgt_sound_writeport) |
| 1694 | 1682 | /* IRQs are triggered by the YM2610 */ |
| 1695 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1696 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(400)) | |
| 1697 | /* wrong but improves sprite-background synchronization */ | |
| 1698 | 1683 | |
| 1699 | 1684 | MDRV_MACHINE_RESET(aerofgt) |
| 1700 | 1685 | |
| 1701 | 1686 | /* video hardware */ |
| 1702 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1687 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1688 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1689 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(400)) | |
| 1690 | /* wrong but improves sprite-background synchronization */ | |
| 1703 | 1691 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1704 | 1692 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 1705 | 1693 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 28*8-1) |
| r1711 | r1712 | |
| 1730 | 1718 | MDRV_CPU_ADD(Z80,8000000/2) /* 4 MHz ??? */ |
| 1731 | 1719 | MDRV_CPU_PROGRAM_MAP(aerfboot_snd_map,0) |
| 1732 | 1720 | |
| 1721 | /* video hardware */ | |
| 1722 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1733 | 1723 | MDRV_SCREEN_REFRESH_RATE(60) |
| 1734 | 1724 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(500)) |
| 1735 | 1725 | /* wrong but improves sprite-background synchronization */ |
| 1736 | ||
| 1737 | /* video hardware */ | |
| 1738 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1739 | 1726 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1740 | 1727 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 1741 | 1728 | MDRV_SCREEN_VISIBLE_AREA(0*8+12, 40*8-1+12, 0*8, 28*8-1) |
| r1711 | r1712 | |
| 1763 | 1750 | MDRV_CPU_ADD(Z80,8000000/2) /* 4 MHz ??? */ |
| 1764 | 1751 | MDRV_CPU_PROGRAM_MAP(wbbc97_sound_map,0) |
| 1765 | 1752 | /* IRQs are triggered by the YM3812 */ |
| 1766 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1767 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1768 | 1753 | |
| 1769 | 1754 | /* video hardware */ |
| 1770 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1755 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1756 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1757 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1771 | 1758 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) |
| 1772 | 1759 | MDRV_SCREEN_SIZE(64*8, 64*8) |
| 1773 | 1760 | MDRV_SCREEN_VISIBLE_AREA(0*8+14, 44*8-1+4, 0*8, 30*8-1) |
| r1711 | r1712 | |
| 2472 | 2459 | ROM_END |
| 2473 | 2460 | |
| 2474 | 2461 | |
| 2475 | GAME( 1990, spinlbrk, 0, spinlbrk, spinlbrk, 0, ROT0, "V-System Co.", "Spinal Breakers (World)", GAME_NO_COCKTAIL ) | |
| 2476 | GAME( 1990, spinlbru, spinlbrk, spinlbrk, spinlbru, 0, ROT0, "V-System Co.", "Spinal Breakers (US)", GAME_NO_COCKTAIL ) | |
| 2477 | GAME( 1990, spinlbrj, spinlbrk, spinlbrk, spinlbrj, 0, ROT0, "V-System Co.", "Spinal Breakers (Japan)", GAME_NO_COCKTAIL ) | |
| 2462 | GAME( 1990, spinlbrk, 0, spinlbrk, spinlbrk, 0, ROT0, "V-System Co.", "Spinal Breakers (World)", GAME_NO_COCKTAIL ) | |
| 2463 | GAME( 1990, spinlbru, spinlbrk, spinlbrk, spinlbru, 0, ROT0, "V-System Co.", "Spinal Breakers (US)", GAME_NO_COCKTAIL ) | |
| 2464 | GAME( 1990, spinlbrj, spinlbrk, spinlbrk, spinlbrk, 0, ROT0, "V-System Co.", "Spinal Breakers (Japan)", GAME_NO_COCKTAIL ) | |
| 2478 | 2465 | GAME( 1991, pspikes, 0, pspikes, pspikes, 0, ROT0, "Video System Co.", "Power Spikes (World)", GAME_NO_COCKTAIL ) |
| 2479 | 2466 | GAME( 1991, pspikesk, pspikes, pspikes, pspikes, 0, ROT0, "Video System Co.", "Power Spikes (Korea)", GAME_NO_COCKTAIL ) |
| 2480 | 2467 | GAME( 1991, svolly91, pspikes, pspikes, pspikes, 0, ROT0, "Video System Co.", "Super Volley '91 (Japan)", GAME_NO_COCKTAIL ) |
| 2481 | 2468 | GAME( 1991, pspikesb, pspikes, pspikesb, pspikesb, 0, ROT0, "bootleg", "Power Spikes (bootleg)", GAME_NO_COCKTAIL ) |
| 2482 | GAME( 1991, pallavol, pspikes, pallavol, pspikes, 0, ROT0, "bootleg", "Pallavolo (Italian Power Spikes bootleg)", GAME_NOT_WORKING | GAME_NO_SOUND | GAME_NO_COCKTAIL ) | |
| 2483 | GAME( 1991, pspikesc, pspikes, pspikesc, pspikes, 0, ROT0, "bootleg", "Power Spikes (China)", GAME_NO_COCKTAIL | GAME_IMPERFECT_SOUND ) | |
| 2469 | GAME( 1991, pallavol, pspikes, pallavol, pspikes, 0, ROT0, "bootleg", "Pallavolo (Italian Power Spikes bootleg)", GAME_NOT_WORKING | GAME_NO_SOUND | GAME_NO_COCKTAIL ) | |
| 2470 | GAME( 1991, pspikesc, pspikes, pspikesc, pspikesc, 0, ROT0, "bootleg", "Power Spikes (China)", GAME_NO_COCKTAIL | GAME_IMPERFECT_SOUND ) | |
| 2484 | 2471 | GAME( 1991, karatblz, 0, karatblz, karatblz, 0, ROT0, "Video System Co.", "Karate Blazers (World?)", GAME_NO_COCKTAIL ) |
| 2485 | 2472 | GAME( 1991, karatblu, karatblz, karatblz, karatblz, 0, ROT0, "Video System Co.", "Karate Blazers (US)", GAME_NO_COCKTAIL ) |
| 2486 | 2473 | GAME( 1991, karatblj, karatblz, karatblz, karatblz, 0, ROT0, "Video System Co.", "Karate Blazers (Japan)", GAME_NO_COCKTAIL ) |
| r1711 | r1712 | |
|---|---|---|
| 225 | 225 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 226 | 226 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 227 | 227 | |
| 228 | /* video hardware */ | |
| 229 | MDRV_SCREEN_ADD("main", RASTER) | |
| 228 | 230 | MDRV_SCREEN_REFRESH_RATE(60) |
| 229 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 230 | ||
| 231 | /* video hardware */ | |
| 232 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 231 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 233 | 232 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 234 | 233 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 235 | 234 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 235 | ||
| 236 | 236 | MDRV_GFXDECODE(rocnrope) |
| 237 | 237 | MDRV_PALETTE_LENGTH(16*16+16*16) |
| 238 | 238 |
| r1711 | r1712 | |
|---|---|---|
| 368 | 368 | MDRV_CPU_PROGRAM_MAP(cpu_map, 0) |
| 369 | 369 | |
| 370 | 370 | MDRV_MACHINE_RESET(fgoal) |
| 371 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 372 | 371 | |
| 373 | 372 | /* video hardware */ |
| 374 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 373 | MDRV_SCREEN_ADD("main", RASTER) | |
| 374 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 375 | 375 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 376 | 376 | MDRV_SCREEN_SIZE(256, 263) |
| 377 | 377 | MDRV_SCREEN_VISIBLE_AREA(0, 255, 16, 255) |
| 378 | ||
| 378 | 379 | MDRV_GFXDECODE(fgoal) |
| 379 | 380 | MDRV_PALETTE_LENGTH(128 + 16 + 1) |
| 380 | 381 |
| r1711 | r1712 | |
|---|---|---|
| 544 | 544 | |
| 545 | 545 | static VIDEO_START( coinmstr ) |
| 546 | 546 | { |
| 547 | mc6845 = mc6845 | |
| 547 | mc6845 = devtag_get_token(machine, MC6845, "crtc" | |
| 548 | 548 | bg_tilemap = tilemap_create(get_bg_tile_info,tilemap_scan_rows, 8, 8, 46, 64); |
| 549 | 549 | } |
| 550 | 550 | |
| r1711 | r1712 | |
| 639 | 639 | MDRV_CPU_PROGRAM_MAP(coinmstr_map,0) |
| 640 | 640 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 641 | 641 | |
| 642 | /* video hardware */ | |
| 643 | MDRV_SCREEN_ADD("main", RASTER) | |
| 642 | 644 | MDRV_SCREEN_REFRESH_RATE(60) |
| 643 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 644 | ||
| 645 | /* video hardware */ | |
| 646 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 645 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 647 | 646 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 648 | 647 | MDRV_SCREEN_SIZE(64*8, 64*8) |
| 649 | 648 | MDRV_SCREEN_VISIBLE_AREA(0*8, 46*8-1, 0*8, 32*8-1) |
| 649 | ||
| 650 | 650 | MDRV_GFXDECODE(coinmstr) |
| 651 | 651 | MDRV_PALETTE_LENGTH(256) |
| 652 | 652 | |
| 653 | 653 | MDRV_VIDEO_START(coinmstr) |
| 654 | 654 | MDRV_VIDEO_UPDATE(coinmstr) |
| 655 | 655 | |
| 656 | MDRV_DEVICE_ADD("crtc", MC6845) | |
| 657 | ||
| 656 | 658 | /* sound hardware */ |
| 657 | 659 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 658 | 660 |
| r1711 | r1712 | |
|---|---|---|
| 640 | 640 | MDRV_CPU_PROGRAM_MAP(docastle_map3, 0) |
| 641 | 641 | MDRV_CPU_VBLANK_INT(nmi_line_pulse, 1) |
| 642 | 642 | |
| 643 | // video hardware | |
| 644 | ||
| 645 | MDRV_SCREEN_ADD("main", RASTER) | |
| 643 | 646 | MDRV_SCREEN_REFRESH_RATE(60) |
| 644 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 645 | ||
| 646 | // video hardware | |
| 647 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 647 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 648 | 648 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 649 | 649 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 650 | 650 | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 4*8, 28*8-1) |
| 651 | ||
| 651 | 652 | MDRV_GFXDECODE(docastle) |
| 652 | 653 | MDRV_PALETTE_LENGTH(512) |
| 653 | 654 |
| r1711 | r1712 | |
|---|---|---|
| 321 | 321 | |
| 322 | 322 | /* CALC01 MCU @ 16Mhz (unknown type, simulated) */ |
| 323 | 323 | |
| 324 | /* video hardware */ | |
| 325 | MDRV_SCREEN_ADD("main", RASTER) | |
| 324 | 326 | MDRV_SCREEN_REFRESH_RATE(60) |
| 325 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 326 | ||
| 327 | /* video hardware */ | |
| 328 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 327 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 329 | 328 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 330 | 329 | MDRV_SCREEN_SIZE(256, 256) |
| 331 | 330 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0, 256-32-1) |
| 331 | ||
| 332 | 332 | MDRV_GFXDECODE(1x4bit_1x4bit) |
| 333 | 333 | MDRV_PALETTE_LENGTH(2048 + 32768) |
| 334 | 334 | MDRV_MACHINE_RESET( galsnew ) |
| r1711 | r1712 | |
| 338 | 338 | MDRV_PALETTE_INIT(berlwall) |
| 339 | 339 | |
| 340 | 340 | /* arm watchdog */ |
| 341 | MDRV_WATCHDOG_ | |
| 341 | MDRV_WATCHDOG_TIME | |
| 342 | 342 | |
| 343 | 343 | /* sound hardware */ |
| 344 | 344 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| r1711 | r1712 | |
|---|---|---|
| 279 | 279 | MDRV_CPU_PROGRAM_MAP(sound_map, 0) |
| 280 | 280 | MDRV_CPU_PERIODIC_INT(irq5_line_hold, 1) // ??? |
| 281 | 281 | |
| 282 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 283 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 284 | ||
| 285 | 282 | MDRV_INTERLEAVE(200) |
| 286 | 283 | |
| 287 | 284 | MDRV_NVRAM_HANDLER(ultrsprt) |
| 288 | 285 | MDRV_MACHINE_RESET(ultrsprt) |
| 289 | 286 | |
| 290 | 287 | /* video hardware */ |
| 291 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 288 | MDRV_SCREEN_ADD("main", RASTER) | |
| 289 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 290 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 292 | 291 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) |
| 293 | 292 | MDRV_SCREEN_SIZE(512, 400) |
| 294 | 293 | MDRV_SCREEN_VISIBLE_AREA(0, 511, 0, 399) |
| 294 | ||
| 295 | 295 | MDRV_PALETTE_LENGTH(8192) |
| 296 | 296 | |
| 297 | 297 | MDRV_VIDEO_START(ultrsprt) |
| r1711 | r1712 | |
|---|---|---|
| 382 | 382 | MDRV_CPU_IO_MAP(sound_portmap,0) |
| 383 | 383 | MDRV_CPU_PERIODIC_INT(irq0_line_hold, 244) |
| 384 | 384 | |
| 385 | MDRV_GFXDECODE(mainsnk) | |
| 386 | ||
| 387 | MDRV_SCREEN_ADD("main", RASTER) | |
| 385 | 388 | MDRV_SCREEN_REFRESH_RATE(60.606060) |
| 386 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 387 | MDRV_GFXDECODE(mainsnk) | |
| 388 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 389 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 389 | 390 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 390 | 391 | MDRV_SCREEN_SIZE(34*8, 32*8) |
| 391 | 392 | MDRV_SCREEN_VISIBLE_AREA(0*8, 34*8-1, 0*8, 27*8-1) |
| 393 | ||
| 392 | 394 | MDRV_PALETTE_LENGTH((16+2)*16) |
| 393 | 395 | |
| 394 | 396 | MDRV_VIDEO_START(mainsnk) |
| r1711 | r1712 | |
| 412 | 414 | /* basic machine hardware */ |
| 413 | 415 | MDRV_IMPORT_FROM(mainsnk) |
| 414 | 416 | |
| 417 | MDRV_SCREEN_MODIFY("main") | |
| 415 | 418 | MDRV_SCREEN_VISIBLE_AREA(2*8, 32*8-1, 0*8, 27*8-1) |
| 416 | 419 | |
| 417 | 420 | MDRV_VIDEO_UPDATE(canvas) |
| r1711 | r1712 | |
|---|---|---|
| 248 | 248 | MDRV_CPU_PROGRAM_MAP(readmem, writemem) |
| 249 | 249 | MDRV_CPU_VBLANK_INT(mystston_interrupt, 272) |
| 250 | 250 | |
| 251 | /* video hardware */ | |
| 252 | MDRV_SCREEN_ADD("main", RASTER) | |
| 251 | 253 | MDRV_SCREEN_REFRESH_RATE(((12000000.0 / 256.0) / 3.0) / 272.0) |
| 252 | 254 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) |
| 253 | ||
| 254 | /* video hardware */ | |
| 255 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 256 | 255 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 257 | 256 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 258 | 257 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 258 | ||
| 259 | 259 | MDRV_GFXDECODE(mystston) |
| 260 | 260 | MDRV_PALETTE_LENGTH(24+32) |
| 261 | 261 |
| r1711 | r1712 | |
|---|---|---|
| 1017 | 1017 | MDRV_NVRAM_HANDLER(midyunit) |
| 1018 | 1018 | |
| 1019 | 1019 | /* video hardware */ |
| 1020 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 1020 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 1021 | 1021 | MDRV_PALETTE_LENGTH(8192) |
| 1022 | 1022 | |
| 1023 | MDRV_SCREEN_ADD("main", | |
| 1023 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1024 | 1024 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1025 | 1025 | MDRV_SCREEN_RAW_PARAMS(MEDRES_PIXEL_CLOCK*2, 673, 0, 511, 433, 0, 399) |
| 1026 | 1026 | |
| r1711 | r1712 | |
| 1050 | 1050 | MDRV_NVRAM_HANDLER(midyunit) |
| 1051 | 1051 | |
| 1052 | 1052 | /* video hardware */ |
| 1053 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 1053 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 1054 | 1054 | MDRV_PALETTE_LENGTH(256) |
| 1055 | 1055 | |
| 1056 | MDRV_SCREEN_ADD("main", | |
| 1056 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1057 | 1057 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1058 | 1058 | MDRV_SCREEN_RAW_PARAMS(STDRES_PIXEL_CLOCK*2, 505, 0, 399, 289, 0, 253) |
| 1059 | 1059 |
| r1711 | r1712 | |
|---|---|---|
| 303 | 303 | MDRV_CPU_PROGRAM_MAP(hitme_map,0) |
| 304 | 304 | MDRV_CPU_IO_MAP(hitme_portmap,0) |
| 305 | 305 | |
| 306 | /* video hardware */ | |
| 307 | MDRV_SCREEN_ADD("main", RASTER) | |
| 306 | 308 | MDRV_SCREEN_REFRESH_RATE(60) |
| 307 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 308 | ||
| 309 | /* video hardware */ | |
| 310 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 309 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 311 | 310 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 312 | 311 | MDRV_SCREEN_SIZE(40*8, 19*10) |
| 313 | 312 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 19*10-1) |
| 313 | ||
| 314 | 314 | MDRV_GFXDECODE(hitme) |
| 315 | 315 | MDRV_PALETTE_LENGTH(2) |
| 316 | 316 | |
| r1711 | r1712 | |
| 338 | 338 | MDRV_IMPORT_FROM(hitme) |
| 339 | 339 | |
| 340 | 340 | /* video hardware */ |
| 341 | MDRV_SCREEN_MODIFY("main") | |
| 341 | 342 | MDRV_SCREEN_SIZE(32*8, 24*8) |
| 342 | 343 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 24*8-1) |
| 344 | ||
| 343 | 345 | MDRV_GFXDECODE(barricad) |
| 344 | 346 | |
| 345 | 347 | MDRV_VIDEO_START(barricad) |
| r1711 | r1712 | |
|---|---|---|
| 392 | 392 | MDRV_WATCHDOG_VBLANK_INIT(8) |
| 393 | 393 | |
| 394 | 394 | /* video hardware */ |
| 395 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 395 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 396 | 396 | MDRV_GFXDECODE(rampart) |
| 397 | 397 | MDRV_PALETTE_LENGTH(512) |
| 398 | 398 | |
| 399 | MDRV_SCREEN_ADD("main", | |
| 399 | MDRV_SCREEN_ADD("main", RASTER) | |
| 400 | 400 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 401 | 401 | /* note: these parameters are from published specs, not derived */ |
| 402 | 402 | /* the board uses an SOS-2 chip to generate video signals */ |
| r1711 | r1712 | |
|---|---|---|
| 672 | 672 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 673 | 673 | MDRV_CPU_IO_MAP(sound_readport,sound_writeport) |
| 674 | 674 | |
| 675 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 676 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 677 | ||
| 678 | 675 | MDRV_MACHINE_RESET(senjyo) |
| 679 | 676 | |
| 680 | 677 | /* video hardware */ |
| 681 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 678 | MDRV_SCREEN_ADD("main", RASTER) | |
| 679 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 680 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 682 | 681 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 683 | 682 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 684 | 683 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 684 | ||
| 685 | 685 | MDRV_GFXDECODE(senjyo) |
| 686 | 686 | MDRV_PALETTE_LENGTH(512+2) /* 512 real palette + 2 for the radar */ |
| 687 | 687 |
| r1711 | r1712 | |
|---|---|---|
| 264 | 264 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) /* vblank */ |
| 265 | 265 | MDRV_CPU_PERIODIC_INT(yiear_nmi_interrupt,500) /* music tempo (correct frequency unknown) */ |
| 266 | 266 | |
| 267 | /* video hardware */ | |
| 268 | MDRV_SCREEN_ADD("main", RASTER) | |
| 267 | 269 | MDRV_SCREEN_REFRESH_RATE(60) |
| 268 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 269 | ||
| 270 | /* video hardware */ | |
| 271 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 270 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 272 | 271 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 273 | 272 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 274 | 273 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 274 | ||
| 275 | 275 | MDRV_GFXDECODE(yiear) |
| 276 | 276 | MDRV_PALETTE_LENGTH(32) |
| 277 | 277 |
| r1711 | r1712 | |
|---|---|---|
| 180 | 180 | |
| 181 | 181 | static VIDEO_START(murogem) |
| 182 | 182 | { |
| 183 | mc6845 = mc6845 | |
| 183 | mc6845 = devtag_get_token(machine, MC6845, "crtc" | |
| 184 | 184 | } |
| 185 | 185 | |
| 186 | 186 | static VIDEO_UPDATE(murogem) |
| r1711 | r1712 | |
| 215 | 215 | MDRV_CPU_PROGRAM_MAP(murogem_map,0) |
| 216 | 216 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 217 | 217 | |
| 218 | /* video hardware */ | |
| 219 | MDRV_SCREEN_ADD("main", RASTER) | |
| 218 | 220 | MDRV_SCREEN_REFRESH_RATE(60) |
| 219 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 220 | ||
| 221 | /* video hardware */ | |
| 222 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 221 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 223 | 222 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 224 | 223 | MDRV_SCREEN_SIZE((39+1)*8, (38+1)*8) // Taken from MC6845 init, registers 00 & 04. Normally programmed with (value-1). |
| 225 | 224 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 32*8-1) // Taken from MC6845 init, registers 01 & 06. |
| 225 | ||
| 226 | 226 | MDRV_GFXDECODE(murogem) |
| 227 | 227 | MDRV_PALETTE_LENGTH(0x100) |
| 228 | 228 | |
| 229 | 229 | MDRV_PALETTE_INIT(murogem) |
| 230 | 230 | MDRV_VIDEO_START(murogem) |
| 231 | 231 | MDRV_VIDEO_UPDATE(murogem) |
| 232 | ||
| 233 | MDRV_DEVICE_ADD("crtc", MC6845) | |
| 232 | 234 | MACHINE_DRIVER_END |
| 233 | 235 | |
| 234 | 236 |
| r1711 | r1712 | |
|---|---|---|
| 1565 | 1565 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 1566 | 1566 | MDRV_CPU_IO_MAP(sound_readport,sound_writeport) |
| 1567 | 1567 | |
| 1568 | /* video hardware */ | |
| 1569 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1568 | 1570 | MDRV_SCREEN_REFRESH_RATE(57.5) /* ~57.5 - confirmed */ |
| 1569 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1570 | ||
| 1571 | /* video hardware */ | |
| 1572 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1571 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1573 | 1572 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1574 | 1573 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 1575 | 1574 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 1575 | ||
| 1576 | 1576 | MDRV_GFXDECODE(snowbros) |
| 1577 | 1577 | MDRV_PALETTE_LENGTH(256) |
| 1578 | 1578 | |
| r1711 | r1712 | |
| 1663 | 1663 | MDRV_CPU_PROGRAM_MAP(honeydol_sound_readmem,honeydol_sound_writemem) |
| 1664 | 1664 | MDRV_CPU_IO_MAP(honeydol_sound_readport,honeydol_sound_writeport) |
| 1665 | 1665 | |
| 1666 | /* video hardware */ | |
| 1667 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1666 | 1668 | MDRV_SCREEN_REFRESH_RATE(57.5) |
| 1667 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 1668 | ||
| 1669 | /* video hardware */ | |
| 1670 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1669 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 1671 | 1670 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1672 | 1671 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 1673 | 1672 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 1673 | ||
| 1674 | 1674 | MDRV_GFXDECODE(honeydol) |
| 1675 | 1675 | MDRV_PALETTE_LENGTH(0x800/2) |
| 1676 | 1676 | |
| r1711 | r1712 | |
| 1704 | 1704 | MDRV_CPU_IO_MAP(twinadv_sound_readport,twinadv_sound_writeport) |
| 1705 | 1705 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 1706 | 1706 | |
| 1707 | /* video hardware */ | |
| 1708 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1707 | 1709 | MDRV_SCREEN_REFRESH_RATE(57.5) |
| 1708 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 1709 | ||
| 1710 | /* video hardware */ | |
| 1711 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1710 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 1712 | 1711 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1713 | 1712 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 1714 | 1713 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 1714 | ||
| 1715 | 1715 | MDRV_GFXDECODE(twinadv) |
| 1716 | 1716 | MDRV_PALETTE_LENGTH(0x100) |
| 1717 | 1717 | |
| r1711 | r1712 | |
| 1779 | 1779 | MDRV_CPU_PROGRAM_MAP(readmem3,writemem3) |
| 1780 | 1780 | MDRV_CPU_VBLANK_INT(snowbro3_interrupt,3) |
| 1781 | 1781 | |
| 1782 | /* video hardware */ | |
| 1783 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1782 | 1784 | MDRV_SCREEN_REFRESH_RATE(60) |
| 1783 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1784 | ||
| 1785 | /* video hardware */ | |
| 1786 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1785 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1787 | 1786 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1788 | 1787 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 1789 | 1788 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 1789 | ||
| 1790 | 1790 | MDRV_GFXDECODE(sb3) |
| 1791 | 1791 | MDRV_PALETTE_LENGTH(512) |
| 1792 | 1792 |
| r1711 | r1712 | |
|---|---|---|
| 524 | 524 | MDRV_CPU_ADD_TAG("gamma", M6502, MHAVOC_CLOCK_1_25M) /* 1.25 MHz */ |
| 525 | 525 | MDRV_CPU_PROGRAM_MAP(gamma_map, 0) |
| 526 | 526 | |
| 527 | MDRV_SCREEN_REFRESH_RATE(50) | |
| 528 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 529 | ||
| 530 | 527 | MDRV_MACHINE_RESET(mhavoc) |
| 531 | 528 | MDRV_NVRAM_HANDLER(generic_1fill) |
| 532 | 529 | |
| 533 | 530 | /* video hardware */ |
| 534 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_VECTOR ) | |
| 535 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) | |
| 531 | MDRV_SCREEN_ADD("main", VECTOR) | |
| 532 | MDRV_SCREEN_REFRESH_RATE(50) | |
| 536 | 533 | MDRV_SCREEN_SIZE(400, 300) |
| 537 | 534 | MDRV_SCREEN_VISIBLE_AREA(0, 300, 0, 260) |
| 535 | ||
| 538 | 536 | MDRV_PALETTE_LENGTH(32768) |
| 539 | 537 | |
| 540 | 538 | MDRV_VIDEO_START(avg_mhavoc) |
| r1711 | r1712 | |
| 574 | 572 | MDRV_CPU_PROGRAM_MAP(alphaone_map, 0) |
| 575 | 573 | MDRV_CPU_REMOVE("gamma") |
| 576 | 574 | |
| 575 | MDRV_SCREEN_MODIFY("main") | |
| 577 | 576 | MDRV_SCREEN_VISIBLE_AREA(0, 580, 0, 500) |
| 578 | 577 | |
| 579 | 578 | /* sound hardware */ |
| r1711 | r1712 | |
|---|---|---|
| 579 | 579 | MDRV_CPU_PROGRAM_MAP(bzone_map,0) |
| 580 | 580 | MDRV_CPU_PERIODIC_INT(bzone_interrupt, (double)MASTER_CLOCK / 4096 / 12) |
| 581 | 581 | |
| 582 | MDRV_SCREEN_REFRESH_RATE(40) | |
| 583 | MDRV_SCREEN_VBLANK_TIME(0) | |
| 584 | ||
| 585 | 582 | MDRV_MACHINE_START(bzone) |
| 586 | 583 | |
| 587 | 584 | /* video hardware */ |
| 588 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_VECTOR ) | |
| 589 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) | |
| 585 | MDRV_SCREEN_ADD("main", VECTOR) | |
| 586 | MDRV_SCREEN_REFRESH_RATE(40) | |
| 590 | 587 | MDRV_SCREEN_SIZE(400, 300) |
| 591 | 588 | MDRV_SCREEN_VISIBLE_AREA(0, 580, 0, 400) |
| 589 | ||
| 592 | 590 | MDRV_PALETTE_LENGTH(32768) |
| 593 | 591 | |
| 594 | 592 | MDRV_VIDEO_START(avg_bzone) |
| r1711 | r1712 | |
| 629 | 627 | |
| 630 | 628 | MDRV_MACHINE_START(redbaron) |
| 631 | 629 | |
| 632 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 633 | 630 | MDRV_NVRAM_HANDLER(atari_vg) |
| 634 | 631 | |
| 635 | 632 | /* video hardware */ |
| 633 | MDRV_SCREEN_MODIFY("main") | |
| 634 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 636 | 635 | MDRV_SCREEN_VISIBLE_AREA(0, 520, 0, 400) |
| 637 | 636 | |
| 638 | 637 | MDRV_VIDEO_START(avg_bzone) |
| r1711 | r1712 | |
|---|---|---|
| 1140 | 1140 | MDRV_CPU_PROGRAM_MAP(sound_map,0) |
| 1141 | 1141 | MDRV_CPU_IO_MAP(sound_portmap,0) |
| 1142 | 1142 | |
| 1143 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1144 | ||
| 1145 | 1143 | MDRV_MACHINE_RESET(xboard) |
| 1146 | 1144 | MDRV_NVRAM_HANDLER(xboard) |
| 1147 | 1145 | MDRV_INTERLEAVE(100) |
| 1148 | 1146 | |
| 1149 | 1147 | /* video hardware */ |
| 1150 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1151 | 1148 | MDRV_GFXDECODE(segaxbd) |
| 1152 | 1149 | MDRV_PALETTE_LENGTH(8192*3) |
| 1153 | 1150 | |
| 1154 | MDRV_SCREEN_ADD("main", | |
| 1151 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1155 | 1152 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1156 | 1153 | MDRV_SCREEN_RAW_PARAMS(MASTER_CLOCK/8, 400, 0, 320, 262, 0, 224) |
| 1157 | 1154 |
| r1711 | r1712 | |
|---|---|---|
| 4147 | 4147 | MDRV_CPU_PROGRAM_MAP(sound_readmem, sound_writemem) |
| 4148 | 4148 | MDRV_CPU_IO_MAP(sound_readport, sound_writeport) |
| 4149 | 4149 | |
| 4150 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 4151 | ||
| 4152 | 4150 | MDRV_MACHINE_RESET(sailorws) |
| 4153 | 4151 | |
| 4154 | 4152 | /* video hardware */ |
| 4155 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_AFTER_VBLANK) | |
| 4153 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_AFTER_VBLANK) | |
| 4154 | ||
| 4155 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4156 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 4156 | 4157 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 4157 | 4158 | MDRV_SCREEN_SIZE(1024, 512) /* no way this is correct */ |
| 4158 | 4159 | MDRV_SCREEN_VISIBLE_AREA(0, 640-1, 0, 240-1) |
| 4160 | ||
| 4159 | 4161 | MDRV_PALETTE_LENGTH(256) |
| 4160 | 4162 | |
| 4161 | 4163 | MDRV_VIDEO_START(nbmj9195_2layer) |
| r1711 | r1712 | |
|---|---|---|
| 52 | 52 | #include "cpu/m6809/m6809.h" |
| 53 | 53 | #include "sound/ay8910.h" |
| 54 | 54 | |
| 55 | extern WRITE8_HANDLER( sonson_videoram_w ); | |
| 56 | extern WRITE8_HANDLER( sonson_colorram_w ); | |
| 57 | extern WRITE8_HANDLER( sonson_scroll_w ); | |
| 58 | extern WRITE8_HANDLER( sonson_flipscreen_w ); | |
| 59 | 55 | |
| 60 | extern PALETTE_INIT( sonson ); | |
| 61 | extern VIDEO_START( sonson ); | |
| 62 | extern VIDEO_UPDATE( sonson ); | |
| 56 | extern UINT8 *sonson_scroll; | |
| 63 | 57 | |
| 58 | WRITE8_HANDLER( sonson_videoram_w ); | |
| 59 | WRITE8_HANDLER( sonson_colorram_w ); | |
| 60 | WRITE8_HANDLER( sonson_scroll_w ); | |
| 61 | WRITE8_HANDLER( sonson_flipscreen_w ); | |
| 62 | ||
| 63 | PALETTE_INIT( sonson ); | |
| 64 | VIDEO_START( sonson ); | |
| 65 | VIDEO_UPDATE( sonson ); | |
| 66 | ||
| 64 | 67 | static WRITE8_HANDLER( sonson_sh_irqtrigger_w ) |
| 65 | 68 | { |
| 66 | 69 | static int last; |
| r1711 | r1712 | |
| 91 | 94 | AM_RANGE(0x1000, 0x13ff) AM_WRITE(sonson_videoram_w) AM_BASE(&videoram) AM_SIZE(&videoram_size) |
| 92 | 95 | AM_RANGE(0x1400, 0x17ff) AM_WRITE(sonson_colorram_w) AM_BASE(&colorram) |
| 93 | 96 | AM_RANGE(0x2020, 0x207f) AM_WRITE(MWA8_RAM) AM_BASE(&spriteram) AM_SIZE(&spriteram_size) |
| 94 | AM_RANGE(0x3000, 0x3000) AM_WRITE(sonson_scroll | |
| 97 | AM_RANGE(0x3000, 0x3000) AM_WRITE(MWA8_RAM) AM_BASE(&sonson_scroll | |
| 95 | 98 | AM_RANGE(0x3008, 0x3008) AM_WRITE(MWA8_NOP) |
| 96 | 99 | AM_RANGE(0x3010, 0x3010) AM_WRITE(soundlatch_w) |
| 97 | 100 | AM_RANGE(0x3018, 0x3018) AM_WRITE(sonson_flipscreen_w) |
| r1711 | r1712 | |
| 244 | 247 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 245 | 248 | MDRV_CPU_VBLANK_INT(irq0_line_hold,4) /* FIRQs are triggered by the main CPU */ |
| 246 | 249 | |
| 247 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 248 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 249 | 250 | |
| 250 | 251 | /* video hardware */ |
| 251 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 252 | MDRV_SCREEN_ADD("main", RASTER) | |
| 253 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 254 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 252 | 255 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 253 | 256 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 254 | 257 | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 1*8, 31*8-1) |
| 258 | ||
| 255 | 259 | MDRV_GFXDECODE(sonson) |
| 256 | MDRV_PALETTE_LENGTH(32) | |
| 257 | MDRV_COLORTABLE_LENGTH(64*4+32*8) | |
| 260 | MDRV_PALETTE_LENGTH(64*4+32*8) | |
| 258 | 261 | |
| 259 | 262 | MDRV_PALETTE_INIT(sonson) |
| 260 | 263 | MDRV_VIDEO_START(sonson) |
| r1711 | r1712 | |
|---|---|---|
| 738 | 738 | MDRV_CPU_PROGRAM_MAP(sound_map,0) |
| 739 | 739 | MDRV_CPU_IO_MAP(0,0) |
| 740 | 740 | |
| 741 | /* video hardware */ | |
| 742 | MDRV_SCREEN_ADD("main", RASTER) | |
| 741 | 743 | MDRV_SCREEN_REFRESH_RATE(58) |
| 742 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 743 | ||
| 744 | /* video hardware */ | |
| 745 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 744 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 746 | 745 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 747 | 746 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 748 | 747 | MDRV_SCREEN_VISIBLE_AREA(1*8, 39*8-1, 1*8, 31*8-1) |
| 748 | ||
| 749 | 749 | MDRV_GFXDECODE(sslam) |
| 750 | 750 | MDRV_PALETTE_LENGTH(0x800) |
| 751 | 751 | |
| r1711 | r1712 | |
| 771 | 771 | MDRV_CPU_PROGRAM_MAP(sound_map,0) |
| 772 | 772 | MDRV_CPU_IO_MAP(sound_io_map,0) |
| 773 | 773 | |
| 774 | /* video hardware */ | |
| 775 | MDRV_SCREEN_ADD("main", RASTER) | |
| 774 | 776 | MDRV_SCREEN_REFRESH_RATE(58) |
| 775 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 776 | ||
| 777 | /* video hardware */ | |
| 778 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 777 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 779 | 778 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 780 | 779 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 781 | 780 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 781 | ||
| 782 | 782 | MDRV_GFXDECODE(powerbls) |
| 783 | 783 | MDRV_PALETTE_LENGTH(0x200) |
| 784 | 784 |
| r1711 | r1712 | |
|---|---|---|
| 486 | 486 | MDRV_CPU_PROGRAM_MAP(chainrec_map,0) |
| 487 | 487 | MDRV_CPU_VBLANK_INT(simpl156_vbl_interrupt,1) |
| 488 | 488 | |
| 489 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 490 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(800)) | |
| 491 | 489 | MDRV_NVRAM_HANDLER(simpl156) // 93C45 |
| 492 | 490 | |
| 493 | 491 | /* video hardware */ |
| 494 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 492 | MDRV_SCREEN_ADD("main", RASTER) | |
| 493 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 494 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(800)) | |
| 495 | 495 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 496 | 496 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 497 | 497 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 498 | ||
| 498 | 499 | MDRV_PALETTE_LENGTH(4096) |
| 499 | 500 | MDRV_GFXDECODE(simpl156) |
| 500 | 501 | MDRV_VIDEO_START(simpl156) |
| r1711 | r1712 | |
|---|---|---|
| 355 | 355 | MDRV_MACHINE_START(lgp) |
| 356 | 356 | |
| 357 | 357 | /* video */ |
| 358 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 358 | ||
| 359 | MDRV_SCREEN_ADD("main", RASTER) | |
| 359 | 360 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 360 | 361 | MDRV_SCREEN_REFRESH_RATE(60) |
| 361 | MDRV_SCREEN_VBLANK_TIME( | |
| 362 | MDRV_SCREEN_VBLANK_TIME( | |
| 362 | 363 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 363 | 364 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 32*8-1) |
| 364 | 365 |
| r1711 | r1712 | |
|---|---|---|
| 275 | 275 | /* audio CPU */ |
| 276 | 276 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 277 | 277 | |
| 278 | /* video hardware */ | |
| 279 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 280 | ||
| 281 | MDRV_SCREEN_ADD("main", RASTER) | |
| 278 | 282 | MDRV_SCREEN_REFRESH_RATE(59) |
| 279 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION /* frames per second verified by comparison with real board */) | |
| 280 | ||
| 281 | /* video hardware */ | |
| 282 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 283 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0) /* frames per second verified by comparison with real board */) | |
| 283 | 284 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 284 | 285 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 285 | 286 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 287 | ||
| 286 | 288 | MDRV_GFXDECODE(hcastle) |
| 287 | 289 | MDRV_PALETTE_LENGTH(2*8*16*16) |
| 288 | 290 |
| r1711 | r1712 | |
|---|---|---|
| 289 | 289 | |
| 290 | 290 | SEIBU3A_SOUND_SYSTEM_CPU(XTAL_14_31818MHz/4) |
| 291 | 291 | |
| 292 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 293 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 294 | 292 | MDRV_INTERLEAVE(1) // the game stops working with higher interleave rates.. |
| 295 | 293 | |
| 296 | 294 | MDRV_MACHINE_RESET(seibu_sound_2) |
| 297 | 295 | |
| 298 | 296 | /* video hardware */ |
| 299 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 297 | MDRV_SCREEN_ADD("main", RASTER) | |
| 298 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 299 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 300 | 300 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 301 | 301 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 302 | 302 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 303 | ||
| 303 | 304 | MDRV_GFXDECODE(deadang) |
| 304 | 305 | MDRV_PALETTE_LENGTH(2048) |
| 305 | 306 |
| r1711 | r1712 | |
|---|---|---|
| 749 | 749 | MDRV_IMPORT_FROM(tms9928a) |
| 750 | 750 | |
| 751 | 751 | /* override video rendering and raw screen info */ |
| 752 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 752 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 753 | 753 | MDRV_VIDEO_UPDATE(cliff) |
| 754 | MDRV_SCREEN_MODIFY("main") | |
| 754 | 755 | MDRV_SCREEN_RAW_PARAMS(13500000, 858, 0, 720, 262.5, 21, 262.5) |
| 755 | 756 | |
| 756 | 757 | /* sound hardware */ |
| r1711 | r1712 | |
|---|---|---|
| 260 | 260 | MDRV_CPU_ADD(M6502,14318180/16) /* 894886.25 kHz */ |
| 261 | 261 | MDRV_CPU_PROGRAM_MAP(main_map,0) |
| 262 | 262 | |
| 263 | /* video hardware */ | |
| 264 | MDRV_SCREEN_ADD("main", RASTER) | |
| 263 | 265 | MDRV_SCREEN_REFRESH_RATE(60) |
| 264 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 265 | ||
| 266 | /* video hardware */ | |
| 267 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 266 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 268 | 267 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 269 | 268 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 270 | 269 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 26*8-1) |
| 270 | ||
| 271 | 271 | MDRV_GFXDECODE(copsnrob) |
| 272 | 272 | MDRV_PALETTE_LENGTH(2) |
| 273 | 273 |
| r1711 | r1712 | |
|---|---|---|
| 13 | 13 | * measured against a real PCB, the games run slightly too fast |
| 14 | 14 | in spite of accurately measured VBLANK timings |
| 15 | 15 | |
| 16 | DIP locations verified for: | |
| 17 | * ultennis (manual+test mode) | |
| 18 | * cheesech (test mode) | |
| 19 | * stonebal (test mode) | |
| 20 | * stoneba2 (test mode) | |
| 21 | ||
| 16 | 22 | ***************************************************************************/ |
| 17 | 23 | |
| 18 | 24 | #include "driver.h" |
| r1711 | r1712 | |
| 490 | 496 | * |
| 491 | 497 | *************************************/ |
| 492 | 498 | |
| 493 | static INPUT_PORTS_START( | |
| 499 | static INPUT_PORTS_START( | |
| 494 | 500 | PORT_START_TAG("300000") |
| 495 | 501 | PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 496 | 502 | PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| r1711 | r1712 | |
| 514 | 520 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 515 | 521 | |
| 516 | 522 | PORT_START_TAG("300004") |
| 517 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unknown )) | |
| 518 | PORT_DIPSETTING( 0x0001, DEF_STR( Off )) | |
| 519 | PORT_DIPSETTING( 0x0000, DEF_STR( On )) | |
| 520 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Unknown )) | |
| 521 | PORT_DIPSETTING( 0x0002, DEF_STR( Off )) | |
| 522 | PORT_DIPSETTING( 0x0000, DEF_STR( On )) | |
| 523 | PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Unknown )) | |
| 524 | PORT_DIPSETTING( 0x0004, DEF_STR( Off )) | |
| 525 | PORT_DIPSETTING( 0x0000, DEF_STR( On )) | |
| 526 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Unknown )) | |
| 527 | PORT_DIPSETTING( 0x0008, DEF_STR( Off )) | |
| 528 | PORT_DIPSETTING( 0x0000, DEF_STR( On )) | |
| 529 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Unknown )) | |
| 530 | PORT_DIPSETTING( 0x0010, DEF_STR( Off )) | |
| 531 | PORT_DIPSETTING( 0x0000, DEF_STR( On )) | |
| 532 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unknown )) | |
| 523 | PORT_DIPUNUSED_DIPLOC( 0x0001, 0x0001, "SWB:8" ) /* Listed as "Unused" */ | |
| 524 | PORT_DIPNAME( 0x0006, 0x0004, DEF_STR( Language ) ) PORT_DIPLOCATION("SWB:6,7") | |
| 525 | PORT_DIPSETTING( 0x0000, DEF_STR( French ) ) | |
| 526 | PORT_DIPSETTING( 0x0002, DEF_STR( Italian ) ) | |
| 527 | PORT_DIPSETTING( 0x0004, DEF_STR( English ) ) | |
| 528 | PORT_DIPSETTING( 0x0006, DEF_STR( German ) ) | |
| 529 | PORT_DIPNAME( 0x0018, 0x0018, DEF_STR( Lives )) PORT_DIPLOCATION("SWB:4,5") | |
| 530 | PORT_DIPSETTING( 0x0008, "3" ) | |
| 531 | PORT_DIPSETTING( 0x0018, "4" ) | |
| 532 | PORT_DIPSETTING( 0x0000, "5" ) | |
| 533 | PORT_DIPSETTING( 0x0010, "6" ) | |
| 534 | PORT_DIPNAME( 0x0020, 0x0000, DEF_STR( Demo_Sounds )) PORT_DIPLOCATION("SWB:3") | |
| 533 | 535 | PORT_DIPSETTING( 0x0020, DEF_STR( Off )) |
| 534 | 536 | PORT_DIPSETTING( 0x0000, DEF_STR( On )) |
| 535 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unknown )) | |
| 536 | PORT_DIPSETTING( 0x0040, DEF_STR( Off )) | |
| 537 | PORT_DIPSETTING( 0x0000, DEF_STR( On )) | |
| 538 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Unknown )) | |
| 539 | PORT_DIPSETTING( 0x0080, DEF_STR( Off )) | |
| 540 | PORT_DIPSETTING( 0x0000, DEF_STR( On )) | |
| 537 | PORT_DIPNAME( 0x00c0, 0x0040, DEF_STR( Difficulty )) PORT_DIPLOCATION("SWB:1,2") | |
| 538 | PORT_DIPSETTING( 0x00c0, DEF_STR( Easy ) ) | |
| 539 | PORT_DIPSETTING( 0x0040, DEF_STR( Normal ) ) | |
| 540 | PORT_DIPSETTING( 0x0080, DEF_STR( Hard ) ) | |
| 541 | PORT_DIPSETTING( 0x0000, DEF_STR( Very_Hard ) ) | |
| 541 | 542 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 542 | 543 | |
| 543 | 544 | PORT_START_TAG("300006") |
| 544 | PORT_DIPNAME( 0x0007, 0x0007, "Right Coinage" ) | |
| 545 | PORT_DIPNAME( 0x0007, 0x0007, "Right Coinage" ) PORT_DIPLOCATION("SWA:6,7,8") | |
| 545 | 546 | PORT_DIPSETTING( 0x0002, DEF_STR( 6C_1C )) |
| 546 | 547 | PORT_DIPSETTING( 0x0006, DEF_STR( 5C_1C )) |
| 547 | 548 | PORT_DIPSETTING( 0x0001, DEF_STR( 4C_1C )) |
| r1711 | r1712 | |
| 550 | 551 | PORT_DIPSETTING( 0x0007, DEF_STR( 1C_1C )) |
| 551 | 552 | PORT_DIPSETTING( 0x0004, DEF_STR( 1C_2C )) |
| 552 | 553 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_4C )) |
| 553 | PORT_DIPNAME( 0x0038, 0x0038, "Left Coinage" ) | |
| 554 | PORT_DIPNAME( 0x0038, 0x0038, "Left Coinage" ) PORT_DIPLOCATION("SWA:3,4,5") | |
| 554 | 555 | PORT_DIPSETTING( 0x0000, DEF_STR( 4C_1C )) |
| 555 | 556 | PORT_DIPSETTING( 0x0020, DEF_STR( 2C_1C )) |
| 556 | 557 | PORT_DIPSETTING( 0x0038, DEF_STR( 1C_1C )) |
| r1711 | r1712 | |
| 559 | 560 | PORT_DIPSETTING( 0x0008, DEF_STR( 1C_4C )) |
| 560 | 561 | PORT_DIPSETTING( 0x0030, DEF_STR( 1C_5C )) |
| 561 | 562 | PORT_DIPSETTING( 0x0010, DEF_STR( 1C_6C )) |
| 562 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Free_Play )) | |
| 563 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Free_Play )) PORT_DIPLOCATION("SWA:2") | |
| 563 | 564 | PORT_DIPSETTING( 0x0040, DEF_STR( Off )) |
| 564 | 565 | PORT_DIPSETTING( 0x0000, DEF_STR( On )) |
| 565 | PORT_SERVICE( 0x0080, IP_ACTIVE_LOW ) | |
| 566 | PORT_SERVICE_DIPLOC( 0x0080, IP_ACTIVE_LOW, "SWA:1" ) | |
| 566 | 567 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 567 | 568 | |
| 568 | 569 | PORT_START_TAG("300008") |
| r1711 | r1712 | |
| 581 | 582 | INPUT_PORTS_END |
| 582 | 583 | |
| 583 | 584 | |
| 584 | static INPUT_PORTS_START( cheesech ) | |
| 585 | PORT_INCLUDE(artmagic) | |
| 586 | ||
| 587 | PORT_MODIFY("300004") | |
| 588 | PORT_DIPNAME( 0x0006, 0x0004, DEF_STR( Language ) ) | |
| 589 | PORT_DIPSETTING( 0x0000, DEF_STR( French ) ) | |
| 590 | PORT_DIPSETTING( 0x0002, DEF_STR( Italian ) ) | |
| 591 | PORT_DIPSETTING( 0x0004, DEF_STR( English ) ) | |
| 592 | PORT_DIPSETTING( 0x0006, DEF_STR( German ) ) | |
| 593 | PORT_DIPNAME( 0x0018, 0x0018, DEF_STR( Lives )) | |
| 594 | PORT_DIPSETTING( 0x0008, "3" ) | |
| 595 | PORT_DIPSETTING( 0x0018, "4" ) | |
| 596 | PORT_DIPSETTING( 0x0000, "5" ) | |
| 597 | PORT_DIPSETTING( 0x0010, "6" ) | |
| 598 | PORT_DIPNAME( 0x0020, 0x0000, DEF_STR( Demo_Sounds )) | |
| 599 | PORT_DIPSETTING( 0x0020, DEF_STR( Off )) | |
| 600 | PORT_DIPSETTING( 0x0000, DEF_STR( On )) | |
| 601 | PORT_DIPNAME( 0x00c0, 0x0040, DEF_STR( Difficulty )) | |
| 602 | PORT_DIPSETTING( 0x00c0, DEF_STR( Easy ) ) | |
| 603 | PORT_DIPSETTING( 0x0040, DEF_STR( Normal ) ) | |
| 604 | PORT_DIPSETTING( 0x0080, DEF_STR( Hard ) ) | |
| 605 | PORT_DIPSETTING( 0x0000, DEF_STR( Very_Hard ) ) | |
| 606 | INPUT_PORTS_END | |
| 607 | ||
| 608 | ||
| 609 | 585 | static INPUT_PORTS_START( ultennis ) |
| 610 | PORT_INCLUDE( | |
| 586 | PORT_INCLUDE( | |
| 611 | 587 | |
| 612 | 588 | PORT_MODIFY("300004") |
| 613 | PORT_DIPNAME( 0x0001, 0x000 | |
| 589 | PORT_DIPNAME( 0x0001, 0x0001, "Button Layout" ) PORT_DIPLOCATION("SWB:8") | |
| 614 | 590 | PORT_DIPSETTING( 0x0001, "Triangular" ) |
| 615 | 591 | PORT_DIPSETTING( 0x0000, "Linear" ) |
| 616 | PORT_DIPNAME( 0x0002, 0x0002, "Start | |
| 592 | PORT_DIPNAME( 0x0002, 0x0002, "Start Set At" ) PORT_DIPLOCATION("SWB:7") | |
| 617 | 593 | PORT_DIPSETTING( 0x0000, "0-0" ) |
| 618 | 594 | PORT_DIPSETTING( 0x0002, "4-4" ) |
| 619 | PORT_DIPNAME( 0x0004, 0x0004, "Sets | |
| 595 | PORT_DIPNAME( 0x0004, 0x0004, "Sets Per Match" ) PORT_DIPLOCATION("SWB:6") | |
| 620 | 596 | PORT_DIPSETTING( 0x0004, "1" ) |
| 621 | 597 | PORT_DIPSETTING( 0x0000, "3" ) |
| 622 | PORT_DIPNAME( 0x0018, 0x0008, "Game Duration" ) | |
| 623 | PORT_DIPSETTING( 0x0018, "5 lost points" ) | |
| 624 | PORT_DIPSETTING( 0x0008, "6 lost points" ) | |
| 625 | PORT_DIPSETTING( 0x0010, "7 lost points" ) | |
| 626 | PORT_DIPSETTING( 0x0000, "8 lost points" ) | |
| 627 | PORT_DIPNAME( 0x0020, 0x0000, DEF_STR( Demo_Sounds )) | |
| 628 | PORT_DIPSETTING( 0x0020, DEF_STR( Off )) | |
| 629 | PORT_DIPSETTING( 0x0000, DEF_STR( On )) | |
| 630 | PORT_DIPNAME( 0x00c0, 0x0040, DEF_STR( Difficulty )) | |
| 631 | PORT_DIPSETTING( 0x00c0, DEF_STR( Easy ) ) | |
| 632 | PORT_DIPSETTING( 0x0040, DEF_STR( Normal ) ) | |
| 633 | PORT_DIPSETTING( 0x0080, DEF_STR( Hard ) ) | |
| 634 | PORT_DIPSETTING( 0x0000, DEF_STR( Very_Hard ) ) | |
| 598 | PORT_DIPNAME( 0x0018, 0x0008, "Game Duratiob" ) PORT_DIPLOCATION("SWB:4,5") | |
| 599 | PORT_DIPSETTING( 0x0018, "5 Lost Points" ) | |
| 600 | PORT_DIPSETTING( 0x0008, "6 Lost Points" ) | |
| 601 | PORT_DIPSETTING( 0x0010, "7 Lost Points" ) | |
| 602 | PORT_DIPSETTING( 0x0000, "8 Lost Points" ) | |
| 635 | 603 | INPUT_PORTS_END |
| 636 | 604 | |
| 637 | 605 | |
| 638 | 606 | static INPUT_PORTS_START( stonebal ) |
| 639 | PORT_INCLUDE( | |
| 607 | PORT_INCLUDE( | |
| 640 | 608 | |
| 641 | 609 | PORT_MODIFY("300004") |
| 642 | PORT_SERVICE( 0x0001, IP_ACTIVE_LOW ) | |
| 643 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Free_Play )) | |
| 610 | PORT_SERVICE_DIPLOC( 0x0001, IP_ACTIVE_LOW, "SWA:1" ) | |
| 611 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Free_Play )) PORT_DIPLOCATION("SWA:2") | |
| 644 | 612 | PORT_DIPSETTING( 0x0002, DEF_STR( Off )) |
| 645 | 613 | PORT_DIPSETTING( 0x0000, DEF_STR( On )) |
| 646 | PORT_DIPNAME( 0x001c, 0x001c, "Left Coinage" ) | |
| 614 | PORT_DIPNAME( 0x001c, 0x001c, "Left Coinage" ) PORT_DIPLOCATION("SWA:3,4,5") | |
| 647 | 615 | PORT_DIPSETTING( 0x0000, DEF_STR( 4C_1C )) |
| 648 | 616 | PORT_DIPSETTING( 0x0004, DEF_STR( 2C_1C )) |
| 649 | 617 | PORT_DIPSETTING( 0x001c, DEF_STR( 1C_1C )) |
| r1711 | r1712 | |
| 652 | 620 | PORT_DIPSETTING( 0x0010, DEF_STR( 1C_4C )) |
| 653 | 621 | PORT_DIPSETTING( 0x000c, DEF_STR( 1C_5C )) |
| 654 | 622 | PORT_DIPSETTING( 0x0008, DEF_STR( 1C_6C )) |
| 655 | PORT_DIPNAME( 0x00e0, 0x00e0, "Right Coinage" ) | |
| 623 | PORT_DIPNAME( 0x00e0, 0x00e0, "Right Coinage" ) PORT_DIPLOCATION("SWA:6,7,8") | |
| 656 | 624 | PORT_DIPSETTING( 0x0040, DEF_STR( 6C_1C )) |
| 657 | 625 | PORT_DIPSETTING( 0x0060, DEF_STR( 5C_1C )) |
| 658 | 626 | PORT_DIPSETTING( 0x0080, DEF_STR( 4C_1C )) |
| r1711 | r1712 | |
| 663 | 631 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_4C )) |
| 664 | 632 | |
| 665 | 633 | PORT_MODIFY("300006") |
| 666 | PORT_DIPNAME( 0x0003, 0x0002, DEF_STR( Difficulty )) | |
| 634 | PORT_DIPNAME( 0x0003, 0x0002, DEF_STR( Difficulty )) PORT_DIPLOCATION("SWB:1,2") | |
| 667 | 635 | PORT_DIPSETTING( 0x0003, DEF_STR( Easy ) ) |
| 668 | 636 | PORT_DIPSETTING( 0x0002, DEF_STR( Normal ) ) |
| 669 | 637 | PORT_DIPSETTING( 0x0001, DEF_STR( Hard ) ) |
| 670 | 638 | PORT_DIPSETTING( 0x0000, DEF_STR( Very_Hard ) ) |
| 671 | PORT_DIPNAME( 0x0004, 0x0000, DEF_STR( Demo_Sounds )) | |
| 639 | PORT_DIPNAME( 0x0004, 0x0000, DEF_STR( Demo_Sounds )) PORT_DIPLOCATION("SWB:3") | |
| 672 | 640 | PORT_DIPSETTING( 0x0004, DEF_STR( Off )) |
| 673 | 641 | PORT_DIPSETTING( 0x0000, DEF_STR( On )) |
| 674 | PORT_DIPNAME( 0x0038, 0x0038, "Match Time" ) | |
| 642 | PORT_DIPNAME( 0x0038, 0x0038, "Match Time" ) PORT_DIPLOCATION("SWB:4,5,6") | |
| 675 | 643 | PORT_DIPSETTING( 0x0030, "60s" ) |
| 676 | 644 | PORT_DIPSETTING( 0x0028, "70s" ) |
| 677 | 645 | PORT_DIPSETTING( 0x0020, "80s" ) |
| r1711 | r1712 | |
| 680 | 648 | PORT_DIPSETTING( 0x0010, "110s" ) |
| 681 | 649 | PORT_DIPSETTING( 0x0008, "120s" ) |
| 682 | 650 | PORT_DIPSETTING( 0x0000, "130s" ) |
| 683 | PORT_DIPNAME( 0x0040, 0x0040, "Free Match Time" ) | |
| 651 | PORT_DIPNAME( 0x0040, 0x0040, "Free Match Time" ) PORT_DIPLOCATION("SWB:7") | |
| 684 | 652 | PORT_DIPSETTING( 0x0040, DEF_STR( Normal ) ) |
| 685 | 653 | PORT_DIPSETTING( 0x0000, "Short" ) |
| 686 | PORT_DIPNAME( 0x0080, 0x0080, "Game Mode" ) | |
| 654 | PORT_DIPNAME( 0x0080, 0x0080, "Game Mode" ) PORT_DIPLOCATION("SWB:8") | |
| 687 | 655 | PORT_DIPSETTING( 0x0080, "4 Players" ) |
| 688 | 656 | PORT_DIPSETTING( 0x0000, "2 Players" ) |
| 689 | 657 | |
| r1711 | r1712 | |
| 711 | 679 | INPUT_PORTS_END |
| 712 | 680 | |
| 713 | 681 | |
| 682 | static INPUT_PORTS_START( stoneba2 ) | |
| 683 | PORT_INCLUDE(stonebal) | |
| 714 | 684 | |
| 685 | PORT_MODIFY("300006") | |
| 686 | PORT_DIPUNUSED_DIPLOC( 0x0080, 0x0080, "SWB:8" ) /* Listed as "Unused" */ | |
| 687 | INPUT_PORTS_END | |
| 688 | ||
| 689 | ||
| 715 | 690 | /************************************* |
| 716 | 691 | * |
| 717 | 692 | * Machine driver |
| r1711 | r1712 | |
| 733 | 708 | MDRV_NVRAM_HANDLER(generic_1fill) |
| 734 | 709 | |
| 735 | 710 | /* video hardware */ |
| 736 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 737 | 711 | MDRV_VIDEO_START(artmagic) |
| 738 | 712 | MDRV_VIDEO_UPDATE(tms340x0) |
| 739 | 713 | |
| 740 | MDRV_SCREEN_ADD("main", | |
| 714 | MDRV_SCREEN_ADD("main", RASTER) | |
| 741 | 715 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 742 | 716 | MDRV_SCREEN_RAW_PARAMS(MASTER_CLOCK_40MHz/6, 428, 0, 320, 313, 0, 256) |
| 743 | 717 | |
| r1711 | r1712 | |
| 896 | 870 | * |
| 897 | 871 | *************************************/ |
| 898 | 872 | |
| 899 | GAME( 1993, ultennis, 0, artmagic, ultennis, ultennis, ROT0, "Art & Magic", "Ultimate Tennis", 0 ) | |
| 900 | GAME( 1994, cheesech, 0, artmagic, cheesech, cheesech, ROT0, "Art & Magic", "Cheese Chase", 0 ) | |
| 873 | GAME( 1993, ultennis, 0, artmagic, ultennis, ultennis, ROT0, "Art & Magic", "Ultimate Tennis", 0 ) | |
| 874 | GAME( 1994, cheesech, 0, artmagic, cheesech, cheesech, ROT0, "Art & Magic", "Cheese Chase", 0 ) | |
| 901 | 875 | GAME( 1994, stonebal, 0, stonebal, stonebal, stonebal, ROT0, "Art & Magic", "Stone Ball (4 Players)", 0 ) |
| 902 | GAME( 1994, stoneba2, stonebal, stonebal, stoneba | |
| 876 | GAME( 1994, stoneba2, stonebal, stonebal, stoneba2, stonebal, ROT0, "Art & Magic", "Stone Ball (2 Players)", 0 ) |
| r1711 | r1712 | |
|---|---|---|
| 41 | 41 | static PALETTE_INIT( zerotrgt ) |
| 42 | 42 | { |
| 43 | 43 | int i; |
| 44 | for (i = 0;i < machine-> | |
| 44 | for (i = 0;i < machine->config->total_colors;i++) | |
| 45 | 45 | { |
| 46 | 46 | int bit0,bit1,bit2,r,g,b; |
| 47 | 47 | |
| r1711 | r1712 | |
| 727 | 727 | // MDRV_CPU_PROGRAM_MAP(sound_map,0) |
| 728 | 728 | // MDRV_CPU_VBLANK_INT(nmi_line_pulse,16) /* ? */ // should be interrupt, 16? |
| 729 | 729 | |
| 730 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 731 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 732 | ||
| 733 | 730 | /* video hardware */ |
| 734 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 731 | MDRV_SCREEN_ADD("main", RASTER) | |
| 732 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 733 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 735 | 734 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 736 | 735 | MDRV_SCREEN_SIZE(256, 256) |
| 737 | 736 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 32*8-1) |
| r1711 | r1712 | |
| 764 | 763 | MDRV_CPU_VBLANK_INT(irq0_line_pulse,16) /* ? */ // should be interrupt, 16? |
| 765 | 764 | MDRV_CPU_PERIODIC_INT(sound_interrupt, 1000) |
| 766 | 765 | |
| 767 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 768 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 769 | ||
| 770 | 766 | /* video hardware */ |
| 771 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 767 | MDRV_SCREEN_ADD("main", RASTER) | |
| 768 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 769 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 772 | 770 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 773 | 771 | MDRV_SCREEN_SIZE(256, 256) |
| 774 | 772 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 32*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 662 | 662 | /* Data Map is internal to the CPU */ |
| 663 | 663 | MDRV_CPU_IO_MAP(DSP_io_map, 0) |
| 664 | 664 | |
| 665 | MDRV_SCREEN_REFRESH_RATE( (28000000.0 / 4) / (446 * 286) ) | |
| 666 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 667 | 665 | MDRV_INTERLEAVE(100) |
| 668 | 666 | |
| 669 | 667 | MDRV_MACHINE_RESET(twincobr) /* Reset fshark bootleg 8741 MCU data */ |
| 670 | 668 | |
| 671 | 669 | /* video hardware */ |
| 672 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK | VIDEO_BUFFERS_SPRITERAM) | |
| 670 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK | VIDEO_BUFFERS_SPRITERAM) | |
| 671 | ||
| 672 | MDRV_SCREEN_ADD("main", RASTER) | |
| 673 | MDRV_SCREEN_REFRESH_RATE( (28000000.0 / 4) / (446 * 286) ) | |
| 674 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 673 | 675 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 674 | 676 | MDRV_SCREEN_SIZE(64*8, 64*8) |
| 675 | 677 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 30*8-1) |
| 678 | ||
| 676 | 679 | MDRV_GFXDECODE(twincobr) |
| 677 | 680 | MDRV_PALETTE_LENGTH(1792) |
| 678 | 681 |
| r1711 | r1712 | |
|---|---|---|
| 286 | 286 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 287 | 287 | MDRV_CPU_VBLANK_INT(hexion_interrupt,3) /* both IRQ and NMI are used */ |
| 288 | 288 | |
| 289 | /* video hardware */ | |
| 290 | MDRV_SCREEN_ADD("main", RASTER) | |
| 289 | 291 | MDRV_SCREEN_REFRESH_RATE(60) |
| 290 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 291 | ||
| 292 | /* video hardware */ | |
| 293 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 292 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 294 | 293 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 295 | 294 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 296 | 295 | MDRV_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 0*8, 32*8-1) |
| 296 | ||
| 297 | 297 | MDRV_GFXDECODE(hexion) |
| 298 | 298 | MDRV_PALETTE_LENGTH(256) |
| 299 | 299 |
| r1711 | r1712 | |
|---|---|---|
| 455 | 455 | /* - periodic IRQ, with frequency 6000000/(4*16*16*10*16) = 36.621 Hz, */ |
| 456 | 456 | MDRV_CPU_PERIODIC_INT(irq0_line_hold, (double)6000000/(4*16*16*10*16)) |
| 457 | 457 | |
| 458 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 459 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 460 | ||
| 461 | 458 | /* video hardware */ |
| 462 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 459 | MDRV_SCREEN_ADD("main", RASTER) | |
| 460 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 461 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 463 | 462 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 464 | 463 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 465 | 464 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 342 | 342 | /* audio CPU */ /* ? */ |
| 343 | 343 | MDRV_CPU_PROGRAM_MAP(battlnts_readmem_sound,battlnts_writemem_sound) |
| 344 | 344 | |
| 345 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 346 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 347 | ||
| 348 | 345 | /* video hardware */ |
| 349 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 346 | MDRV_SCREEN_ADD("main", RASTER) | |
| 347 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 348 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 350 | 349 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 351 | 350 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 352 | 351 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 153 | 153 | flip_screen_set( deco16_pf12_control[0]&0x80 ); |
| 154 | 154 | deco16_pf12_update(deco16_pf1_rowscroll,deco16_pf2_rowscroll); |
| 155 | 155 | |
| 156 | fillbitmap(bitmap, | |
| 156 | fillbitmap(bitmap, | |
| 157 | 157 | fillbitmap(priority_bitmap,0,NULL); |
| 158 | 158 | |
| 159 | 159 | deco16_tilemap_2_draw(bitmap,cliprect,0,2); |
| r1711 | r1712 | |
| 549 | 549 | MDRV_CPU_PROGRAM_MAP(sound_map,0) |
| 550 | 550 | |
| 551 | 551 | |
| 552 | /* video hardware */ | |
| 553 | MDRV_SCREEN_ADD("main", RASTER) | |
| 552 | 554 | MDRV_SCREEN_REFRESH_RATE(58) |
| 553 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 554 | ||
| 555 | /* video hardware */ | |
| 556 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 555 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 557 | 556 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 558 | 557 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 559 | 558 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 559 | ||
| 560 | 560 | MDRV_PALETTE_LENGTH(4096) |
| 561 | 561 | MDRV_GFXDECODE(dblewing) |
| 562 | 562 |
| r1711 | r1712 | |
|---|---|---|
| 468 | 468 | MDRV_CPU_PROGRAM_MAP(galpani2_mem2, 0) |
| 469 | 469 | MDRV_CPU_VBLANK_INT(galpani2_interrupt2,GALPANI2_INTERRUPTS_NUM2) |
| 470 | 470 | |
| 471 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 472 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 473 | ||
| 474 | 471 | MDRV_MACHINE_RESET(galpani2) |
| 475 | 472 | MDRV_NVRAM_HANDLER(93C46) |
| 476 | 473 | |
| 477 | 474 | /* video hardware */ |
| 478 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 475 | MDRV_SCREEN_ADD("main", RASTER) | |
| 476 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 477 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 479 | 478 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 480 | 479 | MDRV_SCREEN_SIZE(320, 256) |
| 481 | 480 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 0, 256-1-16) |
| 481 | ||
| 482 | 482 | MDRV_GFXDECODE(galpani2) |
| 483 | 483 | MDRV_PALETTE_LENGTH(0x4000 + 0x200 + 0x8000) // sprites, bg8, bg15 |
| 484 | 484 |
| r1711 | r1712 | |
|---|---|---|
| 249 | 249 | PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 250 | 250 | |
| 251 | 251 | PORT_START_TAG("DSW1") |
| 252 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Lives )) PORT_DIPLOCATION("SW1:1") | |
| 252 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Lives )) PORT_DIPLOCATION("SW1:!1") | |
| 253 | 253 | PORT_DIPSETTING( 0x00, "3" ) |
| 254 | 254 | PORT_DIPSETTING( 0x01, "5" ) |
| 255 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Cabinet )) PORT_DIPLOCATION("SW1:2") | |
| 255 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Cabinet )) PORT_DIPLOCATION("SW1:!2") | |
| 256 | 256 | PORT_DIPSETTING( 0x02, DEF_STR( Upright )) |
| 257 | 257 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail )) |
| 258 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Flip_Screen )) PORT_DIPLOCATION("SW1:3") | |
| 258 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Flip_Screen )) PORT_DIPLOCATION("SW1:!3") | |
| 259 | 259 | PORT_DIPSETTING( 0x04, DEF_STR( Off )) |
| 260 | 260 | PORT_DIPSETTING( 0x00, DEF_STR( On )) |
| 261 | PORT_DIPNAME( 0x08, 0x00, "Carry Bowls to Next Life" ) PORT_DIPLOCATION("SW1:4") | |
| 262 | PORT_DIPSETTING( 0x08, DEF_STR( No )) | |
| 263 | PORT_DIPSETTING( 0x00, DEF_STR( Yes )) | |
| 264 | PORT_DIPNAME( 0xf0, 0x00, DEF_STR( Coinage )) PORT_DIPLOCATION("SW1:5,6,7,8") | |
| 261 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Difficulty )) PORT_DIPLOCATION("SW1:!4") /* Carry Bowls to Next Life */ | |
| 262 | PORT_DIPSETTING( 0x00, DEF_STR( Easy )) | |
| 263 | PORT_DIPSETTING( 0x08, DEF_STR( Hard )) | |
| 264 | PORT_DIPNAME( 0xf0, 0x00, DEF_STR( Coinage )) PORT_DIPLOCATION("SW1:!5,!6,!7,!8") | |
| 265 | 265 | PORT_DIPSETTING( 0x10, "A 2/1 B 2/1" ) |
| 266 | 266 | PORT_DIPSETTING( 0x20, "A 2/1 B 1/3" ) |
| 267 | 267 | PORT_DIPSETTING( 0x00, "A 1/1 B 1/1" ) |
| r1711 | r1712 | |
| 310 | 310 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* IN19 */ |
| 311 | 311 | |
| 312 | 312 | PORT_START_TAG("COM5") |
| 313 | PORT_DIPNAME( 0x01, 0x0 | |
| 313 | PORT_DIPNAME( 0x01, 0x01, "Coin Counters" ) PORT_DIPLOCATION("SW2:!1") | |
| 314 | 314 | PORT_DIPSETTING( 0x01, "1" ) |
| 315 | 315 | PORT_DIPSETTING( 0x00, "2" ) |
| 316 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds )) PORT_DIPLOCATION("SW2:2") | |
| 316 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds )) PORT_DIPLOCATION("SW2:!2") | |
| 317 | 317 | PORT_DIPSETTING( 0x02, DEF_STR( Off )) |
| 318 | 318 | PORT_DIPSETTING( 0x00, DEF_STR( On )) |
| 319 | PORT_DIPNAME( 0x0c, 0x04, DEF_STR( Bonus_Life )) PORT_DIPLOCATION("SW2:3,4") | |
| 320 | PORT_DIPSETTING( 0x04, "20000" ) | |
| 321 | PORT_DIPSETTING( 0x08, "40000" ) | |
| 322 | PORT_DIPSETTING( 0x0c, "20000 50000 +100K" ) | |
| 319 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life )) PORT_DIPLOCATION("SW2:!3,!4") | |
| 320 | PORT_DIPSETTING( 0x04, "20K" ) | |
| 321 | PORT_DIPSETTING( 0x08, "40K" ) | |
| 322 | PORT_DIPSETTING( 0x0c, "20K, 50K, 100K, Every 100K" ) | |
| 323 | 323 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) |
| 324 | 324 | INPUT_PORTS_END |
| 325 | 325 | |
| r1711 | r1712 | |
| 355 | 355 | MDRV_CPU_IO_MAP(main_io_map,0) |
| 356 | 356 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 357 | 357 | |
| 358 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 359 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 360 | ||
| 361 | 358 | /* video hardware */ |
| 362 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 359 | MDRV_SCREEN_ADD("main", RASTER) | |
| 360 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 361 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 363 | 362 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 364 | 363 | MDRV_SCREEN_SIZE(256, 256) |
| 365 | 364 | MDRV_SCREEN_VISIBLE_AREA(0, 255, 11, 244) |
| r1711 | r1712 | |
| 436 | 435 | * |
| 437 | 436 | *************************************/ |
| 438 | 437 | |
| 439 | GAME( 1983, arabian, 0, arabian, arabian, arabian, ROT270, "Sun Electronics", "Arabian", 0 ) | |
| 438 | GAME( 1983, arabian, 0, arabian, arabian, arabian, ROT270, "Sun Electronics", "Arabian", 0 ) | |
| 440 | 439 | GAME( 1983, arabiana, arabian, arabian, arabian, arabian, ROT270, "[Sun Electronics] (Atari license)", "Arabian (Atari)", 0 ) |
| r1711 | r1712 | |
|---|---|---|
| 243 | 243 | MDRV_CPU_PROGRAM_MAP(labyrunr_readmem,labyrunr_writemem) |
| 244 | 244 | MDRV_CPU_VBLANK_INT(labyrunr_interrupt,8) /* 1 IRQ + 4 NMI (generated by 007121) */ |
| 245 | 245 | |
| 246 | /* video hardware */ | |
| 247 | MDRV_SCREEN_ADD("main", RASTER) | |
| 246 | 248 | MDRV_SCREEN_REFRESH_RATE(60) |
| 247 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 248 | ||
| 249 | /* video hardware */ | |
| 250 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 249 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 251 | 250 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 252 | 251 | MDRV_SCREEN_SIZE(37*8, 32*8) |
| 253 | 252 | MDRV_SCREEN_VISIBLE_AREA(0*8, 35*8-1, 2*8, 30*8-1) |
| 253 | ||
| 254 | 254 | MDRV_GFXDECODE(labyrunr) |
| 255 | 255 | MDRV_PALETTE_LENGTH(2*8*16*16) |
| 256 | 256 |
| r1711 | r1712 | |
|---|---|---|
| 124 | 124 | 3, resistances_rg, weights_g, 0, 1000+1000, |
| 125 | 125 | 2, resistances_b, weights_b, 0, 1000+1000); |
| 126 | 126 | |
| 127 | for (i = 0;i < machine-> | |
| 127 | for (i = 0;i < machine->config->total_colors;i++) | |
| 128 | 128 | { |
| 129 | 129 | int bit0,bit1,bit2,r,g,b; |
| 130 | 130 | |
| r1711 | r1712 | |
| 368 | 368 | MDRV_CPU_ADD(ALPHA8201, 10000000/4/8) |
| 369 | 369 | MDRV_CPU_PROGRAM_MAP(mcu_map,0) |
| 370 | 370 | |
| 371 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 372 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 373 | 371 | MDRV_INTERLEAVE(10) |
| 374 | 372 | |
| 375 | 373 | /* video hardware */ |
| 376 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 374 | MDRV_SCREEN_ADD("main", RASTER) | |
| 375 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 376 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 377 | 377 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 378 | 378 | MDRV_SCREEN_SIZE(256, 256) |
| 379 | 379 | MDRV_SCREEN_VISIBLE_AREA(0, 255, 0, 255) |
| 380 | ||
| 380 | 381 | MDRV_PALETTE_LENGTH(32) |
| 381 | 382 | |
| 382 | 383 | MDRV_PALETTE_INIT(shougi) |
| r1711 | r1712 | |
|---|---|---|
| 343 | 343 | machine->gfx[K037122_gfx_index[chip]] = allocgfx(&K037122_char_layout); |
| 344 | 344 | decodegfx(machine->gfx[K037122_gfx_index[chip]], (UINT8*)K037122_char_ram[chip], 0, machine->gfx[K037122_gfx_index[chip]]->total_elements); |
| 345 | 345 | |
| 346 | if (machine->drv->color_table_len) | |
| 347 | machine->gfx[K037122_gfx_index[chip]]->total_colors = machine->drv->color_table_len / 16; | |
| 348 | else | |
| 349 | machine->gfx[K037122_gfx_index[chip]]->total_colors = machine->drv->total_colors / 16; | |
| 346 | machine->gfx[K037122_gfx_index[chip]]->total_colors = machine->config->total_colors / 16; | |
| 350 | 347 | |
| 351 | 348 | return 0; |
| 352 | 349 | } |
| r1711 | r1712 | |
| 895 | 892 | MDRV_CPU_CONFIG(sharc_cfg) |
| 896 | 893 | MDRV_CPU_DATA_MAP(sharc0_map, 0) |
| 897 | 894 | |
| 898 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 899 | 895 | MDRV_INTERLEAVE(100) |
| 900 | 896 | |
| 901 | 897 | MDRV_MACHINE_RESET( hornet ) |
| r1711 | r1712 | |
| 903 | 899 | MDRV_NVRAM_HANDLER( timekeeper_0 ) |
| 904 | 900 | |
| 905 | 901 | /* video hardware */ |
| 906 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 902 | MDRV_SCREEN_ADD("main", RASTER) | |
| 903 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 907 | 904 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 908 | 905 | MDRV_SCREEN_SIZE(64*8, 48*8) |
| 909 | 906 | MDRV_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 0*8, 48*8-1) |
| 907 | ||
| 910 | 908 | MDRV_PALETTE_LENGTH(65536) |
| 911 | 909 | |
| 912 | 910 | MDRV_VIDEO_START(hornet) |
| r1711 | r1712 | |
| 946 | 944 | MDRV_VIDEO_UPDATE(hornet_2board) |
| 947 | 945 | |
| 948 | 946 | /* video hardware */ |
| 949 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 950 | 947 | MDRV_PALETTE_LENGTH(65536) |
| 951 | 948 | |
| 952 | MDRV_SCREEN_ADD("left", | |
| 949 | MDRV_SCREEN_ADD("left", RASTER) | |
| 953 | 950 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 954 | 951 | MDRV_SCREEN_REFRESH_RATE(60) |
| 955 | 952 | MDRV_SCREEN_SIZE(512, 384) |
| 956 | 953 | MDRV_SCREEN_VISIBLE_AREA(0, 511, 0, 383) |
| 957 | 954 | |
| 958 | MDRV_SCREEN_ADD("right", | |
| 955 | MDRV_SCREEN_ADD("right", RASTER) | |
| 959 | 956 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 960 | 957 | MDRV_SCREEN_REFRESH_RATE(60) |
| 961 | 958 | MDRV_SCREEN_SIZE(512, 384) |
| r1711 | r1712 | |
|---|---|---|
| 466 | 466 | MDRV_CPU_IO_MAP(io_map,0) |
| 467 | 467 | MDRV_CPU_VBLANK_INT(thief_interrupt,1) |
| 468 | 468 | |
| 469 | /* video hardware */ | |
| 470 | MDRV_SCREEN_ADD("main", RASTER) | |
| 471 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 469 | 472 | MDRV_SCREEN_REFRESH_RATE(60) |
| 470 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 471 | ||
| 472 | /* video hardware */ | |
| 473 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 473 | 474 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 474 | 475 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 24*8-1) |
| 476 | ||
| 475 | 477 | MDRV_PALETTE_LENGTH(16) |
| 476 | 478 | |
| 477 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 478 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 479 | 479 | MDRV_VIDEO_START(thief) |
| 480 | 480 | MDRV_VIDEO_UPDATE(thief) |
| 481 | 481 | |
| r1711 | r1712 | |
| 502 | 502 | MDRV_CPU_IO_MAP(io_map,0) |
| 503 | 503 | MDRV_CPU_VBLANK_INT(thief_interrupt,1) |
| 504 | 504 | |
| 505 | /* video hardware */ | |
| 506 | MDRV_SCREEN_ADD("main", RASTER) | |
| 505 | 507 | MDRV_SCREEN_REFRESH_RATE(60) |
| 506 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 507 | ||
| 508 | /* video hardware */ | |
| 509 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 508 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 510 | 509 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 511 | 510 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 512 | 511 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 32*8-1) |
| 512 | ||
| 513 | 513 | MDRV_PALETTE_LENGTH(16) |
| 514 | 514 | |
| 515 | 515 | MDRV_VIDEO_START(thief) |
| r1711 | r1712 | |
| 538 | 538 | MDRV_CPU_IO_MAP(io_map,0) |
| 539 | 539 | MDRV_CPU_VBLANK_INT(thief_interrupt,1) |
| 540 | 540 | |
| 541 | /* video hardware */ | |
| 542 | MDRV_SCREEN_ADD("main", RASTER) | |
| 541 | 543 | MDRV_SCREEN_REFRESH_RATE(60) |
| 542 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 543 | ||
| 544 | /* video hardware */ | |
| 545 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 544 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 546 | 545 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 547 | 546 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 548 | 547 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 32*8-1) |
| 548 | ||
| 549 | 549 | MDRV_PALETTE_LENGTH(16) |
| 550 | 550 | |
| 551 | 551 | MDRV_VIDEO_START(thief) |
| r1711 | r1712 | |
|---|---|---|
| 566 | 566 | MDRV_CPU_PROGRAM_MAP(sound_map,0) |
| 567 | 567 | MDRV_CPU_IO_MAP(sound_portmap,0) |
| 568 | 568 | |
| 569 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 570 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 571 | ||
| 572 | 569 | MDRV_MACHINE_RESET(pipedrm) |
| 573 | 570 | |
| 574 | 571 | /* video hardware */ |
| 575 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 572 | MDRV_SCREEN_ADD("main", RASTER) | |
| 573 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 574 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 576 | 575 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 577 | 576 | MDRV_SCREEN_SIZE(44*8, 30*8) |
| 578 | 577 | MDRV_SCREEN_VISIBLE_AREA(0*8, 44*8-1, 0*8, 30*8-1) |
| 578 | ||
| 579 | 579 | MDRV_GFXDECODE(pipedrm) |
| 580 | 580 | MDRV_PALETTE_LENGTH(2048) |
| 581 | 581 | |
| r1711 | r1712 | |
| 606 | 606 | MDRV_CPU_PROGRAM_MAP(sound_map,0) |
| 607 | 607 | MDRV_CPU_IO_MAP(hatris_sound_portmap,0) |
| 608 | 608 | |
| 609 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 610 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 611 | ||
| 612 | 609 | MDRV_MACHINE_RESET(pipedrm) |
| 613 | 610 | |
| 614 | 611 | /* video hardware */ |
| 615 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 612 | MDRV_SCREEN_ADD("main", RASTER) | |
| 613 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 614 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 616 | 615 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 617 | 616 | MDRV_SCREEN_SIZE(44*8, 30*8) |
| 618 | 617 | MDRV_SCREEN_VISIBLE_AREA(0*8, 44*8-1, 0*8, 30*8-1) |
| 618 | ||
| 619 | 619 | MDRV_GFXDECODE(hatris) |
| 620 | 620 | MDRV_PALETTE_LENGTH(2048) |
| 621 | 621 |
| r1711 | r1712 | |
|---|---|---|
| 475 | 475 | MDRV_WATCHDOG_VBLANK_INIT(8) |
| 476 | 476 | |
| 477 | 477 | /* video hardware */ |
| 478 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 479 | 478 | MDRV_GFXDECODE(ccastles) |
| 480 | 479 | MDRV_PALETTE_LENGTH(32) |
| 481 | 480 | |
| 482 | MDRV_SCREEN_ADD("main", | |
| 481 | MDRV_SCREEN_ADD("main", RASTER) | |
| 483 | 482 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 484 | 483 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, 0, HTOTAL - 1, VTOTAL, 0, VTOTAL - 1) /* will be adjusted later */ |
| 485 | 484 |
| r1711 | r1712 | |
|---|---|---|
| 202 | 202 | /* Input Ports */ |
| 203 | 203 | |
| 204 | 204 | static INPUT_PORTS_START( ddragon3 ) |
| 205 | PORT_START | |
| 205 | PORT_START_TAG("IN1") | |
| 206 | 206 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 207 | 207 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 208 | 208 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| r1711 | r1712 | |
| 212 | 212 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) // kick |
| 213 | 213 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START1 ) |
| 214 | 214 | |
| 215 | PORT_START_TAG("IN2") | |
| 215 | 216 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) |
| 216 | 217 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) |
| 217 | 218 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| r1711 | r1712 | |
| 226 | 227 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 227 | 228 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 228 | 229 | PORT_BIT( 0x00f8, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 229 | ||
| 230 | 230 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 231 | 231 | |
| 232 | 232 | PORT_START // DSW1&2 |
| r1711 | r1712 | |
| 267 | 267 | PORT_DIPSETTING( 0x8000, "2" ) |
| 268 | 268 | PORT_DIPSETTING( 0x0000, "3" ) |
| 269 | 269 | |
| 270 | PORT_START | |
| 270 | PORT_START_TAG("IN3") | |
| 271 | 271 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(3) |
| 272 | 272 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(3) |
| 273 | 273 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(3) |
| r1711 | r1712 | |
| 276 | 276 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(3) |
| 277 | 277 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(3) |
| 278 | 278 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START3 ) |
| 279 | ||
| 280 | 279 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 281 | 280 | INPUT_PORTS_END |
| 282 | 281 | |
| r1711 | r1712 | |
| 376 | 375 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 377 | 376 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 378 | 377 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_VBLANK ) |
| 379 | PORT_DIPNAME( 0x1000, 0x1000, DEF_STR( Flip_Screen ) ) | |
| 378 | PORT_DIPNAME( 0x1000, 0x1000, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:7") | |
| 380 | 379 | PORT_DIPSETTING( 0x1000, DEF_STR( Off ) ) |
| 381 | 380 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 382 | 381 | PORT_BIT( 0xe000, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r1711 | r1712 | |
| 391 | 390 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 392 | 391 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START2 ) |
| 393 | 392 | |
| 394 | PORT_DIPNAME( 0x0300, 0x0300, DEF_STR( Coinage ) ) | |
| 393 | PORT_DIPNAME( 0x0300, 0x0300, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:1,2") | |
| 395 | 394 | PORT_DIPSETTING( 0x0000, DEF_STR( 3C_1C ) ) |
| 396 | 395 | PORT_DIPSETTING( 0x0100, DEF_STR( 2C_1C ) ) |
| 397 | 396 | PORT_DIPSETTING( 0x0300, DEF_STR( 1C_1C ) ) |
| 398 | 397 | PORT_DIPSETTING( 0x0200, DEF_STR( 1C_2C ) ) |
| 399 | 398 | PORT_BIT( 0x0c00, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 400 | PORT_DIPNAME( 0x1000, 0x1000, "Continue Discount" ) | |
| 399 | PORT_DIPNAME( 0x1000, 0x1000, "Continue Discount" ) PORT_DIPLOCATION("SW1:5") | |
| 401 | 400 | PORT_DIPSETTING( 0x1000, DEF_STR( Off ) ) |
| 402 | 401 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 403 | PORT_DIPNAME( 0x2000, 0x2000, DEF_STR( Demo_Sounds ) ) | |
| 402 | PORT_DIPNAME( 0x2000, 0x2000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:6") | |
| 404 | 403 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 405 | 404 | PORT_DIPSETTING( 0x2000, DEF_STR( On ) ) |
| 406 | 405 | PORT_BIT( 0xc000, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r1711 | r1712 | |
| 415 | 414 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 416 | 415 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START3 ) |
| 417 | 416 | |
| 418 | PORT_DIPNAME( 0x0300, 0x0300, DEF_STR( Difficulty ) ) | |
| 417 | PORT_DIPNAME( 0x0300, 0x0300, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:1,2") | |
| 419 | 418 | PORT_DIPSETTING( 0x0200, DEF_STR( Easy ) ) |
| 420 | 419 | PORT_DIPSETTING( 0x0300, DEF_STR( Normal ) ) |
| 421 | 420 | PORT_DIPSETTING( 0x0100, "Less than Difficult" ) |
| 422 | 421 | PORT_DIPSETTING( 0x0000, "Difficult" ) |
| 423 | PORT_DIPNAME( 0x0400, 0x0400, "Timer Speed" ) | |
| 422 | PORT_DIPNAME( 0x0400, 0x0400, "Timer Speed" ) PORT_DIPLOCATION("SW2:3") | |
| 424 | 423 | PORT_DIPSETTING( 0x0400, DEF_STR( Normal ) ) |
| 425 | 424 | PORT_DIPSETTING( 0x0000, "Fast" ) |
| 426 | 425 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 427 | PORT_SERVICE( 0x1000, IP_ACTIVE_LOW ) | |
| 428 | PORT_DIPNAME( 0x6000, 0x6000, "Stage Clear Energy" ) | |
| 429 | PORT_DIPSETTING( 0x6000, DEF_STR( Off ) ) | |
| 430 | PORT_DIPSETTING( 0x0000, "50" ) | |
| 426 | PORT_DIPNAME( 0x1000, 0x1000, "Test Mode" ) PORT_DIPLOCATION("SW2:5") | |
| 427 | PORT_DIPSETTING( 0x1000, DEF_STR( Off ) ) | |
| 428 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 429 | PORT_DIPNAME( 0x6000, 0x6000, "Stage Clear Energy" ) PORT_DIPLOCATION("SW2:6,7") | |
| 430 | PORT_DIPSETTING( 0x6000, "0" ) | |
| 431 | PORT_DIPSETTING( 0x4000, "50" ) | |
| 432 | PORT_DIPSETTING( 0x2000, "100" ) /* According to manual but doesn't work on real pcb. */ | |
| 433 | PORT_DIPSETTING( 0x0000, "150" ) /* According to manual but doesn't work on real pcb. */ | |
| 431 | 434 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 432 | 435 | |
| 433 | 436 | PORT_START |
| 434 | 437 | PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 435 | ||
| 436 | 438 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 437 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Players ) ) | |
| 439 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Players ) ) PORT_DIPLOCATION("SW2:8") | |
| 438 | 440 | PORT_DIPSETTING( 0x0200, "2" ) |
| 439 | 441 | PORT_DIPSETTING( 0x0000, "3" ) |
| 440 | 442 | PORT_BIT( 0xc000, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r1711 | r1712 | |
| 509 | 511 | /* audio CPU */ |
| 510 | 512 | MDRV_CPU_PROGRAM_MAP(readmem_sound, writemem_sound) |
| 511 | 513 | |
| 512 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 513 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 514 | ||
| 515 | 514 | /* video hardware */ |
| 516 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 515 | MDRV_SCREEN_ADD("main", RASTER) | |
| 516 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 517 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 517 | 518 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 518 | 519 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 519 | 520 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 521 | ||
| 520 | 522 | MDRV_GFXDECODE(ddragon3) |
| 521 | 523 | MDRV_PALETTE_LENGTH(768) |
| 522 | 524 | |
| r1711 | r1712 | |
| 553 | 555 | MDRV_CPU_MODIFY("audio") |
| 554 | 556 | MDRV_CPU_PROGRAM_MAP(ctribe_readmem_sound,ctribe_writemem_sound) |
| 555 | 557 | |
| 556 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 558 | MDRV_SCREEN_MODIFY("main") | |
| 559 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 557 | 560 | |
| 558 | 561 | MDRV_VIDEO_UPDATE(ctribe) |
| 559 | 562 | MACHINE_DRIVER_END |
| r1711 | r1712 | |
| 562 | 565 | |
| 563 | 566 | ROM_START( ddragon3 ) |
| 564 | 567 | ROM_REGION( 0x80000, REGION_CPU1, 0 ) /* 64k for cpu code */ |
| 565 | ROM_LOAD16_BYTE( "30a14", 0x00001, 0x40000, CRC(f42fe016) SHA1(11511aa43caa12b36a795bfaefee824821282523) ) | |
| 566 | ROM_LOAD16_BYTE( "30a15", 0x00000, 0x20000, CRC(ad50e92c) SHA1(facac5bbe11716d076a40eacbb67f7caab7a4a27) ) | |
| 568 | ROM_LOAD16_BYTE( "30a14-0.ic78", 0x00001, 0x40000, CRC(f42fe016) SHA1(11511aa43caa12b36a795bfaefee824821282523) ) | |
| 569 | ROM_LOAD16_BYTE( "30a15-0.ic79", 0x00000, 0x20000, CRC(ad50e92c) SHA1(facac5bbe11716d076a40eacbb67f7caab7a4a27) ) | |
| 567 | 570 | |
| 568 | 571 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) /* 64k for sound cpu code */ |
| 569 | ROM_LOAD( " | |
| 572 | ROM_LOAD( " | |
| 570 | 573 | |
| 571 | 574 | ROM_REGION( 0x200000, REGION_GFX1, ROMREGION_DISPOSE ) |
| 572 | ROM_LOAD( "dd3.f", 0x000000, 0x40000, CRC(89d58d32) SHA1(54cfc154024e014f537c7ae0c2275ece50413bc5) ) /* Background */ | |
| 573 | ROM_LOAD( "dd3.e", 0x040000, 0x40000, CRC(9bf1538e) SHA1(c7cb96c6b1ac73ec52f46b2a6687bfcfd375ab44) ) | |
| 574 | ROM_LOAD( "dd3.b", 0x080000, 0x40000, CRC(8f671a62) SHA1(b5dba61ad6ed39440bb98f7b2dc1111779d6c4a1) ) | |
| 575 | ROM_LOAD( "dd3.a", 0x0c0000, 0x40000, CRC(0f74ea1c) SHA1(6bd8dd89bd22b29038cf502a898336e95e50a9cc) ) | |
| 575 | ROM_LOAD( "30j-7.ic4", 0x000000, 0x40000, CRC(89d58d32) SHA1(54cfc154024e014f537c7ae0c2275ece50413bc5) ) /* Background */ | |
| 576 | ROM_LOAD( "30j-6.ic5", 0x040000, 0x40000, CRC(9bf1538e) SHA1(c7cb96c6b1ac73ec52f46b2a6687bfcfd375ab44) ) | |
| 577 | ROM_LOAD( "30j-5.ic6", 0x080000, 0x40000, CRC(8f671a62) SHA1(b5dba61ad6ed39440bb98f7b2dc1111779d6c4a1) ) | |
| 578 | ROM_LOAD( "30j-4.ic7", 0x0c0000, 0x40000, CRC(0f74ea1c) SHA1(6bd8dd89bd22b29038cf502a898336e95e50a9cc) ) | |
| 576 | 579 | |
| 577 | ROM_REGION( 0x400000, REGION_GFX2, ROMREGION_DISPOSE ) | |
| 578 | /* sprites */ | |
| 579 | ROM_LOAD( "dd3.3e", 0x000000, 0x20000, CRC(726c49b7) SHA1(dbafad47bb6b717c409fdc5d81c413f1282f2bbb) ) //4a | |
| 580 | ROM_LOAD( "dd3.3d", 0x020000, 0x20000, CRC(37a1c335) SHA1(de70ba51788b601591c3aff71cb94aae349b272d) ) //3a | |
| 581 | ROM_LOAD( "dd3.3c", 0x040000, 0x20000, CRC(2bcfe63c) SHA1(678ef0e7cc38e4df1e1d1e3f5cba6601aa520ec6) ) //2a | |
| 582 | ROM_LOAD( "dd3.3b", 0x060000, 0x20000, CRC(b864cf17) SHA1(39a5155f40ba500bf201acca6f7d230cb0ea8309) ) //1a | |
| 583 | ROM_LOAD( "dd3.3a", 0x080000, 0x10000, CRC(20d64bea) SHA1(c2bd86bc5310f13f158ca2f93cfc57e5dbf01f7e) ) //5a | |
| 580 | ROM_REGION( 0x400000, REGION_GFX2, ROMREGION_DISPOSE ) /* sprites */ | |
| 581 | ROM_LOAD( "30j-3.ic9", 0x000000, 0x80000, CRC(b3151871) SHA1(a647b4d9bddd6b8715a1d24641391a2e2d0f8867) ) | |
| 582 | ROM_LOAD( "30a12-0.ic8", 0x080000, 0x10000, CRC(20d64bea) SHA1(c2bd86bc5310f13f158ca2f93cfc57e5dbf01f7e) ) | |
| 583 | ROM_LOAD( "30j-2.ic11", 0x100000, 0x80000, CRC(41c6fb08) SHA1(9fb6105bdc9ff8eeaacf378d208cf6d32a09401b) ) | |
| 584 | ROM_LOAD( "30a11-0.ic10", 0x180000, 0x10000, CRC(785d71b0) SHA1(e3f63f6984589d4d6ec6200ae33ce12610d27774) ) | |
| 585 | ROM_LOAD( "30j-1.ic13", 0x200000, 0x80000, CRC(67a6f114) SHA1(7d0f3cd6376128ddfcd13f2ec683ec270e95c19c) ) | |
| 586 | ROM_LOAD( "30a10-0.ic12", 0x280000, 0x10000, CRC(15e43d12) SHA1(b51cbd0c4c38b802e60616e11795b1ac43bfcb01) ) | |
| 587 | ROM_LOAD( "30j-0.ic15", 0x300000, 0x80000, CRC(f15dafbe) SHA1(68049c4542e1c7119bbf1be1fa44e3eea9c11b6e) ) | |
| 588 | ROM_LOAD( "30a9-0.ic14", 0x380000, 0x10000, CRC(5a47e7a4) SHA1(74b9dff6e3d5fe22ea505dc439121ff64889769c) ) | |
| 584 | 589 | |
| 585 | ROM_LOAD( "dd3.2e", 0x100000, 0x20000, CRC(8c71eb06) SHA1(e47acf9e2d5eeec0cff9654210a43c690a45d447) ) //4b | |
| 586 | ROM_LOAD( "dd3.2d", 0x120000, 0x20000, CRC(3e134be9) SHA1(0a75b56353bed2743f7ce8f3f74379fc9f0d3cb9) ) //3b | |
| 587 | ROM_LOAD( "dd3.2c", 0x140000, 0x20000, CRC(b4115ef0) SHA1(d90943f75051c7590a0effcc30fa813890c9ad11) ) //2b | |
| 588 | ROM_LOAD( "dd3.2b", 0x160000, 0x20000, CRC(4639333d) SHA1(8e3c982d6fa38cbec42e8de780f165547b5b0271) ) //1b | |
| 589 | ROM_LOAD( "dd3.2a", 0x180000, 0x10000, CRC(785d71b0) SHA1(e3f63f6984589d4d6ec6200ae33ce12610d27774) ) //5b | |
| 590 | ||
| 591 | ROM_LOAD( "dd3.1e", 0x200000, 0x20000, CRC(04420cc8) SHA1(ed148c52374bbd0d29c12070ea1499333fc04449) ) //4c | |
| 592 | ROM_LOAD( "dd3.1d", 0x220000, 0x20000, CRC(33f97b2f) SHA1(40dc5357caa17ed6673588422332966ee97752b7) ) //3c | |
| 593 | ROM_LOAD( "dd3.1c", 0x240000, 0x20000, CRC(0f9a8f2a) SHA1(d7e46d32067d3f8b3bacbf96ea313645a9a48410) ) //2c | |
| 594 | ROM_LOAD( "dd3.1b", 0x260000, 0x20000, CRC(15c91772) SHA1(8578b6c501e3af64863bd6b28ef59c6884dfe028) ) //1c | |
| 595 | ROM_LOAD( "dd3.1a", 0x280000, 0x10000, CRC(15e43d12) SHA1(b51cbd0c4c38b802e60616e11795b1ac43bfcb01) ) //5c | |
| 596 | ||
| 597 | ROM_LOAD( "dd3.0e", 0x300000, 0x20000, CRC(894734b3) SHA1(46fa174a303e85f439254976252835626c4b2ddc) ) //4d | |
| 598 | ROM_LOAD( "dd3.0d", 0x320000, 0x20000, CRC(cd504584) SHA1(674481b524853dbfcb7d173d58250b1be8464313) ) //3d | |
| 599 | ROM_LOAD( "dd3.0c", 0x340000, 0x20000, CRC(38e8a9ad) SHA1(1c66acde8f72fa7c6415a7aadc2dbf4300446c88) ) //2d | |
| 600 | ROM_LOAD( "dd3.0b", 0x360000, 0x20000, CRC(80c1cb74) SHA1(5558fa36b238cff1bee9df921e77d7de2062bf15) ) //1d | |
| 601 | ROM_LOAD( "dd3.0a", 0x380000, 0x10000, CRC(5a47e7a4) SHA1(74b9dff6e3d5fe22ea505dc439121ff64889769c) ) //5d | |
| 602 | ||
| 603 | 590 | ROM_REGION( 0x080000, REGION_SOUND1, 0 ) /* ADPCM Samples */ |
| 604 | ROM_LOAD( "dd3.j7", 0x000000, 0x40000, CRC(3af21dbe) SHA1(295d0b7f33c55ef37a71382a22edd8fc97fa5353) ) | |
| 605 | ROM_LOAD( "dd3.j8", 0x040000, 0x40000, CRC(c28b53cd) SHA1(93d29669ec899fd5852f61b1d91d0a90cc30e192) ) | |
| 591 | ROM_LOAD( "30j-8.ic73", 0x000000, 0x80000, CRC(c3ad40f3) SHA1(6f3f5fc5b1050fc9a366e02e8e507183a624494d) ) | |
| 606 | 592 | |
| 607 | 593 | ROM_REGION( 0x0100, REGION_PROMS, 0 ) |
| 608 | ROM_LOAD( "mb7114h.38", 0x0000, 0x0100, CRC(113c7443) SHA1(7b0b13e9f0c219f6d436aeec06494734d1f4a599) ) | |
| 594 | ROM_LOAD( "mb7114h.ic38", 0x000000, 0x00100, CRC(113c7443) SHA1(7b0b13e9f0c219f6d436aeec06494734d1f4a599) ) | |
| 609 | 595 | ROM_END |
| 610 | 596 | |
| 611 | 597 | ROM_START( ddrago3j ) |
| 612 | 598 | ROM_REGION( 0x80000, REGION_CPU1, 0 ) /* 64k for cpu code */ |
| 613 | ROM_LOAD16_BYTE( "30j15", 0x00001, 0x40000, CRC(40618cbc) SHA1(cb05498003a45d773983501d3a0f1584a25dcdd3) ) | |
| 614 | ROM_LOAD16_BYTE( "30j14", 0x00000, 0x20000, CRC(96827e80) SHA1(499c0c67d55ff4816ad8832d1d8836eb7432bd13) ) | |
| 599 | ROM_LOAD16_BYTE( "30j15.ic78", 0x00001, 0x40000, CRC(40618cbc) SHA1(cb05498003a45d773983501d3a0f1584a25dcdd3) ) | |
| 600 | ROM_LOAD16_BYTE( "30j14.ic79", 0x00000, 0x20000, CRC(96827e80) SHA1(499c0c67d55ff4816ad8832d1d8836eb7432bd13) ) | |
| 615 | 601 | |
| 616 | 602 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) /* 64k for sound cpu code */ |
| 617 | ROM_LOAD( " | |
| 603 | ROM_LOAD( " | |
| 618 | 604 | |
| 619 | 605 | ROM_REGION( 0x200000, REGION_GFX1, ROMREGION_DISPOSE ) |
| 620 | ROM_LOAD( "dd3.f", 0x000000, 0x40000, CRC(89d58d32) SHA1(54cfc154024e014f537c7ae0c2275ece50413bc5) ) /* Background */ | |
| 621 | ROM_LOAD( "dd3.e", 0x040000, 0x40000, CRC(9bf1538e) SHA1(c7cb96c6b1ac73ec52f46b2a6687bfcfd375ab44) ) | |
| 622 | ROM_LOAD( "dd3.b", 0x080000, 0x40000, CRC(8f671a62) SHA1(b5dba61ad6ed39440bb98f7b2dc1111779d6c4a1) ) | |
| 623 | ROM_LOAD( "dd3.a", 0x0c0000, 0x40000, CRC(0f74ea1c) SHA1(6bd8dd89bd22b29038cf502a898336e95e50a9cc) ) | |
| 606 | ROM_LOAD( "30j-7.ic4", 0x000000, 0x40000, CRC(89d58d32) SHA1(54cfc154024e014f537c7ae0c2275ece50413bc5) ) /* Background */ | |
| 607 | ROM_LOAD( "30j-6.ic5", 0x040000, 0x40000, CRC(9bf1538e) SHA1(c7cb96c6b1ac73ec52f46b2a6687bfcfd375ab44) ) | |
| 608 | ROM_LOAD( "30j-5.ic6", 0x080000, 0x40000, CRC(8f671a62) SHA1(b5dba61ad6ed39440bb98f7b2dc1111779d6c4a1) ) | |
| 609 | ROM_LOAD( "30j-4.ic7", 0x0c0000, 0x40000, CRC(0f74ea1c) SHA1(6bd8dd89bd22b29038cf502a898336e95e50a9cc) ) | |
| 624 | 610 | |
| 625 | ROM_REGION( 0x400000, REGION_GFX2, ROMREGION_DISPOSE ) | |
| 626 | /* sprites */ | |
| 627 | ROM_LOAD( "dd3.3e", 0x000000, 0x20000, CRC(726c49b7) SHA1(dbafad47bb6b717c409fdc5d81c413f1282f2bbb) ) //4a | |
| 628 | ROM_LOAD( "dd3.3d", 0x020000, 0x20000, CRC(37a1c335) SHA1(de70ba51788b601591c3aff71cb94aae349b272d) ) //3a | |
| 629 | ROM_LOAD( "dd3.3c", 0x040000, 0x20000, CRC(2bcfe63c) SHA1(678ef0e7cc38e4df1e1d1e3f5cba6601aa520ec6) ) //2a | |
| 630 | ROM_LOAD( "dd3.3b", 0x060000, 0x20000, CRC(b864cf17) SHA1(39a5155f40ba500bf201acca6f7d230cb0ea8309) ) //1a | |
| 631 | ROM_LOAD( "30j12-0", 0x080000, 0x10000, CRC(1e9290d7) SHA1(77e660d2dc9a0e2c4c8ceb3e47b7ce674bceb34a) ) //5a | |
| 611 | ROM_REGION( 0x400000, REGION_GFX2, ROMREGION_DISPOSE ) /* sprites */ | |
| 612 | ROM_LOAD( "30j-3.ic9", 0x000000, 0x80000, CRC(b3151871) SHA1(a647b4d9bddd6b8715a1d24641391a2e2d0f8867) ) | |
| 613 | ROM_LOAD( "30j12-0.ic8", 0x080000, 0x10000, CRC(1e9290d7) SHA1(77e660d2dc9a0e2c4c8ceb3e47b7ce674bceb34a) ) | |
| 614 | ROM_LOAD( "30j-2.ic11", 0x100000, 0x80000, CRC(41c6fb08) SHA1(9fb6105bdc9ff8eeaacf378d208cf6d32a09401b) ) | |
| 615 | ROM_LOAD( "30j11-0.ic10", 0x180000, 0x10000, CRC(99195b2a) SHA1(d1c0e1855aed22f169717f94d78bc326e68e3064) ) | |
| 616 | ROM_LOAD( "30j-1.ic13", 0x200000, 0x80000, CRC(67a6f114) SHA1(7d0f3cd6376128ddfcd13f2ec683ec270e95c19c) ) | |
| 617 | ROM_LOAD( "30a10-0.ic12", 0x280000, 0x10000, CRC(e3879b5d) SHA1(fc87aedb0f4964a8d261d86121fe8544b330bed9) ) | |
| 618 | ROM_LOAD( "30j-0.ic15", 0x300000, 0x80000, CRC(f15dafbe) SHA1(68049c4542e1c7119bbf1be1fa44e3eea9c11b6e) ) | |
| 619 | ROM_LOAD( "30j9-0.ic14", 0x380000, 0x10000, CRC(2759ae84) SHA1(02c70958259f56174ce2ba2db56040dad72be02b) ) | |
| 632 | 620 | |
| 633 | ROM_LOAD( "dd3.2e", 0x100000, 0x20000, CRC(8c71eb06) SHA1(e47acf9e2d5eeec0cff9654210a43c690a45d447) ) //4b | |
| 634 | ROM_LOAD( "dd3.2d", 0x120000, 0x20000, CRC(3e134be9) SHA1(0a75b56353bed2743f7ce8f3f74379fc9f0d3cb9) ) //3b | |
| 635 | ROM_LOAD( "dd3.2c", 0x140000, 0x20000, CRC(b4115ef0) SHA1(d90943f75051c7590a0effcc30fa813890c9ad11) ) //2b | |
| 636 | ROM_LOAD( "dd3.2b", 0x160000, 0x20000, CRC(4639333d) SHA1(8e3c982d6fa38cbec42e8de780f165547b5b0271) ) //1b | |
| 637 | ROM_LOAD( "30j11-0", 0x180000, 0x10000, CRC(99195b2a) SHA1(d1c0e1855aed22f169717f94d78bc326e68e3064) ) //5b | |
| 638 | ||
| 639 | ROM_LOAD( "dd3.1e", 0x200000, 0x20000, CRC(04420cc8) SHA1(ed148c52374bbd0d29c12070ea1499333fc04449) ) //4c | |
| 640 | ROM_LOAD( "dd3.1d", 0x220000, 0x20000, CRC(33f97b2f) SHA1(40dc5357caa17ed6673588422332966ee97752b7) ) //3c | |
| 641 | ROM_LOAD( "dd3.1c", 0x240000, 0x20000, CRC(0f9a8f2a) SHA1(d7e46d32067d3f8b3bacbf96ea313645a9a48410) ) //2c | |
| 642 | ROM_LOAD( "dd3.1b", 0x260000, 0x20000, CRC(15c91772) SHA1(8578b6c501e3af64863bd6b28ef59c6884dfe028) ) //1c | |
| 643 | ROM_LOAD( "30a10-0", 0x280000, 0x10000, CRC(e3879b5d) SHA1(fc87aedb0f4964a8d261d86121fe8544b330bed9) ) //5c | |
| 644 | ||
| 645 | ROM_LOAD( "dd3.0e", 0x300000, 0x20000, CRC(894734b3) SHA1(46fa174a303e85f439254976252835626c4b2ddc) ) //4d | |
| 646 | ROM_LOAD( "dd3.0d", 0x320000, 0x20000, CRC(cd504584) SHA1(674481b524853dbfcb7d173d58250b1be8464313) ) //3d | |
| 647 | ROM_LOAD( "dd3.0c", 0x340000, 0x20000, CRC(38e8a9ad) SHA1(1c66acde8f72fa7c6415a7aadc2dbf4300446c88) ) //2d | |
| 648 | ROM_LOAD( "dd3.0b", 0x360000, 0x20000, CRC(80c1cb74) SHA1(5558fa36b238cff1bee9df921e77d7de2062bf15) ) //1d | |
| 649 | ROM_LOAD( "30j9-0", 0x380000, 0x10000, CRC(2759ae84) SHA1(02c70958259f56174ce2ba2db56040dad72be02b) ) //5d | |
| 650 | ||
| 651 | 621 | ROM_REGION( 0x080000, REGION_SOUND1, 0 ) /* ADPCM Samples */ |
| 652 | ROM_LOAD( "dd3.j7", 0x000000, 0x40000, CRC(3af21dbe) SHA1(295d0b7f33c55ef37a71382a22edd8fc97fa5353) ) | |
| 653 | ROM_LOAD( "dd3.j8", 0x040000, 0x40000, CRC(c28b53cd) SHA1(93d29669ec899fd5852f61b1d91d0a90cc30e192) ) | |
| 622 | ROM_LOAD( "30j-8.ic73", 0x000000, 0x80000, CRC(c3ad40f3) SHA1(6f3f5fc5b1050fc9a366e02e8e507183a624494d) ) | |
| 654 | 623 | |
| 655 | 624 | ROM_REGION( 0x0100, REGION_PROMS, 0 ) |
| 656 | ROM_LOAD( "mb7114h.38", 0x0000, 0x0100, CRC(113c7443) SHA1(7b0b13e9f0c219f6d436aeec06494734d1f4a599) ) | |
| 625 | ROM_LOAD( "mb7114h.ic38", 0x000000, 0x00100, CRC(113c7443) SHA1(7b0b13e9f0c219f6d436aeec06494734d1f4a599) ) | |
| 657 | 626 | ROM_END |
| 658 | 627 | |
| 659 | 628 | ROM_START( ddrago3b ) |
| r1711 | r1712 | |
| 808 | 777 | |
| 809 | 778 | /* Game Drivers */ |
| 810 | 779 | |
| 811 | GAME( 1990, ddragon3, 0, | |
| 780 | GAME( 1990, ddragon3, 0, ddragon3, ddragon3, 0, ROT0, "Technos", "Double Dragon 3 - The Rosetta Stone (US)", GAME_SUPPORTS_SAVE ) | |
| 812 | 781 | GAME( 1990, ddrago3j, ddragon3, ddragon3, ddragon3, 0, ROT0, "Technos", "Double Dragon 3 - The Rosetta Stone (Japan)", GAME_SUPPORTS_SAVE ) |
| 813 | 782 | GAME( 1990, ddrago3b, ddragon3, ddrago3b, ddrago3b, 0, ROT0, "bootleg", "Double Dragon 3 - The Rosetta Stone (bootleg)", GAME_SUPPORTS_SAVE ) |
| 814 | GAME( 1990, ctribe, 0, ctribe, ctribe, 0, ROT0, "Technos", "The Combatribes (US)", GAME_SUPPORTS_SAVE ) | |
| 815 | GAME( 1990, ctribe1, ctribe, ctribe, ctribe, 0, ROT0, "Technos", "The Combatribes (US) - Set 1?", GAME_SUPPORTS_SAVE ) | |
| 816 | GAME( 1990, ctribeb, ctribe, ctribe, ctribe, 0, ROT0, "bootleg", "The Combatribes (bootleg)", GAME_SUPPORTS_SAVE ) | |
| 783 | GAME( 1990, ctribe, 0, ctribe, ctribe, 0, ROT0, "Technos", "The Combatribes (US)", GAME_SUPPORTS_SAVE ) | |
| 784 | GAME( 1990, ctribe1, ctribe, ctribe, ctribe, 0, ROT0, "Technos", "The Combatribes (US) - Set 1?", GAME_SUPPORTS_SAVE ) | |
| 785 | GAME( 1990, ctribeb, ctribe, ctribe, ctribe, 0, ROT0, "bootleg", "The Combatribes (bootleg)", GAME_SUPPORTS_SAVE ) |
| r1711 | r1712 | |
|---|---|---|
| 116 | 116 | } |
| 117 | 117 | |
| 118 | 118 | |
| 119 | static PALETTE_INIT( sprint2 ) | |
| 120 | { | |
| 121 | palette_set_color(machine, 0, MAKE_RGB(0x00, 0x00, 0x00)); | |
| 122 | palette_set_color(machine, 1, MAKE_RGB(0x5b, 0x5b, 0x5b)); | |
| 123 | palette_set_color(machine, 2, MAKE_RGB(0xa4, 0xa4, 0xa4)); | |
| 124 | palette_set_color(machine, 3, MAKE_RGB(0xff, 0xff, 0xff)); | |
| 125 | ||
| 126 | colortable[0x0] = 1; /* black playfield */ | |
| 127 | colortable[0x1] = 0; | |
| 128 | colortable[0x2] = 1; /* white playfield */ | |
| 129 | colortable[0x3] = 3; | |
| 130 | ||
| 131 | colortable[0x4] = 1; /* car #1 */ | |
| 132 | colortable[0x5] = 3; | |
| 133 | colortable[0x6] = 1; /* car #2 */ | |
| 134 | colortable[0x7] = 0; | |
| 135 | colortable[0x8] = 1; /* car #3 */ | |
| 136 | colortable[0x9] = 2; | |
| 137 | colortable[0xa] = 1; /* car #4 */ | |
| 138 | colortable[0xb] = 2; | |
| 139 | } | |
| 140 | ||
| 141 | ||
| 142 | 119 | static READ8_HANDLER( sprint2_wram_r ) |
| 143 | 120 | { |
| 144 | 121 | return sprint2_video_ram[0x380 + offset % 0x80]; |
| r1711 | r1712 | |
| 534 | 511 | MDRV_CPU_VBLANK_INT(sprint2, 1) |
| 535 | 512 | MDRV_WATCHDOG_VBLANK_INIT(8) |
| 536 | 513 | |
| 537 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 538 | ||
| 539 | 514 | /* video hardware */ |
| 540 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 515 | MDRV_SCREEN_ADD("main", RASTER) | |
| 516 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 541 | 517 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 542 | 518 | MDRV_SCREEN_SIZE(512, 262) |
| 543 | 519 | MDRV_SCREEN_VISIBLE_AREA(0, 511, 0, 223) |
| 520 | ||
| 544 | 521 | MDRV_GFXDECODE(sprint2) |
| 545 | MDRV_PALETTE_LENGTH(4) | |
| 546 | MDRV_COLORTABLE_LENGTH(12) | |
| 522 | MDRV_PALETTE_LENGTH(12) | |
| 547 | 523 | |
| 548 | 524 | MDRV_PALETTE_INIT(sprint2) |
| 549 | 525 | MDRV_VIDEO_START(sprint2) |
| r1711 | r1712 | |
|---|---|---|
| 497 | 497 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 498 | 498 | |
| 499 | 499 | /* video hardware */ |
| 500 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 501 | 500 | MDRV_PALETTE_LENGTH(2048+32768) |
| 502 | 501 | |
| 503 | MDRV_SCREEN_ADD("main", | |
| 502 | MDRV_SCREEN_ADD("main", RASTER) | |
| 504 | 503 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 505 | 504 | MDRV_SCREEN_RAW_PARAMS(40000000/8, 318, 0, 256, 264, 0, 240) |
| 506 | 505 |
| r1711 | r1712 | |
|---|---|---|
| 328 | 328 | MDRV_CPU_PROGRAM_MAP(dragrace_readmem, dragrace_writemem) |
| 329 | 329 | MDRV_CPU_VBLANK_INT(irq0_line_hold, 4) |
| 330 | 330 | MDRV_WATCHDOG_VBLANK_INIT(8) |
| 331 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 332 | 331 | |
| 333 | 332 | MDRV_MACHINE_RESET(dragrace) |
| 334 | 333 | |
| 335 | 334 | /* video hardware */ |
| 336 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 335 | MDRV_SCREEN_ADD("main", RASTER) | |
| 336 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 337 | 337 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 338 | 338 | MDRV_SCREEN_SIZE(256, 262) |
| 339 | 339 | MDRV_SCREEN_VISIBLE_AREA(0, 255, 0, 239) |
| 340 | ||
| 340 | 341 | MDRV_GFXDECODE(dragrace) |
| 341 | 342 | MDRV_PALETTE_LENGTH(16) |
| 342 | 343 | MDRV_PALETTE_INIT(dragrace) |
| r1711 | r1712 | |
|---|---|---|
| 486 | 486 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,32) |
| 487 | 487 | |
| 488 | 488 | /* video hardware */ |
| 489 | MDRV_ | |
| 489 | MDRV_SC | |
| 490 | 490 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 491 | 491 | MDRV_SCREEN_REFRESH_RATE(60) |
| 492 | MDRV_SCREEN_VBLANK_TIME( | |
| 492 | MDRV_SCREEN_VBLANK_TIME( | |
| 493 | 493 | MDRV_SCREEN_SIZE(512, 256) |
| 494 | 494 | MDRV_SCREEN_VISIBLE_AREA(8*8, 512-1-8*8, 0+8, 256-1-8) |
| 495 | ||
| 495 | 496 | MDRV_GFXDECODE(discoboy) |
| 496 | 497 | MDRV_PALETTE_LENGTH(0x1000) |
| 497 | 498 |
| r1711 | r1712 | |
|---|---|---|
| 869 | 869 | MDRV_CPU_PROGRAM_MAP(mediagx_map, 0) |
| 870 | 870 | MDRV_CPU_IO_MAP(mediagx_io, 0) |
| 871 | 871 | |
| 872 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 873 | ||
| 874 | 872 | MDRV_MACHINE_RESET(mediagx) |
| 875 | 873 | |
| 876 | 874 | MDRV_NVRAM_HANDLER( mc146818 ) |
| 877 | 875 | |
| 878 | 876 | /* video hardware */ |
| 879 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 877 | MDRV_SCREEN_ADD("main", RASTER) | |
| 878 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 880 | 879 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 881 | 880 | MDRV_SCREEN_SIZE(640, 480) |
| 882 | 881 | MDRV_SCREEN_VISIBLE_AREA(0, 639, 0, 239) |
| 882 | ||
| 883 | 883 | MDRV_GFXDECODE(CGA) |
| 884 | 884 | MDRV_PALETTE_LENGTH(16) |
| 885 | 885 |
| r1711 | r1712 | |
|---|---|---|
| 112 | 112 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL |
| 113 | 113 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL |
| 114 | 114 | |
| 115 | PORT_START_TAG("DSW") | |
| 116 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) | |
| 115 | PORT_START_TAG("DSW1") | |
| 116 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1,2") | |
| 117 | 117 | PORT_DIPSETTING( 0x00, "3" ) |
| 118 | 118 | PORT_DIPSETTING( 0x01, "4" ) |
| 119 | 119 | PORT_DIPSETTING( 0x02, "5" ) |
| 120 | 120 | PORT_DIPSETTING( 0x03, "6" ) |
| 121 | PORT_DIPNAME( 0x1c, 0x00, DEF_STR( Coinage ) ) | |
| 121 | PORT_DIPNAME( 0x1c, 0x00, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:3,4,5") | |
| 122 | 122 | PORT_DIPSETTING( 0x14, DEF_STR( 3C_1C ) ) |
| 123 | 123 | PORT_DIPSETTING( 0x10, DEF_STR( 2C_1C ) ) |
| 124 | 124 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) |
| r1711 | r1712 | |
| 127 | 127 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_3C ) ) |
| 128 | 128 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_4C ) ) |
| 129 | 129 | PORT_DIPSETTING( 0x1c, "Service Mode/Free Play" ) |
| 130 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Difficulty ) ) | |
| 130 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:6") | |
| 131 | 131 | PORT_DIPSETTING( 0x00, DEF_STR( Easy ) ) |
| 132 | 132 | PORT_DIPSETTING( 0x20, DEF_STR( Hard ) ) |
| 133 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Bonus_Life ) ) | |
| 133 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:7") | |
| 134 | 134 | PORT_DIPSETTING( 0x40, "80000" ) |
| 135 | 135 | PORT_DIPSETTING( 0x00, "120000" ) |
| 136 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Cabinet ) ) | |
| 136 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW1:8") | |
| 137 | 137 | PORT_DIPSETTING( 0x80, DEF_STR( Upright ) ) |
| 138 | 138 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) |
| 139 | 139 | INPUT_PORTS_END |
| r1711 | r1712 | |
| 188 | 188 | MDRV_CPU_IO_MAP(readport,writeport) |
| 189 | 189 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 190 | 190 | |
| 191 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 192 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 193 | ||
| 194 | 191 | /* video hardware */ |
| 195 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 192 | MDRV_SCREEN_ADD("main", RASTER) | |
| 193 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 194 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 196 | 195 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 197 | 196 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 198 | 197 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-3) /* The -3 makes the cocktail mode perfect */ |
| r1711 | r1712 | |
|---|---|---|
| 267 | 267 | MDRV_CPU_VBLANK_INT(irq0_line_pulse, 1) |
| 268 | 268 | MDRV_CPU_PERIODIC_INT(orbit_interrupt, 240) |
| 269 | 269 | |
| 270 | MDRV_SCREEN_REFRESH_RATE(60) /* interlaced */ | |
| 271 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC((int) ((22. * 1000000) / (262. * 60) + 0.5))) | |
| 272 | 270 | MDRV_MACHINE_RESET(orbit) |
| 273 | 271 | |
| 274 | 272 | /* video hardware */ |
| 275 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 273 | MDRV_SCREEN_ADD("main", RASTER) | |
| 274 | MDRV_SCREEN_REFRESH_RATE(60) /* interlaced */ | |
| 275 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC((int) ((22. * 1000000) / (262. * 60) + 0.5))) | |
| 276 | 276 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 277 | 277 | MDRV_SCREEN_SIZE(512, 524) |
| 278 | 278 | MDRV_SCREEN_VISIBLE_AREA(0, 511, 0, 479) |
| 279 | ||
| 279 | 280 | MDRV_GFXDECODE(orbit) |
| 280 | 281 | MDRV_PALETTE_LENGTH(2) |
| 281 | 282 | MDRV_PALETTE_INIT(orbit) |
| r1711 | r1712 | |
|---|---|---|
| 468 | 468 | MDRV_CPU_PROGRAM_MAP(policetr_map,0) |
| 469 | 469 | MDRV_CPU_VBLANK_INT(irq4_gen,1) |
| 470 | 470 | |
| 471 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 472 | ||
| 473 | 471 | MDRV_NVRAM_HANDLER(policetr) |
| 474 | 472 | |
| 475 | 473 | /* video hardware */ |
| 476 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 474 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 475 | ||
| 476 | MDRV_SCREEN_ADD("main", RASTER) | |
| 477 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 477 | 478 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 478 | 479 | MDRV_SCREEN_SIZE(400, 262) /* needs to be verified */ |
| 479 | 480 | MDRV_SCREEN_VISIBLE_AREA(0, 393, 0, 239) |
| 481 | ||
| 480 | 482 | MDRV_PALETTE_LENGTH(256) |
| 481 | 483 | |
| 482 | 484 | MDRV_VIDEO_START(policetr) |
| r1711 | r1712 | |
|---|---|---|
| 1786 | 1786 | /* audio CPU */ |
| 1787 | 1787 | MDRV_CPU_PROGRAM_MAP(spisound_map, 0) |
| 1788 | 1788 | |
| 1789 | MDRV_SCREEN_REFRESH_RATE(54) | |
| 1790 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1791 | 1789 | MDRV_INTERLEAVE(200) |
| 1792 | 1790 | |
| 1793 | 1791 | MDRV_MACHINE_RESET(spi) |
| 1794 | 1792 | MDRV_NVRAM_HANDLER(spi) |
| 1795 | 1793 | |
| 1796 | 1794 | /* video hardware */ |
| 1797 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 1795 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1796 | MDRV_SCREEN_REFRESH_RATE(54) | |
| 1797 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1798 | 1798 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) |
| 1799 | 1799 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 1800 | 1800 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 30*8-1) |
| 1801 | ||
| 1801 | 1802 | MDRV_GFXDECODE(spi) |
| 1802 | 1803 | MDRV_PALETTE_LENGTH(6144) |
| 1803 | 1804 | |
| r1711 | r1712 | |
| 2100 | 2101 | MDRV_CPU_PROGRAM_MAP(seibu386_map, 0) |
| 2101 | 2102 | MDRV_CPU_VBLANK_INT(spi_interrupt, 1) |
| 2102 | 2103 | |
| 2103 | MDRV_SCREEN_REFRESH_RATE(54) | |
| 2104 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2105 | ||
| 2106 | 2104 | MDRV_NVRAM_HANDLER(sxx2f) |
| 2107 | 2105 | MDRV_MACHINE_RESET(seibu386) |
| 2108 | 2106 | |
| 2109 | 2107 | /* video hardware */ |
| 2110 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 2108 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2109 | MDRV_SCREEN_REFRESH_RATE(54) | |
| 2110 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2111 | 2111 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) |
| 2112 | 2112 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 2113 | 2113 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 30*8-1) |
| 2114 | ||
| 2114 | 2115 | MDRV_GFXDECODE(spi) |
| 2115 | 2116 | MDRV_PALETTE_LENGTH(6144) |
| 2116 | 2117 |
| r1711 | r1712 | |
|---|---|---|
| 697 | 697 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 698 | 698 | |
| 699 | 699 | /* video hardware */ |
| 700 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 701 | 700 | MDRV_VIDEO_UPDATE(tms340x0) |
| 702 | 701 | |
| 703 | MDRV_SCREEN_ADD("main", | |
| 702 | MDRV_SCREEN_ADD("main", RASTER) | |
| 704 | 703 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 705 | 704 | MDRV_SCREEN_RAW_PARAMS(40000000/6, 212*2, 0, 161*2, 262, 0, 241) |
| 706 | 705 | |
| r1711 | r1712 | |
| 727 | 726 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 728 | 727 | |
| 729 | 728 | /* video hardware */ |
| 730 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 731 | 729 | MDRV_VIDEO_UPDATE(tms340x0) |
| 732 | 730 | |
| 733 | MDRV_SCREEN_ADD("main", | |
| 731 | MDRV_SCREEN_ADD("main", RASTER) | |
| 734 | 732 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 735 | 733 | MDRV_SCREEN_RAW_PARAMS(40000000/6, 424, 0, 320, 262, 0, 240) |
| 736 | 734 |
| r1711 | r1712 | |
|---|---|---|
| 455 | 455 | MDRV_CPU_PROGRAM_MAP(mwarr_map,0) |
| 456 | 456 | MDRV_CPU_VBLANK_INT(irq4_line_hold,1) |
| 457 | 457 | |
| 458 | MDRV_SCREEN_REFRESH_RATE(54) | |
| 459 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 460 | ||
| 461 | 458 | MDRV_GFXDECODE(mwarr) |
| 462 | 459 | |
| 463 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 460 | ||
| 461 | MDRV_SCREEN_ADD("main", RASTER) | |
| 462 | MDRV_SCREEN_REFRESH_RATE(54) | |
| 463 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 464 | 464 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 465 | 465 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 466 | 466 | MDRV_SCREEN_VISIBLE_AREA(8+1, 48*8-1-8-1, 0, 30*8-1) |
| 467 | ||
| 467 | 468 | MDRV_PALETTE_LENGTH(0x800) |
| 468 | 469 | |
| 469 | 470 | MDRV_VIDEO_START(mwarr) |
| r1711 | r1712 | |
|---|---|---|
| 365 | 365 | MDRV_CPU_ADD_TAG("main", Z80, 4000000) // 4 MHz??? |
| 366 | 366 | MDRV_CPU_VBLANK_INT(irq0_line_hold, 1) |
| 367 | 367 | |
| 368 | /* video hardware */ | |
| 369 | MDRV_SCREEN_ADD("main", RASTER) | |
| 368 | 370 | MDRV_SCREEN_REFRESH_RATE(60) |
| 369 | 371 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(5000)) // frames per second, vblank duration (otherwise sprites lag) |
| 370 | ||
| 371 | /* video hardware */ | |
| 372 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 373 | 372 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 374 | 373 | MDRV_SCREEN_SIZE(32 * 8, 32 * 8) |
| 375 | 374 | MDRV_SCREEN_VISIBLE_AREA(1 * 8, 31 * 8 - 1, 2 * 8, 30 * 8 - 1) |
| 375 | ||
| 376 | 376 | MDRV_PALETTE_LENGTH(1024) |
| 377 | 377 | MDRV_PALETTE_INIT(RRRR_GGGG_BBBB) |
| 378 | 378 |
| r1711 | r1712 | |
|---|---|---|
| 768 | 768 | MDRV_CPU_PROGRAM_MAP(readmem_cpu3,writemem_cpu3) |
| 769 | 769 | MDRV_CPU_VBLANK_INT(irq0_line_assert,1) |
| 770 | 770 | |
| 771 | MDRV_SCREEN_REFRESH_RATE(60.606060) | |
| 772 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 773 | 771 | MDRV_INTERLEAVE(100) /* a high value to ensure proper synchronization of the CPUs */ |
| 774 | 772 | MDRV_MACHINE_RESET(gaplus) |
| 775 | 773 | |
| 776 | 774 | /* video hardware */ |
| 777 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 775 | MDRV_SCREEN_ADD("main", RASTER) | |
| 776 | MDRV_SCREEN_REFRESH_RATE(60.606060) | |
| 777 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 778 | 778 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 779 | 779 | MDRV_SCREEN_SIZE(36*8, 28*8) |
| 780 | 780 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 0*8, 28*8-1) |
| 781 | ||
| 781 | 782 | MDRV_GFXDECODE(gaplus) |
| 782 | 783 | MDRV_PALETTE_LENGTH(64*4+64*8) |
| 783 | 784 |
| r1711 | r1712 | |
|---|---|---|
| 611 | 611 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 612 | 612 | |
| 613 | 613 | /* video hardware */ |
| 614 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 615 | 614 | MDRV_PALETTE_LENGTH(32768) |
| 616 | 615 | |
| 617 | MDRV_SCREEN_ADD("main", | |
| 616 | MDRV_SCREEN_ADD("main", RASTER) | |
| 618 | 617 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 619 | 618 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, 505, 0, 399, 289, 0, 253) |
| 620 | 619 |
| r1711 | r1712 | |
|---|---|---|
| 241 | 241 | MDRV_CPU_VBLANK_INT(carpolo_timer_interrupt,1) /* this not strictly VBLANK, |
| 242 | 242 | but it's supposed to happen 60 |
| 243 | 243 | times a sec, so it's a good place */ |
| 244 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 245 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 246 | ||
| 247 | 244 | MDRV_MACHINE_START(carpolo) |
| 248 | 245 | MDRV_MACHINE_RESET(carpolo) |
| 249 | 246 | |
| 250 | 247 | /* video hardware */ |
| 251 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 248 | MDRV_SCREEN_ADD("main", RASTER) | |
| 249 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 250 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 252 | 251 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 253 | 252 | MDRV_SCREEN_SIZE(256, 256) |
| 254 | 253 | MDRV_SCREEN_VISIBLE_AREA(0, 239, 0, 255) |
| 254 | ||
| 255 | 255 | MDRV_GFXDECODE(carpolo) |
| 256 | 256 | MDRV_PALETTE_LENGTH(12*2+2*16+4*2) |
| 257 | 257 |
| r1711 | r1712 | |
|---|---|---|
| 234 | 234 | MDRV_CPU_IO_MAP(readport,writeport) |
| 235 | 235 | MDRV_CPU_VBLANK_INT(drmicro_interrupt,1) |
| 236 | 236 | |
| 237 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 238 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 239 | 237 | MDRV_INTERLEAVE(1) |
| 240 | 238 | |
| 241 | 239 | /* video hardware */ |
| 242 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 240 | MDRV_SCREEN_ADD("main", RASTER) | |
| 241 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 242 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 243 | 243 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 244 | 244 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 245 | 245 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 246 | ||
| 246 | 247 | MDRV_GFXDECODE(drmicro) |
| 247 | 248 | MDRV_PALETTE_LENGTH(512) |
| 248 | 249 |
| r1711 | r1712 | |
|---|---|---|
| 272 | 272 | MDRV_CPU_IO_MAP(readport,writeport) |
| 273 | 273 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 274 | 274 | |
| 275 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 276 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 277 | ||
| 278 | 275 | /* video hardware */ |
| 279 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 276 | MDRV_SCREEN_ADD("main", RASTER) | |
| 277 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 278 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 280 | 279 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 281 | 280 | MDRV_SCREEN_SIZE(320, 256) |
| 282 | 281 | MDRV_SCREEN_VISIBLE_AREA(0*8, 34*8-1, 0*8, 29*8-1) |
| 283 | 282 | |
| 284 | 283 | MDRV_GFXDECODE(speedatk) |
| 285 | MDRV_PALETTE_LENGTH(16) | |
| 286 | MDRV_COLORTABLE_LENGTH(0x100) | |
| 284 | MDRV_PALETTE_LENGTH(0x100) | |
| 287 | 285 | MDRV_PALETTE_INIT(speedatk) |
| 288 | 286 | |
| 289 | 287 | MDRV_VIDEO_START(speedatk) |
| r1711 | r1712 | |
|---|---|---|
| 260 | 260 | MDRV_CPU_IO_MAP(vroulet_io_map, 0) |
| 261 | 261 | MDRV_CPU_VBLANK_INT(irq0_line_hold, 1) |
| 262 | 262 | |
| 263 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 264 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 265 | 263 | MDRV_MACHINE_RESET(vroulet) |
| 266 | 264 | |
| 267 | 265 | MDRV_NVRAM_HANDLER(generic_1fill) |
| 268 | 266 | |
| 269 | 267 | // video hardware |
| 270 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 268 | ||
| 269 | MDRV_SCREEN_ADD("main", RASTER) | |
| 270 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 271 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 271 | 272 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 272 | 273 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 273 | 274 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 170 | 170 | MDRV_CPU_IO_MAP(twins_io,0) |
| 171 | 171 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,1) |
| 172 | 172 | |
| 173 | /* video hardware */ | |
| 174 | MDRV_SCREEN_ADD("main", RASTER) | |
| 173 | 175 | MDRV_SCREEN_REFRESH_RATE(50) |
| 174 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 175 | ||
| 176 | /* video hardware */ | |
| 177 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 176 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 178 | 177 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 179 | 178 | MDRV_SCREEN_SIZE(320,256) |
| 180 | 179 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 0, 200-1) |
| 180 | ||
| 181 | 181 | MDRV_PALETTE_LENGTH(0x100) |
| 182 | 182 | |
| 183 | 183 | MDRV_VIDEO_START(twins) |
| r1711 | r1712 | |
| 258 | 258 | MDRV_CPU_IO_MAP(twinsa_io,0) |
| 259 | 259 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,1) |
| 260 | 260 | |
| 261 | /* video hardware */ | |
| 262 | MDRV_SCREEN_ADD("main", RASTER) | |
| 261 | 263 | MDRV_SCREEN_REFRESH_RATE(50) |
| 262 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 263 | ||
| 264 | /* video hardware */ | |
| 265 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 264 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 266 | 265 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 267 | 266 | MDRV_SCREEN_SIZE(320,256) |
| 268 | 267 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 0, 200-1) |
| 268 | ||
| 269 | 269 | MDRV_PALETTE_LENGTH(0x1000) |
| 270 | 270 | |
| 271 | 271 | MDRV_VIDEO_START(twinsa) |
| r1711 | r1712 | |
|---|---|---|
| 2493 | 2493 | MDRV_CPU_PROGRAM_MAP(sound_map,0) |
| 2494 | 2494 | MDRV_CPU_VBLANK_INT(irq0_line_hold,4) /* NMIs are caused by the main CPU */ |
| 2495 | 2495 | |
| 2496 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2497 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 2498 | ||
| 2499 | 2496 | MDRV_MACHINE_RESET(system1) |
| 2500 | 2497 | |
| 2501 | 2498 | /* video hardware */ |
| 2502 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER|VIDEO_ALWAYS_UPDATE)// hw collisions | |
| 2499 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ALWAYS_UPDATE)// hw collisions | |
| 2500 | ||
| 2501 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2502 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2503 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2503 | 2504 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2504 | 2505 | MDRV_SCREEN_SIZE(256, 256) |
| 2505 | 2506 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 28*8-1) |
| 2507 | ||
| 2506 | 2508 | MDRV_GFXDECODE(system1) |
| 2507 | 2509 | MDRV_PALETTE_LENGTH(1536) |
| 2508 | 2510 | |
| r1711 | r1712 | |
| 2527 | 2529 | MDRV_IMPORT_FROM( system1 ) |
| 2528 | 2530 | |
| 2529 | 2531 | /* video hardware */ |
| 2532 | MDRV_SCREEN_MODIFY("main") | |
| 2530 | 2533 | MDRV_SCREEN_VISIBLE_AREA(0*8+8, 32*8-1-8, 0*8, 28*8-1) |
| 2531 | 2534 | |
| 2532 | 2535 | MACHINE_DRIVER_END |
| r1711 | r1712 | |
| 2611 | 2614 | MDRV_MACHINE_RESET(system1_banked) |
| 2612 | 2615 | |
| 2613 | 2616 | /* video hardware - same as small - left / right 8 pixels clipped */ |
| 2617 | MDRV_SCREEN_MODIFY("main") | |
| 2614 | 2618 | MDRV_SCREEN_VISIBLE_AREA(0*8+8, 32*8-1-8, 0*8, 28*8-1) |
| 2615 | 2619 | |
| 2616 | 2620 | MDRV_VIDEO_UPDATE(choplifter) |
| r1711 | r1712 | |
| 2630 | 2634 | MDRV_MACHINE_RESET(system1_banked) |
| 2631 | 2635 | |
| 2632 | 2636 | /* video hardware */ |
| 2637 | MDRV_SCREEN_MODIFY("main") | |
| 2633 | 2638 | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 0*8, 28*8-1) |
| 2634 | 2639 | |
| 2635 | 2640 | MACHINE_DRIVER_END |
| r1711 | r1712 | |
| 2652 | 2657 | MDRV_IMPORT_FROM( wbml ) |
| 2653 | 2658 | |
| 2654 | 2659 | /* video hardware */ |
| 2660 | MDRV_SCREEN_MODIFY("main") | |
| 2655 | 2661 | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 1*8, 27*8-1) |
| 2656 | 2662 | |
| 2657 | 2663 | /* video hardware */ |
| r1711 | r1712 | |
|---|---|---|
| 180 | 180 | MDRV_CPU_ADD(I8088, 8000000) |
| 181 | 181 | MDRV_CPU_PROGRAM_MAP(tetriunk_mem, 0) |
| 182 | 182 | MDRV_CPU_IO_MAP(tetriunk_io, 0) |
| 183 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 184 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 185 | 183 | |
| 186 | 184 | /* video hardware */ |
| 187 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 185 | MDRV_SCREEN_ADD("main", RASTER) | |
| 186 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 187 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 188 | 188 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 189 | 189 | MDRV_SCREEN_SIZE(320,200) |
| 190 | 190 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 0, 200-1) |
| 191 | ||
| 191 | 192 | MDRV_GFXDECODE(tetriunk) |
| 192 | 193 | MDRV_PALETTE_LENGTH(256) |
| 193 | 194 | MDRV_PALETTE_INIT(tetrisunk) |
| r1711 | r1712 | |
|---|---|---|
| 362 | 362 | MDRV_CPU_IO_MAP(cultures_io_map,0) |
| 363 | 363 | MDRV_CPU_VBLANK_INT(cultures_interrupt,1) |
| 364 | 364 | |
| 365 | /* video hardware */ | |
| 366 | MDRV_SCREEN_ADD("main", RASTER) | |
| 365 | 367 | MDRV_SCREEN_REFRESH_RATE(60) |
| 366 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 367 | ||
| 368 | /* video hardware */ | |
| 369 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 368 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 370 | 369 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 371 | 370 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 372 | 371 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 0*8, 30*8-1) |
| 372 | ||
| 373 | 373 | MDRV_GFXDECODE(culture) |
| 374 | 374 | MDRV_PALETTE_LENGTH(256) |
| 375 | 375 |
| r1711 | r1712 | |
|---|---|---|
| 356 | 356 | MDRV_CPU_PROGRAM_MAP(readmem_snd,writemem_snd) |
| 357 | 357 | MDRV_CPU_IO_MAP(powerins_io_snd,0) |
| 358 | 358 | |
| 359 | MDRV_SCREEN_REFRESH_RATE(56) | |
| 360 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 361 | ||
| 362 | 359 | MDRV_MACHINE_RESET(powerins) |
| 363 | 360 | |
| 364 | 361 | /* video hardware */ |
| 365 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 362 | MDRV_SCREEN_ADD("main", RASTER) | |
| 363 | MDRV_SCREEN_REFRESH_RATE(56) | |
| 364 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 366 | 365 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 367 | 366 | MDRV_SCREEN_SIZE(320, 256) |
| 368 | 367 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 0+16, 256-16-1) |
| 368 | ||
| 369 | 369 | MDRV_GFXDECODE(powerins) |
| 370 | 370 | MDRV_PALETTE_LENGTH(2048) |
| 371 | 371 | |
| r1711 | r1712 | |
| 393 | 393 | /* basic machine hardware */ |
| 394 | 394 | MDRV_IMPORT_FROM(powerins) |
| 395 | 395 | |
| 396 | MDRV_SCREEN_MODIFY("main") | |
| 396 | 397 | MDRV_SCREEN_REFRESH_RATE(60) |
| 397 | 398 | |
| 398 | 399 | MDRV_CPU_REMOVE("sound") |
| r1711 | r1712 | |
| 410 | 411 | /* basic machine hardware */ |
| 411 | 412 | MDRV_IMPORT_FROM(powerins) |
| 412 | 413 | |
| 414 | MDRV_SCREEN_MODIFY("main") | |
| 413 | 415 | MDRV_SCREEN_REFRESH_RATE(60) |
| 414 | 416 | |
| 415 | 417 | MDRV_CPU_MODIFY("sound") /* 6 MHz */ |
| r1711 | r1712 | |
|---|---|---|
| 33 | 33 | |
| 34 | 34 | static UINT8 port60; |
| 35 | 35 | static UINT8 port70; |
| 36 | static UINT8 dirty; | |
| 37 | 36 | |
| 38 | 37 | static const UINT8 rombankLookup[]={ 2, 3, 4, 4, 4, 4, 4, 5, 0, 1}; |
| 39 | 38 | |
| r1711 | r1712 | |
| 64 | 63 | } |
| 65 | 64 | } |
| 66 | 65 | |
| 67 | static VIDEO_START( quizo ) | |
| 68 | { | |
| 69 | tmpbitmap = auto_bitmap_alloc(machine->screen[0].width,machine->screen[0].height,machine->screen[0].format); | |
| 70 | } | |
| 71 | ||
| 72 | 66 | static VIDEO_UPDATE( quizo ) |
| 73 | 67 | { |
| 74 | 68 | int x,y; |
| 75 | | |
| 69 | | |
| 76 | 70 | { |
| 77 | for( | |
| 71 | for(x=0;x<80 | |
| 78 | 72 | { |
| 79 | for(x=0;x<80;x++) | |
| 80 | { | |
| 81 | int data=videoram[y*80+x]; | |
| 82 | int data1=videoram[y*80+x+0x4000]; | |
| 83 | int pix; | |
| 73 | int data=videoram[y*80+x]; | |
| 74 | int data1=videoram[y*80+x+0x4000]; | |
| 75 | int pix; | |
| 84 | 76 | |
| 85 | pix=(data&1)|(((data>>4)&1)<<1)|((data1&1)<<2)|(((data1>>4)&1)<<3); | |
| 86 | *BITMAP_ADDR16(tmpbitmap, y, x*4+3) = machine->pens[pix]; | |
| 87 | data>>=1; | |
| 88 | data1>>=1; | |
| 89 | pix=(data&1)|(((data>>4)&1)<<1)|((data1&1)<<2)|(((data1>>4)&1)<<3); | |
| 90 | *BITMAP_ADDR16(tmpbitmap, y, x*4+2) = machine->pens[pix]; | |
| 91 | data>>=1; | |
| 92 | data1>>=1; | |
| 93 | pix=(data&1)|(((data>>4)&1)<<1)|((data1&1)<<2)|(((data1>>4)&1)<<3); | |
| 94 | *BITMAP_ADDR16(tmpbitmap, y, x*4+1) = machine->pens[pix]; | |
| 95 | data>>=1; | |
| 96 | data1>>=1; | |
| 97 | pix=(data&1)|(((data>>4)&1)<<1)|((data1&1)<<2)|(((data1>>4)&1)<<3); | |
| 98 | *BITMAP_ADDR16(tmpbitmap, y, x*4+0) = machine->pens[pix]; | |
| 99 | } | |
| 77 | pix=(data&1)|(((data>>4)&1)<<1)|((data1&1)<<2)|(((data1>>4)&1)<<3); | |
| 78 | *BITMAP_ADDR16(bitmap, y, x*4+3) = pix; | |
| 79 | data>>=1; | |
| 80 | data1>>=1; | |
| 81 | pix=(data&1)|(((data>>4)&1)<<1)|((data1&1)<<2)|(((data1>>4)&1)<<3); | |
| 82 | *BITMAP_ADDR16(bitmap, y, x*4+2) = pix; | |
| 83 | data>>=1; | |
| 84 | data1>>=1; | |
| 85 | pix=(data&1)|(((data>>4)&1)<<1)|((data1&1)<<2)|(((data1>>4)&1)<<3); | |
| 86 | *BITMAP_ADDR16(bitmap, y, x*4+1) = pix; | |
| 87 | data>>=1; | |
| 88 | data1>>=1; | |
| 89 | pix=(data&1)|(((data>>4)&1)<<1)|((data1&1)<<2)|(((data1>>4)&1)<<3); | |
| 90 | *BITMAP_ADDR16(bitmap, y, x*4+0) = pix; | |
| 100 | 91 | } |
| 101 | 92 | } |
| 102 | copybitmap(bitmap,tmpbitmap,0,0,0,0,cliprect); | |
| 103 | dirty=0; | |
| 104 | 93 | return 0; |
| 105 | 94 | } |
| 106 | 95 | |
| r1711 | r1712 | |
| 108 | 97 | { |
| 109 | 98 | int bank=(port70&8)?1:0; |
| 110 | 99 | videoram[offset+bank*0x4000]=data; |
| 111 | dirty=1; | |
| 112 | 100 | } |
| 113 | 101 | |
| 114 | 102 | static WRITE8_HANDLER(port70_w) |
| r1711 | r1712 | |
| 208 | 196 | |
| 209 | 197 | MDRV_CPU_VBLANK_INT(irq0_line_hold, 1) |
| 210 | 198 | |
| 211 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 212 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 213 | ||
| 214 | 199 | /* video hardware */ |
| 215 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 200 | MDRV_SCREEN_ADD("main", RASTER) | |
| 201 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 202 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 216 | 203 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 217 | 204 | MDRV_SCREEN_SIZE(320, 200) |
| 218 | 205 | MDRV_SCREEN_VISIBLE_AREA(0*8, 320-1, 0*8, 200-1) |
| 206 | ||
| 219 | 207 | MDRV_PALETTE_LENGTH(16) |
| 220 | 208 | MDRV_PALETTE_INIT(quizo) |
| 221 | 209 | |
| 222 | MDRV_VIDEO_START(quizo) | |
| 223 | 210 | MDRV_VIDEO_UPDATE(quizo) |
| 224 | 211 | |
| 225 | 212 | /* sound hardware */ |
| r1711 | r1712 | |
| 246 | 233 | static DRIVER_INIT(quizo) |
| 247 | 234 | { |
| 248 | 235 | videoram=auto_malloc(0x4000*2); |
| 249 | dirty=1; | |
| 250 | 236 | } |
| 251 | 237 | |
| 252 | 238 | GAME( 1985, quizo, 0, quizo, quizo, quizo, ROT0, "Seoul Coin Corp.", "Quiz Olympic", 0 ) |
| r1711 | r1712 | |
|---|---|---|
| 860 | 860 | MDRV_CPU_PROGRAM_MAP(sound_readmem, sound_writemem) |
| 861 | 861 | MDRV_CPU_IO_MAP(sound_readport, sound_writeport) |
| 862 | 862 | |
| 863 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 864 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 865 | ||
| 866 | 863 | MDRV_MACHINE_RESET(niyanpai) |
| 867 | 864 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 868 | 865 | |
| 869 | 866 | /* video hardware */ |
| 870 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 867 | MDRV_SCREEN_ADD("main", RASTER) | |
| 868 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 869 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 871 | 870 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 872 | 871 | MDRV_SCREEN_SIZE(1024, 512) |
| 873 | 872 | MDRV_SCREEN_VISIBLE_AREA(0, 640-1, 0, 240-1) |
| 873 | ||
| 874 | 874 | MDRV_PALETTE_LENGTH(768) |
| 875 | 875 | |
| 876 | 876 | MDRV_VIDEO_START(niyanpai) |
| r1711 | r1712 | |
|---|---|---|
| 232 | 232 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 233 | 233 | MDRV_CPU_VBLANK_INT(irq0_line_hold,4) |
| 234 | 234 | |
| 235 | /* video hardware */ | |
| 236 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 237 | ||
| 238 | MDRV_SCREEN_ADD("main", RASTER) | |
| 235 | 239 | MDRV_SCREEN_REFRESH_RATE(60) |
| 236 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 237 | ||
| 238 | /* video hardware */ | |
| 239 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 240 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 240 | 241 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 241 | 242 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 242 | 243 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 244 | ||
| 243 | 245 | MDRV_GFXDECODE(exedexes) |
| 244 | 246 | MDRV_PALETTE_LENGTH(64*4+64*4+16*16+16*16) |
| 245 | 247 |
| r1711 | r1712 | |
|---|---|---|
| 7 | 7 | Games supported: |
| 8 | 8 | * Return of the Jedi |
| 9 | 9 | |
| 10 | Known bugs: | |
| 11 | * smoothing PROMs were dumped at half size | |
| 10 | Notes: | |
| 11 | * The schematics show the smoothing PROMs as being twice as large, | |
| 12 | but the current sizes are confirmed via a PCB. The PROMs | |
| 13 | are 82S137 devices. | |
| 12 | 14 | |
| 13 | 15 | **************************************************************************** |
| 14 | 16 | |
| r1711 | r1712 | |
| 111 | 113 | #include "driver.h" |
| 112 | 114 | #include "deprecat.h" |
| 113 | 115 | #include "cpu/m6502/m6502.h" |
| 114 | #include "sound/5220intf.h" | |
| 115 | #include "sound/pokey.h" | |
| 116 | 116 | #include "jedi.h" |
| 117 | 117 | |
| 118 | 118 | |
| 119 | /* constants */ | |
| 120 | #define MAIN_CPU_OSC 10000000 | |
| 121 | #define SOUND_CPU_OSC 12096000 | |
| 122 | 119 | |
| 123 | ||
| 124 | /* local variables */ | |
| 125 | static UINT8 control_num; | |
| 126 | static UINT8 sound_latch; | |
| 127 | static UINT8 sound_ack_latch; | |
| 128 | static UINT8 sound_comm_stat; | |
| 129 | static UINT8 speech_write_buffer; | |
| 130 | static UINT8 speech_strobe_state; | |
| 131 | static UINT8 nvram_enabled; | |
| 132 | ||
| 133 | static emu_timer *jedi_timer; | |
| 134 | ||
| 135 | ||
| 136 | 120 | /************************************* |
| 137 | 121 | * |
| 138 | 122 | * Interrupt handling |
| r1711 | r1712 | |
| 141 | 125 | |
| 142 | 126 | static TIMER_CALLBACK( generate_interrupt ) |
| 143 | 127 | { |
| 128 | jedi_state *state = machine->driver_data; | |
| 144 | 129 | int scanline = param; |
| 145 | 130 | |
| 146 | 131 | /* IRQ is set by /32V */ |
| r1711 | r1712 | |
| 151 | 136 | scanline += 32; |
| 152 | 137 | if (scanline > 256) |
| 153 | 138 | scanline = 32; |
| 154 | timer_adjust_oneshot( | |
| 139 | timer_adjust_oneshot(state->interrupt_timer, video_screen_get_time_until_pos(0, scanline, 0), scanline); | |
| 155 | 140 | } |
| 156 | 141 | |
| 157 | 142 | |
| r1711 | r1712 | |
| 161 | 146 | } |
| 162 | 147 | |
| 163 | 148 | |
| 164 | static WRITE8_HANDLER( sound_irq_ack_w ) | |
| 165 | { | |
| 166 | cpunum_set_input_line(Machine, 1, M6502_IRQ_LINE, CLEAR_LINE); | |
| 167 | } | |
| 168 | 149 | |
| 150 | /************************************* | |
| 151 | * | |
| 152 | * Start | |
| 153 | * | |
| 154 | *************************************/ | |
| 169 | 155 | |
| 170 | 156 | static MACHINE_START( jedi ) |
| 171 | 157 | { |
| 158 | jedi_state *state = machine->driver_data; | |
| 159 | ||
| 172 | 160 | /* set a timer to run the interrupts */ |
| 173 | jedi_timer = timer_alloc(generate_interrupt, NULL); | |
| 174 | timer_adjust_oneshot(jedi_timer,video_screen_get_time_until_pos(0, 32, 0), 32); | |
| 161 | state->interrupt_timer = timer_alloc(generate_interrupt, NULL); | |
| 162 | timer_adjust_oneshot(state->interrupt_timer, video_screen_get_time_until_pos(0, 32, 0), 32); | |
| 175 | 163 | |
| 176 | 164 | /* configure the banks */ |
| 177 | 165 | memory_configure_bank(1, 0, 3, memory_region(REGION_CPU1) + 0x10000, 0x4000); |
| 178 | 166 | |
| 179 | 167 | /* set up save state */ |
| 180 | state_save_register_global(control_num); | |
| 181 | state_save_register_global(sound_latch); | |
| 182 | state_save_register_global(sound_ack_latch); | |
| 183 | state_save_register_global(sound_comm_stat); | |
| 184 | state_save_register_global(speech_write_buffer); | |
| 185 | state_save_register_global(speech_strobe_state); | |
| 186 | state_save_register_global(nvram_enabled); | |
| 168 | state_save_register_global(state->nvram_enabled); | |
| 187 | 169 | } |
| 188 | 170 | |
| 189 | 171 | |
| 172 | ||
| 173 | /************************************* | |
| 174 | * | |
| 175 | * Reset | |
| 176 | * | |
| 177 | *************************************/ | |
| 178 | ||
| 190 | 179 | static MACHINE_RESET( jedi ) |
| 191 | 180 | { |
| 181 | jedi_state *state = machine->driver_data; | |
| 182 | ||
| 192 | 183 | /* init globals */ |
| 193 | control_num = 0; | |
| 194 | sound_latch = 0; | |
| 195 | sound_ack_latch = 0; | |
| 196 | sound_comm_stat = 0; | |
| 197 | speech_write_buffer = 0; | |
| 198 | speech_strobe_state = 0; | |
| 199 | nvram_enabled = 0; | |
| 184 | state->a2d_select = 0; | |
| 185 | state->nvram_enabled = 0; | |
| 200 | 186 | } |
| 201 | 187 | |
| 202 | 188 | |
| r1711 | r1712 | |
| 218 | 204 | |
| 219 | 205 | /************************************* |
| 220 | 206 | * |
| 221 | * Main CPU -> Sound CPU communications | |
| 222 | * | |
| 223 | *************************************/ | |
| 224 | ||
| 225 | static WRITE8_HANDLER( sound_reset_w ) | |
| 226 | { | |
| 227 | cpunum_set_input_line(Machine, 1, INPUT_LINE_RESET, (data & 1) ? CLEAR_LINE : ASSERT_LINE); | |
| 228 | } | |
| 229 | ||
| 230 | ||
| 231 | static TIMER_CALLBACK( delayed_sound_latch_w ) | |
| 232 | { | |
| 233 | sound_latch = param; | |
| 234 | sound_comm_stat |= 0x80; | |
| 235 | } | |
| 236 | ||
| 237 | ||
| 238 | static WRITE8_HANDLER( sound_latch_w ) | |
| 239 | { | |
| 240 | timer_call_after_resynch(NULL, data, delayed_sound_latch_w); | |
| 241 | } | |
| 242 | ||
| 243 | ||
| 244 | static READ8_HANDLER( sound_latch_r ) | |
| 245 | { | |
| 246 | sound_comm_stat &= ~0x80; | |
| 247 | return sound_latch; | |
| 248 | } | |
| 249 | ||
| 250 | ||
| 251 | ||
| 252 | /************************************* | |
| 253 | * | |
| 254 | * Sound CPU -> Main CPU communications | |
| 255 | * | |
| 256 | *************************************/ | |
| 257 | ||
| 258 | static READ8_HANDLER( sound_ack_latch_r ) | |
| 259 | { | |
| 260 | sound_comm_stat &= ~0x40; | |
| 261 | return sound_ack_latch; | |
| 262 | } | |
| 263 | ||
| 264 | ||
| 265 | static WRITE8_HANDLER( sound_ack_latch_w ) | |
| 266 | { | |
| 267 | sound_ack_latch = data; | |
| 268 | sound_comm_stat |= 0x40; | |
| 269 | } | |
| 270 | ||
| 271 | ||
| 272 | ||
| 273 | /************************************* | |
| 274 | * | |
| 275 | 207 | * I/O ports |
| 276 | 208 | * |
| 277 | 209 | *************************************/ |
| 278 | 210 | |
| 279 | 211 | static READ8_HANDLER( a2d_data_r ) |
| 280 | 212 | { |
| 281 | switch (control_num) | |
| 213 | jedi_state *state = Machine->driver_data; | |
| 214 | UINT8 ret = 0; | |
| 215 | ||
| 216 | switch (state->a2d_select) | |
| 282 | 217 | { |
| 283 | case 0: return readinputport(2); | |
| 284 | case 2: return readinputport(3); | |
| 285 | default: return 0; | |
| 218 | case 0: ret = readinputport(2); break; | |
| 219 | case 2: ret = readinputport(3); break; | |
| 286 | 220 | } |
| 287 | return 0; | |
| 288 | } | |
| 289 | 221 | |
| 290 | ||
| 291 | static READ8_HANDLER( special_port1_r ) | |
| 292 | { | |
| 293 | return readinputport(1) ^ ((sound_comm_stat >> 1) & 0x60); | |
| 222 | return ret; | |
| 294 | 223 | } |
| 295 | 224 | |
| 296 | 225 | |
| 297 | 226 | static WRITE8_HANDLER( a2d_select_w ) |
| 298 | 227 | { |
| 299 | control_num = offset; | |
| 300 | } | |
| 228 | jedi_state *state = Machine->driver_data; | |
| 301 | 229 | |
| 302 | ||
| 303 | static READ8_HANDLER( soundstat_r ) | |
| 304 | { | |
| 305 | return sound_comm_stat; | |
| 230 | state->a2d_select = offset; | |
| 306 | 231 | } |
| 307 | 232 | |
| 308 | 233 | |
| r1711 | r1712 | |
| 315 | 240 | |
| 316 | 241 | /************************************* |
| 317 | 242 | * |
| 318 | * Speech access | |
| 319 | * | |
| 320 | *************************************/ | |
| 321 | ||
| 322 | static WRITE8_HANDLER( speech_data_w ) | |
| 323 | { | |
| 324 | speech_write_buffer = data; | |
| 325 | } | |
| 326 | ||
| 327 | ||
| 328 | static WRITE8_HANDLER( speech_strobe_w ) | |
| 329 | { | |
| 330 | int state = (~offset >> 8) & 1; | |
| 331 | ||
| 332 | if ((state ^ speech_strobe_state) && state) | |
| 333 | tms5220_data_w(0, speech_write_buffer); | |
| 334 | speech_strobe_state = state; | |
| 335 | } | |
| 336 | ||
| 337 | ||
| 338 | static READ8_HANDLER( speech_ready_r ) | |
| 339 | { | |
| 340 | return (!tms5220_ready_r()) << 7; | |
| 341 | } | |
| 342 | ||
| 343 | ||
| 344 | ||
| 345 | /************************************* | |
| 346 | * | |
| 347 | 243 | * NVRAM |
| 348 | 244 | * |
| 349 | 245 | *************************************/ |
| 350 | 246 | |
| 351 | 247 | static WRITE8_HANDLER( nvram_data_w ) |
| 352 | 248 | { |
| 353 | if (nvram_enabled) | |
| 249 | jedi_state *state = Machine->driver_data; | |
| 250 | ||
| 251 | if (state->nvram_enabled) | |
| 354 | 252 | generic_nvram[offset] = data; |
| 355 | 253 | } |
| 356 | 254 | |
| 357 | 255 | |
| 358 | 256 | static WRITE8_HANDLER( nvram_enable_w ) |
| 359 | 257 | { |
| 360 | nvram_enabled = ~offset & 1; | |
| 258 | jedi_state *state = Machine->driver_data; | |
| 259 | ||
| 260 | state->nvram_enabled = ~offset & 1; | |
| 361 | 261 | } |
| 362 | 262 | |
| 363 | 263 | |
| r1711 | r1712 | |
| 370 | 270 | |
| 371 | 271 | static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 372 | 272 | AM_RANGE(0x0000, 0x07ff) AM_RAM |
| 373 | AM_RANGE(0x0800, 0x08ff) AM_READWRITE(MRA8_RAM, nvram_data_w) AM_BASE(&generic_nvram) AM_SIZE(&generic_nvram_size) | |
| 374 | AM_RANGE(0x0c00, 0x0c00) AM_READ(input_port_0_r) | |
| 375 | AM_RANGE(0x0c01, 0x0c01) AM_READ(special_port1_r) | |
| 376 | AM_RANGE(0x1400, 0x1400) AM_READ(sound_ack_latch_r) | |
| 377 | AM_RANGE(0x1800, 0x1800) AM_READ(a2d_data_r) | |
| 378 | AM_RANGE(0x1c00, 0x1c01) AM_WRITE(nvram_enable_w) | |
| 379 | AM_RANGE(0x1c80, 0x1c82) AM_WRITE(a2d_select_w) | |
| 380 | AM_RANGE(0x1d00, 0x1d00) AM_WRITE(MWA8_NOP) /* NVRAM store */ | |
| 381 | AM_RANGE(0x1d80, 0x1d80) AM_WRITE(watchdog_reset_w) | |
| 382 | AM_RANGE(0x1e00, 0x1e00) AM_WRITE(main_irq_ack_w) | |
| 383 | AM_RANGE(0x1e80, 0x1e81) AM_WRITE(jedi_coin_counter_w) | |
| 384 | AM_RANGE(0x1e82, 0x1e83) AM_WRITE(MWA8_NOP) /* LED control; not used */ | |
| 385 | AM_RANGE(0x1e84, 0x1e84) AM_WRITE(MWA8_RAM) AM_BASE(&jedi_foreground_bank) | |
| 386 | AM_RANGE(0x1e86, 0x1e86) AM_WRITE(sound_reset_w) | |
| 387 | AM_RANGE(0x1e87, 0x1e87) AM_WRITE(jedi_video_off_w) | |
| 388 | AM_RANGE(0x1f00, 0x1f00) AM_WRITE(sound_latch_w) | |
| 389 | AM_RANGE(0x1f80, 0x1f80) AM_WRITE(rom_banksel_w) | |
| 390 | AM_RANGE(0x2000, 0x27ff) AM_RAM AM_BASE(&jedi_backgroundram) | |
| 391 | AM_RANGE(0x2800, 0x2fff) AM_RAM AM_BASE(&jedi_paletteram) | |
| 392 | AM_RANGE(0x3000, 0x37bf) AM_RAM AM_BASE(&jedi_foregroundram) | |
| 393 | AM_RANGE(0x37c0, 0x3bff) AM_RAM AM_BASE(&jedi_spriteram) | |
| 394 | AM_RANGE(0x3c00, 0x3c01) AM_WRITE(jedi_vscroll_w) | |
| 395 | AM_RANGE(0x3d00, 0x3d01) AM_WRITE(jedi_hscroll_w) | |
| 396 | AM_RANGE(0x3e00, 0x3fff) AM_WRITE(jedi_PIXIRAM_w) | |
| 273 | AM_RANGE(0x0800, 0x08ff) AM_MIRROR(0x0380) AM_READWRITE(MRA8_RAM, nvram_data_w) AM_BASE(&generic_nvram) AM_SIZE(&generic_nvram_size) | |
| 274 | AM_RANGE(0x0c00, 0x0c00) AM_MIRROR(0x03fe) AM_READWRITE(input_port_0_r, MWA8_NOP) | |
| 275 | AM_RANGE(0x0c01, 0x0c01) AM_MIRROR(0x03fe) AM_READWRITE(input_port_1_r, MWA8_NOP) | |
| 276 | AM_RANGE(0x1000, 0x13ff) AM_NOP | |
| 277 | AM_RANGE(0x1400, 0x1400) AM_MIRROR(0x03ff) AM_READWRITE(jedi_audio_ack_latch_r, MWA8_NOP) | |
| 278 | AM_RANGE(0x1800, 0x1800) AM_MIRROR(0x03ff) AM_READWRITE(a2d_data_r, MWA8_NOP) | |
| 279 | AM_RANGE(0x1c00, 0x1c01) AM_MIRROR(0x007f) AM_READWRITE(MRA8_NOP, nvram_enable_w) | |
| 280 | AM_RANGE(0x1c80, 0x1c82) AM_MIRROR(0x0078) AM_READWRITE(MRA8_NOP, a2d_select_w) | |
| 281 | AM_RANGE(0x1c83, 0x1c87) AM_MIRROR(0x0078) AM_NOP | |
| 282 | AM_RANGE(0x1d00, 0x1d00) AM_MIRROR(0x007f) AM_READWRITE(MRA8_NOP, MWA8_NOP) /* write: NVRAM store */ | |
| 283 | AM_RANGE(0x1d80, 0x1d80) AM_MIRROR(0x007f) AM_READWRITE(MRA8_NOP, watchdog_reset_w) | |
| 284 | AM_RANGE(0x1e00, 0x1e00) AM_MIRROR(0x007f) AM_READWRITE(MRA8_NOP, main_irq_ack_w) | |
| 285 | AM_RANGE(0x1e80, 0x1e81) AM_MIRROR(0x0078) AM_READWRITE(MRA8_NOP, jedi_coin_counter_w) | |
| 286 | AM_RANGE(0x1e82, 0x1e83) AM_MIRROR(0x0078) AM_READWRITE(MRA8_NOP, MWA8_NOP) /* write: LED control - not used */ | |
| 287 | AM_RANGE(0x1e84, 0x1e84) AM_MIRROR(0x0078) AM_READWRITE(MRA8_NOP, MWA8_RAM) AM_BASE_MEMBER(jedi_state, foreground_bank) | |
| 288 | AM_RANGE(0x1e85, 0x1e85) AM_MIRROR(0x0078) AM_NOP | |
| 289 | AM_RANGE(0x1e86, 0x1e86) AM_MIRROR(0x0078) AM_READWRITE(MRA8_NOP, jedi_audio_reset_w) | |
| 290 | AM_RANGE(0x1e87, 0x1e87) AM_MIRROR(0x0078) AM_READWRITE(MRA8_NOP, MWA8_RAM) AM_BASE_MEMBER(jedi_state, video_off) | |
| 291 | AM_RANGE(0x1f00, 0x1f00) AM_MIRROR(0x007f) AM_READWRITE(MRA8_NOP, jedi_audio_latch_w) | |
| 292 | AM_RANGE(0x1f80, 0x1f80) AM_MIRROR(0x007f) AM_READWRITE(MRA8_NOP, rom_banksel_w) | |
| 293 | AM_RANGE(0x2000, 0x27ff) AM_RAM AM_BASE_MEMBER(jedi_state, backgroundram) | |
| 294 | AM_RANGE(0x2800, 0x2fff) AM_RAM AM_BASE_MEMBER(jedi_state, paletteram) | |
| 295 | AM_RANGE(0x3000, 0x37bf) AM_RAM AM_BASE_MEMBER(jedi_state, foregroundram) | |
| 296 | AM_RANGE(0x37c0, 0x3bff) AM_RAM AM_BASE_MEMBER(jedi_state, spriteram) | |
| 297 | AM_RANGE(0x3c00, 0x3c01) AM_MIRROR(0x00fe) AM_READWRITE(MRA8_NOP, jedi_vscroll_w) | |
| 298 | AM_RANGE(0x3d00, 0x3d01) AM_MIRROR(0x00fe) AM_READWRITE(MRA8_NOP, jedi_hscroll_w) | |
| 299 | AM_RANGE(0x3e00, 0x3e00) AM_MIRROR(0x01ff) AM_WRITE(MWA8_RAM) AM_BASE_MEMBER(jedi_state, smoothing_table) | |
| 397 | 300 | AM_RANGE(0x4000, 0x7fff) AM_ROMBANK(1) |
| 398 | 301 | AM_RANGE(0x8000, 0xffff) AM_ROM |
| 399 | 302 | ADDRESS_MAP_END |
| r1711 | r1712 | |
| 402 | 305 | |
| 403 | 306 | /************************************* |
| 404 | 307 | * |
| 405 | * Sound CPU memory handlers | |
| 406 | * | |
| 407 | *************************************/ | |
| 408 | ||
| 409 | static ADDRESS_MAP_START( sound_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 410 | AM_RANGE(0x0000, 0x07ff) AM_RAM | |
| 411 | AM_RANGE(0x0800, 0x080f) AM_READWRITE(pokey1_r, pokey1_w) | |
| 412 | AM_RANGE(0x0810, 0x081f) AM_READWRITE(pokey2_r, pokey2_w) | |
| 413 | AM_RANGE(0x0820, 0x082f) AM_READWRITE(pokey3_r, pokey3_w) | |
| 414 | AM_RANGE(0x0830, 0x083f) AM_READWRITE(pokey4_r, pokey4_w) | |
| 415 | AM_RANGE(0x1000, 0x1000) AM_WRITE(sound_irq_ack_w) | |
| 416 | AM_RANGE(0x1100, 0x11ff) AM_WRITE(speech_data_w) | |
| 417 | AM_RANGE(0x1200, 0x13ff) AM_WRITE(speech_strobe_w) | |
| 418 | AM_RANGE(0x1400, 0x1400) AM_WRITE(sound_ack_latch_w) | |
| 419 | AM_RANGE(0x1800, 0x1800) AM_READ(sound_latch_r) | |
| 420 | AM_RANGE(0x1c00, 0x1c00) AM_READ(speech_ready_r) | |
| 421 | AM_RANGE(0x1c01, 0x1c01) AM_READ(soundstat_r) | |
| 422 | AM_RANGE(0x8000, 0xffff) AM_ROM | |
| 423 | ADDRESS_MAP_END | |
| 424 | ||
| 425 | ||
| 426 | ||
| 427 | /************************************* | |
| 428 | * | |
| 429 | 308 | * Port definitions |
| 430 | 309 | * |
| 431 | 310 | *************************************/ |
| r1711 | r1712 | |
| 445 | 324 | PORT_BIT( 0x03, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 446 | 325 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_TILT ) |
| 447 | 326 | PORT_BIT( 0x18, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 448 | PORT_BIT( 0x60, IP_ACTIVE_HIGH, IPT_SPECIAL ) | |
| 327 | PORT_BIT( 0x60, IP_ACTIVE_HIGH, IPT_SPECIAL ) | |
| 449 | 328 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_VBLANK ) |
| 450 | 329 | |
| 451 | 330 | PORT_START /* analog Y */ |
| r1711 | r1712 | |
| 465 | 344 | |
| 466 | 345 | static MACHINE_DRIVER_START( jedi ) |
| 467 | 346 | |
| 347 | MDRV_DRIVER_DATA(jedi_state) | |
| 348 | ||
| 468 | 349 | /* basic machine hardware */ |
| 469 | MDRV_CPU_ADD(M6502,MAIN_CPU_O | |
| 350 | MDRV_CPU_ADD(M6502, JEDI_MAIN_CPU_CLO | |
| 470 | 351 | MDRV_CPU_PROGRAM_MAP(main_map,0) |
| 471 | 352 | |
| 472 | MDRV_CPU_ADD(M6502,SOUND_CPU_OSC/2/4) /* 1.5MHz */ | |
| 473 | MDRV_CPU_PROGRAM_MAP(sound_map,0) | |
| 474 | ||
| 475 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 476 | 353 | MDRV_INTERLEAVE(4) |
| 477 | 354 | |
| 478 | 355 | MDRV_MACHINE_START(jedi) |
| r1711 | r1712 | |
| 480 | 357 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 481 | 358 | |
| 482 | 359 | /* video hardware */ |
| 483 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 484 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) | |
| 485 | MDRV_SCREEN_SIZE(64*8, 262) /* verify vert size */ | |
| 486 | MDRV_SCREEN_VISIBLE_AREA(0*8, 37*8-1, 0*8, 30*8-1) | |
| 360 | MDRV_IMPORT_FROM(jedi_video) | |
| 487 | 361 | |
| 488 | MDRV_VIDEO_START(jedi) | |
| 489 | MDRV_VIDEO_UPDATE(jedi) | |
| 490 | ||
| 491 | /* sound hardware */ | |
| 492 | MDRV_SPEAKER_STANDARD_STEREO("left", "right") | |
| 493 | ||
| 494 | MDRV_SOUND_ADD(POKEY, SOUND_CPU_OSC/2/4) | |
| 495 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "left", 0.30) | |
| 496 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "right", 0.30) | |
| 497 | ||
| 498 | MDRV_SOUND_ADD(POKEY, SOUND_CPU_OSC/2/4) | |
| 499 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "left", 0.30) | |
| 500 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "right", 0.30) | |
| 501 | ||
| 502 | MDRV_SOUND_ADD(POKEY, SOUND_CPU_OSC/2/4) | |
| 503 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "left", 0.30) | |
| 504 | ||
| 505 | MDRV_SOUND_ADD(POKEY, SOUND_CPU_OSC/2/4) | |
| 506 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "right", 0.30) | |
| 507 | ||
| 508 | MDRV_SOUND_ADD(TMS5220, SOUND_CPU_OSC/2/9) | |
| 509 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "left", 1.0) | |
| 510 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "right", 1.0) | |
| 362 | /* audio hardware */ | |
| 363 | MDRV_IMPORT_FROM(jedi_audio) | |
| 511 | 364 | MACHINE_DRIVER_END |
| 512 | 365 | |
| 513 | 366 | |
| r1711 | r1712 | |
| 544 | 397 | ROM_LOAD( "136030-129.01k", 0x18000, 0x8000, CRC(ac86b98c) SHA1(9f86c8801a7293fa46e9432f1651dd85bf00f4b9) ) |
| 545 | 398 | |
| 546 | 399 | ROM_REGION( 0x1000, REGION_PROMS, 0 ) /* background smoothing */ |
| 547 | ROM_LOAD( "136030-117.bin", 0x0000, 0x0800, BAD_DUMP CRC(9831bd55) SHA1(12945ef2d1582914125b9ee591567034d71d6573) ) | |
| 548 | ROM_LOAD( "136030-118.bin", 0x0800, 0x0800, BAD_DUMP CRC(261fbfe7) SHA1(efc65a74a3718563a07b718e34d8a7aa23339a69) ) | |
| 400 | ROM_LOAD( "136030-117.bin", 0x0000, 0x0400, CRC(9831bd55) SHA1(12945ef2d1582914125b9ee591567034d71d6573) ) | |
| 401 | ROM_LOAD( "136030-118.bin", 0x0800, 0x0400, CRC(261fbfe7) SHA1(efc65a74a3718563a07b718e34d8a7aa23339a69) ) | |
| 549 | 402 | ROM_END |
| 550 | 403 | |
| 551 | 404 | |
| r1711 | r1712 | |
| 556 | 409 | * |
| 557 | 410 | *************************************/ |
| 558 | 411 | |
| 559 | GAME( 1984, jedi, 0, jedi, jedi, 0, ROT0, "Atari", "Return of the Jedi", GAME_ | |
| 412 | GAME( 1984, jedi, 0, jedi, jedi, 0, ROT0, "Atari", "Return of the Jedi", GAME_ |
| r1711 | r1712 | |
|---|---|---|
| 2984 | 2984 | MDRV_NVRAM_HANDLER(bfm_sc2) |
| 2985 | 2985 | MDRV_DEFAULT_LAYOUT(layout_bfm_sc2) |
| 2986 | 2986 | |
| 2987 | MDRV_SCREEN_ADD("ADDER", 0x000) | |
| 2988 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2987 | MDRV_SCREEN_ADD("ADDER", RASTER) | |
| 2989 | 2988 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2990 | 2989 | MDRV_SCREEN_SIZE( 400, 280) |
| 2991 | 2990 | MDRV_SCREEN_VISIBLE_AREA( 0, 400-1, 0, 280-1) |
| r1711 | r1712 | |
|---|---|---|
| 1 | /* Super Kaneko Nova System */ | |
| 2 | /* Original Driver by Sylvain Glaize */ | |
| 3 | /* taken to pieces and attempted reconstruction by David Haywood */ | |
| 1 | /* | |
| 2 | Super Kaneko Nova System | |
| 3 | Original Driver by Sylvain Glaize | |
| 4 | taken to pieces and attempted reconstruction by David Haywood | |
| 4 | 5 | |
| 5 | /* Credits (in no particular order): | |
| 6 | Mainboard + Cart combo | |
| 7 | Regions are not cross compatible and have thier own BIOS | |
| 8 | Regions by color coded cart: | |
| 9 | ||
| 10 | White = Japan | |
| 11 | Light Blue = USA | |
| 12 | Dark Blue = Europe | |
| 13 | Green = Asia | |
| 14 | Red = Korean | |
| 15 | ||
| 16 | Credits (in no particular order): | |
| 6 | 17 | Olivier Galibert for all the assistance and information he's provided |
| 7 | 18 | R.Belmont for working on the SH2 timers so sound worked |
| 8 | 19 | Nicola Salmoria for hooking up the Roz and improving the dirty tile handling |
| 9 | 20 | Paul Priest for a lot of things |
| 10 | 21 | Stephh for spotting what was wrong with Puzz Loop's inputs |
| 11 | */ | |
| 12 | 22 | |
| 13 | ||
| 23 | ||
| 14 | 24 | ToDo: |
| 15 | 25 | Priorities |
| 16 | 26 | Transparency effects (each pen has a transparent flag, there are seperate r,g,b alpha values to be used for these pens) |
| r1711 | r1712 | |
| 183 | 193 | extern void skns_sprite_kludge(int x, int y); |
| 184 | 194 | |
| 185 | 195 | UINT32 *skns_tilemapA_ram, *skns_tilemapB_ram, *skns_v3slc_ram; |
| 186 | UINT32 *skns_palette_ram | |
| 196 | UINT32 *skns_palette_ram | |
| 187 | 197 | UINT32 *skns_pal_regs, *skns_v3_regs, *skns_spc_regs; |
| 188 | 198 | |
| 189 | 199 | UINT32 skns_v3t_dirty[0x4000]; // allocate this elsewhere? |
| r1711 | r1712 | |
| 199 | 209 | VIDEO_EOF(skns); |
| 200 | 210 | VIDEO_UPDATE(skns); |
| 201 | 211 | |
| 212 | static UINT32 *skns_v3t_ram, *skns_main_ram, *skns_cache_ram; | |
| 213 | ||
| 202 | 214 | /* hit.c */ |
| 203 | 215 | |
| 204 | 216 | static struct { |
| r1711 | r1712 | |
| 941 | 953 | MDRV_CPU_PROGRAM_MAP(skns_readmem,skns_writemem) |
| 942 | 954 | MDRV_CPU_VBLANK_INT(skns_interrupt,2) |
| 943 | 955 | |
| 944 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 945 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 946 | ||
| 947 | 956 | MDRV_MACHINE_RESET(skns) |
| 948 | 957 | MDRV_NVRAM_HANDLER(generic_1fill) |
| 949 | 958 | |
| 950 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 959 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 960 | ||
| 961 | MDRV_SCREEN_ADD("main", RASTER) | |
| 962 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 963 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 951 | 964 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 952 | 965 | MDRV_SCREEN_SIZE(64*16,64*16) |
| 953 | 966 | MDRV_SCREEN_VISIBLE_AREA(0,319,0,239) |
| 967 | ||
| 954 | 968 | MDRV_PALETTE_LENGTH(32768) |
| 955 | 969 | MDRV_GFXDECODE(skns_bg) |
| 956 | 970 |
| r1711 | r1712 | |
|---|---|---|
| 1816 | 1816 | MDRV_CPU_PROGRAM_MAP(mj4simai_readmem,mj4simai_writemem) |
| 1817 | 1817 | MDRV_CPU_VBLANK_INT(seta2_interrupt,1) |
| 1818 | 1818 | |
| 1819 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1820 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1821 | ||
| 1822 | 1819 | MDRV_MACHINE_RESET( tmp68301 ) |
| 1823 | 1820 | |
| 1824 | 1821 | /* video hardware */ |
| 1825 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1822 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1823 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1824 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1826 | 1825 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1827 | 1826 | MDRV_SCREEN_SIZE(0x200, 0x200) |
| 1828 | 1827 | MDRV_SCREEN_VISIBLE_AREA(0x40, 0x1c0-1, 0x80, 0x170-1) |
| 1828 | ||
| 1829 | 1829 | MDRV_GFXDECODE(seta2) |
| 1830 | 1830 | MDRV_PALETTE_LENGTH(0x8000) |
| 1831 | 1831 | |
| r1711 | r1712 | |
| 1852 | 1852 | MDRV_NVRAM_HANDLER(93C46_gundamex) |
| 1853 | 1853 | |
| 1854 | 1854 | /* video hardware */ |
| 1855 | MDRV_SCREEN_MODIFY("main") | |
| 1855 | 1856 | MDRV_SCREEN_VISIBLE_AREA(0x00, 0x180-1, 0x100, 0x1e0-1) |
| 1856 | 1857 | MACHINE_DRIVER_END |
| 1857 | 1858 | |
| r1711 | r1712 | |
| 1862 | 1863 | MDRV_CPU_PROGRAM_MAP(grdians_readmem,grdians_writemem) |
| 1863 | 1864 | |
| 1864 | 1865 | /* video hardware */ |
| 1866 | MDRV_SCREEN_MODIFY("main") | |
| 1865 | 1867 | MDRV_SCREEN_VISIBLE_AREA(0x80, 0x80 + 0x130 -1, 0x80, 0x80 + 0xe8 -1) |
| 1866 | 1868 | MACHINE_DRIVER_END |
| 1867 | 1869 | |
| r1711 | r1712 | |
| 1874 | 1876 | MDRV_CPU_PROGRAM_MAP(myangel_readmem,myangel_writemem) |
| 1875 | 1877 | |
| 1876 | 1878 | /* video hardware */ |
| 1879 | MDRV_SCREEN_MODIFY("main") | |
| 1877 | 1880 | MDRV_SCREEN_VISIBLE_AREA(0, 0x178-1, 0x00, 0xf0-1) |
| 1878 | 1881 | |
| 1879 | 1882 | MDRV_VIDEO_START(seta2_offset) |
| r1711 | r1712 | |
| 1888 | 1891 | MDRV_CPU_PROGRAM_MAP(myangel2_readmem,myangel2_writemem) |
| 1889 | 1892 | |
| 1890 | 1893 | /* video hardware */ |
| 1894 | MDRV_SCREEN_MODIFY("main") | |
| 1891 | 1895 | MDRV_SCREEN_VISIBLE_AREA(0, 0x178-1, 0x00, 0xf0-1) |
| 1892 | 1896 | |
| 1893 | 1897 | MDRV_VIDEO_START(seta2_offset) |
| r1711 | r1712 | |
| 1902 | 1906 | MDRV_CPU_PROGRAM_MAP(pzlbowl_readmem,pzlbowl_writemem) |
| 1903 | 1907 | |
| 1904 | 1908 | /* video hardware */ |
| 1909 | MDRV_SCREEN_MODIFY("main") | |
| 1905 | 1910 | MDRV_SCREEN_VISIBLE_AREA(0x10, 0x190-1, 0x100, 0x1f0-1) |
| 1906 | 1911 | MACHINE_DRIVER_END |
| 1907 | 1912 | |
| r1711 | r1712 | |
| 1914 | 1919 | MDRV_CPU_PROGRAM_MAP(penbros_readmem,penbros_writemem) |
| 1915 | 1920 | |
| 1916 | 1921 | /* video hardware */ |
| 1922 | MDRV_SCREEN_MODIFY("main") | |
| 1917 | 1923 | MDRV_SCREEN_VISIBLE_AREA(0, 0x140-1, 0x80, 0x160-1) |
| 1918 | 1924 | MACHINE_DRIVER_END |
| 1919 | 1925 | |
| r1711 | r1712 | |
| 1928 | 1934 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 1929 | 1935 | |
| 1930 | 1936 | /* video hardware */ |
| 1937 | MDRV_SCREEN_MODIFY("main") | |
| 1931 | 1938 | MDRV_SCREEN_VISIBLE_AREA(0x40, 0x180-1, 0x40, 0x130-1) |
| 1932 | 1939 | MACHINE_DRIVER_END |
| 1933 | 1940 |
| r1711 | r1712 | |
|---|---|---|
| 777 | 777 | MDRV_CPU_PROGRAM_MAP(map_sub, 0) |
| 778 | 778 | MDRV_CPU_VBLANK_INT(witch_sub_interrupt,1) |
| 779 | 779 | |
| 780 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 781 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 782 | ||
| 783 | 780 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 784 | 781 | |
| 785 | 782 | /* video hardware */ |
| 786 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 783 | MDRV_SCREEN_ADD("main", RASTER) | |
| 784 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 785 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 787 | 786 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 788 | 787 | MDRV_SCREEN_SIZE(256, 256) |
| 789 | 788 | MDRV_SCREEN_VISIBLE_AREA(8, 256-1-8, 8*4, 256-8*4-1) |
| 789 | ||
| 790 | 790 | MDRV_GFXDECODE(witch) |
| 791 | 791 | MDRV_PALETTE_LENGTH(0x800) |
| 792 | 792 |
| r1711 | r1712 | |
|---|---|---|
| 278 | 278 | MDRV_CPU_ADD(Z80,3579545) /* NEC D780C-1, 3.579545 MHz */ |
| 279 | 279 | MDRV_CPU_PROGRAM_MAP(flkatck_readmem_sound,flkatck_writemem_sound) |
| 280 | 280 | |
| 281 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 282 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 283 | 281 | MDRV_INTERLEAVE(10) |
| 284 | 282 | |
| 285 | 283 | MDRV_MACHINE_RESET(flkatck) |
| 286 | 284 | |
| 287 | 285 | /* video hardware */ |
| 288 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 286 | MDRV_SCREEN_ADD("main", RASTER) | |
| 287 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 288 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 289 | 289 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 290 | 290 | MDRV_SCREEN_SIZE(37*8, 32*8) |
| 291 | 291 | MDRV_SCREEN_VISIBLE_AREA(0*8, 35*8-1, 2*8, 30*8-1) |
| 292 | ||
| 292 | 293 | MDRV_GFXDECODE(flkatck) |
| 293 | 294 | MDRV_PALETTE_LENGTH(512) |
| 294 | 295 |
| r1711 | r1712 | |
|---|---|---|
| 355 | 355 | |
| 356 | 356 | NAMCO_C7X_MCU_SHARED( 16384000 ) |
| 357 | 357 | |
| 358 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 359 | ||
| 360 | 358 | MDRV_MACHINE_START(namcofl) |
| 361 | 359 | MDRV_MACHINE_RESET(namcofl) |
| 362 | 360 | MDRV_NVRAM_HANDLER(generic_1fill) |
| 363 | 361 | |
| 364 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 362 | ||
| 363 | MDRV_SCREEN_ADD("main", RASTER) | |
| 364 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 365 | 365 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) |
| 366 | 366 | MDRV_SCREEN_SIZE(NAMCONB1_HTOTAL, NAMCONB1_VTOTAL) |
| 367 | 367 | MDRV_SCREEN_VISIBLE_AREA(0, NAMCONB1_HBSTART-1, 0, NAMCONB1_VBSTART-1) |
| 368 | ||
| 368 | 369 | MDRV_PALETTE_LENGTH(8192) |
| 369 | 370 | |
| 370 | 371 | MDRV_GFXDECODE(2) |
| r1711 | r1712 | |
|---|---|---|
| 3607 | 3607 | MDRV_CPU_IO_MAP(hanamai_io_map,0) |
| 3608 | 3608 | MDRV_CPU_VBLANK_INT(sprtmtch_vblank_interrupt,1) /* IM 0 needs an opcode on the data bus */ |
| 3609 | 3609 | |
| 3610 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3611 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 3612 | 3610 | MDRV_MACHINE_RESET(adpcm) |
| 3613 | 3611 | |
| 3614 | 3612 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 3615 | 3613 | |
| 3616 | 3614 | /* video hardware */ |
| 3617 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 3615 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3616 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3617 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 3618 | 3618 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3619 | 3619 | MDRV_SCREEN_SIZE(512, 256) |
| 3620 | 3620 | MDRV_SCREEN_VISIBLE_AREA(0, 512-1-4, 16+8, 255-8) |
| 3621 | ||
| 3621 | 3622 | MDRV_PALETTE_LENGTH(512) |
| 3622 | 3623 | |
| 3623 | 3624 | MDRV_PALETTE_INIT(sprtmtch) // static palette |
| r1711 | r1712 | |
| 3661 | 3662 | MDRV_CPU_IO_MAP(hnoridur_io_map,0) |
| 3662 | 3663 | MDRV_CPU_VBLANK_INT(sprtmtch_vblank_interrupt,1) /* IM 0 needs an opcode on the data bus */ |
| 3663 | 3664 | |
| 3664 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3665 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 3666 | 3665 | MDRV_MACHINE_RESET(adpcm) |
| 3667 | 3666 | |
| 3668 | 3667 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 3669 | 3668 | |
| 3670 | 3669 | /* video hardware */ |
| 3671 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 3670 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3671 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3672 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 3672 | 3673 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3673 | 3674 | MDRV_SCREEN_SIZE(512, 256) |
| 3674 | 3675 | MDRV_SCREEN_VISIBLE_AREA(0, 512-1-4, 16, 256-1) |
| 3676 | ||
| 3675 | 3677 | MDRV_PALETTE_LENGTH(16*256) |
| 3676 | 3678 | |
| 3677 | 3679 | MDRV_VIDEO_START(hnoridur) |
| r1711 | r1712 | |
| 3714 | 3716 | MDRV_CPU_IO_MAP(sprtmtch_io_map,0) |
| 3715 | 3717 | MDRV_CPU_VBLANK_INT(sprtmtch_vblank_interrupt,1) /* IM 0 needs an opcode on the data bus */ |
| 3716 | 3718 | |
| 3717 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3718 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 3719 | ||
| 3720 | 3719 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 3721 | 3720 | |
| 3722 | 3721 | /* video hardware */ |
| 3723 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 3722 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3723 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3724 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 3724 | 3725 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3725 | 3726 | MDRV_SCREEN_SIZE(512, 256) |
| 3726 | 3727 | MDRV_SCREEN_VISIBLE_AREA(0, 512-1, 16, 256-1) |
| 3728 | ||
| 3727 | 3729 | MDRV_PALETTE_LENGTH(512) |
| 3728 | 3730 | |
| 3729 | 3731 | MDRV_PALETTE_INIT(sprtmtch) // static palette |
| r1711 | r1712 | |
| 3754 | 3756 | MDRV_CPU_IO_MAP(mjfriday_io_map,0) |
| 3755 | 3757 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 3756 | 3758 | |
| 3757 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3758 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 3759 | ||
| 3760 | 3759 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 3761 | 3760 | |
| 3762 | 3761 | /* video hardware */ |
| 3763 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 3762 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3763 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3764 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 3764 | 3765 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3765 | 3766 | MDRV_SCREEN_SIZE(256, 256) |
| 3766 | 3767 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 16, 256-1) |
| 3768 | ||
| 3767 | 3769 | MDRV_PALETTE_LENGTH(512) |
| 3768 | 3770 | |
| 3769 | 3771 | MDRV_PALETTE_INIT(sprtmtch) // static palette |
| r1711 | r1712 | |
| 3827 | 3829 | |
| 3828 | 3830 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 3829 | 3831 | |
| 3830 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 3832 | ||
| 3833 | MDRV_SCREEN_MODIFY("main") | |
| 3831 | 3834 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3832 | 3835 | MDRV_SCREEN_VISIBLE_AREA(0, 336-1, 8, 256-1-8-1) |
| 3833 | 3836 | MACHINE_DRIVER_END |
| r1711 | r1712 | |
| 3900 | 3903 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 3901 | 3904 | |
| 3902 | 3905 | /* video hardware */ |
| 3903 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 3904 | 3906 | MDRV_PALETTE_LENGTH(512) |
| 3905 | 3907 | MDRV_DEFAULT_LAYOUT(layout_dualhuov) |
| 3906 | 3908 | |
| 3907 | MDRV_SCREEN_ADD("top", | |
| 3909 | MDRV_SCREEN_ADD("top", RASTER) | |
| 3908 | 3910 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3909 | 3911 | MDRV_SCREEN_REFRESH_RATE(60) |
| 3910 | MDRV_SCREEN_VBLANK_TIME( | |
| 3912 | MDRV_SCREEN_VBLANK_TIME( | |
| 3911 | 3913 | MDRV_SCREEN_SIZE(512, 256) |
| 3912 | 3914 | MDRV_SCREEN_VISIBLE_AREA(0, 512-1, 16, 256-1) |
| 3913 | 3915 | |
| 3914 | MDRV_SCREEN_ADD("bottom", | |
| 3916 | MDRV_SCREEN_ADD("bottom", RASTER) | |
| 3915 | 3917 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3916 | 3918 | MDRV_SCREEN_REFRESH_RATE(60) |
| 3917 | MDRV_SCREEN_VBLANK_TIME( | |
| 3919 | MDRV_SCREEN_VBLANK_TIME( | |
| 3918 | 3920 | MDRV_SCREEN_SIZE(512, 256) |
| 3919 | 3921 | MDRV_SCREEN_VISIBLE_AREA(0, 512-1, 16, 256-1) |
| 3920 | 3922 | |
| r1711 | r1712 | |
| 4057 | 4059 | |
| 4058 | 4060 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 4059 | 4061 | |
| 4062 | /* video hardware */ | |
| 4063 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4060 | 4064 | MDRV_SCREEN_REFRESH_RATE(60) |
| 4061 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 4062 | ||
| 4063 | /* video hardware */ | |
| 4064 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 4065 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 4065 | 4066 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 4066 | 4067 | MDRV_SCREEN_SIZE(512, 256) |
| 4067 | 4068 | MDRV_SCREEN_VISIBLE_AREA(0, 336-1, 0+8, 256-1-8) |
| 4069 | ||
| 4068 | 4070 | MDRV_PALETTE_LENGTH(16*256) |
| 4069 | 4071 | |
| 4070 | 4072 | MDRV_VIDEO_START(htengoku) |
| r1711 | r1712 | |
| 4112 | 4114 | MDRV_CPU_IO_MAP(tenkai_io_map,0) |
| 4113 | 4115 | MDRV_CPU_VBLANK_INT(tenkai_interrupt,3) |
| 4114 | 4116 | |
| 4115 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 4116 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 4117 | ||
| 4118 | 4117 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 4119 | 4118 | |
| 4120 | 4119 | /* video hardware */ |
| 4121 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 4120 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4121 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 4122 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 4122 | 4123 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 4123 | 4124 | MDRV_SCREEN_SIZE(512, 256) |
| 4124 | 4125 | MDRV_SCREEN_VISIBLE_AREA(0, 512-1, 4, 255-8-4) |
| 4126 | ||
| 4125 | 4127 | MDRV_PALETTE_LENGTH(16*256) |
| 4126 | 4128 | |
| 4127 | 4129 | MDRV_VIDEO_START(mjelctrn) |
| r1711 | r1712 | |
|---|---|---|
| 311 | 311 | /* audio CPU */ |
| 312 | 312 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 313 | 313 | |
| 314 | /* video hardware */ | |
| 315 | MDRV_SCREEN_ADD("main", RASTER) | |
| 314 | 316 | MDRV_SCREEN_REFRESH_RATE(60) |
| 315 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 316 | ||
| 317 | /* video hardware */ | |
| 318 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 317 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 319 | 318 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 320 | 319 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 321 | 320 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 321 | ||
| 322 | 322 | MDRV_GFXDECODE(shootout) |
| 323 | 323 | MDRV_PALETTE_LENGTH(256) |
| 324 | 324 | |
| r1711 | r1712 | |
| 342 | 342 | MDRV_CPU_PROGRAM_MAP(readmem_alt,writemem_alt) |
| 343 | 343 | MDRV_CPU_VBLANK_INT(shootout_interrupt,1) /* nmi's are triggered at coin up */ |
| 344 | 344 | |
| 345 | /* video hardware */ | |
| 346 | MDRV_SCREEN_ADD("main", RASTER) | |
| 345 | 347 | MDRV_SCREEN_REFRESH_RATE(60) |
| 346 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 347 | ||
| 348 | /* video hardware */ | |
| 349 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 348 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 350 | 349 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 351 | 350 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 352 | 351 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 352 | ||
| 353 | 353 | MDRV_GFXDECODE(shootout) |
| 354 | 354 | MDRV_PALETTE_LENGTH(256) |
| 355 | 355 |
| r1711 | r1712 | |
|---|---|---|
| 255 | 255 | /* audio CPU */ |
| 256 | 256 | MDRV_CPU_PROGRAM_MAP(readmem_sound,writemem_sound) |
| 257 | 257 | |
| 258 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 259 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 260 | 258 | MDRV_INTERLEAVE(10) /* 10 CPU slices per frame - enough for the sound CPU to read all commands */ |
| 261 | 259 | |
| 262 | 260 | /* video hardware */ |
| 263 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 261 | MDRV_SCREEN_ADD("main", RASTER) | |
| 262 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 263 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 264 | 264 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 265 | 265 | MDRV_SCREEN_SIZE(37*8, 32*8) |
| 266 | 266 | MDRV_SCREEN_VISIBLE_AREA(0*8, 35*8-1, 2*8, 30*8-1) |
| 267 | ||
| 267 | 268 | MDRV_GFXDECODE(contra) |
| 268 | 269 | MDRV_PALETTE_LENGTH(2*8*16*16) |
| 269 | 270 |
| r1711 | r1712 | |
|---|---|---|
| 428 | 428 | MDRV_CPU_PROGRAM_MAP( zn_map, 0 ) |
| 429 | 429 | MDRV_CPU_VBLANK_INT( psx_vblank, 1 ) |
| 430 | 430 | |
| 431 | /* video hardware */ | |
| 432 | MDRV_SCREEN_ADD("main", RASTER) | |
| 431 | 433 | MDRV_SCREEN_REFRESH_RATE( 60 ) |
| 432 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 433 | ||
| 434 | /* video hardware */ | |
| 435 | MDRV_VIDEO_ATTRIBUTES( VIDEO_TYPE_RASTER ) | |
| 434 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 436 | 435 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 437 | 436 | MDRV_SCREEN_SIZE( 1024, 512 ) |
| 438 | 437 | MDRV_SCREEN_VISIBLE_AREA( 0, 639, 0, 479 ) |
| 438 | ||
| 439 | 439 | MDRV_PALETTE_LENGTH( 65536 ) |
| 440 | 440 | |
| 441 | 441 | MDRV_PALETTE_INIT( psx ) |
| r1711 | r1712 | |
| 454 | 454 | static MACHINE_DRIVER_START( zn1_2mb_vram ) |
| 455 | 455 | MDRV_IMPORT_FROM( zn1_1mb_vram ) |
| 456 | 456 | |
| 457 | MDRV_SCREEN_MODIFY("main") | |
| 457 | 458 | MDRV_SCREEN_SIZE( 1024, 1024 ) |
| 458 | 459 | MACHINE_DRIVER_END |
| 459 | 460 | |
| r1711 | r1712 | |
| 463 | 464 | MDRV_CPU_PROGRAM_MAP( zn_map, 0 ) |
| 464 | 465 | MDRV_CPU_VBLANK_INT( psx_vblank, 1 ) |
| 465 | 466 | |
| 467 | /* video hardware */ | |
| 468 | MDRV_SCREEN_ADD("main", RASTER) | |
| 466 | 469 | MDRV_SCREEN_REFRESH_RATE( 60 ) |
| 467 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 468 | ||
| 469 | /* video hardware */ | |
| 470 | MDRV_VIDEO_ATTRIBUTES( VIDEO_TYPE_RASTER ) | |
| 470 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 471 | 471 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 472 | 472 | MDRV_SCREEN_SIZE( 1024, 1024 ) |
| 473 | 473 | MDRV_SCREEN_VISIBLE_AREA( 0, 639, 0, 479 ) |
| 474 | ||
| 474 | 475 | MDRV_PALETTE_LENGTH( 65536 ) |
| 475 | 476 | |
| 476 | 477 | MDRV_PALETTE_INIT( psx ) |
| r1711 | r1712 | |
|---|---|---|
| 541 | 541 | MDRV_CPU_IO_MAP(paradise_readport,paradise_writeport) |
| 542 | 542 | MDRV_CPU_VBLANK_INT(irq0_line_hold,4) /* No nmi routine */ |
| 543 | 543 | |
| 544 | /* video hardware */ | |
| 545 | MDRV_SCREEN_ADD("main", RASTER) | |
| 544 | 546 | MDRV_SCREEN_REFRESH_RATE(54) /* 54 verified */ |
| 545 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION /* we're using IPT_VBLANK */) | |
| 546 | ||
| 547 | /* video hardware */ | |
| 548 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 547 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */ /* we're using IPT_VBLANK */) | |
| 549 | 548 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 550 | 549 | MDRV_SCREEN_SIZE(256, 256) |
| 551 | 550 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0+16, 256-1-16) |
| 551 | ||
| 552 | 552 | MDRV_GFXDECODE(paradise) |
| 553 | 553 | MDRV_PALETTE_LENGTH(0x800 + 16) |
| 554 | 554 |
| r1711 | r1712 | |
|---|---|---|
| 270 | 270 | MDRV_CPU_ADD(Z80, 4000000) /* sound CPU, required to run the game */ |
| 271 | 271 | MDRV_CPU_PROGRAM_MAP(z80_readmem,z80_writemem) |
| 272 | 272 | |
| 273 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 274 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 275 | 273 | MDRV_INTERLEAVE(20) |
| 276 | 274 | |
| 277 | 275 | /* video hardware */ |
| 278 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 276 | MDRV_SCREEN_ADD("main", RASTER) | |
| 277 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 278 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 279 | 279 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 280 | 280 | MDRV_SCREEN_SIZE(320, 256) |
| 281 | 281 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 8, 247) |
| 282 | ||
| 282 | 283 | MDRV_GFXDECODE(volfied) |
| 283 | 284 | MDRV_PALETTE_LENGTH(8192) |
| 284 | 285 |
| r1711 | r1712 | |
|---|---|---|
| 303 | 303 | MDRV_CPU_IO_MAP(readport,writeport) |
| 304 | 304 | MDRV_CPU_VBLANK_INT(dribling_irq_gen,1) |
| 305 | 305 | |
| 306 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 307 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 308 | ||
| 309 | 306 | MDRV_MACHINE_RESET(dribling) |
| 310 | 307 | |
| 311 | 308 | /* video hardware */ |
| 312 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 309 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 310 | ||
| 311 | MDRV_SCREEN_ADD("main", RASTER) | |
| 312 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 313 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 313 | 314 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 314 | 315 | MDRV_SCREEN_SIZE(256, 256) |
| 315 | 316 | MDRV_SCREEN_VISIBLE_AREA(0, 255, 40, 255) |
| 317 | ||
| 316 | 318 | MDRV_PALETTE_LENGTH(256) |
| 317 | 319 | |
| 318 | 320 | MDRV_PALETTE_INIT(dribling) |
| r1711 | r1712 | |
|---|---|---|
| 236 | 236 | MDRV_CPU_ADD_TAG("main", Z80, 18432000/6) /* 3.072 MHz */ |
| 237 | 237 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 238 | 238 | |
| 239 | MDRV_SCREEN_REFRESH_RATE(16000.0/132/2) | |
| 240 | ||
| 241 | 239 | MDRV_CPU_ADD(Z80,14318000/8) |
| 242 | 240 | /* audio CPU */ /* 1.78975 MHz */ |
| 243 | 241 | MDRV_CPU_PROGRAM_MAP(frogger_sound_readmem,frogger_sound_writemem) |
| r1711 | r1712 | |
| 246 | 244 | MDRV_MACHINE_RESET(scramble) |
| 247 | 245 | |
| 248 | 246 | /* video hardware */ |
| 249 | MDRV_ | |
| 247 | MDRV_SC | |
| 250 | 248 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 249 | MDRV_SCREEN_REFRESH_RATE(16000.0/132/2) | |
| 251 | 250 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 252 | 251 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 252 | ||
| 253 | 253 | MDRV_GFXDECODE(frogger) |
| 254 | 254 | MDRV_PALETTE_LENGTH(32+64+2+1) /* 32 for characters, 64 for stars, 2 for bullets, 1 for background */ |
| 255 | 255 |
| r1711 | r1712 | |
|---|---|---|
| 1683 | 1683 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 1684 | 1684 | |
| 1685 | 1685 | /* video hardware */ |
| 1686 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 1686 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 1687 | ||
| 1688 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1687 | 1689 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1688 | 1690 | MDRV_SCREEN_RAW_PARAMS(BALSENTE_PIXEL_CLOCK, BALSENTE_HTOTAL, BALSENTE_HBEND, BALSENTE_HBSTART, BALSENTE_VTOTAL, BALSENTE_VBEND, BALSENTE_VBSTART) |
| 1689 | 1691 | MDRV_PALETTE_LENGTH(1024) |
| r1711 | r1712 | |
|---|---|---|
| 4623 | 4623 | |
| 4624 | 4624 | MDRV_MACHINE_RESET(megadriv) |
| 4625 | 4625 | |
| 4626 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 4627 | 4626 | |
| 4628 | MDRV_SCREEN_ADD("megadriv", | |
| 4627 | MDRV_SCREEN_ADD("megadriv", RASTER) | |
| 4629 | 4628 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) |
| 4630 | 4629 | MDRV_SCREEN_REFRESH_RATE(60) |
| 4631 | MDRV_SCREEN_VBLANK_TIME( | |
| 4630 | MDRV_SCREEN_VBLANK_TIME( | |
| 4632 | 4631 | MDRV_SCREEN_SIZE(64*8, 64*8) |
| 4633 | 4632 | MDRV_SCREEN_VISIBLE_AREA(0, 32*8-1, 0, 28*8-1) |
| 4634 | 4633 | |
| r1711 | r1712 | |
| 4669 | 4668 | MACHINE_DRIVER_START( megadpal ) |
| 4670 | 4669 | MDRV_IMPORT_FROM(megadriv) |
| 4671 | 4670 | |
| 4671 | MDRV_SCREEN_MODIFY("main") | |
| 4672 | 4672 | MDRV_SCREEN_REFRESH_RATE(50) |
| 4673 | 4673 | MACHINE_DRIVER_END |
| 4674 | 4674 |
| r1711 | r1712 | |
|---|---|---|
| 375 | 375 | MDRV_CPU_PROGRAM_MAP(galpani3_map,0) |
| 376 | 376 | MDRV_CPU_VBLANK_INT(galpani3_vblank, 3) |
| 377 | 377 | |
| 378 | ||
| 379 | MDRV_SCREEN_ADD("main", RASTER) | |
| 378 | 380 | MDRV_SCREEN_REFRESH_RATE(60) |
| 379 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 380 | ||
| 381 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 381 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 382 | 382 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 383 | 383 | MDRV_SCREEN_SIZE(64*8, 64*8) |
| 384 | 384 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 30*8-1) |
| 385 | ||
| 385 | 386 | MDRV_PALETTE_LENGTH(0x4000) |
| 386 | 387 | |
| 387 | 388 | MDRV_VIDEO_START(galpani3) |
| r1711 | r1712 | |
|---|---|---|
| 1570 | 1570 | MDRV_NVRAM_HANDLER(itech32) |
| 1571 | 1571 | |
| 1572 | 1572 | /* video hardware */ |
| 1573 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 1573 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 1574 | 1574 | MDRV_PALETTE_LENGTH(8192) |
| 1575 | 1575 | |
| 1576 | MDRV_SCREEN_ADD("main", | |
| 1576 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1577 | 1577 | MDRV_SCREEN_RAW_PARAMS(VIDEO_CLOCK, 508, 0, 384, 262, 0, 256) |
| 1578 | 1578 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1579 | 1579 |
| r1711 | r1712 | |
|---|---|---|
| 395 | 395 | MDRV_CPU_PROGRAM_MAP(sub_cpu_map,0) |
| 396 | 396 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 397 | 397 | |
| 398 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 399 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION /* frames per second, vblank duration */) | |
| 400 | 398 | MDRV_INTERLEAVE(100) /* 100 CPU slices per frame - an high value to ensure proper */ |
| 401 | 399 | /* synchronization of the CPUs */ |
| 402 | 400 | |
| 403 | 401 | /* video hardware */ |
| 404 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 402 | MDRV_SCREEN_ADD("main", RASTER) | |
| 403 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 404 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0) /* frames per second, vblank duration */) | |
| 405 | 405 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 406 | 406 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 407 | 407 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 408 | ||
| 408 | 409 | MDRV_GFXDECODE(mexico86) |
| 409 | 410 | MDRV_PALETTE_LENGTH(256) |
| 410 | 411 |
| r1711 | r1712 | |
|---|---|---|
| 291 | 291 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 292 | 292 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 293 | 293 | |
| 294 | MDRV_SCREEN_REFRESH_RATE(60.606060) | |
| 295 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 296 | ||
| 297 | 294 | MDRV_MACHINE_RESET(chaknpop) |
| 298 | 295 | |
| 299 | 296 | /* video hardware */ |
| 300 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 297 | MDRV_SCREEN_ADD("main", RASTER) | |
| 298 | MDRV_SCREEN_REFRESH_RATE(60.606060) | |
| 299 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 301 | 300 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 302 | 301 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 303 | 302 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 303 | ||
| 304 | 304 | MDRV_GFXDECODE(chaknpop) |
| 305 | 305 | MDRV_PALETTE_LENGTH(1024) |
| 306 | 306 |
| r1711 | r1712 | |
|---|---|---|
| 762 | 762 | MDRV_CPU_IO_MAP(snd_io, 0) |
| 763 | 763 | MDRV_CPU_VBLANK_INT(snd_irq,1) |
| 764 | 764 | |
| 765 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 766 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 767 | ||
| 768 | 765 | MDRV_GFXDECODE(fitfight) |
| 769 | 766 | |
| 770 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 767 | ||
| 768 | MDRV_SCREEN_ADD("main", RASTER) | |
| 769 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 770 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 771 | 771 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 772 | 772 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 773 | 773 | MDRV_SCREEN_VISIBLE_AREA(2*8, 39*8-1, 2*8, 30*8-1) |
| 774 | ||
| 774 | 775 | MDRV_PALETTE_LENGTH(0x800) |
| 775 | 776 | |
| 776 | 777 | MDRV_VIDEO_START(fitfight) |
| r1711 | r1712 | |
| 788 | 789 | MDRV_CPU_PROGRAM_MAP(bbprot_main_map,0) |
| 789 | 790 | MDRV_CPU_VBLANK_INT(irq2_line_hold,1) |
| 790 | 791 | |
| 791 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 792 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 793 | ||
| 794 | 792 | MDRV_GFXDECODE(prot) |
| 795 | 793 | |
| 796 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 794 | ||
| 795 | MDRV_SCREEN_ADD("main", RASTER) | |
| 796 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 797 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 797 | 798 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 798 | 799 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 799 | 800 | MDRV_SCREEN_VISIBLE_AREA(2*8, 39*8-1, 2*8, 30*8-1) |
| 801 | ||
| 800 | 802 | MDRV_PALETTE_LENGTH(0x2000) |
| 801 | 803 | |
| 802 | 804 | MDRV_VIDEO_START(fitfight) |
| r1711 | r1712 | |
|---|---|---|
| 225 | 225 | MDRV_CPU_IO_MAP(readport, writeport) |
| 226 | 226 | MDRV_CPU_VBLANK_INT(irq0_line_assert, 1) |
| 227 | 227 | |
| 228 | /* video hardware */ | |
| 229 | MDRV_SCREEN_ADD("main", RASTER) | |
| 228 | 230 | MDRV_SCREEN_REFRESH_RATE(59.39) |
| 229 | 231 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(16 * 1000000 / 15680)) |
| 230 | ||
| 231 | /* video hardware */ | |
| 232 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 233 | 232 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 234 | 233 | MDRV_SCREEN_SIZE(376, 256) |
| 235 | 234 | MDRV_SCREEN_VISIBLE_AREA(0, 375, 0, 247) |
| 235 | ||
| 236 | 236 | MDRV_GFXDECODE(sspeedr) |
| 237 | 237 | MDRV_PALETTE_LENGTH(16) |
| 238 | 238 |
| r1711 | r1712 | |
|---|---|---|
| 245 | 245 | xxxx xx1x Select graphics |
| 246 | 246 | xxxx xxx1 80x25 text |
| 247 | 247 | */ |
| 248 | fillbitmap(bitmap, | |
| 248 | fillbitmap(bitmap, | |
| 249 | 249 | |
| 250 | 250 | if(vga_mode[0] & 8) |
| 251 | 251 | { |
| r1711 | r1712 | |
| 742 | 742 | |
| 743 | 743 | MDRV_GFXDECODE(filetto) |
| 744 | 744 | |
| 745 | MDRV_SCREEN_ADD("main", RASTER) | |
| 745 | 746 | MDRV_SCREEN_REFRESH_RATE(60) |
| 746 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 747 | ||
| 748 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 747 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 749 | 748 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 750 | 749 | MDRV_SCREEN_SIZE(640, 480) |
| 751 | 750 | MDRV_SCREEN_VISIBLE_AREA(0*8, 640-1, 0*8, 480-1) |
| 751 | ||
| 752 | 752 | MDRV_PALETTE_LENGTH(0x100) |
| 753 | 753 | |
| 754 | 754 | MDRV_MACHINE_RESET(filetto) |
| r1711 | r1712 | |
|---|---|---|
| 363 | 363 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 364 | 364 | MDRV_CPU_IO_MAP(sound_readport,sound_writeport) |
| 365 | 365 | |
| 366 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 367 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 368 | ||
| 369 | 366 | /* video hardware */ |
| 370 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 367 | MDRV_SCREEN_ADD("main", RASTER) | |
| 368 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 369 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 371 | 370 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 372 | 371 | MDRV_SCREEN_SIZE(512, 512) |
| 373 | 372 | MDRV_SCREEN_VISIBLE_AREA(14*8, 50*8-1, 3*8, 29*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 92 | 92 | |
| 93 | 93 | extern UINT16 *amazon_videoram; |
| 94 | 94 | |
| 95 | extern PALETTE_INIT( amazon ); | |
| 96 | extern WRITE16_HANDLER( amazon_background_w ); | |
| 97 | extern WRITE16_HANDLER( amazon_foreground_w ); | |
| 98 | extern WRITE16_HANDLER( amazon_scrolly_w ); | |
| 99 | extern WRITE16_HANDLER( amazon_scrollx_w ); | |
| 100 | extern WRITE16_HANDLER( amazon_flipscreen_w ); | |
| 101 | extern VIDEO_START( amazon ); | |
| 102 | extern VIDEO_UPDATE( amazon ); | |
| 95 | PALETTE_INIT( amazon ); | |
| 96 | WRITE16_HANDLER( amazon_background_w ); | |
| 97 | WRITE16_HANDLER( amazon_foreground_w ); | |
| 98 | WRITE16_HANDLER( amazon_scrolly_w ); | |
| 99 | WRITE16_HANDLER( amazon_scrollx_w ); | |
| 100 | WRITE16_HANDLER( amazon_flipscreen_w ); | |
| 101 | VIDEO_START( amazon ); | |
| 102 | VIDEO_UPDATE( amazon ); | |
| 103 | 103 | |
| 104 | 104 | static const UINT16 mAmazonProtData[] = |
| 105 | 105 | { |
| r1711 | r1712 | |
| 612 | 612 | MDRV_CPU_IO_MAP(sound_readport,sound_writeport_3526) |
| 613 | 613 | MDRV_CPU_VBLANK_INT(irq0_line_hold,128) /* ??? */ |
| 614 | 614 | |
| 615 | MDRV_SCREEN_REFRESH_RATE( 60 ) | |
| 616 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 617 | ||
| 618 | 615 | MDRV_MACHINE_START(amazon) |
| 619 | 616 | |
| 620 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 617 | ||
| 618 | MDRV_SCREEN_ADD("main", RASTER) | |
| 619 | MDRV_SCREEN_REFRESH_RATE( 60 ) | |
| 620 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 621 | 621 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 622 | 622 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 623 | 623 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 624 | ||
| 624 | 625 | MDRV_GFXDECODE(terracre) |
| 625 | MDRV_PALETTE_LENGTH(256) | |
| 626 | MDRV_COLORTABLE_LENGTH(1*16+16*16+16*256) | |
| 626 | MDRV_PALETTE_LENGTH(1*16+16*16+16*256) | |
| 627 | 627 | |
| 628 | 628 | MDRV_PALETTE_INIT(amazon) |
| 629 | 629 | MDRV_VIDEO_START(amazon) |
| r1711 | r1712 | |
| 652 | 652 | MDRV_CPU_IO_MAP(sound_readport,sound_writeport_3526) |
| 653 | 653 | MDRV_CPU_VBLANK_INT(irq0_line_hold,128) /* ??? */ |
| 654 | 654 | |
| 655 | ||
| 656 | MDRV_SCREEN_ADD("main", RASTER) | |
| 655 | 657 | MDRV_SCREEN_REFRESH_RATE( 60 ) |
| 656 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 657 | ||
| 658 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 658 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 659 | 659 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 660 | 660 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 661 | 661 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 662 | ||
| 662 | 663 | MDRV_GFXDECODE(terracre) |
| 663 | MDRV_PALETTE_LENGTH(256) | |
| 664 | MDRV_COLORTABLE_LENGTH(1*16+16*16+16*256) | |
| 664 | MDRV_PALETTE_LENGTH(1*16+16*16+16*256) | |
| 665 | 665 | |
| 666 | 666 | MDRV_PALETTE_INIT(amazon) |
| 667 | 667 | MDRV_VIDEO_START(amazon) |
| r1711 | r1712 | |
| 690 | 690 | MDRV_CPU_IO_MAP(sound_readport,sound_writeport_2203) |
| 691 | 691 | MDRV_CPU_VBLANK_INT(irq0_line_hold,128) /* ??? */ |
| 692 | 692 | |
| 693 | ||
| 694 | MDRV_SCREEN_ADD("main", RASTER) | |
| 693 | 695 | MDRV_SCREEN_REFRESH_RATE(60) |
| 694 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 695 | ||
| 696 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 696 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 697 | 697 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 698 | 698 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 699 | 699 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 700 | ||
| 700 | 701 | MDRV_GFXDECODE(terracre) |
| 701 | MDRV_PALETTE_LENGTH(256) | |
| 702 | MDRV_COLORTABLE_LENGTH(1*16+16*16+16*256) | |
| 702 | MDRV_PALETTE_LENGTH(1*16+16*16+16*256) | |
| 703 | 703 | |
| 704 | 704 | MDRV_PALETTE_INIT(amazon) |
| 705 | 705 | MDRV_VIDEO_START(amazon) |
| r1711 | r1712 | |
| 755 | 755 | ROM_LOAD( "2a_6g.rom", 0x08000, 0x4000, CRC(4a9ec3e6) SHA1(0a35b82fb49ecf7edafd02744a48490e744c0a00) ) |
| 756 | 756 | ROM_LOAD( "2a_7g.rom", 0x0c000, 0x4000, CRC(450749fc) SHA1(376ab98ab8db56ed45f7d97a221dfd52e389cb5a) ) |
| 757 | 757 | |
| 758 | ROM_REGION( 0x0 | |
| 758 | ROM_REGION( 0x0400, REGION_PROMS, 0 ) | |
| 759 | 759 | ROM_LOAD( "tc1a_10f.bin", 0x0000, 0x0100, CRC(ce07c544) SHA1(c3691cb420c88f1887a55e3035b5d017decbc17a) ) /* red component */ |
| 760 | 760 | ROM_LOAD( "tc1a_11f.bin", 0x0100, 0x0100, CRC(566d323a) SHA1(fe83585a0d9c7f942a5e54620b627a5a17a0fcf4) ) /* green component */ |
| 761 | 761 | ROM_LOAD( "tc1a_12f.bin", 0x0200, 0x0100, CRC(7ea63946) SHA1(d7b89694a80736c7605b5c83d25d8b706f4504ab) ) /* blue component */ |
| 762 | 762 | ROM_LOAD( "tc2a_2g.bin", 0x0300, 0x0100, CRC(08609bad) SHA1(e5daee3c3fea6620e3c2b91becd93bc4d3cdf011) ) /* sprite lookup table */ |
| 763 | ROM_LOAD( "tc2a_4e.bin", 0x0400, 0x0100, CRC(2c43991f) SHA1(312112832bee511b0545524295aa9bc2e756db0f) ) /* sprite palette bank */ | |
| 763 | ||
| 764 | ROM_REGION( 0x0100, REGION_USER1, 0 ) | |
| 765 | ROM_LOAD( "tc2a_4e.bin", 0x0000, 0x0100, CRC(2c43991f) SHA1(312112832bee511b0545524295aa9bc2e756db0f) ) /* sprite palette bank */ | |
| 764 | 766 | ROM_END |
| 765 | 767 | |
| 766 | 768 | /**********************************************************/ |
| r1711 | r1712 | |
| 796 | 798 | ROM_LOAD( "2a_6g.rom", 0x08000, 0x4000, CRC(4a9ec3e6) SHA1(0a35b82fb49ecf7edafd02744a48490e744c0a00) ) |
| 797 | 799 | ROM_LOAD( "2a_7g.rom", 0x0c000, 0x4000, CRC(450749fc) SHA1(376ab98ab8db56ed45f7d97a221dfd52e389cb5a) ) |
| 798 | 800 | |
| 799 | ROM_REGION( 0x0 | |
| 801 | ROM_REGION( 0x0400, REGION_PROMS, 0 ) | |
| 800 | 802 | ROM_LOAD( "tc1a_10f.bin", 0x0000, 0x0100, CRC(ce07c544) SHA1(c3691cb420c88f1887a55e3035b5d017decbc17a) ) /* red component */ |
| 801 | 803 | ROM_LOAD( "tc1a_11f.bin", 0x0100, 0x0100, CRC(566d323a) SHA1(fe83585a0d9c7f942a5e54620b627a5a17a0fcf4) ) /* green component */ |
| 802 | 804 | ROM_LOAD( "tc1a_12f.bin", 0x0200, 0x0100, CRC(7ea63946) SHA1(d7b89694a80736c7605b5c83d25d8b706f4504ab) ) /* blue component */ |
| 803 | 805 | ROM_LOAD( "tc2a_2g.bin", 0x0300, 0x0100, CRC(08609bad) SHA1(e5daee3c3fea6620e3c2b91becd93bc4d3cdf011) ) /* sprite lookup table */ |
| 804 | ROM_LOAD( "tc2a_4e.bin", 0x0400, 0x0100, CRC(2c43991f) SHA1(312112832bee511b0545524295aa9bc2e756db0f) ) /* sprite palette bank */ | |
| 806 | ||
| 807 | ROM_REGION( 0x0100, REGION_USER1, 0 ) | |
| 808 | ROM_LOAD( "tc2a_4e.bin", 0x0000, 0x0100, CRC(2c43991f) SHA1(312112832bee511b0545524295aa9bc2e756db0f) ) /* sprite palette bank */ | |
| 805 | 809 | ROM_END |
| 806 | 810 | |
| 807 | 811 | /**********************************************************/ |
| r1711 | r1712 | |
| 836 | 840 | ROM_LOAD( "2a_6g.rom", 0x08000, 0x4000, CRC(4a9ec3e6) SHA1(0a35b82fb49ecf7edafd02744a48490e744c0a00) ) |
| 837 | 841 | ROM_LOAD( "2a_7g.rom", 0x0c000, 0x4000, CRC(450749fc) SHA1(376ab98ab8db56ed45f7d97a221dfd52e389cb5a) ) |
| 838 | 842 | |
| 839 | ROM_REGION( 0x0 | |
| 843 | ROM_REGION( 0x0400, REGION_PROMS, 0 ) | |
| 840 | 844 | ROM_LOAD( "tc1a_10f.bin", 0x0000, 0x0100, CRC(ce07c544) SHA1(c3691cb420c88f1887a55e3035b5d017decbc17a) ) /* red component */ |
| 841 | 845 | ROM_LOAD( "tc1a_11f.bin", 0x0100, 0x0100, CRC(566d323a) SHA1(fe83585a0d9c7f942a5e54620b627a5a17a0fcf4) ) /* green component */ |
| 842 | 846 | ROM_LOAD( "tc1a_12f.bin", 0x0200, 0x0100, CRC(7ea63946) SHA1(d7b89694a80736c7605b5c83d25d8b706f4504ab) ) /* blue component */ |
| 843 | 847 | ROM_LOAD( "tc2a_2g.bin", 0x0300, 0x0100, CRC(08609bad) SHA1(e5daee3c3fea6620e3c2b91becd93bc4d3cdf011) ) /* sprite lookup table */ |
| 844 | ROM_LOAD( "tc2a_4e.bin", 0x0400, 0x0100, CRC(2c43991f) SHA1(312112832bee511b0545524295aa9bc2e756db0f) ) /* sprite palette bank */ | |
| 848 | ||
| 849 | ROM_REGION( 0x0100, REGION_USER1, 0 ) | |
| 850 | ROM_LOAD( "tc2a_4e.bin", 0x0000, 0x0100, CRC(2c43991f) SHA1(312112832bee511b0545524295aa9bc2e756db0f) ) /* sprite palette bank */ | |
| 845 | 851 | ROM_END |
| 846 | 852 | |
| 847 | 853 | ROM_START( amazon ) |
| r1711 | r1712 | |
| 870 | 876 | ROM_LOAD( "6.6g", 0x8000, 0x4000, CRC(936ec941) SHA1(b4891e207d66f8b77c237fc23ffa48f87ab6993a) ) |
| 871 | 877 | ROM_LOAD( "7.7g", 0xc000, 0x4000, CRC(66dd718e) SHA1(80990c6199f63b215e1dead3b09cf6160dd75333) ) |
| 872 | 878 | |
| 873 | ROM_REGION( 0x2000, REGION_USER1, 0 ) /* unknown, mostly text */ | |
| 874 | ROM_LOAD( "16.18g", 0x0000, 0x2000, CRC(1d8d592b) SHA1(be8d6df8b5926069ae2cbc1dc26e1fa92d63f297) ) | |
| 875 | ||
| 876 | ROM_REGION( 0x500, REGION_PROMS, 0 ) | |
| 879 | ROM_REGION( 0x400, REGION_PROMS, 0 ) | |
| 877 | 880 | ROM_LOAD( "clr.10f", 0x000, 0x100, CRC(6440b341) SHA1(ccf89ac889f1653100f5b0a042dcd826c4ac628b) ) /* red */ |
| 878 | 881 | ROM_LOAD( "clr.11f", 0x100, 0x100, CRC(271e947f) SHA1(3d1f44fe92cc5fdff001ef80e07aa46a1ca68fe5) ) /* green */ |
| 879 | 882 | ROM_LOAD( "clr.12f", 0x200, 0x100, CRC(7d38621b) SHA1(7904c3c2c32006d4f4608b6ee84d44ecd601de73) ) /* blue */ |
| 880 | 883 | ROM_LOAD( "2g", 0x300, 0x100, CRC(44ca16b9) SHA1(1893f24d1c7f4d8e24b5484b19f9284f2ec9be08) ) /* clut */ |
| 881 | ROM_LOAD( "4e", 0x400, 0x100, CRC(035f2c7b) SHA1(36e32a50146631e763711b586936b2815600f52d) ) /* ctable */ | |
| 884 | ||
| 885 | ROM_REGION( 0x0100, REGION_USER1, 0 ) | |
| 886 | ROM_LOAD( "4e", 0x000, 0x100, CRC(035f2c7b) SHA1(36e32a50146631e763711b586936b2815600f52d) ) /* ctable */ | |
| 887 | ||
| 888 | ROM_REGION( 0x2000, REGION_USER2, 0 ) /* unknown, mostly text */ | |
| 889 | ROM_LOAD( "16.18g", 0x0000, 0x2000, CRC(1d8d592b) SHA1(be8d6df8b5926069ae2cbc1dc26e1fa92d63f297) ) | |
| 882 | 890 | ROM_END |
| 883 | 891 | |
| 884 | 892 | ROM_START( amatelas ) |
| r1711 | r1712 | |
| 907 | 915 | ROM_LOAD( "6.6g", 0x8000, 0x4000, CRC(936ec941) SHA1(b4891e207d66f8b77c237fc23ffa48f87ab6993a) ) |
| 908 | 916 | ROM_LOAD( "7.7g", 0xc000, 0x4000, CRC(66dd718e) SHA1(80990c6199f63b215e1dead3b09cf6160dd75333) ) |
| 909 | 917 | |
| 910 | ROM_REGION( 0x2000, REGION_USER1, 0 ) /* unknown, mostly text */ | |
| 911 | ROM_LOAD( "16.18g", 0x0000, 0x2000, CRC(1d8d592b) SHA1(be8d6df8b5926069ae2cbc1dc26e1fa92d63f297) ) | |
| 912 | ||
| 913 | ROM_REGION( 0x500, REGION_PROMS, 0 ) | |
| 918 | ROM_REGION( 0x400, REGION_PROMS, 0 ) | |
| 914 | 919 | ROM_LOAD( "clr.10f", 0x000, 0x100, CRC(6440b341) SHA1(ccf89ac889f1653100f5b0a042dcd826c4ac628b) ) /* red */ |
| 915 | 920 | ROM_LOAD( "clr.11f", 0x100, 0x100, CRC(271e947f) SHA1(3d1f44fe92cc5fdff001ef80e07aa46a1ca68fe5) ) /* green */ |
| 916 | 921 | ROM_LOAD( "clr.12f", 0x200, 0x100, CRC(7d38621b) SHA1(7904c3c2c32006d4f4608b6ee84d44ecd601de73) ) /* blue */ |
| 917 | 922 | ROM_LOAD( "2g", 0x300, 0x100, CRC(44ca16b9) SHA1(1893f24d1c7f4d8e24b5484b19f9284f2ec9be08) ) /* clut */ |
| 918 | ROM_LOAD( "4e", 0x400, 0x100, CRC(035f2c7b) SHA1(36e32a50146631e763711b586936b2815600f52d) ) /* ctable */ | |
| 923 | ||
| 924 | ROM_REGION( 0x0100, REGION_USER1, 0 ) | |
| 925 | ROM_LOAD( "4e", 0x000, 0x100, CRC(035f2c7b) SHA1(36e32a50146631e763711b586936b2815600f52d) ) /* ctable */ | |
| 926 | ||
| 927 | ROM_REGION( 0x2000, REGION_USER2, 0 ) /* unknown, mostly text */ | |
| 928 | ROM_LOAD( "16.18g", 0x0000, 0x2000, CRC(1d8d592b) SHA1(be8d6df8b5926069ae2cbc1dc26e1fa92d63f297) ) | |
| 919 | 929 | ROM_END |
| 920 | 930 | |
| 921 | 931 | ROM_START( horekid ) |
| r1711 | r1712 | |
| 945 | 955 | ROM_LOAD( "horekid.14", 0x10000, 0x8000, CRC(e300747a) SHA1(5875a46c215b12f1e9a889819215bca40e4459a6) ) |
| 946 | 956 | ROM_LOAD( "horekid.15", 0x18000, 0x8000, CRC(51105741) SHA1(01c3bb2c03ce1ca959d62d64be3a019e74f677ba) ) |
| 947 | 957 | |
| 948 | ROM_REGION( 0x2000, REGION_USER1, 0 ) /* unknown, mostly text */ | |
| 949 | ROM_LOAD( "horekid.17", 0x0000, 0x2000, CRC(1d8d592b) SHA1(be8d6df8b5926069ae2cbc1dc26e1fa92d63f297) ) | |
| 950 | ||
| 951 | ROM_REGION( 0x500, REGION_PROMS, 0 ) | |
| 958 | ROM_REGION( 0x400, REGION_PROMS, 0 ) | |
| 952 | 959 | ROM_LOAD( "kid_prom.10f", 0x000, 0x100, CRC(ca13ce23) SHA1(46f0ed22f601721fa35bab12ce8816f30b102f59) ) /* red */ |
| 953 | 960 | ROM_LOAD( "kid_prom.11f", 0x100, 0x100, CRC(fb44285a) SHA1(f9605e82f63188daeff044fd48d81c1dfc4d4f2a) ) /* green */ |
| 954 | 961 | ROM_LOAD( "kid_prom.12f", 0x200, 0x100, CRC(40d41237) SHA1(b33082540d739a3bfe096f68f3359fbf1360b5be) ) /* blue */ |
| 955 | 962 | ROM_LOAD( "kid_prom.2g", 0x300, 0x100, CRC(4b9be0ed) SHA1(81aa7bb24fe6ea13f5dffdb67ea699adf0b3129a) ) /* clut */ |
| 956 | ROM_LOAD( "kid_prom.4e", 0x400, 0x100, CRC(e4fb54ee) SHA1(aba89d347b24dc6680e6f25b4a6c0d6657bb6a83) ) /* ctable */ | |
| 963 | ||
| 964 | ROM_REGION( 0x0100, REGION_USER1, 0 ) | |
| 965 | ROM_LOAD( "kid_prom.4e", 0x000, 0x100, CRC(e4fb54ee) SHA1(aba89d347b24dc6680e6f25b4a6c0d6657bb6a83) ) /* ctable */ | |
| 966 | ||
| 967 | ROM_REGION( 0x2000, REGION_USER2, 0 ) /* unknown, mostly text */ | |
| 968 | ROM_LOAD( "horekid.17", 0x0000, 0x2000, CRC(1d8d592b) SHA1(be8d6df8b5926069ae2cbc1dc26e1fa92d63f297) ) | |
| 957 | 969 | ROM_END |
| 958 | 970 | |
| 959 | 971 | ROM_START( horekidb ) |
| r1711 | r1712 | |
| 983 | 995 | ROM_LOAD( "horekid.14", 0x10000, 0x8000, CRC(e300747a) SHA1(5875a46c215b12f1e9a889819215bca40e4459a6) ) |
| 984 | 996 | ROM_LOAD( "horekid.15", 0x18000, 0x8000, CRC(51105741) SHA1(01c3bb2c03ce1ca959d62d64be3a019e74f677ba) ) |
| 985 | 997 | |
| 986 | ROM_REGION( 0x2000, REGION_USER1, 0 ) /* unknown, mostly text */ | |
| 987 | ROM_LOAD( "horekid.17", 0x0000, 0x2000, CRC(1d8d592b) SHA1(be8d6df8b5926069ae2cbc1dc26e1fa92d63f297) ) | |
| 988 | ||
| 989 | ROM_REGION( 0x500, REGION_PROMS, 0 ) | |
| 998 | ROM_REGION( 0x400, REGION_PROMS, 0 ) | |
| 990 | 999 | ROM_LOAD( "kid_prom.10f", 0x000, 0x100, CRC(ca13ce23) SHA1(46f0ed22f601721fa35bab12ce8816f30b102f59) ) /* red */ |
| 991 | 1000 | ROM_LOAD( "kid_prom.11f", 0x100, 0x100, CRC(fb44285a) SHA1(f9605e82f63188daeff044fd48d81c1dfc4d4f2a) ) /* green */ |
| 992 | 1001 | ROM_LOAD( "kid_prom.12f", 0x200, 0x100, CRC(40d41237) SHA1(b33082540d739a3bfe096f68f3359fbf1360b5be) ) /* blue */ |
| 993 | 1002 | ROM_LOAD( "kid_prom.2g", 0x300, 0x100, CRC(4b9be0ed) SHA1(81aa7bb24fe6ea13f5dffdb67ea699adf0b3129a) ) /* clut */ |
| 994 | ROM_LOAD( "kid_prom.4e", 0x400, 0x100, CRC(e4fb54ee) SHA1(aba89d347b24dc6680e6f25b4a6c0d6657bb6a83) ) /* ctable */ | |
| 1003 | ||
| 1004 | ROM_REGION( 0x0100, REGION_USER1, 0 ) | |
| 1005 | ROM_LOAD( "kid_prom.4e", 0x000, 0x100, CRC(e4fb54ee) SHA1(aba89d347b24dc6680e6f25b4a6c0d6657bb6a83) ) /* ctable */ | |
| 1006 | ||
| 1007 | ROM_REGION( 0x2000, REGION_USER2, 0 ) /* unknown, mostly text */ | |
| 1008 | ROM_LOAD( "horekid.17", 0x0000, 0x2000, CRC(1d8d592b) SHA1(be8d6df8b5926069ae2cbc1dc26e1fa92d63f297) ) | |
| 995 | 1009 | ROM_END |
| 996 | 1010 | |
| 997 | 1011 | static DRIVER_INIT( amazon ) |
| r1711 | r1712 | |
|---|---|---|
| 448 | 448 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 449 | 449 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,1) |
| 450 | 450 | |
| 451 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 452 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 453 | ||
| 454 | 451 | MDRV_MACHINE_RESET(findout) |
| 455 | 452 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 456 | 453 | |
| 457 | 454 | /* video hardware */ |
| 458 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 455 | MDRV_SCREEN_ADD("main", RASTER) | |
| 456 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 457 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 459 | 458 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 460 | 459 | MDRV_SCREEN_SIZE(512, 256) |
| 461 | 460 | MDRV_SCREEN_VISIBLE_AREA(48, 511-48, 16, 255-16) |
| 461 | ||
| 462 | 462 | MDRV_PALETTE_LENGTH(256) |
| 463 | 463 | |
| 464 | 464 | MDRV_VIDEO_START(generic_bitmapped) |
| r1711 | r1712 | |
|---|---|---|
| 74 | 74 | MDRV_CPU_PROGRAM_MAP(minivadr_map,0) |
| 75 | 75 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 76 | 76 | |
| 77 | /* video hardware */ | |
| 78 | MDRV_SCREEN_ADD("main", RASTER) | |
| 77 | 79 | MDRV_SCREEN_REFRESH_RATE(60) |
| 78 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 79 | ||
| 80 | /* video hardware */ | |
| 81 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 80 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 82 | 81 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 83 | 82 | MDRV_SCREEN_SIZE(256, 256) |
| 84 | 83 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 16, 240-1) |
| 84 | ||
| 85 | 85 | MDRV_VIDEO_UPDATE(minivadr) |
| 86 | 86 | |
| 87 | 87 | /* the board has no sound hardware */ |
| r1711 | r1712 | |
|---|---|---|
| 210 | 210 | /* audio CPU */ |
| 211 | 211 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,4) /* ??? This controls the sound tempo */ |
| 212 | 212 | |
| 213 | /* video hardware */ | |
| 214 | MDRV_SCREEN_ADD("main", RASTER) | |
| 213 | 215 | MDRV_SCREEN_REFRESH_RATE(60) |
| 214 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 215 | ||
| 216 | /* video hardware */ | |
| 217 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 216 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 218 | 217 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 219 | 218 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 220 | 219 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 220 | ||
| 221 | 221 | MDRV_GFXDECODE(mouser) |
| 222 | 222 | MDRV_PALETTE_LENGTH(64) |
| 223 | 223 |
| r1711 | r1712 | |
|---|---|---|
| 555 | 555 | |
| 556 | 556 | TAITO_F3_SOUND_SYSTEM_CPU(16000000) |
| 557 | 557 | |
| 558 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 559 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 560 | ||
| 561 | 558 | MDRV_MACHINE_RESET(undrfire) |
| 562 | 559 | MDRV_NVRAM_HANDLER(undrfire) |
| 563 | 560 | |
| 564 | 561 | /* video hardware */ |
| 565 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 562 | MDRV_SCREEN_ADD("main", RASTER) | |
| 563 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 564 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 566 | 565 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 567 | 566 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 568 | 567 | MDRV_SCREEN_VISIBLE_AREA(0, 40*8-1, 3*8, 32*8-1) |
| 568 | ||
| 569 | 569 | MDRV_GFXDECODE(undrfire) |
| 570 | 570 | MDRV_PALETTE_LENGTH(16384) |
| 571 | 571 |
| r1711 | r1712 | |
|---|---|---|
| 418 | 418 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 419 | 419 | MDRV_CPU_IO_MAP(readport,writeport) |
| 420 | 420 | |
| 421 | /* video hardware */ | |
| 422 | MDRV_SCREEN_ADD("main", RASTER) | |
| 421 | 423 | MDRV_SCREEN_REFRESH_RATE(50) |
| 422 | 424 | //MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(SAA5050_VBLANK)) |
| 423 | ||
| 424 | /* video hardware */ | |
| 425 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 426 | 425 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 427 | 426 | MDRV_SCREEN_SIZE(240, 256) /* vert size is a guess */ |
| 428 | 427 | MDRV_SCREEN_VISIBLE_AREA(0, 239, 0, 239) |
| 428 | ||
| 429 | 429 | MDRV_GFXDECODE(malzak) |
| 430 | 430 | MDRV_PALETTE_LENGTH(128) |
| 431 | 431 | MDRV_PALETTE_INIT(malzak) |
| r1711 | r1712 | |
|---|---|---|
| 1884 | 1884 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 1885 | 1885 | |
| 1886 | 1886 | MDRV_MACHINE_RESET(deco32) |
| 1887 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1888 | 1887 | |
| 1889 | 1888 | /* video hardware */ |
| 1890 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 1889 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 1890 | ||
| 1891 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1892 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1891 | 1893 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1892 | 1894 | MDRV_SCREEN_SIZE(42*8, 32*8) |
| 1893 | 1895 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 1896 | ||
| 1894 | 1897 | MDRV_GFXDECODE(captaven) |
| 1895 | 1898 | MDRV_PALETTE_LENGTH(2048) |
| 1896 | 1899 | |
| r1711 | r1712 | |
| 1928 | 1931 | /* audio CPU */ |
| 1929 | 1932 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 1930 | 1933 | |
| 1931 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1932 | 1934 | MDRV_NVRAM_HANDLER(93C46) |
| 1933 | 1935 | |
| 1934 | 1936 | /* video hardware */ |
| 1935 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM ) | |
| 1937 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM ) | |
| 1938 | ||
| 1939 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1940 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1936 | 1941 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 1937 | 1942 | MDRV_SCREEN_SIZE(42*8, 32*8) |
| 1938 | 1943 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 1944 | ||
| 1939 | 1945 | MDRV_GFXDECODE(fghthist) |
| 1940 | 1946 | MDRV_PALETTE_LENGTH(2048) |
| 1941 | 1947 | |
| r1711 | r1712 | |
| 1971 | 1977 | MDRV_CPU_ADD(H6280, 32220000/8) /* audio CPU */ |
| 1972 | 1978 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 1973 | 1979 | |
| 1974 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1975 | 1980 | MDRV_NVRAM_HANDLER(93C46) |
| 1976 | 1981 | |
| 1977 | 1982 | /* video hardware */ |
| 1978 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM ) | |
| 1983 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM ) | |
| 1984 | ||
| 1985 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1986 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1979 | 1987 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 1980 | 1988 | MDRV_SCREEN_SIZE(42*8, 32*8) |
| 1981 | 1989 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 1990 | ||
| 1982 | 1991 | MDRV_GFXDECODE(fghthist) |
| 1983 | 1992 | MDRV_PALETTE_LENGTH(2048) |
| 1984 | 1993 | |
| r1711 | r1712 | |
| 2016 | 2025 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 2017 | 2026 | |
| 2018 | 2027 | MDRV_MACHINE_RESET(deco32) |
| 2019 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2020 | 2028 | MDRV_NVRAM_HANDLER(93C46) |
| 2021 | 2029 | |
| 2022 | 2030 | /* video hardware */ |
| 2023 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM ) | |
| 2031 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM ) | |
| 2032 | ||
| 2033 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2034 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2024 | 2035 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 2025 | 2036 | MDRV_SCREEN_SIZE(42*8, 32*8) |
| 2026 | 2037 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 2038 | ||
| 2027 | 2039 | MDRV_GFXDECODE(dragngun) |
| 2028 | 2040 | MDRV_PALETTE_LENGTH(2048) |
| 2029 | 2041 | |
| r1711 | r1712 | |
| 2067 | 2079 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 2068 | 2080 | |
| 2069 | 2081 | MDRV_MACHINE_RESET(deco32) |
| 2070 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2071 | 2082 | MDRV_NVRAM_HANDLER(93C46) |
| 2072 | 2083 | |
| 2073 | 2084 | /* video hardware */ |
| 2074 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM ) | |
| 2085 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM ) | |
| 2086 | ||
| 2087 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2088 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2075 | 2089 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 2076 | 2090 | MDRV_SCREEN_SIZE(42*8, 32*8) |
| 2077 | 2091 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 2092 | ||
| 2078 | 2093 | MDRV_GFXDECODE(dragngun) |
| 2079 | 2094 | MDRV_PALETTE_LENGTH(2048) |
| 2080 | 2095 | |
| r1711 | r1712 | |
| 2118 | 2133 | MDRV_CPU_PROGRAM_MAP(sound_readmem_tattass,sound_writemem_tattass) |
| 2119 | 2134 | MDRV_CPU_PERIODIC_INT(tattass_snd_interrupt, 489) /* Fixed FIRQ of 489Hz as measured on real (pinball) machine */ |
| 2120 | 2135 | |
| 2121 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2122 | 2136 | MDRV_NVRAM_HANDLER(tattass) |
| 2123 | 2137 | |
| 2124 | 2138 | /* video hardware */ |
| 2125 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM ) | |
| 2139 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM ) | |
| 2140 | ||
| 2141 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2142 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2126 | 2143 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 2127 | 2144 | MDRV_SCREEN_SIZE(42*8, 32*8) |
| 2128 | 2145 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 2146 | ||
| 2129 | 2147 | MDRV_GFXDECODE(tattass) |
| 2130 | 2148 | MDRV_PALETTE_LENGTH(2048) |
| 2131 | 2149 | |
| r1711 | r1712 | |
| 2152 | 2170 | MDRV_CPU_PROGRAM_MAP(nslasher_sound,0) |
| 2153 | 2171 | MDRV_CPU_IO_MAP(nslasher_io_sound,0) |
| 2154 | 2172 | |
| 2155 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2156 | 2173 | MDRV_NVRAM_HANDLER(93C46) |
| 2157 | 2174 | |
| 2158 | 2175 | /* video hardware */ |
| 2159 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM ) | |
| 2176 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM ) | |
| 2177 | ||
| 2178 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2179 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2160 | 2180 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 2161 | 2181 | MDRV_SCREEN_SIZE(42*8, 32*8) |
| 2162 | 2182 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 2183 | ||
| 2163 | 2184 | MDRV_GFXDECODE(nslasher) |
| 2164 | 2185 | MDRV_PALETTE_LENGTH(2048) |
| 2165 | 2186 |
| r1711 | r1712 | |
|---|---|---|
| 113 | 113 | MDRV_CPU_ADD(M6805, 1000000) |
| 114 | 114 | MDRV_CPU_PROGRAM_MAP(vertigo_motor,0) |
| 115 | 115 | */ |
| 116 | ||
| 117 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 118 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 119 | 116 | MDRV_MACHINE_RESET(vertigo) |
| 120 | 117 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 121 | 118 | |
| 122 | 119 | /* video hardware */ |
| 123 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_VECTOR ) | |
| 124 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) | |
| 120 | MDRV_SCREEN_ADD("main", VECTOR) | |
| 121 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 125 | 122 | MDRV_SCREEN_SIZE(400, 300) |
| 126 | 123 | MDRV_SCREEN_VISIBLE_AREA(0, 510, 0, 400) |
| 124 | ||
| 127 | 125 | MDRV_PALETTE_LENGTH(32768) |
| 128 | 126 | |
| 129 | 127 | MDRV_VIDEO_START(vector) |
| r1711 | r1712 | |
|---|---|---|
| 1123 | 1123 | MDRV_NVRAM_HANDLER(generic_1fill) |
| 1124 | 1124 | |
| 1125 | 1125 | /* video hardware */ |
| 1126 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1127 | 1126 | MDRV_PALETTE_LENGTH(32768) |
| 1128 | 1127 | |
| 1129 | MDRV_SCREEN_ADD("main", | |
| 1128 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1130 | 1129 | MDRV_SCREEN_RAW_PARAMS(MIDZEUS_VIDEO_CLOCK/8, 529, 0, 400, 278, 0, 256) |
| 1131 | 1130 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1132 | 1131 | |
| r1711 | r1712 | |
| 1150 | 1149 | MDRV_NVRAM_HANDLER(midzeus2) |
| 1151 | 1150 | |
| 1152 | 1151 | /* video hardware */ |
| 1153 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1154 | ||
| 1155 | MDRV_SCREEN_ADD("main", 0) | |
| 1152 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1156 | 1153 | MDRV_SCREEN_RAW_PARAMS(MIDZEUS_VIDEO_CLOCK/4, 666, 0, 512, 438, 0, 400) |
| 1157 | 1154 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 1158 | 1155 |
| r1711 | r1712 | |
|---|---|---|
| 693 | 693 | MDRV_INTERLEAVE(100) |
| 694 | 694 | |
| 695 | 695 | /* video hardware */ |
| 696 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 696 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 697 | 697 | MDRV_GFXDECODE(grchamp) |
| 698 | 698 | |
| 699 | MDRV_SCREEN_ADD("main", | |
| 699 | MDRV_SCREEN_ADD("main", RASTER) | |
| 700 | 700 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 701 | 701 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART) |
| 702 | 702 |
| r1711 | r1712 | |
|---|---|---|
| 65 | 65 | Note : |
| 66 | 66 | ======= |
| 67 | 67 | - To enter test mode, press coin 2 key at start in Argus and Valtric. |
| 68 | - DIP locations verified for: | |
| 69 | butasan | |
| 70 | argus | |
| 71 | valtric | |
| 68 | 72 | |
| 69 | 73 | |
| 70 | 74 | Known issues : |
| r1711 | r1712 | |
| 485 | 489 | |
| 486 | 490 | ***************************************************************************/ |
| 487 | 491 | |
| 488 | #define ARGUS_IN0\ | |
| 489 | PORT_START_TAG("IN0")\ | |
| 490 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )\ | |
| 491 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )\ | |
| 492 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN )\ | |
| 493 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN )\ | |
| 494 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )\ | |
| 495 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )\ | |
| 496 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 )\ | |
| 492 | static INPUT_PORTS_START( argus ) | |
| 493 | /* System control */ | |
| 494 | PORT_START_TAG("IN0") | |
| 495 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) | |
| 496 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) | |
| 497 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 498 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 499 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 500 | //PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 501 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 502 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 497 | 503 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 498 | 504 | |
| 499 | #define ARGUS_IN1 \ | |
| 500 | PORT_START_TAG("IN1") \ | |
| 501 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY\ | |
| 502 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY\ | |
| 503 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY\ | |
| 504 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY\ | |
| 505 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 )\ | |
| 506 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 )\ | |
| 507 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )\ | |
| 505 | /* Player 1 control */ | |
| 506 | PORT_START_TAG("IN1") | |
| 507 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 508 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 509 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 510 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 511 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 512 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 513 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 508 | 514 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 509 | 515 | |
| 510 | #define ARGUS_IN2\ | |
| 511 | PORT_START_TAG("IN2")\ | |
| 512 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL\ | |
| 513 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL\ | |
| 514 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL\ | |
| 515 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL\ | |
| 516 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL\ | |
| 517 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL\ | |
| 516 | /* Player 2 control */ | |
| 517 | PORT_START_TAG("IN2") | |
| 518 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 519 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 520 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 521 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 522 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 523 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 518 | 524 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )\ |
| 519 | 525 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 520 | 526 | |
| 521 | #define ARGUS_DSW1\ | |
| 522 | PORT_START_TAG("DSW1")\ | |
| 523 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) )\ | |
| 524 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) )\ | |
| 525 | PORT_DIPSETTING( 0x00, DEF_STR( On ) )\ | |
| 526 | PORT_DIPNAME( 0x06, 0x06, DEF_STR( Difficulty ) )\ | |
| 527 | PORT_DIPSETTING( 0x04, DEF_STR( Easy ) )\ | |
| 528 | PORT_DIPSETTING( 0x06, DEF_STR( Medium ) )\ | |
| 529 | PORT_DIPSETTING( 0x02, DEF_STR( Hard ) )\ | |
| 530 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) )\ | |
| 531 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Free_Play ) )\ | |
| 532 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) )\ | |
| 533 | PORT_DIPSETTING( 0x00, DEF_STR( On ) )\ | |
| 534 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Cabinet) )\ | |
| 535 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )\ | |
| 536 | PORT_DIPSETTING( 0x10, DEF_STR( Cocktail ) )\ | |
| 537 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Demo_Sounds ) )\ | |
| 538 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) )\ | |
| 539 | PORT_DIPSETTING( 0x00, DEF_STR( On ) )\ | |
| 540 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Lives ) )\ | |
| 541 | PORT_DIPSETTING( 0x80, "2" )\ | |
| 542 | PORT_DIPSETTING( 0xc0, "3" )\ | |
| 543 | PORT_DIPSETTING( 0x40, "4" )\ | |
| 544 | PORT_DIPSETTING( 0x00, "5" ) | |
| 545 | ||
| 546 | ||
| 547 | static INPUT_PORTS_START( argus ) | |
| 548 | ARGUS_IN0 /* System control */ | |
| 549 | ||
| 550 | ARGUS_IN1 /* Player 1 control */ | |
| 551 | ||
| 552 | ARGUS_IN2 /* Player 2 control */ | |
| 553 | ||
| 554 | ARGUS_DSW1 | |
| 555 | ||
| 556 | PORT_START_TAG("DSW2") | |
| 557 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) | |
| 527 | PORT_START_TAG("DSW1") | |
| 528 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:8") | |
| 558 | 529 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 559 | 530 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 560 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unused ) ) | |
| 561 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 531 | PORT_DIPNAME( 0x06, 0x06, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:6,7") | |
| 532 | PORT_DIPSETTING( 0x04, DEF_STR( Easy ) ) | |
| 533 | PORT_DIPSETTING( 0x06, DEF_STR( Medium ) ) | |
| 534 | PORT_DIPSETTING( 0x02, DEF_STR( Hard ) ) | |
| 535 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 536 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Free_Play ) ) PORT_DIPLOCATION("SW1:5") | |
| 537 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 562 | 538 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 563 | PORT_DIPNAME( 0x1c, 0x1c, DEF_STR( Coin_B ) ) | |
| 539 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Cabinet) ) PORT_DIPLOCATION("SW1:4") | |
| 540 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 541 | PORT_DIPSETTING( 0x10, DEF_STR( Cocktail ) ) | |
| 542 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:3") | |
| 543 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 544 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 545 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1,2") | |
| 546 | PORT_DIPSETTING( 0x80, "2" ) | |
| 547 | PORT_DIPSETTING( 0xc0, "3" ) | |
| 548 | PORT_DIPSETTING( 0x40, "4" ) | |
| 549 | PORT_DIPSETTING( 0x00, "5" ) | |
| 550 | ||
| 551 | PORT_START_TAG("DSW2") | |
| 552 | PORT_DIPUNUSED_DIPLOC( 0x01, 0x01, "SW2:8" ) /* Listed as "Unused" */ | |
| 553 | PORT_DIPUNUSED_DIPLOC( 0x02, 0x02, "SW2:7" ) /* Listed as "Unused" */ | |
| 554 | PORT_DIPNAME( 0x1c, 0x1c, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW2:4,5,6") | |
| 564 | 555 | PORT_DIPSETTING( 0x00, DEF_STR( 5C_1C ) ) |
| 565 | 556 | PORT_DIPSETTING( 0x04, DEF_STR( 4C_1C ) ) |
| 566 | 557 | PORT_DIPSETTING( 0x08, DEF_STR( 3C_1C ) ) |
| r1711 | r1712 | |
| 569 | 560 | PORT_DIPSETTING( 0x18, DEF_STR( 1C_2C ) ) |
| 570 | 561 | PORT_DIPSETTING( 0x14, DEF_STR( 1C_3C ) ) |
| 571 | 562 | PORT_DIPSETTING( 0x10, DEF_STR( 1C_4C ) ) |
| 572 | PORT_DIPNAME( 0xe0, 0xe0, DEF_STR( Coin_A) ) | |
| 563 | PORT_DIPNAME( 0xe0, 0xe0, DEF_STR( Coin_A) ) PORT_DIPLOCATION("SW2:1,2,3") | |
| 573 | 564 | PORT_DIPSETTING( 0x00, DEF_STR( 5C_1C ) ) |
| 574 | 565 | PORT_DIPSETTING( 0x20, DEF_STR( 4C_1C ) ) |
| 575 | 566 | PORT_DIPSETTING( 0x40, DEF_STR( 3C_1C ) ) |
| r1711 | r1712 | |
| 581 | 572 | INPUT_PORTS_END |
| 582 | 573 | |
| 583 | 574 | static INPUT_PORTS_START( valtric ) |
| 575 | PORT_INCLUDE( argus ) | |
| 584 | 576 | |
| 585 | ARGUS_IN0 | |
| 586 | ||
| 587 | ARGUS_IN1 | |
| 588 | ||
| 589 | ARGUS_IN2 | |
| 590 | ||
| 591 | ARGUS_DSW1 | |
| 592 | ||
| 593 | PORT_START_TAG("DSW2") | |
| 594 | PORT_DIPNAME( 0x01, 0x01, "Invulnerability (Cheat") | |
| 577 | PORT_MODIFY("DSW2") | |
| 578 | PORT_DIPNAME( 0x01, 0x01, "Invulnerability (Cheat") PORT_DIPLOCATION("SW2:8") | |
| 595 | 579 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 596 | 580 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 597 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unused ) ) | |
| 598 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 599 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 600 | PORT_DIPNAME( 0x1c, 0x1c, DEF_STR( Coin_A ) ) | |
| 581 | PORT_DIPNAME( 0x1c, 0x1c, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW2:4,5,6") | |
| 601 | 582 | PORT_DIPSETTING( 0x00, DEF_STR( 5C_1C ) ) |
| 602 | 583 | PORT_DIPSETTING( 0x04, DEF_STR( 4C_1C ) ) |
| 603 | 584 | PORT_DIPSETTING( 0x08, DEF_STR( 3C_1C ) ) |
| r1711 | r1712 | |
| 606 | 587 | PORT_DIPSETTING( 0x18, DEF_STR( 1C_2C ) ) |
| 607 | 588 | PORT_DIPSETTING( 0x14, DEF_STR( 1C_3C ) ) |
| 608 | 589 | PORT_DIPSETTING( 0x10, DEF_STR( 1C_4C ) ) |
| 609 | PORT_DIPNAME( 0xe0, 0xe0, DEF_STR( Coin_B ) ) | |
| 590 | PORT_DIPNAME( 0xe0, 0xe0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW2:1,2,3") | |
| 610 | 591 | PORT_DIPSETTING( 0x00, DEF_STR( 5C_1C ) ) |
| 611 | 592 | PORT_DIPSETTING( 0x20, DEF_STR( 4C_1C ) ) |
| 612 | 593 | PORT_DIPSETTING( 0x40, DEF_STR( 3C_1C ) ) |
| r1711 | r1712 | |
| 618 | 599 | INPUT_PORTS_END |
| 619 | 600 | |
| 620 | 601 | static INPUT_PORTS_START( butasan ) |
| 621 | PORT_START_TAG("IN0") | |
| 622 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) | |
| 623 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) | |
| 624 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 625 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 626 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 602 | PORT_INCLUDE( valtric ) | |
| 603 | ||
| 604 | PORT_MODIFY("IN0") | |
| 627 | 605 | PORT_SERVICE( 0x20, IP_ACTIVE_LOW ) |
| 628 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 629 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 630 | 606 | |
| 631 | ARGUS_IN1 | |
| 632 | ||
| 633 | ARGUS_IN2 | |
| 634 | ||
| 635 | PORT_START_TAG("DSW1") | |
| 636 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Free_Play ) ) | |
| 607 | PORT_MODIFY("DSW1") | |
| 608 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Free_Play ) ) PORT_DIPLOCATION("SW1:8") | |
| 637 | 609 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 638 | 610 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 639 | PORT_DIPNAME( 0x02, 0x02, "Invulnerability (Cheat)") | |
| 611 | PORT_DIPNAME( 0x02, 0x02, "Invulnerability (Cheat)") PORT_DIPLOCATION("SW1:7") | |
| 640 | 612 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 641 | 613 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 642 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) | |
| 614 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:5,6") | |
| 643 | 615 | PORT_DIPSETTING( 0x0c, "3" ) |
| 644 | 616 | PORT_DIPSETTING( 0x08, "4" ) |
| 645 | 617 | PORT_DIPSETTING( 0x04, "5" ) |
| 646 | 618 | PORT_DIPSETTING( 0x00, "6" ) |
| 647 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) | |
| 648 | PORT_DIPSETTING( 0x30, "Rank 1 (Medium)" ) | |
| 619 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:3,4") | |
| 620 | PORT_DIPSETTING( 0x30, "Rank 1" ) | |
| 649 | 621 | PORT_DIPSETTING( 0x20, "Rank 2" ) |
| 650 | 622 | PORT_DIPSETTING( 0x10, "Rank 3" ) |
| 651 | 623 | PORT_DIPSETTING( 0x00, "Rank 4" ) |
| 652 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unused ) ) | |
| 653 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 654 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 655 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) | |
| 656 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 657 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 624 | PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "SW1:2" ) /* Listed as "Unused" */ | |
| 625 | PORT_DIPUNUSED_DIPLOC( 0x80, 0x80, "SW1:1" ) /* Listed as "Unused" */ | |
| 658 | 626 | |
| 659 | 627 | PORT_START_TAG("DSW2") |
| 660 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) | |
| 628 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW2:8") | |
| 661 | 629 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 662 | 630 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 663 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unused ) ) | |
| 664 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 665 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 666 | PORT_DIPNAME( 0x1c, 0x1c, DEF_STR( Coin_A ) ) | |
| 667 | PORT_DIPSETTING( 0x00, DEF_STR( 5C_1C ) ) | |
| 668 | PORT_DIPSETTING( 0x04, DEF_STR( 4C_1C ) ) | |
| 669 | PORT_DIPSETTING( 0x08, DEF_STR( 3C_1C ) ) | |
| 670 | PORT_DIPSETTING( 0x0c, DEF_STR( 2C_1C ) ) | |
| 671 | PORT_DIPSETTING( 0x1c, DEF_STR( 1C_1C ) ) | |
| 672 | PORT_DIPSETTING( 0x18, DEF_STR( 1C_2C ) ) | |
| 673 | PORT_DIPSETTING( 0x14, DEF_STR( 1C_3C ) ) | |
| 674 | PORT_DIPSETTING( 0x10, DEF_STR( 1C_4C ) ) | |
| 675 | PORT_DIPNAME( 0xe0, 0xe0, DEF_STR( Coin_B ) ) | |
| 676 | PORT_DIPSETTING( 0x00, DEF_STR( 5C_1C ) ) | |
| 677 | PORT_DIPSETTING( 0x20, DEF_STR( 4C_1C ) ) | |
| 678 | PORT_DIPSETTING( 0x40, DEF_STR( 3C_1C ) ) | |
| 679 | PORT_DIPSETTING( 0x60, DEF_STR( 2C_1C ) ) | |
| 680 | PORT_DIPSETTING( 0xe0, DEF_STR( 1C_1C ) ) | |
| 681 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_2C ) ) | |
| 682 | PORT_DIPSETTING( 0xa0, DEF_STR( 1C_3C ) ) | |
| 683 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_4C ) ) | |
| 684 | 631 | INPUT_PORTS_END |
| 685 | 632 | |
| 686 | 633 | static INPUT_PORTS_START( bombsa ) |
| 634 | PORT_INCLUDE( argus ) | |
| 687 | 635 | |
| 688 | PORT_START_TAG("IN0") | |
| 689 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) | |
| 690 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) | |
| 691 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 692 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 693 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 636 | PORT_MODIFY("IN0") | |
| 694 | 637 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 695 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 696 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 697 | 638 | |
| 698 | ARGUS_IN1 | |
| 639 | PORT_MODIFY("DSW1") | |
| 640 | PORT_DIPUNKNOWN_DIPLOC( 0x01, 0x01, "SW1:8" ) // Coin_B | |
| 641 | PORT_DIPUNKNOWN_DIPLOC( 0x02, 0x02, "SW1:7" ) | |
| 642 | PORT_DIPUNKNOWN_DIPLOC( 0x04, 0x04, "SW1:6" ) // Coin_B | |
| 643 | PORT_DIPUNKNOWN_DIPLOC( 0x08, 0x08, "SW1:5" ) // Coin_B | |
| 644 | PORT_DIPUNKNOWN_DIPLOC( 0x10, 0x10, "SW1:4" ) | |
| 645 | PORT_DIPUNKNOWN_DIPLOC( 0x20, 0x20, "SW1:3" ) | |
| 646 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:1,2") | |
| 647 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 648 | PORT_DIPSETTING( 0x40, "2 Coins 1 Credit/4 Coins 3 Credits" ) | |
| 649 | PORT_DIPSETTING( 0x80, DEF_STR( 3C_1C ) ) | |
| 650 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_4C ) ) | |
| 699 | 651 | |
| 700 | ARGUS_IN2 | |
| 701 | ||
| 702 | PORT_START_TAG("DSW1") | |
| 703 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) | |
| 704 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 705 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 706 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) | |
| 707 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 708 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 709 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) | |
| 710 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 711 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 712 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) | |
| 713 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 714 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 715 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) ) | |
| 716 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 717 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 718 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) | |
| 719 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 720 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 721 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) | |
| 722 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 723 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 724 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) | |
| 725 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 726 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 727 | ||
| 728 | PORT_START_TAG("DSW2") | |
| 729 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) | |
| 730 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 731 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 732 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) | |
| 733 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 734 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 735 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) | |
| 736 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 737 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 738 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) | |
| 739 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 740 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 741 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) ) | |
| 742 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 743 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 744 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) | |
| 745 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 746 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 747 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) | |
| 748 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 749 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 750 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) | |
| 751 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 752 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 652 | PORT_MODIFY("DSW2") | |
| 653 | PORT_DIPUNKNOWN_DIPLOC( 0x01, 0x01, "SW2:8" ) | |
| 654 | PORT_DIPUNKNOWN_DIPLOC( 0x02, 0x02, "SW2:7" ) | |
| 655 | PORT_DIPUNKNOWN_DIPLOC( 0x04, 0x04, "SW2:6" ) | |
| 656 | PORT_DIPUNKNOWN_DIPLOC( 0x08, 0x08, "SW2:5" ) | |
| 657 | PORT_DIPUNKNOWN_DIPLOC( 0x10, 0x10, "SW2:4" ) | |
| 658 | PORT_DIPUNKNOWN_DIPLOC( 0x20, 0x20, "SW2:3" ) | |
| 659 | PORT_DIPUNKNOWN_DIPLOC( 0x40, 0x40, "SW2:2" ) | |
| 660 | PORT_DIPUNKNOWN_DIPLOC( 0x80, 0x80, "SW2:1" ) | |
| 753 | 661 | INPUT_PORTS_END |
| 754 | 662 | |
| 755 | 663 | /*************************************************************************** |
| r1711 | r1712 | |
| 872 | 780 | MDRV_CPU_PROGRAM_MAP(sound_readmem_a,sound_writemem_a) |
| 873 | 781 | MDRV_CPU_IO_MAP(sound_readport_1,sound_writeport_1) |
| 874 | 782 | |
| 875 | MDRV_SCREEN_REFRESH_RATE(54) | |
| 876 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION /* This value is refered to psychic5 driver */) | |
| 877 | 783 | MDRV_INTERLEAVE(10) |
| 878 | 784 | |
| 879 | 785 | /* video hardware */ |
| 880 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 786 | MDRV_SCREEN_ADD("main", RASTER) | |
| 787 | MDRV_SCREEN_REFRESH_RATE(54) | |
| 788 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0) /* This value is refered to psychic5 driver */) | |
| 881 | 789 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 882 | 790 | MDRV_SCREEN_SIZE(32*16, 32*16) |
| 883 | 791 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| r1711 | r1712 | |
| 910 | 818 | MDRV_CPU_PROGRAM_MAP(sound_readmem_a,sound_writemem_a) |
| 911 | 819 | MDRV_CPU_IO_MAP(sound_readport_2,sound_writeport_2) |
| 912 | 820 | |
| 913 | MDRV_SCREEN_REFRESH_RATE(54) | |
| 914 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION /* This value is refered to psychic5 driver */) | |
| 915 | 821 | MDRV_INTERLEAVE(10) |
| 916 | 822 | |
| 917 | 823 | /* video hardware */ |
| 918 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 824 | MDRV_SCREEN_ADD("main", RASTER) | |
| 825 | MDRV_SCREEN_REFRESH_RATE(54) | |
| 826 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0) /* This value is refered to psychic5 driver */) | |
| 919 | 827 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 920 | 828 | MDRV_SCREEN_SIZE(32*16, 32*16) |
| 921 | 829 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| r1711 | r1712 | |
| 954 | 862 | MDRV_CPU_PROGRAM_MAP(sound_readmem_b,sound_writemem_b) |
| 955 | 863 | MDRV_CPU_IO_MAP(sound_readport_2,sound_writeport_2) |
| 956 | 864 | |
| 957 | MDRV_SCREEN_REFRESH_RATE(54) | |
| 958 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION /* This value is taken from psychic5 driver */) | |
| 959 | 865 | MDRV_INTERLEAVE(10) |
| 960 | 866 | |
| 961 | 867 | /* video hardware */ |
| 962 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 868 | MDRV_SCREEN_ADD("main", RASTER) | |
| 869 | MDRV_SCREEN_REFRESH_RATE(54) | |
| 870 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0) /* This value is taken from psychic5 driver */) | |
| 963 | 871 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 964 | 872 | MDRV_SCREEN_SIZE(32*16, 32*16) |
| 965 | 873 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| r1711 | r1712 | |
| 998 | 906 | MDRV_CPU_PROGRAM_MAP(sound_readmem_b,sound_writemem_c) |
| 999 | 907 | MDRV_CPU_IO_MAP(sound_readport_2,sound_writeport_2) |
| 1000 | 908 | |
| 1001 | MDRV_SCREEN_REFRESH_RATE(54) /* Guru says : VSync - 54Hz . HSync - 15.25kHz */ | |
| 1002 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1003 | 909 | MDRV_INTERLEAVE(10) |
| 1004 | 910 | |
| 1005 | 911 | /* video hardware */ |
| 1006 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 912 | MDRV_SCREEN_ADD("main", RASTER) | |
| 913 | MDRV_SCREEN_REFRESH_RATE(54) /* Guru says : VSync - 54Hz . HSync - 15.25kHz */ | |
| 914 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1007 | 915 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1008 | 916 | MDRV_SCREEN_SIZE(32*16, 32*16) |
| 1009 | 917 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 127 | 127 | */ |
| 128 | 128 | int i; |
| 129 | 129 | |
| 130 | for (i = 0;i < machine-> | |
| 130 | for (i = 0;i < machine->config->total_colors;i++) | |
| 131 | 131 | { |
| 132 | 132 | int bit0, bit1, bit2, r, g, b; |
| 133 | 133 | |
| r1711 | r1712 | |
| 225 | 225 | MDRV_CPU_IO_MAP(drw80pkr_io_map, 0) |
| 226 | 226 | MDRV_CPU_VBLANK_INT(irq0_line_hold, 1) |
| 227 | 227 | |
| 228 | // video hardware | |
| 229 | ||
| 230 | MDRV_SCREEN_ADD("main", RASTER) | |
| 228 | 231 | MDRV_SCREEN_REFRESH_RATE(60) |
| 229 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 230 | ||
| 231 | // video hardware | |
| 232 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 232 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 233 | 233 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 234 | 234 | MDRV_SCREEN_SIZE((31+1)*8, (31+1)*8) |
| 235 | 235 | MDRV_SCREEN_VISIBLE_AREA(0*8, 24*8-1, 0*8, 27*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 336 | 336 | MDRV_CPU_ADD(M68705,4000000) /* ??? */ |
| 337 | 337 | MDRV_CPU_PROGRAM_MAP(m68705_readmem,m68705_writemem) |
| 338 | 338 | |
| 339 | /* video hardware */ | |
| 340 | MDRV_SCREEN_ADD("main", RASTER) | |
| 339 | 341 | MDRV_SCREEN_REFRESH_RATE(60) |
| 340 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 341 | ||
| 342 | /* video hardware */ | |
| 343 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 342 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 344 | 343 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 345 | 344 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 346 | 345 | MDRV_SCREEN_VISIBLE_AREA(2*8, 32*8-1, 2*8, 30*8-1) |
| 346 | ||
| 347 | 347 | MDRV_GFXDECODE(lkage) |
| 348 | 348 | MDRV_PALETTE_LENGTH(1024) |
| 349 | 349 | |
| r1711 | r1712 | |
| 378 | 378 | MDRV_CPU_ADD(Z80, 6000000) |
| 379 | 379 | MDRV_CPU_PROGRAM_MAP(readmem_sound,writemem_sound) |
| 380 | 380 | /* IRQs are triggered by the YM2203 */ |
| 381 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 382 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 383 | 381 | |
| 384 | 382 | /* video hardware */ |
| 385 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 383 | MDRV_SCREEN_ADD("main", RASTER) | |
| 384 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 385 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 386 | 386 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 387 | 387 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 388 | 388 | MDRV_SCREEN_VISIBLE_AREA(2*8, 31*8-1, 2*8, 30*8-1) |
| 389 | ||
| 389 | 390 | MDRV_GFXDECODE(lkage) |
| 390 | 391 | MDRV_PALETTE_LENGTH(1024) |
| 391 | 392 |
| r1711 | r1712 | |
|---|---|---|
| 120 | 120 | 2, &resistances[1], bweights, 220, 0); |
| 121 | 121 | |
| 122 | 122 | /* initialize the palette with these colors */ |
| 123 | for (i = 0; i < machine-> | |
| 123 | for (i = 0; i < machine->config->total_colors; i++) | |
| 124 | 124 | { |
| 125 | 125 | int bit0, bit1, bit2; |
| 126 | 126 | int r, g, b; |
| r1711 | r1712 | |
| 343 | 343 | MDRV_MACHINE_START(superdq) |
| 344 | 344 | |
| 345 | 345 | /* video hardware */ |
| 346 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_SELF_RENDER) | |
| 346 | MDRV_VIDEO_ATTRIBUTES(VIDEO_SELF_RENDER) | |
| 347 | ||
| 348 | MDRV_SCREEN_ADD("main", RASTER) | |
| 347 | 349 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 348 | 350 | MDRV_SCREEN_REFRESH_RATE(60) |
| 349 | MDRV_SCREEN_VBLANK_TIME( | |
| 351 | MDRV_SCREEN_VBLANK_TIME( | |
| 350 | 352 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 351 | 353 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 32*8-1) |
| 352 | 354 |
| r1711 | r1712 | |
|---|---|---|
| 282 | 282 | |
| 283 | 283 | SEIBU_SOUND_SYSTEM_CPU(GOODEJAN_MHZ1/2) |
| 284 | 284 | |
| 285 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 286 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 287 | ||
| 288 | 285 | MDRV_MACHINE_RESET(seibu_sound_1) |
| 289 | 286 | |
| 290 | 287 | /* video hardware */ |
| 291 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 288 | MDRV_SCREEN_ADD("main", RASTER) | |
| 289 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 290 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 292 | 291 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 293 | 292 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 294 | 293 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 294 | ||
| 295 | 295 | MDRV_GFXDECODE(goodejan) |
| 296 | 296 | MDRV_PALETTE_LENGTH(0x1000) |
| 297 | 297 |
| r1711 | r1712 | |
|---|---|---|
| 317 | 317 | MDRV_CPU_PROGRAM_MAP(bestleag_map,0) |
| 318 | 318 | MDRV_CPU_VBLANK_INT(irq6_line_hold,1) |
| 319 | 319 | |
| 320 | ||
| 321 | MDRV_SCREEN_ADD("main", RASTER) | |
| 320 | 322 | MDRV_SCREEN_REFRESH_RATE(60) |
| 321 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 322 | ||
| 323 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 323 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 324 | 324 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 325 | 325 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 326 | 326 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 481 | 481 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 482 | 482 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| 483 | 483 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 484 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 485 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 486 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 484 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 485 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 486 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 487 | 487 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 488 | 488 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) |
| 489 | 489 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) |
| 490 | 490 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) |
| 491 | 491 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| 492 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 493 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 494 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 492 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 493 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 494 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 495 | 495 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 496 | 496 | |
| 497 | 497 | /* Dip Switches order fits the first screen */ |
| r1711 | r1712 | |
| 971 | 971 | /* audio CPU */ |
| 972 | 972 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 973 | 973 | /* IRQs are triggered by the YM2203 */ |
| 974 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 975 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 976 | 974 | |
| 977 | 975 | MDRV_MACHINE_RESET(raiga) |
| 978 | 976 | |
| 979 | 977 | /* video hardware */ |
| 980 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 978 | MDRV_SCREEN_ADD("main", RASTER) | |
| 979 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 980 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 981 | 981 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 982 | 982 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 983 | 983 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 984 | ||
| 984 | 985 | MDRV_GFXDECODE(gaiden) |
| 985 | 986 | MDRV_PALETTE_LENGTH(4096) |
| 986 | 987 | |
| r1711 | r1712 | |
| 1011 | 1012 | static MACHINE_DRIVER_START( raiga ) |
| 1012 | 1013 | MDRV_IMPORT_FROM(shadoww) |
| 1013 | 1014 | |
| 1015 | MDRV_SCREEN_MODIFY("main") | |
| 1014 | 1016 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 1015 | 1017 | |
| 1016 | 1018 | MDRV_VIDEO_START(raiga) |
| r1711 | r1712 | |
| 1029 | 1031 | MDRV_CPU_PROGRAM_MAP(drgnbowl_sound_map,0) |
| 1030 | 1032 | MDRV_CPU_IO_MAP(drgnbowl_sound_port_map,0) |
| 1031 | 1033 | |
| 1034 | /* video hardware */ | |
| 1035 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1032 | 1036 | MDRV_SCREEN_REFRESH_RATE(60) |
| 1033 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1034 | ||
| 1035 | /* video hardware */ | |
| 1036 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1037 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1037 | 1038 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1038 | 1039 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 1039 | 1040 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 1041 | ||
| 1040 | 1042 | MDRV_GFXDECODE(drgnbowl) |
| 1041 | 1043 | MDRV_PALETTE_LENGTH(4096) |
| 1042 | 1044 |
| r1711 | r1712 | |
|---|---|---|
| 940 | 940 | MDRV_MACHINE_START(zaxxon) |
| 941 | 941 | |
| 942 | 942 | /* video hardware */ |
| 943 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 944 | 943 | MDRV_GFXDECODE(zaxxon) |
| 945 | 944 | MDRV_PALETTE_LENGTH(256) |
| 946 | 945 | |
| 947 | MDRV_SCREEN_ADD("main", | |
| 946 | MDRV_SCREEN_ADD("main", RASTER) | |
| 948 | 947 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 949 | 948 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART) |
| 950 | 949 |
| r1711 | r1712 | |
|---|---|---|
| 400 | 400 | |
| 401 | 401 | MDRV_MACHINE_RESET(chinhero) |
| 402 | 402 | |
| 403 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 404 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 405 | 403 | MDRV_INTERLEAVE(10) |
| 406 | 404 | |
| 407 | 405 | /* video hardware */ |
| 408 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 406 | MDRV_SCREEN_ADD("main", RASTER) | |
| 407 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 408 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 409 | 409 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 410 | 410 | MDRV_SCREEN_SIZE(40*8, 28*8) |
| 411 | 411 | MDRV_SCREEN_VISIBLE_AREA(16, 319-16, 0, 223) |
| 412 | ||
| 412 | 413 | MDRV_GFXDECODE(chinhero) |
| 413 | 414 | MDRV_PALETTE_LENGTH(256) |
| 414 | 415 | |
| r1711 | r1712 | |
| 479 | 480 | MDRV_CPU_IO_MAP(dynamski_portmap,0) |
| 480 | 481 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 481 | 482 | |
| 483 | /* video hardware */ | |
| 484 | MDRV_SCREEN_ADD("main", RASTER) | |
| 482 | 485 | MDRV_SCREEN_REFRESH_RATE(60) |
| 483 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 484 | ||
| 485 | /* video hardware */ | |
| 486 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 486 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 487 | 487 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 488 | 488 | MDRV_SCREEN_SIZE(256+32, 256) |
| 489 | 489 | MDRV_SCREEN_VISIBLE_AREA(0, 255+32, 16, 255-16) |
| 490 | ||
| 490 | 491 | MDRV_GFXDECODE(dynamski) |
| 491 | MDRV_PALETTE_LENGTH(32) | |
| 492 | MDRV_COLORTABLE_LENGTH(16*4+16*4) | |
| 492 | MDRV_PALETTE_LENGTH(16*4+16*4) | |
| 493 | 493 | |
| 494 | 494 | MDRV_PALETTE_INIT(dynamski) |
| 495 | 495 | MDRV_VIDEO_UPDATE(dynamski) |
| r1711 | r1712 | |
| 987 | 987 | ROM_REGION( 0x240, REGION_PROMS, 0 ) |
| 988 | 988 | ROM_LOAD( "dynskic.15g", 0x000, 0x020, CRC(9333a5e4) SHA1(11025f53c98c2ae21e9d4f95da86bba4703a52bc) ) /* palette */ |
| 989 | 989 | ROM_LOAD( "dynskic.15f", 0x020, 0x020, CRC(3869514b) SHA1(1ef062284e52777ec6e269368a16b9b357a2647a) ) /* palette */ |
| 990 | ROM_LOAD( "dynski.11e", 0x040, 0x100, CRC(e625aa09) SHA1(c10371f1adf7245815c0bdcb24458c7b04edd5b9) ) /* lookup table */ | |
| 991 | ROM_LOAD( "dynski.4g", 0x140, 0x100, CRC(761fe465) SHA1(87741a6e4d14440073aaed3a8a15bc5e30b8fcfc) ) /* lookup table */ | |
| 990 | ROM_LOAD( "dynski.4g", 0x040, 0x100, CRC(761fe465) SHA1(87741a6e4d14440073aaed3a8a15bc5e30b8fcfc) ) /* lookup table */ | |
| 991 | ROM_LOAD( "dynski.11e", 0x140, 0x100, CRC(e625aa09) SHA1(c10371f1adf7245815c0bdcb24458c7b04edd5b9) ) /* lookup table */ | |
| 992 | 992 | ROM_END |
| 993 | 993 | |
| 994 | 994 |
| r1711 | r1712 | |
|---|---|---|
| 438 | 438 | |
| 439 | 439 | MDRV_MACHINE_RESET( aleck64 ) |
| 440 | 440 | |
| 441 | MDRV_SCREEN_ADD("main", RASTER) | |
| 441 | 442 | MDRV_SCREEN_REFRESH_RATE(60) |
| 442 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 443 | ||
| 444 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 443 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 445 | 444 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 446 | 445 | MDRV_SCREEN_SIZE(640, 525) |
| 447 | 446 | MDRV_SCREEN_VISIBLE_AREA(0, 639, 0, 239) |
| r1711 | r1712 | |
|---|---|---|
| 869 | 869 | /* audio CPU */ /* Z80 Clock is derived from a 14.31818 MHz crystal */ |
| 870 | 870 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 871 | 871 | |
| 872 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 873 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 874 | ||
| 875 | 872 | MDRV_NVRAM_HANDLER(trackfld) |
| 876 | 873 | |
| 877 | 874 | /* video hardware */ |
| 878 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 875 | MDRV_SCREEN_ADD("main", RASTER) | |
| 876 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 877 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 879 | 878 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 880 | 879 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 881 | 880 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 881 | ||
| 882 | 882 | MDRV_GFXDECODE(trackfld) |
| 883 | 883 | MDRV_PALETTE_LENGTH(16*16+16*16) |
| 884 | 884 | |
| r1711 | r1712 | |
| 913 | 913 | /* audio CPU */ /* Z80 Clock is derived from a 14.31818 MHz crystal */ |
| 914 | 914 | MDRV_CPU_PROGRAM_MAP(hyprolyb_sound_readmem,hyprolyb_sound_writemem) |
| 915 | 915 | |
| 916 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 917 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 918 | ||
| 919 | 916 | MDRV_NVRAM_HANDLER(trackfld) |
| 920 | 917 | |
| 921 | 918 | /* video hardware */ |
| 922 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 919 | MDRV_SCREEN_ADD("main", RASTER) | |
| 920 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 921 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 923 | 922 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 924 | 923 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 925 | 924 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 925 | ||
| 926 | 926 | MDRV_GFXDECODE(trackfld) |
| 927 | 927 | MDRV_PALETTE_LENGTH(16*16+16*16) |
| 928 | 928 | |
| r1711 | r1712 | |
| 1078 | 1078 | ROM_END |
| 1079 | 1079 | |
| 1080 | 1080 | ROM_START( hyprolyb ) |
| 1081 | /* These ROM's are located on the CPU/Video Board */ | |
| 1081 | 1082 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) /* 64k for code + 64k for decrypted opcodes */ |
| 1082 | ROM_LOAD( "a1.1", 0x6000, 0x2000, CRC(9aee2d5a) SHA1(81f151459f1113b5f2f76ddc140bf86676f778e4) ) | |
| 1083 | ROM_LOAD( "361-d02.a02", 0x8000, 0x2000, CRC(15b83099) SHA1(79827590d74f20c9a95723e06b05af2b15c34f5f) ) | |
| 1084 | ROM_LOAD( "a3.3", 0xa000, 0x2000, CRC(2d6fc308) SHA1(1ff95384670e40d560703f2238998a8e154aa4cf) ) | |
| 1085 | ROM_LOAD( "361-d04.a04", 0xc000, 0x2000, CRC(d099b1e8) SHA1(0472991ad6caef41ec6b8ec8bf3d9d07584a57cc) ) | |
| 1086 | ROM_LOAD( "361-d05.a05", 0xe000, 0x2000, CRC(974ff815) SHA1(11512df2008a79ba44bbb84bd70885f187113211) ) | |
| 1083 | ROM_LOAD( "1.a1", 0x6000, 0x2000, CRC(9aee2d5a) SHA1(81f151459f1113b5f2f76ddc140bf86676f778e4) ) | |
| 1084 | ROM_LOAD( "2.a2", 0x8000, 0x2000, CRC(15b83099) SHA1(79827590d74f20c9a95723e06b05af2b15c34f5f) ) | |
| 1085 | ROM_LOAD( "3.a4", 0xa000, 0x2000, CRC(2d6fc308) SHA1(1ff95384670e40d560703f2238998a8e154aa4cf) ) | |
| 1086 | ROM_LOAD( "4.a5", 0xc000, 0x2000, CRC(d099b1e8) SHA1(0472991ad6caef41ec6b8ec8bf3d9d07584a57cc) ) | |
| 1087 | ROM_LOAD( "5.a7", 0xe000, 0x2000, CRC(974ff815) SHA1(11512df2008a79ba44bbb84bd70885f187113211) ) | |
| 1087 | 1088 | |
| 1089 | /* These ROM's are located on the Sound Board */ | |
| 1088 | 1090 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) |
| 1089 | 1091 | ROM_LOAD( "c2_d13.bin", 0x0000, 0x2000, CRC(95bf79b6) SHA1(ea9135acd7ad162c19c5cdde356e69792d61b675) ) |
| 1090 | 1092 | |
| 1093 | /* These ROM's are located on the Sound Board */ | |
| 1091 | 1094 | ROM_REGION( 0x10000, REGION_CPU3, 0 ) /* 64k for the 6802 which plays ADPCM samples */ |
| 1092 | 1095 | /* this bootleg uses a 6802 to "emulate" the VLM5030 speech chip */ |
| 1093 | 1096 | /* I didn't bother to emulate the 6802, I just play the samples. */ |
| r1711 | r1712 | |
| 1096 | 1099 | ROM_LOAD( "2764.3", 0xc000, 0x2000, CRC(c3ec42e1) SHA1(048a95726c4f031552e629c3788952c1bc5e7251) ) |
| 1097 | 1100 | ROM_LOAD( "2764.4", 0xe000, 0x2000, CRC(76998389) SHA1(499189b0e20296af88712199b93b958655083608) ) |
| 1098 | 1101 | |
| 1102 | /* These ROM's are located on the CPU/Video Board */ | |
| 1099 | 1103 | ROM_REGION( 0x8000, REGION_GFX1, ROMREGION_DISPOSE ) |
| 1100 | ROM_LOAD( "c11_d06.bin", 0x0000, 0x2000, CRC(82e2185a) SHA1(1da9ea20e7af0b49c62fb39834a7ec686491af04) ) | |
| 1101 | ROM_LOAD( "c12_d07.bin", 0x2000, 0x2000, CRC(800ff1f1) SHA1(33d73b18903e3e6bfb30f1a06db4b8105d4040d8) ) | |
| 1102 | ROM_LOAD( "c13_d08.bin", 0x4000, 0x2000, CRC(d9faf183) SHA1(4448b6242790783d37acf50704d597af5878c2ab) ) | |
| 1103 | ROM_LOAD( "c14_d09.bin", 0x6000, 0x2000, CRC(5886c802) SHA1(884a12a8f63600da4f23b29be6dbaacef37add20) ) | |
| 1104 | ROM_LOAD( "6.a18", 0x0000, 0x2000, CRC(82e2185a) SHA1(1da9ea20e7af0b49c62fb39834a7ec686491af04) ) | |
| 1105 | ROM_LOAD( "7.a19", 0x2000, 0x2000, CRC(800ff1f1) SHA1(33d73b18903e3e6bfb30f1a06db4b8105d4040d8) ) | |
| 1106 | ROM_LOAD( "8.a21", 0x4000, 0x2000, CRC(d9faf183) SHA1(4448b6242790783d37acf50704d597af5878c2ab) ) | |
| 1107 | ROM_LOAD( "9.a22", 0x6000, 0x2000, CRC(5886c802) SHA1(884a12a8f63600da4f23b29be6dbaacef37add20) ) | |
| 1104 | 1108 | |
| 1109 | /* These ROM's are located on the CPU/Video Board */ | |
| 1105 | 1110 | ROM_REGION( 0x6000, REGION_GFX2, ROMREGION_DISPOSE ) |
| 1106 | ROM_LOAD( "361-d12.h16", 0x0000, 0x2000, CRC(768bb63d) SHA1(effc46615c389245e5a4aac18292e1d764ff0e46) ) | |
| 1107 | ROM_LOAD( "361-d11.h15", 0x2000, 0x2000, CRC(3af0e2a8) SHA1(450f35fd7e45ecc88ee80bf57499b2e9f06f6487) ) | |
| 1108 | ROM_LOAD( "h14_e10.bin", 0x4000, 0x2000, CRC(c2166a5c) SHA1(5ba25900e653ce4edcf35f1fbce758a327a715ce) ) | |
| 1111 | ROM_LOAD( "12.h22", 0x0000, 0x2000, CRC(768bb63d) SHA1(effc46615c389245e5a4aac18292e1d764ff0e46) ) | |
| 1112 | ROM_LOAD( "11.h21", 0x2000, 0x2000, CRC(3af0e2a8) SHA1(450f35fd7e45ecc88ee80bf57499b2e9f06f6487) ) | |
| 1113 | ROM_LOAD( "10.h19", 0x4000, 0x2000, CRC(c2166a5c) SHA1(5ba25900e653ce4edcf35f1fbce758a327a715ce) ) | |
| 1109 | 1114 | |
| 1115 | /* These PROM's are located on the CPU/Video Board */ | |
| 1110 | 1116 | ROM_REGION( 0x0220, REGION_PROMS, 0 ) |
| 1111 | ROM_LOAD( "361b16.f1", 0x0000, 0x0020, CRC(d55f30b5) SHA1(4d6a851f4886778307f75771645078b97ad55f5f) ) /* palette */ | |
| 1112 | ROM_LOAD( "361b17.b16", 0x0020, 0x0100, CRC(d2ba4d32) SHA1(894b5cedf01ba9225a0d6215291857e455b84903) ) /* sprite lookup table */ | |
| 1113 | ROM_LOAD( "361b18.e15", 0x0120, 0x0100, CRC(053e5861) SHA1(6740a62cf7b6938a4f936a2fed429704612060a5) ) /* char lookup table */ | |
| 1117 | ROM_LOAD( "361b16.e1", 0x0000, 0x0020, CRC(d55f30b5) SHA1(4d6a851f4886778307f75771645078b97ad55f5f) ) /* palette */ | |
| 1118 | ROM_LOAD( "361b17.b15", 0x0020, 0x0100, CRC(d2ba4d32) SHA1(894b5cedf01ba9225a0d6215291857e455b84903) ) /* sprite lookup table */ | |
| 1119 | ROM_LOAD( "361b18.f22", 0x0120, 0x0100, CRC(053e5861) SHA1(6740a62cf7b6938a4f936a2fed429704612060a5) ) /* char lookup table */ | |
| 1120 | ||
| 1121 | /* These PAL's are located on the CPU/Video Board */ | |
| 1122 | ROM_REGION( 0x0002, REGION_PLDS, ROMREGION_DISPOSE ) | |
| 1123 | ROM_LOAD( "pal16l8.bin", 0x0000, 0x0001, NO_DUMP ) /* Located at 4E. */ | |
| 1124 | ROM_LOAD( "pal16l8.bin", 0x0000, 0x0001, NO_DUMP ) /* Located at 6E. */ | |
| 1114 | 1125 | ROM_END |
| 1115 | 1126 | |
| 1116 | 1127 | ROM_START( atlantol ) |
| r1711 | r1712 | |
|---|---|---|
| 565 | 565 | MDRV_CPU_PROGRAM_MAP(sound_map,0) |
| 566 | 566 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,4) |
| 567 | 567 | |
| 568 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 569 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) //CLOCK/16/60 | |
| 570 | ||
| 571 | 568 | /* video hardware */ |
| 572 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 569 | MDRV_SCREEN_ADD("main", RASTER) | |
| 570 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 571 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) //CLOCK/16/60 | |
| 573 | 572 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 574 | 573 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 575 | 574 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 575 | ||
| 576 | 576 | MDRV_GFXDECODE(fastfred) |
| 577 | 577 | MDRV_PALETTE_LENGTH(32*8) |
| 578 | 578 | |
| r1711 | r1712 | |
| 615 | 615 | |
| 616 | 616 | /* video hardware */ |
| 617 | 617 | MDRV_PALETTE_LENGTH(256+64+2) /* 256 for characters, 64 for the stars and 2 for the web */ |
| 618 | MDRV_COLORTABLE_LENGTH(32*8+64+2) | |
| 619 | 618 | MDRV_GFXDECODE(imago) |
| 620 | 619 | |
| 621 | 620 | MDRV_VIDEO_START(imago) |
| r1711 | r1712 | |
|---|---|---|
| 887 | 887 | MDRV_MACHINE_RESET(astrof) |
| 888 | 888 | |
| 889 | 889 | /* video hardware */ |
| 890 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 891 | 890 | MDRV_VIDEO_START(astrof) |
| 892 | 891 | |
| 893 | MDRV_SCREEN_ADD("main", | |
| 892 | MDRV_SCREEN_ADD("main", RASTER) | |
| 894 | 893 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 895 | 894 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART) |
| 896 | 895 |
| r1711 | r1712 | |
|---|---|---|
| 695 | 695 | /* audio CPU */ /* Accurate */ |
| 696 | 696 | MDRV_CPU_PROGRAM_MAP(karnov_s_readmem,karnov_s_writemem) |
| 697 | 697 | |
| 698 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 699 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 700 | 698 | MDRV_MACHINE_RESET(karnov) |
| 701 | 699 | |
| 702 | 700 | /* video hardware */ |
| 703 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 701 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 702 | ||
| 703 | MDRV_SCREEN_ADD("main", RASTER) | |
| 704 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 705 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 704 | 706 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 705 | 707 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 706 | 708 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 709 | ||
| 707 | 710 | MDRV_GFXDECODE(karnov) |
| 708 | 711 | MDRV_PALETTE_LENGTH(1024) |
| 709 | 712 | |
| r1711 | r1712 | |
| 734 | 737 | /* audio CPU */ /* Accurate */ |
| 735 | 738 | MDRV_CPU_PROGRAM_MAP(karnov_s_readmem,karnov_s_writemem) |
| 736 | 739 | |
| 737 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 738 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 739 | 740 | MDRV_MACHINE_RESET(karnov) |
| 740 | 741 | |
| 741 | 742 | /* video hardware */ |
| 742 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 743 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 744 | ||
| 745 | MDRV_SCREEN_ADD("main", RASTER) | |
| 746 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 747 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 743 | 748 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 744 | 749 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 745 | 750 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 751 | ||
| 746 | 752 | MDRV_GFXDECODE(karnov) |
| 747 | 753 | MDRV_PALETTE_LENGTH(1024) |
| 748 | 754 |
| r1711 | r1712 | |
|---|---|---|
| 862 | 862 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 863 | 863 | MDRV_CPU_VBLANK_INT(irq0_line_hold,4) |
| 864 | 864 | |
| 865 | /* video hardware */ | |
| 866 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 867 | ||
| 868 | MDRV_SCREEN_ADD("main", RASTER) | |
| 865 | 869 | MDRV_SCREEN_REFRESH_RATE(60) |
| 866 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 867 | ||
| 868 | /* video hardware */ | |
| 869 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 870 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 870 | 871 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 871 | 872 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 872 | 873 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 874 | ||
| 873 | 875 | MDRV_GFXDECODE(lwings) |
| 874 | 876 | MDRV_PALETTE_LENGTH(1024) |
| 875 | 877 | |
| r1711 | r1712 | |
| 912 | 914 | MDRV_CPU_IO_MAP(adpcm_readport,adpcm_writeport) |
| 913 | 915 | MDRV_CPU_PERIODIC_INT(irq0_line_hold, 4000) |
| 914 | 916 | |
| 917 | /* video hardware */ | |
| 918 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 919 | ||
| 920 | MDRV_SCREEN_ADD("main", RASTER) | |
| 915 | 921 | MDRV_SCREEN_REFRESH_RATE(60) |
| 916 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 917 | ||
| 918 | /* video hardware */ | |
| 919 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 922 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 920 | 923 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 921 | 924 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 922 | 925 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 926 | ||
| 923 | 927 | MDRV_GFXDECODE(trojan) |
| 924 | 928 | MDRV_PALETTE_LENGTH(1024) |
| 925 | 929 | |
| r1711 | r1712 | |
| 966 | 970 | MDRV_CPU_IO_MAP(avengers_adpcm_readport,adpcm_writeport) |
| 967 | 971 | MDRV_CPU_PERIODIC_INT(irq0_line_hold, 4000) |
| 968 | 972 | |
| 973 | /* video hardware */ | |
| 974 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 975 | ||
| 976 | MDRV_SCREEN_ADD("main", RASTER) | |
| 969 | 977 | MDRV_SCREEN_REFRESH_RATE(60) |
| 970 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 971 | ||
| 972 | /* video hardware */ | |
| 973 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 978 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 974 | 979 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 975 | 980 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 976 | 981 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 982 | ||
| 977 | 983 | MDRV_GFXDECODE(trojan) |
| 978 | 984 | MDRV_PALETTE_LENGTH(1024) |
| 979 | 985 |
| r1711 | r1712 | |
|---|---|---|
| 365 | 365 | MDRV_NVRAM_HANDLER(generic_1fill) |
| 366 | 366 | |
| 367 | 367 | /* video hardware */ |
| 368 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 369 | 368 | MDRV_VIDEO_UPDATE(tms340x0) |
| 370 | 369 | |
| 371 | MDRV_SCREEN_ADD("main", | |
| 370 | MDRV_SCREEN_ADD("main", RASTER) | |
| 372 | 371 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 373 | 372 | MDRV_SCREEN_SIZE(512,256) |
| 374 | 373 | MDRV_SCREEN_VISIBLE_AREA(0,511, 24,247) |
| r1711 | r1712 | |
|---|---|---|
| 434 | 434 | MDRV_CPU_ADD_TAG("main", M6502, FREQ_17_EXACT) |
| 435 | 435 | MDRV_CPU_PROGRAM_MAP(a600xl_mem, 0) |
| 436 | 436 | MDRV_CPU_VBLANK_INT(a800xl_interrupt, TOTAL_LINES_60HZ) |
| 437 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 438 | 437 | |
| 439 | 438 | MDRV_CPU_ADD(M68705, 3579545) |
| 440 | 439 | MDRV_CPU_PROGRAM_MAP(mcu_mem,0) |
| 441 | 440 | MDRV_CPU_PERIODIC_INT( supervisor_board_check_coin_input, 10 ) |
| 442 | 441 | |
| 443 | 442 | /* video hardware */ |
| 444 | MDRV_VIDEO_ATTRIBUTES( VIDEO_TYPE_RASTER ) | |
| 443 | MDRV_SCREEN_ADD("main", RASTER) | |
| 444 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 445 | 445 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 446 | 446 | MDRV_SCREEN_VISIBLE_AREA(MIN_X, MAX_X, MIN_Y, MAX_Y) |
| 447 | MDRV_SCREEN_REFRESH_RATE(FRAME_RATE_60HZ) | |
| 448 | MDRV_SCREEN_SIZE(HWIDTH*8, TOTAL_LINES_60HZ) | |
| 449 | ||
| 447 | 450 | MDRV_PALETTE_LENGTH(sizeof(atari_palette) / sizeof(atari_palette[0])) |
| 448 | 451 | MDRV_PALETTE_INIT(atari) |
| 449 | MDRV_SCREEN_REFRESH_RATE(FRAME_RATE_60HZ) | |
| 450 | MDRV_SCREEN_SIZE(HWIDTH*8, TOTAL_LINES_60HZ) | |
| 451 | 452 | MDRV_DEFAULT_LAYOUT(layout_maxaflex) |
| 452 | 453 | |
| 453 | 454 | MDRV_VIDEO_START(atari) |
| r1711 | r1712 | |
|---|---|---|
| 797 | 797 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 798 | 798 | |
| 799 | 799 | /* video hardware */ |
| 800 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 801 | 800 | MDRV_GFXDECODE(punchout) |
| 802 | 801 | MDRV_PALETTE_LENGTH(128*4+128*4+64*8+128*4) |
| 803 | 802 | MDRV_DEFAULT_LAYOUT(layout_dualhuov) |
| 804 | 803 | |
| 805 | MDRV_SCREEN_ADD("top", | |
| 804 | MDRV_SCREEN_ADD("top", RASTER) | |
| 806 | 805 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 807 | 806 | MDRV_SCREEN_REFRESH_RATE(60) |
| 808 | MDRV_SCREEN_VBLANK_TIME( | |
| 807 | MDRV_SCREEN_VBLANK_TIME( | |
| 809 | 808 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 810 | 809 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 811 | 810 | |
| 812 | MDRV_SCREEN_ADD("bottom", | |
| 811 | MDRV_SCREEN_ADD("bottom", RASTER) | |
| 813 | 812 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 814 | 813 | MDRV_SCREEN_REFRESH_RATE(60) |
| 815 | MDRV_SCREEN_VBLANK_TIME( | |
| 814 | MDRV_SCREEN_VBLANK_TIME( | |
| 816 | 815 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 817 | 816 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 818 | 817 |
| r1711 | r1712 | |
|---|---|---|
| 2218 | 2218 | MDRV_CPU_CONFIG(config) |
| 2219 | 2219 | MDRV_CPU_PROGRAM_MAP(vegas_map_8mb,0) |
| 2220 | 2220 | |
| 2221 | MDRV_SCREEN_REFRESH_RATE(57) | |
| 2222 | ||
| 2223 | 2221 | MDRV_MACHINE_RESET(vegas) |
| 2224 | 2222 | MDRV_NVRAM_HANDLER(timekeeper_save) |
| 2225 | 2223 | |
| 2226 | 2224 | /* video hardware */ |
| 2227 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2225 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2226 | MDRV_SCREEN_REFRESH_RATE(57) | |
| 2228 | 2227 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 2229 | 2228 | MDRV_SCREEN_SIZE(640, 480) |
| 2230 | 2229 | MDRV_SCREEN_VISIBLE_AREA(0, 639, 0, 479) |
| r1711 | r1712 | |
|---|---|---|
| 170 | 170 | MDRV_CPU_IO_MAP(kopunch_io_map,0) |
| 171 | 171 | MDRV_CPU_VBLANK_INT(kopunch_interrupt,4) /* ??? */ |
| 172 | 172 | |
| 173 | /* video hardware */ | |
| 174 | MDRV_SCREEN_ADD("main", RASTER) | |
| 173 | 175 | MDRV_SCREEN_REFRESH_RATE(60) |
| 174 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 175 | ||
| 176 | /* video hardware */ | |
| 177 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 176 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 178 | 177 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 179 | 178 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 180 | 179 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 180 | ||
| 181 | 181 | MDRV_GFXDECODE(kopunch) |
| 182 | 182 | MDRV_PALETTE_LENGTH(8) |
| 183 | 183 |
| r1711 | r1712 | |
|---|---|---|
| 574 | 574 | /* audio CPU */ |
| 575 | 575 | MDRV_CPU_PROGRAM_MAP(rygar_sound_readmem,rygar_sound_writemem) |
| 576 | 576 | |
| 577 | /* video hardware */ | |
| 578 | MDRV_SCREEN_ADD("main", RASTER) | |
| 577 | 579 | MDRV_SCREEN_REFRESH_RATE(60) |
| 578 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION /* frames per second, vblank duration */) | |
| 579 | ||
| 580 | /* video hardware */ | |
| 581 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 580 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0) /* frames per second, vblank duration */) | |
| 582 | 581 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 583 | 582 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 584 | 583 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 584 | ||
| 585 | 585 | MDRV_GFXDECODE(tecmo) |
| 586 | 586 | MDRV_PALETTE_LENGTH(1024) |
| 587 | 587 |
| r1711 | r1712 | |
|---|---|---|
| 125 | 125 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 126 | 126 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 127 | 127 | |
| 128 | /* video hardware */ | |
| 129 | MDRV_SCREEN_ADD("main", RASTER) | |
| 128 | 130 | MDRV_SCREEN_REFRESH_RATE(60) |
| 129 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 130 | ||
| 131 | /* video hardware */ | |
| 132 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 131 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 133 | 132 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 134 | 133 | MDRV_SCREEN_SIZE(256, 256) |
| 135 | 134 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 16, 256-16-1) |
| 135 | ||
| 136 | 136 | MDRV_GFXDECODE(news) |
| 137 | 137 | MDRV_PALETTE_LENGTH(0x100) |
| 138 | 138 |
| r1711 | r1712 | |
|---|---|---|
| 934 | 934 | MDRV_CPU_PROGRAM_MAP(galpanic,0) |
| 935 | 935 | MDRV_CPU_VBLANK_INT(galpanic_interrupt,2) |
| 936 | 936 | |
| 937 | /* video hardware */ | |
| 938 | MDRV_SCREEN_ADD("main", RASTER) | |
| 937 | 939 | MDRV_SCREEN_REFRESH_RATE(60) |
| 938 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION /* frames per second, vblank duration */) | |
| 939 | ||
| 940 | /* video hardware */ | |
| 941 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 940 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0) /* frames per second, vblank duration */) | |
| 942 | 941 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 943 | 942 | MDRV_SCREEN_SIZE(256, 256) |
| 944 | 943 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0, 224-1) |
| 944 | ||
| 945 | 945 | MDRV_GFXDECODE(galpanic) |
| 946 | 946 | MDRV_PALETTE_LENGTH(1024 + 32768) |
| 947 | 947 | |
| r1711 | r1712 | |
| 965 | 965 | MDRV_IMPORT_FROM(galpanic) |
| 966 | 966 | |
| 967 | 967 | /* arm watchdog */ |
| 968 | MDRV_WATCHDOG_ | |
| 968 | MDRV_WATCHDOG_TIME | |
| 969 | 969 | MACHINE_DRIVER_END |
| 970 | 970 | |
| 971 | 971 | static MACHINE_DRIVER_START( comad ) |
| r1711 | r1712 | |
|---|---|---|
| 414 | 414 | MDRV_CPU_PROGRAM_MAP(i8039_readmem,i8039_writemem) |
| 415 | 415 | MDRV_CPU_IO_MAP(i8039_readport,i8039_writeport) |
| 416 | 416 | |
| 417 | /* video hardware */ | |
| 418 | MDRV_SCREEN_ADD("main", RASTER) | |
| 417 | 419 | MDRV_SCREEN_REFRESH_RATE(60) |
| 418 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 419 | ||
| 420 | /* video hardware */ | |
| 421 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 420 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 422 | 421 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 423 | 422 | MDRV_SCREEN_SIZE(36*8, 32*8) |
| 424 | 423 | MDRV_SCREEN_VISIBLE_AREA(1*8, 35*8-1, 2*8, 30*8-1) |
| 424 | ||
| 425 | 425 | MDRV_GFXDECODE(finalizr) |
| 426 | 426 | MDRV_PALETTE_LENGTH(2*16*16) |
| 427 | 427 |
| r1711 | r1712 | |
|---|---|---|
| 971 | 971 | MDRV_CPU_PROGRAM_MAP(sound_map,0) |
| 972 | 972 | MDRV_CPU_IO_MAP(sound_portmap,0) |
| 973 | 973 | |
| 974 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 975 | ||
| 976 | 974 | MDRV_MACHINE_RESET(yboard) |
| 977 | 975 | MDRV_NVRAM_HANDLER(yboard) |
| 978 | 976 | MDRV_INTERLEAVE(100) |
| 979 | 977 | |
| 980 | 978 | /* video hardware */ |
| 981 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 979 | MDRV_SCREEN_ADD("main", RASTER) | |
| 980 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 982 | 981 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 983 | 982 | MDRV_SCREEN_SIZE(342,262) /* to be verified */ |
| 984 | 983 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 28*8-1) |
| 984 | ||
| 985 | 985 | MDRV_PALETTE_LENGTH(8192*3) |
| 986 | 986 | |
| 987 | 987 | MDRV_VIDEO_START(yboard) |
| r1711 | r1712 | |
|---|---|---|
| 269 | 269 | MDRV_NVRAM_HANDLER(atarigen) |
| 270 | 270 | |
| 271 | 271 | /* video hardware */ |
| 272 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 272 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 273 | 273 | MDRV_GFXDECODE(shuuz) |
| 274 | 274 | MDRV_PALETTE_LENGTH(1024) |
| 275 | 275 | |
| 276 | MDRV_SCREEN_ADD("main", | |
| 276 | MDRV_SCREEN_ADD("main", RASTER) | |
| 277 | 277 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 278 | 278 | /* note: these parameters are from published specs, not derived */ |
| 279 | 279 | /* the board uses a VAD chip to generate video signals */ |
| r1711 | r1712 | |
|---|---|---|
| 788 | 788 | MDRV_CPU_IO_MAP(cclimber_portmap,0) |
| 789 | 789 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,1) |
| 790 | 790 | |
| 791 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 792 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 793 | 791 | MDRV_MACHINE_RESET(cclimber) |
| 794 | 792 | |
| 795 | 793 | /* video hardware */ |
| 796 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 794 | MDRV_SCREEN_ADD("main", RASTER) | |
| 795 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 796 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 797 | 797 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 798 | 798 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 799 | 799 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 800 | ||
| 800 | 801 | MDRV_GFXDECODE(cclimber) |
| 801 | 802 | MDRV_PALETTE_LENGTH(16*4+8*4) |
| 802 | 803 | |
| r1711 | r1712 | |
| 842 | 843 | MDRV_CPU_IO_MAP(swimmer_sound_portmap,0) |
| 843 | 844 | MDRV_CPU_PERIODIC_INT(nmi_line_pulse, (double)4000000/16384) /* IRQs are triggered by the main CPU */ |
| 844 | 845 | |
| 846 | /* video hardware */ | |
| 847 | MDRV_SCREEN_ADD("main", RASTER) | |
| 845 | 848 | MDRV_SCREEN_REFRESH_RATE(60) |
| 846 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 847 | ||
| 848 | /* video hardware */ | |
| 849 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 849 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 850 | 850 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 851 | 851 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 852 | 852 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 853 | ||
| 853 | 854 | MDRV_GFXDECODE(swimmer) |
| 854 | 855 | MDRV_PALETTE_LENGTH(64*8+4*8) |
| 855 | 856 |
| r1711 | r1712 | |
|---|---|---|
| 210 | 210 | MDRV_CPU_PROGRAM_MAP(xorworld_map, 0) |
| 211 | 211 | MDRV_CPU_VBLANK_INT(xorworld_interrupt, 4) // 1 IRQ2 + 1 IRQ4 + 1 IRQ6 |
| 212 | 212 | |
| 213 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 214 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 215 | 213 | MDRV_INTERLEAVE(1) |
| 216 | 214 | |
| 217 | 215 | MDRV_NVRAM_HANDLER(xorworld) |
| 218 | 216 | |
| 219 | 217 | // video hardware |
| 220 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 218 | ||
| 219 | MDRV_SCREEN_ADD("main", RASTER) | |
| 220 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 221 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 221 | 222 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 222 | 223 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 223 | 224 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 225 | ||
| 224 | 226 | MDRV_GFXDECODE(xorworld) |
| 225 | 227 | MDRV_PALETTE_LENGTH(256) |
| 226 | 228 |
| r1711 | r1712 | |
|---|---|---|
| 312 | 312 | /* audio CPU */ |
| 313 | 313 | MDRV_CPU_PROGRAM_MAP(readmem2,writemem2) |
| 314 | 314 | |
| 315 | /* video hardware */ | |
| 316 | MDRV_SCREEN_ADD("main", RASTER) | |
| 315 | 317 | MDRV_SCREEN_REFRESH_RATE(60) |
| 316 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 317 | ||
| 318 | /* video hardware */ | |
| 319 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 318 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 320 | 319 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 321 | 320 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 322 | 321 | MDRV_SCREEN_VISIBLE_AREA(8*8, 56*8-1, 1*8, 31*8-1) |
| 322 | ||
| 323 | 323 | MDRV_GFXDECODE(speedspn) |
| 324 | 324 | MDRV_PALETTE_LENGTH(0x400) |
| 325 | 325 |
| r1711 | r1712 | |
|---|---|---|
| 573 | 573 | MDRV_MACHINE_RESET(enigma2) |
| 574 | 574 | |
| 575 | 575 | /* video hardware */ |
| 576 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 577 | 576 | MDRV_VIDEO_UPDATE(enigma2) |
| 578 | 577 | |
| 579 | MDRV_SCREEN_ADD("main", | |
| 578 | MDRV_SCREEN_ADD("main", RASTER) | |
| 580 | 579 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 581 | 580 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART) |
| 582 | 581 | |
| r1711 | r1712 | |
| 604 | 603 | MDRV_MACHINE_RESET(enigma2) |
| 605 | 604 | |
| 606 | 605 | /* video hardware */ |
| 607 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 608 | 606 | MDRV_VIDEO_UPDATE(enigma2a) |
| 609 | 607 | |
| 610 | MDRV_SCREEN_ADD("main", | |
| 608 | MDRV_SCREEN_ADD("main", RASTER) | |
| 611 | 609 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 612 | 610 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART) |
| 613 | 611 |
| r1711 | r1712 | |
|---|---|---|
| 41 | 41 | |
| 42 | 42 | static VIDEO_UPDATE( cowrace ) |
| 43 | 43 | { |
| 44 | fillbitmap(bitmap, | |
| 44 | fillbitmap(bitmap, | |
| 45 | 45 | tilemap_draw(bitmap,cliprect, tmap, 0, 0); |
| 46 | 46 | return 0; |
| 47 | 47 | } |
| r1711 | r1712 | |
| 171 | 171 | MDRV_CPU_IO_MAP(io_map_sound_cowrace,0) |
| 172 | 172 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) // NMI by main CPU |
| 173 | 173 | |
| 174 | /* video hardware */ | |
| 175 | MDRV_SCREEN_ADD("main", RASTER) | |
| 174 | 176 | MDRV_SCREEN_REFRESH_RATE(60) |
| 175 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 176 | ||
| 177 | /* video hardware */ | |
| 178 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 177 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 179 | 178 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 180 | 179 | MDRV_SCREEN_SIZE(256, 256) |
| 181 | 180 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0, 256-1) |
| 181 | ||
| 182 | 182 | MDRV_GFXDECODE(cowrace) |
| 183 | 183 | MDRV_PALETTE_LENGTH(0x1000) |
| 184 | 184 |
| r1711 | r1712 | |
|---|---|---|
| 824 | 824 | MDRV_CPU_PROGRAM_MAP(sound_map,0) |
| 825 | 825 | MDRV_CPU_IO_MAP(sound_portmap,0) |
| 826 | 826 | |
| 827 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 828 | ||
| 829 | 827 | MDRV_MACHINE_RESET(outrun) |
| 830 | 828 | MDRV_INTERLEAVE(100) |
| 831 | 829 | |
| 832 | 830 | /* video hardware */ |
| 833 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 834 | 831 | MDRV_GFXDECODE(segaorun) |
| 835 | 832 | MDRV_PALETTE_LENGTH(4096*3) |
| 836 | 833 | |
| 837 | MDRV_SCREEN_ADD("main", | |
| 834 | MDRV_SCREEN_ADD("main", RASTER) | |
| 838 | 835 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 839 | 836 | MDRV_SCREEN_RAW_PARAMS(MASTER_CLOCK/8, 400, 0, 320, 262, 0, 224) |
| 840 | 837 |
| r1711 | r1712 | |
|---|---|---|
| 254 | 254 | MDRV_CPU_IO_MAP(readport, 0) |
| 255 | 255 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,1) |
| 256 | 256 | |
| 257 | /* video hardware */ | |
| 258 | MDRV_SCREEN_ADD("main", RASTER) | |
| 257 | 259 | MDRV_SCREEN_REFRESH_RATE(60) |
| 258 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 259 | ||
| 260 | /* video hardware */ | |
| 261 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 260 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 262 | 261 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 263 | 262 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 264 | 263 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 32*8-1) |
| 264 | ||
| 265 | 265 | MDRV_GFXDECODE(koikoi) |
| 266 | 266 | MDRV_PALETTE_LENGTH(8*32) |
| 267 | 267 | MDRV_PALETTE_INIT(koikoi) |
| r1711 | r1712 | |
|---|---|---|
| 136 | 136 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 137 | 137 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 138 | 138 | |
| 139 | /* video hardware */ | |
| 140 | MDRV_SCREEN_ADD("main", RASTER) | |
| 139 | 141 | MDRV_SCREEN_REFRESH_RATE(60) |
| 140 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 141 | ||
| 142 | /* video hardware */ | |
| 143 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 142 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 144 | 143 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 145 | 144 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 146 | 145 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 146 | ||
| 147 | 147 | MDRV_GFXDECODE(hexa) |
| 148 | 148 | MDRV_PALETTE_LENGTH(256) |
| 149 | 149 |
| r1711 | r1712 | |
|---|---|---|
| 764 | 764 | MDRV_CPU_CONFIG(sharc_cfg) |
| 765 | 765 | MDRV_CPU_DATA_MAP(sharc_map, 0) |
| 766 | 766 | |
| 767 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 768 | 767 | MDRV_INTERLEAVE(100) |
| 769 | 768 | |
| 770 | 769 | MDRV_NVRAM_HANDLER(gticlub) |
| 771 | 770 | MDRV_MACHINE_RESET(gticlub) |
| 772 | 771 | |
| 773 | 772 | /* video hardware */ |
| 774 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 773 | MDRV_SCREEN_ADD("main", RASTER) | |
| 774 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 775 | 775 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 776 | 776 | MDRV_SCREEN_SIZE(512, 384) |
| 777 | 777 | MDRV_SCREEN_VISIBLE_AREA(0, 511, 0, 383) |
| 778 | ||
| 778 | 779 | MDRV_PALETTE_LENGTH(65536) |
| 779 | 780 | |
| 780 | 781 | MDRV_VIDEO_START(gticlub) |
| r1711 | r1712 | |
| 812 | 813 | MDRV_CPU_CONFIG(sharc_cfg) |
| 813 | 814 | MDRV_CPU_DATA_MAP(hangplt_sharc1_map, 0) |
| 814 | 815 | |
| 815 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 816 | 816 | MDRV_INTERLEAVE(100) |
| 817 | 817 | |
| 818 | 818 | MDRV_NVRAM_HANDLER(gticlub) |
| 819 | 819 | MDRV_MACHINE_RESET(hangplt) |
| 820 | 820 | |
| 821 | 821 | /* video hardware */ |
| 822 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 823 | 822 | MDRV_PALETTE_LENGTH(65536) |
| 824 | 823 | |
| 825 | MDRV_SCREEN_ADD("left", | |
| 824 | MDRV_SCREEN_ADD("left", RASTER) | |
| 826 | 825 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 827 | 826 | MDRV_SCREEN_REFRESH_RATE(60) |
| 828 | 827 | MDRV_SCREEN_SIZE(512, 384) |
| 829 | 828 | MDRV_SCREEN_VISIBLE_AREA(0, 511, 0, 383) |
| 830 | 829 | |
| 831 | MDRV_SCREEN_ADD("right", | |
| 830 | MDRV_SCREEN_ADD("right", RASTER) | |
| 832 | 831 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 833 | 832 | MDRV_SCREEN_REFRESH_RATE(60) |
| 834 | 833 | MDRV_SCREEN_SIZE(512, 384) |
| r1711 | r1712 | |
|---|---|---|
| 343 | 343 | MDRV_CPU_PROGRAM_MAP(slave_map,0) |
| 344 | 344 | MDRV_CPU_VBLANK_INT(irq0_line_hold,2) |
| 345 | 345 | |
| 346 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 347 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 348 | 346 | MDRV_INTERLEAVE(5) |
| 349 | 347 | |
| 350 | 348 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 351 | 349 | |
| 352 | 350 | /* video hardware */ |
| 353 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 351 | MDRV_SCREEN_ADD("main", RASTER) | |
| 352 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 353 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 354 | 354 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 355 | 355 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 356 | 356 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 3*8, 32*8-1) |
| 357 | ||
| 357 | 358 | MDRV_GFXDECODE(cloak) |
| 358 | 359 | MDRV_PALETTE_LENGTH(64) |
| 359 | 360 |
| r1711 | r1712 | |
|---|---|---|
| 144 | 144 | |
| 145 | 145 | |
| 146 | 146 | if (planes_enabled[2]) |
| 147 | copybitmap_trans(bitmap,tmpbitmaps[2],0,0,0,0,cliprect,machine->pens[color_base] ); | |
| 148 | fillbitmap(tmpbitmaps[2],machine->pens[color_base],NULL); | |
| 147 | copybitmap_trans(bitmap,tmpbitmaps[2],0,0,0,0,cliprect,color_base); | |
| 148 | fillbitmap(tmpbitmaps[2],color_base,NULL); | |
| 149 | 149 | |
| 150 | 150 | |
| 151 | 151 | if (planes_enabled[1]) |
| 152 | copybitmap_trans(bitmap,tmpbitmaps[1],0,0,0,0,cliprect,machine->pens[color_base] ); | |
| 153 | fillbitmap(tmpbitmaps[1],machine->pens[color_base],NULL); | |
| 152 | copybitmap_trans(bitmap,tmpbitmaps[1],0,0,0,0,cliprect,color_base); | |
| 153 | fillbitmap(tmpbitmaps[1],color_base,NULL); | |
| 154 | 154 | |
| 155 | 155 | |
| 156 | 156 | if (planes_enabled[0]) |
| 157 | copybitmap_trans(bitmap,tmpbitmaps[0],0,0,0,0,cliprect,machine->pens[color_base] ); | |
| 158 | fillbitmap(tmpbitmaps[0],machine->pens[color_base],NULL); | |
| 157 | copybitmap_trans(bitmap,tmpbitmaps[0],0,0,0,0,cliprect,color_base); | |
| 158 | fillbitmap(tmpbitmaps[0],color_base,NULL); | |
| 159 | 159 | |
| 160 | 160 | if (input_code_pressed_once(KEYCODE_1)) /* plane 1 */ |
| 161 | 161 | { |
| r1711 | r1712 | |
| 251 | 251 | //fillbitmap(bitmap,0,NULL); |
| 252 | 252 | |
| 253 | 253 | copybitmap (bitmap,tmpbitmaps[3],0,0,0,0,cliprect); |
| 254 | copybitmap_trans(bitmap,tmpbitmaps[2],0,0,0,0,cliprect,machine->pens[color_base] ); | |
| 255 | copybitmap_trans(bitmap,tmpbitmaps[1],0,0,0,0,cliprect,machine->pens[color_base] ); | |
| 256 | copybitmap_trans(bitmap,tmpbitmaps[0],0,0,0,0,cliprect,machine->pens[color_base] ); | |
| 254 | copybitmap_trans(bitmap,tmpbitmaps[2],0,0,0,0,cliprect,color_base); | |
| 255 | copybitmap_trans(bitmap,tmpbitmaps[1],0,0,0,0,cliprect,color_base); | |
| 256 | copybitmap_trans(bitmap,tmpbitmaps[0],0,0,0,0,cliprect,color_base); | |
| 257 | 257 | return 0; |
| 258 | 258 | } |
| 259 | 259 | |
| r1711 | r1712 | |
| 271 | 271 | //fillbitmap(bitmap,0,NULL); |
| 272 | 272 | |
| 273 | 273 | copybitmap (bitmap,tmpbitmaps[3],0,0,0,0,cliprect); //text |
| 274 | copybitmap_trans(bitmap,tmpbitmaps[2],0,0,0,0,cliprect,machine->pens[0] ); | |
| 275 | copybitmap_trans(bitmap,tmpbitmaps[1],0,0,0,0,cliprect,machine->pens[0] ); //haircross | |
| 276 | copybitmap_trans(bitmap,tmpbitmaps[0],0,0,0,0,cliprect,machine->pens[0] ); //sprites | |
| 274 | copybitmap_trans(bitmap,tmpbitmaps[2],0,0,0,0,cliprect,0); | |
| 275 | copybitmap_trans(bitmap,tmpbitmaps[1],0,0,0,0,cliprect,0); //haircross | |
| 276 | copybitmap_trans(bitmap,tmpbitmaps[0],0,0,0,0,cliprect,0); //sprites | |
| 277 | 277 | return 0; |
| 278 | 278 | } |
| 279 | 279 | |
| r1711 | r1712 | |
| 1504 | 1504 | */ |
| 1505 | 1505 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 1506 | 1506 | |
| 1507 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1508 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 1509 | ||
| 1510 | 1507 | /* synchronization forced on the fly */ |
| 1511 | 1508 | |
| 1512 | 1509 | MDRV_MACHINE_RESET(mazerbla) |
| 1513 | 1510 | |
| 1514 | 1511 | /* video hardware */ |
| 1515 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1512 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1513 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1514 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 1516 | 1515 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1517 | 1516 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 1518 | 1517 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 32*8-1) |
| 1518 | ||
| 1519 | 1519 | MDRV_PALETTE_LENGTH(256) |
| 1520 | 1520 | |
| 1521 | 1521 | MDRV_PALETTE_INIT(mazerbla) |
| r1711 | r1712 | |
| 1546 | 1546 | */ |
| 1547 | 1547 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 1548 | 1548 | |
| 1549 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1550 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 1551 | ||
| 1552 | 1549 | MDRV_MACHINE_RESET(greatgun) |
| 1553 | 1550 | |
| 1554 | 1551 | /* video hardware */ |
| 1555 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1552 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1553 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1554 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 1556 | 1555 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1557 | 1556 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 1558 | 1557 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 32*8-1) |
| 1558 | ||
| 1559 | 1559 | MDRV_PALETTE_LENGTH(256) |
| 1560 | 1560 | |
| 1561 | 1561 | MDRV_PALETTE_INIT(mazerbla) |
| r1711 | r1712 | |
|---|---|---|
| 382 | 382 | MDRV_WATCHDOG_VBLANK_INIT(8) |
| 383 | 383 | |
| 384 | 384 | /* video hardware */ |
| 385 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 386 | 385 | MDRV_GFXDECODE(foodf) |
| 387 | 386 | MDRV_PALETTE_LENGTH(256) |
| 388 | 387 | |
| 389 | MDRV_SCREEN_ADD("main", | |
| 388 | MDRV_SCREEN_ADD("main", RASTER) | |
| 390 | 389 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 391 | 390 | MDRV_SCREEN_RAW_PARAMS(MASTER_CLOCK/2, 384, 0, 256, 259, 0, 224) |
| 392 | 391 |
| r1711 | r1712 | |
|---|---|---|
| 1353 | 1353 | MDRV_CPU_IO_MAP( namcona1_mcu_io_map, 0 ) |
| 1354 | 1354 | MDRV_CPU_VBLANK_INT(mcu_interrupt, 2) |
| 1355 | 1355 | |
| 1356 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1357 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 1358 | ||
| 1359 | 1356 | MDRV_NVRAM_HANDLER(namcosna1) |
| 1360 | 1357 | MDRV_MACHINE_START(namcona1) |
| 1361 | 1358 | MDRV_MACHINE_RESET(namcona1_mcu) |
| 1362 | 1359 | MDRV_INTERLEAVE(40) |
| 1363 | 1360 | |
| 1364 | 1361 | /* video hardware */ |
| 1365 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER|VIDEO_HAS_SHADOWS) | |
| 1362 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 1363 | ||
| 1364 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1365 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1366 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 1366 | 1367 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1367 | 1368 | MDRV_SCREEN_SIZE(38*8, 32*8) |
| 1368 | 1369 | MDRV_SCREEN_VISIBLE_AREA(8, 38*8-1-8, 4*8, 32*8-1) |
| 1370 | ||
| 1369 | 1371 | MDRV_PALETTE_LENGTH(0x1000) |
| 1370 | 1372 | |
| 1371 | 1373 | MDRV_VIDEO_START(namcona1) |
| r1711 | r1712 | |
| 1388 | 1390 | MDRV_IMPORT_FROM(namcona1) |
| 1389 | 1391 | |
| 1390 | 1392 | /* video hardware */ |
| 1393 | MDRV_SCREEN_MODIFY("main") | |
| 1391 | 1394 | MDRV_SCREEN_VISIBLE_AREA(0, 38*8-1-0, 4*8, 32*8-1) |
| 1392 | 1395 | MACHINE_DRIVER_END |
| 1393 | 1396 | |
| r1711 | r1712 | |
| 1444 | 1447 | MDRV_CPU_PROGRAM_MAP(namcona2_readmem,namcona2_writemem) |
| 1445 | 1448 | MDRV_CPU_VBLANK_INT(namcona1_interrupt,5) |
| 1446 | 1449 | |
| 1447 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1448 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 1449 | ||
| 1450 | 1450 | MDRV_NVRAM_HANDLER(namcosna1) |
| 1451 | 1451 | MDRV_INTERLEAVE(40) |
| 1452 | 1452 | |
| 1453 | 1453 | /* video hardware */ |
| 1454 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER|VIDEO_HAS_SHADOWS) | |
| 1454 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 1455 | ||
| 1456 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1457 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1458 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 1455 | 1459 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1456 | 1460 | MDRV_SCREEN_SIZE(38*8, 32*8) |
| 1457 | 1461 | MDRV_SCREEN_VISIBLE_AREA(8, 38*8-1-8, 4*8, 32*8-1) |
| 1462 | ||
| 1458 | 1463 | MDRV_PALETTE_LENGTH(0x1000) |
| 1459 | 1464 | |
| 1460 | 1465 | MDRV_VIDEO_START(namcona1) |
| r1711 | r1712 | |
|---|---|---|
| 212 | 212 | MDRV_CPU_PROGRAM_MAP(main_map,0) |
| 213 | 213 | MDRV_CPU_VBLANK_INT(bsktball_interrupt,8) |
| 214 | 214 | |
| 215 | /* video hardware */ | |
| 216 | MDRV_SCREEN_ADD("main", RASTER) | |
| 215 | 217 | MDRV_SCREEN_REFRESH_RATE(60) |
| 216 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 217 | ||
| 218 | /* video hardware */ | |
| 219 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 218 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 220 | 219 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 221 | 220 | MDRV_SCREEN_SIZE(32*8, 28*8) |
| 222 | 221 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 28*8-1) |
| 222 | ||
| 223 | 223 | MDRV_GFXDECODE(bsktball) |
| 224 | 224 | MDRV_PALETTE_LENGTH(2*4 + 4*4*4*4) |
| 225 | 225 |
| r1711 | r1712 | |
|---|---|---|
| 143 | 143 | |
| 144 | 144 | 2005-04-02 Sebastien Chevalier : various update to video on terrafu, plus some typos here and there |
| 145 | 145 | |
| 146 | ||
| 147 | DIP locations verified for: | |
| 148 | -cclimbr2 | |
| 149 | -legion | |
| 150 | -terraf | |
| 151 | ||
| 146 | 152 | */ |
| 147 | 153 | |
| 148 | 154 | #include "driver.h" |
| r1711 | r1712 | |
| 269 | 275 | AM_RANGE(0x07c000, 0x07c001) AM_WRITE(terraf_io_w) |
| 270 | 276 | AM_RANGE(0x07c002, 0x07c003) AM_WRITE(armedf_bg_scrollx_w) |
| 271 | 277 | AM_RANGE(0x07c004, 0x07c005) AM_WRITE(armedf_bg_scrolly_w) |
| 272 | AM_RANGE(0x07c006, 0x07c007) AM_WRITE(terraf_fg_scrollx_w) /* not use in terrafu, 0x07c008 neither */ | |
| 273 | AM_RANGE(0x07c008, 0x07c009) AM_WRITE(terraf_fg_scrolly_w) /* written twice, lsb and msb */ | |
| 278 | AM_RANGE(0x07c006, 0x07c007) AM_WRITE(terraf_fg_scrollx_w) /* not use in terrafu, 0x07c008 neither */ | |
| 279 | AM_RANGE(0x07c008, 0x07c009) AM_WRITE(terraf_fg_scrolly_w) /* written twice, lsb and msb */ | |
| 274 | 280 | AM_RANGE(0x07c00a, 0x07c00b) AM_WRITE(sound_command_w) |
| 275 | AM_RANGE(0x07c00c, 0x07c00d) AM_WRITE(MWA16_NOP) /* Watchdog ? cycle 0000 -> 0100 -> 0200 back to 0000 */ | |
| 276 | AM_RANGE(0x07c00e, 0x07c00f) AM_WRITE(armedf_mcu_cmd) /* MCU Command ? */ | |
| 277 | AM_RANGE(0x0c0000, 0x0c0001) AM_WRITE(terraf_fg_scroll_msb_arm_w) /* written between two consecutive writes to 7c008 */ | |
| 281 | AM_RANGE(0x07c00c, 0x07c00d) AM_WRITE(MWA16_NOP) /* Watchdog ? cycle 0000 -> 0100 -> 0200 back to 0000 */ | |
| 282 | AM_RANGE(0x07c00e, 0x07c00f) AM_WRITE(armedf_mcu_cmd) /* MCU Command ? */ | |
| 283 | AM_RANGE(0x0c0000, 0x0c0001) AM_WRITE(terraf_fg_scroll_msb_arm_w) /* written between two consecutive writes to 7c008 */ | |
| 278 | 284 | ADDRESS_MAP_END |
| 279 | 285 | |
| 280 | 286 | static ADDRESS_MAP_START( kodure_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| r1711 | r1712 | |
| 340 | 346 | AM_RANGE(0x07c002, 0x07c003) AM_WRITE(armedf_bg_scrollx_w) |
| 341 | 347 | AM_RANGE(0x07c004, 0x07c005) AM_WRITE(armedf_bg_scrolly_w) |
| 342 | 348 | AM_RANGE(0x07c00a, 0x07c00b) AM_WRITE(sound_command_w) |
| 343 | AM_RANGE(0x07c00e, 0x07c00f) AM_WRITE(MWA16_NOP) /* ? */ | |
| 344 | AM_RANGE(0x07c00c, 0x07c00d) AM_WRITE(MWA16_NOP) /* Watchdog ? cycle 0000 -> 0100 -> 0200 back to 0000 */ | |
| 349 | AM_RANGE(0x07c00e, 0x07c00f) AM_WRITE(MWA16_NOP) /* ? */ | |
| 350 | AM_RANGE(0x07c00c, 0x07c00d) AM_WRITE(MWA16_NOP) /* Watchdog ? cycle 0000 -> 0100 -> 0200 back to 0000 */ | |
| 345 | 351 | ADDRESS_MAP_END |
| 346 | 352 | |
| 347 | 353 | static ADDRESS_MAP_START( legion_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| r1711 | r1712 | |
| 359 | 365 | AM_RANGE(0x07c002, 0x07c003) AM_WRITE(armedf_bg_scrollx_w) |
| 360 | 366 | AM_RANGE(0x07c004, 0x07c005) AM_WRITE(armedf_bg_scrolly_w) |
| 361 | 367 | AM_RANGE(0x07c00a, 0x07c00b) AM_WRITE(sound_command_w) |
| 362 | AM_RANGE(0x07c00e, 0x07c00f) AM_WRITE(armedf_mcu_cmd) | |
| 368 | AM_RANGE(0x07c00e, 0x07c00f) AM_WRITE(armedf_mcu_cmd) | |
| 363 | 369 | AM_RANGE(0x07c00c, 0x07c00d) AM_WRITE(MWA16_NOP) /* Watchdog ? cycle 0000 -> 0100 -> 0200 back to 0000 */ |
| 364 | 370 | ADDRESS_MAP_END |
| 365 | 371 | |
| r1711 | r1712 | |
| 380 | 386 | AM_RANGE(0x07c002, 0x07c003) AM_WRITE(armedf_bg_scrollx_w) |
| 381 | 387 | AM_RANGE(0x07c004, 0x07c005) AM_WRITE(armedf_bg_scrolly_w) |
| 382 | 388 | AM_RANGE(0x07c00a, 0x07c00b) AM_WRITE(sound_command_w) |
| 383 | //AM_RANGE(0x07c00e, 0x07c00f) AM_WRITE(armedf_mcu_cmd) | |
| 389 | //AM_RANGE(0x07c00e, 0x07c00f) AM_WRITE(armedf_mcu_cmd) | |
| 384 | 390 | //AM_RANGE(0x07c00c, 0x07c00d) AM_WRITE(MWA16_NOP) /* Watchdog ? cycle 0000 -> 0100 -> 0200 back to 0000 */ |
| 385 | 391 | ADDRESS_MAP_END |
| 386 | 392 | |
| r1711 | r1712 | |
| 473 | 479 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(_n_) \ |
| 474 | 480 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 475 | 481 | |
| 476 | #define NIHON_COINS \ | |
| 477 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START1 ) \ | |
| 478 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_START2 ) \ | |
| 479 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_COIN1 ) \ | |
| 480 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_COIN2 ) \ | |
| 482 | static INPUT_PORTS_START( armedf ) | |
| 483 | PORT_START_TAG("IN0") | |
| 484 | NIHON_SINGLE_JOYSTICK(1) | |
| 485 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START1 ) | |
| 486 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_START2 ) | |
| 487 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 488 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 481 | 489 | PORT_BIT( 0xf000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 482 | 490 | |
| 483 | #define NIHON_SYSTEM \ | |
| 484 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_SERVICE1 ) \ | |
| 485 | PORT_SERVICE( 0x0200, IP_ACTIVE_LOW ) \ | |
| 486 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_TILT ) /* Tilt */ \ | |
| 491 | PORT_START_TAG("IN1") | |
| 492 | NIHON_SINGLE_JOYSTICK(2) | |
| 493 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 494 | PORT_SERVICE( 0x0200, IP_ACTIVE_LOW ) | |
| 495 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_TILT ) | |
| 487 | 496 | PORT_BIT( 0xf800, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 488 | 497 | |
| 489 | #define NIHON_COINAGE_A \ | |
| 490 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_A ) ) \ | |
| 491 | PORT_DIPSETTING( 0x01, DEF_STR( 2C_1C ) ) \ | |
| 492 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_1C ) ) \ | |
| 493 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_2C ) ) \ | |
| 494 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) | |
| 498 | PORT_START_TAG("DSW0") | |
| 499 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1,2") | |
| 500 | PORT_DIPSETTING( 0x03, "3" ) | |
| 501 | PORT_DIPSETTING( 0x02, "4" ) | |
| 502 | PORT_DIPSETTING( 0x01, "5" ) | |
| 503 | PORT_DIPSETTING( 0x00, "6" ) | |
| 504 | /* SW1:3,4 defined in manual/test-mode as: | |
| 505 | PORT_DIPNAME( 0x04, 0x04, "1st Bonus Life" ) PORT_DIPLOCATION("SW1:3") | |
| 506 | PORT_DIPSETTING( 0x04, "20k" ) | |
| 507 | PORT_DIPSETTING( 0x00, "40k" ) | |
| 508 | PORT_DIPNAME( 0x08, 0x08, "2nd Bonus Life" ) PORT_DIPLOCATION("SW1:4") | |
| 509 | PORT_DIPSETTING( 0x08, "60k" ) | |
| 510 | PORT_DIPSETTING( 0x00, "80k" )*/ | |
| 511 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:3,4") | |
| 512 | PORT_DIPSETTING( 0x0c, "20k then every 60k" ) | |
| 513 | PORT_DIPSETTING( 0x04, "20k then every 80k" ) | |
| 514 | PORT_DIPSETTING( 0x08, "40k then every 60k" ) | |
| 515 | PORT_DIPSETTING( 0x00, "40k then every 80k" ) | |
| 516 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:5") | |
| 517 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 518 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 519 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW1:6") | |
| 520 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 521 | PORT_DIPSETTING( 0x20, DEF_STR( Cocktail ) ) | |
| 522 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:7,8") | |
| 523 | PORT_DIPSETTING( 0xc0, DEF_STR( Easy ) ) | |
| 524 | PORT_DIPSETTING( 0x80, DEF_STR( Normal ) ) | |
| 525 | PORT_DIPSETTING( 0x40, DEF_STR( Hard ) ) | |
| 526 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 495 | 527 | |
| 496 | #define NIHON_COINAGE_B \ | |
| 497 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Coin_B ) ) \ | |
| 498 | PORT_DIPSETTING( 0x04, DEF_STR( 2C_1C ) ) \ | |
| 499 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_1C ) ) \ | |
| 500 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_3C ) ) \ | |
| 528 | PORT_START_TAG("DSW1") | |
| 529 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW2:1,2") | |
| 530 | PORT_DIPSETTING( 0x01, DEF_STR( 2C_1C ) ) | |
| 531 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_1C ) ) | |
| 532 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_2C ) ) | |
| 533 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) | |
| 534 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW2:3,4") | |
| 535 | PORT_DIPSETTING( 0x04, DEF_STR( 2C_1C ) ) | |
| 536 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_1C ) ) | |
| 537 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_3C ) ) | |
| 501 | 538 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_2C ) ) |
| 539 | PORT_DIPNAME( 0x30, 0x00, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW2:5,6") // not in the "test mode" | |
| 540 | PORT_DIPSETTING( 0x30, DEF_STR( No ) ) | |
| 541 | PORT_DIPSETTING( 0x20, "3 Times" ) | |
| 542 | PORT_DIPSETTING( 0x10, "5 Times" ) | |
| 543 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 544 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW2:7") // not in the "test mode" | |
| 545 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 546 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 547 | PORT_DIPUNUSED_DIPLOC( 0x80, 0x80, "SW2:8" ) | |
| 548 | INPUT_PORTS_END | |
| 502 | 549 | |
| 503 | #define NIHON_COINAGE_B_ALT \ | |
| 504 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Coin_B ) ) \ | |
| 505 | PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) \ | |
| 506 | PORT_DIPSETTING( 0x04, DEF_STR( 2C_3C ) ) \ | |
| 507 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_3C ) ) \ | |
| 508 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_6C ) ) | |
| 509 | ||
| 510 | #define NIHON_LIVES \ | |
| 511 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) \ | |
| 512 | PORT_DIPSETTING( 0x03, "3" ) \ | |
| 513 | PORT_DIPSETTING( 0x02, "4" ) \ | |
| 514 | PORT_DIPSETTING( 0x01, "5" ) \ | |
| 515 | PORT_DIPSETTING( 0x00, "6" ) | |
| 516 | ||
| 517 | ||
| 518 | 550 | static INPUT_PORTS_START( legion ) |
| 519 | PORT_START_TAG("IN0") | |
| 520 | NIHON_SINGLE_JOYSTICK(1) | |
| 521 | NIHON_COINS | |
| 551 | PORT_INCLUDE( armedf ) | |
| 522 | 552 | |
| 523 | PORT_START_TAG("IN0") | |
| 524 | NIHON_SINGLE_JOYSTICK(2) | |
| 525 | NIHON_SYSTEM | |
| 526 | ||
| 527 | PORT_START_TAG("DSW0") | |
| 528 | NIHON_LIVES | |
| 529 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Bonus_Life ) ) | |
| 530 | PORT_DIPSETTING( 0x04, "30k then every 100k" ) | |
| 531 | PORT_DIPSETTING( 0x00, "50k only" ) | |
| 532 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 553 | PORT_MODIFY("DSW0") | |
| 554 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:3") | |
| 555 | PORT_DIPSETTING( 0x04, "30k Then Every 100k" ) | |
| 556 | PORT_DIPSETTING( 0x00, "50k Only" ) | |
| 557 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:4") | |
| 533 | 558 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) |
| 534 | 559 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 535 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Flip_Screen ) ) | |
| 560 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:5") | |
| 536 | 561 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| 537 | 562 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 538 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) | |
| 539 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 540 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 541 | PORT_DIPUNUSED( 0x40, IP_ACTIVE_LOW ) | |
| 542 | #if LEGION_HACK | |
| 543 | PORT_DIPNAME( 0x80, 0x80, "Allow Invulnerability (Cheat)" ) // see notes | |
| 563 | PORT_DIPUNUSED_DIPLOC( 0x20, 0x20, "SW1:6" ) /* Listed as "Unused" */ | |
| 564 | PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "SW1:7" ) /* Listed as "Unused" */ | |
| 565 | #if LEGION_HACK // see notes | |
| 566 | PORT_DIPNAME( 0x80, 0x80, "Allow Invulnerability (Cheat)" ) PORT_DIPLOCATION("SW1:8") | |
| 544 | 567 | PORT_DIPSETTING( 0x80, DEF_STR( No ) ) |
| 545 | 568 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) |
| 546 | 569 | #else |
| 547 | PORT_DIPUNUSED( 0x80, | |
| 570 | PORT_DIPUNUSED_DIPLOC( 0x80, 0x80, "S | |
| 548 | 571 | #endif |
| 549 | 572 | |
| 550 | PORT_START_TAG("DSW1") | |
| 551 | NIHON_COINAGE_A | |
| 552 | NIHON_COINAGE_B | |
| 553 | PORT_DIPNAME( 0x10, 0x10, "Coin Slots" ) | |
| 573 | PORT_MODIFY("DSW1") | |
| 574 | PORT_DIPNAME( 0x10, 0x10, "Coin Slots" ) PORT_DIPLOCATION("SW2:5") | |
| 554 | 575 | PORT_DIPSETTING( 0x10, "Common" ) |
| 555 | 576 | PORT_DIPSETTING( 0x00, "Individual" ) |
| 556 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Difficulty ) ) | |
| 577 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:6") | |
| 557 | 578 | PORT_DIPSETTING( 0x20, DEF_STR( Easy ) ) |
| 558 | 579 | PORT_DIPSETTING( 0x00, DEF_STR( Hard ) ) |
| 559 | #if LEGION_HACK | |
| 560 | PORT_DIPNAME( 0x40, 0x40, "P1 Invulnerability (Cheat)") | |
| 580 | #if LEGION_HACK // see notes | |
| 581 | PORT_DIPNAME( 0x40, 0x40, "P1 Invulnerability (Cheat)") PORT_DIPLOCATION("SW2:7") | |
| 561 | 582 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) |
| 562 | 583 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 563 | PORT_DIPNAME( 0x80, 0x80, "P2 Invulnerability (Cheat)") | |
| 584 | PORT_DIPNAME( 0x80, 0x80, "P2 Invulnerability (Cheat)") PORT_DIPLOCATION("SW2:8") | |
| 564 | 585 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 565 | 586 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 566 | 587 | #else |
| 567 | PORT_DIPUNUSED( 0x40, IP_ACTIVE_LOW ) | |
| 568 | PORT_DIPUNUSED( 0x80, IP_ACTIVE_LOW ) | |
| 588 | PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "SW2:7" ) /* Listed as "Unused" */ | |
| 569 | 589 | #endif |
| 570 | 590 | INPUT_PORTS_END |
| 571 | 591 | |
| 572 | 592 | |
| 573 | 593 | static INPUT_PORTS_START( terraf ) |
| 574 | PORT_START_TAG("IN0") | |
| 575 | NIHON_SINGLE_JOYSTICK(1) | |
| 576 | NIHON_COINS | |
| 594 | PORT_INCLUDE( armedf ) | |
| 577 | 595 | |
| 578 | PORT_START_TAG("IN1") | |
| 579 | NIHON_SINGLE_JOYSTICK(2) | |
| 580 | NIHON_SYSTEM | |
| 581 | ||
| 582 | PORT_START_TAG("DSW0") | |
| 583 | NIHON_LIVES | |
| 584 | // PORT_DIPNAME( 0x04, 0x04, "1st Bonus Life" ) | |
| 585 | // PORT_DIPSETTING( 0x04, "20k" ) | |
| 586 | // PORT_DIPSETTING( 0x00, "50k" ) | |
| 587 | // PORT_DIPNAME( 0x08, 0x08, "2nd Bonus Life" ) | |
| 588 | // PORT_DIPSETTING( 0x08, "60k" ) | |
| 589 | // PORT_DIPSETTING( 0x00, "90k" ) | |
| 590 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) ) | |
| 596 | PORT_MODIFY("DSW0") | |
| 597 | /* SW1:3,4 defined in manual/test-mode as: | |
| 598 | PORT_DIPNAME( 0x04, 0x04, "1st Bonus Life" ) PORT_DIPLOCATION("SW1:3") | |
| 599 | PORT_DIPSETTING( 0x04, "20k" ) | |
| 600 | PORT_DIPSETTING( 0x00, "50k" ) | |
| 601 | PORT_DIPNAME( 0x08, 0x08, "2nd Bonus Life" ) PORT_DIPLOCATION("SW1:4") | |
| 602 | PORT_DIPSETTING( 0x08, "60k" ) | |
| 603 | PORT_DIPSETTING( 0x00, "90k" )*/ | |
| 604 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:3,4") | |
| 591 | 605 | PORT_DIPSETTING( 0x0c, "20k then every 60k" ) |
| 592 | 606 | PORT_DIPSETTING( 0x04, "20k then every 90k" ) |
| 593 | 607 | PORT_DIPSETTING( 0x08, "50k then every 60k" ) |
| 594 | 608 | PORT_DIPSETTING( 0x00, "50k then every 90k" ) |
| 595 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 609 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:5") | |
| 596 | 610 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| 597 | 611 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 598 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Cabinet ) ) | |
| 599 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 600 | PORT_DIPSETTING( 0x20, DEF_STR( Cocktail ) ) | |
| 601 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Difficulty ) ) | |
| 602 | PORT_DIPSETTING( 0xc0, DEF_STR( Easy ) ) | |
| 603 | PORT_DIPSETTING( 0x80, DEF_STR( Normal ) ) | |
| 604 | PORT_DIPSETTING( 0x40, DEF_STR( Hard ) ) | |
| 605 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 606 | 612 | |
| 607 | PORT_START_TAG("DSW1") | |
| 608 | NIHON_COINAGE_A | |
| 609 | NIHON_COINAGE_B | |
| 610 | PORT_DIPUNUSED( 0x10, IP_ACTIVE_LOW ) | |
| 611 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Flip_Screen ) ) | |
| 613 | ||
| 614 | PORT_MODIFY("DSW1") | |
| 615 | PORT_DIPUNUSED_DIPLOC( 0x10, 0x10, "SW2:5" ) /* Listed as "Unused" */ | |
| 616 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW2:6") | |
| 612 | 617 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 613 | 618 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 614 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Allow_Continue ) ) | |
| 619 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW2:7,8") | |
| 615 | 620 | PORT_DIPSETTING( 0xc0, DEF_STR( No ) ) |
| 616 | PORT_DIPSETTING( 0x80, "3 Times" ) | |
| 617 | PORT_DIPSETTING( 0x40, "5 Times" ) | |
| 621 | PORT_DIPSETTING( 0x80, "Only 3 Times" ) | |
| 622 | PORT_DIPSETTING( 0x40, "Only 5 Times" ) | |
| 618 | 623 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) |
| 619 | 624 | INPUT_PORTS_END |
| 620 | 625 | |
| 621 | 626 | static INPUT_PORTS_START( kodure ) |
| 622 | PORT_START_TAG("IN0") | |
| 623 | NIHON_SINGLE_JOYSTICK(1) | |
| 624 | NIHON_COINS | |
| 627 | PORT_INCLUDE( terraf ) | |
| 625 | 628 | |
| 626 | PORT_START_TAG("IN1") | |
| 627 | NIHON_SINGLE_JOYSTICK(2) | |
| 628 | NIHON_SYSTEM | |
| 629 | ||
| 630 | PORT_START_TAG("DSW0") | |
| 631 | NIHON_LIVES | |
| 632 | // PORT_DIPNAME( 0x04, 0x04, "1st Bonus Life" ) | |
| 633 | // PORT_DIPSETTING( 0x04, "00k" ) | |
| 634 | // PORT_DIPSETTING( 0x00, "50k" ) | |
| 635 | // PORT_DIPNAME( 0x08, 0x08, "2nd Bonus Life" ) | |
| 636 | // PORT_DIPSETTING( 0x08, "60k" ) | |
| 637 | // PORT_DIPSETTING( 0x00, "90k" ) | |
| 638 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) ) | |
| 629 | PORT_MODIFY("DSW0") | |
| 630 | /* SW1:3,4 defined in manual/test-mode as: | |
| 631 | PORT_DIPNAME( 0x04, 0x04, "1st Bonus Life" ) PORT_DIPLOCATION("SW1:3") | |
| 632 | PORT_DIPSETTING( 0x04, DEF_STR( None ) ) | |
| 633 | PORT_DIPSETTING( 0x00, "50k" ) | |
| 634 | PORT_DIPNAME( 0x08, 0x08, "2nd Bonus Life" ) PORT_DIPLOCATION("SW1:4") | |
| 635 | PORT_DIPSETTING( 0x08, "60k" ) | |
| 636 | PORT_DIPSETTING( 0x00, "90k" )*/ | |
| 637 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:3,4") | |
| 639 | 638 | PORT_DIPSETTING( 0x08, "50k then every 60k" ) |
| 640 | 639 | PORT_DIPSETTING( 0x00, "50k then every 90k" ) |
| 641 | 640 | PORT_DIPSETTING( 0x0c, "Every 60k" ) |
| 642 | 641 | PORT_DIPSETTING( 0x04, "Every 90k" ) |
| 643 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 644 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 645 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 646 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Cabinet ) ) | |
| 647 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 648 | PORT_DIPSETTING( 0x20, DEF_STR( Cocktail ) ) | |
| 649 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Difficulty ) ) | |
| 642 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:6") | |
| 650 | 643 | PORT_DIPSETTING( 0x40, DEF_STR( Easy ) ) |
| 651 | 644 | PORT_DIPSETTING( 0x00, DEF_STR( Hard ) ) |
| 652 | PORT_DIPUNUSED( 0x80, | |
| 645 | PORT_DIPUNUSED_DIPLOC( 0x80, 0x80, "S | |
| 653 | 646 | |
| 654 | PORT_START_TAG("DSW1") | |
| 655 | NIHON_COINAGE_A | |
| 656 | NIHON_COINAGE_B_ALT | |
| 657 | PORT_DIPUNUSED( 0x10, IP_ACTIVE_LOW ) | |
| 658 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Flip_Screen ) ) | |
| 659 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 660 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 661 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Allow_Continue ) ) | |
| 647 | PORT_MODIFY("DSW1") | |
| 648 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW2:3,4") | |
| 649 | PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) | |
| 650 | PORT_DIPSETTING( 0x04, DEF_STR( 2C_3C ) ) | |
| 651 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_3C ) ) | |
| 652 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_6C ) ) | |
| 653 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW2:7") | |
| 662 | 654 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 663 | 655 | PORT_DIPSETTING( 0x40, DEF_STR( Yes ) ) |
| 664 | PORT_DIPUNUSED( 0x80, IP_ACTIVE_LOW ) | |
| 665 | 656 | INPUT_PORTS_END |
| 666 | 657 | |
| 667 | 658 | static INPUT_PORTS_START( cclimbr2 ) |
| 668 | PORT_START_TAG("IN0") | |
| 659 | PORT_INCLUDE( armedf ) | |
| 660 | ||
| 661 | PORT_MODIFY("IN0") | |
| 669 | 662 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_UP ) PORT_8WAY PORT_PLAYER(1) |
| 670 | 663 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| 671 | 664 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| r1711 | r1712 | |
| 674 | 667 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| 675 | 668 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 676 | 669 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 677 | NIHON_COINS | |
| 678 | 670 | |
| 679 | PORT_ | |
| 671 | PORT_MODIFY | |
| 680 | 672 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_UP ) PORT_8WAY PORT_PLAYER(2) |
| 681 | 673 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_DOWN ) PORT_8WAY PORT_PLAYER(2) |
| 682 | 674 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_LEFT ) PORT_8WAY PORT_PLAYER(2) |
| r1711 | r1712 | |
| 685 | 677 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_DOWN ) PORT_8WAY PORT_PLAYER(2) |
| 686 | 678 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_LEFT ) PORT_8WAY PORT_PLAYER(2) |
| 687 | 679 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_RIGHT ) PORT_8WAY PORT_PLAYER(2) |
| 688 | NIHON_SYSTEM | |
| 689 | 680 | |
| 690 | PORT_START_TAG("DSW0") | |
| 691 | NIHON_LIVES | |
| 692 | // PORT_DIPNAME( 0x04, 0x04, "1st Bonus Life" ) | |
| 693 | // PORT_DIPSETTING( 0x04, "30k" ) | |
| 694 | // PORT_DIPSETTING( 0x00, "60k" ) | |
| 695 | // PORT_DIPNAME( 0x08, 0x08, "2nd Bonus Life" ) | |
| 696 | // PORT_DIPSETTING( 0x08, "70k" ) | |
| 697 | // PORT_DIPSETTING( 0x00, "00k" ) | |
| 698 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) ) | |
| 681 | PORT_MODIFY("DSW0") | |
| 682 | /* SW1:3,4 defined in manual/test-mode as: | |
| 683 | PORT_DIPNAME( 0x04, 0x04, "1st Bonus Life" ) PORT_DIPLOCATION("SW1:3") | |
| 684 | PORT_DIPSETTING( 0x04, "30k" ) | |
| 685 | PORT_DIPSETTING( 0x00, "60k" ) | |
| 686 | PORT_DIPNAME( 0x08, 0x08, "2nd Bonus Life" ) PORT_DIPLOCATION("SW1:4") | |
| 687 | PORT_DIPSETTING( 0x08, "70k" ) | |
| 688 | PORT_DIPSETTING( 0x00, DEF_STR( None ) )*/ | |
| 689 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:3,4") | |
| 699 | 690 | PORT_DIPSETTING( 0x0c, "30K and 100k" ) |
| 700 | 691 | PORT_DIPSETTING( 0x08, "60k and 130k" ) |
| 701 | 692 | PORT_DIPSETTING( 0x04, "30k only" ) |
| 702 | 693 | PORT_DIPSETTING( 0x00, "60k only" ) |
| 703 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Demo_Sounds ) ) | |
| 704 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 705 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 706 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Cabinet ) ) | |
| 707 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 708 | PORT_DIPSETTING( 0x20, DEF_STR( Cocktail ) ) | |
| 709 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Difficulty ) ) | |
| 694 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:7") | |
| 710 | 695 | PORT_DIPSETTING( 0x40, DEF_STR( Easy ) ) |
| 711 | 696 | PORT_DIPSETTING( 0x00, DEF_STR( Normal ) ) |
| 712 | PORT_DIPUNUSED( 0x80, | |
| 697 | PORT_DIPUNUSED_DIPLOC( 0x80, 0x80, "S | |
| 713 | 698 | |
| 714 | PORT_START_TAG("DSW1") | |
| 715 | NIHON_COINAGE_A | |
| 716 | NIHON_COINAGE_B | |
| 717 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Allow_Continue ) ) | |
| 699 | PORT_MODIFY("DSW1") | |
| 700 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW2:5") | |
| 718 | 701 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 719 | 702 | PORT_DIPSETTING( 0x10, "3 Times" ) |
| 720 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Flip_Screen ) ) | |
| 703 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW2:6") | |
| 721 | 704 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 722 | 705 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 723 | PORT_DIPNAME( 0x40, 0x40, "Partial Invulnerability (Cheat)") | |
| 706 | PORT_DIPNAME( 0x40, 0x40, "Partial Invulnerability (Cheat)") PORT_DIPLOCATION("SW2:7") /* Listed as "Unused" */ | |
| 724 | 707 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) |
| 725 | 708 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 726 | PORT_DIPUNUSED( 0x80, | |
| 709 | PORT_DIPUNUSED_DIPLOC( 0x80, 0x80, "S | |
| 727 | 710 | INPUT_PORTS_END |
| 728 | 711 | |
| 729 | 712 | |
| 730 | static INPUT_PORTS_START( armedf ) | |
| 731 | PORT_START_TAG("IN0") | |
| 732 | NIHON_SINGLE_JOYSTICK(1) | |
| 733 | NIHON_COINS | |
| 734 | 713 | |
| 735 | PORT_START_TAG("IN1") | |
| 736 | NIHON_SINGLE_JOYSTICK(2) | |
| 737 | NIHON_SYSTEM | |
| 738 | ||
| 739 | PORT_START_TAG("DSW0") | |
| 740 | NIHON_LIVES | |
| 741 | // PORT_DIPNAME( 0x04, 0x04, "1st Bonus Life" ) | |
| 742 | // PORT_DIPSETTING( 0x04, "20k" ) | |
| 743 | // PORT_DIPSETTING( 0x00, "40k" ) | |
| 744 | // PORT_DIPNAME( 0x08, 0x08, "2nd Bonus Life" ) | |
| 745 | // PORT_DIPSETTING( 0x08, "60k" ) | |
| 746 | // PORT_DIPSETTING( 0x00, "80k" ) | |
| 747 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) ) | |
| 748 | PORT_DIPSETTING( 0x0c, "20k then every 60k" ) | |
| 749 | PORT_DIPSETTING( 0x04, "20k then every 80k" ) | |
| 750 | PORT_DIPSETTING( 0x08, "40k then every 60k" ) | |
| 751 | PORT_DIPSETTING( 0x00, "40k then every 80k" ) | |
| 752 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Demo_Sounds ) ) | |
| 753 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 754 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 755 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Cabinet ) ) | |
| 756 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 757 | PORT_DIPSETTING( 0x20, DEF_STR( Cocktail ) ) | |
| 758 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Difficulty ) ) | |
| 759 | PORT_DIPSETTING( 0xc0, DEF_STR( Easy ) ) | |
| 760 | PORT_DIPSETTING( 0x80, DEF_STR( Normal ) ) | |
| 761 | PORT_DIPSETTING( 0x40, DEF_STR( Hard ) ) | |
| 762 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 763 | ||
| 764 | PORT_START_TAG("DSW1") | |
| 765 | NIHON_COINAGE_A | |
| 766 | NIHON_COINAGE_B | |
| 767 | PORT_DIPNAME( 0x30, 0x00, DEF_STR( Allow_Continue ) ) // not in the "test mode" | |
| 768 | PORT_DIPSETTING( 0x30, DEF_STR( No ) ) | |
| 769 | PORT_DIPSETTING( 0x20, "3 Times" ) | |
| 770 | PORT_DIPSETTING( 0x10, "5 Times" ) | |
| 771 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 772 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Flip_Screen ) ) // not in the "test mode" | |
| 773 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 774 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 775 | PORT_DIPUNUSED( 0x80, IP_ACTIVE_LOW ) | |
| 776 | INPUT_PORTS_END | |
| 777 | ||
| 778 | ||
| 779 | ||
| 780 | 714 | static const gfx_layout char_layout = |
| 781 | 715 | { |
| 782 | 716 | 8,8, |
| r1711 | r1712 | |
| 836 | 770 | MDRV_CPU_IO_MAP(readport,writeport) |
| 837 | 771 | MDRV_CPU_VBLANK_INT(irq0_line_hold,128) |
| 838 | 772 | |
| 839 | MDRV_SCREEN_REFRESH_RATE(57) | |
| 840 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 841 | ||
| 842 | 773 | /* video hardware */ |
| 843 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 774 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 775 | ||
| 776 | MDRV_SCREEN_ADD("main", RASTER) | |
| 777 | MDRV_SCREEN_REFRESH_RATE(57) | |
| 778 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 844 | 779 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 845 | 780 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 846 | 781 | MDRV_SCREEN_VISIBLE_AREA(12*8, (64-12)*8-1, 1*8, 31*8-1 ) |
| r1711 | r1712 | |
| 877 | 812 | MDRV_CPU_IO_MAP(readport,writeport) |
| 878 | 813 | MDRV_CPU_VBLANK_INT(irq0_line_hold,128) |
| 879 | 814 | |
| 880 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 881 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 882 | ||
| 883 | 815 | /* video hardware */ |
| 884 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 816 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 817 | ||
| 818 | MDRV_SCREEN_ADD("main", RASTER) | |
| 819 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 820 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 885 | 821 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 886 | 822 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 887 | 823 | MDRV_SCREEN_VISIBLE_AREA(14*8, (64-14)*8-1, 2*8, 30*8-1 ) |
| r1711 | r1712 | |
| 918 | 854 | MDRV_CPU_IO_MAP(readport,writeport) |
| 919 | 855 | MDRV_CPU_VBLANK_INT(irq0_line_hold,128) |
| 920 | 856 | |
| 921 | MDRV_SCREEN_REFRESH_RATE(57) | |
| 922 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 923 | ||
| 924 | 857 | /* video hardware */ |
| 925 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 858 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 859 | ||
| 860 | MDRV_SCREEN_ADD("main", RASTER) | |
| 861 | MDRV_SCREEN_REFRESH_RATE(57) | |
| 862 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 926 | 863 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 927 | 864 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 928 | 865 | MDRV_SCREEN_VISIBLE_AREA(12*8, (64-12)*8-1, 1*8, 31*8-1 ) |
| r1711 | r1712 | |
| 959 | 896 | MDRV_CPU_IO_MAP(readport,writeport) |
| 960 | 897 | MDRV_CPU_VBLANK_INT(irq0_line_hold,128) |
| 961 | 898 | |
| 962 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 963 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 964 | ||
| 965 | 899 | /* video hardware */ |
| 966 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 900 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 901 | ||
| 902 | MDRV_SCREEN_ADD("main", RASTER) | |
| 903 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 904 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 967 | 905 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 968 | 906 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 969 | 907 | MDRV_SCREEN_VISIBLE_AREA(14*8, (64-14)*8-1, 2*8, 30*8-1 ) |
| r1711 | r1712 | |
| 1000 | 938 | MDRV_CPU_IO_MAP(readport,writeport) |
| 1001 | 939 | MDRV_CPU_VBLANK_INT(irq0_line_hold,128) |
| 1002 | 940 | |
| 1003 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1004 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 1005 | ||
| 1006 | 941 | /* video hardware */ |
| 1007 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 942 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 943 | ||
| 944 | MDRV_SCREEN_ADD("main", RASTER) | |
| 945 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 946 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 1008 | 947 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1009 | 948 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 1010 | 949 | MDRV_SCREEN_VISIBLE_AREA(14*8, (64-14)*8-1, 2*8, 30*8-1 ) |
| r1711 | r1712 | |
| 1041 | 980 | MDRV_CPU_IO_MAP(readport,writeport) |
| 1042 | 981 | MDRV_CPU_VBLANK_INT(irq0_line_hold,128) |
| 1043 | 982 | |
| 1044 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1045 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 1046 | ||
| 1047 | 983 | /* video hardware */ |
| 1048 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 984 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 985 | ||
| 986 | MDRV_SCREEN_ADD("main", RASTER) | |
| 987 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 988 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 1049 | 989 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1050 | 990 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 1051 | 991 | MDRV_SCREEN_VISIBLE_AREA(14*8, (64-14)*8-1, 2*8, 30*8-1 ) |
| r1711 | r1712 | |
| 1417 | 1357 | } |
| 1418 | 1358 | |
| 1419 | 1359 | |
| 1420 | /* YEAR, NAME, PARENT, MACHINE, INPUT, INIT, MONITOR, COMPANY, FULLNAME, FLAGS */ | |
| 1421 | GAME( 1987, legion, 0, legion, legion, legion, ROT270, "Nichibutsu", "Legion (ver 2.03)", GAME_IMPERFECT_GRAPHICS | GAME_UNEMULATED_PROTECTION ) | |
| 1422 | GAME( 1987, legiono, legion, legiono, legion, legiono, ROT270, "Nichibutsu", "Legion (ver 1.05)", GAME_IMPERFECT_GRAPHICS | GAME_UNEMULATED_PROTECTION ) | |
| 1423 | GAME( 1987, terraf, 0, terraf, terraf, terraf, ROT0, "Nichibutsu", "Terra Force (set 1)", GAME_IMPERFECT_GRAPHICS | GAME_UNEMULATED_PROTECTION ) | |
| 1424 | GAME( 1987, terrafa, terraf, terraf, terraf, terrafu, ROT0, "Nichibutsu", "Terra Force (set 2)", GAME_IMPERFECT_GRAPHICS | GAME_UNEMULATED_PROTECTION ) | |
| 1425 | GAME( 1987, terrafu, terraf, terraf, terraf, terrafu, ROT0, "Nichibutsu USA", "Terra Force (US)", GAME_IMPERFECT_GRAPHICS | GAME_UNEMULATED_PROTECTION ) | |
| 1426 | GAME( 1987, kodure, 0, kodure, kodure, kodure, ROT0, "Nichibutsu", "Kodure Ookami (Japan)", GAME_IMPERFECT_GRAPHICS | GAME_UNEMULATED_PROTECTION ) | |
| 1427 | GAME( 1988, cclimbr2, 0, cclimbr2, cclimbr2, cclimbr2, ROT0, "Nichibutsu", "Crazy Climber 2 (Japan)", 0) | |
| 1428 | GAME( 1988, cclmbr2a, cclimbr2, cclimbr2, cclimbr2, cclimbr2, ROT0, "Nichibutsu", "Crazy Climber 2 (Japan, Harder)", 0) | |
| 1429 | GAME( 1988, armedf, 0, armedf, armedf, armedf, ROT270, "Nichibutsu", "Armed Formation", 0) | |
| 1360 | /* YEAR, NAME, PARENT, MACHINE, INPUT, INIT, MONITOR, COMPANY, FULLNAME, FLAGS */ | |
| 1361 | GAME( 1987, legion, 0, legion, legion, legion, ROT270, "Nichibutsu", "Legion (ver 2.03)", GAME_IMPERFECT_GRAPHICS | GAME_UNEMULATED_PROTECTION ) | |
| 1362 | GAME( 1987, legiono, legion, legiono, legion, legiono, ROT270, "Nichibutsu", "Legion (ver 1.05)", GAME_IMPERFECT_GRAPHICS | GAME_UNEMULATED_PROTECTION ) | |
| 1363 | GAME( 1987, terraf, 0, terraf, terraf, terraf, ROT0, "Nichibutsu", "Terra Force (set 1)", GAME_IMPERFECT_GRAPHICS | GAME_UNEMULATED_PROTECTION ) | |
| 1364 | GAME( 1987, terrafa, terraf, terraf, terraf, terrafu, ROT0, "Nichibutsu", "Terra Force (set 2)", GAME_IMPERFECT_GRAPHICS | GAME_UNEMULATED_PROTECTION ) | |
| 1365 | GAME( 1987, terrafu, terraf, terraf, terraf, terrafu, ROT0, "Nichibutsu USA", "Terra Force (US)", GAME_IMPERFECT_GRAPHICS | GAME_UNEMULATED_PROTECTION ) | |
| 1366 | GAME( 1987, kodure, 0, kodure, kodure, kodure, ROT0, "Nichibutsu", "Kodure Ookami (Japan)", GAME_IMPERFECT_GRAPHICS | GAME_UNEMULATED_PROTECTION ) | |
| 1367 | GAME( 1988, cclimbr2, 0, cclimbr2, cclimbr2, cclimbr2, ROT0, "Nichibutsu", "Crazy Climber 2 (Japan)", 0 ) | |
| 1368 | GAME( 1988, cclmbr2a, cclimbr2, cclimbr2, cclimbr2, cclimbr2, ROT0, "Nichibutsu", "Crazy Climber 2 (Japan, Harder)", 0 ) | |
| 1369 | GAME( 1988, armedf, 0, armedf, armedf, armedf, ROT270, "Nichibutsu", "Armed Formation", 0 ) |
| r1711 | r1712 | |
|---|---|---|
| 551 | 551 | MDRV_GFXDECODE(acefruit) |
| 552 | 552 | MDRV_CPU_VBLANK_INT(acefruit_vblank,1) |
| 553 | 553 | |
| 554 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 555 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 556 | ||
| 557 | 554 | /* video hardware */ |
| 558 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 555 | MDRV_SCREEN_ADD("main", RASTER) | |
| 556 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 557 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 559 | 558 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 560 | 559 | MDRV_SCREEN_SIZE(512, 256) |
| 561 | 560 | MDRV_SCREEN_VISIBLE_AREA(0, 511, 0, 255) |
| r1711 | r1712 | |
|---|---|---|
| 1552 | 1552 | MDRV_MACHINE_RESET(dkong) |
| 1553 | 1553 | |
| 1554 | 1554 | /* video hardware */ |
| 1555 | MDRV_ | |
| 1555 | MDRV_SC | |
| 1556 | 1556 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1557 | 1557 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART) |
| 1558 | ||
| 1558 | 1559 | MDRV_GFXDECODE(dkong) |
| 1559 | 1560 | MDRV_PALETTE_LENGTH(DK2B_PALETTE_LENGTH) |
| 1560 | 1561 | |
| r1711 | r1712 | |
| 1633 | 1634 | MDRV_MACHINE_RESET(dkong3) |
| 1634 | 1635 | |
| 1635 | 1636 | /* video hardware */ |
| 1636 | MDRV_ | |
| 1637 | MDRV_SC | |
| 1637 | 1638 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1638 | 1639 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART) |
| 1640 | ||
| 1639 | 1641 | MDRV_GFXDECODE(dkong) |
| 1640 | 1642 | MDRV_PALETTE_LENGTH(DK3_PALETTE_LENGTH) |
| 1641 | 1643 |
| r1711 | r1712 | |
|---|---|---|
| 15 | 15 | #define PIXEL_CLOCK (MASTER_CLOCK / 2) |
| 16 | 16 | |
| 17 | 17 | |
| 18 | ||
| 18 | ||
| 19 | 19 | |
| 20 | extern VIDEO_EOF( sprint4 ); | |
| 21 | extern VIDEO_START( sprint4 ); | |
| 22 | extern VIDEO_UPDATE( sprint4 ); | |
| 20 | VIDEO_EOF( sprint4 ); | |
| 21 | VIDEO_START( sprint4 ); | |
| 22 | VIDEO_UPDATE( sprint4 ); | |
| 23 | 23 | |
| 24 | 24 | extern int sprint4_collision[4]; |
| 25 | 25 | |
| 26 | ||
| 26 | ||
| 27 | 27 | |
| 28 | 28 | static int da_latch; |
| 29 | 29 | |
| r1711 | r1712 | |
| 411 | 411 | MDRV_MACHINE_RESET(sprint4) |
| 412 | 412 | |
| 413 | 413 | /* video hardware */ |
| 414 | MDRV_ | |
| 414 | MDRV_SC | |
| 415 | 415 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 416 | 416 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, 0, 256, VTOTAL, 0, 224) |
| 417 | 417 | MDRV_GFXDECODE(sprint4) |
| 418 | MDRV_PALETTE_LENGTH(6) | |
| 419 | MDRV_COLORTABLE_LENGTH(10) | |
| 418 | MDRV_PALETTE_LENGTH(10) | |
| 420 | 419 | |
| 421 | 420 | MDRV_PALETTE_INIT(sprint4) |
| 422 | 421 | MDRV_VIDEO_START(sprint4) |
| r1711 | r1712 | |
|---|---|---|
| 155 | 155 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN3 ) |
| 156 | 156 | PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* probably unused */ |
| 157 | 157 | |
| 158 | PORT_START_TAG("DSW") | |
| 159 | PORT_DIPNAME( 0x07, 0x00, DEF_STR( Coin_A ) ) | |
| 158 | PORT_START_TAG("DSW1") | |
| 159 | PORT_DIPNAME( 0x07, 0x00, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:1,2,3") | |
| 160 | 160 | PORT_DIPSETTING( 0x03, DEF_STR( 4C_1C ) ) |
| 161 | 161 | PORT_DIPSETTING( 0x02, DEF_STR( 3C_1C ) ) |
| 162 | 162 | PORT_DIPSETTING( 0x01, DEF_STR( 2C_1C ) ) |
| r1711 | r1712 | |
| 165 | 165 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_2C ) ) |
| 166 | 166 | PORT_DIPSETTING( 0x05, DEF_STR( 1C_3C ) ) |
| 167 | 167 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_4C ) ) |
| 168 | PORT_DIPNAME( 0x18, 0x00, DEF_STR( Coin_B ) ) | |
| 168 | PORT_DIPNAME( 0x18, 0x00, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:4,5") | |
| 169 | 169 | PORT_DIPSETTING( 0x18, DEF_STR( 3C_1C ) ) |
| 170 | 170 | PORT_DIPSETTING( 0x10, DEF_STR( 2C_1C ) ) |
| 171 | 171 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) |
| 172 | 172 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_2C ) ) |
| 173 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Demo_Sounds ) ) | |
| 173 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:6") | |
| 174 | 174 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 175 | 175 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) |
| 176 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Cabinet ) ) | |
| 176 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW1:7") | |
| 177 | 177 | PORT_DIPSETTING( 0x40, DEF_STR( Upright ) ) |
| 178 | 178 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) |
| 179 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Difficulty ) ) | |
| 179 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:8") | |
| 180 | 180 | PORT_DIPSETTING( 0x00, DEF_STR( Easy ) ) |
| 181 | 181 | PORT_DIPSETTING( 0x80, DEF_STR( Hard ) ) |
| 182 | 182 | INPUT_PORTS_END |
| r1711 | r1712 | |
| 232 | 232 | MDRV_CPU_IO_MAP(readport,writeport) |
| 233 | 233 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,1) |
| 234 | 234 | |
| 235 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 236 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 237 | ||
| 238 | 235 | /* video hardware */ |
| 239 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 236 | MDRV_SCREEN_ADD("main", RASTER) | |
| 237 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 238 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 240 | 239 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 241 | 240 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 242 | 241 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| r1711 | r1712 | |
| 281 | 280 | DIPSW : 8 position (x1) |
| 282 | 281 | DIPSW Info: |
| 283 | 282 | |
| 284 | 1 2 3 4 5 6 7 8 | |
| 283 | 1 2 3 4 5 6 7 8 | |
| 285 | 284 | ----------------------------------------------------------------------------------- |
| 286 | 285 | Coin1 |
| 287 | | |
| 286 | | |
| 288 | 287 | 2Coin 1Credit ON OFF OFF |
| 289 | 288 | 3Coin 1Credit OFF ON OFF |
| 290 | 289 | 4Coin 1Credit ON ON OFF |
| r1711 | r1712 | |
| 300 | 299 | 3Coin 1Credit ON ON |
| 301 | 300 | ----------------------------------------------------------------------------------- |
| 302 | 301 | Demo Sound |
| 303 | Off OFF | |
| 304 | On ON | |
| 302 | Off OFF | |
| 303 | On ON | |
| 305 | 304 | ----------------------------------------------------------------------------------- |
| 306 | Not Used OFF | |
| 305 | Not Used OFF | |
| 307 | 306 | ----------------------------------------------------------------------------------- |
| 308 | 307 | Language |
| 309 | Japanese OFF | |
| 310 | English ON | |
| 308 | Japanese OFF | |
| 309 | English ON | |
| 311 | 310 | ----------------------------------------------------------------------------------- |
| 312 | 311 | |
| 313 | 312 | |
| r1711 | r1712 | |
| 386 | 385 | */ |
| 387 | 386 | |
| 388 | 387 | static INPUT_PORTS_START( robowres ) |
| 389 | PORT_START_TAG("IN0") | |
| 390 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 391 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 392 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 393 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 394 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 395 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 396 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 397 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON2 ) | |
| 388 | PORT_INCLUDE( appoooh ) | |
| 398 | 389 | |
| 399 | PORT_START_TAG("IN1") | |
| 400 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 401 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 402 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 403 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 404 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 405 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 406 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 407 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 408 | ||
| 409 | PORT_START_TAG("IN2") | |
| 410 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON3 ) | |
| 411 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_COCKTAIL | |
| 412 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN3 ) | |
| 413 | PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* probably unused */ | |
| 414 | ||
| 415 | PORT_START_TAG("DSW") | |
| 416 | PORT_DIPNAME( 0x07, 0x00, DEF_STR( Coin_A ) ) | |
| 417 | PORT_DIPSETTING( 0x03, DEF_STR( 4C_1C ) ) | |
| 418 | PORT_DIPSETTING( 0x02, DEF_STR( 3C_1C ) ) | |
| 419 | PORT_DIPSETTING( 0x01, DEF_STR( 2C_1C ) ) | |
| 420 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 421 | PORT_DIPSETTING( 0x07, DEF_STR( 2C_3C ) ) | |
| 422 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_2C ) ) | |
| 423 | PORT_DIPSETTING( 0x05, DEF_STR( 1C_3C ) ) | |
| 424 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_4C ) ) | |
| 425 | PORT_DIPNAME( 0x18, 0x00, DEF_STR( Coin_B ) ) | |
| 426 | PORT_DIPSETTING( 0x18, DEF_STR( 3C_1C ) ) | |
| 427 | PORT_DIPSETTING( 0x10, DEF_STR( 2C_1C ) ) | |
| 428 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 429 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_2C ) ) | |
| 430 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Demo_Sounds ) ) | |
| 431 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 432 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 433 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 434 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Language ) ) | |
| 390 | PORT_MODIFY("DSW1") | |
| 391 | PORT_DIPUNUSED_DIPLOC(0x40,0x40, "SW1:7" ) /* Listed as "Unused" */ | |
| 392 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Language ) ) PORT_DIPLOCATION("SW1:8") | |
| 435 | 393 | PORT_DIPSETTING( 0x00, DEF_STR( Japanese ) ) |
| 436 | 394 | PORT_DIPSETTING( 0x80, DEF_STR( English ) ) |
| 437 | 395 | INPUT_PORTS_END |
| r1711 | r1712 | |
| 476 | 434 | MDRV_CPU_IO_MAP(readport,writeport) |
| 477 | 435 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,1) |
| 478 | 436 | |
| 479 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 480 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 481 | ||
| 482 | 437 | /* video hardware */ |
| 483 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 438 | MDRV_SCREEN_ADD("main", RASTER) | |
| 439 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 440 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 484 | 441 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 485 | 442 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 486 | 443 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| r1711 | r1712 | |
| 615 | 572 | } |
| 616 | 573 | |
| 617 | 574 | |
| 618 | GAME( 1984, appoooh, 0, appoooh, appoooh, 0, ROT0, "[Sanritsu] Sega", "Appoooh", 0 ) | |
| 619 | GAME( 1986, robowres, 0, robowres, robowres, robowres, ROT0, "Sega", "Robo Wres 2001", 0 ) | |
| 575 | GAME( 1984, appoooh, 0, appoooh, appoooh, 0, ROT0, "[Sanritsu] Sega", "Appoooh", 0 ) | |
| 576 | GAME( 1986, robowres, 0, robowres, robowres, robowres, ROT0, "Sega", "Robo Wres 2001", 0 ) | |
| 620 | 577 | GAME( 1986, robowrb, robowres, robowres, robowres, robowrb, ROT0, "bootleg", "Robo Wres 2001 (bootleg)", 0 ) |
| r1711 | r1712 | |
|---|---|---|
| 265 | 265 | MDRV_CPU_PROGRAM_MAP(skyraid_readmem, skyraid_writemem) |
| 266 | 266 | MDRV_CPU_VBLANK_INT(irq0_line_hold, 1) |
| 267 | 267 | |
| 268 | /* video hardware */ | |
| 269 | MDRV_SCREEN_ADD("main", RASTER) | |
| 268 | 270 | MDRV_SCREEN_REFRESH_RATE(60) |
| 269 | 271 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(22 * 1000000 / 15750)) |
| 270 | ||
| 271 | /* video hardware */ | |
| 272 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 273 | 272 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 274 | 273 | MDRV_SCREEN_SIZE(512, 240) |
| 275 | 274 | MDRV_SCREEN_VISIBLE_AREA(0, 511, 0, 239) |
| 275 | ||
| 276 | 276 | MDRV_GFXDECODE(skyraid) |
| 277 | 277 | |
| 278 | 278 | MDRV_PALETTE_INIT(skyraid) |
| r1711 | r1712 | |
|---|---|---|
| 298 | 298 | 32*8 |
| 299 | 299 | }; |
| 300 | 300 | |
| 301 | static const gfx_layout sht_spritelayout = | |
| 301 | static const gfx_layout shtrider_spritelayout = | |
| 302 | 302 | { |
| 303 | 303 | 16,16, |
| 304 | 304 | RGN_FRAC(1,3), |
| r1711 | r1712 | |
| 316 | 316 | GFXDECODE_ENTRY( REGION_GFX2, 0, spritelayout, 16*8, 16 ) |
| 317 | 317 | GFXDECODE_END |
| 318 | 318 | |
| 319 | static GFXDECODE_START( sht ) | |
| 320 | GFXDECODE_ENTRY( REGION_GFX1, 0, charlayout, 0, 16 ) | |
| 321 | GFXDECODE_ENTRY( REGION_GFX2, 0, sht_spritelayout, 16*8, 16 ) | |
| 319 | static GFXDECODE_START( shtrider ) | |
| 320 | GFXDECODE_ENTRY( REGION_GFX1, 0, charlayout, 0, 16 ) | |
| 321 | GFXDECODE_ENTRY( REGION_GFX2, 0, shtrider_spritelayout, 16*8, 16 ) | |
| 322 | 322 | GFXDECODE_END |
| 323 | 323 | |
| 324 | 324 | |
| r1711 | r1712 | |
| 330 | 330 | MDRV_CPU_PROGRAM_MAP(main_map,0) |
| 331 | 331 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 332 | 332 | |
| 333 | /* video hardware */ | |
| 334 | MDRV_SCREEN_ADD("main", RASTER) | |
| 333 | 335 | MDRV_SCREEN_REFRESH_RATE(56.75) |
| 334 | 336 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(1790) /* accurate frequency, measured on a Moon Patrol board, is 56.75Hz. */) |
| 335 | 337 | /* the Lode Runner manual (similar but different hardware) */ |
| 336 | 338 | /* talks about 55Hz and 1790ms vblank duration. */ |
| 337 | ||
| 338 | /* video hardware */ | |
| 339 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 340 | 339 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 341 | 340 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 342 | 341 | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 0*8, 32*8-1) |
| 342 | ||
| 343 | 343 | MDRV_GFXDECODE(travrusa) |
| 344 | 344 | |
| 345 | MDRV_PALETTE_LENGTH(128+16) | |
| 346 | MDRV_COLORTABLE_LENGTH(16*8+16*8) | |
| 345 | MDRV_PALETTE_LENGTH(16*8+16*8) | |
| 347 | 346 | |
| 348 | 347 | MDRV_PALETTE_INIT(travrusa) |
| 349 | 348 | MDRV_VIDEO_START(travrusa) |
| r1711 | r1712 | |
| 358 | 357 | MDRV_IMPORT_FROM(travrusa) |
| 359 | 358 | |
| 360 | 359 | /* video hardware */ |
| 361 | MDRV_GFXDECODE(sht) | |
| 362 | ||
| 360 | MDRV_GFXDECODE(shtrider) | |
| 363 | 361 | MDRV_PALETTE_INIT(shtrider) |
| 364 | 362 | MACHINE_DRIVER_END |
| 365 | 363 | |
| r1711 | r1712 | |
| 392 | 390 | ROM_LOAD( "zr1-9.l3", 0x02000, 0x2000, CRC(13be6a14) SHA1(47861910fe4c46cd72634cf7d834be2da2a0a4f9) ) |
| 393 | 391 | ROM_LOAD( "zr1-10.k3", 0x04000, 0x2000, CRC(6fcc9fdb) SHA1(88f878b9ebf07c5a16f8cb742016cac971ed3f10) ) |
| 394 | 392 | |
| 395 | ROM_REGION( 0x0 | |
| 393 | ROM_REGION( 0x0320, REGION_PROMS, 0 ) | |
| 396 | 394 | ROM_LOAD( "mmi6349.ij", 0x0000, 0x0200, CRC(c9724350) SHA1(1fac20cdc0a53d94e8f67b49d7dd71d1b9f1f7ef) ) /* character palette - last $100 are unused */ |
| 397 | ROM_LOAD( "tbp18s.2", 0x0100, 0x0020, CRC(a1130007) SHA1(9deb0eed75dd06e86f83c819a3393158be7c9dce) ) /* sprite palette */ | |
| 398 | ROM_LOAD( "tbp24s10.3", 0x0120, 0x0100, CRC(76062638) SHA1(7378a26cf455d9d3df90929dc665870514c34b54) ) /* sprite lookup table */ | |
| 395 | ROM_LOAD( "tbp18s.2", 0x0200, 0x0020, CRC(a1130007) SHA1(9deb0eed75dd06e86f83c819a3393158be7c9dce) ) /* sprite palette */ | |
| 396 | ROM_LOAD( "tbp24s10.3", 0x0220, 0x0100, CRC(76062638) SHA1(7378a26cf455d9d3df90929dc665870514c34b54) ) /* sprite lookup table */ | |
| 399 | 397 | ROM_END |
| 400 | 398 | |
| 401 | 399 | ROM_START( motorace ) |
| r1711 | r1712 | |
| 418 | 416 | ROM_LOAD( "mr5.3m", 0x02000, 0x2000, CRC(f75f2aad) SHA1(e4a8a3da56cbc04f0c9041afac182d1bfceb1d0d) ) |
| 419 | 417 | ROM_LOAD( "mr6.3k", 0x04000, 0x2000, CRC(518889a0) SHA1(70b417104ce86132cb5542813c1e0509b2260756) ) |
| 420 | 418 | |
| 421 | ROM_REGION( 0x0 | |
| 419 | ROM_REGION( 0x0320, REGION_PROMS, 0 ) | |
| 422 | 420 | ROM_LOAD( "mmi6349.ij", 0x0000, 0x0200, CRC(c9724350) SHA1(1fac20cdc0a53d94e8f67b49d7dd71d1b9f1f7ef) ) /* character palette - last $100 are unused */ |
| 423 | ROM_LOAD( "tbp18s.2", 0x0100, 0x0020, CRC(a1130007) SHA1(9deb0eed75dd06e86f83c819a3393158be7c9dce) ) /* sprite palette */ | |
| 424 | ROM_LOAD( "tbp24s10.3", 0x0120, 0x0100, CRC(76062638) SHA1(7378a26cf455d9d3df90929dc665870514c34b54) ) /* sprite lookup table */ | |
| 421 | ROM_LOAD( "tbp18s.2", 0x0200, 0x0020, CRC(a1130007) SHA1(9deb0eed75dd06e86f83c819a3393158be7c9dce) ) /* sprite palette */ | |
| 422 | ROM_LOAD( "tbp24s10.3", 0x0220, 0x0100, CRC(76062638) SHA1(7378a26cf455d9d3df90929dc665870514c34b54) ) /* sprite lookup table */ | |
| 425 | 423 | ROM_END |
| 426 | 424 | |
| 427 | 425 | /* it's probably a bootleg of the original Seibu version with the roms decrypted (no epoxy block) */ |
| r1711 | r1712 | |
|---|---|---|
| 67 | 67 | |
| 68 | 68 | static VIDEO_UPDATE(hanaroku) |
| 69 | 69 | { |
| 70 | fillbitmap(bitmap, | |
| 70 | fillbitmap(bitmap, | |
| 71 | 71 | draw_sprites(machine, bitmap, cliprect); |
| 72 | 72 | return 0; |
| 73 | 73 | } |
| r1711 | r1712 | |
| 240 | 240 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 241 | 241 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 242 | 242 | |
| 243 | /* video hardware */ | |
| 244 | MDRV_SCREEN_ADD("main", RASTER) | |
| 243 | 245 | MDRV_SCREEN_REFRESH_RATE(60) |
| 244 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 245 | ||
| 246 | /* video hardware */ | |
| 247 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 246 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 248 | 247 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 249 | 248 | MDRV_SCREEN_SIZE(64*8, 64*8) |
| 250 | 249 | MDRV_SCREEN_VISIBLE_AREA(0, 48*8-1, 2*8, 30*8-1) |
| 250 | ||
| 251 | 251 | MDRV_GFXDECODE(hanaroku) |
| 252 | 252 | MDRV_PALETTE_LENGTH(0x200) |
| 253 | 253 |
| r1711 | r1712 | |
|---|---|---|
| 323 | 323 | MDRV_CPU_VBLANK_INT(metlclsh_interrupt2,2) |
| 324 | 324 | // IRQ by cpu #1, NMI by coins insertion |
| 325 | 325 | |
| 326 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 327 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) // we're using IPT_VBLANK | |
| 328 | ||
| 329 | 326 | MDRV_MACHINE_RESET(metlclsh) |
| 330 | 327 | |
| 331 | 328 | /* video hardware */ |
| 332 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 329 | MDRV_SCREEN_ADD("main", RASTER) | |
| 330 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 331 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) // we're using IPT_VBLANK | |
| 333 | 332 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 334 | 333 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 335 | 334 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 30*8-1) |
| 335 | ||
| 336 | 336 | MDRV_GFXDECODE(metlclsh) |
| 337 | 337 | MDRV_PALETTE_LENGTH(3 * 16) |
| 338 | 338 |
| r1711 | r1712 | |
|---|---|---|
| 178 | 178 | PORT_DIPSETTING( 0x02, "2" ) |
| 179 | 179 | PORT_DIPSETTING( 0x01, "3" ) |
| 180 | 180 | PORT_DIPSETTING( 0x00, "5" ) |
| 181 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW2:3") /* Listed as "Unused" in the manual */ | |
| 182 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 183 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 184 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW2:4") /* Listed as "Unused" in the manual */ | |
| 185 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 186 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 187 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW2:5") /* Listed as "Unused" in the manual */ | |
| 188 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 189 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 181 | PORT_DIPUNUSED_DIPLOC( 0x0004, 0x0004, "SW2:3" ) /* Listed as "Unused" */ | |
| 182 | PORT_DIPUNUSED_DIPLOC( 0x0008, 0x0008, "SW2:4" ) /* Listed as "Unused" */ | |
| 183 | PORT_DIPUNUSED_DIPLOC( 0x0010, 0x0010, "SW2:5" ) /* Listed as "Unused" */ | |
| 190 | 184 | PORT_DIPNAME( 0x60, 0x40, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:6,7") |
| 191 | 185 | PORT_DIPSETTING( 0x60, DEF_STR( Easy ) ) |
| 192 | 186 | PORT_DIPSETTING( 0x40, DEF_STR( Normal ) ) |
| r1711 | r1712 | |
| 200 | 194 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW3:1") |
| 201 | 195 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 202 | 196 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 203 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW3:2") /* Listed as "Unused" in the manual */ | |
| 204 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 205 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 197 | PORT_DIPUNUSED_DIPLOC( 0x02, 0x02, "SW3:2" ) /* Listed as "Unused" */ | |
| 206 | 198 | PORT_SERVICE_DIPLOC( 0x04, IP_ACTIVE_LOW, "SW3:3" ) |
| 207 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW3:4") /* Listed as "Unused" in the manual */ | |
| 208 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 209 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 199 | PORT_DIPUNUSED_DIPLOC( 0x08, 0x08, "SW3:4" ) /* Listed as "Unused" */ | |
| 210 | 200 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN3 ) |
| 211 | 201 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 212 | 202 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1711 | r1712 | |
| 269 | 259 | /* audio CPU */ /* ? */ |
| 270 | 260 | MDRV_CPU_PROGRAM_MAP(aliens_readmem_sound,aliens_writemem_sound) |
| 271 | 261 | |
| 272 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 273 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 274 | ||
| 275 | 262 | MDRV_MACHINE_RESET(aliens) |
| 276 | 263 | |
| 277 | 264 | /* video hardware */ |
| 278 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS) | |
| 265 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 266 | ||
| 267 | MDRV_SCREEN_ADD("main", RASTER) | |
| 268 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 269 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 279 | 270 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 280 | 271 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 281 | 272 | MDRV_SCREEN_VISIBLE_AREA(14*8, (64-14)*8-1, 2*8, 30*8-1 ) |
| 273 | ||
| 282 | 274 | MDRV_PALETTE_LENGTH(512) |
| 283 | 275 | |
| 284 | 276 | MDRV_VIDEO_START(aliens) |
| r1711 | r1712 | |
|---|---|---|
| 97 | 97 | MDRV_CPU_ADD(M6809, 1000000) /* 1 MHz */ |
| 98 | 98 | MDRV_CPU_PROGRAM_MAP(readmem_sound,writemem_sound) |
| 99 | 99 | |
| 100 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 101 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 102 | ||
| 103 | 100 | /* video hardware */ |
| 104 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 101 | MDRV_SCREEN_ADD("main", RASTER) | |
| 102 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 103 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 105 | 104 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 106 | 105 | MDRV_SCREEN_SIZE(256, 384) |
| 107 | 106 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 16, 303) |
| r1711 | r1712 | |
|---|---|---|
| 299 | 299 | /* audio CPU */ |
| 300 | 300 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 301 | 301 | |
| 302 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 303 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 304 | ||
| 305 | 302 | MDRV_MACHINE_RESET(88games) |
| 306 | 303 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 307 | 304 | |
| 308 | 305 | /* video hardware */ |
| 309 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS) | |
| 306 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 307 | ||
| 308 | MDRV_SCREEN_ADD("main", RASTER) | |
| 309 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 310 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 310 | 311 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 311 | 312 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 312 | 313 | MDRV_SCREEN_VISIBLE_AREA(13*8, (64-13)*8-1, 2*8, 30*8-1 ) |
| r1711 | r1712 | |
|---|---|---|
| 6525 | 6525 | MDRV_CPU_PROGRAM_MAP(ddenlovr_readmem,ddenlovr_writemem) |
| 6526 | 6526 | MDRV_CPU_VBLANK_INT(irq1_line_hold,1) |
| 6527 | 6527 | |
| 6528 | /* video hardware */ | |
| 6529 | MDRV_SCREEN_ADD("main", RASTER) | |
| 6528 | 6530 | MDRV_SCREEN_REFRESH_RATE(60) |
| 6529 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 6530 | ||
| 6531 | /* video hardware */ | |
| 6532 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 6531 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 6533 | 6532 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 6534 | 6533 | MDRV_SCREEN_SIZE(336, 256) |
| 6535 | 6534 | MDRV_SCREEN_VISIBLE_AREA(0, 336-1, 5, 256-16+5-1) |
| 6535 | ||
| 6536 | 6536 | MDRV_PALETTE_LENGTH(0x100) |
| 6537 | 6537 | |
| 6538 | 6538 | MDRV_VIDEO_START(ddenlovr) |
| r1711 | r1712 | |
| 6640 | 6640 | MDRV_CPU_IO_MAP(quizchq_readport,quizchq_writeport) |
| 6641 | 6641 | MDRV_CPU_VBLANK_INT(quizchq_irq,1) |
| 6642 | 6642 | |
| 6643 | /* video hardware */ | |
| 6644 | MDRV_SCREEN_ADD("main", RASTER) | |
| 6643 | 6645 | MDRV_SCREEN_REFRESH_RATE(60) |
| 6644 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 6645 | ||
| 6646 | /* video hardware */ | |
| 6647 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 6646 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 6648 | 6647 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 6649 | 6648 | MDRV_SCREEN_SIZE(336, 256) |
| 6650 | 6649 | MDRV_SCREEN_VISIBLE_AREA(0, 336-1, 5, 256-16+5-1) |
| 6650 | ||
| 6651 | 6651 | MDRV_PALETTE_LENGTH(0x100) |
| 6652 | 6652 | |
| 6653 | 6653 | MDRV_VIDEO_START(ddenlovr) |
| r1711 | r1712 | |
| 6715 | 6715 | MDRV_CPU_IO_MAP(mmpanic_sound_readport,mmpanic_sound_writeport) |
| 6716 | 6716 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) // NMI by main cpu |
| 6717 | 6717 | |
| 6718 | /* video hardware */ | |
| 6719 | MDRV_SCREEN_ADD("main", RASTER) | |
| 6718 | 6720 | MDRV_SCREEN_REFRESH_RATE(60) |
| 6719 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 6720 | ||
| 6721 | /* video hardware */ | |
| 6722 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 6721 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 6723 | 6722 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 6724 | 6723 | MDRV_SCREEN_SIZE(336, 256) |
| 6725 | 6724 | MDRV_SCREEN_VISIBLE_AREA(0, 336-1, 5, 256-16+5-1) |
| 6725 | ||
| 6726 | 6726 | MDRV_PALETTE_LENGTH(0x100) |
| 6727 | 6727 | |
| 6728 | 6728 | MDRV_VIDEO_START(mmpanic) // extra layers |
| r1711 | r1712 | |
| 6779 | 6779 | MDRV_CPU_IO_MAP(hanakanz_readport,hanakanz_writeport) |
| 6780 | 6780 | MDRV_CPU_VBLANK_INT(hanakanz_irq,1) |
| 6781 | 6781 | |
| 6782 | /* video hardware */ | |
| 6783 | MDRV_SCREEN_ADD("main", RASTER) | |
| 6782 | 6784 | MDRV_SCREEN_REFRESH_RATE(60) |
| 6783 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 6784 | ||
| 6785 | /* video hardware */ | |
| 6786 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 6785 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 6787 | 6786 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 6788 | 6787 | MDRV_SCREEN_SIZE(336, 256) |
| 6789 | 6788 | MDRV_SCREEN_VISIBLE_AREA(0, 336-1, 5, 256-11-1) |
| 6789 | ||
| 6790 | 6790 | MDRV_PALETTE_LENGTH(0x200) |
| 6791 | 6791 | |
| 6792 | 6792 | MDRV_VIDEO_START(hanakanz) // blitter commands in the roms are shuffled around |
| r1711 | r1712 | |
|---|---|---|
| 503 | 503 | MDRV_CPU_ADD(Z80, 3579545) /* 3.579545 MHz */ |
| 504 | 504 | MDRV_CPU_PROGRAM_MAP(sound_map,0) |
| 505 | 505 | |
| 506 | MDRV_SCREEN_REFRESH_RATE(56) | |
| 507 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 508 | 506 | MDRV_INTERLEAVE(100) /* heavy interleaving to sync up sprite<->main cpu's */ |
| 509 | 507 | |
| 510 | 508 | MDRV_MACHINE_RESET(chinagat) |
| 511 | 509 | |
| 512 | 510 | /* video hardware */ |
| 513 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 511 | MDRV_SCREEN_ADD("main", RASTER) | |
| 512 | MDRV_SCREEN_REFRESH_RATE(56) | |
| 513 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 514 | 514 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 515 | 515 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 516 | 516 | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 1*8, 29*8-1) |
| 517 | ||
| 517 | 518 | MDRV_GFXDECODE(chinagat) |
| 518 | 519 | MDRV_PALETTE_LENGTH(384) |
| 519 | 520 | |
| r1711 | r1712 | |
| 550 | 551 | MDRV_CPU_PROGRAM_MAP(i8748_map,0) |
| 551 | 552 | MDRV_CPU_IO_MAP(i8748_portmap,0) |
| 552 | 553 | |
| 553 | MDRV_SCREEN_REFRESH_RATE(56) | |
| 554 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 555 | 554 | MDRV_INTERLEAVE(100) /* heavy interleaving to sync up sprite<->main cpu's */ |
| 556 | 555 | |
| 557 | 556 | MDRV_MACHINE_RESET(chinagat) |
| 558 | 557 | |
| 559 | 558 | /* video hardware */ |
| 560 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 559 | MDRV_SCREEN_ADD("main", RASTER) | |
| 560 | MDRV_SCREEN_REFRESH_RATE(56) | |
| 561 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 561 | 562 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 562 | 563 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 563 | 564 | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 1*8, 29*8-1) |
| 565 | ||
| 564 | 566 | MDRV_GFXDECODE(chinagat) |
| 565 | 567 | MDRV_PALETTE_LENGTH(384) |
| 566 | 568 | |
| r1711 | r1712 | |
| 593 | 595 | MDRV_CPU_ADD(Z80, 3579545) /* 3.579545 MHz oscillator */ |
| 594 | 596 | MDRV_CPU_PROGRAM_MAP(ym2203c_sound_map,0) |
| 595 | 597 | |
| 596 | MDRV_SCREEN_REFRESH_RATE(56) | |
| 597 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 598 | 598 | MDRV_INTERLEAVE(100) /* heavy interleaving to sync up sprite<->main cpu's */ |
| 599 | 599 | |
| 600 | 600 | MDRV_MACHINE_RESET(chinagat) |
| 601 | 601 | |
| 602 | 602 | /* video hardware */ |
| 603 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 603 | MDRV_SCREEN_ADD("main", RASTER) | |
| 604 | MDRV_SCREEN_REFRESH_RATE(56) | |
| 605 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 604 | 606 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 605 | 607 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 606 | 608 | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 1*8, 29*8-1) |
| 609 | ||
| 607 | 610 | MDRV_GFXDECODE(chinagat) |
| 608 | 611 | MDRV_PALETTE_LENGTH(384) |
| 609 | 612 |
| r1711 | r1712 | |
|---|---|---|
| 1682 | 1682 | MDRV_CPU_PROGRAM_MAP(berlwall,0) |
| 1683 | 1683 | MDRV_CPU_VBLANK_INT(kaneko16_interrupt,KANEKO16_INTERRUPTS_NUM) |
| 1684 | 1684 | |
| 1685 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1686 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 1687 | ||
| 1688 | 1685 | MDRV_MACHINE_RESET(berlwall) |
| 1689 | 1686 | |
| 1690 | 1687 | /* video hardware */ |
| 1691 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_AFTER_VBLANK) // mangled sprites otherwise | |
| 1688 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_AFTER_VBLANK) // mangled sprites otherwise | |
| 1689 | ||
| 1690 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1691 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1692 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 1692 | 1693 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1693 | 1694 | MDRV_SCREEN_SIZE(256, 256) |
| 1694 | 1695 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 16, 240-1) |
| 1696 | ||
| 1695 | 1697 | MDRV_GFXDECODE(1x4bit_1x4bit) |
| 1696 | 1698 | MDRV_PALETTE_LENGTH(2048 + 32768) /* 32768 static colors for the bg */ |
| 1697 | 1699 | |
| r1711 | r1712 | |
| 1727 | 1729 | MDRV_CPU_PROGRAM_MAP(bakubrkr,0) |
| 1728 | 1730 | MDRV_CPU_VBLANK_INT(kaneko16_interrupt,KANEKO16_INTERRUPTS_NUM) |
| 1729 | 1731 | |
| 1730 | MDRV_SCREEN_REFRESH_RATE(59) | |
| 1731 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 1732 | ||
| 1733 | 1732 | MDRV_MACHINE_RESET(bakubrkr) |
| 1734 | 1733 | MDRV_NVRAM_HANDLER(93C46) |
| 1735 | 1734 | |
| 1736 | 1735 | /* video hardware */ |
| 1737 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_AFTER_VBLANK) // mangled sprites otherwise | |
| 1736 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_AFTER_VBLANK) // mangled sprites otherwise | |
| 1737 | ||
| 1738 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1739 | MDRV_SCREEN_REFRESH_RATE(59) | |
| 1740 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 1738 | 1741 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1739 | 1742 | MDRV_SCREEN_SIZE(256, 256) |
| 1740 | 1743 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 16, 240-1) |
| 1744 | ||
| 1741 | 1745 | MDRV_GFXDECODE(1x4bit_2x4bit) |
| 1742 | 1746 | MDRV_PALETTE_LENGTH(2048) |
| 1743 | 1747 | |
| r1711 | r1712 | |
| 1785 | 1789 | MDRV_CPU_PROGRAM_MAP(blazeon_soundmem,0) |
| 1786 | 1790 | MDRV_CPU_IO_MAP(blazeon_soundport,0) |
| 1787 | 1791 | |
| 1788 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1789 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 1790 | ||
| 1791 | 1792 | MDRV_MACHINE_RESET(blazeon) |
| 1792 | 1793 | |
| 1793 | 1794 | /* video hardware */ |
| 1794 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_AFTER_VBLANK) | |
| 1795 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_AFTER_VBLANK) | |
| 1796 | ||
| 1797 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1798 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1799 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 1795 | 1800 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1796 | 1801 | MDRV_SCREEN_SIZE(320, 240) |
| 1797 | 1802 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 0, 240-1 -8) |
| 1803 | ||
| 1798 | 1804 | MDRV_GFXDECODE(1x4bit_1x4bit) |
| 1799 | 1805 | MDRV_PALETTE_LENGTH(2048) |
| 1800 | 1806 | |
| r1711 | r1712 | |
| 1832 | 1838 | MDRV_CPU_PROGRAM_MAP(gtmr_readmem,gtmr_writemem) |
| 1833 | 1839 | MDRV_CPU_VBLANK_INT(kaneko16_interrupt,KANEKO16_INTERRUPTS_NUM) |
| 1834 | 1840 | |
| 1835 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1836 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 1837 | ||
| 1838 | 1841 | MDRV_MACHINE_RESET(gtmr) |
| 1839 | 1842 | |
| 1840 | 1843 | /* video hardware */ |
| 1841 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_AFTER_VBLANK) | |
| 1844 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_AFTER_VBLANK) | |
| 1845 | ||
| 1846 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1847 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1848 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 1842 | 1849 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1843 | 1850 | MDRV_SCREEN_SIZE(320, 240) |
| 1844 | 1851 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 0, 240-1) |
| 1852 | ||
| 1845 | 1853 | MDRV_GFXDECODE(1x8bit_2x4bit) |
| 1846 | 1854 | MDRV_PALETTE_LENGTH(32768) |
| 1847 | 1855 | |
| r1711 | r1712 | |
| 1922 | 1930 | MDRV_CPU_PROGRAM_MAP(mgcrystl,0) |
| 1923 | 1931 | MDRV_CPU_VBLANK_INT(kaneko16_interrupt,KANEKO16_INTERRUPTS_NUM) |
| 1924 | 1932 | |
| 1925 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1926 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 1927 | ||
| 1928 | 1933 | MDRV_MACHINE_RESET(mgcrystl) |
| 1929 | 1934 | MDRV_NVRAM_HANDLER(93C46) |
| 1930 | 1935 | |
| 1931 | 1936 | /* video hardware */ |
| 1932 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_AFTER_VBLANK) | |
| 1937 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_AFTER_VBLANK) | |
| 1938 | ||
| 1939 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1940 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1941 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 1933 | 1942 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1934 | 1943 | MDRV_SCREEN_SIZE(256, 256) |
| 1935 | 1944 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0+16, 256-16-1) |
| 1945 | ||
| 1936 | 1946 | MDRV_GFXDECODE(1x4bit_2x4bit) |
| 1937 | 1947 | MDRV_PALETTE_LENGTH(2048) |
| 1938 | 1948 | |
| r1711 | r1712 | |
| 1990 | 2000 | MDRV_CPU_PROGRAM_MAP(shogwarr,0) |
| 1991 | 2001 | MDRV_CPU_VBLANK_INT(shogwarr_interrupt,SHOGWARR_INTERRUPTS_NUM) |
| 1992 | 2002 | |
| 1993 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1994 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1995 | ||
| 1996 | 2003 | MDRV_MACHINE_RESET(shogwarr) |
| 1997 | 2004 | |
| 1998 | 2005 | /* video hardware */ |
| 1999 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2006 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2007 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2008 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2000 | 2009 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2001 | 2010 | MDRV_SCREEN_SIZE(320, 240) |
| 2002 | 2011 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 0, 240-1) |
| 2012 | ||
| 2003 | 2013 | MDRV_GFXDECODE(1x4bit_1x4bit) |
| 2004 | 2014 | MDRV_PALETTE_LENGTH(2048) |
| 2005 | 2015 |
| r1711 | r1712 | |
|---|---|---|
| 289 | 289 | MDRV_CPU_IO_MAP(readport,0) |
| 290 | 290 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 291 | 291 | |
| 292 | /* video hardware */ | |
| 293 | MDRV_SCREEN_ADD("main", RASTER) | |
| 292 | 294 | MDRV_SCREEN_REFRESH_RATE(60) |
| 293 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 294 | ||
| 295 | /* video hardware */ | |
| 296 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 295 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 297 | 296 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 298 | 297 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 299 | 298 | MDRV_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 2*8, 30*8-1) |
| 299 | ||
| 300 | 300 | MDRV_GFXDECODE(goldstar) |
| 301 | 301 | MDRV_PALETTE_LENGTH(256) |
| 302 | 302 | MDRV_NVRAM_HANDLER(goldstar) |
| r1711 | r1712 | |
| 325 | 325 | MDRV_CPU_IO_MAP(readport,0) |
| 326 | 326 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 327 | 327 | |
| 328 | /* video hardware */ | |
| 329 | MDRV_SCREEN_ADD("main", RASTER) | |
| 328 | 330 | MDRV_SCREEN_REFRESH_RATE(60) |
| 329 | // MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 330 | ||
| 331 | /* video hardware */ | |
| 332 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 331 | // MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 333 | 332 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 334 | 333 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 335 | 334 | MDRV_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 2*8, 30*8-1) |
| 335 | ||
| 336 | 336 | MDRV_GFXDECODE(bl) |
| 337 | 337 | MDRV_PALETTE_LENGTH(256) |
| 338 | 338 | MDRV_NVRAM_HANDLER(goldstar) |
| r1711 | r1712 | |
| 360 | 360 | MDRV_CPU_IO_MAP(readport,0) |
| 361 | 361 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 362 | 362 | |
| 363 | /* video hardware */ | |
| 364 | MDRV_SCREEN_ADD("main", RASTER) | |
| 363 | 365 | MDRV_SCREEN_REFRESH_RATE(60) |
| 364 | // MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 365 | ||
| 366 | /* video hardware */ | |
| 367 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 366 | // MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 368 | 367 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 369 | 368 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 370 | 369 | MDRV_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 2*8, 30*8-1) |
| 370 | ||
| 371 | 371 | MDRV_GFXDECODE(ml) |
| 372 | 372 | MDRV_PALETTE_LENGTH(256) |
| 373 | 373 | MDRV_NVRAM_HANDLER(goldstar) |
| r1711 | r1712 | |
|---|---|---|
| 446 | 446 | MDRV_CPU_PROGRAM_MAP(dbz_sound_readmem, dbz_sound_writemem) |
| 447 | 447 | MDRV_CPU_IO_MAP(0,dbz_sound_writeport) |
| 448 | 448 | |
| 449 | MDRV_SCREEN_REFRESH_RATE(55) | |
| 450 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 451 | ||
| 452 | 449 | MDRV_GFXDECODE(dbz) |
| 453 | 450 | |
| 454 | 451 | /* video hardware */ |
| 455 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS) | |
| 452 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 453 | ||
| 454 | MDRV_SCREEN_ADD("main", RASTER) | |
| 455 | MDRV_SCREEN_REFRESH_RATE(55) | |
| 456 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 456 | 457 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 457 | 458 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 458 | 459 | MDRV_SCREEN_VISIBLE_AREA(0, 48*8-1, 0, 32*8-1) |
| 460 | ||
| 459 | 461 | MDRV_VIDEO_START(dbz) |
| 460 | 462 | MDRV_VIDEO_UPDATE(dbz) |
| 461 | 463 | MDRV_PALETTE_LENGTH(0x4000/2) |
| r1711 | r1712 | |
|---|---|---|
| 574 | 574 | MDRV_CPU_ADD(Z80,3579500) |
| 575 | 575 | MDRV_CPU_PROGRAM_MAP(sound_mem,0) |
| 576 | 576 | |
| 577 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 578 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 579 | ||
| 580 | 577 | MDRV_INTERLEAVE(100)//arbitrary value,needed to get the communication to work |
| 581 | 578 | |
| 582 | 579 | /* video hardware */ |
| 583 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 580 | MDRV_SCREEN_ADD("main", RASTER) | |
| 581 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 582 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 584 | 583 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 585 | 584 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 586 | 585 | MDRV_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 2*8, 32*8-1) |
| 586 | ||
| 587 | 587 | MDRV_GFXDECODE(cybertnk) |
| 588 | 588 | MDRV_PALETTE_LENGTH(0x4000) |
| 589 | 589 |
| r1711 | r1712 | |
|---|---|---|
| 381 | 381 | MDRV_CPU_PROGRAM_MAP( namcos10_map, 0 ) |
| 382 | 382 | MDRV_CPU_VBLANK_INT( psx_vblank, 1 ) |
| 383 | 383 | |
| 384 | MDRV_SCREEN_REFRESH_RATE( 60 ) | |
| 385 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 386 | ||
| 387 | 384 | MDRV_MACHINE_RESET( namcos10 ) |
| 388 | 385 | |
| 389 | 386 | /* video hardware */ |
| 390 | MDRV_VIDEO_ATTRIBUTES( VIDEO_TYPE_RASTER ) | |
| 387 | MDRV_SCREEN_ADD("main", RASTER) | |
| 388 | MDRV_SCREEN_REFRESH_RATE( 60 ) | |
| 389 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 391 | 390 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 392 | 391 | MDRV_SCREEN_SIZE( 1024, 1024 ) |
| 393 | 392 | MDRV_SCREEN_VISIBLE_AREA( 0, 639, 0, 479 ) |
| 393 | ||
| 394 | 394 | MDRV_PALETTE_LENGTH( 65536 ) |
| 395 | 395 | |
| 396 | 396 | MDRV_PALETTE_INIT( psx ) |
| r1711 | r1712 | |
|---|---|---|
| 358 | 358 | /* audio CPU */ /* 4 MHz ???? */ |
| 359 | 359 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 360 | 360 | /* NMIs are triggered by the main CPU */ |
| 361 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 362 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 363 | 361 | |
| 364 | 362 | /* video hardware */ |
| 365 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 363 | MDRV_SCREEN_ADD("main", RASTER) | |
| 364 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 365 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 366 | 366 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 367 | 367 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 368 | 368 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 369 | ||
| 369 | 370 | MDRV_GFXDECODE(wc90) |
| 370 | 371 | MDRV_PALETTE_LENGTH(1024) |
| 371 | 372 |
| r1711 | r1712 | |
|---|---|---|
| 541 | 541 | MDRV_NVRAM_HANDLER(atarigen) |
| 542 | 542 | |
| 543 | 543 | /* video hardware */ |
| 544 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 544 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 545 | 545 | MDRV_GFXDECODE(gauntlet) |
| 546 | 546 | MDRV_PALETTE_LENGTH(1024) |
| 547 | 547 | |
| 548 | MDRV_SCREEN_ADD("main", | |
| 548 | MDRV_SCREEN_ADD("main", RASTER) | |
| 549 | 549 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 550 | 550 | /* note: these parameters are from published specs, not derived */ |
| 551 | 551 | /* the board uses a SYNGEN chip to generate video signals */ |
| r1711 | r1712 | |
|---|---|---|
| 1372 | 1372 | /* audio CPU */ |
| 1373 | 1373 | MDRV_CPU_PROGRAM_MAP(ms32_snd_readmem, ms32_snd_writemem) |
| 1374 | 1374 | |
| 1375 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1376 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1377 | 1375 | MDRV_INTERLEAVE(1000) |
| 1378 | 1376 | |
| 1379 | 1377 | MDRV_MACHINE_RESET(ms32) |
| 1380 | 1378 | |
| 1381 | 1379 | /* video hardware */ |
| 1382 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1380 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1381 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1382 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1383 | 1383 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1384 | 1384 | MDRV_SCREEN_SIZE(40*8, 28*8) |
| 1385 | 1385 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 28*8-1) |
| 1386 | ||
| 1386 | 1387 | MDRV_GFXDECODE(ms32) |
| 1387 | 1388 | MDRV_PALETTE_LENGTH(0x8000) |
| 1388 | 1389 |
| r1711 | r1712 | |
|---|---|---|
| 1373 | 1373 | |
| 1374 | 1374 | /* video hardware */ |
| 1375 | 1375 | MDRV_DEFAULT_LAYOUT(layout_mpu4) |
| 1376 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_NONE) | |
| 1377 | /* dummy values */ | |
| 1378 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1379 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 1380 | 1376 | MACHINE_DRIVER_END |
| 1381 | 1377 | |
| 1382 | 1378 | const UINT8 MPU4_chr_lut[72]= { 0x00,0x1A,0x04,0x10,0x18,0x0F,0x13,0x1B, |
| r1711 | r1712 | |
|---|---|---|
| 84 | 84 | |
| 85 | 85 | static VIDEO_UPDATE( skylncr ) |
| 86 | 86 | { |
| 87 | fillbitmap(bitmap, | |
| 87 | fillbitmap(bitmap, | |
| 88 | 88 | tilemap_draw(bitmap,cliprect, tmap2, 0, 0); |
| 89 | 89 | tilemap_draw(bitmap,cliprect, tmap, 0, 0); |
| 90 | 90 | return 0; |
| r1711 | r1712 | |
| 431 | 431 | MDRV_CPU_IO_MAP(io_map_skylncr,0) |
| 432 | 432 | MDRV_CPU_VBLANK_INT(skylncr_vblank_interrupt,1) |
| 433 | 433 | |
| 434 | /* video hardware */ | |
| 435 | MDRV_SCREEN_ADD("main", RASTER) | |
| 434 | 436 | MDRV_SCREEN_REFRESH_RATE(60) |
| 435 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 436 | ||
| 437 | /* video hardware */ | |
| 438 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 437 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 439 | 438 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 440 | 439 | MDRV_SCREEN_SIZE(512, 256) |
| 441 | 440 | MDRV_SCREEN_VISIBLE_AREA(0, 512-1, 0, 256-1) |
| 441 | ||
| 442 | 442 | MDRV_GFXDECODE(skylncr) |
| 443 | 443 | MDRV_PALETTE_LENGTH(0x200) |
| 444 | 444 |
| r1711 | r1712 | |
|---|---|---|
| 295 | 295 | /* audio CPU */ |
| 296 | 296 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 297 | 297 | |
| 298 | /* video hardware */ | |
| 299 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 300 | ||
| 301 | MDRV_SCREEN_ADD("main", RASTER) | |
| 298 | 302 | MDRV_SCREEN_REFRESH_RATE(58) |
| 299 | 303 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529)) |
| 300 | ||
| 301 | /* video hardware */ | |
| 302 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 303 | 304 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 304 | 305 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 305 | 306 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 307 | ||
| 306 | 308 | MDRV_GFXDECODE(darkseal) |
| 307 | 309 | MDRV_PALETTE_LENGTH(2048) |
| 308 | 310 |
| r1711 | r1712 | |
|---|---|---|
| 159 | 159 | * |
| 160 | 160 | *************************************/ |
| 161 | 161 | |
| 162 | WRITE8_HANDLER( rom_bank_select_w ) | |
| 162 | static WRITE8_HANDLER( rom_bank_select_w ) | |
| 163 | 163 | { |
| 164 | 164 | _20pacgal_state *state = Machine->driver_data; |
| 165 | 165 | |
| r1711 | r1712 | |
| 170 | 170 | } |
| 171 | 171 | |
| 172 | 172 | |
| 173 | WRITE8_HANDLER( rom_48000_w ) | |
| 173 | static WRITE8_HANDLER( rom_48000_w ) | |
| 174 | 174 | { |
| 175 | 175 | _20pacgal_state *state = Machine->driver_data; |
| 176 | 176 |
| r1711 | r1712 | |
|---|---|---|
| 409 | 409 | MDRV_CPU_ADD_TAG("mcu", NSC8105, 6000000) /* ??? */ |
| 410 | 410 | MDRV_CPU_PROGRAM_MAP(mcu_nvram_map,0) |
| 411 | 411 | |
| 412 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 413 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION /* frames per second, vblank duration */) | |
| 414 | 412 | MDRV_INTERLEAVE(20) /* 20 CPU slices per frame - an high value to ensure proper */ |
| 415 | 413 | /* synchronization of the CPUs */ |
| 416 | 414 | MDRV_MACHINE_RESET(friskyt) |
| 417 | 415 | MDRV_NVRAM_HANDLER(seicross) |
| 418 | 416 | |
| 419 | 417 | /* video hardware */ |
| 420 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 418 | MDRV_SCREEN_ADD("main", RASTER) | |
| 419 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 420 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */ /* frames per second, vblank duration */) | |
| 421 | 421 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 422 | 422 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 423 | 423 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 424 | ||
| 424 | 425 | MDRV_GFXDECODE(seicross) |
| 425 | 426 | MDRV_PALETTE_LENGTH(64) |
| 426 | 427 |
| r1711 | r1712 | |
|---|---|---|
| 362 | 362 | /* audio CPU */ /* 4 MHz ??? */ |
| 363 | 363 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 364 | 364 | |
| 365 | /* video hardware */ | |
| 366 | MDRV_SCREEN_ADD("main", RASTER) | |
| 365 | 367 | MDRV_SCREEN_REFRESH_RATE(60) |
| 366 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 367 | ||
| 368 | /* video hardware */ | |
| 369 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 368 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 370 | 369 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 371 | 370 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 372 | 371 | MDRV_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 2*8, 30*8-1) |
| 372 | ||
| 373 | 373 | MDRV_GFXDECODE(spbactn) |
| 374 | 374 | MDRV_PALETTE_LENGTH(0x2800/2) |
| 375 | 375 |
| r1711 | r1712 | |
|---|---|---|
| 457 | 457 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 458 | 458 | MDRV_CPU_IO_MAP(sound_readport,sound_writeport) |
| 459 | 459 | |
| 460 | /* video hardware */ | |
| 461 | MDRV_SCREEN_ADD("main", RASTER) | |
| 460 | 462 | MDRV_SCREEN_REFRESH_RATE(60) |
| 461 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 462 | ||
| 463 | /* video hardware */ | |
| 464 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 463 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 465 | 464 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 466 | 465 | MDRV_SCREEN_SIZE(40*8, 28*8) |
| 467 | 466 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 28*8-1) |
| 467 | ||
| 468 | 468 | MDRV_GFXDECODE(sys16) |
| 469 | 469 | MDRV_PALETTE_LENGTH(2048*ShadowColorsMultiplier) |
| 470 | 470 |
| r1711 | r1712 | |
|---|---|---|
| 308 | 308 | static void irqhandler(int linestate) |
| 309 | 309 | { |
| 310 | 310 | /* system 16c doesn't have the sound CPU */ |
| 311 | if (Machine-> | |
| 311 | if (Machine->config->cpu[1].type != CPU_DUMMY) | |
| 312 | 312 | cpunum_set_input_line(Machine, 1,0,linestate); |
| 313 | 313 | } |
| 314 | 314 | |
| r1711 | r1712 | |
| 330 | 330 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 331 | 331 | MDRV_CPU_IO_MAP(sound_readport,sound_writeport) |
| 332 | 332 | |
| 333 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 334 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 335 | ||
| 336 | 333 | MDRV_MACHINE_RESET(deniam) |
| 337 | 334 | |
| 338 | 335 | /* video hardware */ |
| 339 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 336 | MDRV_SCREEN_ADD("main", RASTER) | |
| 337 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 338 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 340 | 339 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 341 | 340 | MDRV_SCREEN_SIZE(512, 256) |
| 342 | 341 | MDRV_SCREEN_VISIBLE_AREA(24*8, 64*8-1, 0*8, 28*8-1) |
| 342 | ||
| 343 | 343 | MDRV_GFXDECODE(deniam) |
| 344 | 344 | MDRV_PALETTE_LENGTH(2048) |
| 345 | 345 | |
| r1711 | r1712 | |
| 365 | 365 | MDRV_CPU_PROGRAM_MAP(deniam16c_readmem,deniam16c_writemem) |
| 366 | 366 | MDRV_CPU_VBLANK_INT(irq4_line_hold,1) |
| 367 | 367 | |
| 368 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 369 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 370 | ||
| 371 | 368 | MDRV_MACHINE_RESET(deniam) |
| 372 | 369 | |
| 373 | 370 | /* video hardware */ |
| 374 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 371 | MDRV_SCREEN_ADD("main", RASTER) | |
| 372 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 373 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 375 | 374 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 376 | 375 | MDRV_SCREEN_SIZE(512, 256) |
| 377 | 376 | MDRV_SCREEN_VISIBLE_AREA(24*8, 64*8-1, 0*8, 28*8-1) |
| 377 | ||
| 378 | 378 | MDRV_GFXDECODE(deniam) |
| 379 | 379 | MDRV_PALETTE_LENGTH(2048) |
| 380 | 380 |
| r1711 | r1712 | |
|---|---|---|
| 288 | 288 | } |
| 289 | 289 | |
| 290 | 290 | |
| 291 | static void *nyny_begin_update(mame_bitmap *bitmap, const rectangle *cliprect) | |
| 291 | static void *nyny_begin_update(running_machine *machine, mc6845_t *mc6845, mame_bitmap *bitmap, const rectangle *cliprect) | |
| 292 | 292 | { |
| 293 | 293 | /* create the pens */ |
| 294 | 294 | offs_t i; |
| r1711 | r1712 | |
| 303 | 303 | } |
| 304 | 304 | |
| 305 | 305 | |
| 306 | static void nyny_update_row(mame_bitmap *bitmap, const rectangle *cliprect, | |
| 306 | static void nyny_update_row(running_machine *machine, mc6845_t *mc6845, mame_bitmap *bitmap, const rectangle *cliprect, | |
| 307 | 307 | UINT16 ma, UINT8 ra, UINT16 y, UINT8 x_count, void *param) |
| 308 | 308 | { |
| 309 | 309 | UINT8 cx; |
| r1711 | r1712 | |
| 373 | 373 | } |
| 374 | 374 | |
| 375 | 375 | |
| 376 | static void nyny_end_update(mame_bitmap *bitmap, const rectangle *cliprect, void *param) | |
| 376 | static void nyny_end_update(running_machine *machine, mc6845_t *mc6845, mame_bitmap *bitmap, const rectangle *cliprect, void *param) | |
| 377 | 377 | { |
| 378 | /* | |
| 378 | /* draw the star field into the bitmap */ | |
| 379 | 379 | int y; |
| 380 | 380 | |
| 381 | 381 | pen_t *pens = (pen_t *)param; |
| r1711 | r1712 | |
| 409 | 409 | } |
| 410 | 410 | |
| 411 | 411 | |
| 412 | static void nyny_display_enable_changed(int display_enabled) | |
| 412 | static void nyny_display_enable_changed(running_machine *machine, mc6845_t *mc6845, int display_enabled) | |
| 413 | 413 | { |
| 414 | 414 | TTL74123_A_w(0, display_enabled); |
| 415 | 415 | } |
| r1711 | r1712 | |
| 429 | 429 | |
| 430 | 430 | static VIDEO_START( nyny ) |
| 431 | 431 | { |
| 432 | /* configure the CRT controller */ | |
| 433 | mc6845 = mc6845_config(&mc6845_intf); | |
| 432 | mc6845 = devtag_get_token(machine, MC6845, "crtc"); | |
| 434 | 433 | } |
| 435 | 434 | |
| 436 | 435 | |
| r1711 | r1712 | |
| 692 | 691 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 693 | 692 | |
| 694 | 693 | /* video hardware */ |
| 695 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 696 | 694 | MDRV_VIDEO_START(nyny) |
| 697 | 695 | MDRV_VIDEO_UPDATE(nyny) |
| 698 | 696 | |
| 699 | MDRV_SCREEN_ADD("main", | |
| 697 | MDRV_SCREEN_ADD("main", RASTER) | |
| 700 | 698 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 701 | 699 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, 256, 0, 256, 256, 0, 256) /* temporary, CRTC will configure screen */ |
| 702 | 700 | |
| 701 | MDRV_DEVICE_ADD("crtc", MC6845) | |
| 702 | MDRV_DEVICE_CONFIG(mc6845_intf) | |
| 703 | ||
| 703 | 704 | /* audio hardware */ |
| 704 | 705 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 705 | 706 |
| r1711 | r1712 | |
|---|---|---|
| 481 | 481 | MDRV_CPU_IO_MAP(limenko_io_map,0) |
| 482 | 482 | MDRV_CPU_VBLANK_INT(irq0_line_hold, 1) |
| 483 | 483 | |
| 484 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 485 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 486 | ||
| 487 | 484 | MDRV_NVRAM_HANDLER(93C46) |
| 488 | 485 | |
| 489 | 486 | /* video hardware */ |
| 490 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 487 | MDRV_SCREEN_ADD("main", RASTER) | |
| 488 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 489 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 491 | 490 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 492 | 491 | MDRV_SCREEN_SIZE(384, 240) |
| 493 | 492 | MDRV_SCREEN_VISIBLE_AREA(0, 383, 0, 239) |
| r1711 | r1712 | |
| 512 | 511 | MDRV_CPU_DATA_MAP(0, 0) |
| 513 | 512 | MDRV_CPU_IO_MAP(spotty_sound_io_map,0) |
| 514 | 513 | |
| 515 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 516 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 517 | ||
| 518 | 514 | MDRV_NVRAM_HANDLER(93C46) |
| 519 | 515 | |
| 520 | 516 | /* video hardware */ |
| 521 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 517 | MDRV_SCREEN_ADD("main", RASTER) | |
| 518 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 519 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 522 | 520 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 523 | 521 | MDRV_SCREEN_SIZE(384, 240) |
| 524 | 522 | MDRV_SCREEN_VISIBLE_AREA(0, 383, 0, 239) |
| r1711 | r1712 | |
|---|---|---|
| 1057 | 1057 | MDRV_CPU_CONFIG(mcr_daisy_chain) |
| 1058 | 1058 | MDRV_CPU_VBLANK_INT(mcr_interrupt,2) |
| 1059 | 1059 | |
| 1060 | MDRV_SCREEN_REFRESH_RATE(30) | |
| 1061 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_30HZ_VBLANK_DURATION) | |
| 1062 | 1060 | MDRV_WATCHDOG_VBLANK_INIT(16) |
| 1063 | 1061 | MDRV_MACHINE_START(mcr) |
| 1064 | 1062 | MDRV_MACHINE_RESET(mcr) |
| 1065 | 1063 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 1066 | 1064 | |
| 1067 | 1065 | /* video hardware */ |
| 1068 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 1066 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 1067 | ||
| 1068 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1069 | MDRV_SCREEN_REFRESH_RATE(30) | |
| 1070 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 1069 | 1071 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1070 | 1072 | MDRV_SCREEN_SIZE(32*16, 30*16) |
| 1071 | 1073 | MDRV_SCREEN_VISIBLE_AREA(0*16, 32*16-1, 0*16, 30*16-1) |
| 1074 | ||
| 1072 | 1075 | MDRV_GFXDECODE(mcr3) |
| 1073 | 1076 | MDRV_PALETTE_LENGTH(64) |
| 1074 | 1077 | |
| r1711 | r1712 | |
| 1129 | 1132 | MDRV_CPU_IO_MAP(spyhunt_portmap,0) |
| 1130 | 1133 | |
| 1131 | 1134 | /* video hardware */ |
| 1135 | MDRV_SCREEN_MODIFY("main") | |
| 1132 | 1136 | MDRV_SCREEN_SIZE(30*16, 30*16) |
| 1133 | 1137 | MDRV_SCREEN_VISIBLE_AREA(0, 30*16-1, 0, 30*16-1) |
| 1134 | 1138 | MDRV_GFXDECODE(spyhunt) |
| r1711 | r1712 | |
|---|---|---|
| 367 | 367 | MDRV_CPU_ADD(M68705, 7372800/2) |
| 368 | 368 | MDRV_CPU_PROGRAM_MAP(mcu_mem, 0) |
| 369 | 369 | |
| 370 | /* video hardware */ | |
| 371 | MDRV_SCREEN_ADD("main", RASTER) | |
| 370 | 372 | MDRV_SCREEN_REFRESH_RATE(60) |
| 371 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 372 | ||
| 373 | /* video hardware */ | |
| 374 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 373 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 375 | 374 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 376 | 375 | MDRV_SCREEN_SIZE(512, 512) |
| 377 | 376 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 16, 239) |
| 377 | ||
| 378 | 378 | MDRV_GFXDECODE(pipeline) |
| 379 | 379 | |
| 380 | 380 | MDRV_MACHINE_RESET(pipeline) |
| r1711 | r1712 | |
|---|---|---|
| 351 | 351 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 352 | 352 | |
| 353 | 353 | /* video hardware */ |
| 354 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 355 | 354 | MDRV_GFXDECODE(pengo) |
| 356 | 355 | MDRV_PALETTE_LENGTH(128*4) |
| 357 | 356 | |
| 358 | MDRV_SCREEN_ADD("main", | |
| 357 | MDRV_SCREEN_ADD("main", RASTER) | |
| 359 | 358 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 360 | 359 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART) |
| 361 | 360 |
| r1711 | r1712 | |
|---|---|---|
| 265 | 265 | /* audio CPU */ |
| 266 | 266 | MDRV_CPU_PROGRAM_MAP(audio_map,0) |
| 267 | 267 | |
| 268 | /* video hardware */ | |
| 269 | MDRV_SCREEN_ADD("main", RASTER) | |
| 268 | 270 | MDRV_SCREEN_REFRESH_RATE(58) |
| 269 | 271 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529)) |
| 270 | ||
| 271 | /* video hardware */ | |
| 272 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 273 | 272 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 274 | 273 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 275 | 274 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 275 | ||
| 276 | 276 | MDRV_GFXDECODE(stadhero) |
| 277 | 277 | MDRV_PALETTE_LENGTH(1024) |
| 278 | 278 |
| r1711 | r1712 | |
|---|---|---|
| 244 | 244 | MDRV_CPU_PROGRAM_MAP(prehisle_sound_readmem,prehisle_sound_writemem) |
| 245 | 245 | MDRV_CPU_IO_MAP(prehisle_sound_readport,prehisle_sound_writeport) |
| 246 | 246 | |
| 247 | /* video hardware */ | |
| 248 | MDRV_SCREEN_ADD("main", RASTER) | |
| 247 | 249 | MDRV_SCREEN_REFRESH_RATE(60) |
| 248 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 249 | ||
| 250 | /* video hardware */ | |
| 251 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 250 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 252 | 251 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 253 | 252 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 254 | 253 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 254 | ||
| 255 | 255 | MDRV_GFXDECODE(prehisle) |
| 256 | 256 | MDRV_PALETTE_LENGTH(1024) |
| 257 | 257 |
| r1711 | r1712 | |
|---|---|---|
| 284 | 284 | MDRV_CPU_ADD(Z80, XTAL_3_579545MHz) /* verified on pcb */ |
| 285 | 285 | MDRV_CPU_PROGRAM_MAP(z80_map,0) |
| 286 | 286 | /* NMIs are generated by the 053260 */ |
| 287 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 288 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 289 | 287 | |
| 290 | 288 | MDRV_MACHINE_RESET(simpsons) |
| 291 | 289 | MDRV_NVRAM_HANDLER(simpsons) |
| 292 | 290 | |
| 293 | 291 | /* video hardware */ |
| 294 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS | VIDEO_UPDATE_AFTER_VBLANK) | |
| 292 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS | VIDEO_UPDATE_AFTER_VBLANK) | |
| 293 | ||
| 294 | MDRV_SCREEN_ADD("main", RASTER) | |
| 295 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 296 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 295 | 297 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 296 | 298 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 297 | 299 | MDRV_SCREEN_VISIBLE_AREA(14*8, (64-14)*8-1, 2*8, 30*8-1 ) |
| 300 | ||
| 298 | 301 | MDRV_PALETTE_LENGTH(2048) |
| 299 | 302 | |
| 300 | 303 | MDRV_VIDEO_START(simpsons) |
| r1711 | r1712 | |
|---|---|---|
| 525 | 525 | MDRV_CPU_IO_MAP(sound_portmap,0) |
| 526 | 526 | MDRV_CPU_PERIODIC_INT(nmi_line_assert, 244) // schematics show a separate 244Hz timer |
| 527 | 527 | |
| 528 | MDRV_SCREEN_REFRESH_RATE(60.606060) | |
| 529 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 530 | 528 | MDRV_INTERLEAVE(100) |
| 531 | 529 | |
| 532 | 530 | /* video hardware */ |
| 533 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS) | |
| 531 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 532 | ||
| 533 | MDRV_SCREEN_ADD("main", RASTER) | |
| 534 | MDRV_SCREEN_REFRESH_RATE(60.606060) | |
| 535 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 534 | 536 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 535 | 537 | MDRV_SCREEN_SIZE(256+32, 224) |
| 536 | 538 | MDRV_SCREEN_VISIBLE_AREA(0, 255+32,0, 223) |
| 539 | ||
| 537 | 540 | MDRV_GFXDECODE(marvins) |
| 538 | 541 | MDRV_PALETTE_LENGTH((16+2)*16) |
| 539 | 542 | |
| r1711 | r1712 | |
| 572 | 575 | MDRV_CPU_IO_MAP(sound_portmap,0) |
| 573 | 576 | MDRV_CPU_PERIODIC_INT(nmi_line_assert, 244) |
| 574 | 577 | |
| 575 | MDRV_SCREEN_REFRESH_RATE(60.606060) | |
| 576 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 577 | 578 | MDRV_INTERLEAVE(100) |
| 578 | 579 | |
| 579 | 580 | /* video hardware */ |
| 580 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS) | |
| 581 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 582 | ||
| 583 | MDRV_SCREEN_ADD("main", RASTER) | |
| 584 | MDRV_SCREEN_REFRESH_RATE(60.606060) | |
| 585 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 581 | 586 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 582 | 587 | MDRV_SCREEN_SIZE(256+32, 224) |
| 583 | 588 | MDRV_SCREEN_VISIBLE_AREA(0, 255+32,0, 223) |
| 589 | ||
| 584 | 590 | MDRV_GFXDECODE(marvins) |
| 585 | 591 | MDRV_PALETTE_LENGTH((16+2)*16) |
| 586 | 592 | |
| r1711 | r1712 | |
| 616 | 622 | MDRV_INTERLEAVE(300) |
| 617 | 623 | |
| 618 | 624 | /* video hardware */ |
| 625 | MDRV_SCREEN_MODIFY("main") | |
| 619 | 626 | MDRV_SCREEN_VISIBLE_AREA(16, 16+256-1, 0, 0+216-1) |
| 620 | 627 | MACHINE_DRIVER_END |
| 621 | 628 |
| r1711 | r1712 | |
|---|---|---|
| 367 | 367 | MDRV_CPU_ADD(Z80, 3579545) |
| 368 | 368 | MDRV_CPU_PROGRAM_MAP(readmem_sound,writemem_sound) |
| 369 | 369 | |
| 370 | /* video hardware */ | |
| 371 | MDRV_SCREEN_ADD("main", RASTER) | |
| 370 | 372 | MDRV_SCREEN_REFRESH_RATE(57.44) |
| 371 | 373 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) |
| 372 | ||
| 373 | /* video hardware */ | |
| 374 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 375 | 374 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 376 | 375 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 377 | 376 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 377 | ||
| 378 | 378 | MDRV_GFXDECODE(wwfsstar) |
| 379 | 379 | MDRV_PALETTE_LENGTH(384) |
| 380 | 380 |
| r1711 | r1712 | |
|---|---|---|
| 205 | 205 | PORT_DIPSETTING( 0x04, DEF_STR( 2C_1C ) ) |
| 206 | 206 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_1C ) ) |
| 207 | 207 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_2C ) ) |
| 208 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW1:5") /* Listed as "Unused" in the manual */ | |
| 209 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 210 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 208 | PORT_DIPUNUSED_DIPLOC( 0x10, 0x10, "SW1:5" ) /* Listed as "Unused" */ | |
| 211 | 209 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:6") |
| 212 | 210 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 213 | 211 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) |
| r1711 | r1712 | |
| 229 | 227 | PORT_DIPSETTING( 0x0c, DEF_STR( Normal ) ) |
| 230 | 228 | PORT_DIPSETTING( 0x08, DEF_STR( Hard ) ) |
| 231 | 229 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 232 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW2:5") /* Listed as "Unused" in the manual */ | |
| 233 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 234 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 230 | PORT_DIPUNUSED_DIPLOC( 0x10, 0x10, "SW2:5" ) /* Listed as "Unused" */ | |
| 235 | 231 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW2:6") |
| 236 | 232 | PORT_DIPSETTING( 0x20, "800000" ) |
| 237 | 233 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) |
| 238 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW2:7") /* Listed as "Unused" in the manual */ | |
| 239 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 240 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 241 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW2:1") /* Listed as "Unused" in the manual */ | |
| 242 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 243 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 234 | PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "SW2:7" ) /* Listed as "Unused" */ | |
| 235 | PORT_DIPUNUSED_DIPLOC( 0x80, 0x80, "SW2:8" ) /* Listed as "Unused" */ | |
| 244 | 236 | INPUT_PORTS_END |
| 245 | 237 | |
| 246 | 238 | static INPUT_PORTS_START( triothep ) |
| r1711 | r1712 | |
| 285 | 277 | PORT_DIPSETTING( 0x04, DEF_STR( 2C_1C ) ) |
| 286 | 278 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_1C ) ) |
| 287 | 279 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_2C ) ) |
| 288 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW1:5") /* Listed as "Unused" in the manual */ | |
| 289 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 290 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 280 | PORT_DIPUNUSED_DIPLOC( 0x10, 0x10, "SW1:5" ) /* Listed as "Unused" */ | |
| 291 | 281 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:6") |
| 292 | 282 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 293 | 283 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) |
| r1711 | r1712 | |
| 312 | 302 | PORT_DIPNAME( 0x10, 0x10, "Bonus Lives" ) PORT_DIPLOCATION("SW2:5") |
| 313 | 303 | PORT_DIPSETTING( 0x00, "2" ) |
| 314 | 304 | PORT_DIPSETTING( 0x10, "3" ) |
| 315 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW2:6") /* Listed as "Unused" in the manual */ | |
| 316 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 317 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 318 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW2:7") /* Listed as "Unused" in the manual */ | |
| 319 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 320 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 321 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW2:8") /* Listed as "Unused" in the manual */ | |
| 322 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 323 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 305 | PORT_DIPUNUSED_DIPLOC( 0x20, 0x20, "SW2:6" ) /* Listed as "Unused" */ | |
| 306 | PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "SW2:7" ) /* Listed as "Unused" */ | |
| 307 | PORT_DIPUNUSED_DIPLOC( 0x80, 0x80, "SW2:8" ) /* Listed as "Unused" */ | |
| 324 | 308 | INPUT_PORTS_END |
| 325 | 309 | |
| 326 | 310 | /******************************************************************************/ |
| r1711 | r1712 | |
| 399 | 383 | /* audio CPU */ /* Should be accurate */ |
| 400 | 384 | MDRV_CPU_PROGRAM_MAP(dec0_s_readmem,dec0_s_writemem) |
| 401 | 385 | |
| 386 | /* video hardware */ | |
| 387 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 388 | ||
| 389 | MDRV_SCREEN_ADD("main", RASTER) | |
| 402 | 390 | MDRV_SCREEN_REFRESH_RATE(60) |
| 403 | 391 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529)) |
| 404 | ||
| 405 | /* video hardware */ | |
| 406 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 407 | 392 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 408 | 393 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 409 | 394 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| r1711 | r1712 | |
| 442 | 427 | /* audio CPU */ /* Should be accurate */ |
| 443 | 428 | MDRV_CPU_PROGRAM_MAP(dec0_s_readmem,dec0_s_writemem) |
| 444 | 429 | |
| 430 | /* video hardware */ | |
| 431 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 432 | ||
| 433 | MDRV_SCREEN_ADD("main", RASTER) | |
| 445 | 434 | MDRV_SCREEN_REFRESH_RATE(60) |
| 446 | 435 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529)) |
| 447 | ||
| 448 | /* video hardware */ | |
| 449 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 450 | 436 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 451 | 437 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 452 | 438 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 1539 | 1539 | MDRV_CPU_ADD(M68000, 10000000) // verified on real h/w |
| 1540 | 1540 | MDRV_CPU_PROGRAM_MAP(model1_snd, 0) |
| 1541 | 1541 | |
| 1542 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1543 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1544 | ||
| 1545 | 1542 | MDRV_MACHINE_RESET(model1) |
| 1546 | 1543 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 1547 | 1544 | |
| 1548 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_AFTER_VBLANK ) | |
| 1545 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_AFTER_VBLANK ) | |
| 1546 | ||
| 1547 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1548 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1549 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1549 | 1550 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) |
| 1550 | 1551 | MDRV_SCREEN_SIZE(62*8, 48*8) |
| 1551 | 1552 | MDRV_SCREEN_VISIBLE_AREA(0*8, 62*8-1, 0*8, 48*8-1) |
| 1553 | ||
| 1552 | 1554 | MDRV_PALETTE_LENGTH(8192) |
| 1553 | 1555 | |
| 1554 | 1556 | MDRV_VIDEO_START(model1) |
| r1711 | r1712 | |
| 1587 | 1589 | MDRV_CPU_CONFIG(model1_vr_tgp_config) |
| 1588 | 1590 | MDRV_CPU_PROGRAM_MAP(model1_vr_tgp_map, 0) |
| 1589 | 1591 | |
| 1590 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1591 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1592 | ||
| 1593 | 1592 | MDRV_MACHINE_RESET(model1_vr) |
| 1594 | 1593 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 1595 | 1594 | |
| 1596 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_AFTER_VBLANK ) | |
| 1595 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_AFTER_VBLANK ) | |
| 1596 | ||
| 1597 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1598 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1599 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1597 | 1600 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) |
| 1598 | 1601 | MDRV_SCREEN_SIZE(62*8, 48*8) |
| 1599 | 1602 | MDRV_SCREEN_VISIBLE_AREA(0*8, 62*8-1, 0*8, 48*8-1) |
| 1603 | ||
| 1600 | 1604 | MDRV_PALETTE_LENGTH(8192) |
| 1601 | 1605 | |
| 1602 | 1606 | MDRV_VIDEO_START(model1) |
| r1711 | r1712 | |
|---|---|---|
| 898 | 898 | MDRV_CPU_IO_MAP(namco_54xx_map_io,0) |
| 899 | 899 | |
| 900 | 900 | MDRV_WATCHDOG_VBLANK_INIT(16) // 128V clocks the same as VBLANK |
| 901 | MDRV_SCREEN_REFRESH_RATE(60.606060) | |
| 902 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 901 | ||
| 903 | 902 | MDRV_INTERLEAVE(100) /* some interleaving */ |
| 904 | 903 | |
| 905 | 904 | MDRV_MACHINE_RESET(polepos) |
| 906 | 905 | MDRV_NVRAM_HANDLER(generic_1fill) |
| 907 | 906 | |
| 908 | 907 | /* video hardware */ |
| 909 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 908 | MDRV_SCREEN_ADD("main", RASTER) | |
| 909 | MDRV_SCREEN_REFRESH_RATE(60.606060) | |
| 910 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 910 | 911 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 911 | 912 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 912 | 913 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 914 | ||
| 913 | 915 | MDRV_GFXDECODE(polepos) |
| 914 | 916 | MDRV_PALETTE_LENGTH(0x0f00) |
| 915 | 917 |
| r1711 | r1712 | |
|---|---|---|
| 2609 | 2609 | { |
| 2610 | 2610 | if (channel==1) |
| 2611 | 2611 | { |
| 2612 | sound_type type = Machine-> | |
| 2612 | sound_type type = Machine->config->sound[0].type; | |
| 2613 | 2613 | sndti_set_output_gain(type, 0, 0, percent / 100.0); |
| 2614 | 2614 | sndti_set_output_gain(type, 1, 0, percent / 100.0); |
| 2615 | 2615 | sndti_set_output_gain(type, 2, 0, percent / 100.0); |
| r1711 | r1712 | |
| 2646 | 2646 | MDRV_CPU_ADD(Z80, 4000000) /* 4 MHz */ |
| 2647 | 2647 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 2648 | 2648 | |
| 2649 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2650 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 2651 | 2649 | MDRV_INTERLEAVE(10) |
| 2652 | 2650 | |
| 2653 | 2651 | /* video hardware */ |
| 2654 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2652 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2653 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2654 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2655 | 2655 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2656 | 2656 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 2657 | 2657 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 30*8-1) |
| 2658 | ||
| 2658 | 2659 | MDRV_GFXDECODE(taito_b) |
| 2659 | 2660 | MDRV_PALETTE_LENGTH(4096) |
| 2660 | 2661 | |
| r1711 | r1712 | |
| 2683 | 2684 | MDRV_CPU_ADD(Z80, 4000000) /* 4 MHz */ |
| 2684 | 2685 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 2685 | 2686 | |
| 2686 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2687 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 2688 | 2687 | MDRV_INTERLEAVE(10) |
| 2689 | 2688 | |
| 2690 | 2689 | /* video hardware */ |
| 2691 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2690 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2691 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2692 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2692 | 2693 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2693 | 2694 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 2694 | 2695 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 30*8-1) |
| 2696 | ||
| 2695 | 2697 | MDRV_GFXDECODE(taito_b) |
| 2696 | 2698 | MDRV_PALETTE_LENGTH(4096) |
| 2697 | 2699 | |
| r1711 | r1712 | |
| 2720 | 2722 | MDRV_CPU_ADD(Z80, 4000000) /* 4 MHz */ |
| 2721 | 2723 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 2722 | 2724 | |
| 2723 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2724 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 2725 | 2725 | MDRV_INTERLEAVE(10) |
| 2726 | 2726 | |
| 2727 | 2727 | /* video hardware */ |
| 2728 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2728 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2729 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2730 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2729 | 2731 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2730 | 2732 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 2731 | 2733 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 30*8-1) |
| 2734 | ||
| 2732 | 2735 | MDRV_GFXDECODE(taito_b) |
| 2733 | 2736 | MDRV_PALETTE_LENGTH(4096) |
| 2734 | 2737 | |
| r1711 | r1712 | |
| 2757 | 2760 | MDRV_CPU_ADD(Z80, 4000000) /* 4 MHz */ |
| 2758 | 2761 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 2759 | 2762 | |
| 2760 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2761 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 2762 | 2763 | MDRV_INTERLEAVE(10) |
| 2763 | 2764 | |
| 2764 | 2765 | /* video hardware */ |
| 2765 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2766 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2767 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2768 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2766 | 2769 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2767 | 2770 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 2768 | 2771 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 30*8-1) |
| 2772 | ||
| 2769 | 2773 | MDRV_GFXDECODE(taito_b) |
| 2770 | 2774 | MDRV_PALETTE_LENGTH(4096) |
| 2771 | 2775 | |
| r1711 | r1712 | |
| 2793 | 2797 | MDRV_CPU_ADD(Z80, 4000000) /* 4 MHz */ |
| 2794 | 2798 | MDRV_CPU_PROGRAM_MAP(masterw_sound_readmem,masterw_sound_writemem) |
| 2795 | 2799 | |
| 2796 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2797 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 2798 | 2800 | MDRV_INTERLEAVE(10) |
| 2799 | 2801 | |
| 2800 | 2802 | /* video hardware */ |
| 2801 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2803 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2804 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2805 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2802 | 2806 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2803 | 2807 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 2804 | 2808 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 30*8-1) |
| 2809 | ||
| 2805 | 2810 | MDRV_GFXDECODE(taito_b) |
| 2806 | 2811 | MDRV_PALETTE_LENGTH(4096) |
| 2807 | 2812 | |
| r1711 | r1712 | |
| 2830 | 2835 | MDRV_CPU_ADD(Z80, 4000000) /* 4 MHz */ |
| 2831 | 2836 | MDRV_CPU_PROGRAM_MAP(viofight_sound_readmem, viofight_sound_writemem) |
| 2832 | 2837 | |
| 2833 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2834 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 2835 | 2838 | MDRV_INTERLEAVE(10) |
| 2836 | 2839 | |
| 2837 | 2840 | /* video hardware */ |
| 2838 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2841 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2842 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2843 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2839 | 2844 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2840 | 2845 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 2841 | 2846 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 30*8-1) |
| 2847 | ||
| 2842 | 2848 | MDRV_GFXDECODE(taito_b) |
| 2843 | 2849 | MDRV_PALETTE_LENGTH(4096) |
| 2844 | 2850 | |
| r1711 | r1712 | |
| 2866 | 2872 | static MACHINE_DRIVER_START( rambo3 ) |
| 2867 | 2873 | |
| 2868 | 2874 | /* basic machine hardware */ |
| 2869 | MDRV_CPU_ADD(M68000, | |
| 2875 | MDRV_CPU_ADD(M68000, XTAL_24MHz/2) /* verified on pcb */ | |
| 2870 | 2876 | MDRV_CPU_PROGRAM_MAP(rambo3_readmem,rambo3_writemem) |
| 2871 | 2877 | MDRV_CPU_VBLANK_INT(rambo3_interrupt,1) |
| 2872 | 2878 | |
| 2873 | MDRV_CPU_ADD(Z80, 4 | |
| 2879 | MDRV_CPU_ADD(Z80, XTAL_24MHz/6 | |
| 2874 | 2880 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 2875 | 2881 | |
| 2876 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2877 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 2878 | 2882 | MDRV_INTERLEAVE(10) |
| 2879 | 2883 | |
| 2880 | 2884 | /* video hardware */ |
| 2881 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2885 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2886 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2887 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2882 | 2888 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2883 | 2889 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 2884 | 2890 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 30*8-1) |
| 2891 | ||
| 2885 | 2892 | MDRV_GFXDECODE(rambo3) |
| 2886 | 2893 | MDRV_PALETTE_LENGTH(4096) |
| 2887 | 2894 | |
| r1711 | r1712 | |
| 2892 | 2899 | /* sound hardware */ |
| 2893 | 2900 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 2894 | 2901 | |
| 2895 | MDRV_SOUND_ADD(YM2610, | |
| 2902 | MDRV_SOUND_ADD(YM2610, XTAL_16MHz/2) /* verified on pcb */ | |
| 2896 | 2903 | MDRV_SOUND_CONFIG(ym2610_interface_crimec) |
| 2897 | 2904 | MDRV_SOUND_ROUTE(0, "mono", 0.25) |
| 2898 | 2905 | MDRV_SOUND_ROUTE(1, "mono", 1.0) |
| r1711 | r1712 | |
| 2903 | 2910 | static MACHINE_DRIVER_START( rambo3a ) |
| 2904 | 2911 | |
| 2905 | 2912 | /* basic machine hardware */ |
| 2906 | MDRV_CPU_ADD(M68000, | |
| 2913 | MDRV_CPU_ADD(M68000, XTAL_24MHz/2) /* verified on pcb */ | |
| 2907 | 2914 | MDRV_CPU_PROGRAM_MAP(rambo3_readmem,rambo3_writemem) |
| 2908 | 2915 | MDRV_CPU_VBLANK_INT(rambo3_interrupt,1) |
| 2909 | 2916 | |
| 2910 | MDRV_CPU_ADD(Z80, 4 | |
| 2917 | MDRV_CPU_ADD(Z80, XTAL_24MHz/6 | |
| 2911 | 2918 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 2912 | 2919 | |
| 2913 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2914 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 2915 | 2920 | MDRV_INTERLEAVE(10) |
| 2916 | 2921 | |
| 2917 | 2922 | /* video hardware */ |
| 2918 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2923 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2924 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2925 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2919 | 2926 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2920 | 2927 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 2921 | 2928 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 30*8-1) |
| 2929 | ||
| 2922 | 2930 | MDRV_GFXDECODE(taito_b) |
| 2923 | 2931 | MDRV_PALETTE_LENGTH(4096) |
| 2924 | 2932 | |
| r1711 | r1712 | |
| 2929 | 2937 | /* sound hardware */ |
| 2930 | 2938 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 2931 | 2939 | |
| 2932 | MDRV_SOUND_ADD(YM2610, | |
| 2940 | MDRV_SOUND_ADD(YM2610, XTAL_16MHz/2) /* verified on pcb */ | |
| 2933 | 2941 | MDRV_SOUND_CONFIG(ym2610_interface_crimec) |
| 2934 | 2942 | MDRV_SOUND_ROUTE(0, "mono", 0.25) |
| 2935 | 2943 | MDRV_SOUND_ROUTE(1, "mono", 1.0) |
| r1711 | r1712 | |
| 2947 | 2955 | MDRV_CPU_ADD(Z80, 4000000) /* 4 MHz */ |
| 2948 | 2956 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 2949 | 2957 | |
| 2950 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2951 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 2952 | 2958 | MDRV_INTERLEAVE(10) |
| 2953 | 2959 | |
| 2954 | 2960 | MDRV_MACHINE_RESET(mb87078) |
| 2955 | 2961 | MDRV_NVRAM_HANDLER(taito_b) |
| 2956 | 2962 | |
| 2957 | 2963 | /* video hardware */ |
| 2958 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2964 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2965 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2966 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2959 | 2967 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2960 | 2968 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 2961 | 2969 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 30*8-1) |
| 2970 | ||
| 2962 | 2971 | MDRV_GFXDECODE(taito_b) |
| 2963 | 2972 | MDRV_PALETTE_LENGTH(4096) |
| 2964 | 2973 | |
| r1711 | r1712 | |
| 2987 | 2996 | MDRV_CPU_ADD(Z80, 4000000) /* 4 MHz */ |
| 2988 | 2997 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 2989 | 2998 | |
| 2990 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2991 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 2992 | 2999 | MDRV_INTERLEAVE(10) |
| 2993 | 3000 | |
| 2994 | 3001 | MDRV_MACHINE_RESET(mb87078) |
| 2995 | 3002 | MDRV_NVRAM_HANDLER(taito_b) |
| 2996 | 3003 | |
| 2997 | 3004 | /* video hardware */ |
| 2998 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 3005 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3006 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3007 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2999 | 3008 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3000 | 3009 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 3001 | 3010 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 30*8-1) |
| 3011 | ||
| 3002 | 3012 | MDRV_GFXDECODE(taito_b) |
| 3003 | 3013 | MDRV_PALETTE_LENGTH(4096) |
| 3004 | 3014 | |
| r1711 | r1712 | |
| 3027 | 3037 | MDRV_CPU_ADD(Z80, 4000000) /* 4 MHz */ |
| 3028 | 3038 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 3029 | 3039 | |
| 3030 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3031 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 3032 | 3040 | MDRV_INTERLEAVE(10) |
| 3033 | 3041 | |
| 3034 | 3042 | /* video hardware */ |
| 3035 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 3043 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3044 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3045 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 3036 | 3046 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3037 | 3047 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 3038 | 3048 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 30*8-1) |
| 3049 | ||
| 3039 | 3050 | MDRV_GFXDECODE(taito_b) |
| 3040 | 3051 | MDRV_PALETTE_LENGTH(4096) |
| 3041 | 3052 | |
| r1711 | r1712 | |
| 3064 | 3075 | MDRV_CPU_ADD(Z80, 4000000) /* 4 MHz */ |
| 3065 | 3076 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 3066 | 3077 | |
| 3067 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3068 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 3069 | 3078 | MDRV_INTERLEAVE(10) |
| 3070 | 3079 | |
| 3071 | 3080 | MDRV_MACHINE_RESET(mb87078) |
| 3072 | 3081 | MDRV_NVRAM_HANDLER(taito_b) |
| 3073 | 3082 | |
| 3074 | 3083 | /* video hardware */ |
| 3075 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 3084 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3085 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3086 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 3076 | 3087 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3077 | 3088 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 3078 | 3089 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 30*8-1) |
| 3090 | ||
| 3079 | 3091 | MDRV_GFXDECODE(taito_b) |
| 3080 | 3092 | MDRV_PALETTE_LENGTH(4096) |
| 3081 | 3093 | |
| r1711 | r1712 | |
| 3104 | 3116 | MDRV_CPU_ADD(Z80, 6000000) /* 6 MHz verified */ |
| 3105 | 3117 | MDRV_CPU_PROGRAM_MAP(viofight_sound_readmem, viofight_sound_writemem) |
| 3106 | 3118 | |
| 3107 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3108 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 3109 | 3119 | MDRV_INTERLEAVE(10) |
| 3110 | 3120 | |
| 3111 | 3121 | /* video hardware */ |
| 3112 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 3122 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3123 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3124 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 3113 | 3125 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3114 | 3126 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 3115 | 3127 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 30*8-1) |
| 3128 | ||
| 3116 | 3129 | MDRV_GFXDECODE(taito_b) |
| 3117 | 3130 | MDRV_PALETTE_LENGTH(4096) |
| 3118 | 3131 | |
| r1711 | r1712 | |
| 3145 | 3158 | MDRV_CPU_ADD(Z80, 4000000) /* 4 MHz */ |
| 3146 | 3159 | MDRV_CPU_PROGRAM_MAP(masterw_sound_readmem,masterw_sound_writemem) |
| 3147 | 3160 | |
| 3148 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3149 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 3150 | 3161 | MDRV_INTERLEAVE(10) |
| 3151 | 3162 | |
| 3152 | 3163 | /* video hardware */ |
| 3153 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 3164 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3165 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3166 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 3154 | 3167 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3155 | 3168 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 3156 | 3169 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 30*8-1) |
| 3170 | ||
| 3157 | 3171 | MDRV_GFXDECODE(taito_b) |
| 3158 | 3172 | MDRV_PALETTE_LENGTH(4096) |
| 3159 | 3173 | |
| r1711 | r1712 | |
| 3183 | 3197 | MDRV_CPU_ADD(Z80, 4000000) /* 4 MHz */ |
| 3184 | 3198 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 3185 | 3199 | |
| 3186 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3187 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 3188 | 3200 | MDRV_INTERLEAVE(10) |
| 3189 | 3201 | |
| 3190 | 3202 | /* video hardware */ |
| 3191 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 3203 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3204 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3205 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 3192 | 3206 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3193 | 3207 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 3194 | 3208 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 30*8-1) |
| 3209 | ||
| 3195 | 3210 | MDRV_GFXDECODE(taito_b) |
| 3196 | 3211 | MDRV_PALETTE_LENGTH(4096) |
| 3197 | 3212 | |
| r1711 | r1712 | |
| 3220 | 3235 | MDRV_CPU_ADD(Z80, 4000000) /* 4 MHz */ |
| 3221 | 3236 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 3222 | 3237 | |
| 3223 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3224 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 3225 | 3238 | MDRV_INTERLEAVE(10) |
| 3226 | 3239 | |
| 3227 | 3240 | /* video hardware */ |
| 3228 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 3241 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3242 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3243 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 3229 | 3244 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3230 | 3245 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 3231 | 3246 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 30*8-1) |
| 3247 | ||
| 3232 | 3248 | MDRV_GFXDECODE(taito_b) |
| 3233 | 3249 | MDRV_PALETTE_LENGTH(4096) |
| 3234 | 3250 | |
| r1711 | r1712 | |
| 3266 | 3282 | MDRV_CPU_ADD(Z80, 4000000) /* 4 MHz */ |
| 3267 | 3283 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 3268 | 3284 | |
| 3269 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3270 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 3271 | 3285 | MDRV_INTERLEAVE(10) |
| 3272 | 3286 | |
| 3273 | 3287 | /* video hardware */ |
| 3274 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 3288 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3289 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3290 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 3275 | 3291 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3276 | 3292 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 3277 | 3293 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 30*8-1) |
| 3294 | ||
| 3278 | 3295 | MDRV_GFXDECODE(taito_b) |
| 3279 | 3296 | MDRV_PALETTE_LENGTH(4096) |
| 3280 | 3297 | |
| r1711 | r1712 | |
| 3310 | 3327 | MDRV_CPU_ADD(Z80, 4000000) /* 4 MHz */ |
| 3311 | 3328 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 3312 | 3329 | |
| 3313 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3314 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 3315 | 3330 | MDRV_INTERLEAVE(10) |
| 3316 | 3331 | |
| 3317 | 3332 | /* video hardware */ |
| 3318 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 3333 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3334 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3335 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 3319 | 3336 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3320 | 3337 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 3321 | 3338 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 30*8-1) |
| 3339 | ||
| 3322 | 3340 | MDRV_GFXDECODE(taito_b) |
| 3323 | 3341 | MDRV_PALETTE_LENGTH(4096) |
| 3324 | 3342 |
| r1711 | r1712 | |
|---|---|---|
| 264 | 264 | MDRV_CPU_ADD(M6809, MASTER_CLOCK/12) // verified on pcb |
| 265 | 265 | MDRV_CPU_PROGRAM_MAP(slave_map, 0) |
| 266 | 266 | |
| 267 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 268 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 269 | 267 | MDRV_INTERLEAVE(100) |
| 270 | 268 | |
| 271 | 269 | MDRV_MACHINE_RESET(jackal) |
| 272 | 270 | |
| 273 | 271 | // video hardware |
| 274 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 272 | ||
| 273 | MDRV_SCREEN_ADD("main", RASTER) | |
| 274 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 275 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 275 | 276 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 276 | 277 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 277 | 278 | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 2*8, 30*8-1) |
| 279 | ||
| 278 | 280 | MDRV_GFXDECODE(jackal) |
| 279 | 281 | MDRV_PALETTE_LENGTH(256*16+16*16+16*16) |
| 280 | 282 |
| r1711 | r1712 | |
|---|---|---|
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | |
| 23 | static void fill_palette(running_machine *machine, int team) | |
| 24 | { | |
| 25 | if (team) | |
| 26 | { | |
| 27 | palette_set_color(machine,0, MAKE_RGB(0xff, 0x00, 0x00)); /* red */ | |
| 28 | palette_set_color(machine,2, MAKE_RGB(0xff, 0x00, 0x00)); /* red */ | |
| 29 | palette_set_color(machine,4, MAKE_RGB(0xff, 0x00, 0x00)); /* red */ | |
| 30 | palette_set_color(machine,6, MAKE_RGB(0xff, 0x00, 0x00)); /* red */ | |
| 31 | palette_set_color(machine,1, MAKE_RGB(0x00, 0x00, 0xff)); /* blue */ | |
| 32 | palette_set_color(machine,3, MAKE_RGB(0x00, 0x00, 0xff)); /* blue */ | |
| 33 | palette_set_color(machine,5, MAKE_RGB(0x00, 0x00, 0xff)); /* blue */ | |
| 34 | palette_set_color(machine,7, MAKE_RGB(0x00, 0x00, 0xff)); /* blue */ | |
| 35 | } | |
| 36 | else | |
| 37 | { | |
| 38 | palette_set_color(machine,0, MAKE_RGB(0xff, 0x00, 0x00)); /* red */ | |
| 39 | palette_set_color(machine,1, MAKE_RGB(0x00, 0x00, 0xff)); /* blue */ | |
| 40 | palette_set_color(machine,2, MAKE_RGB(0xff, 0xff, 0x00)); /* yellow */ | |
| 41 | palette_set_color(machine,3, MAKE_RGB(0x00, 0xff, 0x00)); /* green */ | |
| 42 | palette_set_color(machine,4, MAKE_RGB(0xff, 0x00, 0xff)); /* magenta */ | |
| 43 | palette_set_color(machine,5, MAKE_RGB(0xe0, 0xc0, 0x70)); /* puce */ | |
| 44 | palette_set_color(machine,6, MAKE_RGB(0x00, 0xff, 0xff)); /* cyan */ | |
| 45 | palette_set_color(machine,7, MAKE_RGB(0xff, 0xaa, 0xaa)); /* pink */ | |
| 46 | } | |
| 47 | } | |
| 48 | ||
| 49 | ||
| 50 | static PALETTE_INIT( tank8 ) | |
| 51 | { | |
| 52 | int i; | |
| 53 | ||
| 54 | fill_palette(machine,0); | |
| 55 | ||
| 56 | palette_set_color(machine, 8, MAKE_RGB(0x00, 0x00, 0x00)); | |
| 57 | palette_set_color(machine, 9, MAKE_RGB(0xff, 0xff, 0xff)); | |
| 58 | ||
| 59 | for (i = 0; i < 8; i++) | |
| 60 | { | |
| 61 | colortable[2 * i + 0] = 8; | |
| 62 | colortable[2 * i + 1] = i; | |
| 63 | } | |
| 64 | ||
| 65 | colortable[16] = 8; | |
| 66 | colortable[17] = 8; | |
| 67 | colortable[18] = 8; | |
| 68 | colortable[19] = 9; | |
| 69 | } | |
| 70 | ||
| 71 | ||
| 72 | 23 | static MACHINE_RESET( tank8 ) |
| 73 | 24 | { |
| 74 | 25 | collision_index = 0; |
| r1711 | r1712 | |
| 86 | 37 | } |
| 87 | 38 | |
| 88 | 39 | |
| 89 | static WRITE8_HANDLER( tank8_team_w ) | |
| 90 | { | |
| 91 | fill_palette(Machine,~data & 1); | |
| 92 | } | |
| 93 | ||
| 94 | ||
| 95 | 40 | static WRITE8_HANDLER( tank8_int_reset_w ) |
| 96 | 41 | { |
| 97 | 42 | collision_index &= ~0x3f; |
| r1711 | r1712 | |
| 179 | 124 | AM_RANGE(0x1d02, 0x1d02) AM_WRITE(tank8_explosion_w) |
| 180 | 125 | AM_RANGE(0x1d03, 0x1d03) AM_WRITE(tank8_bugle_w) |
| 181 | 126 | AM_RANGE(0x1d04, 0x1d04) AM_WRITE(tank8_bug_w) |
| 182 | AM_RANGE(0x1d05, 0x1d05) AM_WRITE(tank8_team | |
| 127 | AM_RANGE(0x1d05, 0x1d05) AM_WRITE(MWA8_RAM) AM_BASE(&tank8_team | |
| 183 | 128 | AM_RANGE(0x1d06, 0x1d06) AM_WRITE(tank8_attract_w) |
| 184 | 129 | AM_RANGE(0x1e00, 0x1e07) AM_WRITE(tank8_motor_w) |
| 185 | 130 | |
| r1711 | r1712 | |
| 377 | 322 | static GFXDECODE_START( tank8 ) |
| 378 | 323 | GFXDECODE_ENTRY( REGION_GFX1, 0, tile_layout_1, 0, 10 ) |
| 379 | 324 | GFXDECODE_ENTRY( REGION_GFX1, 0, tile_layout_2, 0, 10 ) |
| 380 | GFXDECODE_ENTRY( REGION_GFX2, 0, tank_layout, 0, 8 ) | |
| 381 | GFXDECODE_ENTRY( REGION_GFX3, 0, tank_layout, 0, 8 ) | |
| 325 | GFXDECODE_ENTRY( REGION_GFX2, 0, tank_layout, 0, 8 ) | |
| 326 | GFXDECODE_ENTRY( REGION_GFX3, 0, tank_layout, 0, 8 ) | |
| 382 | 327 | GFXDECODE_END |
| 383 | 328 | |
| 384 | 329 | |
| r1711 | r1712 | |
| 388 | 333 | MDRV_CPU_ADD(M6800, 11055000 / 10) /* ? */ |
| 389 | 334 | MDRV_CPU_PROGRAM_MAP(tank8_cpu_map, 0) |
| 390 | 335 | |
| 391 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 392 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(30 * 1000000 / 15681)) | |
| 393 | 336 | MDRV_MACHINE_RESET(tank8) |
| 394 | 337 | |
| 395 | 338 | /* video hardware */ |
| 396 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_AFTER_VBLANK) | |
| 339 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_AFTER_VBLANK) | |
| 340 | ||
| 341 | MDRV_SCREEN_ADD("main", RASTER) | |
| 342 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 343 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(30 * 1000000 / 15681)) | |
| 397 | 344 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 398 | 345 | MDRV_SCREEN_SIZE(512, 524) |
| 399 | 346 | MDRV_SCREEN_VISIBLE_AREA(16, 495, 0, 463) |
| 347 | ||
| 400 | 348 | MDRV_GFXDECODE(tank8) |
| 401 | MDRV_PALETTE_LENGTH(10) | |
| 402 | MDRV_COLORTABLE_LENGTH(20) | |
| 349 | MDRV_PALETTE_LENGTH(20) | |
| 403 | 350 | |
| 404 | 351 | MDRV_PALETTE_INIT(tank8) |
| 405 | 352 | MDRV_VIDEO_START(tank8) |
| r1711 | r1712 | |
|---|---|---|
| 638 | 638 | MDRV_CPU_PROGRAM_MAP(viper_map, 0) |
| 639 | 639 | MDRV_CPU_VBLANK_INT(viper_vblank, 1) |
| 640 | 640 | |
| 641 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 642 | ||
| 643 | 641 | MDRV_MACHINE_RESET(viper) |
| 644 | 642 | |
| 645 | 643 | MDRV_NVRAM_HANDLER(timekeeper_0) |
| 646 | 644 | |
| 647 | 645 | /* video hardware */ |
| 648 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 646 | MDRV_SCREEN_ADD("main", RASTER) | |
| 647 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 649 | 648 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 650 | 649 | MDRV_SCREEN_SIZE(800, 600) |
| 651 | 650 | MDRV_SCREEN_VISIBLE_AREA(0, 799, 0, 599) |
| 651 | ||
| 652 | 652 | MDRV_PALETTE_LENGTH(65536) |
| 653 | 653 | |
| 654 | 654 | MDRV_VIDEO_START(viper) |
| r1711 | r1712 | |
|---|---|---|
| 134 | 134 | MDRV_CPU_IO_MAP(pce_io, 0) |
| 135 | 135 | MDRV_CPU_VBLANK_INT(pce_interrupt, VDC_LPF) |
| 136 | 136 | |
| 137 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 138 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 139 | 137 | MDRV_INTERLEAVE(1) |
| 140 | 138 | |
| 141 | 139 | MDRV_CPU_ADD(8085A, 18000000/3) |
| r1711 | r1712 | |
| 147 | 145 | MDRV_CPU_IO_MAP(paranoia_z80_io_map,0) |
| 148 | 146 | |
| 149 | 147 | /* video hardware */ |
| 150 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 148 | ||
| 149 | MDRV_SCREEN_ADD("main", RASTER) | |
| 151 | 150 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 152 | MDRV_SCREEN_ADD("main",0) | |
| 153 | 151 | MDRV_SCREEN_RAW_PARAMS(PCE_MAIN_CLOCK/2, VDC_WPF, 70, 70 + 512 + 32, VDC_LPF, 14, 14+242) |
| 152 | ||
| 154 | 153 | /* MDRV_GFXDECODE( pce_gfxdecodeinfo ) */ |
| 155 | 154 | MDRV_PALETTE_LENGTH(1024) |
| 156 | 155 | MDRV_PALETTE_INIT( vce ) |
| 157 | MDRV_COLORTABLE_LENGTH(1024) | |
| 158 | 156 | |
| 159 | 157 | MDRV_VIDEO_START( pce ) |
| 160 | 158 | MDRV_VIDEO_UPDATE( pce ) |
| r1711 | r1712 | |
|---|---|---|
| 228 | 228 | MDRV_MACHINE_RESET(mw8080bw) |
| 229 | 229 | |
| 230 | 230 | /* video hardware */ |
| 231 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 232 | 231 | MDRV_VIDEO_UPDATE(mw8080bw) |
| 233 | 232 | |
| 234 | MDRV_SCREEN_ADD("main", | |
| 233 | MDRV_SCREEN_ADD("main", RASTER) | |
| 235 | 234 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 236 | 235 | MDRV_SCREEN_RAW_PARAMS(MW8080BW_PIXEL_CLOCK, MW8080BW_HTOTAL, MW8080BW_HBEND, MW8080BW_HPIXCOUNT, MW8080BW_VTOTAL, MW8080BW_VBEND, MW8080BW_VBSTART) |
| 237 | 236 |
| r1711 | r1712 | |
|---|---|---|
| 1077 | 1077 | MDRV_CPU_IO_MAP(mcu_port_map,0) |
| 1078 | 1078 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) /* ??? */ |
| 1079 | 1079 | |
| 1080 | MDRV_SCREEN_REFRESH_RATE(60.606060) | |
| 1081 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1082 | 1080 | MDRV_INTERLEAVE(800) /* heavy interleaving needed to avoid hangs in rthunder */ |
| 1083 | 1081 | |
| 1084 | 1082 | MDRV_MACHINE_RESET(namco86) |
| 1085 | 1083 | |
| 1086 | 1084 | /* video hardware */ |
| 1087 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1085 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1086 | MDRV_SCREEN_REFRESH_RATE(60.606060) | |
| 1087 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1088 | 1088 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1089 | 1089 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 1090 | 1090 | MDRV_SCREEN_VISIBLE_AREA(3 + 8*8, 3 + 44*8-1, 2*8, 30*8-1) |
| 1091 | ||
| 1091 | 1092 | MDRV_GFXDECODE(namcos86) |
| 1092 | 1093 | MDRV_PALETTE_LENGTH(4096) |
| 1093 | 1094 |
| r1711 | r1712 | |
|---|---|---|
| 1561 | 1561 | MDRV_CPU_IO_MAP(hardhead_sound_readport,hardhead_sound_writeport) |
| 1562 | 1562 | MDRV_CPU_VBLANK_INT(irq0_line_hold,4) /* No NMI */ |
| 1563 | 1563 | |
| 1564 | /* video hardware */ | |
| 1565 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1564 | 1566 | MDRV_SCREEN_REFRESH_RATE(60) |
| 1565 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1566 | ||
| 1567 | /* video hardware */ | |
| 1568 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1567 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1569 | 1568 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1570 | 1569 | MDRV_SCREEN_SIZE(256, 256) |
| 1571 | 1570 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0+16, 256-16-1) |
| 1571 | ||
| 1572 | 1572 | MDRV_GFXDECODE(suna8) |
| 1573 | 1573 | MDRV_PALETTE_LENGTH(256) |
| 1574 | 1574 | |
| r1711 | r1712 | |
| 1616 | 1616 | MDRV_CPU_IO_MAP(rranger_sound_readport,rranger_sound_writeport) |
| 1617 | 1617 | MDRV_CPU_VBLANK_INT(irq0_line_hold,4) /* NMI = retn */ |
| 1618 | 1618 | |
| 1619 | /* video hardware */ | |
| 1620 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1619 | 1621 | MDRV_SCREEN_REFRESH_RATE(60) |
| 1620 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1621 | ||
| 1622 | /* video hardware */ | |
| 1623 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1622 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1624 | 1623 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1625 | 1624 | MDRV_SCREEN_SIZE(256, 256) |
| 1626 | 1625 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0+16, 256-16-1) |
| 1626 | ||
| 1627 | 1627 | MDRV_GFXDECODE(suna8) |
| 1628 | 1628 | MDRV_PALETTE_LENGTH(256) |
| 1629 | 1629 | |
| r1711 | r1712 | |
| 1679 | 1679 | MDRV_CPU_PROGRAM_MAP(brickzn_pcm_readmem,brickzn_pcm_writemem) |
| 1680 | 1680 | MDRV_CPU_IO_MAP(brickzn_pcm_readport,brickzn_pcm_writeport) |
| 1681 | 1681 | |
| 1682 | /* video hardware */ | |
| 1683 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1682 | 1684 | MDRV_SCREEN_REFRESH_RATE(60) |
| 1683 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) // we're using IPT_VBLANK | |
| 1684 | ||
| 1685 | /* video hardware */ | |
| 1686 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1685 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) // we're using IPT_VBLANK | |
| 1687 | 1686 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1688 | 1687 | MDRV_SCREEN_SIZE(256, 256) |
| 1689 | 1688 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0+16, 256-16-1) |
| 1689 | ||
| 1690 | 1690 | MDRV_GFXDECODE(suna8) |
| 1691 | 1691 | MDRV_PALETTE_LENGTH(512) |
| 1692 | 1692 | |
| r1711 | r1712 | |
| 1778 | 1778 | MDRV_CPU_IO_MAP(hardhead_sound_readport,hardhead_sound_writeport) |
| 1779 | 1779 | MDRV_CPU_VBLANK_INT(irq0_line_hold,4) /* No NMI */ |
| 1780 | 1780 | |
| 1781 | /* video hardware */ | |
| 1782 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1781 | 1783 | MDRV_SCREEN_REFRESH_RATE(60) |
| 1782 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 1783 | ||
| 1784 | /* video hardware */ | |
| 1785 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1784 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 1786 | 1785 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1787 | 1786 | MDRV_SCREEN_SIZE(256, 256) |
| 1788 | 1787 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0+16, 256-16-1) |
| 1788 | ||
| 1789 | 1789 | MDRV_GFXDECODE(suna8) |
| 1790 | 1790 | MDRV_PALETTE_LENGTH(256) |
| 1791 | 1791 | |
| r1711 | r1712 | |
| 1837 | 1837 | MDRV_CPU_IO_MAP(hardhead_sound_readport,hardhead_sound_writeport) |
| 1838 | 1838 | MDRV_CPU_VBLANK_INT(irq0_line_hold,4) /* No NMI */ |
| 1839 | 1839 | |
| 1840 | /* video hardware */ | |
| 1841 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1840 | 1842 | MDRV_SCREEN_REFRESH_RATE(60) |
| 1841 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1842 | ||
| 1843 | /* video hardware */ | |
| 1844 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1843 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1845 | 1844 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1846 | 1845 | MDRV_SCREEN_SIZE(256, 256) |
| 1847 | 1846 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0+16, 256-16-1) |
| 1847 | ||
| 1848 | 1848 | MDRV_GFXDECODE(suna8) |
| 1849 | 1849 | MDRV_PALETTE_LENGTH(512) |
| 1850 | 1850 |
| r1711 | r1712 | |
|---|---|---|
| 281 | 281 | /* audio CPU */ |
| 282 | 282 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 283 | 283 | |
| 284 | /* video hardware */ | |
| 285 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 286 | ||
| 287 | MDRV_SCREEN_ADD("main", RASTER) | |
| 284 | 288 | MDRV_SCREEN_REFRESH_RATE(58) |
| 285 | 289 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529)) |
| 286 | ||
| 287 | /* video hardware */ | |
| 288 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 289 | 290 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 290 | 291 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 291 | 292 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 1303 | 1303 | MDRV_CPU_PROGRAM_MAP(sound_map,0) |
| 1304 | 1304 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,16) |
| 1305 | 1305 | |
| 1306 | /* video hardware */ | |
| 1307 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1306 | 1308 | MDRV_SCREEN_REFRESH_RATE(57) |
| 1307 | 1309 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(3072)) |
| 1308 | ||
| 1309 | /* video hardware */ | |
| 1310 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1311 | 1310 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1312 | 1311 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 1313 | 1312 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 1313 | ||
| 1314 | 1314 | MDRV_GFXDECODE(btime) |
| 1315 | 1315 | MDRV_PALETTE_LENGTH(16) |
| 1316 | 1316 |
| r1711 | r1712 | |
|---|---|---|
| 678 | 678 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 679 | 679 | MDRV_CPU_VBLANK_INT(qdrmfgp_interrupt, 2) |
| 680 | 680 | |
| 681 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 682 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 683 | ||
| 684 | 681 | MDRV_MACHINE_START(qdrmfgp) |
| 685 | 682 | MDRV_MACHINE_RESET(qdrmfgp) |
| 686 | 683 | MDRV_NVRAM_HANDLER(generic_1fill) |
| 687 | 684 | |
| 688 | 685 | /* video hardware */ |
| 689 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 686 | MDRV_SCREEN_ADD("main", RASTER) | |
| 687 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 688 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 690 | 689 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 691 | 690 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 692 | 691 | MDRV_SCREEN_VISIBLE_AREA(40, 40+384-1, 16, 16+224-1) |
| 692 | ||
| 693 | 693 | MDRV_PALETTE_LENGTH(2048) |
| 694 | 694 | |
| 695 | 695 | MDRV_VIDEO_START(qdrmfgp) |
| r1711 | r1712 | |
| 711 | 711 | MDRV_CPU_PROGRAM_MAP(gp2_readmem,gp2_writemem) |
| 712 | 712 | MDRV_CPU_VBLANK_INT(qdrmfgp2_interrupt, 1) |
| 713 | 713 | |
| 714 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 715 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 716 | ||
| 717 | 714 | MDRV_MACHINE_START(qdrmfgp) |
| 718 | 715 | MDRV_MACHINE_RESET(qdrmfgp2) |
| 719 | 716 | MDRV_NVRAM_HANDLER(generic_1fill) |
| 720 | 717 | |
| 721 | 718 | /* video hardware */ |
| 722 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 719 | MDRV_SCREEN_ADD("main", RASTER) | |
| 720 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 721 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 723 | 722 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 724 | 723 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 725 | 724 | MDRV_SCREEN_VISIBLE_AREA(40, 40+384-1, 16, 16+224-1) |
| 725 | ||
| 726 | 726 | MDRV_PALETTE_LENGTH(2048) |
| 727 | 727 | |
| 728 | 728 | MDRV_VIDEO_START(qdrmfgp2) |
| r1711 | r1712 | |
|---|---|---|
| 3472 | 3472 | /* audio CPU */ |
| 3473 | 3473 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 3474 | 3474 | |
| 3475 | /* video hardware */ | |
| 3476 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3475 | 3477 | MDRV_SCREEN_REFRESH_RATE(60) |
| 3476 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 3477 | ||
| 3478 | /* video hardware */ | |
| 3479 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 3478 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 3480 | 3479 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3481 | 3480 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 3482 | 3481 | MDRV_SCREEN_VISIBLE_AREA(8*8, (64-8)*8-1, 2*8, 30*8-1 ) |
| 3482 | ||
| 3483 | 3483 | MDRV_GFXDECODE(cps1) |
| 3484 | 3484 | MDRV_PALETTE_LENGTH(4096) |
| 3485 | 3485 |
| r1711 | r1712 | |
|---|---|---|
| 692 | 692 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 693 | 693 | |
| 694 | 694 | /* video hardware */ |
| 695 | MDRV_SCREEN_ADD("main", RASTER) | |
| 695 | 696 | MDRV_SCREEN_REFRESH_RATE(60) |
| 696 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 697 | 697 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 698 | 698 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 699 | 699 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 4*8, 28*8-1) |
| 700 | ||
| 700 | 701 | MDRV_GFXDECODE(nova2001) |
| 701 | 702 | MDRV_PALETTE_LENGTH(0x200) |
| 702 | 703 | |
| r1711 | r1712 | |
| 732 | 733 | MDRV_MACHINE_START(ninjakun) |
| 733 | 734 | |
| 734 | 735 | /* video hardware */ |
| 736 | ||
| 737 | MDRV_SCREEN_ADD("main", RASTER) | |
| 735 | 738 | MDRV_SCREEN_REFRESH_RATE(60) |
| 736 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 737 | 739 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 738 | 740 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 739 | 741 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 4*8, 28*8-1 ) |
| 742 | ||
| 740 | 743 | MDRV_GFXDECODE(ninjakun) |
| 741 | 744 | MDRV_PALETTE_LENGTH(0x300) |
| 742 | 745 | |
| r1711 | r1712 | |
| 764 | 767 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 765 | 768 | |
| 766 | 769 | /* video hardware */ |
| 770 | MDRV_SCREEN_ADD("main", RASTER) | |
| 767 | 771 | MDRV_SCREEN_REFRESH_RATE(60) |
| 768 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 769 | 772 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 770 | 773 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 771 | 774 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 4*8, 28*8-1) |
| 775 | ||
| 772 | 776 | MDRV_GFXDECODE(pkunwar) |
| 773 | 777 | MDRV_PALETTE_LENGTH(0x200) |
| 774 | 778 | |
| r1711 | r1712 | |
| 803 | 807 | MDRV_INTERLEAVE(400) |
| 804 | 808 | |
| 805 | 809 | /* video hardware */ |
| 810 | MDRV_SCREEN_ADD("main", RASTER) | |
| 806 | 811 | MDRV_SCREEN_REFRESH_RATE(60) |
| 807 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 808 | 812 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 809 | 813 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 810 | 814 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 4*8, 28*8-1) |
| 815 | ||
| 811 | 816 | MDRV_GFXDECODE(raiders5) |
| 812 | 817 | MDRV_PALETTE_LENGTH(0x300) |
| 813 | 818 |
| r1711 | r1712 | |
|---|---|---|
| 150 | 150 | GFXDECODE_END |
| 151 | 151 | |
| 152 | 152 | |
| 153 | static const UINT16 colortable_source[] = | |
| 154 | { | |
| 155 | 0x00, 0x01, /* White on Black */ | |
| 156 | }; | |
| 157 | static PALETTE_INIT( starcrus ) | |
| 158 | { | |
| 159 | palette_set_color(machine,0,MAKE_RGB(0x00,0x00,0x00)); /* Black */ | |
| 160 | palette_set_color(machine,1,MAKE_RGB(0xff,0xff,0xff)); /* White */ | |
| 161 | memcpy(colortable,colortable_source,sizeof(colortable_source)); | |
| 162 | } | |
| 163 | ||
| 164 | 153 | static const char *const starcrus_sample_names[] = |
| 165 | 154 | { |
| 166 | 155 | "*starcrus", |
| r1711 | r1712 | |
| 186 | 175 | MDRV_CPU_IO_MAP(readport,writeport) |
| 187 | 176 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 188 | 177 | |
| 189 | MDRV_SCREEN_REFRESH_RATE(57) | |
| 190 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 191 | ||
| 192 | 178 | /* video hardware */ |
| 193 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 179 | MDRV_SCREEN_ADD("main", RASTER) | |
| 180 | MDRV_SCREEN_REFRESH_RATE(57) | |
| 181 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 194 | 182 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 195 | 183 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 196 | 184 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 32*8-1) |
| 185 | ||
| 197 | 186 | MDRV_GFXDECODE(starcrus) |
| 198 | 187 | MDRV_PALETTE_LENGTH(2) |
| 199 | MDRV_COLORTABLE_LENGTH(sizeof(colortable_source) / sizeof(colortable_source[0])) | |
| 200 | 188 | |
| 201 | MDRV_PALETTE_INIT( | |
| 189 | MDRV_PALETTE_INIT(bla | |
| 202 | 190 | MDRV_VIDEO_START(starcrus) |
| 203 | 191 | MDRV_VIDEO_UPDATE(starcrus) |
| 204 | 192 |
| r1711 | r1712 | |
|---|---|---|
| 537 | 537 | MDRV_CPU_PROGRAM_MAP(yunsun16_sound_readmem,yunsun16_sound_writemem) |
| 538 | 538 | MDRV_CPU_IO_MAP(yunsun16_sound_readport,yunsun16_sound_writeport) |
| 539 | 539 | |
| 540 | /* video hardware */ | |
| 541 | MDRV_SCREEN_ADD("main", RASTER) | |
| 540 | 542 | MDRV_SCREEN_REFRESH_RATE(60) |
| 541 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 542 | ||
| 543 | /* video hardware */ | |
| 544 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 543 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 545 | 544 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 546 | 545 | MDRV_SCREEN_SIZE(0x180, 0xe0) |
| 547 | 546 | MDRV_SCREEN_VISIBLE_AREA(0+0x20, 0x180-1-0x20, 0, 0xe0-1) |
| 547 | ||
| 548 | 548 | MDRV_GFXDECODE(yunsun16) |
| 549 | 549 | MDRV_PALETTE_LENGTH(8192) |
| 550 | 550 | |
| r1711 | r1712 | |
| 577 | 577 | MDRV_CPU_PROGRAM_MAP(yunsun16_readmem,yunsun16_writemem) |
| 578 | 578 | MDRV_CPU_VBLANK_INT(irq2_line_hold,1) |
| 579 | 579 | |
| 580 | /* video hardware */ | |
| 581 | MDRV_SCREEN_ADD("main", RASTER) | |
| 580 | 582 | MDRV_SCREEN_REFRESH_RATE(60) |
| 581 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 582 | ||
| 583 | /* video hardware */ | |
| 584 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 583 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 585 | 584 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 586 | 585 | MDRV_SCREEN_SIZE(0x180, 0xe0) |
| 587 | 586 | MDRV_SCREEN_VISIBLE_AREA(0, 0x180-1-4, 0, 0xe0-1) |
| 587 | ||
| 588 | 588 | MDRV_GFXDECODE(yunsun16) |
| 589 | 589 | MDRV_PALETTE_LENGTH(8192) |
| 590 | 590 |
| r1711 | r1712 | |
|---|---|---|
| 1386 | 1386 | MDRV_CPU_ADD_TAG("main", Z80, 18432000/6) /* 3.072 MHz */ |
| 1387 | 1387 | MDRV_CPU_PROGRAM_MAP(type1_readmem,type1_writemem) |
| 1388 | 1388 | |
| 1389 | MDRV_SCREEN_REFRESH_RATE(16000.0/132/2) | |
| 1390 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1391 | ||
| 1392 | 1389 | MDRV_CPU_ADD(Z80,14318000/8) |
| 1393 | 1390 | /* audio CPU */ /* 1.78975 MHz */ |
| 1394 | 1391 | MDRV_CPU_PROGRAM_MAP(scobra_sound_readmem,scobra_sound_writemem) |
| r1711 | r1712 | |
| 1397 | 1394 | MDRV_MACHINE_RESET(scramble) |
| 1398 | 1395 | |
| 1399 | 1396 | /* video hardware */ |
| 1400 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1397 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1398 | MDRV_SCREEN_REFRESH_RATE(16000.0/132/2) | |
| 1399 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1401 | 1400 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1402 | 1401 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 1403 | 1402 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 1403 | ||
| 1404 | 1404 | MDRV_GFXDECODE(scobra) |
| 1405 | 1405 | MDRV_PALETTE_LENGTH(32+64+2+1) /* 32 for characters, 64 for stars, 2 for bullets, 1 for background */ |
| 1406 | 1406 | |
| r1711 | r1712 | |
| 1454 | 1454 | MDRV_IMPORT_FROM(type1) |
| 1455 | 1455 | |
| 1456 | 1456 | /* video hardware */ |
| 1457 | MDRV_ | |
| 1457 | MDRV_SC | |
| 1458 | 1458 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1459 | 1459 | MDRV_PALETTE_LENGTH(32+64+2+128) /* 32 for characters, 64 for stars, 2 for bullets, 128 for background */ |
| 1460 | 1460 | |
| r1711 | r1712 | |
| 1469 | 1469 | MDRV_IMPORT_FROM(type1) |
| 1470 | 1470 | |
| 1471 | 1471 | /* video hardware */ |
| 1472 | MDRV_ | |
| 1472 | MDRV_SC | |
| 1473 | 1473 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1474 | 1474 | MDRV_PALETTE_LENGTH(32+64+2+256) /* 32 for characters, 64 for stars, 2 for bullets, 256 for background */ |
| 1475 | 1475 | |
| r1711 | r1712 | |
| 1543 | 1543 | MDRV_CPU_ADD_TAG("main", Z80, 18432000/6) /* 3.072 MHz */ |
| 1544 | 1544 | MDRV_CPU_PROGRAM_MAP(hustler_readmem,hustler_writemem) |
| 1545 | 1545 | |
| 1546 | MDRV_SCREEN_REFRESH_RATE(16000.0/132/2) | |
| 1547 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1548 | ||
| 1549 | 1546 | MDRV_CPU_ADD_TAG("sound",Z80,14318000/8) |
| 1550 | 1547 | /* audio CPU */ /* 1.78975 MHz */ |
| 1551 | 1548 | MDRV_CPU_PROGRAM_MAP(hustler_sound_readmem,hustler_sound_writemem) |
| r1711 | r1712 | |
| 1554 | 1551 | MDRV_MACHINE_RESET(scramble) |
| 1555 | 1552 | |
| 1556 | 1553 | /* video hardware */ |
| 1557 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1554 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1555 | MDRV_SCREEN_REFRESH_RATE(16000.0/132/2) | |
| 1556 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1558 | 1557 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1559 | 1558 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 1560 | 1559 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 1560 | ||
| 1561 | 1561 | MDRV_GFXDECODE(scobra) |
| 1562 | 1562 | MDRV_PALETTE_LENGTH(32+64+2) /* 32 for characters, 64 for stars, 2 for bullets */ |
| 1563 | 1563 |
| r1711 | r1712 | |
|---|---|---|
| 713 | 713 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 714 | 714 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,4) /* ??? */ |
| 715 | 715 | |
| 716 | /* video hardware */ | |
| 717 | MDRV_SCREEN_ADD("main", RASTER) | |
| 716 | 718 | MDRV_SCREEN_REFRESH_RATE(60) |
| 717 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION /* frames per second, vblank duration */) | |
| 718 | ||
| 719 | /* video hardware */ | |
| 720 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 719 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */ /* frames per second, vblank duration */) | |
| 721 | 720 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 722 | 721 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 723 | 722 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 723 | ||
| 724 | 724 | MDRV_GFXDECODE(wiz) |
| 725 | 725 | MDRV_PALETTE_LENGTH(256) |
| 726 | 726 | |
| r1711 | r1712 | |
| 772 | 772 | MDRV_IMPORT_FROM(stinger) |
| 773 | 773 | |
| 774 | 774 | /* video hardware */ |
| 775 | MDRV_SCREEN_MODIFY("main") | |
| 775 | 776 | MDRV_SCREEN_VISIBLE_AREA(2*8, 32*8-1, 2*8, 30*8-1) |
| 776 | 777 | |
| 777 | 778 | MACHINE_DRIVER_END |
| r1711 | r1712 | |
|---|---|---|
| 183 | 183 | MDRV_CPU_PROGRAM_MAP(main_map,0) |
| 184 | 184 | MDRV_CPU_VBLANK_INT(stactics_interrupt,1) |
| 185 | 185 | |
| 186 | /* video hardware */ | |
| 187 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ALWAYS_UPDATE) | |
| 188 | ||
| 189 | MDRV_SCREEN_ADD("main", RASTER) | |
| 186 | 190 | MDRV_SCREEN_REFRESH_RATE(60) |
| 187 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 188 | ||
| 189 | /* video hardware */ | |
| 190 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_ALWAYS_UPDATE) | |
| 191 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 191 | 192 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 192 | 193 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 193 | 194 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 30*8-1) |
| 195 | ||
| 194 | 196 | MDRV_PALETTE_LENGTH(0x400) |
| 195 | 197 | |
| 196 | 198 | MDRV_PALETTE_INIT(stactics) |
| r1711 | r1712 | |
|---|---|---|
| 90 | 90 | extern UINT8* mermaid_bg_scrollram; |
| 91 | 91 | extern UINT8* mermaid_fg_scrollram; |
| 92 | 92 | |
| 93 | extern WRITE8_HANDLER( mermaid_videoram2_w ); | |
| 94 | extern WRITE8_HANDLER( mermaid_videoram_w ); | |
| 95 | extern WRITE8_HANDLER( mermaid_colorram_w ); | |
| 96 | extern WRITE8_HANDLER( mermaid_flip_screen_x_w ); | |
| 97 | extern WRITE8_HANDLER( mermaid_flip_screen_y_w ); | |
| 98 | extern WRITE8_HANDLER( mermaid_bg_scroll_w ); | |
| 99 | extern WRITE8_HANDLER( mermaid_fg_scroll_w ); | |
| 100 | extern WRITE8_HANDLER( rougien_gfxbankswitch1_w ); | |
| 101 | extern WRITE8_HANDLER( rougien_gfxbankswitch2_w ); | |
| 102 | extern READ8_HANDLER( mermaid_collision_r ); | |
| 93 | WRITE8_HANDLER( mermaid_videoram2_w ); | |
| 94 | WRITE8_HANDLER( mermaid_videoram_w ); | |
| 95 | WRITE8_HANDLER( mermaid_colorram_w ); | |
| 96 | WRITE8_HANDLER( mermaid_flip_screen_x_w ); | |
| 97 | WRITE8_HANDLER( mermaid_flip_screen_y_w ); | |
| 98 | WRITE8_HANDLER( mermaid_bg_scroll_w ); | |
| 99 | WRITE8_HANDLER( mermaid_fg_scroll_w ); | |
| 100 | WRITE8_HANDLER( rougien_gfxbankswitch1_w ); | |
| 101 | WRITE8_HANDLER( rougien_gfxbankswitch2_w ); | |
| 102 | READ8_HANDLER( mermaid_collision_r ); | |
| 103 | 103 | |
| 104 | extern PALETTE_INIT( mermaid ); | |
| 105 | extern VIDEO_START( mermaid ); | |
| 106 | extern VIDEO_UPDATE( mermaid ); | |
| 104 | PALETTE_INIT( mermaid ); | |
| 105 | VIDEO_START( mermaid ); | |
| 106 | VIDEO_UPDATE( mermaid ); | |
| 107 | 107 | |
| 108 | 108 | /* Read/Write Handlers */ |
| 109 | 109 | |
| r1711 | r1712 | |
| 257 | 257 | MDRV_CPU_PROGRAM_MAP(mermaid_map, 0) |
| 258 | 258 | MDRV_CPU_VBLANK_INT(nmi_line_pulse, 1) |
| 259 | 259 | |
| 260 | // video hardware | |
| 261 | ||
| 262 | MDRV_SCREEN_ADD("main", RASTER) | |
| 260 | 263 | MDRV_SCREEN_REFRESH_RATE(60) |
| 261 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 262 | ||
| 263 | // video hardware | |
| 264 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 264 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 265 | 265 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 266 | 266 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 267 | 267 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 268 | ||
| 268 | 269 | MDRV_GFXDECODE(mermaid) |
| 269 | MDRV_PALETTE_LENGTH(4*16+1) | |
| 270 | MDRV_COLORTABLE_LENGTH(4*16+2*2) | |
| 270 | MDRV_PALETTE_LENGTH(4*16+2*2) | |
| 271 | 271 | |
| 272 | 272 | MDRV_PALETTE_INIT(mermaid) |
| 273 | 273 | MDRV_VIDEO_START(mermaid) |
| r1711 | r1712 | |
| 388 | 388 | |
| 389 | 389 | /* Game Drivers */ |
| 390 | 390 | |
| 391 | GAME( 1982, mermaid, 0, mermaid, mermaid, 0, ROT0, "[Sanritsu] Rock-Ola", "Mermaid", GAME_NOT_WORKING ) | |
| 391 | GAME( 1982, mermaid, 0, mermaid, mermaid, 0, ROT0, "[Sanritsu] Rock-Ola", "Mermaid", GAME_NOT_WORKING ) | |
| 392 | 392 | GAME( 1982, yachtmn, mermaid, mermaid, mermaid, 0, ROT0, "[Sanritsu] Esco", "Yachtsman", GAME_NOT_WORKING ) |
| 393 | GAME( 1982, rougien, 0, mermaid, mermaid, 0, ROT0, "Sanritsu", | |
| 393 | GAME( 1982, rougien, 0, mermaid, mermaid, 0, ROT0, "Sanritsu", |
| r1711 | r1712 | |
|---|---|---|
| 369 | 369 | MDRV_CPU_IO_MAP(calorie_sound_io_map,0) |
| 370 | 370 | MDRV_CPU_PERIODIC_INT(irq0_line_hold, 64) |
| 371 | 371 | |
| 372 | /* video hardware */ | |
| 373 | MDRV_SCREEN_ADD("main", RASTER) | |
| 372 | 374 | MDRV_SCREEN_REFRESH_RATE(60) |
| 373 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 374 | ||
| 375 | /* video hardware */ | |
| 376 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 375 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 377 | 376 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 378 | 377 | MDRV_SCREEN_SIZE(256, 256) |
| 379 | 378 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 16, 256-16-1) |
| 379 | ||
| 380 | 380 | MDRV_GFXDECODE(calorie) |
| 381 | 381 | MDRV_PALETTE_LENGTH(0x100) |
| 382 | 382 |
| r1711 | r1712 | |
|---|---|---|
| 254 | 254 | MDRV_CPU_PROGRAM_MAP(drtomy_map,0) |
| 255 | 255 | MDRV_CPU_VBLANK_INT(irq6_line_hold,1) |
| 256 | 256 | |
| 257 | /* video hardware */ | |
| 258 | MDRV_SCREEN_ADD("main", RASTER) | |
| 257 | 259 | MDRV_SCREEN_REFRESH_RATE(60) |
| 258 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 259 | ||
| 260 | /* video hardware */ | |
| 261 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 260 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 262 | 261 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 263 | 262 | MDRV_SCREEN_SIZE(32*16, 32*16) |
| 264 | 263 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 16, 256-1) |
| 264 | ||
| 265 | 265 | MDRV_GFXDECODE(drtomy) |
| 266 | 266 | MDRV_PALETTE_LENGTH(1024) |
| 267 | 267 |
| r1711 | r1712 | |
|---|---|---|
| 235 | 235 | #define MASTER_CLOCK 10000000 |
| 236 | 236 | |
| 237 | 237 | #include "driver.h" |
| 238 | #include "video/mc6845.h" | |
| 239 | #include "machine/6821pia.h" | |
| 238 | 240 | #include "sound/ay8910.h" |
| 239 | #include "machine/6821pia.h" | |
| 240 | 241 | |
| 241 | 242 | /* from video */ |
| 242 | 243 | WRITE8_HANDLER( gdrawpkr_videoram_w ); |
| r1711 | r1712 | |
| 568 | 569 | MDRV_CPU_PROGRAM_MAP(gdrawpkr_map, 0) |
| 569 | 570 | MDRV_CPU_VBLANK_INT(irq0_line_hold, 1) |
| 570 | 571 | |
| 571 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 572 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 573 | ||
| 574 | 572 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 575 | 573 | |
| 576 | 574 | // video hardware |
| 577 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 575 | ||
| 576 | MDRV_SCREEN_ADD("main", RASTER) | |
| 577 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 578 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 578 | 579 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 579 | 580 | MDRV_SCREEN_SIZE((39+1)*8, (31+1)*8) /* Taken from MC6845 init, registers 00 & 04. Normally programmed with (value-1) */ |
| 580 | 581 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 31*8-1) /* Taken from MC6845 init, registers 01 & 06 */ |
| r1711 | r1712 | |
| 586 | 587 | MDRV_VIDEO_START(gdrawpkr) |
| 587 | 588 | MDRV_VIDEO_UPDATE(gdrawpkr) |
| 588 | 589 | |
| 590 | MDRV_DEVICE_ADD("crtc", MC6845) | |
| 591 | ||
| 589 | 592 | // sound hardware |
| 590 | 593 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 591 | 594 | MDRV_SOUND_ADD(AY8912, MASTER_CLOCK/12) /* guessing again... */ |
| r1711 | r1712 | |
|---|---|---|
| 953 | 953 | MDRV_CPU_PROGRAM_MAP(adsp_program_map,0) |
| 954 | 954 | MDRV_CPU_DATA_MAP(adsp_data_map, 0) |
| 955 | 955 | |
| 956 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 957 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 958 | ||
| 959 | 956 | MDRV_MACHINE_RESET(gaelco3d) |
| 960 | 957 | MDRV_NVRAM_HANDLER(93C66B) |
| 961 | 958 | |
| 962 | 959 | MDRV_INTERLEAVE(100) |
| 963 | 960 | |
| 964 | 961 | /* video hardware */ |
| 965 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 962 | MDRV_SCREEN_ADD("main", RASTER) | |
| 963 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 964 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 966 | 965 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) |
| 967 | 966 | MDRV_SCREEN_SIZE(576, 432) |
| 968 | 967 | MDRV_SCREEN_VISIBLE_AREA(0, 575, 0, 431) |
| 968 | ||
| 969 | 969 | MDRV_PALETTE_LENGTH(32768) |
| 970 | 970 | |
| 971 | 971 | MDRV_VIDEO_START(gaelco3d) |
| r1711 | r1712 | |
|---|---|---|
| 237 | 237 | MDRV_CPU_PROGRAM_MAP(main_map,0) |
| 238 | 238 | MDRV_CPU_VBLANK_INT(avalnche_interrupt,8) |
| 239 | 239 | |
| 240 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 241 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 242 | ||
| 243 | 240 | /* video hardware */ |
| 244 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 245 | 241 | MDRV_VIDEO_UPDATE(avalnche) |
| 246 | 242 | |
| 247 | MDRV_SCREEN_ADD("main", 0) | |
| 243 | MDRV_SCREEN_ADD("main", RASTER) | |
| 244 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 245 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 248 | 246 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 249 | 247 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 250 | 248 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 32*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 879 | 879 | MDRV_CPU_PROGRAM_MAP( namcos11_map, 0 ) |
| 880 | 880 | MDRV_CPU_VBLANK_INT( namcos11_vblank, 1 ) |
| 881 | 881 | |
| 882 | MDRV_SCREEN_REFRESH_RATE( 60 ) | |
| 883 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 884 | ||
| 885 | 882 | MDRV_MACHINE_RESET( namcos11 ) |
| 886 | 883 | MDRV_NVRAM_HANDLER( at28c16_0 ) |
| 887 | 884 | |
| 888 | 885 | /* video hardware */ |
| 889 | MDRV_VIDEO_ATTRIBUTES( VIDEO_TYPE_RASTER ) | |
| 886 | MDRV_SCREEN_ADD("main", RASTER) | |
| 887 | MDRV_SCREEN_REFRESH_RATE( 60 ) | |
| 888 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 890 | 889 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 891 | 890 | MDRV_SCREEN_SIZE( 1024, 1024 ) |
| 892 | 891 | MDRV_SCREEN_VISIBLE_AREA( 0, 639, 0, 479 ) |
| 892 | ||
| 893 | 893 | MDRV_PALETTE_LENGTH( 65536 ) |
| 894 | 894 | |
| 895 | 895 | MDRV_PALETTE_INIT( psx ) |
| r1711 | r1712 | |
|---|---|---|
| 525 | 525 | MDRV_CPU_PROGRAM_MAP(lethalj_map,0) |
| 526 | 526 | |
| 527 | 527 | /* video hardware */ |
| 528 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 529 | 528 | MDRV_PALETTE_LENGTH(32768) |
| 530 | 529 | |
| 531 | MDRV_SCREEN_ADD("main", | |
| 530 | MDRV_SCREEN_ADD("main", RASTER) | |
| 532 | 531 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) |
| 533 | 532 | MDRV_SCREEN_RAW_PARAMS(VIDEO_CLOCK, 701, 0, 512, 263, 0, 236) |
| 534 | 533 |
| r1711 | r1712 | |
|---|---|---|
| 281 | 281 | |
| 282 | 282 | SEIBU_SOUND_SYSTEM_CPU(4000000) /* Perhaps 14318180/4? */ |
| 283 | 283 | |
| 284 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 285 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 286 | 284 | MDRV_MACHINE_RESET(seibu_sound_1) |
| 287 | 285 | |
| 288 | 286 | /* video hardware */ |
| 289 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 287 | MDRV_SCREEN_ADD("main", RASTER) | |
| 288 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 289 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 290 | 290 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 291 | 291 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 292 | 292 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 28*8-1) |
| 293 | ||
| 293 | 294 | MDRV_GFXDECODE(dcon) |
| 294 | 295 | MDRV_PALETTE_LENGTH(2048) |
| 295 | 296 | |
| r1711 | r1712 | |
| 309 | 310 | |
| 310 | 311 | SEIBU2_SOUND_SYSTEM_CPU(14318180/4) |
| 311 | 312 | |
| 312 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 313 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 314 | 313 | MDRV_MACHINE_RESET(seibu_sound_1) |
| 315 | 314 | |
| 316 | 315 | /* video hardware */ |
| 317 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 316 | MDRV_SCREEN_ADD("main", RASTER) | |
| 317 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 318 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 318 | 319 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 319 | 320 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 320 | 321 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 30*8-1) |
| 322 | ||
| 321 | 323 | MDRV_GFXDECODE(dcon) |
| 322 | 324 | MDRV_PALETTE_LENGTH(2048) |
| 323 | 325 |
| r1711 | r1712 | |
|---|---|---|
| 673 | 673 | /* Program and Data Maps are internal to the MCU */ |
| 674 | 674 | MDRV_CPU_IO_MAP(kickgoal_sound_io_map, 0) |
| 675 | 675 | |
| 676 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 677 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 678 | ||
| 679 | 676 | MDRV_NVRAM_HANDLER(kickgoal) |
| 680 | 677 | |
| 681 | 678 | /* video hardware */ |
| 682 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 679 | MDRV_SCREEN_ADD("main", RASTER) | |
| 680 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 681 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 683 | 682 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 684 | 683 | MDRV_SCREEN_SIZE(64*8, 64*8) |
| 685 | 684 | MDRV_SCREEN_VISIBLE_AREA(9*8, 55*8-1, 4*8, 60*8-1) |
| 685 | ||
| 686 | 686 | MDRV_GFXDECODE(kickgoal) |
| 687 | 687 | MDRV_PALETTE_LENGTH(1024) |
| 688 | 688 | |
| r1711 | r1712 | |
| 708 | 708 | /* Program and Data Maps are internal to the MCU */ |
| 709 | 709 | MDRV_CPU_IO_MAP(actionhw_io_map, 0) |
| 710 | 710 | |
| 711 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 712 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 713 | ||
| 714 | 711 | MDRV_NVRAM_HANDLER(kickgoal) // 93C46 really |
| 715 | 712 | |
| 716 | 713 | /* video hardware */ |
| 717 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 714 | MDRV_SCREEN_ADD("main", RASTER) | |
| 715 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 716 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 718 | 717 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 719 | 718 | MDRV_SCREEN_SIZE(64*8, 64*8) |
| 720 | 719 | MDRV_SCREEN_VISIBLE_AREA(10*8+2, 54*8-1+2, 0*8, 30*8-1) |
| 720 | ||
| 721 | 721 | MDRV_GFXDECODE(actionhw) |
| 722 | 722 | MDRV_PALETTE_LENGTH(1024) |
| 723 | 723 |
| r1711 | r1712 | |
|---|---|---|
| 546 | 546 | if (blitter != -1) blitter_int = blitter; |
| 547 | 547 | |
| 548 | 548 | /* handle the 6809 case */ |
| 549 | if (machine-> | |
| 549 | if (machine->config->cpu[0].type == CPU_M6809) | |
| 550 | 550 | { |
| 551 | 551 | /* just modify lines that have changed */ |
| 552 | 552 | if (periodic != -1) cpunum_set_input_line(machine, 0, INPUT_LINE_NMI, periodic ? ASSERT_LINE : CLEAR_LINE); |
| r1711 | r1712 | |
| 628 | 628 | static MACHINE_RESET( itech8 ) |
| 629 | 629 | { |
| 630 | 630 | /* make sure bank 0 is selected */ |
| 631 | if (machine-> | |
| 631 | if (machine->config->cpu[0].type == CPU_M6809) | |
| 632 | 632 | memory_set_bankptr(1, &memory_region(REGION_CPU1)[0x4000]); |
| 633 | 633 | |
| 634 | 634 | /* reset the PIA (if used) */ |
| r1711 | r1712 | |
| 1766 | 1766 | MDRV_CPU_PROGRAM_MAP(tmslo_map,0) |
| 1767 | 1767 | MDRV_CPU_VBLANK_INT(generate_nmi,1) |
| 1768 | 1768 | |
| 1769 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1770 | ||
| 1771 | 1769 | MDRV_MACHINE_START(itech8) |
| 1772 | 1770 | MDRV_MACHINE_RESET(itech8) |
| 1773 | 1771 | MDRV_NVRAM_HANDLER(itech8) |
| 1774 | 1772 | |
| 1775 | 1773 | /* video hardware */ |
| 1776 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 1774 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 1777 | 1775 | MDRV_VIDEO_START(itech8) |
| 1778 | 1776 | |
| 1777 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1778 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1779 | 1779 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 1780 | 1780 | MDRV_SCREEN_SIZE(512, 263) |
| 1781 | 1781 | |
| r1711 | r1712 | |
| 1848 | 1848 | MDRV_IMPORT_FROM(itech8_sound_ym2203) |
| 1849 | 1849 | |
| 1850 | 1850 | /* video hardware */ |
| 1851 | MDRV_SCREEN_MODIFY("main") | |
| 1851 | 1852 | MDRV_SCREEN_VISIBLE_AREA(0, 255, 0, 239) |
| 1852 | 1853 | MDRV_VIDEO_UPDATE(itech8_2layer) |
| 1853 | 1854 | MACHINE_DRIVER_END |
| r1711 | r1712 | |
| 1860 | 1861 | MDRV_IMPORT_FROM(itech8_sound_ym2203) |
| 1861 | 1862 | |
| 1862 | 1863 | /* video hardware */ |
| 1864 | MDRV_SCREEN_MODIFY("main") | |
| 1863 | 1865 | MDRV_SCREEN_VISIBLE_AREA(0, 255, 0, 239) |
| 1864 | 1866 | MDRV_VIDEO_UPDATE(itech8_2layer) |
| 1865 | 1867 | MACHINE_DRIVER_END |
| r1711 | r1712 | |
| 1872 | 1874 | MDRV_IMPORT_FROM(itech8_sound_ym2203) |
| 1873 | 1875 | |
| 1874 | 1876 | /* video hardware */ |
| 1877 | MDRV_SCREEN_MODIFY("main") | |
| 1875 | 1878 | MDRV_SCREEN_VISIBLE_AREA(0, 255, 0, 239) |
| 1876 | 1879 | MDRV_VIDEO_UPDATE(itech8_2layer) |
| 1877 | 1880 | MACHINE_DRIVER_END |
| r1711 | r1712 | |
| 1888 | 1891 | MDRV_CPU_IO_MAP(slikz80_io_map,0) |
| 1889 | 1892 | |
| 1890 | 1893 | /* video hardware */ |
| 1894 | MDRV_SCREEN_MODIFY("main") | |
| 1891 | 1895 | MDRV_SCREEN_VISIBLE_AREA(0, 255, 0, 239) |
| 1892 | 1896 | MDRV_VIDEO_UPDATE(slikshot) |
| 1893 | 1897 | MACHINE_DRIVER_END |
| r1711 | r1712 | |
| 1904 | 1908 | MDRV_CPU_IO_MAP(slikz80_io_map,0) |
| 1905 | 1909 | |
| 1906 | 1910 | /* video hardware */ |
| 1911 | MDRV_SCREEN_MODIFY("main") | |
| 1907 | 1912 | MDRV_SCREEN_VISIBLE_AREA(0, 255, 0, 239) |
| 1908 | 1913 | MDRV_VIDEO_UPDATE(slikshot) |
| 1909 | 1914 | MACHINE_DRIVER_END |
| r1711 | r1712 | |
| 1916 | 1921 | MDRV_IMPORT_FROM(itech8_sound_ym2203) |
| 1917 | 1922 | |
| 1918 | 1923 | /* video hardware */ |
| 1924 | MDRV_SCREEN_MODIFY("main") | |
| 1919 | 1925 | MDRV_SCREEN_VISIBLE_AREA(0, 255, 0, 239) |
| 1920 | 1926 | MDRV_VIDEO_UPDATE(itech8_2page) |
| 1921 | 1927 | MACHINE_DRIVER_END |
| r1711 | r1712 | |
| 1937 | 1943 | MDRV_IMPORT_FROM(itech8_sound_ym3812) |
| 1938 | 1944 | |
| 1939 | 1945 | /* video hardware */ |
| 1946 | MDRV_SCREEN_MODIFY("main") | |
| 1940 | 1947 | MDRV_SCREEN_VISIBLE_AREA(0, 399, 0, 239) |
| 1941 | 1948 | MDRV_VIDEO_UPDATE(itech8_2page_large) |
| 1942 | 1949 | MACHINE_DRIVER_END |
| r1711 | r1712 | |
| 1949 | 1956 | MDRV_IMPORT_FROM(itech8_sound_ym3812) |
| 1950 | 1957 | |
| 1951 | 1958 | /* video hardware */ |
| 1959 | MDRV_SCREEN_MODIFY("main") | |
| 1952 | 1960 | MDRV_SCREEN_VISIBLE_AREA(0, 399, 0, 239) |
| 1953 | 1961 | MDRV_VIDEO_UPDATE(itech8_2page_large) |
| 1954 | 1962 | MACHINE_DRIVER_END |
| r1711 | r1712 | |
| 1963 | 1971 | MDRV_CPU_REPLACE("main", M6809/*HD6309*/, CLOCK_12MHz/4) |
| 1964 | 1972 | |
| 1965 | 1973 | /* video hardware */ |
| 1974 | MDRV_SCREEN_MODIFY("main") | |
| 1966 | 1975 | MDRV_SCREEN_VISIBLE_AREA(24, 375, 0, 239) |
| 1967 | 1976 | MDRV_VIDEO_UPDATE(itech8_2page_large) |
| 1968 | 1977 | MACHINE_DRIVER_END |
| r1711 | r1712 | |
| 1978 | 1987 | MDRV_CPU_PROGRAM_MAP(ninclown_map,0) |
| 1979 | 1988 | |
| 1980 | 1989 | /* video hardware */ |
| 1990 | MDRV_SCREEN_MODIFY("main") | |
| 1981 | 1991 | MDRV_SCREEN_VISIBLE_AREA(64, 423, 0, 239) |
| 1982 | 1992 | MDRV_VIDEO_UPDATE(itech8_2page_large) |
| 1983 | 1993 | MACHINE_DRIVER_END |
| r1711 | r1712 | |
| 1993 | 2003 | MDRV_CPU_PROGRAM_MAP(gtg2_map,0) |
| 1994 | 2004 | |
| 1995 | 2005 | /* video hardware */ |
| 2006 | MDRV_SCREEN_MODIFY("main") | |
| 1996 | 2007 | MDRV_SCREEN_VISIBLE_AREA(0, 255, 0, 239) |
| 1997 | 2008 | MDRV_VIDEO_UPDATE(itech8_2layer) |
| 1998 | 2009 | MACHINE_DRIVER_END |
| r1711 | r1712 | |
|---|---|---|
| 4287 | 4287 | MDRV_MACHINE_RESET(galaxian) |
| 4288 | 4288 | |
| 4289 | 4289 | /* video hardware */ |
| 4290 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 4291 | 4290 | MDRV_GFXDECODE(galaxian) |
| 4292 | 4291 | MDRV_PALETTE_LENGTH(32+2+64) /* 32 for the characters, 2 for the bullets, 64 for the stars */ |
| 4293 | 4292 | |
| 4294 | MDRV_SCREEN_ADD("main", | |
| 4293 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4295 | 4294 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 4296 | 4295 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART) |
| 4297 | 4296 | |
| r1711 | r1712 | |
| 4706 | 4705 | MDRV_VIDEO_START(rockclim) |
| 4707 | 4706 | MDRV_PALETTE_LENGTH(64+64+2) /* 64 colors only, but still uses bullets so we need to keep the palette big */ |
| 4708 | 4707 | MDRV_PALETTE_INIT(rockclim) |
| 4708 | ||
| 4709 | MDRV_SCREEN_MODIFY("main") | |
| 4709 | 4710 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 4710 | 4711 | |
| 4711 | 4712 | MACHINE_DRIVER_END |
| r1711 | r1712 | |
| 4736 | 4737 | MDRV_CPU_IO_MAP(drivfrcg_io,0) |
| 4737 | 4738 | MDRV_CPU_VBLANK_INT(hunchbks_vh_interrupt,1) |
| 4738 | 4739 | |
| 4739 | MDRV_SCREEN_REFRESH_RATE(16000.0/132/2) | |
| 4740 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 4741 | 4740 | |
| 4742 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 4741 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4742 | MDRV_SCREEN_REFRESH_RATE(16000.0/132/2) | |
| 4743 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 4743 | 4744 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 4744 | 4745 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 4745 | 4746 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| r1711 | r1712 | |
| 4782 | 4783 | MDRV_CPU_IO_MAP(hunchbkg_io,0) |
| 4783 | 4784 | MDRV_CPU_VBLANK_INT(hunchbks_vh_interrupt,1) |
| 4784 | 4785 | |
| 4785 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 4786 | 4786 | MDRV_GFXDECODE(galaxian) |
| 4787 | 4787 | MDRV_PALETTE_LENGTH(32+2+64) /* 32 for the characters, 2 for the bullets, 64 for the stars */ |
| 4788 | 4788 | |
| 4789 | MDRV_SCREEN_ADD("main", | |
| 4789 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4790 | 4790 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 4791 | 4791 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART) |
| 4792 | 4792 | |
| r1711 | r1712 | |
| 4846 | 4846 | MDRV_CPU_IO_MAP(racknrol_io,0) |
| 4847 | 4847 | MDRV_CPU_VBLANK_INT(hunchbks_vh_interrupt,1) |
| 4848 | 4848 | |
| 4849 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 4850 | 4849 | MDRV_GFXDECODE(galaxian) |
| 4851 | 4850 | MDRV_PALETTE_LENGTH(32) |
| 4852 | 4851 | |
| 4853 | MDRV_SCREEN_ADD("main", | |
| 4852 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4854 | 4853 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 4855 | 4854 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART) |
| 4856 | 4855 | |
| r1711 | r1712 | |
| 4905 | 4904 | MDRV_CPU_IO_MAP(hexpoola_io,0) |
| 4906 | 4905 | MDRV_CPU_VBLANK_INT(hunchbks_vh_interrupt,1) |
| 4907 | 4906 | |
| 4908 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 4909 | 4907 | MDRV_GFXDECODE(galaxian) |
| 4910 | 4908 | MDRV_PALETTE_LENGTH(32) |
| 4911 | 4909 | |
| 4912 | MDRV_SCREEN_ADD("main", | |
| 4910 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4913 | 4911 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 4914 | 4912 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART) |
| 4915 | 4913 |
| r1711 | r1712 | |
|---|---|---|
| 245 | 245 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 246 | 246 | MDRV_CPU_VBLANK_INT(irq4_line_hold,1) |
| 247 | 247 | |
| 248 | /* video hardware */ | |
| 249 | MDRV_SCREEN_ADD("main", RASTER) | |
| 248 | 250 | MDRV_SCREEN_REFRESH_RATE(60) |
| 249 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 250 | ||
| 251 | /* video hardware */ | |
| 252 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 251 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 253 | 252 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 254 | 253 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 255 | 254 | MDRV_SCREEN_VISIBLE_AREA(12*8, (64-12)*8-1, 1*8, 31*8-1 ) |
| 255 | ||
| 256 | 256 | MDRV_GFXDECODE(othldrby) |
| 257 | 257 | MDRV_PALETTE_LENGTH(0x800) |
| 258 | 258 |
| r1711 | r1712 | |
|---|---|---|
| 702 | 702 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 703 | 703 | MDRV_CPU_IO_MAP(sound_readport,sound_writeport) |
| 704 | 704 | |
| 705 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 706 | ||
| 707 | 705 | #if BBUSTERS_HACK |
| 708 | 706 | MDRV_MACHINE_RESET(bbusters) |
| 709 | 707 | #endif |
| r1711 | r1712 | |
| 711 | 709 | MDRV_NVRAM_HANDLER(bbusters) |
| 712 | 710 | |
| 713 | 711 | /* video hardware */ |
| 714 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 712 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 713 | ||
| 714 | MDRV_SCREEN_ADD("main", RASTER) | |
| 715 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 715 | 716 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 716 | 717 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 717 | 718 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| r1711 | r1712 | |
| 745 | 746 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 746 | 747 | MDRV_CPU_IO_MAP(sounda_readport,sounda_writeport) |
| 747 | 748 | |
| 748 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 749 | ||
| 750 | 749 | #if MECHATT_HACK |
| 751 | 750 | MDRV_MACHINE_RESET(mechatt) |
| 752 | 751 | #endif |
| 753 | 752 | |
| 754 | 753 | /* video hardware */ |
| 755 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 754 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 755 | ||
| 756 | MDRV_SCREEN_ADD("main", RASTER) | |
| 757 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 756 | 758 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 757 | 759 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 758 | 760 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 448 | 448 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 449 | 449 | MDRV_CPU_IO_MAP(sound_readport,sound_writeport) |
| 450 | 450 | |
| 451 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_AFTER_VBLANK) | |
| 452 | ||
| 453 | MDRV_SCREEN_ADD("main", RASTER) | |
| 451 | 454 | MDRV_SCREEN_REFRESH_RATE(60) |
| 452 | 455 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(5000) /* hand-tuned, it needs a bit */) |
| 453 | ||
| 454 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_AFTER_VBLANK) | |
| 455 | 456 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 456 | 457 | MDRV_SCREEN_SIZE(64*8, 64*8) |
| 457 | 458 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 28*8-1) |
| 459 | ||
| 458 | 460 | MDRV_GFXDECODE(gstriker) |
| 459 | 461 | MDRV_PALETTE_LENGTH(0x800) |
| 460 | 462 |
| r1711 | r1712 | |
|---|---|---|
| 828 | 828 | MDRV_CPU_PROGRAM_MAP(YM3526_sound_map,0) |
| 829 | 829 | MDRV_CPU_VBLANK_INT(irq0_line_hold,4) |
| 830 | 830 | |
| 831 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 832 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 833 | 831 | MDRV_INTERLEAVE(100) |
| 834 | 832 | |
| 835 | 833 | /* video hardware */ |
| 836 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS) | |
| 834 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 835 | ||
| 836 | MDRV_SCREEN_ADD("main", RASTER) | |
| 837 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 838 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 837 | 839 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 838 | 840 | MDRV_SCREEN_SIZE(36*8, 28*8) |
| 839 | 841 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 1*8, 28*8-1) |
| 842 | ||
| 840 | 843 | MDRV_GFXDECODE(tnk3) |
| 841 | 844 | MDRV_PALETTE_LENGTH(1024) |
| 842 | 845 | |
| r1711 | r1712 | |
| 869 | 872 | MDRV_CPU_PROGRAM_MAP(YM3526_YM3526_sound_map,0) |
| 870 | 873 | MDRV_CPU_VBLANK_INT(irq0_line_hold,2) |
| 871 | 874 | |
| 872 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 873 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 874 | 875 | MDRV_INTERLEAVE(300) |
| 875 | 876 | |
| 876 | 877 | /* video hardware */ |
| 877 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS) | |
| 878 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 879 | ||
| 880 | MDRV_SCREEN_ADD("main", RASTER) | |
| 881 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 882 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 878 | 883 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 879 | 884 | MDRV_SCREEN_SIZE(36*8, 28*8) |
| 880 | 885 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 1*8, 28*8-1) |
| 886 | ||
| 881 | 887 | MDRV_GFXDECODE(athena) |
| 882 | 888 | MDRV_PALETTE_LENGTH(1024) |
| 883 | 889 | |
| r1711 | r1712 | |
| 914 | 920 | MDRV_CPU_PROGRAM_MAP(YM3526_YM3526_sound_map,0) |
| 915 | 921 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 916 | 922 | |
| 917 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 918 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 919 | 923 | MDRV_INTERLEAVE(100) |
| 920 | 924 | |
| 921 | 925 | /* video hardware */ |
| 922 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS) | |
| 926 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 927 | ||
| 928 | MDRV_SCREEN_ADD("main", RASTER) | |
| 929 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 930 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 923 | 931 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 924 | 932 | MDRV_SCREEN_SIZE(36*8, 28*8) |
| 925 | 933 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 1*8, 28*8-1) |
| 934 | ||
| 926 | 935 | MDRV_GFXDECODE(ikari) |
| 927 | 936 | MDRV_PALETTE_LENGTH(1024) |
| 928 | 937 | |
| r1711 | r1712 | |
| 959 | 968 | MDRV_CPU_PROGRAM_MAP(YM3526_Y8950_sound_map,0) |
| 960 | 969 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 961 | 970 | |
| 962 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 963 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 964 | 971 | MDRV_INTERLEAVE(100) |
| 965 | 972 | |
| 966 | 973 | /* video hardware */ |
| 967 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS) | |
| 974 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 975 | ||
| 976 | MDRV_SCREEN_ADD("main", RASTER) | |
| 977 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 978 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 968 | 979 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 969 | 980 | MDRV_SCREEN_SIZE(36*8, 28*8) |
| 970 | 981 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 1*8, 28*8-1) |
| 982 | ||
| 971 | 983 | MDRV_GFXDECODE(ikari) |
| 972 | 984 | MDRV_PALETTE_LENGTH(1024) |
| 973 | 985 | |
| r1711 | r1712 | |
| 1004 | 1016 | MDRV_CPU_PROGRAM_MAP(YM3526_Y8950_sound_map,0) |
| 1005 | 1017 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 1006 | 1018 | |
| 1007 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1008 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 1009 | 1019 | MDRV_INTERLEAVE(100) |
| 1010 | 1020 | |
| 1011 | 1021 | /* video hardware */ |
| 1012 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1022 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1023 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1024 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 1013 | 1025 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1014 | 1026 | MDRV_SCREEN_SIZE(400, 224) |
| 1015 | 1027 | MDRV_SCREEN_VISIBLE_AREA(8, 399-8, 0, 223) |
| 1028 | ||
| 1016 | 1029 | MDRV_GFXDECODE(gwar) |
| 1017 | 1030 | MDRV_PALETTE_LENGTH(1024) |
| 1018 | 1031 | |
| r1711 | r1712 | |
| 1050 | 1063 | MDRV_CPU_PROGRAM_MAP(YM3526_Y8950_sound_map,0) |
| 1051 | 1064 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 1052 | 1065 | |
| 1053 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1054 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 1055 | 1066 | MDRV_INTERLEAVE(100) |
| 1056 | 1067 | |
| 1057 | 1068 | /* video hardware */ |
| 1058 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1069 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1070 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1071 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 1059 | 1072 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1060 | 1073 | MDRV_SCREEN_SIZE(400, 224) |
| 1061 | 1074 | MDRV_SCREEN_VISIBLE_AREA(16, 399, 0, 223) |
| 1075 | ||
| 1062 | 1076 | MDRV_GFXDECODE(bermudat) |
| 1063 | 1077 | MDRV_PALETTE_LENGTH(1024) |
| 1064 | 1078 | |
| r1711 | r1712 | |
| 1095 | 1109 | MDRV_CPU_PROGRAM_MAP(YM3526_Y8950_sound_map,0) |
| 1096 | 1110 | MDRV_CPU_VBLANK_INT(irq0_line_hold,2) |
| 1097 | 1111 | |
| 1098 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1099 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 1100 | 1112 | MDRV_INTERLEAVE(100) |
| 1101 | 1113 | |
| 1102 | 1114 | /* video hardware */ |
| 1103 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1115 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1116 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1117 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 1104 | 1118 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1105 | 1119 | MDRV_SCREEN_SIZE(400, 224) |
| 1106 | 1120 | MDRV_SCREEN_VISIBLE_AREA(8, 399-8, 0, 223) |
| 1121 | ||
| 1107 | 1122 | MDRV_GFXDECODE(psychos) |
| 1108 | 1123 | MDRV_PALETTE_LENGTH(1024) |
| 1109 | 1124 | |
| r1711 | r1712 | |
| 1140 | 1155 | MDRV_CPU_PROGRAM_MAP(YM3812_Y8950_sound_map,0) |
| 1141 | 1156 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 1142 | 1157 | |
| 1143 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1144 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 1145 | 1158 | MDRV_INTERLEAVE(100) |
| 1146 | 1159 | |
| 1147 | 1160 | /* video hardware */ |
| 1148 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1161 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1162 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1163 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 1149 | 1164 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1150 | 1165 | MDRV_SCREEN_SIZE(400, 224) |
| 1151 | 1166 | MDRV_SCREEN_VISIBLE_AREA(8, 399-8, 0, 223) |
| 1167 | ||
| 1152 | 1168 | MDRV_GFXDECODE(psychos) |
| 1153 | 1169 | MDRV_PALETTE_LENGTH(1024) |
| 1154 | 1170 | |
| r1711 | r1712 | |
| 1185 | 1201 | MDRV_CPU_PROGRAM_MAP(YM3526_Y8950_sound_map,0) |
| 1186 | 1202 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 1187 | 1203 | |
| 1188 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1189 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(1000)) | |
| 1190 | 1204 | MDRV_INTERLEAVE(300) |
| 1191 | 1205 | |
| 1192 | 1206 | /* video hardware */ |
| 1193 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS | VIDEO_UPDATE_AFTER_VBLANK) | |
| 1207 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS | VIDEO_UPDATE_AFTER_VBLANK) | |
| 1208 | ||
| 1209 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1210 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1211 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(1000)) | |
| 1194 | 1212 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1195 | 1213 | MDRV_SCREEN_SIZE(400,224) |
| 1196 | 1214 | MDRV_SCREEN_VISIBLE_AREA(8, 399-8, 0, 223) |
| 1215 | ||
| 1197 | 1216 | MDRV_GFXDECODE(tdfever) |
| 1198 | 1217 | MDRV_PALETTE_LENGTH(1024) |
| 1199 | 1218 | |
| r1711 | r1712 | |
| 1230 | 1249 | MDRV_CPU_PROGRAM_MAP(YM3526_Y8950_sound_map,0) |
| 1231 | 1250 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 1232 | 1251 | |
| 1233 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1234 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(1000)) | |
| 1235 | 1252 | MDRV_INTERLEAVE(300) |
| 1236 | 1253 | |
| 1237 | 1254 | /* video hardware */ |
| 1238 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS | VIDEO_UPDATE_AFTER_VBLANK) | |
| 1255 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS | VIDEO_UPDATE_AFTER_VBLANK) | |
| 1256 | ||
| 1257 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1258 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1259 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(1000)) | |
| 1239 | 1260 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1240 | 1261 | MDRV_SCREEN_SIZE(400,224) |
| 1241 | 1262 | MDRV_SCREEN_VISIBLE_AREA(8, 399-8, 0, 223) |
| 1263 | ||
| 1242 | 1264 | MDRV_GFXDECODE(tdfever2) |
| 1243 | 1265 | MDRV_PALETTE_LENGTH(1024) |
| 1244 | 1266 | |
| r1711 | r1712 | |
| 1275 | 1297 | MDRV_CPU_PROGRAM_MAP(Y8950_sound_map, 0) |
| 1276 | 1298 | MDRV_CPU_VBLANK_INT(irq0_line_hold,2) |
| 1277 | 1299 | |
| 1278 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1279 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 1280 | 1300 | MDRV_INTERLEAVE(100) |
| 1281 | 1301 | |
| 1282 | 1302 | /* video hardware */ |
| 1283 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS | VIDEO_UPDATE_AFTER_VBLANK) | |
| 1303 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS | VIDEO_UPDATE_AFTER_VBLANK) | |
| 1304 | ||
| 1305 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1306 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1307 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 1284 | 1308 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1285 | 1309 | MDRV_SCREEN_SIZE(400,224) |
| 1286 | 1310 | MDRV_SCREEN_VISIBLE_AREA(8, 399-8, 0, 223) |
| 1311 | ||
| 1287 | 1312 | MDRV_GFXDECODE(tdfever) |
| 1288 | 1313 | MDRV_PALETTE_LENGTH(1024) |
| 1289 | 1314 | |
| r1711 | r1712 | |
| 2707 | 2732 | ROM_LOAD( "fs4.bin", 0x00000, 0x10000, CRC(435c3716) SHA1(42053741f60594e7ae8516b3ba600f5badb3620f) ) |
| 2708 | 2733 | ROM_END |
| 2709 | 2734 | |
| 2735 | ROM_START( fsoccerj ) | |
| 2736 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) /* 64k for cpuA code */ | |
| 2737 | ROM_LOAD( "fs3.6c", 0x00000, 0x10000, CRC(c5f505fa) SHA1(bc54a6482029735c7ec1d6dd819cad6bac32ac20) ) | |
| 2738 | ||
| 2739 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) /* 64k for cpuB code */ | |
| 2740 | ROM_LOAD( "fs1.2c", 0x00000, 0x10000, CRC(2f68e38b) SHA1(0cbf2de24a5a5ae2134eb6f1e1404691554192bc) ) | |
| 2741 | ||
| 2742 | ROM_REGION( 0x10000, REGION_CPU3, 0 ) /* 64k for sound code */ | |
| 2743 | ROM_LOAD( "fs2.3j", 0x00000, 0x10000, CRC(9ee54ea1) SHA1(4e3bbacaa0e247eb8c4043f394e763817a4f9a28) ) | |
| 2744 | ||
| 2745 | ROM_REGION( 0x0c00, REGION_PROMS, 0 ) | |
| 2746 | ROM_LOAD( "2.8e", 0x000, 0x400, CRC(bf4ac706) SHA1(b5015563d88dbd93ba2838f01b189812958f142b) ) /* red */ | |
| 2747 | ROM_LOAD( "1.8d", 0x400, 0x400, CRC(1bac8010) SHA1(16854b1b6f3d1be48a247796d65aeb90547099b6) ) /* green */ | |
| 2748 | ROM_LOAD( "3.9e", 0x800, 0x400, CRC(dbeddb14) SHA1(6053b587a3c8272aefe728a7198a15aa7fb9b2fa) ) /* blue */ | |
| 2749 | ||
| 2750 | ROM_REGION( 0x8000, REGION_GFX1, ROMREGION_DISPOSE ) /* characters */ | |
| 2751 | ROM_LOAD( "fs13.4n", 0x0000, 0x08000, CRC(0de7b7ad) SHA1(4fa54b2acf83f03d09d16fc054ad6623cafe0f4a) ) | |
| 2752 | ||
| 2753 | ROM_REGION( 0x50000, REGION_GFX2, ROMREGION_DISPOSE ) /* background tiles */ | |
| 2754 | ROM_LOAD( "fs14.8d", 0x00000, 0x10000, CRC(38c38b40) SHA1(c4580add0946720441f5ef751d0d4a944cd92ad5) ) | |
| 2755 | ROM_LOAD( "fs15.8e", 0x10000, 0x10000, CRC(a614834f) SHA1(d73930e4bd780915e1b0d7f3fe7cbeaad19c233f) ) | |
| 2756 | ||
| 2757 | // ROM_REGION( 0x40000, REGION_GFX3, ROMREGION_DISPOSE ) /* 16x16 sprites */ | |
| 2758 | ||
| 2759 | ROM_REGION( 0x80000, REGION_GFX3, ROMREGION_DISPOSE ) /* 32x32 sprites */ | |
| 2760 | ROM_LOAD( "fs5.2j", 0x10000, 0x10000, CRC(def2f1d8) SHA1(b72e4dec3306d8afe461ac812b2de67ee85f9dd9) ) | |
| 2761 | ROM_LOAD( "fs6.2k", 0x00000, 0x10000, CRC(588d14b3) SHA1(c0489b061503677a38e4c5800ea8be17aabf4039) ) | |
| 2762 | ||
| 2763 | ROM_LOAD( "fs7.2l", 0x30000, 0x10000, CRC(d584964b) SHA1(7c806fc40dcce700ed0c268abbd2704938b65ff2) ) | |
| 2764 | ROM_LOAD( "fs8.2n", 0x20000, 0x10000, CRC(11156a7d) SHA1(f298a54fa4c118bf8e7c7cccb6c95a4b97daf4d4) ) | |
| 2765 | ||
| 2766 | ROM_LOAD( "fs9.2p", 0x50000, 0x10000, CRC(d8112aa6) SHA1(575dd6dff2f00901603768f2c121eb0ea5afa444) ) | |
| 2767 | ROM_LOAD( "fs10.2r", 0x40000, 0x10000, CRC(e42864d8) SHA1(fe18f58e5507676780fe181e2fb0e0e9d72e276e) ) | |
| 2768 | ||
| 2769 | ROM_LOAD( "fs11.2s", 0x70000, 0x10000, CRC(022f3e96) SHA1(57aa423b8f62015566bc3021300ac7e9682ed500) ) | |
| 2770 | ROM_LOAD( "fs12.2t", 0x60000, 0x10000, CRC(b2442c30) SHA1(ba9331810659726389494ddc7c94c5a02ba80747) ) | |
| 2771 | ||
| 2772 | ROM_REGION( 0x10000, REGION_SOUND1, 0 ) | |
| 2773 | ROM_LOAD( "fs4.7p", 0x00000, 0x10000, CRC(435c3716) SHA1(42053741f60594e7ae8516b3ba600f5badb3620f) ) | |
| 2774 | ROM_END | |
| 2775 | ||
| 2710 | 2776 | ROM_START( fsoccerb ) |
| 2711 | 2777 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) /* 64k for cpuA code */ |
| 2712 | 2778 | ROM_LOAD( "ft-003.bin", 0x00000, 0x10000, CRC(649d4448) SHA1(876a4cf3ce3211ee19390deb17a661ec52b419d2) ) |
| r1711 | r1712 | |
| 4537 | 4603 | GAME( 1987, tdfeverj, tdfever, tdfever, tdfeverj, tdfever, ROT270, "SNK", "TouchDown Fever (Japan)", GAME_NO_COCKTAIL ) |
| 4538 | 4604 | GAME( 1988, tdfever2, tdfever, tdfever2, tdfever, tdfever2, ROT270, "SNK", "TouchDown Fever 2", GAME_NO_COCKTAIL ) /* upgrade kit for Touchdown Fever */ |
| 4539 | 4605 | GAME( 1988, fsoccer, 0, fsoccer, fsoccer, fsoccer, ROT0, "SNK", "Fighting Soccer (version 4)", GAME_NO_COCKTAIL ) |
| 4606 | GAME( 1988, fsoccerj, fsoccer, fsoccer, fsoccer, fsoccer, ROT0, "SNK", "Fighting Soccer (Japan)", GAME_NO_COCKTAIL ) | |
| 4540 | 4607 | GAME( 1988, fsoccerb, fsoccer, fsoccer, fsoccer, fsoccer, ROT0, "bootleg", "Fighting Soccer (joystick hack bootleg)", GAME_NO_COCKTAIL ) |
| 4541 | 4608 |
| r1711 | r1712 | |
|---|---|---|
| 715 | 715 | MDRV_CPU_ADD(M68000,20000000/2) /* 10MHz */ |
| 716 | 716 | MDRV_CPU_PROGRAM_MAP(hyprduel_readmem2,hyprduel_writemem2) |
| 717 | 717 | |
| 718 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 719 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 720 | ||
| 721 | 718 | MDRV_MACHINE_RESET(hyprduel) |
| 722 | 719 | |
| 723 | 720 | /* video hardware */ |
| 724 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 721 | MDRV_SCREEN_ADD("main", RASTER) | |
| 722 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 723 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 725 | 724 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 726 | 725 | MDRV_SCREEN_SIZE(320, 224) |
| 727 | 726 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, FIRST_VISIBLE_LINE, LAST_VISIBLE_LINE) |
| 727 | ||
| 728 | 728 | MDRV_GFXDECODE(14220) |
| 729 | 729 | MDRV_PALETTE_LENGTH(8192) |
| 730 | 730 | |
| r1711 | r1712 | |
| 756 | 756 | MDRV_CPU_ADD(M68000,20000000/2) /* 10MHz */ |
| 757 | 757 | MDRV_CPU_PROGRAM_MAP(magerror_readmem2,magerror_writemem2) |
| 758 | 758 | |
| 759 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 760 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 761 | ||
| 762 | 759 | MDRV_MACHINE_RESET(hyprduel) |
| 763 | 760 | |
| 764 | 761 | /* video hardware */ |
| 765 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 762 | MDRV_SCREEN_ADD("main", RASTER) | |
| 763 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 764 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 766 | 765 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 767 | 766 | MDRV_SCREEN_SIZE(320, 224) |
| 768 | 767 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, FIRST_VISIBLE_LINE, LAST_VISIBLE_LINE) |
| 768 | ||
| 769 | 769 | MDRV_GFXDECODE(14220) |
| 770 | 770 | MDRV_PALETTE_LENGTH(8192) |
| 771 | 771 |
| r1711 | r1712 | |
|---|---|---|
| 353 | 353 | MDRV_NVRAM_HANDLER(atarigen) |
| 354 | 354 | |
| 355 | 355 | /* video hardware */ |
| 356 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 356 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 357 | 357 | MDRV_GFXDECODE(arcadecl) |
| 358 | 358 | MDRV_PALETTE_LENGTH(512) |
| 359 | 359 | |
| 360 | MDRV_SCREEN_ADD("main", | |
| 360 | MDRV_SCREEN_ADD("main", RASTER) | |
| 361 | 361 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 362 | 362 | /* note: these parameters are from published specs, not derived */ |
| 363 | 363 | /* the board uses an SOS-2 chip to generate video signals */ |
| r1711 | r1712 | |
|---|---|---|
| 757 | 757 | |
| 758 | 758 | NAMCO_C7X_MCU(MASTER_CLOCK_HZ/3) |
| 759 | 759 | |
| 760 | MDRV_NVRAM_HANDLER(namconb1) | |
| 761 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 762 | ||
| 763 | MDRV_SCREEN_ADD("main", RASTER) | |
| 760 | 764 | MDRV_SCREEN_REFRESH_RATE(59.7) |
| 761 | MDRV_NVRAM_HANDLER(namconb1) | |
| 762 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER|VIDEO_HAS_SHADOWS) | |
| 763 | 765 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 764 | 766 | MDRV_SCREEN_SIZE(NAMCONB1_HTOTAL, NAMCONB1_VTOTAL) |
| 765 | 767 | MDRV_SCREEN_VISIBLE_AREA(0, NAMCONB1_HBSTART-1, 0, NAMCONB1_VBSTART-1) |
| 768 | ||
| 766 | 769 | MDRV_GFXDECODE(namconb1) |
| 767 | 770 | MDRV_PALETTE_LENGTH(0x2000) |
| 768 | 771 | MDRV_VIDEO_START(namconb1) |
| r1711 | r1712 | |
| 778 | 781 | |
| 779 | 782 | NAMCO_C7X_MCU(MASTER_CLOCK_HZ/3) |
| 780 | 783 | |
| 784 | MDRV_NVRAM_HANDLER(namconb1) | |
| 785 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 786 | ||
| 787 | MDRV_SCREEN_ADD("main", RASTER) | |
| 781 | 788 | MDRV_SCREEN_REFRESH_RATE(59.7) |
| 782 | MDRV_NVRAM_HANDLER(namconb1) | |
| 783 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER|VIDEO_HAS_SHADOWS) | |
| 784 | 789 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 785 | 790 | MDRV_SCREEN_SIZE(NAMCONB1_HTOTAL, NAMCONB1_VTOTAL) |
| 786 | 791 | MDRV_SCREEN_VISIBLE_AREA(0, NAMCONB1_HBSTART-1, 0, NAMCONB1_VBSTART-1) |
| 792 | ||
| 787 | 793 | MDRV_GFXDECODE(2) |
| 788 | 794 | MDRV_PALETTE_LENGTH(0x2000) |
| 789 | 795 | MDRV_VIDEO_START(namconb2) |
| r1711 | r1712 | |
|---|---|---|
| 694 | 694 | MDRV_CPU_ADD(M68705,4000000) /* ??? */ |
| 695 | 695 | MDRV_CPU_PROGRAM_MAP(flstory_m68705_map,0) |
| 696 | 696 | |
| 697 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 698 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 699 | 697 | MDRV_INTERLEAVE(100) /* 100 CPU slices per frame - an high value to ensure proper */ |
| 700 | 698 | /* synchronization of the CPUs */ |
| 701 | 699 | MDRV_MACHINE_RESET(ta7630) |
| 702 | 700 | |
| 703 | 701 | /* video hardware */ |
| 704 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 702 | MDRV_SCREEN_ADD("main", RASTER) | |
| 703 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 704 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 705 | 705 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 706 | 706 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 707 | 707 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 708 | ||
| 708 | 709 | MDRV_GFXDECODE(flstory) |
| 709 | 710 | MDRV_PALETTE_LENGTH(512) |
| 710 | 711 | |
| r1711 | r1712 | |
| 741 | 742 | // MDRV_CPU_ADD(M68705,4000000) /* ??? */ |
| 742 | 743 | // MDRV_CPU_PROGRAM_MAP(m68705_readmem,m68705_writemem) |
| 743 | 744 | |
| 744 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 745 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 746 | 745 | MDRV_INTERLEAVE(100) /* 100 CPU slices per frame - an high value to ensure proper */ |
| 747 | 746 | /* synchronization of the CPUs */ |
| 748 | 747 | MDRV_MACHINE_RESET(ta7630) |
| 749 | 748 | |
| 750 | 749 | /* video hardware */ |
| 751 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 750 | MDRV_SCREEN_ADD("main", RASTER) | |
| 751 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 752 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 752 | 753 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 753 | 754 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 754 | 755 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 756 | ||
| 755 | 757 | MDRV_GFXDECODE(flstory) |
| 756 | 758 | MDRV_PALETTE_LENGTH(512) |
| 757 | 759 | |
| r1711 | r1712 | |
| 788 | 790 | // MDRV_CPU_ADD(M68705,4000000) /* ??? */ |
| 789 | 791 | // MDRV_CPU_PROGRAM_MAP(m68705_readmem,m68705_writemem) |
| 790 | 792 | |
| 791 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 792 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 793 | 793 | MDRV_INTERLEAVE(100) /* 100 CPU slices per frame - an high value to ensure proper */ |
| 794 | 794 | /* synchronization of the CPUs */ |
| 795 | 795 | MDRV_MACHINE_RESET(ta7630) |
| 796 | 796 | |
| 797 | 797 | /* video hardware */ |
| 798 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 798 | MDRV_SCREEN_ADD("main", RASTER) | |
| 799 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 800 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 799 | 801 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 800 | 802 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 801 | 803 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 804 | ||
| 802 | 805 | MDRV_GFXDECODE(flstory) |
| 803 | 806 | MDRV_PALETTE_LENGTH(512) |
| 804 | 807 |
| r1711 | r1712 | |
|---|---|---|
| 172 | 172 | tilemap_set_enable(cps1_bg_tilemap[2],1); |
| 173 | 173 | |
| 174 | 174 | /* Blank screen */ |
| 175 | fillbitmap(bitmap, | |
| 175 | fillbitmap(bitmap, | |
| 176 | 176 | |
| 177 | 177 | fillbitmap(priority_bitmap,0,cliprect); |
| 178 | 178 | l0 = (layercontrol >> 0x06) & 03; |
| r1711 | r1712 | |
| 330 | 330 | // /* audio CPU */ |
| 331 | 331 | // MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 332 | 332 | |
| 333 | /* video hardware */ | |
| 334 | MDRV_SCREEN_ADD("main", RASTER) | |
| 333 | 335 | MDRV_SCREEN_REFRESH_RATE(60) |
| 334 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 335 | ||
| 336 | /* video hardware */ | |
| 337 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 336 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 338 | 337 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 339 | 338 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 340 | 339 | MDRV_SCREEN_VISIBLE_AREA(8*8, (64-8)*8-1, 2*8, 30*8-1 ) |
| 340 | ||
| 341 | 341 | MDRV_GFXDECODE(cps1) |
| 342 | 342 | MDRV_PALETTE_LENGTH(4096) |
| 343 | 343 |
| r1711 | r1712 | |
|---|---|---|
| 336 | 336 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 337 | 337 | MDRV_CPU_IO_MAP(suprslam_sound_readport,suprslam_sound_writeport) |
| 338 | 338 | |
| 339 | MDRV_GFXDECODE(suprslam) | |
| 340 | ||
| 341 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_AFTER_VBLANK) | |
| 342 | ||
| 343 | MDRV_SCREEN_ADD("main", RASTER) | |
| 339 | 344 | MDRV_SCREEN_REFRESH_RATE(60) |
| 340 | 345 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2300) /* hand-tuned */) |
| 341 | ||
| 342 | MDRV_GFXDECODE(suprslam) | |
| 343 | ||
| 344 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_AFTER_VBLANK) | |
| 345 | 346 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 346 | 347 | MDRV_SCREEN_SIZE(64*8, 64*8) |
| 347 | 348 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 28*8-1) |
| 349 | ||
| 348 | 350 | MDRV_PALETTE_LENGTH(0x800) |
| 349 | 351 | |
| 350 | 352 | MDRV_VIDEO_START(suprslam) |
| r1711 | r1712 | |
|---|---|---|
| 149 | 149 | MDRV_CPU_IO_MAP(mosaicf2_io,0) |
| 150 | 150 | MDRV_CPU_VBLANK_INT(irq0_line_hold, 1) |
| 151 | 151 | |
| 152 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 153 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 154 | ||
| 155 | 152 | MDRV_NVRAM_HANDLER(93C46) |
| 156 | 153 | |
| 157 | 154 | /* video hardware */ |
| 158 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 155 | MDRV_SCREEN_ADD("main", RASTER) | |
| 156 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 157 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 159 | 158 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) |
| 160 | 159 | MDRV_SCREEN_SIZE(512, 512) |
| 161 | 160 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 223) |
| r1711 | r1712 | |
|---|---|---|
| 343 | 343 | MDRV_CPU_PROGRAM_MAP(strnskil_readmem2,strnskil_writemem2) |
| 344 | 344 | MDRV_CPU_VBLANK_INT(irq0_line_hold,2) |
| 345 | 345 | |
| 346 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 347 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 348 | 346 | MDRV_INTERLEAVE(100) |
| 349 | 347 | |
| 350 | 348 | /* video hardware */ |
| 351 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 349 | MDRV_SCREEN_ADD("main", RASTER) | |
| 350 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 351 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 352 | 352 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 353 | 353 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 354 | 354 | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 2*8, 30*8-1) |
| 355 | ||
| 355 | 356 | MDRV_GFXDECODE(strnskil) |
| 356 | 357 | MDRV_PALETTE_LENGTH(1024) |
| 357 | 358 |
| r1711 | r1712 | |
|---|---|---|
| 88 | 88 | //MDRV_CPU_PROGRAM_MAP(readmem2,writemem2) |
| 89 | 89 | // MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 90 | 90 | |
| 91 | MDRV_SCREEN_ADD("main", RASTER) | |
| 91 | 92 | MDRV_SCREEN_REFRESH_RATE(60) |
| 92 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 93 | ||
| 94 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 93 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 95 | 94 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 96 | 95 | MDRV_SCREEN_SIZE(256, 256) |
| 97 | 96 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0, 256-1) |
| 97 | ||
| 98 | 98 | //MDRV_GFXDECODE(sfkick) // GFX don't seem to be tile based |
| 99 | 99 | MDRV_PALETTE_LENGTH(0x100) |
| 100 | 100 |
| r1711 | r1712 | |
|---|---|---|
| 360 | 360 | MDRV_NVRAM_HANDLER(generic_1fill) |
| 361 | 361 | |
| 362 | 362 | /* video hardware */ |
| 363 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 364 | 363 | MDRV_GFXDECODE(atetris) |
| 365 | 364 | MDRV_PALETTE_LENGTH(256) |
| 366 | 365 | |
| 367 | MDRV_SCREEN_ADD("main", | |
| 366 | MDRV_SCREEN_ADD("main", RASTER) | |
| 368 | 367 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 369 | 368 | /* note: these parameters are from published specs, not derived */ |
| 370 | 369 | /* the board uses an SOS-2 chip to generate video signals */ |
| r1711 | r1712 | |
| 392 | 391 | MDRV_CPU_ADD(M6502,BOOTLEG_CLOCK/8) |
| 393 | 392 | MDRV_CPU_PROGRAM_MAP(atetrsb2_map,0) |
| 394 | 393 | |
| 395 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 396 | ||
| 397 | 394 | MDRV_MACHINE_START(atetris) |
| 398 | 395 | MDRV_MACHINE_RESET(atetris) |
| 399 | 396 | MDRV_NVRAM_HANDLER(generic_1fill) |
| 400 | 397 | |
| 401 | 398 | /* video hardware */ |
| 402 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 403 | 399 | MDRV_GFXDECODE(atetris) |
| 404 | 400 | MDRV_PALETTE_LENGTH(256) |
| 405 | 401 | |
| 406 | MDRV_SCREEN_ADD("main", | |
| 402 | MDRV_SCREEN_ADD("main", RASTER) | |
| 407 | 403 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 408 | 404 | /* note: these parameters are from published specs, not derived */ |
| 409 | 405 | /* the board uses an SOS-2 chip to generate video signals */ |
| r1711 | r1712 | |
|---|---|---|
| 327 | 327 | running at 16.9MHz |
| 328 | 328 | */ |
| 329 | 329 | |
| 330 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 331 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 332 | ||
| 333 | 330 | MDRV_NVRAM_HANDLER(flashroms) |
| 334 | 331 | |
| 335 | 332 | /* video hardware */ |
| 336 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 333 | MDRV_SCREEN_ADD("main", RASTER) | |
| 334 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 335 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 337 | 336 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) |
| 338 | 337 | MDRV_SCREEN_SIZE(512, 256) |
| 339 | 338 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 239) |
| 339 | ||
| 340 | 340 | MDRV_PALETTE_LENGTH(32768) |
| 341 | 341 | |
| 342 | 342 | MDRV_VIDEO_START(dgpix) |
| r1711 | r1712 | |
|---|---|---|
| 989 | 989 | /* basic machine hardware */ |
| 990 | 990 | MDRV_CPU_ADD_TAG("main", Z80,10816000/6) /* 1.802 MHz*/ |
| 991 | 991 | |
| 992 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 993 | ||
| 994 | 992 | /* video hardware */ |
| 995 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 993 | MDRV_SCREEN_ADD("main", RASTER) | |
| 994 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 996 | 995 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 997 | 996 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 998 | 997 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 4*8, 28*8-1) |
| r1711 | r1712 | |
| 1057 | 1056 | MDRV_CPU_IO_MAP(cosmicg_readport,cosmicg_writeport) |
| 1058 | 1057 | MDRV_CPU_VBLANK_INT(cosmicg_interrupt,1) |
| 1059 | 1058 | |
| 1060 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1061 | ||
| 1062 | 1059 | /* video hardware */ |
| 1063 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1060 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1061 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1064 | 1062 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1065 | 1063 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 1066 | 1064 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 4*8, 28*8-1) |
| 1065 | ||
| 1067 | 1066 | MDRV_PALETTE_LENGTH(16) |
| 1068 | 1067 | |
| 1069 | 1068 | MDRV_PALETTE_INIT(cosmicg) |
| r1711 | r1712 | |
|---|---|---|
| 237 | 237 | MDRV_CPU_IO_MAP(readport_pzlestar,writeport_pzlestar) |
| 238 | 238 | MDRV_CPU_VBLANK_INT(sangho_interrupt,262) |
| 239 | 239 | |
| 240 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 241 | ||
| 242 | MDRV_SCREEN_ADD("main", RASTER) | |
| 240 | 243 | MDRV_SCREEN_REFRESH_RATE(60) |
| 241 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 242 | ||
| 243 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK | VIDEO_TYPE_RASTER) | |
| 244 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 244 | 245 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 245 | 246 | MDRV_SCREEN_SIZE(512 + 32, (212 + 28) * 2) |
| 246 | 247 | MDRV_SCREEN_VISIBLE_AREA(0, 512 + 32 - 1, 0, (212 + 28) * 2 - 1) |
| 248 | ||
| 247 | 249 | MDRV_PALETTE_LENGTH(512) |
| 248 | MDRV_COLORTABLE_LENGTH(512) | |
| 249 | 250 | |
| 250 | 251 | MDRV_MACHINE_RESET(pzlestar) |
| 251 | 252 | |
| r1711 | r1712 | |
| 269 | 270 | MDRV_CPU_IO_MAP(readport_sexyboom,writeport_sexyboom) |
| 270 | 271 | MDRV_CPU_VBLANK_INT(sangho_interrupt,262) |
| 271 | 272 | |
| 273 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 274 | ||
| 275 | MDRV_SCREEN_ADD("main", RASTER) | |
| 272 | 276 | MDRV_SCREEN_REFRESH_RATE(60) |
| 273 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 274 | ||
| 275 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK | VIDEO_TYPE_RASTER) | |
| 277 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 276 | 278 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 277 | 279 | MDRV_SCREEN_SIZE(512 + 32, (212 + 28) * 2) |
| 278 | 280 | MDRV_SCREEN_VISIBLE_AREA(0, 512 + 32 - 1, 0, (212 + 28) * 2 - 1) |
| 281 | ||
| 279 | 282 | MDRV_PALETTE_LENGTH(512) |
| 280 | MDRV_COLORTABLE_LENGTH(512) | |
| 281 | 283 | |
| 282 | 284 | MDRV_MACHINE_RESET(sexyboom) |
| 283 | 285 |
| r1711 | r1712 | |
|---|---|---|
| 222 | 222 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 223 | 223 | MDRV_CPU_VBLANK_INT(shaolins_interrupt,16) /* 1 IRQ + 8 NMI */ |
| 224 | 224 | |
| 225 | /* video hardware */ | |
| 226 | MDRV_SCREEN_ADD("main", RASTER) | |
| 225 | 227 | MDRV_SCREEN_REFRESH_RATE(60) |
| 226 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 227 | ||
| 228 | /* video hardware */ | |
| 229 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 228 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 230 | 229 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 231 | 230 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 232 | 231 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 232 | ||
| 233 | 233 | MDRV_GFXDECODE(shaolins) |
| 234 | 234 | MDRV_PALETTE_LENGTH(16*8*16+16*8*16) |
| 235 | 235 |
| r1711 | r1712 | |
|---|---|---|
| 1798 | 1798 | MDRV_CPU_CONFIG(tgp_config) |
| 1799 | 1799 | MDRV_CPU_PROGRAM_MAP(copro_tgp_map, 0) |
| 1800 | 1800 | |
| 1801 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1802 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1803 | ||
| 1804 | 1801 | MDRV_MACHINE_RESET(model2o) |
| 1805 | 1802 | MDRV_NVRAM_HANDLER( model2 ) |
| 1806 | 1803 | |
| 1807 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_AFTER_VBLANK ) | |
| 1804 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_AFTER_VBLANK ) | |
| 1805 | ||
| 1806 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1807 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1808 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1808 | 1809 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 1809 | 1810 | MDRV_SCREEN_SIZE(62*8, 48*8) |
| 1810 | 1811 | MDRV_SCREEN_VISIBLE_AREA(0*8, 62*8-1, 0*8, 48*8-1) |
| 1812 | ||
| 1811 | 1813 | MDRV_PALETTE_LENGTH(8192) |
| 1812 | 1814 | |
| 1813 | 1815 | MDRV_VIDEO_START(model2) |
| r1711 | r1712 | |
| 1843 | 1845 | MDRV_CPU_CONFIG(tgp_config) |
| 1844 | 1846 | MDRV_CPU_PROGRAM_MAP(copro_tgp_map, 0) |
| 1845 | 1847 | |
| 1846 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1847 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1848 | ||
| 1849 | 1848 | MDRV_MACHINE_RESET(model2) |
| 1850 | 1849 | MDRV_NVRAM_HANDLER( model2 ) |
| 1851 | 1850 | |
| 1852 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_AFTER_VBLANK ) | |
| 1851 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_AFTER_VBLANK ) | |
| 1852 | ||
| 1853 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1854 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1855 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1853 | 1856 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 1854 | 1857 | MDRV_SCREEN_SIZE(62*8, 48*8) |
| 1855 | 1858 | MDRV_SCREEN_VISIBLE_AREA(0*8, 62*8-1, 0*8, 48*8-1) |
| 1859 | ||
| 1856 | 1860 | MDRV_PALETTE_LENGTH(8192) |
| 1857 | 1861 | |
| 1858 | 1862 | MDRV_VIDEO_START(model2) |
| r1711 | r1712 | |
| 1891 | 1895 | |
| 1892 | 1896 | MDRV_INTERLEAVE(300) |
| 1893 | 1897 | |
| 1894 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1895 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1896 | ||
| 1897 | 1898 | MDRV_MACHINE_RESET(model2b) |
| 1898 | 1899 | MDRV_NVRAM_HANDLER( model2 ) |
| 1899 | 1900 | |
| 1900 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_AFTER_VBLANK ) | |
| 1901 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_AFTER_VBLANK ) | |
| 1902 | ||
| 1903 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1904 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1905 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1901 | 1906 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 1902 | 1907 | MDRV_SCREEN_SIZE(62*8, 48*8) |
| 1903 | 1908 | MDRV_SCREEN_VISIBLE_AREA(0*8, 62*8-1, 0*8, 48*8-1) |
| 1909 | ||
| 1904 | 1910 | MDRV_PALETTE_LENGTH(8192) |
| 1905 | 1911 | |
| 1906 | 1912 | MDRV_VIDEO_START(model2) |
| r1711 | r1712 | |
| 1923 | 1929 | MDRV_CPU_ADD(M68000, 12000000) |
| 1924 | 1930 | MDRV_CPU_PROGRAM_MAP(model2_snd, 0) |
| 1925 | 1931 | |
| 1926 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1927 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1928 | ||
| 1929 | 1932 | MDRV_MACHINE_RESET(model2c) |
| 1930 | 1933 | MDRV_NVRAM_HANDLER( model2 ) |
| 1931 | 1934 | |
| 1932 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_AFTER_VBLANK ) | |
| 1935 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_AFTER_VBLANK ) | |
| 1936 | ||
| 1937 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1938 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1939 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1933 | 1940 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 1934 | 1941 | MDRV_SCREEN_SIZE(62*8, 48*8) |
| 1935 | 1942 | MDRV_SCREEN_VISIBLE_AREA(0*8, 62*8-1, 0*8, 48*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 496 | 496 | MDRV_CPU_ADD_TAG("main", M68000, 21477270/2 ) |
| 497 | 497 | MDRV_CPU_PROGRAM_MAP(bmcbowl_mem,0) |
| 498 | 498 | MDRV_CPU_VBLANK_INT(bmc_interrupt,2) |
| 499 | ||
| 500 | ||
| 501 | MDRV_SCREEN_ADD("main", RASTER) | |
| 499 | 502 | MDRV_SCREEN_REFRESH_RATE(60) |
| 500 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 501 | ||
| 502 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 503 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 503 | 504 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 504 | 505 | MDRV_SCREEN_SIZE(35*8, 30*8) |
| 505 | 506 | MDRV_SCREEN_VISIBLE_AREA(0*8, 35*8-1, 0*8, 29*8-1) |
| 507 | ||
| 506 | 508 | MDRV_PALETTE_LENGTH(256) |
| 507 | 509 | |
| 508 | 510 | MDRV_VIDEO_START(bmcbowl) |
| r1711 | r1712 | |
|---|---|---|
| 348 | 348 | /* audio CPU */ |
| 349 | 349 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 350 | 350 | |
| 351 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 352 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529)) | |
| 353 | 351 | MDRV_MACHINE_RESET(sshangha) /* init machine */ |
| 354 | 352 | |
| 355 | 353 | /* video hardware */ |
| 356 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER /*| VIDEO_BUFFERS_SPRITERAM*/) | |
| 354 | /*MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM)*/ | |
| 355 | ||
| 356 | MDRV_SCREEN_ADD("main", RASTER) | |
| 357 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 358 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529)) | |
| 357 | 359 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 358 | 360 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 359 | 361 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 362 | ||
| 360 | 363 | MDRV_GFXDECODE(sshangha) |
| 361 | 364 | MDRV_PALETTE_LENGTH(4096) |
| 362 | 365 |
| r1711 | r1712 | |
|---|---|---|
| 317 | 317 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 318 | 318 | MDRV_CPU_PERIODIC_INT(irq0_line_hold,120) /* periodic interrupt, don't know about the frequency */ |
| 319 | 319 | |
| 320 | /* video hardware */ | |
| 321 | MDRV_SCREEN_ADD("main", RASTER) | |
| 320 | 322 | MDRV_SCREEN_REFRESH_RATE(60) |
| 321 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 322 | ||
| 323 | /* video hardware */ | |
| 324 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 323 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 325 | 324 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 326 | 325 | MDRV_SCREEN_SIZE(36*8, 28*8) |
| 327 | 326 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 0*8, 28*8-1) |
| 327 | ||
| 328 | 328 | MDRV_GFXDECODE(wiping) |
| 329 | 329 | MDRV_PALETTE_LENGTH(64*4+64*4) |
| 330 | 330 |
| r1711 | r1712 | |
|---|---|---|
| 503 | 503 | MDRV_CPU_IO_MAP(gyrodine_sub_portmap,0) |
| 504 | 504 | MDRV_CPU_VBLANK_INT(irq0_line_hold,4) |
| 505 | 505 | |
| 506 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 507 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 508 | 506 | MDRV_INTERLEAVE(100) |
| 509 | 507 | |
| 510 | 508 | MDRV_MACHINE_RESET(kyugo) |
| 511 | 509 | |
| 512 | 510 | /* video hardware */ |
| 513 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 511 | MDRV_SCREEN_ADD("main", RASTER) | |
| 512 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 513 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 514 | 514 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 515 | 515 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 516 | 516 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 2*8, 30*8-1) |
| 517 | ||
| 517 | 518 | MDRV_GFXDECODE(kyugo) |
| 518 | 519 | MDRV_PALETTE_LENGTH(256) |
| 519 | 520 |
| r1711 | r1712 | |
|---|---|---|
| 88 | 88 | MDRV_CPU_PROGRAM_MAP(readmem2,writemem2) |
| 89 | 89 | // MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 90 | 90 | |
| 91 | /* video hardware */ | |
| 92 | MDRV_SCREEN_ADD("main", RASTER) | |
| 91 | 93 | MDRV_SCREEN_REFRESH_RATE(60) |
| 92 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 93 | ||
| 94 | /* video hardware */ | |
| 95 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 94 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 96 | 95 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 97 | 96 | MDRV_SCREEN_SIZE(256, 256) |
| 98 | 97 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 16, 256-16-1) |
| 98 | ||
| 99 | 99 | MDRV_PALETTE_LENGTH(0x100) |
| 100 | 100 | |
| 101 | 101 | MDRV_VIDEO_START(mjsiyoub) |
| r1711 | r1712 | |
|---|---|---|
| 622 | 622 | MDRV_CPU_IO_MAP(lazercmd_portmap,0) |
| 623 | 623 | MDRV_CPU_VBLANK_INT(lazercmd_timer, 128) /* 7680 Hz */ |
| 624 | 624 | |
| 625 | /* video hardware */ | |
| 626 | MDRV_SCREEN_ADD("main", RASTER) | |
| 625 | 627 | MDRV_SCREEN_REFRESH_RATE(60) |
| 626 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 627 | ||
| 628 | /* video hardware */ | |
| 629 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 628 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 630 | 629 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 631 | 630 | MDRV_SCREEN_SIZE(HORZ_RES * HORZ_CHR, VERT_RES * VERT_CHR) |
| 632 | 631 | MDRV_SCREEN_VISIBLE_AREA(0 * HORZ_CHR, HORZ_RES * HORZ_CHR - 1, |
| 633 | 632 | 0 * VERT_CHR, (VERT_RES - 1) * VERT_CHR - 1) |
| 633 | ||
| 634 | 634 | MDRV_GFXDECODE(lazercmd) |
| 635 | 635 | MDRV_PALETTE_LENGTH(5) |
| 636 | 636 | |
| r1711 | r1712 | |
| 657 | 657 | MDRV_CPU_IO_MAP(lazercmd_portmap,0) |
| 658 | 658 | MDRV_CPU_VBLANK_INT(lazercmd_timer, 128) /* 7680 Hz */ |
| 659 | 659 | |
| 660 | /* video hardware */ | |
| 661 | MDRV_SCREEN_ADD("main", RASTER) | |
| 660 | 662 | MDRV_SCREEN_REFRESH_RATE(60) |
| 661 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 662 | ||
| 663 | /* video hardware */ | |
| 664 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 663 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 665 | 664 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 666 | 665 | MDRV_SCREEN_SIZE(HORZ_RES * HORZ_CHR, VERT_RES * VERT_CHR) |
| 667 | 666 | MDRV_SCREEN_VISIBLE_AREA(0 * HORZ_CHR, HORZ_RES * HORZ_CHR - 1, |
| 668 | 667 | 0 * VERT_CHR, VERT_RES * VERT_CHR - 1) |
| 668 | ||
| 669 | 669 | MDRV_GFXDECODE(lazercmd) |
| 670 | 670 | MDRV_PALETTE_LENGTH(5) |
| 671 | 671 | |
| r1711 | r1712 | |
| 692 | 692 | MDRV_CPU_IO_MAP(lazercmd_portmap,0) |
| 693 | 693 | MDRV_CPU_VBLANK_INT(bbonk_timer, 128) /* 7680 Hz */ |
| 694 | 694 | |
| 695 | /* video hardware */ | |
| 696 | MDRV_SCREEN_ADD("main", RASTER) | |
| 695 | 697 | MDRV_SCREEN_REFRESH_RATE(60) |
| 696 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 697 | ||
| 698 | /* video hardware */ | |
| 699 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 698 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 700 | 699 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 701 | 700 | MDRV_SCREEN_SIZE(HORZ_RES * HORZ_CHR, VERT_RES * VERT_CHR) |
| 702 | 701 | MDRV_SCREEN_VISIBLE_AREA(0 * HORZ_CHR, HORZ_RES * HORZ_CHR - 1, |
| 703 | 702 | 0 * VERT_CHR, (VERT_RES - 1) * VERT_CHR - 1) |
| 703 | ||
| 704 | 704 | MDRV_GFXDECODE(lazercmd) |
| 705 | 705 | MDRV_PALETTE_LENGTH(5) |
| 706 | 706 |
| r1711 | r1712 | |
|---|---|---|
| 441 | 441 | }; |
| 442 | 442 | |
| 443 | 443 | static GFXDECODE_START( popeye ) |
| 444 | GFXDECODE_ENTRY( REGION_GFX1, 0, charlayout, 0, 16 ) /* chars */ | |
| 445 | GFXDECODE_ENTRY( REGION_GFX2, 0, spritelayout, 16*2, 64 ) /* sprites */ | |
| 444 | GFXDECODE_ENTRY( REGION_GFX1, 0, charlayout, 16, 16 ) /* chars */ | |
| 445 | GFXDECODE_ENTRY( REGION_GFX2, 0, spritelayout, 16+16*2, 64 ) /* sprites */ | |
| 446 | 446 | GFXDECODE_END |
| 447 | 447 | |
| 448 | 448 | |
| r1711 | r1712 | |
| 486 | 486 | MDRV_CPU_IO_MAP(readport,writeport) |
| 487 | 487 | MDRV_CPU_VBLANK_INT(popeye_interrupt,1) |
| 488 | 488 | |
| 489 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 490 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 491 | ||
| 492 | 489 | /* video hardware */ |
| 493 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 490 | MDRV_SCREEN_ADD("main", RASTER) | |
| 491 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 492 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 494 | 493 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 495 | 494 | MDRV_SCREEN_SIZE(32*16, 32*16) |
| 496 | 495 | MDRV_SCREEN_VISIBLE_AREA(0*16, 32*16-1, 2*16, 30*16-1) |
| 496 | ||
| 497 | 497 | MDRV_GFXDECODE(popeye) |
| 498 | MDRV_PALETTE_LENGTH(16+16+256) | |
| 499 | MDRV_COLORTABLE_LENGTH(16*2+64*4) | |
| 498 | MDRV_PALETTE_LENGTH(16+16*2+64*4) | |
| 500 | 499 | |
| 501 | 500 | MDRV_PALETTE_INIT(popeye) |
| 502 | 501 | MDRV_VIDEO_START(skyskipr) |
| r1711 | r1712 | |
|---|---|---|
| 391 | 391 | MDRV_CPU_IO_MAP(gstream_io,0) |
| 392 | 392 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 393 | 393 | |
| 394 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 395 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 396 | ||
| 397 | 394 | /* video hardware */ |
| 398 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 395 | MDRV_SCREEN_ADD("main", RASTER) | |
| 396 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 397 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 399 | 398 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 400 | 399 | MDRV_SCREEN_SIZE(320, 240) |
| 401 | 400 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 239) |
| r1711 | r1712 | |
|---|---|---|
| 173 | 173 | MDRV_CPU_IO_MAP(readport,writeport) |
| 174 | 174 | MDRV_CPU_VBLANK_INT(irq0_line_hold,4) |
| 175 | 175 | |
| 176 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 177 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 178 | ||
| 179 | 176 | /* video hardware */ |
| 180 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 177 | MDRV_SCREEN_ADD("main", RASTER) | |
| 178 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 179 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 181 | 180 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 182 | 181 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 183 | 182 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 373 | 373 | MDRV_CPU_IO_MAP(readport3,writeport3) |
| 374 | 374 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) /* ??? */ |
| 375 | 375 | |
| 376 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 377 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 378 | 376 | MDRV_INTERLEAVE(100) /* 100 CPU slices per frame - an high value to ensure proper */ |
| 379 | 377 | /* synchronization of the CPUs */ |
| 380 | 378 | MDRV_MACHINE_RESET(taxidrvr) |
| 381 | 379 | |
| 382 | 380 | /* video hardware */ |
| 383 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 381 | MDRV_SCREEN_ADD("main", RASTER) | |
| 382 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 383 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 384 | 384 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 385 | 385 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 386 | 386 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 27*8-1) |
| 387 | ||
| 387 | 388 | MDRV_GFXDECODE(taxidrvr) |
| 388 | 389 | MDRV_PALETTE_LENGTH(16) |
| 389 | 390 |
| r1711 | r1712 | |
|---|---|---|
| 460 | 460 | MDRV_CPU_IO_MAP(readport,writeport) |
| 461 | 461 | MDRV_CPU_VBLANK_INT(blockade_interrupt,1) |
| 462 | 462 | |
| 463 | /* video hardware */ | |
| 464 | MDRV_SCREEN_ADD("main", RASTER) | |
| 463 | 465 | MDRV_SCREEN_REFRESH_RATE(60) |
| 464 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 465 | ||
| 466 | /* video hardware */ | |
| 467 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 466 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 468 | 467 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 469 | 468 | MDRV_SCREEN_SIZE(32*8, 28*8) |
| 470 | 469 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 28*8-1) |
| 470 | ||
| 471 | 471 | MDRV_GFXDECODE(blockade) |
| 472 | 472 | MDRV_PALETTE_LENGTH(2) |
| 473 | 473 |
| r1711 | r1712 | |
|---|---|---|
| 213 | 213 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 214 | 214 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,1) |
| 215 | 215 | |
| 216 | /* video hardware */ | |
| 217 | MDRV_SCREEN_ADD("main", RASTER) | |
| 216 | 218 | MDRV_SCREEN_REFRESH_RATE(60) |
| 217 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 218 | ||
| 219 | /* video hardware */ | |
| 220 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 219 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 221 | 220 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 222 | 221 | MDRV_SCREEN_SIZE(256, 256) |
| 223 | 222 | MDRV_SCREEN_VISIBLE_AREA(1*8, 32*8-1, 1*8, 31*8-1) |
| 223 | ||
| 224 | 224 | MDRV_PALETTE_LENGTH(0x100) |
| 225 | 225 | MDRV_PALETTE_INIT(compgolf) |
| 226 | 226 | MDRV_GFXDECODE(compgolf) |
| r1711 | r1712 | |
|---|---|---|
| 578 | 578 | |
| 579 | 579 | 6) 'progear' |
| 580 | 580 | |
| 581 | - BUTTON3 doesn't physically exist on the machine and has no effect ingame. | |
| 581 | - BUTTON3 acts like a rapid fire (keep button pressed). | |
| 582 | It has to be enabled in the game settings as it is OFF by default. | |
| 582 | 583 | |
| 583 | 584 | ***************************************************************************/ |
| 584 | 585 | |
| r1711 | r1712 | |
| 1244 | 1245 | MDRV_CPU_PROGRAM_MAP(qsound_readmem,qsound_writemem) |
| 1245 | 1246 | MDRV_CPU_PERIODIC_INT(irq0_line_hold, 251) /* 251 is good (see 'mercy mercy mercy'section of sgemf attract mode for accurate sound sync */ |
| 1246 | 1247 | |
| 1247 | MDRV_SCREEN_REFRESH_RATE(59.633333) | |
| 1248 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1249 | 1248 | // MDRV_INTERLEAVE(262) /* 262 scanlines, for raster effects */ |
| 1250 | 1249 | |
| 1251 | 1250 | MDRV_NVRAM_HANDLER(cps2) |
| 1252 | 1251 | |
| 1253 | 1252 | /* video hardware */ |
| 1254 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 1253 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 1254 | ||
| 1255 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1256 | MDRV_SCREEN_REFRESH_RATE(59.633333) | |
| 1257 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1255 | 1258 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1256 | 1259 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 1257 | 1260 | MDRV_SCREEN_VISIBLE_AREA(8*8, (64-8)*8-1, 2*8, 30*8-1 ) |
| 1261 | ||
| 1258 | 1262 | MDRV_GFXDECODE(cps2) |
| 1259 | 1263 | MDRV_PALETTE_LENGTH(4096) |
| 1260 | 1264 |
| r1711 | r1712 | |
|---|---|---|
| 444 | 444 | MDRV_CPU_PROGRAM_MAP(lordgun_soundmem_map,0) |
| 445 | 445 | MDRV_CPU_IO_MAP(lordgun_soundio_map,0) |
| 446 | 446 | |
| 447 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 448 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 449 | ||
| 450 | 447 | MDRV_MACHINE_RESET(lordgun) |
| 451 | 448 | |
| 452 | 449 | MDRV_NVRAM_HANDLER(93C46) |
| 453 | 450 | |
| 454 | 451 | MDRV_GFXDECODE(lordgun) |
| 455 | 452 | |
| 456 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 453 | ||
| 454 | MDRV_SCREEN_ADD("main", RASTER) | |
| 455 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 456 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 457 | 457 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 458 | 458 | MDRV_SCREEN_SIZE(0x200, 0x100) |
| 459 | 459 | MDRV_SCREEN_VISIBLE_AREA(0,0x1c0-1, 0,0xe0-1) |
| 460 | ||
| 460 | 461 | MDRV_PALETTE_LENGTH(0x800) |
| 461 | 462 | |
| 462 | 463 | MDRV_VIDEO_START(lordgun) |
| r1711 | r1712 | |
|---|---|---|
| 281 | 281 | /* audio CPU */ |
| 282 | 282 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 283 | 283 | |
| 284 | /* video hardware */ | |
| 285 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 286 | ||
| 287 | MDRV_SCREEN_ADD("main", RASTER) | |
| 284 | 288 | MDRV_SCREEN_REFRESH_RATE(60) |
| 285 | 289 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529)) |
| 286 | ||
| 287 | /* video hardware */ | |
| 288 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 289 | 290 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 290 | 291 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 291 | 292 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 30*8-1) |
| 293 | ||
| 292 | 294 | MDRV_GFXDECODE(lemmings) |
| 293 | 295 | MDRV_PALETTE_LENGTH(1024) |
| 294 | 296 |
| r1711 | r1712 | |
|---|---|---|
| 446 | 446 | MDRV_CPU_ADD(M68705, 4000000) /* No idea */ |
| 447 | 447 | MDRV_CPU_PROGRAM_MAP(mcu_readmem,mcu_writemem) |
| 448 | 448 | |
| 449 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 450 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 451 | 449 | MDRV_INTERLEAVE(60) |
| 452 | 450 | |
| 453 | 451 | /* video hardware */ |
| 454 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 452 | MDRV_SCREEN_ADD("main", RASTER) | |
| 453 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 454 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 455 | 455 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 456 | 456 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 457 | 457 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 458 | ||
| 458 | 459 | MDRV_GFXDECODE(pushman) |
| 459 | 460 | MDRV_PALETTE_LENGTH(1024) |
| 460 | 461 | |
| r1711 | r1712 | |
| 484 | 485 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 485 | 486 | MDRV_CPU_IO_MAP(0,sound_writeport) |
| 486 | 487 | |
| 487 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 488 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 489 | 488 | MDRV_INTERLEAVE(60) |
| 490 | 489 | |
| 491 | 490 | MDRV_MACHINE_RESET(bballs) |
| 492 | 491 | |
| 493 | 492 | /* video hardware */ |
| 494 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 493 | MDRV_SCREEN_ADD("main", RASTER) | |
| 494 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 495 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 495 | 496 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 496 | 497 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 497 | 498 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 499 | ||
| 498 | 500 | MDRV_GFXDECODE(pushman) |
| 499 | 501 | MDRV_PALETTE_LENGTH(1024) |
| 500 | 502 |
| r1711 | r1712 | |
|---|---|---|
| 199 | 199 | /* audio CPU */ /* 1 MHz ??? */ |
| 200 | 200 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 201 | 201 | |
| 202 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 203 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 204 | 202 | MDRV_INTERLEAVE(10) |
| 205 | 203 | |
| 206 | 204 | /* video hardware */ |
| 207 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 205 | MDRV_SCREEN_ADD("main", RASTER) | |
| 206 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 207 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 208 | 208 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 209 | 209 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 210 | 210 | MDRV_SCREEN_VISIBLE_AREA(1*8, 47*8-1, 2*8, 30*8-1) |
| 211 | ||
| 211 | 212 | MDRV_GFXDECODE(zerozone) |
| 212 | 213 | MDRV_PALETTE_LENGTH(256) |
| 213 | 214 |
| r1711 | r1712 | |
|---|---|---|
| 322 | 322 | MDRV_CPU_IO_MAP(0,sound_writeport) |
| 323 | 323 | MDRV_CPU_VBLANK_INT(espial_sound_nmi_gen,4) |
| 324 | 324 | |
| 325 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 326 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 327 | ||
| 328 | 325 | MDRV_MACHINE_RESET(espial) |
| 329 | 326 | |
| 330 | 327 | /* video hardware */ |
| 331 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 328 | MDRV_SCREEN_ADD("main", RASTER) | |
| 329 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 330 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 332 | 331 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 333 | 332 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 334 | 333 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 334 | ||
| 335 | 335 | MDRV_GFXDECODE(espial) |
| 336 | 336 | MDRV_PALETTE_LENGTH(256) |
| 337 | 337 | |
| r1711 | r1712 | |
| 354 | 354 | MDRV_CPU_PROGRAM_MAP(netwars_readmem,netwars_writemem) |
| 355 | 355 | |
| 356 | 356 | /* video hardware */ |
| 357 | MDRV_SCREEN_MODIFY("main") | |
| 357 | 358 | MDRV_SCREEN_SIZE(32*8, 64*8) |
| 358 | 359 | |
| 359 | 360 | MDRV_VIDEO_START(netwars) |
| r1711 | r1712 | |
|---|---|---|
| 468 | 468 | /* audio CPU */ |
| 469 | 469 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 470 | 470 | |
| 471 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 472 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 473 | ||
| 474 | 471 | MDRV_NVRAM_HANDLER(hyperspt) |
| 475 | 472 | |
| 476 | 473 | /* video hardware */ |
| 477 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 474 | MDRV_SCREEN_ADD("main", RASTER) | |
| 475 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 476 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 478 | 477 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 479 | 478 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 480 | 479 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 480 | ||
| 481 | 481 | MDRV_GFXDECODE(hyperspt) |
| 482 | 482 | MDRV_PALETTE_LENGTH(16*16+16*16) |
| 483 | 483 |
| r1711 | r1712 | |
|---|---|---|
| 279 | 279 | MDRV_CPU_PROGRAM_MAP(tiamc1_readmem,tiamc1_writemem) |
| 280 | 280 | MDRV_CPU_IO_MAP(tiamc1_readport,tiamc1_writeport) |
| 281 | 281 | |
| 282 | MDRV_SCREEN_REFRESH_RATE(50) | |
| 283 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(1600)) | |
| 284 | 282 | MDRV_CPU_VBLANK_INT(irq1_line_hold,1) |
| 285 | 283 | |
| 286 | 284 | MDRV_MACHINE_RESET(tiamc1) |
| 287 | 285 | |
| 288 | 286 | /* video hardware */ |
| 289 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 287 | MDRV_SCREEN_ADD("main", RASTER) | |
| 288 | MDRV_SCREEN_REFRESH_RATE(50) | |
| 289 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(1600)) | |
| 290 | 290 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 291 | 291 | MDRV_SCREEN_SIZE(256, 256) |
| 292 | 292 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0, 256-1) |
| 293 | ||
| 293 | 294 | MDRV_GFXDECODE(tiamc1) |
| 294 | 295 | MDRV_PALETTE_LENGTH(16) |
| 295 | 296 |
| r1711 | r1712 | |
|---|---|---|
| 1229 | 1229 | MDRV_CPU_PROGRAM_MAP(toaplan1_sound_map, 0) |
| 1230 | 1230 | MDRV_CPU_IO_MAP(rallybik_sound_io_map, 0) |
| 1231 | 1231 | |
| 1232 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1233 | 1232 | MDRV_INTERLEAVE(10) |
| 1234 | 1233 | |
| 1235 | 1234 | MDRV_MACHINE_RESET(toaplan1) |
| 1236 | 1235 | |
| 1237 | 1236 | /* video hardware */ |
| 1238 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK | VIDEO_BUFFERS_SPRITERAM) | |
| 1237 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK | VIDEO_BUFFERS_SPRITERAM) | |
| 1238 | ||
| 1239 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1240 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1239 | 1241 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1240 | 1242 | MDRV_SCREEN_SIZE(432, 262) /* copied these from toaplan2, to be verified */ |
| 1241 | 1243 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 239) |
| 1244 | ||
| 1242 | 1245 | MDRV_GFXDECODE(rallybik) |
| 1243 | 1246 | MDRV_PALETTE_LENGTH((64*16)+(64*16)) |
| 1244 | 1247 | |
| r1711 | r1712 | |
| 1266 | 1269 | MDRV_CPU_PROGRAM_MAP(toaplan1_sound_map, 0) |
| 1267 | 1270 | MDRV_CPU_IO_MAP(truxton_sound_io_map, 0) |
| 1268 | 1271 | |
| 1269 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1270 | 1272 | MDRV_INTERLEAVE(10) |
| 1271 | 1273 | |
| 1272 | 1274 | MDRV_MACHINE_RESET(toaplan1) |
| 1273 | 1275 | |
| 1274 | 1276 | /* video hardware */ |
| 1275 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 1277 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 1278 | ||
| 1279 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1280 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1276 | 1281 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1277 | 1282 | MDRV_SCREEN_SIZE(432, 262) /* copied these from toaplan2, to be verified */ |
| 1278 | 1283 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 239) |
| 1284 | ||
| 1279 | 1285 | MDRV_GFXDECODE(toaplan1) |
| 1280 | 1286 | MDRV_PALETTE_LENGTH((64*16)+(64*16)) |
| 1281 | 1287 | |
| r1711 | r1712 | |
| 1303 | 1309 | MDRV_CPU_PROGRAM_MAP(toaplan1_sound_map, 0) |
| 1304 | 1310 | MDRV_CPU_IO_MAP(hellfire_sound_io_map, 0) |
| 1305 | 1311 | |
| 1306 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1307 | 1312 | MDRV_INTERLEAVE(10) |
| 1308 | 1313 | |
| 1309 | 1314 | MDRV_MACHINE_RESET(toaplan1) |
| 1310 | 1315 | |
| 1311 | 1316 | /* video hardware */ |
| 1312 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 1317 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 1318 | ||
| 1319 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1320 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1313 | 1321 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1314 | 1322 | MDRV_SCREEN_SIZE(432, 262) /* copied these from toaplan2, to be verified */ |
| 1315 | 1323 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 16, 255) |
| 1324 | ||
| 1316 | 1325 | MDRV_GFXDECODE(toaplan1) |
| 1317 | 1326 | MDRV_PALETTE_LENGTH((64*16)+(64*16)) |
| 1318 | 1327 | |
| r1711 | r1712 | |
| 1340 | 1349 | MDRV_CPU_PROGRAM_MAP(toaplan1_sound_map, 0) |
| 1341 | 1350 | MDRV_CPU_IO_MAP(zerowing_sound_io_map, 0) |
| 1342 | 1351 | |
| 1343 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1344 | 1352 | MDRV_INTERLEAVE(10) |
| 1345 | 1353 | |
| 1346 | 1354 | MDRV_MACHINE_RESET(zerozone) |
| 1347 | 1355 | |
| 1348 | 1356 | /* video hardware */ |
| 1349 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 1357 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 1358 | ||
| 1359 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1360 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1350 | 1361 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1351 | 1362 | MDRV_SCREEN_SIZE(432, 262) /* copied these from toaplan2, to be verified */ |
| 1352 | 1363 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 16, 255) |
| 1364 | ||
| 1353 | 1365 | MDRV_GFXDECODE(toaplan1) |
| 1354 | 1366 | MDRV_PALETTE_LENGTH((64*16)+(64*16)) |
| 1355 | 1367 | |
| r1711 | r1712 | |
| 1381 | 1393 | MDRV_CPU_PROGRAM_MAP(DSP_program_map,0) |
| 1382 | 1394 | MDRV_CPU_IO_MAP(DSP_io_map,0) |
| 1383 | 1395 | |
| 1384 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1385 | 1396 | MDRV_INTERLEAVE(10) |
| 1386 | 1397 | |
| 1387 | 1398 | MDRV_MACHINE_RESET(demonwld) |
| 1388 | 1399 | |
| 1389 | 1400 | /* video hardware */ |
| 1390 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 1401 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 1402 | ||
| 1403 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1404 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1391 | 1405 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1392 | 1406 | MDRV_SCREEN_SIZE(432, 262) /* copied these from toaplan2, to be verified */ |
| 1393 | 1407 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 16, 255) |
| 1408 | ||
| 1394 | 1409 | MDRV_GFXDECODE(toaplan1) |
| 1395 | 1410 | MDRV_PALETTE_LENGTH((64*16)+(64*16)) |
| 1396 | 1411 | |
| r1711 | r1712 | |
| 1414 | 1429 | MDRV_CPU_PROGRAM_MAP(samesame_main_map, 0) |
| 1415 | 1430 | MDRV_CPU_VBLANK_INT(toaplan1_interrupt,1) |
| 1416 | 1431 | |
| 1417 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1418 | ||
| 1419 | 1432 | MDRV_MACHINE_RESET(toaplan1) |
| 1420 | 1433 | |
| 1421 | 1434 | /* video hardware */ |
| 1422 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 1435 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 1436 | ||
| 1437 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1438 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1423 | 1439 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1424 | 1440 | MDRV_SCREEN_SIZE(432, 262) /* copied these from toaplan2, to be verified */ |
| 1425 | 1441 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 239) |
| 1442 | ||
| 1426 | 1443 | MDRV_GFXDECODE(toaplan1) |
| 1427 | 1444 | MDRV_PALETTE_LENGTH((64*16)+(64*16)) |
| 1428 | 1445 | |
| r1711 | r1712 | |
| 1450 | 1467 | MDRV_CPU_PROGRAM_MAP(toaplan1_sound_map, 0) |
| 1451 | 1468 | MDRV_CPU_IO_MAP(outzone_sound_io_map, 0) |
| 1452 | 1469 | |
| 1453 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1454 | 1470 | MDRV_INTERLEAVE(10) |
| 1455 | 1471 | |
| 1456 | 1472 | MDRV_MACHINE_RESET(zerozone) |
| 1457 | 1473 | |
| 1458 | 1474 | /* video hardware */ |
| 1459 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 1475 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 1476 | ||
| 1477 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1478 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1460 | 1479 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1461 | 1480 | MDRV_SCREEN_SIZE(432, 262) /* copied these from toaplan2, to be verified */ |
| 1462 | 1481 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 239) |
| 1482 | ||
| 1463 | 1483 | MDRV_GFXDECODE(outzone) |
| 1464 | 1484 | MDRV_PALETTE_LENGTH((64*16)+(64*16)) |
| 1465 | 1485 | |
| r1711 | r1712 | |
| 1483 | 1503 | MDRV_CPU_PROGRAM_MAP(vimana_main_map, 0) |
| 1484 | 1504 | MDRV_CPU_VBLANK_INT(toaplan1_interrupt,1) |
| 1485 | 1505 | |
| 1486 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1487 | ||
| 1488 | 1506 | MDRV_MACHINE_RESET(vimana) |
| 1489 | 1507 | |
| 1490 | 1508 | /* video hardware */ |
| 1491 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 1509 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 1510 | ||
| 1511 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1512 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1492 | 1513 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1493 | 1514 | MDRV_SCREEN_SIZE(432, 262) /* copied these from toaplan2, to be verified */ |
| 1494 | 1515 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 239) |
| 1516 | ||
| 1495 | 1517 | MDRV_GFXDECODE(vm) |
| 1496 | 1518 | MDRV_PALETTE_LENGTH((64*16)+(64*16)) |
| 1497 | 1519 |
| r1711 | r1712 | |
|---|---|---|
| 823 | 823 | MDRV_CPU_IO_MAP(main_portmap,0) |
| 824 | 824 | MDRV_CPU_VBLANK_INT(segag80r_vblank_start,1) |
| 825 | 825 | |
| 826 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 827 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 828 | ||
| 829 | 826 | MDRV_MACHINE_START(g80r) |
| 830 | 827 | |
| 831 | 828 | /* video hardware */ |
| 832 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 833 | 829 | MDRV_GFXDECODE(segag80r) |
| 834 | 830 | MDRV_PALETTE_LENGTH(64) |
| 835 | 831 | |
| 836 | MDRV_SCREEN_ADD("main", | |
| 832 | MDRV_SCREEN_ADD("main", RASTER) | |
| 837 | 833 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 838 | 834 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART) |
| 839 | 835 | |
| r1711 | r1712 | |
| 872 | 868 | MDRV_IMPORT_FROM(g80r_base) |
| 873 | 869 | |
| 874 | 870 | /* background board changes */ |
| 875 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_ALWAYS_UPDATE) | |
| 871 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ALWAYS_UPDATE) | |
| 872 | MDRV_SCREEN_MODIFY("main") | |
| 876 | 873 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 877 | 874 | MDRV_GFXDECODE(spaceod) |
| 878 | 875 | MDRV_PALETTE_LENGTH(64+64) |
| r1711 | r1712 | |
|---|---|---|
| 348 | 348 | MDRV_CPU_PROGRAM_MAP(magic10_map,0) |
| 349 | 349 | MDRV_CPU_VBLANK_INT(irq1_line_hold,1) |
| 350 | 350 | |
| 351 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 352 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 353 | ||
| 354 | 351 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 355 | 352 | |
| 356 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 353 | ||
| 354 | MDRV_SCREEN_ADD("main", RASTER) | |
| 355 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 356 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 357 | 357 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 358 | 358 | MDRV_SCREEN_SIZE(64*8, 64*8) |
| 359 | 359 | MDRV_SCREEN_VISIBLE_AREA(0*8, 44*8-1, 2*8, 32*8-1) |
| 360 | ||
| 360 | 361 | MDRV_PALETTE_LENGTH(0x100) |
| 361 | 362 | MDRV_GFXDECODE(magic10) |
| 362 | 363 | |
| r1711 | r1712 | |
| 385 | 386 | MDRV_CPU_MODIFY("cpu") |
| 386 | 387 | MDRV_CPU_PROGRAM_MAP(magic102_map,0) |
| 387 | 388 | |
| 389 | MDRV_SCREEN_MODIFY("main") | |
| 388 | 390 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 0*8, 30*8-1) |
| 389 | 391 | MACHINE_DRIVER_END |
| 390 | 392 |
| r1711 | r1712 | |
|---|---|---|
| 627 | 627 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 628 | 628 | MDRV_CPU_PERIODIC_INT(nmi_line_pulse, 8000) |
| 629 | 629 | |
| 630 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 631 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 632 | 630 | MDRV_MACHINE_RESET(hnayayoi) |
| 633 | 631 | |
| 634 | 632 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 635 | 633 | |
| 636 | 634 | /* video hardware */ |
| 637 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 635 | MDRV_SCREEN_ADD("main", RASTER) | |
| 636 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 637 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 638 | 638 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 639 | 639 | MDRV_SCREEN_SIZE(512, 256) |
| 640 | 640 | MDRV_SCREEN_VISIBLE_AREA(0, 512-1, 0, 256-1) |
| 641 | ||
| 641 | 642 | MDRV_PALETTE_LENGTH(256) |
| 642 | 643 | |
| 643 | 644 | MDRV_PALETTE_INIT(RRRR_GGGG_BBBB) |
| r1711 | r1712 | |
|---|---|---|
| 663 | 663 | int i; |
| 664 | 664 | |
| 665 | 665 | |
| 666 | for (i = 0;i < machine-> | |
| 666 | for (i = 0;i < machine->config->total_colors;i++) | |
| 667 | 667 | { |
| 668 | 668 | int bit0,bit1,bit2,r,g,b; |
| 669 | 669 | |
| r1711 | r1712 | |
| 704 | 704 | for (x = 0;x < 384;x++) |
| 705 | 705 | { |
| 706 | 706 | b &= (HD63484_RAM_SIZE-1); |
| 707 | *BITMAP_ADDR16(bitmap, y, x) = | |
| 707 | *BITMAP_ADDR16(bitmap, y, x) = | |
| 708 | 708 | b++; |
| 709 | 709 | } |
| 710 | 710 | } |
| r1711 | r1712 | |
| 724 | 724 | { |
| 725 | 725 | b &= (HD63484_RAM_SIZE-1); |
| 726 | 726 | if (x <= w && x + sx >= 0 && x+sx < 384) |
| 727 | *BITMAP_ADDR16(bitmap, y, x+sx) = | |
| 727 | *BITMAP_ADDR16(bitmap, y, x+sx) = | |
| 728 | 728 | |
| 729 | 729 | b++; |
| 730 | 730 | } |
| r1711 | r1712 | |
| 988 | 988 | MDRV_CPU_IO_MAP(shanghai_portmap,0) |
| 989 | 989 | MDRV_CPU_VBLANK_INT(shanghai_interrupt,1) |
| 990 | 990 | |
| 991 | /* video hardware */ | |
| 992 | MDRV_SCREEN_ADD("main", RASTER) | |
| 991 | 993 | MDRV_SCREEN_REFRESH_RATE(30) |
| 992 | ||
| 993 | /* video hardware */ | |
| 994 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 995 | 994 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 996 | 995 | MDRV_SCREEN_SIZE(384, 280) |
| 997 | 996 | MDRV_SCREEN_VISIBLE_AREA(0, 384-1, 0, 280-1) |
| 997 | ||
| 998 | 998 | MDRV_PALETTE_LENGTH(256) |
| 999 | 999 | |
| 1000 | 1000 | MDRV_PALETTE_INIT(shanghai) |
| r1711 | r1712 | |
| 1021 | 1021 | MDRV_CPU_IO_MAP(shangha2_portmap,0) |
| 1022 | 1022 | MDRV_CPU_VBLANK_INT(shanghai_interrupt,1) |
| 1023 | 1023 | |
| 1024 | /* video hardware */ | |
| 1025 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1024 | 1026 | MDRV_SCREEN_REFRESH_RATE(30) |
| 1025 | ||
| 1026 | /* video hardware */ | |
| 1027 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1028 | 1027 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1029 | 1028 | MDRV_SCREEN_SIZE(384, 280) |
| 1030 | 1029 | MDRV_SCREEN_VISIBLE_AREA(0, 384-1, 0, 280-1) |
| 1030 | ||
| 1031 | 1031 | MDRV_PALETTE_LENGTH(256) |
| 1032 | 1032 | |
| 1033 | 1033 | MDRV_VIDEO_START(shanghai) |
| r1711 | r1712 | |
| 1054 | 1054 | |
| 1055 | 1055 | SEIBU3A_SOUND_SYSTEM_CPU(14318180/4) |
| 1056 | 1056 | |
| 1057 | MDRV_SCREEN_REFRESH_RATE(30) | |
| 1058 | 1057 | MDRV_INTERLEAVE(200) |
| 1059 | 1058 | |
| 1060 | 1059 | MDRV_MACHINE_RESET(seibu_sound_1) |
| 1061 | 1060 | |
| 1062 | 1061 | /* video hardware */ |
| 1063 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1062 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1063 | MDRV_SCREEN_REFRESH_RATE(30) | |
| 1064 | 1064 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1065 | 1065 | MDRV_SCREEN_SIZE(384, 384) |
| 1066 | 1066 | MDRV_SCREEN_VISIBLE_AREA(0, 384-1, 0, 280-1) |
| 1067 | ||
| 1067 | 1068 | MDRV_PALETTE_LENGTH(256) |
| 1068 | 1069 | |
| 1069 | 1070 | MDRV_VIDEO_START(shanghai) |
| r1711 | r1712 | |
|---|---|---|
| 2331 | 2331 | MDRV_CPU_PROGRAM_MAP(cuebrick_main_map,0) |
| 2332 | 2332 | MDRV_CPU_VBLANK_INT(cuebrick_interrupt,10) |
| 2333 | 2333 | |
| 2334 | /* video hardware */ | |
| 2335 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS | VIDEO_UPDATE_AFTER_VBLANK) | |
| 2336 | ||
| 2337 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2334 | 2338 | MDRV_SCREEN_REFRESH_RATE(60) |
| 2335 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 2336 | ||
| 2337 | /* video hardware */ | |
| 2338 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS | VIDEO_UPDATE_AFTER_VBLANK) | |
| 2339 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 2339 | 2340 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2340 | 2341 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 2341 | 2342 | MDRV_SCREEN_VISIBLE_AREA(13*8, (64-13)*8-1, 2*8, 30*8-1 ) |
| 2343 | ||
| 2342 | 2344 | MDRV_PALETTE_LENGTH(1024) |
| 2343 | 2345 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 2344 | 2346 | |
| r1711 | r1712 | |
| 2365 | 2367 | MDRV_CPU_ADD(Z80, XTAL_3_579545MHz) |
| 2366 | 2368 | MDRV_CPU_PROGRAM_MAP(mia_audio_map,0) |
| 2367 | 2369 | |
| 2370 | /* video hardware */ | |
| 2371 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS) | |
| 2372 | ||
| 2373 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2368 | 2374 | MDRV_SCREEN_REFRESH_RATE(60) |
| 2369 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 2370 | ||
| 2371 | /* video hardware */ | |
| 2372 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS) | |
| 2375 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 2373 | 2376 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2374 | 2377 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 2375 | 2378 | MDRV_SCREEN_VISIBLE_AREA(13*8, (64-13)*8-1, 2*8, 30*8-1 ) |
| 2379 | ||
| 2376 | 2380 | MDRV_PALETTE_LENGTH(1024) |
| 2377 | 2381 | |
| 2378 | 2382 | MDRV_VIDEO_START(mia) |
| r1711 | r1712 | |
| 2411 | 2415 | |
| 2412 | 2416 | MDRV_MACHINE_RESET(tmnt); |
| 2413 | 2417 | |
| 2418 | /* video hardware */ | |
| 2419 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS) | |
| 2420 | ||
| 2421 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2414 | 2422 | MDRV_SCREEN_REFRESH_RATE(60) |
| 2415 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 2416 | ||
| 2417 | /* video hardware */ | |
| 2418 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS) | |
| 2423 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 2419 | 2424 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2420 | 2425 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 2421 | 2426 | MDRV_SCREEN_VISIBLE_AREA(13*8, (64-13)*8-1, 2*8, 30*8-1 ) |
| 2427 | ||
| 2422 | 2428 | MDRV_PALETTE_LENGTH(1024) |
| 2423 | 2429 | |
| 2424 | 2430 | MDRV_VIDEO_START(tmnt) |
| r1711 | r1712 | |
| 2456 | 2462 | MDRV_CPU_ADD(Z80, XTAL_3_579545MHz) |
| 2457 | 2463 | MDRV_CPU_PROGRAM_MAP(punkshot_audio_map,0) |
| 2458 | 2464 | /* NMIs are generated by the 053260 */ |
| 2459 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2460 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 2461 | 2465 | |
| 2462 | 2466 | /* video hardware */ |
| 2463 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS | VIDEO_UPDATE_AFTER_VBLANK) | |
| 2467 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS | VIDEO_UPDATE_AFTER_VBLANK) | |
| 2468 | ||
| 2469 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2470 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2471 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 2464 | 2472 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2465 | 2473 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 2466 | 2474 | MDRV_SCREEN_VISIBLE_AREA(14*8, (64-14)*8-1, 2*8, 30*8-1 ) |
| 2475 | ||
| 2467 | 2476 | MDRV_PALETTE_LENGTH(2048) |
| 2468 | 2477 | |
| 2469 | 2478 | MDRV_VIDEO_START(punkshot) |
| r1711 | r1712 | |
| 2492 | 2501 | MDRV_CPU_ADD(Z80, XTAL_3_579545MHz) |
| 2493 | 2502 | MDRV_CPU_PROGRAM_MAP(lgtnfght_audio_map,0) |
| 2494 | 2503 | |
| 2504 | /* video hardware */ | |
| 2505 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS | VIDEO_UPDATE_AFTER_VBLANK) | |
| 2506 | ||
| 2507 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2495 | 2508 | MDRV_SCREEN_REFRESH_RATE(60) |
| 2496 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 2497 | ||
| 2498 | /* video hardware */ | |
| 2499 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS | VIDEO_UPDATE_AFTER_VBLANK) | |
| 2509 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 2500 | 2510 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2501 | 2511 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 2502 | 2512 | MDRV_SCREEN_VISIBLE_AREA(14*8, (64-14)*8-1, 2*8, 30*8-1 ) |
| 2513 | ||
| 2503 | 2514 | MDRV_PALETTE_LENGTH(2048) |
| 2504 | 2515 | |
| 2505 | 2516 | MDRV_VIDEO_START(lgtnfght) |
| r1711 | r1712 | |
| 2529 | 2540 | MDRV_CPU_ADD(Z80, XTAL_3_579545MHz) |
| 2530 | 2541 | MDRV_CPU_PROGRAM_MAP(ssriders_audio_map,0) |
| 2531 | 2542 | /* NMIs are generated by the 053260 */ |
| 2532 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2533 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 2534 | 2543 | |
| 2535 | 2544 | MDRV_NVRAM_HANDLER(eeprom) |
| 2536 | 2545 | |
| 2537 | 2546 | /* video hardware */ |
| 2538 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS | VIDEO_UPDATE_AFTER_VBLANK) | |
| 2547 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS | VIDEO_UPDATE_AFTER_VBLANK) | |
| 2548 | ||
| 2549 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2550 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2551 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 2539 | 2552 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2540 | 2553 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 2541 | 2554 | MDRV_SCREEN_VISIBLE_AREA(14*8, (64-14)*8-1, 2*8, 30*8-1 ) |
| 2555 | ||
| 2542 | 2556 | MDRV_PALETTE_LENGTH(2048) |
| 2543 | 2557 | |
| 2544 | 2558 | MDRV_VIDEO_START(blswhstl) |
| r1711 | r1712 | |
| 2586 | 2600 | MDRV_CPU_ADD(Z80, XTAL_3_579545MHz) |
| 2587 | 2601 | MDRV_CPU_PROGRAM_MAP(glfgreat_audio_map,0) |
| 2588 | 2602 | /* NMIs are generated by the 053260 */ |
| 2589 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2590 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 2591 | 2603 | |
| 2592 | 2604 | /* video hardware */ |
| 2593 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS | VIDEO_UPDATE_AFTER_VBLANK) | |
| 2605 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS | VIDEO_UPDATE_AFTER_VBLANK) | |
| 2606 | ||
| 2607 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2608 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2609 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 2594 | 2610 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2595 | 2611 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 2596 | 2612 | MDRV_SCREEN_VISIBLE_AREA(14*8, (64-14)*8-1, 2*8, 30*8-1 ) |
| 2613 | ||
| 2597 | 2614 | MDRV_GFXDECODE(glfgreat) |
| 2598 | 2615 | MDRV_PALETTE_LENGTH(2048) |
| 2599 | 2616 | |
| r1711 | r1712 | |
| 2633 | 2650 | /* audio CPU */ /* ? */ |
| 2634 | 2651 | MDRV_CPU_PROGRAM_MAP(prmrsocr_audio_map,0) |
| 2635 | 2652 | /* NMIs are generated by the 054539 */ |
| 2636 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2637 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 2638 | 2653 | |
| 2639 | 2654 | MDRV_NVRAM_HANDLER(thndrx2) |
| 2640 | 2655 | |
| 2641 | 2656 | /* video hardware */ |
| 2642 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS | VIDEO_UPDATE_AFTER_VBLANK) | |
| 2657 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS | VIDEO_UPDATE_AFTER_VBLANK) | |
| 2658 | ||
| 2659 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2660 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2661 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 2643 | 2662 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2644 | 2663 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 2645 | 2664 | MDRV_SCREEN_VISIBLE_AREA(14*8, (64-14)*8-1, 2*8, 30*8-1 ) |
| 2665 | ||
| 2646 | 2666 | MDRV_GFXDECODE(glfgreat) |
| 2647 | 2667 | MDRV_PALETTE_LENGTH(2048) |
| 2648 | 2668 | |
| r1711 | r1712 | |
| 2674 | 2694 | /* 02 instead of 00. */ |
| 2675 | 2695 | MDRV_CPU_PROGRAM_MAP(ssriders_audio_map,0) |
| 2676 | 2696 | /* NMIs are generated by the 053260 */ |
| 2677 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2678 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 2679 | 2697 | |
| 2680 | 2698 | MDRV_NVRAM_HANDLER(eeprom) |
| 2681 | 2699 | |
| 2682 | 2700 | /* video hardware */ |
| 2683 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS | VIDEO_UPDATE_AFTER_VBLANK) | |
| 2701 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS | VIDEO_UPDATE_AFTER_VBLANK) | |
| 2702 | ||
| 2703 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2704 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2705 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 2684 | 2706 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2685 | 2707 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 2686 | 2708 | MDRV_SCREEN_VISIBLE_AREA(13*8, (64-13)*8-1, 2*8, 30*8-1 ) |
| 2709 | ||
| 2687 | 2710 | MDRV_PALETTE_LENGTH(2048) |
| 2688 | 2711 | |
| 2689 | 2712 | MDRV_VIDEO_START(lgtnfght) |
| r1711 | r1712 | |
| 2714 | 2737 | /* audio CPU */ /* ????? makes the ROM test sync */ |
| 2715 | 2738 | MDRV_CPU_PROGRAM_MAP(ssriders_audio_map,0) |
| 2716 | 2739 | /* NMIs are generated by the 053260 */ |
| 2717 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2718 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 2719 | 2740 | |
| 2720 | 2741 | MDRV_NVRAM_HANDLER(eeprom) |
| 2721 | 2742 | |
| 2722 | 2743 | /* video hardware */ |
| 2723 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS | VIDEO_UPDATE_AFTER_VBLANK) | |
| 2744 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS | VIDEO_UPDATE_AFTER_VBLANK) | |
| 2745 | ||
| 2746 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2747 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2748 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 2724 | 2749 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2725 | 2750 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 2726 | 2751 | MDRV_SCREEN_VISIBLE_AREA(14*8, (64-14)*8-1, 2*8, 30*8-1 ) |
| 2752 | ||
| 2727 | 2753 | MDRV_PALETTE_LENGTH(2048) |
| 2728 | 2754 | |
| 2729 | 2755 | MDRV_VIDEO_START(lgtnfght) |
| r1711 | r1712 | |
| 2750 | 2776 | MDRV_CPU_PROGRAM_MAP(sunsetbl_main_map,0) |
| 2751 | 2777 | MDRV_CPU_VBLANK_INT(irq4_line_hold,1) |
| 2752 | 2778 | |
| 2753 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2754 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 2755 | ||
| 2756 | 2779 | MDRV_NVRAM_HANDLER(eeprom) |
| 2757 | 2780 | |
| 2758 | 2781 | /* video hardware */ |
| 2759 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS | VIDEO_UPDATE_AFTER_VBLANK) | |
| 2782 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS | VIDEO_UPDATE_AFTER_VBLANK) | |
| 2783 | ||
| 2784 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2785 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2786 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 2760 | 2787 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2761 | 2788 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 2762 | 2789 | MDRV_SCREEN_VISIBLE_AREA(14*8, (64-14)*8-1, 2*8, 30*8-1 ) |
| 2790 | ||
| 2763 | 2791 | MDRV_PALETTE_LENGTH(2048) |
| 2764 | 2792 | |
| 2765 | 2793 | MDRV_VIDEO_START(sunsetbl) |
| r1711 | r1712 | |
| 2784 | 2812 | MDRV_CPU_ADD(Z80, XTAL_3_579545MHz) |
| 2785 | 2813 | MDRV_CPU_PROGRAM_MAP(thndrx2_audio_map,0) |
| 2786 | 2814 | /* NMIs are generated by the 053260 */ |
| 2787 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2788 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 2789 | 2815 | |
| 2790 | 2816 | MDRV_NVRAM_HANDLER(thndrx2) |
| 2791 | 2817 | |
| 2792 | 2818 | /* video hardware */ |
| 2793 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS) | |
| 2819 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS) | |
| 2820 | ||
| 2821 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2822 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2823 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 2794 | 2824 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2795 | 2825 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 2796 | 2826 | MDRV_SCREEN_VISIBLE_AREA(14*8, (64-14)*8-1, 2*8, 30*8-1 ) |
| 2827 | ||
| 2797 | 2828 | MDRV_PALETTE_LENGTH(2048) |
| 2798 | 2829 | |
| 2799 | 2830 | MDRV_VIDEO_START(thndrx2) |
| r1711 | r1712 | |
|---|---|---|
| 849 | 849 | MDRV_MACHINE_RESET(jpmimpct) |
| 850 | 850 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 851 | 851 | |
| 852 | MDRV_SCREEN_ADD("main", | |
| 852 | MDRV_SCREEN_ADD("main", RASTER) | |
| 853 | 853 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 854 | 854 | MDRV_SCREEN_RAW_PARAMS(40000000/4, 156*4, 0, 100*4, 328, 0, 300) |
| 855 | 855 | MDRV_PALETTE_LENGTH(256) |
| r1711 | r1712 | |
|---|---|---|
| 1483 | 1483 | MDRV_CPU_IO_MAP( s12h8iomap, 0 ) |
| 1484 | 1484 | MDRV_CPU_VBLANK_INT( irq1_line_pulse, 1 ) |
| 1485 | 1485 | |
| 1486 | MDRV_SCREEN_REFRESH_RATE( 60 ) | |
| 1487 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1488 | ||
| 1489 | 1486 | MDRV_MACHINE_RESET( namcos12 ) |
| 1490 | 1487 | MDRV_NVRAM_HANDLER( at28c16_0 ) |
| 1491 | 1488 | |
| 1492 | 1489 | /* video hardware */ |
| 1493 | MDRV_VIDEO_ATTRIBUTES( VIDEO_TYPE_RASTER ) | |
| 1490 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1491 | MDRV_SCREEN_REFRESH_RATE( 60 ) | |
| 1492 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1494 | 1493 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1495 | 1494 | MDRV_SCREEN_SIZE( 1024, 1024 ) |
| 1496 | 1495 | MDRV_SCREEN_VISIBLE_AREA( 0, 639, 0, 479 ) |
| 1496 | ||
| 1497 | 1497 | MDRV_PALETTE_LENGTH( 65536 ) |
| 1498 | 1498 | |
| 1499 | 1499 | MDRV_PALETTE_INIT( psx ) |
| r1711 | r1712 | |
|---|---|---|
| 1179 | 1179 | static MACHINE_DRIVER_START( raiden2 ) |
| 1180 | 1180 | |
| 1181 | 1181 | /* basic machine hardware */ |
| 1182 | MDRV_CPU_ADD(V30,32 | |
| 1182 | MDRV_CPU_ADD(V30,XTAL_32MHz | |
| 1183 | 1183 | MDRV_CPU_PROGRAM_MAP(raiden2_mem, 0) |
| 1184 | 1184 | MDRV_CPU_VBLANK_INT(raiden2_interrupt,1) |
| 1185 | 1185 | |
| 1186 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1187 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION/2) | |
| 1188 | ||
| 1189 | 1186 | MDRV_MACHINE_RESET(raiden2) |
| 1190 | 1187 | |
| 1191 | 1188 | /* video hardware */ |
| 1192 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_AFTER_VBLANK) | |
| 1189 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_AFTER_VBLANK) | |
| 1190 | ||
| 1191 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1192 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1193 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate *//2) | |
| 1193 | 1194 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1194 | 1195 | #if 1 |
| 1195 | 1196 | MDRV_SCREEN_SIZE(64*8, 64*8) |
| r1711 | r1712 | |
| 1203 | 1204 | |
| 1204 | 1205 | MDRV_VIDEO_START(raiden2) |
| 1205 | 1206 | MDRV_VIDEO_UPDATE(raiden2) |
| 1207 | ||
| 1208 | /* Sound hardware infos: Z80 and YM2151 are clocked at XTAL_28_63636MHz/8 */ | |
| 1209 | /* The 2 Oki M6295 are clocked at XTAL_28_63636MHz/28 and pin 7 is high for both */ | |
| 1210 | ||
| 1206 | 1211 | MACHINE_DRIVER_END |
| 1207 | 1212 | |
| 1208 | 1213 | /* ROM LOADING */ |
| r1711 | r1712 | |
| 2234 | 2239 | MDRV_CPU_PROGRAM_MAP(rdx_v33_map, 0) |
| 2235 | 2240 | MDRV_CPU_VBLANK_INT(rdx_v33_interrupt,1) |
| 2236 | 2241 | |
| 2237 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2238 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 2239 | ||
| 2240 | 2242 | MDRV_NVRAM_HANDLER(rdx_v33) |
| 2241 | 2243 | |
| 2242 | 2244 | /* video hardware */ |
| 2243 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2245 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2246 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2247 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 2244 | 2248 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2245 | ||
| 2246 | 2249 | MDRV_SCREEN_SIZE(64*8, 64*8) |
| 2247 | 2250 | MDRV_SCREEN_VISIBLE_AREA(5*8, 43*8-1, 1, 30*8) |
| 2248 | 2251 |
| r1711 | r1712 | |
|---|---|---|
| 483 | 483 | MDRV_CPU_IO_MAP(0,sound_writeport) |
| 484 | 484 | MDRV_CPU_VBLANK_INT(espial_sound_nmi_gen,8) /* IRQs are triggered by the main CPU */ |
| 485 | 485 | |
| 486 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 487 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION /* frames per second, vblank duration */) | |
| 488 | ||
| 489 | 486 | MDRV_MACHINE_RESET(zodiack) |
| 490 | 487 | |
| 491 | 488 | /* video hardware */ |
| 492 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 489 | MDRV_SCREEN_ADD("main", RASTER) | |
| 490 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 491 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */ /* frames per second, vblank duration */) | |
| 493 | 492 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 494 | 493 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 495 | 494 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 495 | ||
| 496 | 496 | MDRV_GFXDECODE(zodiack) |
| 497 | MDRV_PALETTE_LENGTH(49) | |
| 498 | MDRV_COLORTABLE_LENGTH(4*8+2*8+2*1) | |
| 497 | MDRV_PALETTE_LENGTH(4*8+2*8+2*1) | |
| 499 | 498 | |
| 500 | 499 | MDRV_PALETTE_INIT(zodiack) |
| 501 | 500 | MDRV_VIDEO_START(zodiack) |
| r1711 | r1712 | |
|---|---|---|
| 1991 | 1991 | MDRV_CPU_ADD_TAG("main", Z80, 18432000/6) /* 3.072 MHz */ |
| 1992 | 1992 | MDRV_CPU_PROGRAM_MAP(scramble_readmem,scramble_writemem) |
| 1993 | 1993 | |
| 1994 | MDRV_SCREEN_REFRESH_RATE(16000.0/132/2) | |
| 1995 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1996 | ||
| 1997 | 1994 | MDRV_CPU_ADD_TAG("audio", Z80, 14318000/8) /* 1.78975 MHz */ |
| 1998 | 1995 | /* audio CPU */ |
| 1999 | 1996 | MDRV_CPU_PROGRAM_MAP(scramble_sound_readmem,scramble_sound_writemem) |
| r1711 | r1712 | |
| 2002 | 1999 | MDRV_MACHINE_RESET(scramble) |
| 2003 | 2000 | |
| 2004 | 2001 | /* video hardware */ |
| 2005 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2002 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2003 | MDRV_SCREEN_REFRESH_RATE(16000.0/132/2) | |
| 2004 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2006 | 2005 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2007 | 2006 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 2008 | 2007 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 2008 | ||
| 2009 | 2009 | MDRV_GFXDECODE(scramble) |
| 2010 | 2010 | MDRV_PALETTE_LENGTH(32+64+2+1) /* 32 for characters, 64 for stars, 2 for bullets, 0/1 for background */ |
| 2011 | 2011 | |
| r1711 | r1712 | |
| 2288 | 2288 | MDRV_MACHINE_RESET(sfx) |
| 2289 | 2289 | |
| 2290 | 2290 | /* video hardware */ |
| 2291 | MDRV_SCREEN_MODIFY("main") | |
| 2291 | 2292 | MDRV_SCREEN_VISIBLE_AREA(2*8, 30*8-1, 2*8, 30*8-1) |
| 2292 | 2293 | MDRV_PALETTE_LENGTH(32+64+2+8) /* 32 for characters, 64 for stars, 2 for bullets, 8 for background */ |
| 2293 | 2294 | MDRV_GFXDECODE(sfx) |
| r1711 | r1712 | |
| 2331 | 2332 | MDRV_MACHINE_RESET(monsterz) |
| 2332 | 2333 | |
| 2333 | 2334 | /* video hardware */ |
| 2335 | MDRV_SCREEN_MODIFY("main") | |
| 2334 | 2336 | MDRV_SCREEN_VISIBLE_AREA(2*8, 30*8-1, 2*8, 30*8-1) |
| 2335 | 2337 | MDRV_PALETTE_LENGTH(32+64+2+8) /* 32 for characters, 64 for stars, 2 for bullets, 8 for background */ |
| 2336 | 2338 | MDRV_GFXDECODE(sfx) |
| r1711 | r1712 | |
| 2406 | 2408 | MDRV_CPU_IO_MAP(hunchbks_readport,0) |
| 2407 | 2409 | MDRV_CPU_VBLANK_INT(hunchbks_vh_interrupt,1) |
| 2408 | 2410 | |
| 2411 | MDRV_SCREEN_MODIFY("main") | |
| 2409 | 2412 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) |
| 2410 | 2413 | |
| 2411 | 2414 | /* video hardware */ |
| r1711 | r1712 | |
| 2454 | 2457 | |
| 2455 | 2458 | MDRV_MACHINE_RESET(galaxian) |
| 2456 | 2459 | |
| 2460 | /* video hardware */ | |
| 2461 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2457 | 2462 | MDRV_SCREEN_REFRESH_RATE(16000.0/132/2) |
| 2458 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 2459 | ||
| 2460 | /* video hardware */ | |
| 2461 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2463 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2462 | 2464 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2463 | 2465 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 2464 | 2466 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 2467 | ||
| 2465 | 2468 | MDRV_GFXDECODE(ad2083) |
| 2466 | 2469 | MDRV_PALETTE_LENGTH(32+64+2+8) /* 32 for characters, 64 for stars, 2 for bullets, 8 for background */ |
| 2467 | 2470 |
| r1711 | r1712 | |
|---|---|---|
| 216 | 216 | MDRV_CPU_IO_MAP(readport,writeport) |
| 217 | 217 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 218 | 218 | |
| 219 | MDRV_SCREEN_REFRESH_RATE(60) // ? | |
| 220 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 221 | ||
| 222 | 219 | MDRV_GFXDECODE(mogura) |
| 223 | 220 | |
| 224 | 221 | /* video hardware */ |
| 225 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 222 | MDRV_SCREEN_ADD("main", RASTER) | |
| 223 | MDRV_SCREEN_REFRESH_RATE(60) // ? | |
| 224 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 226 | 225 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 227 | 226 | MDRV_SCREEN_SIZE(512, 512) |
| 228 | 227 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 0, 256-1) |
| 228 | ||
| 229 | 229 | MDRV_PALETTE_LENGTH(32) |
| 230 | 230 | |
| 231 | 231 | MDRV_PALETTE_INIT(mogura) |
| r1711 | r1712 | |
|---|---|---|
| 45 | 45 | #include "sound/ay8910.h" |
| 46 | 46 | |
| 47 | 47 | |
| 48 | extern WRITE8_HANDLER(mole_videoram_w); | |
| 49 | extern WRITE8_HANDLER(mole_tilebank_w); | |
| 50 | extern WRITE8_HANDLER(mole_flipscreen_w); | |
| 48 | WRITE8_HANDLER(mole_videoram_w); | |
| 49 | WRITE8_HANDLER(mole_tilebank_w); | |
| 50 | WRITE8_HANDLER(mole_flipscreen_w); | |
| 51 | 51 | |
| 52 | extern PALETTE_INIT(mole); | |
| 53 | extern VIDEO_START(mole); | |
| 54 | extern VIDEO_UPDATE(mole); | |
| 52 | PALETTE_INIT(mole); | |
| 53 | VIDEO_START(mole); | |
| 54 | VIDEO_UPDATE(mole); | |
| 55 | 55 | |
| 56 | 56 | |
| 57 | 57 | static READ8_HANDLER( mole_protection_r ) |
| r1711 | r1712 | |
| 199 | 199 | MDRV_CPU_PROGRAM_MAP(mole_map, 0) |
| 200 | 200 | MDRV_CPU_VBLANK_INT(irq0_line_hold, 1) |
| 201 | 201 | |
| 202 | // video hardware | |
| 203 | ||
| 204 | MDRV_SCREEN_ADD("main", RASTER) | |
| 202 | 205 | MDRV_SCREEN_REFRESH_RATE(60) |
| 203 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 204 | ||
| 205 | // video hardware | |
| 206 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 206 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 207 | 207 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 208 | 208 | MDRV_SCREEN_SIZE(40*8, 25*8) |
| 209 | 209 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 25*8-1) |
| 210 | ||
| 210 | 211 | MDRV_GFXDECODE(mole) |
| 211 | 212 | MDRV_PALETTE_LENGTH(8) |
| 212 | MDRV_COLORTABLE_LENGTH(8) | |
| 213 | 213 | |
| 214 | 214 | MDRV_PALETTE_INIT(mole) |
| 215 | 215 | MDRV_VIDEO_START(mole) |
| r1711 | r1712 | |
|---|---|---|
| 1126 | 1126 | MDRV_CPU_PROGRAM_MAP(sound_readmem_18,sound_writemem_18) |
| 1127 | 1127 | MDRV_CPU_IO_MAP(sound_readport_18,sound_writeport_18) |
| 1128 | 1128 | |
| 1129 | /* video hardware */ | |
| 1130 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1129 | 1131 | MDRV_SCREEN_REFRESH_RATE(60) |
| 1130 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1131 | ||
| 1132 | /* video hardware */ | |
| 1133 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1132 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1134 | 1133 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1135 | 1134 | MDRV_SCREEN_SIZE(40*8, 28*8) |
| 1136 | 1135 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 28*8-1) |
| 1136 | ||
| 1137 | 1137 | MDRV_GFXDECODE(sys16) |
| 1138 | 1138 | MDRV_PALETTE_LENGTH((2048+2048)*ShadowColorsMultiplier) // 64 extra colours for vdp (but we use 2048 so shadow mask works) |
| 1139 | 1139 |
| r1711 | r1712 | |
|---|---|---|
| 1284 | 1284 | MDRV_CPU_PROGRAM_MAP(tms_program_map, 0) |
| 1285 | 1285 | MDRV_CPU_DATA_MAP(tms_data_map, 0) |
| 1286 | 1286 | |
| 1287 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1288 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 1289 | ||
| 1290 | 1287 | MDRV_INTERLEAVE(100) |
| 1291 | 1288 | |
| 1292 | 1289 | MDRV_MACHINE_RESET(taitojc) |
| 1293 | 1290 | MDRV_NVRAM_HANDLER(93C46) |
| 1294 | 1291 | |
| 1295 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1292 | ||
| 1293 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1294 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1295 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 1296 | 1296 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1297 | 1297 | MDRV_SCREEN_SIZE(512, 400) |
| 1298 | 1298 | MDRV_SCREEN_VISIBLE_AREA(0, 511, 0, 399) |
| 1299 | ||
| 1299 | 1300 | MDRV_PALETTE_LENGTH(32768) |
| 1300 | 1301 | |
| 1301 | 1302 | MDRV_VIDEO_START(taitojc) |
| r1711 | r1712 | |
|---|---|---|
| 47 | 47 | /* the background character columns is stored in the area dd00-dd3f */ |
| 48 | 48 | |
| 49 | 49 | /* This clears & redraws the entire screen each pass */ |
| 50 | fillbitmap(bitmap, | |
| 50 | fillbitmap(bitmap, | |
| 51 | 51 | |
| 52 | 52 | if (!bublbobl_video_enable) return 0; |
| 53 | 53 | |
| r1711 | r1712 | |
| 380 | 380 | // MDRV_CPU_VBLANK_INT(irq0_line_hold, 1) |
| 381 | 381 | MDRV_CPU_VBLANK_INT(missb2_interrupt, 1) |
| 382 | 382 | |
| 383 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 384 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 385 | 383 | MDRV_INTERLEAVE(100) // 100 CPU slices per frame - a high value to ensure proper synchronization of the CPUs |
| 386 | 384 | |
| 387 | 385 | // video hardware |
| 388 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 386 | ||
| 387 | MDRV_SCREEN_ADD("main", RASTER) | |
| 388 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 389 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 389 | 390 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 390 | 391 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 391 | 392 | MDRV_SCREEN_VISIBLE_AREA(0, 32*8-1, 2*8, 30*8-1) |
| 393 | ||
| 392 | 394 | MDRV_GFXDECODE(missb2) |
| 393 | 395 | MDRV_PALETTE_LENGTH(512) |
| 394 | 396 |
| r1711 | r1712 | |
|---|---|---|
| 288 | 288 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 289 | 289 | MDRV_CPU_VBLANK_INT(pitnrun_nmi_source,1) |
| 290 | 290 | |
| 291 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 292 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 293 | ||
| 294 | 291 | MDRV_CPU_ADD(Z80, 10000000/4) /* 2.5 MHz */ |
| 295 | 292 | |
| 296 | 293 | /* audio CPU */ |
| r1711 | r1712 | |
| 306 | 303 | MDRV_INTERLEAVE(100) |
| 307 | 304 | |
| 308 | 305 | /* video hardware */ |
| 309 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 306 | MDRV_SCREEN_ADD("main", RASTER) | |
| 307 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 308 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 310 | 309 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 311 | 310 | MDRV_SCREEN_SIZE(256, 256) |
| 312 | 311 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 192 | 192 | MDRV_CPU_VBLANK_INT(ddealer_interrupt,1) |
| 193 | 193 | MDRV_CPU_PERIODIC_INT(irq1_line_hold, 112) |
| 194 | 194 | |
| 195 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 196 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 197 | ||
| 198 | 195 | MDRV_GFXDECODE(jalmah) |
| 199 | 196 | |
| 200 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 197 | ||
| 198 | MDRV_SCREEN_ADD("main", RASTER) | |
| 199 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 200 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 201 | 201 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 202 | 202 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 203 | 203 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 204 | ||
| 204 | 205 | MDRV_PALETTE_LENGTH(0x400) |
| 205 | 206 | MDRV_MACHINE_RESET(ddealer) |
| 206 | 207 |
| r1711 | r1712 | |
|---|---|---|
| 385 | 385 | MDRV_CPU_PROGRAM_MAP(liberatr_map,0) |
| 386 | 386 | MDRV_CPU_VBLANK_INT(irq0_line_hold,4) |
| 387 | 387 | |
| 388 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 389 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 390 | ||
| 391 | 388 | MDRV_NVRAM_HANDLER(atari_vg) |
| 392 | 389 | |
| 393 | 390 | /* video hardware */ |
| 394 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 391 | MDRV_SCREEN_ADD("main", RASTER) | |
| 392 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 393 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 395 | 394 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 396 | 395 | MDRV_SCREEN_SIZE(256,256) |
| 397 | 396 | MDRV_SCREEN_VISIBLE_AREA(8, 247, 13, 244) |
| r1711 | r1712 | |
|---|---|---|
| 871 | 871 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 872 | 872 | |
| 873 | 873 | /* video hardware */ |
| 874 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 875 | 874 | MDRV_VIDEO_START(berzerk) |
| 876 | 875 | MDRV_VIDEO_UPDATE(berzerk) |
| 877 | 876 | |
| 878 | MDRV_SCREEN_ADD("main", | |
| 877 | MDRV_SCREEN_ADD("main", RASTER) | |
| 879 | 878 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 880 | 879 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART) |
| 881 | 880 |
| r1711 | r1712 | |
|---|---|---|
| 672 | 672 | MDRV_CPU_IO_MAP(sound_port,0) |
| 673 | 673 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 674 | 674 | |
| 675 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 676 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 677 | 675 | MDRV_INTERLEAVE(10) /* 10 CPU slices per frame - seems enough to keep the CPUs in sync */ |
| 678 | 676 | |
| 679 | 677 | /* video hardware */ |
| 680 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 678 | MDRV_SCREEN_ADD("main", RASTER) | |
| 679 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 680 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 681 | 681 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 682 | 682 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 683 | 683 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 684 | ||
| 684 | 685 | MDRV_GFXDECODE(tehkanwc) |
| 685 | 686 | MDRV_PALETTE_LENGTH(768) |
| 686 | 687 |
| r1711 | r1712 | |
|---|---|---|
| 352 | 352 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 353 | 353 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,4) /* ??? */ |
| 354 | 354 | |
| 355 | /* video hardware */ | |
| 356 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 357 | ||
| 358 | MDRV_SCREEN_ADD("main", RASTER) | |
| 355 | 359 | MDRV_SCREEN_REFRESH_RATE(60) |
| 356 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 357 | ||
| 358 | /* video hardware */ | |
| 359 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 360 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 360 | 361 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 361 | 362 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 362 | 363 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 216 | 216 | MDRV_CPU_PROGRAM_MAP(readmem_sound,writemem_sound) |
| 217 | 217 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 218 | 218 | |
| 219 | /* video hardware */ | |
| 220 | MDRV_SCREEN_ADD("main", RASTER) | |
| 219 | 221 | MDRV_SCREEN_REFRESH_RATE(60) |
| 220 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 221 | ||
| 222 | /* video hardware */ | |
| 223 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 222 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 224 | 223 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 225 | 224 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 226 | 225 | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 2*8, 30*8-1) |
| 226 | ||
| 227 | 227 | MDRV_GFXDECODE(citycon) |
| 228 | 228 | MDRV_PALETTE_LENGTH(640+1024) /* 640 real palette + 1024 virtual palette */ |
| 229 | 229 |
| r1711 | r1712 | |
|---|---|---|
| 362 | 362 | MDRV_CPU_PROGRAM_MAP(sound_map,0) |
| 363 | 363 | MDRV_CPU_IO_MAP(sound_portmap,0) |
| 364 | 364 | |
| 365 | /* video hardware */ | |
| 366 | MDRV_SCREEN_ADD("main", RASTER) | |
| 365 | 367 | MDRV_SCREEN_REFRESH_RATE(60) |
| 366 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 367 | ||
| 368 | /* video hardware */ | |
| 369 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 368 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 370 | 369 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 371 | 370 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 372 | 371 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 372 | ||
| 373 | 373 | MDRV_GFXDECODE(suprridr) |
| 374 | 374 | MDRV_PALETTE_LENGTH(96) |
| 375 | 375 |
| r1711 | r1712 | |
|---|---|---|
| 544 | 544 | /* audio CPU */ |
| 545 | 545 | MDRV_CPU_PROGRAM_MAP(spy_sound_readmem,spy_sound_writemem) |
| 546 | 546 | /* nmi by the sound chip */ |
| 547 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 548 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 549 | 547 | |
| 550 | 548 | /* video hardware */ |
| 551 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS) | |
| 549 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 550 | ||
| 551 | MDRV_SCREEN_ADD("main", RASTER) | |
| 552 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 553 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 552 | 554 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 553 | 555 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 554 | 556 | MDRV_SCREEN_VISIBLE_AREA(13*8, (64-13)*8-1, 2*8, 30*8-1 ) |
| 557 | ||
| 555 | 558 | MDRV_PALETTE_LENGTH(1024) |
| 556 | 559 | |
| 557 | 560 | MDRV_VIDEO_START(spy) |
| r1711 | r1712 | |
|---|---|---|
| 1572 | 1572 | MDRV_CPU_PROGRAM_MAP(sngkace_sound_readmem,sngkace_sound_writemem) |
| 1573 | 1573 | MDRV_CPU_IO_MAP(sngkace_sound_readport,sngkace_sound_writeport) |
| 1574 | 1574 | |
| 1575 | MDRV_SCREEN_REFRESH_RATE(59.3) | |
| 1576 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) // we're using IPT_VBLANK | |
| 1577 | ||
| 1578 | 1575 | MDRV_MACHINE_RESET(psikyo) |
| 1579 | 1576 | |
| 1580 | 1577 | /* video hardware */ |
| 1581 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1578 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1579 | MDRV_SCREEN_REFRESH_RATE(59.3) | |
| 1580 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) // we're using IPT_VBLANK | |
| 1582 | 1581 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1583 | 1582 | MDRV_SCREEN_SIZE(320, 256) |
| 1584 | 1583 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 0, 256-32-1) |
| 1584 | ||
| 1585 | 1585 | MDRV_GFXDECODE(psikyo) |
| 1586 | 1586 | MDRV_PALETTE_LENGTH(0x1000) |
| 1587 | 1587 | |
| r1711 | r1712 | |
| 1626 | 1626 | MDRV_CPU_PROGRAM_MAP(gunbird_sound_readmem,gunbird_sound_writemem) |
| 1627 | 1627 | MDRV_CPU_IO_MAP(gunbird_sound_readport,gunbird_sound_writeport) |
| 1628 | 1628 | |
| 1629 | MDRV_SCREEN_REFRESH_RATE(59.3) | |
| 1630 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) // we're using IPT_VBLANK | |
| 1631 | ||
| 1632 | 1629 | MDRV_MACHINE_RESET(psikyo) |
| 1633 | 1630 | |
| 1634 | 1631 | /* video hardware */ |
| 1635 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1632 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1633 | MDRV_SCREEN_REFRESH_RATE(59.3) | |
| 1634 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) // we're using IPT_VBLANK | |
| 1636 | 1635 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1637 | 1636 | MDRV_SCREEN_SIZE(320, 256) |
| 1638 | 1637 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 0, 256-32-1) |
| 1638 | ||
| 1639 | 1639 | MDRV_GFXDECODE(psikyo) |
| 1640 | 1640 | MDRV_PALETTE_LENGTH(0x1000) |
| 1641 | 1641 | |
| r1711 | r1712 | |
| 1690 | 1690 | |
| 1691 | 1691 | /* MCU should go here */ |
| 1692 | 1692 | |
| 1693 | MDRV_SCREEN_REFRESH_RATE(59.3) | |
| 1694 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) // we're using IPT_VBLANK | |
| 1695 | ||
| 1696 | 1693 | MDRV_MACHINE_RESET(psikyo) |
| 1697 | 1694 | |
| 1698 | 1695 | /* video hardware */ |
| 1699 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1696 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1697 | MDRV_SCREEN_REFRESH_RATE(59.3) | |
| 1698 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) // we're using IPT_VBLANK | |
| 1700 | 1699 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1701 | 1700 | MDRV_SCREEN_SIZE(320, 256) |
| 1702 | 1701 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 0, 256-32-1) |
| 1702 | ||
| 1703 | 1703 | MDRV_GFXDECODE(psikyo) |
| 1704 | 1704 | MDRV_PALETTE_LENGTH(0x1000) |
| 1705 | 1705 |
| r1711 | r1712 | |
|---|---|---|
| 862 | 862 | MDRV_CPU_PERIODIC_INT(nmi_line_pulse, 1536) |
| 863 | 863 | MDRV_WATCHDOG_TIME_INIT(ATTOTIME_IN_HZ( 5 )) /* 200 ms, measured */ |
| 864 | 864 | //MDRV_WATCHDOG_VBLANK_INIT(8) |
| 865 | ||
| 866 | MDRV_NVRAM_HANDLER(generic_0fill) | |
| 867 | ||
| 868 | /* video hardware */ | |
| 869 | MDRV_SCREEN_ADD("main", RASTER) | |
| 865 | 870 | MDRV_SCREEN_REFRESH_RATE(60) |
| 866 | 871 | /* if VBLANK is used, the watchdog timer stop to work. |
| 867 | MDRV_SCREEN_VBLANK_TIME( | |
| 872 | MDRV_SCREEN_VBLANK_TIME( | |
| 868 | 873 | */ |
| 869 | MDRV_NVRAM_HANDLER(generic_0fill) | |
| 870 | ||
| 871 | /* video hardware */ | |
| 872 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 873 | 874 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 874 | 875 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 875 | 876 | MDRV_SCREEN_VISIBLE_AREA(20*8, 56*8-1, 2*8, 32*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 205 | 205 | MDRV_CPU_PROGRAM_MAP(dynadice_sound_map,0) |
| 206 | 206 | MDRV_CPU_IO_MAP(dynadice_sound_io_map,0) |
| 207 | 207 | |
| 208 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 209 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 210 | ||
| 211 | 208 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 212 | 209 | |
| 213 | 210 | /* video hardware */ |
| 214 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 211 | MDRV_SCREEN_ADD("main", RASTER) | |
| 212 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 213 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 215 | 214 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 216 | 215 | MDRV_SCREEN_SIZE(256+16, 256) |
| 217 | 216 | MDRV_SCREEN_VISIBLE_AREA(0*8, 34*8-1, 3*8, 28*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 976 | 976 | /* Program and Data Maps are internal to the MCU */ |
| 977 | 977 | MDRV_CPU_IO_MAP(playmark_sound_io_map, 0) |
| 978 | 978 | |
| 979 | /* video hardware */ | |
| 980 | MDRV_SCREEN_ADD("main", RASTER) | |
| 979 | 981 | MDRV_SCREEN_REFRESH_RATE(58) |
| 980 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 981 | ||
| 982 | /* video hardware */ | |
| 983 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 982 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 984 | 983 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 985 | 984 | MDRV_SCREEN_SIZE(64*8, 64*8) |
| 986 | 985 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 32*8-1) |
| 986 | ||
| 987 | 987 | MDRV_GFXDECODE(playmark) |
| 988 | 988 | MDRV_PALETTE_LENGTH(1024) |
| 989 | 989 | |
| r1711 | r1712 | |
| 1010 | 1010 | /* Program and Data Maps are internal to the MCU */ |
| 1011 | 1011 | // MDRV_CPU_IO_MAP(playmark_sound_io_map, 0) |
| 1012 | 1012 | |
| 1013 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 1014 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 1015 | ||
| 1016 | 1013 | MDRV_NVRAM_HANDLER(wbeachvl) |
| 1017 | 1014 | |
| 1018 | 1015 | /* video hardware */ |
| 1019 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1016 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1017 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 1018 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 1020 | 1019 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1021 | 1020 | MDRV_SCREEN_SIZE(64*8, 64*8) |
| 1022 | 1021 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 32*8-1) |
| 1022 | ||
| 1023 | 1023 | MDRV_GFXDECODE(wbeachvl) |
| 1024 | 1024 | MDRV_PALETTE_LENGTH(2048) |
| 1025 | 1025 | |
| r1711 | r1712 | |
| 1045 | 1045 | /* Program and Data Maps are internal to the MCU */ |
| 1046 | 1046 | MDRV_CPU_IO_MAP(playmark_sound_io_map, 0) |
| 1047 | 1047 | |
| 1048 | /* video hardware */ | |
| 1049 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1048 | 1050 | MDRV_SCREEN_REFRESH_RATE(58) |
| 1049 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1050 | ||
| 1051 | /* video hardware */ | |
| 1052 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1051 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1053 | 1052 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1054 | 1053 | MDRV_SCREEN_SIZE(64*8, 64*8) |
| 1055 | 1054 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 32*8-1) |
| 1055 | ||
| 1056 | 1056 | MDRV_GFXDECODE(excelsr) |
| 1057 | 1057 | MDRV_PALETTE_LENGTH(1024) |
| 1058 | 1058 | |
| r1711 | r1712 | |
| 1078 | 1078 | /* Program and Data Maps are internal to the MCU */ |
| 1079 | 1079 | MDRV_CPU_IO_MAP(playmark_sound_io_map, 0) |
| 1080 | 1080 | |
| 1081 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 1082 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 1083 | ||
| 1084 | 1081 | MDRV_NVRAM_HANDLER(wbeachvl) |
| 1085 | 1082 | |
| 1086 | 1083 | /* video hardware */ |
| 1087 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1084 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1085 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 1086 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 1088 | 1087 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1089 | 1088 | MDRV_SCREEN_SIZE(64*8, 64*8) |
| 1090 | 1089 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 30*8-1) |
| 1090 | ||
| 1091 | 1091 | MDRV_GFXDECODE(hrdtimes) |
| 1092 | 1092 | MDRV_PALETTE_LENGTH(1024) |
| 1093 | 1093 | |
| r1711 | r1712 | |
| 1113 | 1113 | /* Program and Data Maps are internal to the MCU */ |
| 1114 | 1114 | // MDRV_CPU_IO_MAP(playmark_sound_io_map, 0) |
| 1115 | 1115 | |
| 1116 | /* video hardware */ | |
| 1117 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1116 | 1118 | MDRV_SCREEN_REFRESH_RATE(58) |
| 1117 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1118 | ||
| 1119 | /* video hardware */ | |
| 1120 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1119 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1121 | 1120 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1122 | 1121 | MDRV_SCREEN_SIZE(64*8, 64*8) |
| 1123 | 1122 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 30*8-1) |
| 1123 | ||
| 1124 | 1124 | MDRV_GFXDECODE(hrdtimes) |
| 1125 | 1125 | MDRV_PALETTE_LENGTH(1024) |
| 1126 | 1126 |
| r1711 | r1712 | |
|---|---|---|
| 344 | 344 | MDRV_CPU_IO_MAP(snd_io_map, 0) |
| 345 | 345 | MDRV_CPU_PERIODIC_INT(nmi_line_pulse, 120) // too high? |
| 346 | 346 | |
| 347 | /* video hardware */ | |
| 348 | MDRV_SCREEN_ADD("main", RASTER) | |
| 347 | 349 | MDRV_SCREEN_REFRESH_RATE(60) |
| 348 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 349 | ||
| 350 | /* video hardware */ | |
| 351 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 350 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 352 | 351 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 353 | 352 | MDRV_SCREEN_SIZE(256, 256) |
| 354 | 353 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 16, 256-1-16) |
| 354 | ||
| 355 | 355 | MDRV_PALETTE_LENGTH(16) |
| 356 | 356 | MDRV_GFXDECODE(dacholer) |
| 357 | 357 |
| r1711 | r1712 | |
|---|---|---|
| 536 | 536 | MDRV_CPU_IO_MAP(multchmp_sound_readport,multchmp_sound_writeport) |
| 537 | 537 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,32) /* IRQ By Main CPU */ |
| 538 | 538 | |
| 539 | /* video hardware */ | |
| 540 | MDRV_SCREEN_ADD("main", RASTER) | |
| 539 | 541 | MDRV_SCREEN_REFRESH_RATE(60) |
| 540 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 541 | ||
| 542 | /* video hardware */ | |
| 543 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 542 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 544 | 543 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 545 | 544 | MDRV_SCREEN_SIZE(0x140, 0x100) |
| 546 | 545 | MDRV_SCREEN_VISIBLE_AREA(0, 0x140-1, 0+8, 0x100-8-1) |
| 546 | ||
| 547 | 547 | MDRV_GFXDECODE(esd16) |
| 548 | 548 | MDRV_PALETTE_LENGTH(768) |
| 549 | 549 |
| r1711 | r1712 | |
|---|---|---|
| 4094 | 4094 | MDRV_MACHINE_RESET(model3_10) |
| 4095 | 4095 | MDRV_NVRAM_HANDLER(model3) |
| 4096 | 4096 | |
| 4097 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 4097 | ||
| 4098 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4098 | 4099 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) |
| 4099 | 4100 | MDRV_SCREEN_REFRESH_RATE(60) |
| 4100 | MDRV_SCREEN_VBLANK_TIME( | |
| 4101 | MDRV_SCREEN_VBLANK_TIME( | |
| 4101 | 4102 | MDRV_SCREEN_SIZE(496, 384) |
| 4102 | 4103 | MDRV_SCREEN_VISIBLE_AREA(0, 495, 0, 383) |
| 4104 | ||
| 4103 | 4105 | MDRV_PALETTE_LENGTH(65536) |
| 4104 | 4106 | |
| 4105 | 4107 | MDRV_VIDEO_START(model3) |
| r1711 | r1712 | |
| 4129 | 4131 | MDRV_MACHINE_RESET(model3_15) |
| 4130 | 4132 | MDRV_NVRAM_HANDLER(model3) |
| 4131 | 4133 | |
| 4132 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 4134 | ||
| 4135 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4133 | 4136 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) |
| 4134 | 4137 | MDRV_SCREEN_REFRESH_RATE(60) |
| 4135 | MDRV_SCREEN_VBLANK_TIME( | |
| 4138 | MDRV_SCREEN_VBLANK_TIME( | |
| 4136 | 4139 | MDRV_SCREEN_SIZE(496, 384) |
| 4137 | 4140 | MDRV_SCREEN_VISIBLE_AREA(0, 495, 0, 383) |
| 4141 | ||
| 4138 | 4142 | MDRV_PALETTE_LENGTH(65536) |
| 4139 | 4143 | |
| 4140 | 4144 | MDRV_VIDEO_START(model3) |
| r1711 | r1712 | |
| 4163 | 4167 | MDRV_MACHINE_RESET(model3_20) |
| 4164 | 4168 | MDRV_NVRAM_HANDLER(model3) |
| 4165 | 4169 | |
| 4166 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 4170 | ||
| 4171 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4167 | 4172 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) |
| 4168 | 4173 | MDRV_SCREEN_REFRESH_RATE(60) |
| 4169 | MDRV_SCREEN_VBLANK_TIME( | |
| 4174 | MDRV_SCREEN_VBLANK_TIME( | |
| 4170 | 4175 | MDRV_SCREEN_SIZE(496, 384) |
| 4171 | 4176 | MDRV_SCREEN_VISIBLE_AREA(0, 495, 0, 383) |
| 4177 | ||
| 4172 | 4178 | MDRV_PALETTE_LENGTH(65536) |
| 4173 | 4179 | |
| 4174 | 4180 | MDRV_VIDEO_START(model3) |
| r1711 | r1712 | |
| 4197 | 4203 | MDRV_MACHINE_RESET(model3_21) |
| 4198 | 4204 | MDRV_NVRAM_HANDLER(model3) |
| 4199 | 4205 | |
| 4200 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 4206 | ||
| 4207 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4201 | 4208 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) |
| 4202 | 4209 | MDRV_SCREEN_REFRESH_RATE(60) |
| 4203 | MDRV_SCREEN_VBLANK_TIME( | |
| 4210 | MDRV_SCREEN_VBLANK_TIME( | |
| 4204 | 4211 | MDRV_SCREEN_SIZE(496, 384) |
| 4205 | 4212 | MDRV_SCREEN_VISIBLE_AREA(0, 495, 0, 383) |
| 4213 | ||
| 4206 | 4214 | MDRV_PALETTE_LENGTH(65536) |
| 4207 | 4215 | |
| 4208 | 4216 | MDRV_VIDEO_START(model3) |
| r1711 | r1712 | |
|---|---|---|
| 1543 | 1543 | MDRV_CPU_DATA_MAP(slave_dsp_data,0) |
| 1544 | 1544 | MDRV_CPU_IO_MAP(slave_dsp_io,0) |
| 1545 | 1545 | |
| 1546 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1547 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 1548 | 1546 | MDRV_INTERLEAVE(200) |
| 1549 | 1547 | |
| 1550 | 1548 | MDRV_MACHINE_RESET(namcos2) |
| 1551 | 1549 | MDRV_NVRAM_HANDLER(namcos2) |
| 1552 | 1550 | |
| 1553 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1551 | ||
| 1552 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1553 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1554 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 1554 | 1555 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1555 | 1556 | MDRV_SCREEN_SIZE(NAMCOS21_POLY_FRAME_WIDTH,NAMCOS21_POLY_FRAME_HEIGHT) |
| 1556 | 1557 | MDRV_SCREEN_VISIBLE_AREA(0,495,0,479) |
| r1711 | r1712 | |
| 1615 | 1616 | MDRV_CPU_DATA_MAP(winrun_dsp_data,0) |
| 1616 | 1617 | MDRV_CPU_IO_MAP(winrun_dsp_io,0) |
| 1617 | 1618 | |
| 1618 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1619 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 1620 | 1619 | MDRV_INTERLEAVE(100) /* 100 CPU slices per frame */ |
| 1621 | 1620 | |
| 1622 | 1621 | MDRV_MACHINE_RESET(namcos2) |
| 1623 | 1622 | MDRV_NVRAM_HANDLER(namcos2) |
| 1624 | 1623 | |
| 1625 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1624 | ||
| 1625 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1626 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1627 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 1626 | 1628 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1627 | 1629 | MDRV_SCREEN_SIZE(NAMCOS21_POLY_FRAME_WIDTH,NAMCOS21_POLY_FRAME_HEIGHT) |
| 1628 | 1630 | MDRV_SCREEN_VISIBLE_AREA(0,495,0,479) |
| r1711 | r1712 | |
| 1672 | 1674 | MDRV_CPU_PROGRAM_MAP(am_gpu_winrun,0) |
| 1673 | 1675 | MDRV_CPU_VBLANK_INT(namcos2_68k_gpu_vblank,1) |
| 1674 | 1676 | |
| 1675 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1676 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 1677 | 1677 | MDRV_INTERLEAVE(100) /* 100 CPU slices per frame */ |
| 1678 | 1678 | |
| 1679 | 1679 | MDRV_MACHINE_RESET(namcos2) |
| 1680 | 1680 | MDRV_NVRAM_HANDLER(namcos2) |
| 1681 | 1681 | |
| 1682 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1682 | ||
| 1683 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1684 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1685 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 1683 | 1686 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1684 | 1687 | MDRV_SCREEN_SIZE(NAMCOS21_POLY_FRAME_WIDTH,NAMCOS21_POLY_FRAME_HEIGHT) |
| 1685 | 1688 | MDRV_SCREEN_VISIBLE_AREA(0,495,0,479) |
| 1686 | 1689 | |
| 1687 | 1690 | MDRV_PALETTE_LENGTH(NAMCOS21_NUM_COLORS) |
| 1688 | MDRV_COLORTABLE_LENGTH(NAMCOS21_NUM_COLORS) | |
| 1689 | 1691 | |
| 1690 | 1692 | MDRV_VIDEO_START(namcos21) |
| 1691 | 1693 | MDRV_VIDEO_UPDATE(namcos21) |
| r1711 | r1712 | |
|---|---|---|
| 1556 | 1556 | MDRV_SOUND_CONFIG(pgm_ics2115_interface) |
| 1557 | 1557 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 5.0) |
| 1558 | 1558 | |
| 1559 | /* video hardware */ | |
| 1560 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1559 | 1561 | MDRV_SCREEN_REFRESH_RATE(60) |
| 1560 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1561 | ||
| 1562 | /* video hardware */ | |
| 1563 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 1562 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1564 | 1563 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1565 | 1564 | MDRV_SCREEN_SIZE(64*8, 64*8) |
| 1566 | 1565 | MDRV_SCREEN_VISIBLE_AREA(0*8, 56*8-1, 0*8, 28*8-1) |
| 1566 | ||
| 1567 | 1567 | MDRV_GFXDECODE(pgm) |
| 1568 | 1568 | MDRV_PALETTE_LENGTH(0x1200/2) |
| 1569 | 1569 | MDRV_MACHINE_RESET ( pgm ) |
| r1711 | r1712 | |
|---|---|---|
| 308 | 308 | MDRV_CPU_IO_MAP(main_portmap,0) |
| 309 | 309 | MDRV_CPU_VBLANK_INT(iqblock_interrupt,16) |
| 310 | 310 | |
| 311 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 312 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 313 | 311 | MDRV_MACHINE_RESET(iqblock) |
| 314 | 312 | |
| 315 | 313 | /* video hardware */ |
| 316 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 314 | MDRV_SCREEN_ADD("main", RASTER) | |
| 315 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 316 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 317 | 317 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 318 | 318 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 319 | 319 | MDRV_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 0*8, 30*8-1) |
| 320 | ||
| 320 | 321 | MDRV_GFXDECODE(iqblock) |
| 321 | 322 | MDRV_PALETTE_LENGTH(1024) |
| 322 | 323 | |
| r1711 | r1712 | |
| 338 | 339 | MDRV_CPU_IO_MAP(main_portmap,0) |
| 339 | 340 | MDRV_CPU_VBLANK_INT(iqblock_interrupt,16) |
| 340 | 341 | |
| 341 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 342 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 343 | 342 | MDRV_MACHINE_RESET(iqblock) |
| 344 | 343 | |
| 345 | 344 | /* video hardware */ |
| 346 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 345 | MDRV_SCREEN_ADD("main", RASTER) | |
| 346 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 347 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 347 | 348 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 348 | 349 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 349 | 350 | MDRV_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 0*8, 30*8-1) |
| 351 | ||
| 350 | 352 | MDRV_GFXDECODE(cabaret) |
| 351 | 353 | MDRV_PALETTE_LENGTH(1024) |
| 352 | 354 | |
| r1711 | r1712 | |
| 368 | 370 | MDRV_CPU_IO_MAP(pokerigs_portmap,0) |
| 369 | 371 | MDRV_CPU_VBLANK_INT(iqblock_interrupt,16) |
| 370 | 372 | |
| 371 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 372 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 373 | 373 | MDRV_MACHINE_RESET(iqblock) |
| 374 | 374 | |
| 375 | 375 | /* video hardware */ |
| 376 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 376 | MDRV_SCREEN_ADD("main", RASTER) | |
| 377 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 378 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 377 | 379 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 378 | 380 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 379 | 381 | MDRV_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 0*8, 30*8-1) |
| 382 | ||
| 380 | 383 | MDRV_GFXDECODE(cabaret) |
| 381 | 384 | MDRV_PALETTE_LENGTH(1024) |
| 382 | 385 |
| r1711 | r1712 | |
|---|---|---|
| 16 | 16 | 00011----------- n.c. |
| 17 | 17 | 00100-------xxxx R/W xxxxxxxx VIA 1 6522 for video interface |
| 18 | 18 | 00101-------xxxx R/W xxxxxxxx VIA 2 6522 for I/O interface |
| 19 | 00110-------xxxx R/W xxxxxxxx VIA 3 6522 for interface with | |
| 19 | 00110-------xxxx R/W xxxxxxxx VIA 3 6522 for interface with a | |
| 20 | 20 | 00111----------- n.c. |
| 21 | 21 | 01-------------- n.c. |
| 22 | 22 | 10-------------- n.c. |
| r1711 | r1712 | |
| 68 | 68 | #include "machine/6532riot.h" |
| 69 | 69 | #include "machine/6522via.h" |
| 70 | 70 | #include "sound/ay8910.h" |
| 71 | #include "gameplan.h" | |
| 71 | 72 | |
| 72 | 73 | |
| 73 | 74 | |
| 74 | #define MAIN_MASTER_CLOCK (3579000) | |
| 75 | #define AUDIO_MASTER_CLOCK (3579000) | |
| 76 | #define MAIN_CPU_CLOCK (MAIN_MASTER_CLOCK / 4) | |
| 77 | #define AUDIO_CPU_CLOCK (AUDIO_MASTER_CLOCK / 4) | |
| 78 | #define AY8910_CLOCK (AUDIO_MASTER_CLOCK / 2) | |
| 79 | #define PIXEL_CLOCK (11668800 / 2) | |
| 80 | #define HTOTAL (0x160) | |
| 81 | #define HBEND (0x000) | |
| 82 | #define HBSTART (0x100) | |
| 83 | #define VTOTAL (0x118) | |
| 84 | #define VBEND (0x000) | |
| 85 | #define VBSTART (0x100) | |
| 86 | ||
| 87 | #define GAMEPLAN_NUM_PENS (0x08) | |
| 88 | #define LEPRECHN_NUM_PENS (0x10) | |
| 89 | ||
| 90 | ||
| 91 | ||
| 92 | 75 | /************************************* |
| 93 | 76 | * |
| 94 | * Video system | |
| 95 | * | |
| 96 | *************************************/ | |
| 97 | ||
| 98 | static UINT8 *gameplan_videoram; | |
| 99 | static size_t gameplan_videoram_size; | |
| 100 | static UINT8 video_x; | |
| 101 | static UINT8 video_y; | |
| 102 | static UINT8 video_command; | |
| 103 | static UINT8 video_data; | |
| 104 | ||
| 105 | ||
| 106 | static VIDEO_START( gameplan ) | |
| 107 | { | |
| 108 | gameplan_videoram_size = (HBSTART - HBEND) * (VBSTART - VBEND); | |
| 109 | gameplan_videoram = auto_malloc(gameplan_videoram_size); | |
| 110 | } | |
| 111 | ||
| 112 | ||
| 113 | static void gameplan_get_pens(pen_t *pens) | |
| 114 | { | |
| 115 | offs_t i; | |
| 116 | ||
| 117 | for (i = 0; i < GAMEPLAN_NUM_PENS; i++) | |
| 118 | { | |
| 119 | pens[i] = MAKE_RGB(pal1bit(i >> 0), pal1bit(i >> 1), pal1bit(i >> 2)); | |
| 120 | } | |
| 121 | } | |
| 122 | ||
| 123 | ||
| 124 | /* RGBI palette. Is it correct, or does it use the standard RGB? */ | |
| 125 | static void leprechn_get_pens(pen_t *pens) | |
| 126 | { | |
| 127 | offs_t i; | |
| 128 | ||
| 129 | for (i = 0; i < LEPRECHN_NUM_PENS; i++) | |
| 130 | { | |
| 131 | UINT8 bk = (i & 8) ? 0x40 : 0x00; | |
| 132 | UINT8 r = (i & 1) ? 0xff : bk; | |
| 133 | UINT8 g = (i & 2) ? 0xff : bk; | |
| 134 | UINT8 b = (i & 4) ? 0xff : bk; | |
| 135 | ||
| 136 | pens[i] = MAKE_RGB(r, g, b); | |
| 137 | } | |
| 138 | } | |
| 139 | ||
| 140 | ||
| 141 | static VIDEO_UPDATE( gameplan ) | |
| 142 | { | |
| 143 | pen_t pens[GAMEPLAN_NUM_PENS]; | |
| 144 | offs_t offs; | |
| 145 | ||
| 146 | gameplan_get_pens(pens); | |
| 147 | ||
| 148 | for (offs = 0; offs < gameplan_videoram_size; offs++) | |
| 149 | { | |
| 150 | UINT8 y = offs >> 8; | |
| 151 | UINT8 x = offs & 0xff; | |
| 152 | ||
| 153 | *BITMAP_ADDR32(bitmap, y, x) = pens[gameplan_videoram[offs] & 0x07]; | |
| 154 | } | |
| 155 | ||
| 156 | return 0; | |
| 157 | } | |
| 158 | ||
| 159 | ||
| 160 | static VIDEO_UPDATE( leprechn ) | |
| 161 | { | |
| 162 | pen_t pens[LEPRECHN_NUM_PENS]; | |
| 163 | offs_t offs; | |
| 164 | ||
| 165 | leprechn_get_pens(pens); | |
| 166 | ||
| 167 | for (offs = 0; offs < gameplan_videoram_size; offs++) | |
| 168 | { | |
| 169 | UINT8 y = offs >> 8; | |
| 170 | UINT8 x = offs & 0xff; | |
| 171 | ||
| 172 | *BITMAP_ADDR32(bitmap, y, x) = pens[gameplan_videoram[offs]]; | |
| 173 | } | |
| 174 | ||
| 175 | return 0; | |
| 176 | } | |
| 177 | ||
| 178 | ||
| 179 | ||
| 180 | /************************************* | |
| 181 | * | |
| 182 | * VIA 1 - video | |
| 183 | * | |
| 184 | *************************************/ | |
| 185 | ||
| 186 | static emu_timer *via_0_ca1_timer; | |
| 187 | ||
| 188 | ||
| 189 | ||
| 190 | static WRITE8_HANDLER( video_data_w ) | |
| 191 | { | |
| 192 | video_data = data; | |
| 193 | } | |
| 194 | ||
| 195 | ||
| 196 | static WRITE8_HANDLER( gameplan_video_command_w ) | |
| 197 | { | |
| 198 | video_command = data & 0x07; | |
| 199 | } | |
| 200 | ||
| 201 | ||
| 202 | static WRITE8_HANDLER( leprechn_video_command_w ) | |
| 203 | { | |
| 204 | video_command = (data >> 3) & 0x07; | |
| 205 | } | |
| 206 | ||
| 207 | ||
| 208 | static TIMER_CALLBACK( clear_screen_done_callback ) | |
| 209 | { | |
| 210 | /* indicate that the we are done clearing the screen */ | |
| 211 | via_0_ca1_w(0, 0); | |
| 212 | } | |
| 213 | ||
| 214 | ||
| 215 | static WRITE8_HANDLER( video_command_trigger_w ) | |
| 216 | { | |
| 217 | if (data == 0) | |
| 218 | { | |
| 219 | switch (video_command) | |
| 220 | { | |
| 221 | /* draw pixel */ | |
| 222 | case 0: | |
| 223 | /* auto-adjust X? */ | |
| 224 | if (video_data & 0x10) | |
| 225 | { | |
| 226 | if (video_data & 0x40) | |
| 227 | video_x = video_x - 1; | |
| 228 | else | |
| 229 | video_x = video_x + 1; | |
| 230 | } | |
| 231 | ||
| 232 | /* auto-adjust Y? */ | |
| 233 | if (video_data & 0x20) | |
| 234 | { | |
| 235 | if (video_data & 0x80) | |
| 236 | video_y = video_y - 1; | |
| 237 | else | |
| 238 | video_y = video_y + 1; | |
| 239 | } | |
| 240 | ||
| 241 | gameplan_videoram[video_y * (HBSTART - HBEND) + video_x] = video_data & 0x0f; | |
| 242 | ||
| 243 | break; | |
| 244 | ||
| 245 | /* load X register */ | |
| 246 | case 1: | |
| 247 | video_x = video_data; | |
| 248 | break; | |
| 249 | ||
| 250 | /* load Y register */ | |
| 251 | case 2: | |
| 252 | video_y = video_data; | |
| 253 | break; | |
| 254 | ||
| 255 | /* clear screen */ | |
| 256 | case 3: | |
| 257 | ||
| 258 | /* indicate that the we are busy */ | |
| 259 | via_0_ca1_w(0, 1); | |
| 260 | ||
| 261 | memset(gameplan_videoram, video_data & 0x0f, gameplan_videoram_size); | |
| 262 | ||
| 263 | /* set a timer for an arbitrarily short period. | |
| 264 | The real time it takes to clear to screen is not | |
| 265 | important to the software */ | |
| 266 | timer_call_after_resynch(NULL, 0, clear_screen_done_callback); | |
| 267 | ||
| 268 | break; | |
| 269 | } | |
| 270 | } | |
| 271 | } | |
| 272 | ||
| 273 | ||
| 274 | static TIMER_CALLBACK( via_irq_delayed ) | |
| 275 | { | |
| 276 | cpunum_set_input_line(machine, 0, 0, param); | |
| 277 | } | |
| 278 | ||
| 279 | ||
| 280 | static void via_irq(int state) | |
| 281 | { | |
| 282 | /* Kaos sits in a tight loop polling the VIA irq flags register, but that register is | |
| 283 | cleared by the irq handler. Therefore, I wait a bit before triggering the irq to | |
| 284 | leave time for the program to see the flag change. */ | |
| 285 | timer_set(ATTOTIME_IN_USEC(50), NULL, state, via_irq_delayed); | |
| 286 | } | |
| 287 | ||
| 288 | ||
| 289 | static const struct via6522_interface gameplan_via_0_interface = | |
| 290 | { | |
| 291 | 0, 0, /*inputs : A/B */ | |
| 292 | /*vblank*/0, 0, 0, 0, /*inputs : CA/B1,CA/B2 */ | |
| 293 | video_data_w, gameplan_video_command_w, /*outputs: A/B */ | |
| 294 | 0, 0, video_command_trigger_w, 0, /*outputs: CA/B1,CA/B2 */ | |
| 295 | via_irq /*irq */ | |
| 296 | }; | |
| 297 | ||
| 298 | ||
| 299 | static const struct via6522_interface leprechn_via_0_interface = | |
| 300 | { | |
| 301 | 0, 0, /*inputs : A/B */ | |
| 302 | /*vblank*/0, 0, 0, 0, /*inputs : CA/B1,CA/B2 */ | |
| 303 | video_data_w, leprechn_video_command_w, /*outputs: A/B */ | |
| 304 | 0, 0, video_command_trigger_w, 0, /*outputs: CA/B1,CA/B2 */ | |
| 305 | via_irq /*irq */ | |
| 306 | }; | |
| 307 | ||
| 308 | ||
| 309 | static TIMER_CALLBACK( via_0_ca1_timer_callback ) | |
| 310 | { | |
| 311 | /* !VBLANK is connected to CA1 */ | |
| 312 | via_0_ca1_w(0, (UINT8)param); | |
| 313 | ||
| 314 | if (param) | |
| 315 | timer_adjust_oneshot(via_0_ca1_timer, video_screen_get_time_until_pos(0, VBSTART, 0), 0); | |
| 316 | else | |
| 317 | timer_adjust_oneshot(via_0_ca1_timer, video_screen_get_time_until_pos(0, VBEND, 0), 1); | |
| 318 | } | |
| 319 | ||
| 320 | ||
| 321 | static void create_via_0_timer(void) | |
| 322 | { | |
| 323 | via_0_ca1_timer = timer_alloc(via_0_ca1_timer_callback, NULL); | |
| 324 | } | |
| 325 | ||
| 326 | ||
| 327 | static void start_via_0_timer(void) | |
| 328 | { | |
| 329 | timer_adjust_oneshot(via_0_ca1_timer, video_screen_get_time_until_pos(0, VBSTART, 0), 0); | |
| 330 | } | |
| 331 | ||
| 332 | ||
| 333 | ||
| 334 | /************************************* | |
| 335 | * | |
| 336 | 77 | * VIA 2 - I/O |
| 337 | 78 | * |
| 338 | 79 | *************************************/ |
| 339 | 80 | |
| 340 | static UINT8 current_port; | |
| 341 | ||
| 342 | ||
| 343 | 81 | static WRITE8_HANDLER( io_select_w ) |
| 344 | 82 | { |
| 83 | gameplan_state *state = Machine->driver_data; | |
| 84 | ||
| 345 | 85 | switch (data) |
| 346 | 86 | { |
| 347 | case 0x01: current_port = 0; break; | |
| 348 | case 0x02: current_port = 1; break; | |
| 349 | case 0x04: current_port = 2; break; | |
| 350 | case 0x08: current_port = 3; break; | |
| 351 | case 0x80: current_port = 4; break; | |
| 352 | case 0x40: current_port = 5; break; | |
| 87 | case 0x01: state->current_port = 0; break; | |
| 88 | case 0x02: state->current_port = 1; break; | |
| 89 | case 0x04: state->current_port = 2; break; | |
| 90 | case 0x08: state->current_port = 3; break; | |
| 91 | case 0x80: state->current_port = 4; break; | |
| 92 | case 0x40: state->current_port = 5; break; | |
| 353 | 93 | } |
| 354 | 94 | } |
| 355 | 95 | |
| 356 | 96 | |
| 357 | 97 | static READ8_HANDLER( io_port_r ) |
| 358 | 98 | { |
| 359 | return readinputport(current_port); | |
| 99 | gameplan_state *state = Machine->driver_data; | |
| 100 | ||
| 101 | return readinputport(state->current_port); | |
| 360 | 102 | } |
| 361 | 103 | |
| 362 | 104 | |
| r1711 | r1712 | |
| 379 | 121 | |
| 380 | 122 | /************************************* |
| 381 | 123 | * |
| 382 | * VIA 3 - | |
| 124 | * VIA 3 - a | |
| 383 | 125 | * |
| 384 | 126 | *************************************/ |
| 385 | 127 | |
| 386 | static UINT8 sound_cmd; | |
| 387 | ||
| 388 | ||
| 389 | static WRITE8_HANDLER( sound_reset_w ) | |
| 128 | static WRITE8_HANDLER( audio_reset_w ) | |
| 390 | 129 | { |
| 391 | 130 | cpunum_set_input_line(Machine, 1, INPUT_LINE_RESET, (data & 1) ? CLEAR_LINE : ASSERT_LINE); |
| 392 | 131 | } |
| 393 | 132 | |
| 394 | 133 | |
| 395 | static WRITE8_HANDLER( | |
| 134 | static WRITE8_HANDLER( a | |
| 396 | 135 | { |
| 397 | sound_cmd = data & 0x7f; | |
| 136 | gameplan_state *state = Machine->driver_data; | |
| 137 | ||
| 138 | state->audio_cmd = data & 0x7f; | |
| 398 | 139 | } |
| 399 | 140 | |
| 400 | 141 | |
| 401 | static WRITE8_HANDLER( | |
| 142 | static WRITE8_HANDLER( a | |
| 402 | 143 | { |
| 403 | | |
| 144 | ga | |
| 404 | 145 | |
| 146 | UINT8 cmd = (data << 7) | (state->audio_cmd & 0x7f); | |
| 147 | ||
| 405 | 148 | soundlatch_w(0, cmd); |
| 406 | 149 | r6532_0_porta_w(0, cmd); |
| 407 | 150 | } |
| r1711 | r1712 | |
| 411 | 154 | { |
| 412 | 155 | 0, soundlatch2_r, /*inputs : A/B */ |
| 413 | 156 | 0, 0, 0, 0, /*inputs : CA/B1,CA/B2 */ |
| 414 | sound_cmd_w, 0, /*outputs: A/B */ | |
| 415 | 0, 0, sound_trigger_w, sound_reset_w, /*outputs: CA/B1,CA/B2 */ | |
| 157 | audio_cmd_w, 0, /*outputs: A/B */ | |
| 158 | 0, 0, audio_trigger_w, audio_reset_w, /*outputs: CA/B1,CA/B2 */ | |
| 416 | 159 | 0 /*irq */ |
| 417 | 160 | }; |
| 418 | 161 | |
| r1711 | r1712 | |
| 420 | 163 | |
| 421 | 164 | /************************************* |
| 422 | 165 | * |
| 423 | * | |
| 166 | * RIOT | |
| 424 | 167 | * |
| 425 | 168 | *************************************/ |
| 426 | 169 | |
| r1711 | r1712 | |
| 443 | 186 | |
| 444 | 187 | /************************************* |
| 445 | 188 | * |
| 446 | * | |
| 189 | * S | |
| 447 | 190 | * |
| 448 | 191 | *************************************/ |
| 449 | 192 | |
| 450 | 193 | static MACHINE_START( gameplan ) |
| 451 | 194 | { |
| 452 | via_config(0, &gameplan_via_0_interface); | |
| 195 | gameplan_state *state = machine->driver_data; | |
| 196 | ||
| 453 | 197 | via_config(1, &via_1_interface); |
| 454 | 198 | via_config(2, &via_2_interface); |
| 455 | 199 | |
| 456 | 200 | r6532_config(0, &r6532_interface); |
| 457 | r6532_set_clock(0, AUDIO_CPU_CLOCK); | |
| 201 | r6532_set_clock(0, GAMEPLAN_AUDIO_CPU_CLOCK); | |
| 458 | 202 | r6532_reset(0); |
| 459 | 203 | |
| 460 | create_via_0_timer(); | |
| 204 | /* register for save states */ | |
| 205 | state_save_register_global(state->current_port); | |
| 206 | state_save_register_global(state->audio_cmd); | |
| 461 | 207 | } |
| 462 | 208 | |
| 463 | 209 | |
| 464 | static MACHINE_START( leprechn ) | |
| 465 | { | |
| 466 | via_config(0, &leprechn_via_0_interface); | |
| 467 | via_config(1, &via_1_interface); | |
| 468 | via_config(2, &via_2_interface); | |
| 469 | 210 | |
| 470 | r6532_config(0, &r6532_interface); | |
| 471 | r6532_set_clock(0, AUDIO_CPU_CLOCK); | |
| 472 | r6532_reset(0); | |
| 211 | /************************************* | |
| 212 | * | |
| 213 | * Reset | |
| 214 | * | |
| 215 | *************************************/ | |
| 473 | 216 | |
| 474 | create_via_0_timer(); | |
| 475 | } | |
| 476 | ||
| 477 | ||
| 478 | 217 | static MACHINE_RESET( gameplan ) |
| 479 | 218 | { |
| 480 | 219 | via_reset(); |
| 481 | ||
| 482 | start_via_0_timer(); | |
| 483 | 220 | } |
| 484 | 221 | |
| 485 | 222 | |
| 486 | 223 | |
| 224 | /************************************* | |
| 225 | * | |
| 226 | * Main CPU memory handlers | |
| 227 | * | |
| 228 | *************************************/ | |
| 229 | ||
| 487 | 230 | static ADDRESS_MAP_START( gameplan_main_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 488 | 231 | AM_RANGE(0x0000, 0x03ff) AM_MIRROR(0x1c00) AM_RAM |
| 489 | 232 | AM_RANGE(0x2000, 0x200f) AM_MIRROR(0x07f0) AM_READWRITE(via_0_r, via_0_w) /* VIA 1 */ |
| r1711 | r1712 | |
| 495 | 238 | ADDRESS_MAP_END |
| 496 | 239 | |
| 497 | 240 | |
| 241 | ||
| 242 | /************************************* | |
| 243 | * | |
| 244 | * Audio CPU memory handlers | |
| 245 | * | |
| 246 | *************************************/ | |
| 247 | ||
| 498 | 248 | static ADDRESS_MAP_START( gameplan_audio_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 499 | 249 | AM_RANGE(0x0000, 0x007f) AM_MIRROR(0x1780) AM_RAM /* 6532 internal RAM */ |
| 500 | 250 | AM_RANGE(0x0800, 0x081f) AM_MIRROR(0x17e0) AM_READWRITE(r6532_0_r, r6532_0_w) |
| r1711 | r1712 | |
| 523 | 273 | |
| 524 | 274 | |
| 525 | 275 | |
| 276 | /************************************* | |
| 277 | * | |
| 278 | * Input ports | |
| 279 | * | |
| 280 | *************************************/ | |
| 281 | ||
| 526 | 282 | static INPUT_PORTS_START( killcom ) |
| 527 | 283 | PORT_START /* COL. A - from "TEST NO.7 - status locator - coin-door" */ |
| 528 | 284 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r1711 | r1712 | |
| 614 | 370 | PORT_DIPSETTING( 0x80, DEF_STR( Upright ) ) |
| 615 | 371 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) |
| 616 | 372 | |
| 617 | PORT_START /* | |
| 373 | PORT_START /* a | |
| 618 | 374 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) |
| 619 | 375 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 620 | 376 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r1711 | r1712 | |
| 640 | 396 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 641 | 397 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 642 | 398 | |
| 643 | PORT_START /* | |
| 399 | PORT_START /* a | |
| 644 | 400 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) |
| 645 | 401 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 646 | 402 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r1711 | r1712 | |
| 760 | 516 | PORT_DIPSETTING( 0x80, DEF_STR( Upright ) ) |
| 761 | 517 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) |
| 762 | 518 | |
| 763 | PORT_START /* | |
| 519 | PORT_START /* a | |
| 764 | 520 | PORT_DIPNAME( 0x01, 0x00, "Sound Test A 0" ) |
| 765 | 521 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 766 | 522 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r1711 | r1712 | |
| 786 | 542 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 787 | 543 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 788 | 544 | |
| 789 | PORT_START /* | |
| 545 | PORT_START /* a | |
| 790 | 546 | PORT_DIPNAME( 0x01, 0x00, "Sound Test B 0" ) |
| 791 | 547 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 792 | 548 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r1711 | r1712 | |
| 905 | 661 | PORT_DIPSETTING( 0x80, DEF_STR( Upright ) ) |
| 906 | 662 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) |
| 907 | 663 | |
| 908 | PORT_START /* | |
| 664 | PORT_START /* a | |
| 909 | 665 | PORT_DIPNAME( 0x01, 0x00, "Sound Test A 0" ) |
| 910 | 666 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 911 | 667 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r1711 | r1712 | |
| 931 | 687 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 932 | 688 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 933 | 689 | |
| 934 | PORT_START /* | |
| 690 | PORT_START /* a | |
| 935 | 691 | PORT_DIPNAME( 0x01, 0x00, "Sound Test B 0" ) |
| 936 | 692 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 937 | 693 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r1711 | r1712 | |
| 1055 | 811 | PORT_DIPSETTING( 0x80, DEF_STR( Upright ) ) |
| 1056 | 812 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) |
| 1057 | 813 | |
| 1058 | PORT_START /* | |
| 814 | PORT_START /* a | |
| 1059 | 815 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) |
| 1060 | 816 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1061 | 817 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r1711 | r1712 | |
| 1081 | 837 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1082 | 838 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1083 | 839 | |
| 1084 | PORT_START /* | |
| 840 | PORT_START /* a | |
| 1085 | 841 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) |
| 1086 | 842 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1087 | 843 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r1711 | r1712 | |
| 1198 | 954 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 1199 | 955 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1200 | 956 | |
| 1201 | PORT_START /* | |
| 957 | PORT_START /* a | |
| 1202 | 958 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) |
| 1203 | 959 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1204 | 960 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r1711 | r1712 | |
| 1224 | 980 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1225 | 981 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1226 | 982 | |
| 1227 | PORT_START /* | |
| 983 | PORT_START /* a | |
| 1228 | 984 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) |
| 1229 | 985 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1230 | 986 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r1711 | r1712 | |
| 1341 | 1097 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 1342 | 1098 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1343 | 1099 | |
| 1344 | PORT_START /* | |
| 1100 | PORT_START /* a | |
| 1345 | 1101 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) |
| 1346 | 1102 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1347 | 1103 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r1711 | r1712 | |
| 1367 | 1123 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1368 | 1124 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1369 | 1125 | |
| 1370 | PORT_START /* | |
| 1126 | PORT_START /* a | |
| 1371 | 1127 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) |
| 1372 | 1128 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1373 | 1129 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r1711 | r1712 | |
| 1396 | 1152 | |
| 1397 | 1153 | |
| 1398 | 1154 | |
| 1155 | /************************************* | |
| 1156 | * | |
| 1157 | * Machine drivers | |
| 1158 | * | |
| 1159 | *************************************/ | |
| 1160 | ||
| 1399 | 1161 | static const struct AY8910interface ay8910_interface = |
| 1400 | 1162 | { |
| 1401 | 1163 | input_port_6_r, |
| r1711 | r1712 | |
| 1405 | 1167 | |
| 1406 | 1168 | static MACHINE_DRIVER_START( gameplan ) |
| 1407 | 1169 | |
| 1170 | MDRV_DRIVER_DATA(gameplan_state) | |
| 1171 | ||
| 1408 | 1172 | /* basic machine hardware */ |
| 1409 | MDRV_CPU_ADD(M6502, MAIN_CPU_CLOCK) | |
| 1173 | MDRV_CPU_ADD(M6502, GAMEPLAN_MAIN_CPU_CLOCK) | |
| 1410 | 1174 | MDRV_CPU_PROGRAM_MAP(gameplan_main_map,0) |
| 1411 | 1175 | |
| 1412 | MDRV_CPU_ADD_TAG("audio", M6502, AUDIO_CPU_CLOCK) | |
| 1176 | MDRV_CPU_ADD_TAG("audio", M6502, GAMEPLAN_AUDIO_CPU_CLOCK) | |
| 1413 | 1177 | MDRV_CPU_PROGRAM_MAP(gameplan_audio_map,0) |
| 1414 | 1178 | |
| 1415 | 1179 | MDRV_MACHINE_START(gameplan) |
| 1416 | 1180 | MDRV_MACHINE_RESET(gameplan) |
| 1417 | 1181 | |
| 1418 | 1182 | /* video hardware */ |
| 1419 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1420 | MDRV_VIDEO_START(gameplan) | |
| 1421 | MDRV_VIDEO_UPDATE(gameplan) | |
| 1183 | MDRV_IMPORT_FROM(gameplan_video); | |
| 1422 | 1184 | |
| 1423 | MDRV_SCREEN_ADD("main", 0) | |
| 1424 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) | |
| 1425 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART) | |
| 1426 | ||
| 1427 | /* sound hardware */ | |
| 1185 | /* audio hardware */ | |
| 1428 | 1186 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 1429 | 1187 | |
| 1430 | MDRV_SOUND_ADD(AY8910, AY8910_CLOCK) | |
| 1188 | MDRV_SOUND_ADD(AY8910, GAMEPLAN_AY8910_CLOCK) | |
| 1431 | 1189 | MDRV_SOUND_CONFIG(ay8910_interface) |
| 1432 | 1190 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.33) |
| 1433 | ||
| 1434 | 1191 | MACHINE_DRIVER_END |
| 1435 | 1192 | |
| 1436 | 1193 | |
| 1437 | 1194 | static MACHINE_DRIVER_START( leprechn ) |
| 1438 | 1195 | |
| 1439 | /* basic machine hardware */ | |
| 1440 | 1196 | MDRV_IMPORT_FROM(gameplan) |
| 1197 | ||
| 1198 | /* basic machine hardware */ | |
| 1441 | 1199 | MDRV_CPU_MODIFY("audio") |
| 1442 | 1200 | MDRV_CPU_PROGRAM_MAP(leprechn_audio_map,0) |
| 1443 | 1201 | |
| 1444 | MDRV_MACHINE_START(leprechn) | |
| 1445 | ||
| 1446 | 1202 | /* video hardware */ |
| 1447 | MDRV_VIDEO_UPDATE(leprechn) | |
| 1448 | ||
| 1203 | MDRV_IMPORT_FROM(leprechn_video); | |
| 1449 | 1204 | MACHINE_DRIVER_END |
| 1450 | 1205 | |
| 1451 | 1206 | |
| 1452 | 1207 | |
| 1208 | /************************************* | |
| 1209 | * | |
| 1210 | * ROM defintions | |
| 1211 | * | |
| 1212 | *************************************/ | |
| 1213 | ||
| 1453 | 1214 | ROM_START( killcom ) |
| 1454 | 1215 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) |
| 1455 | 1216 | ROM_LOAD( "killcom.e2", 0xc000, 0x0800, CRC(a01cbb9a) SHA1(a8769243adbdddedfda5f3c8f054e9281a0eca46) ) |
| r1711 | r1712 | |
| 1574 | 1335 | |
| 1575 | 1336 | |
| 1576 | 1337 | |
| 1577 | GAME( 1980, killcom, 0, gameplan, killcom, 0, ROT0, "GamePlan (Centuri license)", "Killer Comet", 0 ) | |
| 1578 | GAME( 1980, megatack, 0, gameplan, megatack, 0, ROT0, "GamePlan (Centuri license)", "Megatack", 0 ) | |
| 1579 | GAME( 1981, challeng, 0, gameplan, challeng, 0, ROT0, "GamePlan (Centuri license)", "Challenger", 0 ) | |
| 1580 | GAME( 1981, kaos, 0, gameplan, kaos, 0, ROT270, "GamePlan", "Kaos", 0 ) | |
| 1581 | GAME( 1982, leprechn, 0, leprechn, leprechn, 0, ROT0, "Tong Electronic", "Leprechaun", 0 ) | |
| 1582 | GAME( 1982, potogold, leprechn, leprechn, leprechn, 0, ROT0, "GamePlan", "Pot of Gold", 0 ) | |
| 1583 | GAME( 1982, leprechp, leprechn, leprechn, leprechn, 0, ROT0, "Tong Electronic", "Leprechaun (Pacific Polytechnical license)", 0 ) | |
| 1584 | GAME( 1982, piratetr, 0, leprechn, piratetr, 0, ROT0, "Tong Electronic", "Pirate Treasure", 0 ) | |
| 1338 | /************************************* | |
| 1339 | * | |
| 1340 | * Game drivers | |
| 1341 | * | |
| 1342 | *************************************/ | |
| 1343 | ||
| 1344 | GAME( 1980, killcom, 0, gameplan, killcom, 0, ROT0, "GamePlan (Centuri license)", "Killer Comet", GAME_SUPPORTS_SAVE ) | |
| 1345 | GAME( 1980, megatack, 0, gameplan, megatack, 0, ROT0, "GamePlan (Centuri license)", "Megatack", GAME_SUPPORTS_SAVE ) | |
| 1346 | GAME( 1981, challeng, 0, gameplan, challeng, 0, ROT0, "GamePlan (Centuri license)", "Challenger", GAME_SUPPORTS_SAVE ) | |
| 1347 | GAME( 1981, kaos, 0, gameplan, kaos, 0, ROT270, "GamePlan", "Kaos", GAME_SUPPORTS_SAVE ) | |
| 1348 | GAME( 1982, leprechn, 0, leprechn, leprechn, 0, ROT0, "Tong Electronic", "Leprechaun", GAME_SUPPORTS_SAVE ) | |
| 1349 | GAME( 1982, potogold, leprechn, leprechn, leprechn, 0, ROT0, "GamePlan", "Pot of Gold", GAME_SUPPORTS_SAVE ) | |
| 1350 | GAME( 1982, leprechp, leprechn, leprechn, leprechn, 0, ROT0, "Tong Electronic", "Leprechaun (Pacific Polytechnical license)", GAME_SUPPORTS_SAVE ) | |
| 1351 | GAME( 1982, piratetr, 0, leprechn, piratetr, 0, ROT0, "Tong Electronic", "Pirate Treasure", GAME_SUPPORTS_SAVE ) |
| r1711 | r1712 | |
|---|---|---|
| 203 | 203 | |
| 204 | 204 | MDRV_INTERLEAVE(10) |
| 205 | 205 | |
| 206 | /* video hardware */ | |
| 207 | MDRV_SCREEN_ADD("main", RASTER) | |
| 206 | 208 | MDRV_SCREEN_REFRESH_RATE(60) |
| 207 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 208 | ||
| 209 | /* video hardware */ | |
| 210 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 209 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 211 | 210 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 212 | 211 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 213 | 212 | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 2*8, 30*8-1) |
| 213 | ||
| 214 | 214 | MDRV_GFXDECODE(ikki) |
| 215 | 215 | MDRV_PALETTE_LENGTH(1024) |
| 216 | 216 |
| r1711 | r1712 | |
|---|---|---|
| 362 | 362 | MDRV_NVRAM_HANDLER(capbowl) |
| 363 | 363 | |
| 364 | 364 | /* video hardware */ |
| 365 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 366 | 365 | MDRV_VIDEO_START(capbowl) |
| 367 | 366 | MDRV_VIDEO_UPDATE(capbowl) |
| 368 | 367 | |
| 368 | MDRV_SCREEN_ADD("main", RASTER) | |
| 369 | 369 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 370 | 370 | MDRV_SCREEN_SIZE(360, 256) |
| 371 | 371 | MDRV_SCREEN_VISIBLE_AREA(0, 359, 0, 244) |
| r1711 | r1712 | |
| 395 | 395 | MDRV_CPU_PROGRAM_MAP(bowlrama_map,0) |
| 396 | 396 | |
| 397 | 397 | /* video hardware */ |
| 398 | MDRV_SCREEN_MODIFY("main") | |
| 398 | 399 | MDRV_SCREEN_VISIBLE_AREA(0, 359, 0, 239) |
| 399 | 400 | MACHINE_DRIVER_END |
| 400 | 401 |
| r1711 | r1712 | |
|---|---|---|
| 854 | 854 | MDRV_MACHINE_RESET(darius) |
| 855 | 855 | |
| 856 | 856 | /* video hardware */ |
| 857 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 858 | 857 | MDRV_GFXDECODE(darius) |
| 859 | 858 | MDRV_PALETTE_LENGTH(4096*2) |
| 860 | 859 | MDRV_DEFAULT_LAYOUT(layout_darius) |
| 861 | 860 | |
| 862 | MDRV_SCREEN_ADD("left", | |
| 861 | MDRV_SCREEN_ADD("left", RASTER) | |
| 863 | 862 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 864 | 863 | MDRV_SCREEN_REFRESH_RATE(60) |
| 865 | MDRV_SCREEN_VBLANK_TIME( | |
| 864 | MDRV_SCREEN_VBLANK_TIME( | |
| 866 | 865 | MDRV_SCREEN_SIZE(36*8, 32*8) |
| 867 | 866 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 1*8, 29*8-1) |
| 868 | 867 | |
| 869 | MDRV_SCREEN_ADD("middle", | |
| 868 | MDRV_SCREEN_ADD("middle", RASTER) | |
| 870 | 869 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 871 | 870 | MDRV_SCREEN_REFRESH_RATE(60) |
| 872 | MDRV_SCREEN_VBLANK_TIME( | |
| 871 | MDRV_SCREEN_VBLANK_TIME( | |
| 873 | 872 | MDRV_SCREEN_SIZE(36*8, 32*8) |
| 874 | 873 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 1*8, 29*8-1) |
| 875 | 874 | |
| 876 | MDRV_SCREEN_ADD("right", | |
| 875 | MDRV_SCREEN_ADD("right", RASTER) | |
| 877 | 876 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 878 | 877 | MDRV_SCREEN_REFRESH_RATE(60) |
| 879 | MDRV_SCREEN_VBLANK_TIME( | |
| 878 | MDRV_SCREEN_VBLANK_TIME( | |
| 880 | 879 | MDRV_SCREEN_SIZE(36*8, 32*8) |
| 881 | 880 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 1*8, 29*8-1) |
| 882 | 881 |
| r1711 | r1712 | |
|---|---|---|
| 47 | 47 | 0x00,0x00,0x00, 0xff,0x00,0xff, 0x80,0x00,0x80, 0x40,0x00,0x40 |
| 48 | 48 | }; |
| 49 | 49 | |
| 50 | static void update_row(mame_bitmap *bitmap, const rectangle *cliprect, | |
| 50 | static void update_row(running_machine *machine, mc6845_t *mc6845, mame_bitmap *bitmap, const rectangle *cliprect, | |
| 51 | 51 | UINT16 ma, UINT8 ra, UINT16 y, UINT8 x_count, void *param) |
| 52 | 52 | { |
| 53 | 53 | int cx,x; |
| r1711 | r1712 | |
| 119 | 119 | |
| 120 | 120 | static VIDEO_START(ssingles) |
| 121 | 121 | { |
| 122 | mc6845 = | |
| 122 | mc6845 = devtag_get_token | |
| 123 | 123 | |
| 124 | 124 | { |
| 125 | 125 | int i; |
| r1711 | r1712 | |
| 274 | 274 | MDRV_CPU_IO_MAP(ssingles_io_map,0) |
| 275 | 275 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,1) |
| 276 | 276 | |
| 277 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 278 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 279 | ||
| 280 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 277 | MDRV_SCREEN_ADD("main", RASTER) | |
| 281 | 278 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 282 | 279 | MDRV_SCREEN_RAW_PARAMS(4000000, 256, 0, 256, 256, 0, 256) /* temporary, CRTC will configure screen */ |
| 283 | 280 | |
| r1711 | r1712 | |
| 286 | 283 | MDRV_VIDEO_START(ssingles) |
| 287 | 284 | MDRV_VIDEO_UPDATE(ssingles) |
| 288 | 285 | |
| 286 | MDRV_DEVICE_ADD("crtc", MC6845) | |
| 287 | MDRV_DEVICE_CONFIG(mc6845_intf) | |
| 288 | ||
| 289 | 289 | /* sound hardware */ |
| 290 | 290 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 291 | 291 |
| r1711 | r1712 | |
|---|---|---|
| 659 | 659 | MDRV_CPU_PROGRAM_MAP(main_map,0) |
| 660 | 660 | MDRV_CPU_VBLANK_INT(irq0_start,1) |
| 661 | 661 | |
| 662 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 663 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 664 | ||
| 665 | 662 | MDRV_MACHINE_START(kinst) |
| 666 | 663 | MDRV_MACHINE_RESET(kinst) |
| 667 | 664 | |
| 668 | 665 | /* video hardware */ |
| 669 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK ) | |
| 666 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK ) | |
| 667 | ||
| 668 | MDRV_SCREEN_ADD("main", RASTER) | |
| 669 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 670 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 670 | 671 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) |
| 671 | 672 | MDRV_SCREEN_SIZE(320, 240) |
| 672 | 673 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 239) |
| 674 | ||
| 673 | 675 | MDRV_PALETTE_LENGTH(32768) |
| 674 | 676 | |
| 675 | 677 | MDRV_VIDEO_UPDATE(kinst) |
| r1711 | r1712 | |
|---|---|---|
| 257 | 257 | MDRV_CPU_IO_MAP(cbasebal_portmap,0) |
| 258 | 258 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) /* ??? */ |
| 259 | 259 | |
| 260 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 261 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 262 | ||
| 263 | 260 | MDRV_NVRAM_HANDLER(cbasebal) |
| 264 | 261 | |
| 265 | 262 | /* video hardware */ |
| 266 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 263 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 264 | ||
| 265 | MDRV_SCREEN_ADD("main", RASTER) | |
| 266 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 267 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 267 | 268 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 268 | 269 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 269 | 270 | MDRV_SCREEN_VISIBLE_AREA(8*8, (64-8)*8-1, 2*8, 30*8-1 ) |
| 271 | ||
| 270 | 272 | MDRV_GFXDECODE(cbasebal) |
| 271 | 273 | MDRV_PALETTE_LENGTH(1024) |
| 272 | 274 |
| r1711 | r1712 | |
|---|---|---|
| 141 | 141 | int scanline = param; |
| 142 | 142 | |
| 143 | 143 | /* update the video */ |
| 144 | | |
| 144 | vi | |
| 145 | 145 | |
| 146 | 146 | /* on scanline zero, clear any halt condition */ |
| 147 | 147 | if (scanline == 0) |
| r1711 | r1712 | |
| 433 | 433 | MDRV_CPU_ADD(ASAP, ATARI_CLOCK_14MHz) |
| 434 | 434 | MDRV_CPU_PROGRAM_MAP(main_map,0) |
| 435 | 435 | |
| 436 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 437 | ||
| 438 | 436 | MDRV_MACHINE_RESET(beathead) |
| 439 | 437 | MDRV_NVRAM_HANDLER(generic_1fill) |
| 440 | 438 | |
| 441 | 439 | /* video hardware */ |
| 442 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 440 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 441 | ||
| 442 | MDRV_SCREEN_ADD("main", RASTER) | |
| 443 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 443 | 444 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 444 | 445 | MDRV_SCREEN_SIZE(42*8, 262) |
| 445 | 446 | MDRV_SCREEN_VISIBLE_AREA(0*8, 42*8-1, 0*8, 30*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 422 | 422 | |
| 423 | 423 | MDRV_CPU_VBLANK_INT(st0016_int,5) /* 4*nmi + int0 */ |
| 424 | 424 | |
| 425 | /* video hardware */ | |
| 426 | MDRV_SCREEN_ADD("main", RASTER) | |
| 425 | 427 | MDRV_SCREEN_REFRESH_RATE(60) |
| 426 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 427 | ||
| 428 | /* video hardware */ | |
| 429 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 428 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 430 | 429 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 431 | 430 | MDRV_SCREEN_SIZE(48*8, 48*8) |
| 432 | 431 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 0*8, 48*8-1) |
| 432 | ||
| 433 | 433 | MDRV_GFXDECODE(st0016) |
| 434 | 434 | MDRV_PALETTE_LENGTH(16*16*4+1) |
| 435 | 435 |
| r1711 | r1712 | |
|---|---|---|
| 22 | 22 | #include "sound/ay8910.h" |
| 23 | 23 | #include "cpu/z80/z80daisy.h" |
| 24 | 24 | |
| 25 | #define CCHASM_68K_CLOCK (XTAL_8MHz) | |
| 25 | 26 | |
| 26 | 27 | /************************************* |
| 27 | 28 | * |
| r1711 | r1712 | |
| 29 | 30 | * |
| 30 | 31 | *************************************/ |
| 31 | 32 | |
| 32 | static ADDRESS_MAP_START( readmem, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 33 | AM_RANGE(0x000000, 0x00ffff) AM_READ(MRA16_ROM) | |
| 34 | AM_RANGE(0x040000, 0x04000f) AM_READ(ptm6840_0_lsb_r) | |
| 35 | AM_RANGE(0x060000, 0x060001) AM_READ(input_port_0_word_r) | |
| 36 | AM_RANGE(0xf80000, 0xf800ff) AM_READ(cchasm_io_r) | |
| 37 | AM_RANGE(0xffb000, 0xffffff) AM_READ(MRA16_RAM) | |
| 38 | ADDRESS_MAP_END | |
| 39 | ||
| 40 | ||
| 41 | static ADDRESS_MAP_START( writemem, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 42 | AM_RANGE(0x000000, 0x00ffff) AM_WRITE(MWA16_ROM) | |
| 43 | AM_RANGE(0x040000, 0x04000f) AM_WRITE(ptm6840_0_lsb_w) | |
| 33 | static ADDRESS_MAP_START( memmap, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 34 | AM_RANGE(0x000000, 0x00ffff) AM_ROM | |
| 35 | AM_RANGE(0x040000, 0x04000f) AM_READWRITE(ptm6840_0_lsb_r,ptm6840_0_lsb_w) | |
| 44 | 36 | AM_RANGE(0x050000, 0x050001) AM_WRITE(cchasm_refresh_control_w) |
| 45 | AM_RANGE(0x060000, 0x060001) AM_WRITE(cchasm_led_w) | |
| 37 | AM_RANGE(0x060000, 0x060001) AM_READWRITE(input_port_0_word_r,cchasm_led_w) | |
| 46 | 38 | AM_RANGE(0x070000, 0x070001) AM_WRITE(watchdog_reset16_w) |
| 47 | AM_RANGE(0xf80000, 0xf800ff) AM_WRITE(cchasm_io_w) | |
| 48 | AM_RANGE(0xffb000, 0xffffff) AM_WRITE(MWA16_RAM) AM_BASE(&cchasm_ram) | |
| 39 | AM_RANGE(0xf80000, 0xf800ff) AM_READWRITE(cchasm_io_r,cchasm_io_w) | |
| 40 | AM_RANGE(0xffb000, 0xffffff) AM_RAM AM_BASE(&cchasm_ram) | |
| 49 | 41 | ADDRESS_MAP_END |
| 50 | 42 | |
| 51 | ||
| 52 | ||
| 53 | 43 | /************************************* |
| 54 | 44 | * |
| 55 | 45 | * Sound CPU memory handlers |
| 56 | 46 | * |
| 57 | 47 | *************************************/ |
| 58 | 48 | |
| 59 | static ADDRESS_MAP_START( sound_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 60 | AM_RANGE(0x0000, 0x0fff) AM_READ(MRA8_ROM) | |
| 61 | AM_RANGE(0x4000, 0x43ff) AM_READ(MRA8_RAM) | |
| 62 | AM_RANGE(0x5000, 0x53ff) AM_READ(MRA8_RAM) | |
| 63 | AM_RANGE(0x6000, 0x6fff) AM_READ(cchasm_snd_io_r) | |
| 49 | static ADDRESS_MAP_START( sound_memmap, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 50 | AM_RANGE(0x0000, 0x0fff) AM_ROM | |
| 51 | AM_RANGE(0x4000, 0x43ff) AM_RAM | |
| 52 | AM_RANGE(0x5000, 0x53ff) AM_RAM | |
| 53 | AM_RANGE(0x6000, 0x6fff) AM_READWRITE(cchasm_snd_io_r,cchasm_snd_io_w) | |
| 64 | 54 | ADDRESS_MAP_END |
| 65 | 55 | |
| 66 | ||
| 67 | static ADDRESS_MAP_START( sound_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 68 | AM_RANGE(0x0000, 0x0fff) AM_WRITE(MWA8_ROM) | |
| 69 | AM_RANGE(0x4000, 0x43ff) AM_WRITE(MWA8_RAM) | |
| 70 | AM_RANGE(0x5000, 0x53ff) AM_WRITE(MWA8_RAM) | |
| 71 | AM_RANGE(0x6000, 0x6fff) AM_WRITE(cchasm_snd_io_w) | |
| 72 | ADDRESS_MAP_END | |
| 73 | ||
| 74 | ||
| 75 | static ADDRESS_MAP_START( sound_readport, ADDRESS_SPACE_IO, 8 ) | |
| 56 | static ADDRESS_MAP_START( sound_portmap, ADDRESS_SPACE_IO, 8 ) | |
| 76 | 57 | ADDRESS_MAP_FLAGS( AMEF_ABITS(8) ) |
| 77 | AM_RANGE(0x00, 0x03) AM_READ(z80ctc_0_r) | |
| 58 | AM_RANGE(0x00, 0x03) AM_READWRITE(z80ctc_0_r,z80ctc_0_w) | |
| 78 | 59 | ADDRESS_MAP_END |
| 79 | 60 | |
| 80 | ||
| 81 | static ADDRESS_MAP_START( sound_writeport, ADDRESS_SPACE_IO, 8 ) | |
| 82 | ADDRESS_MAP_FLAGS( AMEF_ABITS(8) ) | |
| 83 | AM_RANGE(0x00, 0x03) AM_WRITE(z80ctc_0_w) | |
| 84 | ADDRESS_MAP_END | |
| 85 | ||
| 86 | 61 | static void cchasm_6840_irq(int state) |
| 87 | 62 | { |
| 88 | 63 | cpunum_set_input_line(Machine, 0, 4, state?ASSERT_LINE:CLEAR_LINE); |
| 89 | 64 | } |
| 90 | 65 | static const ptm6840_interface cchasm_6840_intf = |
| 91 | 66 | { |
| 92 | 8000000/10, | |
| 93 | { 0,8000000/10,0 }, | |
| 67 | CCHASM_68K_CLOCK/10, | |
| 68 | { 0,CCHASM_68K_CLOCK/10,0 }, | |
| 94 | 69 | { NULL, NULL, NULL }, |
| 95 | 70 | cchasm_6840_irq |
| 96 | 71 | }; |
| r1711 | r1712 | |
| 102 | 77 | *************************************/ |
| 103 | 78 | |
| 104 | 79 | static INPUT_PORTS_START( cchasm ) |
| 105 | PORT_START | |
| 80 | PORT_START_TAG("DSW") | |
| 106 | 81 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Lives ) ) |
| 107 | 82 | PORT_DIPSETTING( 0x01, "3" ) |
| 108 | 83 | PORT_DIPSETTING( 0x00, "5" ) |
| r1711 | r1712 | |
| 125 | 100 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_1C ) ) |
| 126 | 101 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 127 | 102 | |
| 128 | PORT_START | |
| 103 | PORT_START_TAG("IN1") | |
| 129 | 104 | PORT_BIT( 0xff, 0, IPT_DIAL ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) |
| 130 | 105 | |
| 131 | PORT_START | |
| 106 | PORT_START_TAG("IN2") | |
| 132 | 107 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 133 | 108 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 134 | 109 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r1711 | r1712 | |
| 138 | 113 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 ) |
| 139 | 114 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) |
| 140 | 115 | |
| 141 | PORT_START | |
| 116 | PORT_START_TAG("IN3") | |
| 142 | 117 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 143 | 118 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 144 | 119 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN3 ) |
| r1711 | r1712 | |
| 178 | 153 | |
| 179 | 154 | MDRV_MACHINE_START(cchasm) |
| 180 | 155 | /* basic machine hardware */ |
| 181 | MDRV_CPU_ADD(M68000,8000000) /* 8 MHz (from schematics) */ | |
| 182 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) | |
| 156 | MDRV_CPU_ADD(M68000,CCHASM_68K_CLOCK) /* 8 MHz (from schematics) */ | |
| 157 | MDRV_CPU_PROGRAM_MAP(memmap,0) | |
| 183 | 158 | |
| 184 | 159 | MDRV_CPU_ADD(Z80,3584229) /* 3.58 MHz (from schematics) */ |
| 185 | 160 | MDRV_CPU_CONFIG(daisy_chain) |
| 186 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) | |
| 187 | MDRV_CPU_IO_MAP(sound_readport,sound_writeport) | |
| 161 | MDRV_CPU_PROGRAM_MAP(sound_memmap,0) | |
| 162 | MDRV_CPU_IO_MAP(sound_portmap,0) | |
| 188 | 163 | |
| 189 | MDRV_SCREEN_REFRESH_RATE(40) | |
| 190 | ||
| 191 | 164 | /* video hardware */ |
| 192 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_VECTOR ) | |
| 193 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) | |
| 165 | MDRV_SCREEN_ADD("main", VECTOR) | |
| 166 | MDRV_SCREEN_REFRESH_RATE(40) | |
| 194 | 167 | MDRV_SCREEN_SIZE(400, 300) |
| 195 | 168 | MDRV_SCREEN_VISIBLE_AREA(0, 1024-1, 0, 768-1) |
| 169 | ||
| 196 | 170 | MDRV_PALETTE_LENGTH(32768) |
| 197 | 171 | |
| 198 | 172 | MDRV_VIDEO_START(cchasm) |
| r1711 | r1712 | |
|---|---|---|
| 22 | 22 | #include "sound/dac.h" |
| 23 | 23 | |
| 24 | 24 | |
| 25 | extern void konami1_decode(void); | |
| 26 | ||
| 27 | 25 | extern UINT8 *sbasketb_scroll; |
| 28 | 26 | extern UINT8 *sbasketb_palettebank; |
| 29 | 27 | extern UINT8 *sbasketb_spriteram_select; |
| 30 | 28 | |
| 31 | extern WRITE8_HANDLER( sbasketb_videoram_w ); | |
| 32 | extern WRITE8_HANDLER( sbasketb_colorram_w ); | |
| 33 | extern WRITE8_HANDLER( sbasketb_flipscreen_w ); | |
| 34 | extern WRITE8_HANDLER( sbasketb_scroll_w ); | |
| 29 | void konami1_decode(void); | |
| 35 | 30 | |
| 36 | extern PALETTE_INIT( sbasketb ); | |
| 37 | extern VIDEO_START( sbasketb ); | |
| 38 | extern VIDEO_UPDATE( sbasketb ); | |
| 31 | WRITE8_HANDLER( sbasketb_videoram_w ); | |
| 32 | WRITE8_HANDLER( sbasketb_colorram_w ); | |
| 33 | WRITE8_HANDLER( sbasketb_flipscreen_w ); | |
| 34 | WRITE8_HANDLER( sbasketb_scroll_w ); | |
| 39 | 35 | |
| 40 | extern WRITE8_HANDLER( konami_SN76496_latch_w ); | |
| 41 | extern WRITE8_HANDLER( konami_SN76496_0_w ); | |
| 42 | extern WRITE8_HANDLER( hyperspt_sound_w ); | |
| 43 | extern READ8_HANDLER( hyperspt_sh_timer_r ); | |
| 36 | PALETTE_INIT( sbasketb ); | |
| 37 | VIDEO_START( sbasketb ); | |
| 38 | VIDEO_UPDATE( sbasketb ); | |
| 44 | 39 | |
| 40 | WRITE8_HANDLER( konami_SN76496_latch_w ); | |
| 41 | WRITE8_HANDLER( konami_SN76496_0_w ); | |
| 42 | WRITE8_HANDLER( hyperspt_sound_w ); | |
| 43 | READ8_HANDLER( hyperspt_sh_timer_r ); | |
| 45 | 44 | |
| 45 | ||
| 46 | 46 | static WRITE8_HANDLER( sbasketb_sh_irqtrigger_w ) |
| 47 | 47 | { |
| 48 | 48 | cpunum_set_input_line_and_vector(Machine, 1,0,HOLD_LINE,0xff); |
| r1711 | r1712 | |
| 80 | 80 | AM_RANGE(0x3c85, 0x3c85) AM_WRITE(MWA8_RAM) AM_BASE(&sbasketb_spriteram_select) |
| 81 | 81 | AM_RANGE(0x3d00, 0x3d00) AM_WRITE(soundlatch_w) |
| 82 | 82 | AM_RANGE(0x3d80, 0x3d80) AM_WRITE(sbasketb_sh_irqtrigger_w) |
| 83 | AM_RANGE(0x3f80, 0x3f80) AM_WRITE(sbasketb_scroll | |
| 83 | AM_RANGE(0x3f80, 0x3f80) AM_WRITE(MWA8_RAM) AM_BASE(&sbasketb_scroll | |
| 84 | 84 | ADDRESS_MAP_END |
| 85 | 85 | |
| 86 | 86 | static ADDRESS_MAP_START( sound_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| r1711 | r1712 | |
| 246 | 246 | /* audio CPU */ /* 3.5795 MHz */ |
| 247 | 247 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 248 | 248 | |
| 249 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 250 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 251 | ||
| 252 | 249 | /* video hardware */ |
| 253 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 250 | MDRV_SCREEN_ADD("main", RASTER) | |
| 251 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 252 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 254 | 253 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 255 | 254 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 256 | 255 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 256 | ||
| 257 | 257 | MDRV_GFXDECODE(sbasketb) |
| 258 | MDRV_PALETTE_LENGTH(256) | |
| 259 | MDRV_COLORTABLE_LENGTH(16*16+16*16*16) | |
| 258 | MDRV_PALETTE_LENGTH(16*16+16*16*16) | |
| 260 | 259 | |
| 261 | 260 | MDRV_PALETTE_INIT(sbasketb) |
| 262 | 261 | MDRV_VIDEO_START(sbasketb) |
| r1711 | r1712 | |
|---|---|---|
| 229 | 229 | // MDRV_CPU_IO_MAP(io_map,0) |
| 230 | 230 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,1) |
| 231 | 231 | |
| 232 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 233 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 234 | ||
| 235 | 232 | // MDRV_NVRAM_HANDLER(generic_0fill) |
| 236 | 233 | MDRV_MACHINE_RESET(smstrv) |
| 237 | 234 | |
| 238 | 235 | /* video hardware */ |
| 239 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 236 | MDRV_SCREEN_ADD("main", RASTER) | |
| 237 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 238 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 240 | 239 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 241 | 240 | MDRV_SCREEN_SIZE(256, 256) |
| 242 | 241 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 32*8-1) |
| 242 | ||
| 243 | 243 | MDRV_PALETTE_LENGTH(256) |
| 244 | 244 | |
| 245 | 245 | // MDRV_PALETTE_INIT(naughtyb) |
| r1711 | r1712 | |
|---|---|---|
| 374 | 374 | /* audio CPU */ |
| 375 | 375 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 376 | 376 | |
| 377 | /* video hardware */ | |
| 378 | MDRV_SCREEN_ADD("main", RASTER) | |
| 377 | 379 | MDRV_SCREEN_REFRESH_RATE(58) |
| 378 | 380 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529)) |
| 379 | ||
| 380 | /* video hardware */ | |
| 381 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 382 | 381 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 383 | 382 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 384 | 383 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 384 | ||
| 385 | 385 | MDRV_GFXDECODE(funkyjet) |
| 386 | 386 | MDRV_PALETTE_LENGTH(1024) |
| 387 | 387 |
| r1711 | r1712 | |
|---|---|---|
| 268 | 268 | MDRV_CPU_PERIODIC_INT(skyarmy_nmi_source,650) /* Hz */ |
| 269 | 269 | |
| 270 | 270 | /* video hardware */ |
| 271 | MDRV_SCREEN_ADD("main", RASTER) | |
| 271 | 272 | MDRV_SCREEN_REFRESH_RATE(60) |
| 272 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 273 | ||
| 274 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 273 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 275 | 274 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 276 | 275 | MDRV_SCREEN_SIZE(32*8,32*8) |
| 277 | 276 | MDRV_SCREEN_VISIBLE_AREA(0*8,32*8-1,1*8,31*8-1) |
| 277 | ||
| 278 | 278 | MDRV_GFXDECODE(skyarmy) |
| 279 | 279 | MDRV_PALETTE_LENGTH(32) |
| 280 | 280 |
| r1711 | r1712 | |
|---|---|---|
| 241 | 241 | MDRV_CPU_ADD(Z80,8000000/2) |
| 242 | 242 | MDRV_CPU_PROGRAM_MAP(maincpu_map,0) |
| 243 | 243 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 244 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 245 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 246 | 244 | |
| 247 | 245 | MDRV_CPU_ADD(Z80, 80000000/2) |
| 248 | 246 | /* audio CPU */ |
| r1711 | r1712 | |
| 252 | 250 | MDRV_INTERLEAVE(1000) |
| 253 | 251 | |
| 254 | 252 | /* video hardware */ |
| 255 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 253 | MDRV_SCREEN_ADD("main", RASTER) | |
| 254 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 255 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 256 | 256 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 257 | 257 | MDRV_SCREEN_SIZE(256, 256) |
| 258 | ||
| 259 | 258 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 260 | 259 | |
| 261 | 260 | MDRV_GFXDECODE(ksayakyu) |
| r1711 | r1712 | |
|---|---|---|
| 119 | 119 | FIRQ generated by CPU #1 |
| 120 | 120 | |
| 121 | 121 | |
| 122 | ||
| 122 | A | |
| 123 | 123 | ---------- |
| 124 | Slither doesn't have the third CPU and has different | |
| 124 | Slither doesn't have the third CPU and has different a | |
| 125 | 125 | |
| 126 | 126 | Address Dir Data Name Description |
| 127 | 127 | ---------------- --- -------- ----------- ----------------------- |
| r1711 | r1712 | |
| 142 | 142 | |
| 143 | 143 | **************************************************************************** |
| 144 | 144 | |
| 145 | Qix uses two 6809 CPUs: one for data and | |
| 145 | Qix uses two 6809 CPUs: one for data and a | |
| 146 | 146 | video. Communication between the two CPUs is done using a 4K RAM |
| 147 | 147 | space at $8000 (for ZooKeeper the data cpu maps it at $0000 and the |
| 148 | 148 | video cpu at $8000) which both CPUs have direct access. FIRQs (fast |
| r1711 | r1712 | |
| 151 | 151 | |
| 152 | 152 | A third CPU, a 6802, is used for sample playback. It drives an 8-bit |
| 153 | 153 | DAC and according to the schematics a TMS5220 speech chip, which is |
| 154 | never accessed. ROM u27 is the only code needed. A sound command from | |
| 155 | the data CPU causes an IRQ to fire on the 6802 and the sound playback | |
| 154 | never accessed. ROM u27 is the only code needed. A audio command from | |
| 155 | the data CPU causes an IRQ to fire on the 6802 and the audio playback | |
| 156 | 156 | is started. |
| 157 | 157 | |
| 158 | 158 | The coin door switches and player controls are connected to the CPUs |
| r1711 | r1712 | |
| 164 | 164 | specifies which half of the screen is being accessed. |
| 165 | 165 | |
| 166 | 166 | Timing is critical in the hardware. Communications between the data, |
| 167 | video, and | |
| 167 | video, and a | |
| 168 | 168 | |
| 169 | 169 | The address latch works as follows. When the video CPU accesses $9400, |
| 170 | 170 | the screen address is computed by using the values at $9402 (high byte) |
| r1711 | r1712 | |
| 222 | 222 | ***************************************************************************/ |
| 223 | 223 | |
| 224 | 224 | #include "driver.h" |
| 225 | #include "qix.h" | |
| 226 | #include "cpu/m6805/m6805.h" | |
| 225 | #include "deprecat.h" | |
| 227 | 226 | #include "machine/6821pia.h" |
| 228 | #include "sound/sn76496.h" | |
| 229 | #include "sound/discrete.h" | |
| 227 | #include "qix.h" | |
| 230 | 228 | |
| 231 | 229 | |
| 232 | /* Constants */ | |
| 233 | #define MAIN_CLOCK_OSC 20000000 /* 20 MHz */ | |
| 234 | #define SLITHER_CLOCK_OSC 21300000 /* 21.3 MHz */ | |
| 235 | #define SOUND_CLOCK_OSC 7372800 /* 7.3728 MHz */ | |
| 236 | #define COIN_CLOCK_OSC 4000000 /* 4 MHz */ | |
| 237 | 230 | |
| 238 | ||
| 239 | ||
| 240 | 231 | /************************************* |
| 241 | 232 | * |
| 242 | 233 | * Data CPU memory handlers |
| r1711 | r1712 | |
| 274 | 265 | |
| 275 | 266 | /************************************* |
| 276 | 267 | * |
| 277 | * Video CPU memory handlers | |
| 278 | * | |
| 279 | *************************************/ | |
| 280 | ||
| 281 | static ADDRESS_MAP_START( video_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 282 | AM_RANGE(0x0000, 0x7fff) AM_READWRITE(qix_videoram_r, qix_videoram_w) | |
| 283 | AM_RANGE(0x8000, 0x83ff) AM_RAM AM_SHARE(1) | |
| 284 | AM_RANGE(0x8400, 0x87ff) AM_RAM AM_BASE(&generic_nvram) AM_SIZE(&generic_nvram_size) | |
| 285 | AM_RANGE(0x8800, 0x8800) AM_MIRROR(0x03ff) AM_WRITE(qix_palettebank_w) | |
| 286 | AM_RANGE(0x8c00, 0x8c00) AM_MIRROR(0x03fe) AM_READWRITE(qix_data_firq_r, qix_data_firq_w) | |
| 287 | AM_RANGE(0x8c01, 0x8c01) AM_MIRROR(0x03fe) AM_READWRITE(qix_video_firq_ack_r, qix_video_firq_ack_w) | |
| 288 | AM_RANGE(0x9000, 0x93ff) AM_READWRITE(MRA8_RAM, qix_paletteram_w) AM_BASE(&paletteram) | |
| 289 | AM_RANGE(0x9400, 0x9400) AM_MIRROR(0x03fc) AM_READWRITE(qix_addresslatch_r, qix_addresslatch_w) | |
| 290 | AM_RANGE(0x9402, 0x9403) AM_MIRROR(0x03fc) AM_WRITE(MWA8_RAM) AM_BASE(&qix_videoaddress) | |
| 291 | AM_RANGE(0x9800, 0x9800) AM_MIRROR(0x03ff) AM_READ(qix_scanline_r) | |
| 292 | AM_RANGE(0x9c00, 0x9c00) AM_MIRROR(0x03fe) AM_WRITE(qix_mc6845_address_w) | |
| 293 | AM_RANGE(0x9c01, 0x9c01) AM_MIRROR(0x03fe) AM_READWRITE(qix_mc6845_register_r, qix_mc6845_register_w) | |
| 294 | AM_RANGE(0xa000, 0xffff) AM_ROM | |
| 295 | ADDRESS_MAP_END | |
| 296 | ||
| 297 | ||
| 298 | static ADDRESS_MAP_START( zoo_video_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 299 | AM_RANGE(0x0000, 0x7fff) AM_READWRITE(qix_videoram_r, qix_videoram_w) | |
| 300 | AM_RANGE(0x8000, 0x83ff) AM_RAM AM_SHARE(1) | |
| 301 | AM_RANGE(0x8400, 0x87ff) AM_RAM AM_BASE(&generic_nvram) AM_SIZE(&generic_nvram_size) | |
| 302 | AM_RANGE(0x8800, 0x8800) AM_MIRROR(0x03fe) AM_WRITE(qix_palettebank_w) | |
| 303 | AM_RANGE(0x8801, 0x8801) AM_MIRROR(0x03fe) AM_WRITE(zoo_bankswitch_w) | |
| 304 | AM_RANGE(0x8c00, 0x8c00) AM_MIRROR(0x03fe) AM_READWRITE(qix_data_firq_r, qix_data_firq_w) | |
| 305 | AM_RANGE(0x8c01, 0x8c01) AM_MIRROR(0x03fe) AM_READWRITE(qix_video_firq_ack_r, qix_video_firq_ack_w) | |
| 306 | AM_RANGE(0x9000, 0x93ff) AM_READWRITE(MRA8_RAM, qix_paletteram_w) AM_BASE(&paletteram) | |
| 307 | AM_RANGE(0x9400, 0x9400) AM_MIRROR(0x03fc) AM_READWRITE(qix_addresslatch_r, qix_addresslatch_w) | |
| 308 | AM_RANGE(0x9402, 0x9403) AM_MIRROR(0x03fc) AM_WRITE(MWA8_RAM) AM_BASE(&qix_videoaddress) | |
| 309 | AM_RANGE(0x9800, 0x9800) AM_MIRROR(0x03ff) AM_READ(qix_scanline_r) | |
| 310 | AM_RANGE(0x9c00, 0x9c00) AM_MIRROR(0x03fe) AM_WRITE(qix_mc6845_address_w) | |
| 311 | AM_RANGE(0x9c01, 0x9c01) AM_MIRROR(0x03fe) AM_READWRITE(qix_mc6845_register_r, qix_mc6845_register_w) | |
| 312 | AM_RANGE(0xa000, 0xbfff) AM_ROMBANK(1) | |
| 313 | AM_RANGE(0xc000, 0xffff) AM_ROM | |
| 314 | ADDRESS_MAP_END | |
| 315 | ||
| 316 | ||
| 317 | ||
| 318 | /************************************* | |
| 319 | * | |
| 320 | * Sound CPU memory handlers | |
| 321 | * | |
| 322 | *************************************/ | |
| 323 | ||
| 324 | static ADDRESS_MAP_START( sound_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 325 | AM_RANGE(0x0000, 0x007f) AM_RAM | |
| 326 | AM_RANGE(0x2000, 0x2003) AM_MIRROR(0x5ffc) AM_READWRITE(pia_5_r, pia_5_w) | |
| 327 | AM_RANGE(0x4000, 0x4003) AM_MIRROR(0x3ffc) AM_READWRITE(pia_4_r, pia_4_w) | |
| 328 | AM_RANGE(0xd000, 0xffff) AM_ROM | |
| 329 | ADDRESS_MAP_END | |
| 330 | ||
| 331 | ||
| 332 | ||
| 333 | /************************************* | |
| 334 | * | |
| 335 | 268 | * Coin CPU memory handlers |
| 336 | 269 | * |
| 337 | 270 | *************************************/ |
| 338 | 271 | |
| 339 | 272 | static ADDRESS_MAP_START( mcu_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 340 | 273 | ADDRESS_MAP_FLAGS( AMEF_ABITS(11) ) |
| 341 | AM_RANGE(0x0000, 0x0000) AM_READWRITE(qix_68705_portA_r, qix_68705_portA_w) AM_BASE( | |
| 274 | AM_RANGE(0x0000, 0x0000) AM_READWRITE(qix_68705_portA_r, qix_68705_portA_w) AM_BASE_MEMBER( | |
| 342 | 275 | AM_RANGE(0x0001, 0x0001) AM_READWRITE(qix_68705_portB_r, qix_68705_portB_w) |
| 343 | 276 | AM_RANGE(0x0002, 0x0002) AM_READWRITE(qix_68705_portC_r, qix_68705_portC_w) |
| 344 | AM_RANGE(0x0004, 0x0007) AM_WRITE(MWA8_RAM) AM_BASE( | |
| 277 | AM_RANGE(0x0004, 0x0007) AM_WRITE(MWA8_RAM) AM_BASE_MEMBER( | |
| 345 | 278 | AM_RANGE(0x0010, 0x007f) AM_RAM |
| 346 | 279 | AM_RANGE(0x0080, 0x07ff) AM_ROM |
| 347 | 280 | ADDRESS_MAP_END |
| r1711 | r1712 | |
| 609 | 542 | |
| 610 | 543 | static MACHINE_DRIVER_START( qix ) |
| 611 | 544 | |
| 545 | MDRV_DRIVER_DATA(qix_state) | |
| 546 | ||
| 612 | 547 | /* basic machine hardware */ |
| 613 | 548 | MDRV_CPU_ADD_TAG("main", M6809, MAIN_CLOCK_OSC/4/4) /* 1.25 MHz */ |
| 614 | 549 | MDRV_CPU_PROGRAM_MAP(main_map,0) |
| 615 | 550 | MDRV_CPU_VBLANK_INT(qix_vblank_start,1) |
| 616 | 551 | |
| 617 | MDRV_CPU_ADD_TAG("video", M6809, MAIN_CLOCK_OSC/4/4) /* 1.25 MHz */ | |
| 618 | MDRV_CPU_PROGRAM_MAP(video_map,0) | |
| 619 | ||
| 620 | MDRV_CPU_ADD_TAG("sound", M6802, SOUND_CLOCK_OSC/2) /* 0.92 MHz */ | |
| 621 | MDRV_CPU_PROGRAM_MAP(sound_map,0) | |
| 622 | ||
| 623 | 552 | /* high interleave needed to ensure correct text in service mode */ |
| 624 | 553 | /* Zookeeper settings and high score table seem especially sensitive to this */ |
| 625 | 554 | MDRV_INTERLEAVE(1000) |
| r1711 | r1712 | |
| 629 | 558 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 630 | 559 | |
| 631 | 560 | /* video hardware */ |
| 632 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 633 | MDRV_VIDEO_START(qix) | |
| 634 | MDRV_VIDEO_UPDATE(qix) | |
| 561 | MDRV_IMPORT_FROM(qix_video) | |
| 635 | 562 | |
| 636 | MDRV_SCREEN_ADD("main", 0) | |
| 637 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) | |
| 638 | MDRV_SCREEN_RAW_PARAMS(QIX_CHARACTER_CLOCK*8, 256, 0, 256, 256, 0, 256) /* temporary, CRTC will configure screen */ | |
| 639 | ||
| 640 | /* sound hardware */ | |
| 641 | MDRV_SPEAKER_STANDARD_STEREO("left", "right") | |
| 642 | ||
| 643 | MDRV_SOUND_ADD_TAG("discrete", DISCRETE, 0) | |
| 644 | MDRV_SOUND_CONFIG_DISCRETE(qix) | |
| 645 | MDRV_SOUND_ROUTE(0, "left", 1.0) | |
| 646 | MDRV_SOUND_ROUTE(1, "right", 1.0) | |
| 563 | /* audio hardware */ | |
| 564 | MDRV_IMPORT_FROM(qix_audio) | |
| 647 | 565 | MACHINE_DRIVER_END |
| 648 | 566 | |
| 649 | 567 | |
| r1711 | r1712 | |
| 667 | 585 | MDRV_CPU_MODIFY("main") |
| 668 | 586 | MDRV_CPU_PROGRAM_MAP(zoo_main_map,0) |
| 669 | 587 | |
| 670 | MDRV_CPU_MODIFY("video") | |
| 671 | MDRV_CPU_PROGRAM_MAP(zoo_video_map,0) | |
| 588 | /* video hardware */ | |
| 589 | MDRV_IMPORT_FROM(zookeep_video) | |
| 672 | 590 | MACHINE_DRIVER_END |
| 673 | 591 | |
| 674 | 592 | |
| r1711 | r1712 | |
| 678 | 596 | MDRV_IMPORT_FROM(qix) |
| 679 | 597 | |
| 680 | 598 | MDRV_CPU_REPLACE("main", M6809, SLITHER_CLOCK_OSC/4/4) /* 1.34 MHz */ |
| 681 | MDRV_CPU_REPLACE("video", M6809, SLITHER_CLOCK_OSC/4/4) /* 1.34 MHz */ | |
| 682 | MDRV_CPU_REMOVE("sound") | |
| 683 | 599 | |
| 684 | 600 | MDRV_MACHINE_START(slither) |
| 685 | 601 | |
| 686 | /* sound hardware */ | |
| 687 | MDRV_SPEAKER_REMOVE("left") | |
| 688 | MDRV_SPEAKER_REMOVE("right") | |
| 689 | MDRV_SPEAKER_STANDARD_MONO("mono") | |
| 602 | /* video hardware */ | |
| 603 | MDRV_IMPORT_FROM(slither_video) | |
| 690 | 604 | |
| 691 | MDRV_SOUND_REPLACE("discrete", SN76489, SLITHER_CLOCK_OSC/4/4) | |
| 692 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) | |
| 693 | ||
| 694 | MDRV_SOUND_ADD(SN76489, SLITHER_CLOCK_OSC/4/4) | |
| 695 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) | |
| 605 | /* audio hardware */ | |
| 606 | MDRV_IMPORT_FROM(slither_audio) | |
| 696 | 607 | MACHINE_DRIVER_END |
| 697 | 608 | |
| 698 | 609 | |
| r1711 | r1712 | |
| 1107 | 1018 | |
| 1108 | 1019 | |
| 1109 | 1020 | |
| 1110 | ||
| 1111 | 1021 | /************************************* |
| 1112 | 1022 | * |
| 1113 | 1023 | * Game-specific initialization |
| r1711 | r1712 | |
| 1178 | 1088 | } |
| 1179 | 1089 | } |
| 1180 | 1090 | |
| 1091 | ||
| 1181 | 1092 | static DRIVER_INIT( zookeep ) |
| 1182 | 1093 | { |
| 1183 | 1094 | /* configure the banking */ |
| r1711 | r1712 | |
| 1191 | 1102 | { |
| 1192 | 1103 | memory_install_read8_handler(0, ADDRESS_SPACE_PROGRAM, 0x9800, 0x9bff, 0, 0, pia_1_r); |
| 1193 | 1104 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0x9800, 0x9bff, 0, 0, pia_1_w); |
| 1194 | memory_install_write8_handler(1, ADDRESS_SPACE_PROGRAM, 0x9401, 0x9401, 0, 0, slither_vram_mask_w); | |
| 1195 | 1105 | } |
| 1196 | 1106 | |
| 1197 | 1107 | |
| r1711 | r1712 | |
| 1202 | 1112 | * |
| 1203 | 1113 | *************************************/ |
| 1204 | 1114 | |
| 1205 | GAME( 1981, qix, 0, qix, qix, 0, ROT270, "Taito America Corporation", "Qix (set 1)", GAME_SUPPORTS_SAVE ) | |
| 1206 | GAME( 1981, qixa, qix, qix, qix, 0, ROT270, "Taito America Corporation", "Qix (set 2)", GAME_SUPPORTS_SAVE ) | |
| 1207 | GAME( 1981, qixb, qix, qix, qix, 0, ROT270, "Taito America Corporation", "Qix (set 3)", GAME_SUPPORTS_SAVE ) | |
| 1208 | GAME( 1981, qix2, qix, qix, qix, 0, ROT270, "Taito America Corporation", "Qix II (Tournament)", GAME_SUPPORTS_SAVE ) | |
| 1209 | GAME( 1981, sdungeon, 0, mcu, sdungeon, 0, ROT270, "Taito America Corporation", "Space Dungeon", GAME_SUPPORTS_SAVE ) | |
| 1210 | GAME( 1982, elecyoyo, 0, mcu, elecyoyo, 0, ROT270, "Taito America Corporation", "The Electric Yo-Yo (set 1)", GAME_SUPPORTS_SAVE ) | |
| 1211 | GAME( 1982, elecyoy2, elecyoyo, mcu, elecyoyo, 0, ROT270, "Taito America Corporation", "The Electric Yo-Yo (set 2)", GAME_SUPPORTS_SAVE ) | |
| 1212 | GAME( 1982, kram, 0, mcu, kram, 0, ROT0, "Taito America Corporation", "Kram (set 1)", GAME_SUPPORTS_SAVE ) | |
| 1213 | GAME( 1982, kram2, kram, mcu, kram, 0, ROT0, "Taito America Corporation", "Kram (set 2)", GAME_SUPPORTS_SAVE ) | |
| 1214 | GAME( 1982, kram3, kram, qix, kram, kram3, ROT0, "Taito America Corporation", "Kram (encrypted)", GAME_SUPPORTS_SAVE ) | |
| 1215 | GAME( 1982, zookeep, 0, zookeep, zookeep, zookeep, ROT0, "Taito America Corporation", "Zoo Keeper (set 1)", GAME_SUPPORTS_SAVE ) | |
| 1216 | GAME( 1982, zookeep2, zookeep, zookeep, zookeep, zookeep, ROT0, "Taito America Corporation", "Zoo Keeper (set 2)", GAME_SUPPORTS_SAVE ) | |
| 1217 | GAME( 1982, zookeep3, zookeep, zookeep, zookeep, zookeep, ROT0, "Taito America Corporation", "Zoo Keeper (set 3)", GAME_SUPPORTS_SAVE ) | |
| 1218 | GAME( 1982, slither, 0, slither, slither, slither, ROT270, "Century II", "Slither (set 1)", GAME_SUPPORTS_SAVE ) | |
| 1219 | GAME( 1982, slithera, slither, slither, slither, slither, ROT270, "Century II", "Slither (set 2)", GAME_SUPPORTS_SAVE ) | |
| 1220 | GAME( 1984, complexx, 0, qix, complexx, 0, ROT270, "Taito America Corporation", "Complex X", GAME_SUPPORTS_SAVE ) | |
| 1115 | GAME( 1981, qix, 0, qix, qix, 0, ROT270, "Taito America Corporation", "Qix (set 1)", GAME_SUPPORTS_SAVE ) | |
| 1116 | GAME( 1981, qixa, qix, qix, qix, 0, ROT270, "Taito America Corporation", "Qix (set 2)", GAME_SUPPORTS_SAVE ) | |
| 1117 | GAME( 1981, qixb, qix, qix, qix, 0, ROT270, "Taito America Corporation", "Qix (set 3)", GAME_SUPPORTS_SAVE ) | |
| 1118 | GAME( 1981, qix2, qix, qix, qix, 0, ROT270, "Taito America Corporation", "Qix II (Tournament)", GAME_SUPPORTS_SAVE ) | |
| 1119 | GAME( 1981, sdungeon, 0, mcu, sdungeon, 0, ROT270, "Taito America Corporation", "Space Dungeon", GAME_SUPPORTS_SAVE ) | |
| 1120 | GAME( 1982, elecyoyo, 0, mcu, elecyoyo, 0, ROT270, "Taito America Corporation", "The Electric Yo-Yo (set 1)", GAME_SUPPORTS_SAVE ) | |
| 1121 | GAME( 1982, elecyoy2, elecyoyo, mcu, elecyoyo, 0, ROT270, "Taito America Corporation", "The Electric Yo-Yo (set 2)", GAME_SUPPORTS_SAVE ) | |
| 1122 | GAME( 1982, kram, 0, mcu, kram, 0, ROT0, "Taito America Corporation", "Kram (set 1)", GAME_SUPPORTS_SAVE ) | |
| 1123 | GAME( 1982, kram2, kram, mcu, kram, 0, ROT0, "Taito America Corporation", "Kram (set 2)", GAME_SUPPORTS_SAVE ) | |
| 1124 | GAME( 1982, kram3, kram, qix, kram, kram3, ROT0, "Taito America Corporation", "Kram (encrypted)", GAME_SUPPORTS_SAVE ) | |
| 1125 | GAME( 1982, zookeep, 0, zookeep, zookeep, zookeep, ROT0, "Taito America Corporation", "Zoo Keeper (set 1)", GAME_SUPPORTS_SAVE ) | |
| 1126 | GAME( 1982, zookeep2, zookeep, zookeep, zookeep, zookeep, ROT0, "Taito America Corporation", "Zoo Keeper (set 2)", GAME_SUPPORTS_SAVE ) | |
| 1127 | GAME( 1982, zookeep3, zookeep, zookeep, zookeep, zookeep, ROT0, "Taito America Corporation", "Zoo Keeper (set 3)", GAME_SUPPORTS_SAVE ) | |
| 1128 | GAME( 1982, slither, 0, slither, slither, slither, ROT270, "Century II", "Slither (set 1)", GAME_SUPPORTS_SAVE ) | |
| 1129 | GAME( 1982, slithera, slither, slither, slither, slither, ROT270, "Century II", "Slither (set 2)", GAME_SUPPORTS_SAVE ) | |
| 1130 | GAME( 1984, complexx, 0, qix, complexx, 0, ROT270, "Taito America Corporation", "Complex X", GAME_SUPPORTS_SAVE ) |
| r1711 | r1712 | |
|---|---|---|
| 296 | 296 | MDRV_VIDEO_START(suprgolf) |
| 297 | 297 | MDRV_VIDEO_UPDATE(suprgolf) |
| 298 | 298 | |
| 299 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 300 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 301 | ||
| 302 | 299 | MDRV_MACHINE_RESET(suprgolf) |
| 303 | 300 | |
| 304 | 301 | /* video hardware */ |
| 305 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 302 | MDRV_SCREEN_ADD("main", RASTER) | |
| 303 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 304 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 306 | 305 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 307 | 306 | MDRV_SCREEN_SIZE(256, 256) |
| 308 | 307 | MDRV_SCREEN_VISIBLE_AREA(0, 255, 0, 191) |
| 308 | ||
| 309 | 309 | MDRV_GFXDECODE(suprgolf) |
| 310 | 310 | MDRV_PALETTE_LENGTH(512) |
| 311 | 311 |
| r1711 | r1712 | |
|---|---|---|
| 485 | 485 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 486 | 486 | |
| 487 | 487 | MDRV_INTERLEAVE(32) |
| 488 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 489 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 490 | 488 | |
| 491 | 489 | MDRV_MACHINE_START(xexex) |
| 492 | 490 | MDRV_MACHINE_RESET(xexex) |
| 493 | 491 | MDRV_NVRAM_HANDLER(xexex) |
| 494 | 492 | |
| 495 | 493 | /* video hardware */ |
| 496 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 494 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 495 | ||
| 496 | MDRV_SCREEN_ADD("main", RASTER) | |
| 497 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 498 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 497 | 499 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 498 | 500 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 499 | 501 | MDRV_SCREEN_VISIBLE_AREA(40, 40+384-1, 0, 0+256-1) |
| r1711 | r1712 | |
|---|---|---|
| 90 | 90 | 2, resistances_rg, weights_g, 330, 0, |
| 91 | 91 | 3, resistances_b, weights_b, 330, 655+220); |
| 92 | 92 | |
| 93 | for (i = 0;i < machine-> | |
| 93 | for (i = 0;i < machine->config->total_colors;i++) | |
| 94 | 94 | { |
| 95 | 95 | int bit0,bit1,bit7,r,g,b; |
| 96 | 96 | |
| r1711 | r1712 | |
| 280 | 280 | MDRV_CPU_PROGRAM_MAP(wallc_map,0) |
| 281 | 281 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 282 | 282 | |
| 283 | /* video hardware */ | |
| 284 | MDRV_SCREEN_ADD("main", RASTER) | |
| 283 | 285 | MDRV_SCREEN_REFRESH_RATE(60) |
| 284 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 285 | ||
| 286 | /* video hardware */ | |
| 287 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 286 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 288 | 287 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 289 | 288 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 290 | 289 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 32*8-1) |
| 290 | ||
| 291 | 291 | MDRV_GFXDECODE(wallc) |
| 292 | 292 | MDRV_PALETTE_LENGTH(32) |
| 293 | 293 |
| r1711 | r1712 | |
|---|---|---|
| 410 | 410 | { |
| 411 | 411 | int i,r,b,g; |
| 412 | 412 | |
| 413 | for (i = 0;i < machine-> | |
| 413 | for (i = 0;i < machine->config->total_colors; i++) | |
| 414 | 414 | { |
| 415 | 415 | int bit0,bit1,bit2; |
| 416 | 416 | |
| r1711 | r1712 | |
| 479 | 479 | { |
| 480 | 480 | int sx, sy; |
| 481 | 481 | |
| 482 | fillbitmap(tile, | |
| 482 | fillbitmap(tile, | |
| 483 | 483 | tilemap_draw(tile, cliprect, tx_tilemap, 0, 0); |
| 484 | 484 | |
| 485 | fillbitmap(obj1, | |
| 485 | fillbitmap(obj1, | |
| 486 | 486 | drawgfx(obj1, machine->gfx[1], |
| 487 | 487 | OBJ_CODE(marinedt_obj1_a), |
| 488 | 488 | OBJ_COLOR(marinedt_obj1_a), |
| r1711 | r1712 | |
| 490 | 490 | 0, 0, |
| 491 | 491 | NULL, TRANSPARENCY_PEN, 0); |
| 492 | 492 | |
| 493 | fillbitmap(obj2, | |
| 493 | fillbitmap(obj2, | |
| 494 | 494 | drawgfx(obj2, machine->gfx[2], |
| 495 | 495 | OBJ_CODE(marinedt_obj2_a), |
| 496 | 496 | OBJ_COLOR(marinedt_obj2_a), |
| r1711 | r1712 | |
| 498 | 498 | 0, 0, |
| 499 | 499 | NULL, TRANSPARENCY_PEN, 0); |
| 500 | 500 | |
| 501 | fillbitmap(bitmap, | |
| 501 | fillbitmap(bitmap, | |
| 502 | 502 | |
| 503 | 503 | if (marinedt_pd & 0x02) |
| 504 | copybitmap_trans(bitmap, obj2, 0, 0, OBJ_X(marinedt_obj2_x), OBJ_Y(marinedt_obj2_y), cliprect, | |
| 504 | copybitmap_trans(bitmap, obj2, 0, 0, OBJ_X(marinedt_obj2_x), OBJ_Y(marinedt_obj2_y), cliprect, | |
| 505 | 505 | |
| 506 | 506 | if (marinedt_pd & 0x01) |
| 507 | copybitmap_trans(bitmap, obj1, 0, 0, OBJ_X(marinedt_obj1_x), OBJ_Y(marinedt_obj1_y), cliprect, | |
| 507 | copybitmap_trans(bitmap, obj1, 0, 0, OBJ_X(marinedt_obj1_x), OBJ_Y(marinedt_obj1_y), cliprect, | |
| 508 | 508 | |
| 509 | copybitmap_trans(bitmap, tile, 0, 0, 0, 0, cliprect, | |
| 509 | copybitmap_trans(bitmap, tile, 0, 0, 0, 0, cliprect, | |
| 510 | 510 | |
| 511 | 511 | coll = cx = cyr = cyq = 0; |
| 512 | 512 | if (marinedt_pd & 0x01) |
| r1711 | r1712 | |
| 521 | 521 | || y < cliprect->min_y || y > cliprect->max_y) |
| 522 | 522 | continue; |
| 523 | 523 | |
| 524 | if (*BITMAP_ADDR16(obj1, sy, sx) == | |
| 524 | if (*BITMAP_ADDR16(obj1, sy, sx) == | |
| 525 | 525 | continue; |
| 526 | 526 | |
| 527 | if (*BITMAP_ADDR16(tile, y, x) != | |
| 527 | if (*BITMAP_ADDR16(tile, y, x) != | |
| 528 | 528 | { |
| 529 | 529 | coll = 0x08; |
| 530 | 530 | |
| r1711 | r1712 | |
| 558 | 558 | || yy < 0 || yy >= 32) |
| 559 | 559 | continue; |
| 560 | 560 | |
| 561 | if (*BITMAP_ADDR16(obj1, sy, sx) == | |
| 561 | if (*BITMAP_ADDR16(obj1, sy, sx) == | |
| 562 | 562 | continue; |
| 563 | 563 | |
| 564 | if (*BITMAP_ADDR16(obj2, yy, xx) != | |
| 564 | if (*BITMAP_ADDR16(obj2, yy, xx) != | |
| 565 | 565 | { |
| 566 | 566 | collh = 0x80; |
| 567 | 567 | |
| r1711 | r1712 | |
| 589 | 589 | MDRV_CPU_IO_MAP(marinedt_readport,marinedt_writeport) |
| 590 | 590 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 591 | 591 | |
| 592 | /* video hardware */ | |
| 593 | MDRV_SCREEN_ADD("main", RASTER) | |
| 592 | 594 | MDRV_SCREEN_REFRESH_RATE(60) |
| 593 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 594 | ||
| 595 | /* video hardware */ | |
| 596 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 595 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 597 | 596 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 598 | 597 | MDRV_SCREEN_SIZE(4*8+32*8, 32*8) |
| 599 | 598 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 4*8, 32*8-1) |
| 599 | ||
| 600 | 600 | MDRV_GFXDECODE(marinedt) |
| 601 | 601 | MDRV_PALETTE_LENGTH(64) |
| 602 | 602 |
| r1711 | r1712 | |
|---|---|---|
| 404 | 404 | MDRV_CPU_PROGRAM_MAP(slave_map, 0) |
| 405 | 405 | MDRV_CPU_IO_MAP(slave_io_map, 0) |
| 406 | 406 | |
| 407 | /* video hardware */ | |
| 408 | MDRV_SCREEN_ADD("main", RASTER) | |
| 407 | 409 | MDRV_SCREEN_REFRESH_RATE(30) |
| 408 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_30HZ_VBLANK_DURATION) | |
| 409 | ||
| 410 | /* video hardware */ | |
| 411 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 410 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 412 | 411 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 413 | 412 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 414 | 413 | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 2*8, 30*8-1) |
| 414 | ||
| 415 | 415 | MDRV_GFXDECODE(ironhors) |
| 416 | 416 | MDRV_PALETTE_LENGTH(16*8*16+16*8*16) |
| 417 | 417 |
| r1711 | r1712 | |
|---|---|---|
| 212 | 212 | MDRV_CPU_IO_MAP(readport,writeport) |
| 213 | 213 | MDRV_CPU_VBLANK_INT(irq0_line_hold,8) /* controls game speed? */ |
| 214 | 214 | |
| 215 | MDRV_SCREEN_REFRESH_RATE(56) /* The video syncs at 15.8k H and 56 V (www.klov.com) */ | |
| 216 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 217 | ||
| 218 | 215 | /* video hardware */ |
| 219 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 216 | MDRV_SCREEN_ADD("main", RASTER) | |
| 217 | MDRV_SCREEN_REFRESH_RATE(56) /* The video syncs at 15.8k H and 56 V (www.klov.com) */ | |
| 218 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 220 | 219 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 221 | 220 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 222 | 221 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 257 | 257 | MDRV_NVRAM_HANDLER(atarigen) |
| 258 | 258 | |
| 259 | 259 | /* video hardware */ |
| 260 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 260 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 261 | 261 | MDRV_GFXDECODE(skullxbo) |
| 262 | 262 | MDRV_PALETTE_LENGTH(2048) |
| 263 | 263 | |
| 264 | MDRV_SCREEN_ADD("main", | |
| 264 | MDRV_SCREEN_ADD("main", RASTER) | |
| 265 | 265 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 266 | 266 | /* note: these parameters are from published specs, not derived */ |
| 267 | 267 | /* the board uses an SOS-2 chip to generate video signals */ |
| r1711 | r1712 | |
|---|---|---|
| 158 | 158 | static MACHINE_DRIVER_START( skattv ) |
| 159 | 159 | MDRV_CPU_ADD_TAG("main", M68000, 8000000) |
| 160 | 160 | MDRV_CPU_PROGRAM_MAP(skattv_mem, 0) |
| 161 | ||
| 162 | ||
| 163 | MDRV_SCREEN_ADD("main", RASTER) | |
| 161 | 164 | MDRV_SCREEN_REFRESH_RATE(60) |
| 162 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 163 | ||
| 164 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 165 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 165 | 166 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 166 | 167 | MDRV_SCREEN_SIZE(640, 480) |
| 167 | 168 | MDRV_SCREEN_VISIBLE_AREA(0, 640-1, 0, 480-1) |
| r1711 | r1712 | |
|---|---|---|
| 540 | 540 | MDRV_CPU_DATA_MAP(soundmem_data,0) |
| 541 | 541 | MDRV_CPU_IO_MAP(soundmem_io,0) |
| 542 | 542 | |
| 543 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 544 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 545 | 543 | |
| 546 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 544 | MDRV_SCREEN_ADD("main", RASTER) | |
| 545 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 546 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 547 | 547 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 548 | ||
| 549 | 548 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 550 | 549 | MDRV_SCREEN_VISIBLE_AREA(0*8, 384-1-16, 0*8, 240-1) |
| 551 | 550 |
| r1711 | r1712 | |
|---|---|---|
| 383 | 383 | MDRV_CPU_PROGRAM_MAP( sndreadmem, sndwritemem ) |
| 384 | 384 | MDRV_CPU_PERIODIC_INT( irq2_line_hold, 480 ) |
| 385 | 385 | |
| 386 | MDRV_SCREEN_REFRESH_RATE( 60 ) | |
| 387 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC( 0 )) | |
| 388 | ||
| 389 | 386 | MDRV_MACHINE_START( konamigq ) |
| 390 | 387 | MDRV_MACHINE_RESET( konamigq ) |
| 391 | 388 | MDRV_NVRAM_HANDLER( konamigq_93C46 ) |
| 392 | 389 | |
| 393 | 390 | /* video hardware */ |
| 394 | MDRV_VIDEO_ATTRIBUTES( VIDEO_TYPE_RASTER ) | |
| 391 | MDRV_SCREEN_ADD("main", RASTER) | |
| 392 | MDRV_SCREEN_REFRESH_RATE( 60 ) | |
| 393 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC( 0 )) | |
| 395 | 394 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 396 | 395 | MDRV_SCREEN_SIZE( 1024, 1024 ) |
| 397 | 396 | MDRV_SCREEN_VISIBLE_AREA( 0, 639, 0, 479 ) |
| 397 | ||
| 398 | 398 | MDRV_PALETTE_LENGTH( 65536 ) |
| 399 | 399 | |
| 400 | 400 | MDRV_PALETTE_INIT( psx ) |
| r1711 | r1712 | |
|---|---|---|
| 352 | 352 | MDRV_CPU_IO_MAP(readport,writeport) |
| 353 | 353 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 354 | 354 | |
| 355 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 356 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 357 | ||
| 358 | 355 | /* video hardware */ |
| 359 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 360 | 356 | MDRV_VIDEO_UPDATE(epos) |
| 357 | ||
| 358 | MDRV_SCREEN_ADD("main", RASTER) | |
| 359 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 360 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 361 | 361 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 362 | 362 | MDRV_SCREEN_SIZE(272, 241) |
| 363 | 363 | MDRV_SCREEN_VISIBLE_AREA(0, 271, 0, 235) |
| r1711 | r1712 | |
| 376 | 376 | MDRV_CPU_IO_MAP(dealer_readport,dealer_writeport) |
| 377 | 377 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 378 | 378 | |
| 379 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 380 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 381 | ||
| 382 | 379 | /* video hardware */ |
| 383 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 384 | 380 | MDRV_VIDEO_UPDATE(epos) |
| 381 | ||
| 382 | MDRV_SCREEN_ADD("main", RASTER) | |
| 383 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 384 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 385 | 385 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 386 | 386 | MDRV_SCREEN_SIZE(272, 241) |
| 387 | 387 | MDRV_SCREEN_VISIBLE_AREA(0, 271, 0, 235) |
| r1711 | r1712 | |
|---|---|---|
| 285 | 285 | MDRV_CPU_IO_MAP(readport_io,writeport_io) |
| 286 | 286 | MDRV_CPU_VBLANK_INT(mrflea_io_interrupt,2) |
| 287 | 287 | |
| 288 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 289 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 290 | 288 | MDRV_INTERLEAVE(100) |
| 291 | 289 | |
| 292 | 290 | /* video hardware */ |
| 293 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 291 | MDRV_SCREEN_ADD("main", RASTER) | |
| 292 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 293 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 294 | 294 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 295 | 295 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 296 | 296 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 31*8-1) |
| 297 | ||
| 297 | 298 | MDRV_GFXDECODE(mrflea) |
| 298 | 299 | MDRV_PALETTE_LENGTH(32) |
| 299 | 300 |
| r1711 | r1712 | |
|---|---|---|
| 910 | 910 | |
| 911 | 911 | /* create the char set (gfx will then be updated dynamically from RAM) */ |
| 912 | 912 | machine->gfx[0] = allocgfx(&cps3_tiles8x8_layout); |
| 913 | machine->gfx[0]->total_colors = machine-> | |
| 913 | machine->gfx[0]->total_colors = machine->config->total_colors / 16; | |
| 914 | 914 | |
| 915 | 915 | //decode_ssram(); |
| 916 | 916 | |
| 917 | 917 | /* create the char set (gfx will then be updated dynamically from RAM) */ |
| 918 | 918 | machine->gfx[1] = allocgfx(&cps3_tiles16x16_layout); |
| 919 | machine->gfx[1]->total_colors = machine-> | |
| 919 | machine->gfx[1]->total_colors = machine->config->total_colors / 64; | |
| 920 | 920 | machine->gfx[1]->color_granularity=64; |
| 921 | 921 | |
| 922 | 922 | //decode_charram(); |
| r1711 | r1712 | |
| 2729 | 2729 | MDRV_CPU_VBLANK_INT(cps3_vbl_interrupt,1) |
| 2730 | 2730 | MDRV_CPU_PERIODIC_INT(cps3_other_interrupt,80) /* ?source? */ |
| 2731 | 2731 | |
| 2732 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2733 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 2734 | ||
| 2735 | ||
| 2736 | 2732 | /* video hardware */ |
| 2737 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2733 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2734 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2735 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 2738 | 2736 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 2739 | 2737 | MDRV_SCREEN_SIZE(512*2, 224*2) |
| 2740 | 2738 | MDRV_SCREEN_VISIBLE_AREA(0, (384*1)-1, 0, 223/*511*/) |
| r1711 | r1712 | |
|---|---|---|
| 206 | 206 | MDRV_CPU_PROGRAM_MAP(glass_readmem,glass_writemem) |
| 207 | 207 | MDRV_CPU_VBLANK_INT(glass_interrupt, 1) |
| 208 | 208 | |
| 209 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 210 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 211 | ||
| 212 | 209 | MDRV_MACHINE_RESET(glass) |
| 213 | 210 | |
| 214 | 211 | /* video hardware */ |
| 215 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 212 | MDRV_SCREEN_ADD("main", RASTER) | |
| 213 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 214 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 216 | 215 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 217 | 216 | MDRV_SCREEN_SIZE(32*16, 32*16) |
| 218 | 217 | MDRV_SCREEN_VISIBLE_AREA(0, 368-1, 16, 256-1) |
| 218 | ||
| 219 | 219 | MDRV_GFXDECODE(glass) |
| 220 | 220 | MDRV_PALETTE_LENGTH(1024) |
| 221 | 221 |
| r1711 | r1712 | |
|---|---|---|
| 434 | 434 | } |
| 435 | 435 | |
| 436 | 436 | |
| 437 | static void *begin_update(mame_bitmap *bitmap, const rectangle *cliprect) | |
| 437 | static void *begin_update(running_machine *machine, mc6845_t *mc6845, mame_bitmap *bitmap, const rectangle *cliprect) | |
| 438 | 438 | { |
| 439 | 439 | /* create the pens */ |
| 440 | 440 | offs_t i; |
| r1711 | r1712 | |
| 449 | 449 | } |
| 450 | 450 | |
| 451 | 451 | |
| 452 | static void update_row(mame_bitmap *bitmap, const rectangle *cliprect, | |
| 452 | static void update_row(running_machine *machine, mc6845_t *mc6845, mame_bitmap *bitmap, const rectangle *cliprect, | |
| 453 | 453 | UINT16 ma, UINT8 ra, UINT16 y, UINT8 x_count, void *param) |
| 454 | 454 | { |
| 455 | 455 | UINT8 cx; |
| r1711 | r1712 | |
| 509 | 509 | } |
| 510 | 510 | |
| 511 | 511 | |
| 512 | static void display_enable_changed(int display_enabled) | |
| 512 | static void display_enable_changed(running_machine *machine, mc6845_t *mc6845, int display_enabled) | |
| 513 | 513 | { |
| 514 | 514 | TTL74123_A_w(0, display_enabled); |
| 515 | 515 | } |
| r1711 | r1712 | |
| 529 | 529 | |
| 530 | 530 | static VIDEO_START( spiders ) |
| 531 | 531 | { |
| 532 | /* configure the CRT controller */ | |
| 533 | mc6845 = mc6845_config(&mc6845_intf); | |
| 532 | mc6845 = devtag_get_token(machine, MC6845, "crtc"); | |
| 534 | 533 | } |
| 535 | 534 | |
| 536 | 535 | |
| r1711 | r1712 | |
| 726 | 725 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 727 | 726 | |
| 728 | 727 | /* video hardware */ |
| 729 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 730 | 728 | MDRV_VIDEO_START(spiders) |
| 731 | 729 | MDRV_VIDEO_UPDATE(spiders) |
| 732 | 730 | |
| 733 | MDRV_SCREEN_ADD("main", | |
| 731 | MDRV_SCREEN_ADD("main", RASTER) | |
| 734 | 732 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 735 | 733 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, 256, 0, 256, 256, 0, 256) /* temporary, CRTC will configure screen */ |
| 736 | 734 | |
| 735 | MDRV_DEVICE_ADD("crtc", MC6845) | |
| 736 | MDRV_DEVICE_CONFIG(mc6845_intf) | |
| 737 | ||
| 737 | 738 | /* audio hardware */ |
| 738 | 739 | MDRV_IMPORT_FROM(spiders_audio) |
| 739 | 740 |
| r1711 | r1712 | |
|---|---|---|
| 501 | 501 | MDRV_CPU_PROGRAM_MAP(mcatadv_sound_readmem,mcatadv_sound_writemem) |
| 502 | 502 | MDRV_CPU_IO_MAP(mcatadv_sound_readport,mcatadv_sound_writeport) |
| 503 | 503 | |
| 504 | /* video hardware */ | |
| 505 | MDRV_SCREEN_ADD("main", RASTER) | |
| 504 | 506 | MDRV_SCREEN_REFRESH_RATE(60) |
| 505 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 506 | ||
| 507 | /* video hardware */ | |
| 508 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 507 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 509 | 508 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 510 | 509 | MDRV_SCREEN_SIZE(320, 256) |
| 511 | 510 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 0, 224-1) |
| 511 | ||
| 512 | 512 | MDRV_GFXDECODE(mcatadv) |
| 513 | 513 | MDRV_PALETTE_LENGTH(0x2000/2) |
| 514 | 514 | |
| 515 | MDRV_WATCHDOG_ | |
| 515 | MDRV_WATCHDOG_TIME | |
| 516 | 516 | |
| 517 | 517 | MDRV_VIDEO_START(mcatadv) |
| 518 | 518 | MDRV_VIDEO_EOF(mcatadv) // Buffer Spriteram |
| r1711 | r1712 | |
|---|---|---|
| 990 | 990 | MDRV_CPU_IO_MAP(io_map,0) |
| 991 | 991 | MDRV_CPU_VBLANK_INT(check_coins,1) |
| 992 | 992 | |
| 993 | MDRV_SCREEN_REFRESH_RATE(38) | |
| 994 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 995 | 993 | MDRV_MACHINE_START(cinemat) |
| 996 | 994 | MDRV_MACHINE_RESET(cinemat) |
| 997 | 995 | |
| 998 | 996 | /* video hardware */ |
| 999 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_VECTOR ) | |
| 1000 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) | |
| 997 | MDRV_SCREEN_ADD("main", VECTOR) | |
| 998 | MDRV_SCREEN_REFRESH_RATE(38) | |
| 1001 | 999 | MDRV_SCREEN_SIZE(400, 300) |
| 1002 | 1000 | MDRV_SCREEN_VISIBLE_AREA(0, 1023, 0, 767) |
| 1001 | ||
| 1003 | 1002 | MDRV_PALETTE_LENGTH(32768) |
| 1004 | 1003 | |
| 1005 | 1004 | MDRV_VIDEO_START(cinemat_bilevel) |
| r1711 | r1712 | |
| 1116 | 1115 | static MACHINE_DRIVER_START( solarq ) |
| 1117 | 1116 | MDRV_IMPORT_FROM(cinemat_jmi_16k) |
| 1118 | 1117 | MDRV_IMPORT_FROM(solarq_sound) |
| 1119 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_VECTOR ) | |
| 1120 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) | |
| 1121 | 1118 | MDRV_VIDEO_START(cinemat_64level) |
| 1122 | 1119 | MACHINE_DRIVER_END |
| 1123 | 1120 | |
| r1711 | r1712 | |
| 1125 | 1122 | static MACHINE_DRIVER_START( boxingb ) |
| 1126 | 1123 | MDRV_IMPORT_FROM(cinemat_jmi_32k) |
| 1127 | 1124 | MDRV_IMPORT_FROM(boxingb_sound) |
| 1125 | MDRV_SCREEN_MODIFY("main") | |
| 1128 | 1126 | MDRV_SCREEN_VISIBLE_AREA(0, 1024, 0, 788) |
| 1129 | 1127 | MDRV_VIDEO_START(cinemat_color) |
| 1130 | 1128 | MACHINE_DRIVER_END |
| r1711 | r1712 | |
| 1132 | 1130 | |
| 1133 | 1131 | static MACHINE_DRIVER_START( wotw ) |
| 1134 | 1132 | MDRV_IMPORT_FROM(cinemat_jmi_16k) |
| 1133 | MDRV_SCREEN_MODIFY("main") | |
| 1135 | 1134 | MDRV_SCREEN_VISIBLE_AREA(0, 1120, 0, 767) |
| 1136 | 1135 | MDRV_IMPORT_FROM(wotw_sound) |
| 1137 | 1136 | MACHINE_DRIVER_END |
| r1711 | r1712 | |
| 1147 | 1146 | static MACHINE_DRIVER_START( demon ) |
| 1148 | 1147 | MDRV_IMPORT_FROM(cinemat_jmi_16k) |
| 1149 | 1148 | MDRV_IMPORT_FROM(demon_sound) |
| 1149 | MDRV_SCREEN_MODIFY("main") | |
| 1150 | 1150 | MDRV_SCREEN_VISIBLE_AREA(0, 1024, 0, 805) |
| 1151 | 1151 | MACHINE_DRIVER_END |
| 1152 | 1152 | |
| r1711 | r1712 | |
| 1156 | 1156 | MDRV_IMPORT_FROM(qb3_sound) |
| 1157 | 1157 | MDRV_CPU_MODIFY("main") |
| 1158 | 1158 | MDRV_CPU_DATA_MAP(data_map_qb3,0) |
| 1159 | MDRV_SCREEN_MODIFY("main") | |
| 1159 | 1160 | MDRV_SCREEN_VISIBLE_AREA(0, 1120, 0, 780) |
| 1160 | 1161 | MDRV_VIDEO_START(cinemat_qb3color) |
| 1161 | 1162 | MACHINE_DRIVER_END |
| r1711 | r1712 | |
|---|---|---|
| 3304 | 3304 | MDRV_CPU_PROGRAM_MAP(hd647180_mem, 0) |
| 3305 | 3305 | #endif |
| 3306 | 3306 | |
| 3307 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3308 | ||
| 3309 | 3307 | MDRV_MACHINE_RESET(toaplan2) |
| 3310 | 3308 | |
| 3311 | 3309 | /* video hardware */ |
| 3312 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 3310 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 3311 | ||
| 3312 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3313 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3313 | 3314 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3314 | 3315 | MDRV_SCREEN_SIZE(432, 262) |
| 3315 | 3316 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 239) |
| 3317 | ||
| 3316 | 3318 | MDRV_GFXDECODE(toaplan2) |
| 3317 | 3319 | MDRV_PALETTE_LENGTH(2048) |
| 3318 | 3320 | |
| r1711 | r1712 | |
| 3341 | 3343 | MDRV_CPU_PROGRAM_MAP(hd647180_mem, 0) |
| 3342 | 3344 | #endif |
| 3343 | 3345 | |
| 3344 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3345 | ||
| 3346 | 3346 | MDRV_MACHINE_RESET(ghox) |
| 3347 | 3347 | |
| 3348 | 3348 | /* video hardware */ |
| 3349 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 3349 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 3350 | ||
| 3351 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3352 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3350 | 3353 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3351 | 3354 | MDRV_SCREEN_SIZE(432, 262) |
| 3352 | 3355 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 239) |
| 3356 | ||
| 3353 | 3357 | MDRV_GFXDECODE(toaplan2) |
| 3354 | 3358 | MDRV_PALETTE_LENGTH(2048) |
| 3355 | 3359 | |
| r1711 | r1712 | |
| 3378 | 3382 | MDRV_CPU_IO_MAP(V25_port, 0) |
| 3379 | 3383 | #endif |
| 3380 | 3384 | |
| 3381 | MDRV_SCREEN_REFRESH_RATE( (XTAL_27MHz / 4) / (432 * 263) ) | |
| 3382 | ||
| 3383 | 3385 | MDRV_MACHINE_RESET(dogyuun) |
| 3384 | 3386 | |
| 3385 | 3387 | /* video hardware */ |
| 3386 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 3388 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 3389 | ||
| 3390 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3391 | MDRV_SCREEN_REFRESH_RATE( (XTAL_27MHz / 4) / (432 * 263) ) | |
| 3387 | 3392 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3388 | 3393 | MDRV_SCREEN_SIZE(432, 262) |
| 3389 | 3394 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 239) |
| 3395 | ||
| 3390 | 3396 | MDRV_GFXDECODE(2) |
| 3391 | 3397 | MDRV_PALETTE_LENGTH(2048) |
| 3392 | 3398 | |
| r1711 | r1712 | |
| 3419 | 3425 | MDRV_CPU_IO_MAP(V25_port, 0) |
| 3420 | 3426 | #endif |
| 3421 | 3427 | |
| 3422 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3423 | ||
| 3424 | 3428 | MDRV_MACHINE_RESET(toaplan2) |
| 3425 | 3429 | |
| 3426 | 3430 | /* video hardware */ |
| 3427 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 3431 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 3432 | ||
| 3433 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3434 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3428 | 3435 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3429 | 3436 | MDRV_SCREEN_SIZE(432, 262) |
| 3430 | 3437 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 239) |
| 3438 | ||
| 3431 | 3439 | MDRV_GFXDECODE(toaplan2) |
| 3432 | 3440 | MDRV_PALETTE_LENGTH(2048) |
| 3433 | 3441 | |
| r1711 | r1712 | |
| 3453 | 3461 | MDRV_CPU_PROGRAM_MAP(kbash2_68k_mem, 0) |
| 3454 | 3462 | MDRV_CPU_VBLANK_INT(toaplan2_vblank_irq4,1) |
| 3455 | 3463 | |
| 3456 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3457 | ||
| 3458 | 3464 | MDRV_MACHINE_RESET(toaplan2) |
| 3459 | 3465 | |
| 3460 | 3466 | /* video hardware */ |
| 3461 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 3467 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 3468 | ||
| 3469 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3470 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3462 | 3471 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3463 | 3472 | MDRV_SCREEN_SIZE(432, 262) |
| 3464 | 3473 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 239) |
| 3474 | ||
| 3465 | 3475 | MDRV_GFXDECODE(toaplan2) |
| 3466 | 3476 | MDRV_PALETTE_LENGTH(2048) |
| 3467 | 3477 | |
| r1711 | r1712 | |
| 3489 | 3499 | MDRV_CPU_PROGRAM_MAP(truxton2_68k_mem, 0) |
| 3490 | 3500 | MDRV_CPU_VBLANK_INT(toaplan2_vblank_irq2,1) |
| 3491 | 3501 | |
| 3492 | MDRV_SCREEN_REFRESH_RATE( (XTAL_28MHz / 4) / (432 * 263) ) /* 28MHz Oscillator */ | |
| 3493 | ||
| 3494 | 3502 | MDRV_MACHINE_RESET(toaplan2) |
| 3495 | 3503 | |
| 3496 | 3504 | /* video hardware */ |
| 3497 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 3505 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 3506 | ||
| 3507 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3508 | MDRV_SCREEN_REFRESH_RATE( (XTAL_27MHz / 4) / (432 * 263) ) /* 27MHz Oscillator */ | |
| 3498 | 3509 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3499 | 3510 | MDRV_SCREEN_SIZE(432, 262) |
| 3500 | 3511 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 239) |
| 3512 | ||
| 3501 | 3513 | MDRV_GFXDECODE(truxton2) |
| 3502 | 3514 | MDRV_PALETTE_LENGTH(2048) |
| 3503 | 3515 | |
| r1711 | r1712 | |
| 3508 | 3520 | /* sound hardware */ |
| 3509 | 3521 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 3510 | 3522 | |
| 3511 | MDRV_SOUND_ADD(YM2151, XTAL_2 | |
| 3523 | MDRV_SOUND_ADD(YM2151, XTAL_27MHz/8) /* verified on pcb */ | |
| 3512 | 3524 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 3513 | 3525 | |
| 3514 | 3526 | MDRV_SOUND_ADD(OKIM6295, XTAL_16MHz/4) /* verified on pcb */ |
| r1711 | r1712 | |
| 3527 | 3539 | MDRV_CPU_ADD(Z80,XTAL_27MHz/8) /* verified on pcb */ |
| 3528 | 3540 | MDRV_CPU_PROGRAM_MAP(sound_z80_mem, 0) |
| 3529 | 3541 | |
| 3530 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3531 | 3542 | MDRV_INTERLEAVE(10) |
| 3532 | 3543 | |
| 3533 | 3544 | MDRV_MACHINE_RESET(toaplan2) |
| 3534 | 3545 | |
| 3535 | 3546 | /* video hardware */ |
| 3536 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 3547 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 3548 | ||
| 3549 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3550 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3537 | 3551 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3538 | 3552 | MDRV_SCREEN_SIZE(432, 262) |
| 3539 | 3553 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 239) |
| 3554 | ||
| 3540 | 3555 | MDRV_GFXDECODE(toaplan2) |
| 3541 | 3556 | MDRV_PALETTE_LENGTH(2048) |
| 3542 | 3557 | |
| r1711 | r1712 | |
| 3564 | 3579 | /* Change this to 10MHz when HD647180 gets dumped. 10MHz Oscillator */ |
| 3565 | 3580 | MDRV_CPU_PROGRAM_MAP(sound_z80_mem, 0) |
| 3566 | 3581 | |
| 3567 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3568 | 3582 | MDRV_INTERLEAVE(10) |
| 3569 | 3583 | |
| 3570 | 3584 | MDRV_MACHINE_RESET(toaplan2) |
| 3571 | 3585 | |
| 3572 | 3586 | /* video hardware */ |
| 3573 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 3587 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 3588 | ||
| 3589 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3590 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3574 | 3591 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3575 | 3592 | MDRV_SCREEN_SIZE(432, 262) |
| 3576 | 3593 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 239) |
| 3594 | ||
| 3577 | 3595 | MDRV_GFXDECODE(toaplan2) |
| 3578 | 3596 | MDRV_PALETTE_LENGTH(2048) |
| 3579 | 3597 | |
| r1711 | r1712 | |
| 3600 | 3618 | MDRV_CPU_ADD(Z80,27000000/8) /* ??? 3.37MHz */ |
| 3601 | 3619 | MDRV_CPU_PROGRAM_MAP(sound_z80_mem, 0) |
| 3602 | 3620 | |
| 3603 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3604 | 3621 | MDRV_INTERLEAVE(10) |
| 3605 | 3622 | |
| 3606 | 3623 | MDRV_MACHINE_RESET(toaplan2) |
| 3607 | 3624 | |
| 3608 | 3625 | /* video hardware */ |
| 3609 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 3626 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 3627 | ||
| 3628 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3629 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3610 | 3630 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3611 | 3631 | MDRV_SCREEN_SIZE(432, 262) |
| 3612 | 3632 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 239) |
| 3633 | ||
| 3613 | 3634 | MDRV_GFXDECODE(toaplan2) |
| 3614 | 3635 | MDRV_PALETTE_LENGTH(2048) |
| 3615 | 3636 | |
| r1711 | r1712 | |
| 3639 | 3660 | MDRV_CPU_IO_MAP(V25_port, 0) |
| 3640 | 3661 | #endif |
| 3641 | 3662 | |
| 3642 | MDRV_SCREEN_REFRESH_RATE( (XTAL_27MHz / 4) / (432 * 263) ) | |
| 3643 | ||
| 3644 | 3663 | MDRV_MACHINE_RESET(toaplan2) |
| 3645 | 3664 | // MDRV_NVRAM_HANDLER(fixeight) /* See 37B6 code */ |
| 3646 | 3665 | |
| 3647 | 3666 | /* video hardware */ |
| 3648 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 3667 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 3668 | ||
| 3669 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3670 | MDRV_SCREEN_REFRESH_RATE( (XTAL_27MHz / 4) / (432 * 263) ) | |
| 3649 | 3671 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3650 | 3672 | MDRV_SCREEN_SIZE(432, 262) |
| 3651 | 3673 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 239) |
| 3674 | ||
| 3652 | 3675 | MDRV_GFXDECODE(truxton2) |
| 3653 | 3676 | MDRV_PALETTE_LENGTH(2048) |
| 3654 | 3677 | |
| r1711 | r1712 | |
| 3674 | 3697 | MDRV_CPU_PROGRAM_MAP(fixeighb_68k_mem, 0) |
| 3675 | 3698 | MDRV_CPU_VBLANK_INT(toaplan2_vblank_irq2,1) |
| 3676 | 3699 | |
| 3677 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3678 | ||
| 3679 | 3700 | MDRV_MACHINE_RESET(toaplan2) |
| 3680 | 3701 | |
| 3681 | 3702 | /* video hardware */ |
| 3682 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 3703 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 3704 | ||
| 3705 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3706 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3683 | 3707 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3684 | 3708 | MDRV_SCREEN_SIZE(432, 262) |
| 3685 | 3709 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 239) |
| 3710 | ||
| 3686 | 3711 | MDRV_GFXDECODE(fixeighb) |
| 3687 | 3712 | MDRV_PALETTE_LENGTH(2048) |
| 3688 | 3713 | |
| r1711 | r1712 | |
| 3712 | 3737 | MDRV_CPU_IO_MAP(V25_port, 0) |
| 3713 | 3738 | #endif |
| 3714 | 3739 | |
| 3715 | MDRV_SCREEN_REFRESH_RATE( (27000000.0 / 4) / (432 * 263) ) | |
| 3716 | ||
| 3717 | 3740 | MDRV_MACHINE_RESET(vfive) |
| 3718 | 3741 | |
| 3719 | 3742 | /* video hardware */ |
| 3720 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 3743 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 3744 | ||
| 3745 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3746 | MDRV_SCREEN_REFRESH_RATE( (27000000.0 / 4) / (432 * 263) ) | |
| 3721 | 3747 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3722 | 3748 | MDRV_SCREEN_SIZE(432, 262) |
| 3723 | 3749 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 239) |
| 3750 | ||
| 3724 | 3751 | MDRV_GFXDECODE(toaplan2) |
| 3725 | 3752 | MDRV_PALETTE_LENGTH(2048) |
| 3726 | 3753 | |
| r1711 | r1712 | |
| 3749 | 3776 | MDRV_CPU_IO_MAP(V25_port, 0) |
| 3750 | 3777 | #endif |
| 3751 | 3778 | |
| 3752 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3753 | ||
| 3754 | 3779 | MDRV_MACHINE_RESET(toaplan2) |
| 3755 | 3780 | |
| 3756 | 3781 | /* video hardware */ |
| 3757 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 3782 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 3783 | ||
| 3784 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3785 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3758 | 3786 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3759 | 3787 | MDRV_SCREEN_SIZE(432, 262) |
| 3760 | 3788 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 239) |
| 3789 | ||
| 3761 | 3790 | MDRV_GFXDECODE(2) |
| 3762 | 3791 | MDRV_PALETTE_LENGTH(2048) |
| 3763 | 3792 | |
| r1711 | r1712 | |
| 3784 | 3813 | MDRV_CPU_PROGRAM_MAP(snowbro2_68k_mem, 0) |
| 3785 | 3814 | MDRV_CPU_VBLANK_INT(toaplan2_vblank_irq4,1) |
| 3786 | 3815 | |
| 3787 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3788 | ||
| 3789 | 3816 | MDRV_MACHINE_RESET(toaplan2) |
| 3790 | 3817 | |
| 3791 | 3818 | /* video hardware */ |
| 3792 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 3819 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 3820 | ||
| 3821 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3822 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3793 | 3823 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3794 | 3824 | MDRV_SCREEN_SIZE(432, 262) |
| 3795 | 3825 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 239) |
| 3826 | ||
| 3796 | 3827 | MDRV_GFXDECODE(toaplan2) |
| 3797 | 3828 | MDRV_PALETTE_LENGTH(2048) |
| 3798 | 3829 | |
| r1711 | r1712 | |
| 3822 | 3853 | MDRV_CPU_ADD(Z80,32000000/8) /* 4MHz , 32MHz Oscillator */ |
| 3823 | 3854 | MDRV_CPU_PROGRAM_MAP(raizing_sound_z80_mem, 0) |
| 3824 | 3855 | |
| 3825 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3826 | 3856 | MDRV_INTERLEAVE(10) |
| 3827 | 3857 | |
| 3828 | 3858 | MDRV_MACHINE_RESET(toaplan2) |
| 3829 | 3859 | |
| 3830 | 3860 | /* video hardware */ |
| 3831 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 3861 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 3862 | ||
| 3863 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3864 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3832 | 3865 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3833 | 3866 | MDRV_SCREEN_SIZE(432, 262) |
| 3834 | 3867 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 239) |
| 3868 | ||
| 3835 | 3869 | MDRV_GFXDECODE(raizing) |
| 3836 | 3870 | MDRV_PALETTE_LENGTH(2048) |
| 3837 | 3871 | |
| r1711 | r1712 | |
| 3861 | 3895 | MDRV_CPU_ADD(Z80,32000000/8) /* 4MHz , 32MHz Oscillator */ |
| 3862 | 3896 | MDRV_CPU_PROGRAM_MAP(raizing_sound_z80_mem, 0) |
| 3863 | 3897 | |
| 3864 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3865 | 3898 | MDRV_INTERLEAVE(10) |
| 3866 | 3899 | |
| 3867 | 3900 | MDRV_MACHINE_RESET(toaplan2) |
| 3868 | 3901 | |
| 3869 | 3902 | /* video hardware */ |
| 3870 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 3903 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 3904 | ||
| 3905 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3906 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3871 | 3907 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3872 | 3908 | MDRV_SCREEN_SIZE(432, 262) |
| 3873 | 3909 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 239) |
| 3910 | ||
| 3874 | 3911 | MDRV_GFXDECODE(raizing) |
| 3875 | 3912 | MDRV_PALETTE_LENGTH(2048) |
| 3876 | 3913 | |
| r1711 | r1712 | |
| 3900 | 3937 | MDRV_CPU_ADD(Z80,32000000/8) /* 4MHz , 32MHz Oscillator */ |
| 3901 | 3938 | MDRV_CPU_PROGRAM_MAP(bgaregga_sound_z80_mem, 0) |
| 3902 | 3939 | |
| 3903 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3904 | 3940 | MDRV_INTERLEAVE(10) |
| 3905 | 3941 | |
| 3906 | 3942 | MDRV_MACHINE_RESET(bgaregga) |
| 3907 | 3943 | |
| 3908 | 3944 | /* video hardware */ |
| 3909 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 3945 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 3946 | ||
| 3947 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3948 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3910 | 3949 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3911 | 3950 | MDRV_SCREEN_SIZE(432, 262) |
| 3912 | 3951 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 239) |
| 3952 | ||
| 3913 | 3953 | MDRV_GFXDECODE(raizing) |
| 3914 | 3954 | MDRV_PALETTE_LENGTH(2048) |
| 3915 | 3955 | |
| r1711 | r1712 | |
| 3940 | 3980 | MDRV_CPU_PROGRAM_MAP(batrider_sound_z80_mem, 0) |
| 3941 | 3981 | MDRV_CPU_IO_MAP(batrider_sound_z80_port, 0) |
| 3942 | 3982 | |
| 3943 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3944 | 3983 | MDRV_INTERLEAVE(10) |
| 3945 | 3984 | |
| 3946 | 3985 | MDRV_MACHINE_RESET(bgaregga) |
| 3947 | 3986 | |
| 3948 | 3987 | /* video hardware */ |
| 3949 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 3988 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 3989 | ||
| 3990 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3991 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3950 | 3992 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3951 | 3993 | MDRV_SCREEN_SIZE(432, 262) |
| 3952 | 3994 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 239) |
| 3995 | ||
| 3953 | 3996 | MDRV_GFXDECODE(batrider) |
| 3954 | 3997 | MDRV_PALETTE_LENGTH(2048) |
| 3955 | 3998 | |
| r1711 | r1712 | |
| 3982 | 4025 | MDRV_CPU_PROGRAM_MAP(bbakraid_sound_z80_mem, 0) |
| 3983 | 4026 | MDRV_CPU_IO_MAP(bbakraid_sound_z80_port, 0) |
| 3984 | 4027 | MDRV_CPU_PERIODIC_INT(bbakraid_snd_interrupt, 448) |
| 3985 | ||
| 4028 | ||
| 3986 | 4029 | MDRV_INTERLEAVE(10) |
| 3987 | 4030 | |
| 3988 | 4031 | MDRV_MACHINE_RESET(toaplan2) |
| 3989 | 4032 | MDRV_NVRAM_HANDLER(bbakraid) |
| 3990 | 4033 | |
| 3991 | 4034 | /* video hardware */ |
| 3992 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 4035 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 4036 | ||
| 4037 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4038 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3993 | 4039 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3994 | 4040 | MDRV_SCREEN_SIZE(432, 262) |
| 3995 | 4041 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 239) |
| 4042 | ||
| 3996 | 4043 | MDRV_GFXDECODE(batrider) |
| 3997 | 4044 | MDRV_PALETTE_LENGTH(2048) |
| 3998 | 4045 |
| r1711 | r1712 | |
|---|---|---|
| 56 | 56 | MDRV_CPU_PROGRAM_MAP(ddz_mem,0) |
| 57 | 57 | MDRV_CPU_VBLANK_INT(ddz_interrupt,1) |
| 58 | 58 | |
| 59 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 60 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 61 | ||
| 62 | 59 | //MDRV_MACHINE_RESET(ddz) |
| 63 | 60 | |
| 64 | 61 | //MDRV_NVRAM_HANDLER(generic_0fill) |
| 65 | 62 | |
| 66 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 63 | MDRV_SCREEN_ADD("main", RASTER) | |
| 64 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 65 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 67 | 66 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) |
| 68 | 67 | MDRV_SCREEN_SIZE(320, 240) |
| 69 | 68 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 239) |
| 69 | ||
| 70 | 70 | MDRV_PALETTE_LENGTH(8192) |
| 71 | 71 | |
| 72 | 72 | MDRV_VIDEO_START(ddz) |
| r1711 | r1712 | |
|---|---|---|
| 358 | 358 | MDRV_CPU_IO_MAP(readport,writeport) |
| 359 | 359 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,1) |
| 360 | 360 | |
| 361 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 362 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 363 | ||
| 364 | 361 | MDRV_NVRAM_HANDLER(mjkjidai) |
| 365 | 362 | |
| 366 | 363 | /* video hardware */ |
| 367 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 364 | MDRV_SCREEN_ADD("main", RASTER) | |
| 365 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 366 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 368 | 367 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 369 | 368 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 370 | 369 | MDRV_SCREEN_VISIBLE_AREA(3*8, 61*8-1, 2*8, 30*8-1) |
| 370 | ||
| 371 | 371 | MDRV_GFXDECODE(mjkjidai) |
| 372 | 372 | MDRV_PALETTE_LENGTH(0x100) |
| 373 | 373 |
| r1711 | r1712 | |
|---|---|---|
| 754 | 754 | MDRV_CPU_ADD(M68000, 16000000) |
| 755 | 755 | MDRV_CPU_PROGRAM_MAP(jchan_sub,0) |
| 756 | 756 | |
| 757 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 758 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 759 | ||
| 760 | 757 | MDRV_GFXDECODE(jchan) |
| 761 | 758 | |
| 762 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 759 | ||
| 760 | MDRV_SCREEN_ADD("main", RASTER) | |
| 761 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 762 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 763 | 763 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 764 | 764 | MDRV_SCREEN_SIZE(64*8, 64*8) |
| 765 | 765 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 30*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 249 | 249 | MDRV_MACHINE_START(jailbrek) |
| 250 | 250 | |
| 251 | 251 | /* video hardware */ |
| 252 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 253 | 252 | MDRV_GFXDECODE(jailbrek) |
| 254 | 253 | MDRV_PALETTE_LENGTH(512) |
| 255 | 254 | |
| 256 | MDRV_SCREEN_ADD("main", | |
| 255 | MDRV_SCREEN_ADD("main", RASTER) | |
| 257 | 256 | MDRV_SCREEN_RAW_PARAMS(MASTER_CLOCK/3, 396, 8, 248, 256, 16, 240) |
| 258 | 257 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 259 | 258 |
| r1711 | r1712 | |
|---|---|---|
| 76 | 76 | |
| 77 | 77 | static VIDEO_START( couple ) |
| 78 | 78 | { |
| 79 | mc6845 = mc6845 | |
| 79 | mc6845 = devtag_get_token(machine, MC6845, "crtc" | |
| 80 | 80 | bg_tilemap = tilemap_create(get_tile_info,tilemap_scan_rows,8,8,64,32); |
| 81 | 81 | } |
| 82 | 82 | |
| r1711 | r1712 | |
| 447 | 447 | MDRV_CPU_IO_MAP(merit_io,0) |
| 448 | 448 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 449 | 449 | |
| 450 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 451 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 452 | 450 | MDRV_MACHINE_RESET(couple) |
| 453 | 451 | |
| 454 | 452 | /* video hardware */ |
| 455 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 453 | MDRV_SCREEN_ADD("main", RASTER) | |
| 454 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 455 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 456 | 456 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 457 | 457 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 458 | 458 | MDRV_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 0*8, 32*8-1) |
| 459 | ||
| 459 | 460 | MDRV_GFXDECODE(couple) |
| 460 | 461 | MDRV_PALETTE_LENGTH(0x100) |
| 461 | 462 | MDRV_PALETTE_INIT(couple) |
| r1711 | r1712 | |
| 463 | 464 | MDRV_VIDEO_START(couple) |
| 464 | 465 | MDRV_VIDEO_UPDATE(couple) |
| 465 | 466 | |
| 467 | MDRV_DEVICE_ADD("crtc", MC6845) | |
| 468 | ||
| 466 | 469 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 467 | 470 | |
| 468 | 471 | MDRV_SOUND_ADD(AY8910, 4000000) |
| r1711 | r1712 | |
|---|---|---|
| 158 | 158 | MDRV_CPU_IO_MAP(sgladiat_sound_portmap,0) |
| 159 | 159 | MDRV_CPU_PERIODIC_INT(irq0_line_hold, 244) // Marvin's frequency, sounds ok |
| 160 | 160 | |
| 161 | MDRV_SCREEN_REFRESH_RATE(60.606060) | |
| 162 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 163 | 161 | MDRV_INTERLEAVE(300) |
| 164 | 162 | |
| 165 | 163 | /* video hardware */ |
| 166 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS) | |
| 164 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 165 | ||
| 166 | MDRV_SCREEN_ADD("main", RASTER) | |
| 167 | MDRV_SCREEN_REFRESH_RATE(60.606060) | |
| 168 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 167 | 169 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 168 | 170 | MDRV_SCREEN_SIZE(36*8, 28*8) |
| 169 | 171 | MDRV_SCREEN_VISIBLE_AREA(0*8+16, 36*8-1-16, 1*8, 28*8-1) |
| 172 | ||
| 170 | 173 | MDRV_GFXDECODE(tnk3) |
| 171 | 174 | MDRV_PALETTE_LENGTH(1024) |
| 172 | 175 |
| r1711 | r1712 | |
|---|---|---|
| 377 | 377 | MDRV_CPU_VBLANK_INT(irq0_line_hold, 1) |
| 378 | 378 | |
| 379 | 379 | /* video hardware */ |
| 380 | MDRV_ | |
| 380 | MDRV_SC | |
| 381 | 381 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 382 | 382 | MDRV_SCREEN_REFRESH_RATE(60) |
| 383 | MDRV_SCREEN_VBLANK_TIME( | |
| 383 | MDRV_SCREEN_VBLANK_TIME( | |
| 384 | 384 | MDRV_SCREEN_SIZE(512, 512) |
| 385 | 385 | MDRV_SCREEN_VISIBLE_AREA(0, 511, 14*8, 511) |
| 386 | ||
| 386 | 387 | MDRV_GFXDECODE(mlanding) |
| 387 | 388 | MDRV_PALETTE_LENGTH(512*16) |
| 388 | 389 |
| r1711 | r1712 | |
|---|---|---|
| 225 | 225 | /* audio CPU */ |
| 226 | 226 | MDRV_CPU_PROGRAM_MAP(bigkarnk_readmem_snd,bigkarnk_writemem_snd) |
| 227 | 227 | |
| 228 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 229 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 230 | 228 | MDRV_INTERLEAVE(10) |
| 231 | 229 | |
| 232 | 230 | /* video hardware */ |
| 233 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 231 | MDRV_SCREEN_ADD("main", RASTER) | |
| 232 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 233 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 234 | 234 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 235 | 235 | MDRV_SCREEN_SIZE(32*16, 32*16) |
| 236 | 236 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 16, 256-1) |
| 237 | ||
| 237 | 238 | MDRV_GFXDECODE(0x100000) |
| 238 | 239 | MDRV_PALETTE_LENGTH(1024) |
| 239 | 240 | |
| r1711 | r1712 | |
| 475 | 476 | MDRV_CPU_PROGRAM_MAP(maniacsq_readmem,maniacsq_writemem) |
| 476 | 477 | MDRV_CPU_VBLANK_INT(irq6_line_hold,1) |
| 477 | 478 | |
| 479 | /* video hardware */ | |
| 480 | MDRV_SCREEN_ADD("main", RASTER) | |
| 478 | 481 | MDRV_SCREEN_REFRESH_RATE(60) |
| 479 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 480 | ||
| 481 | /* video hardware */ | |
| 482 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 482 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 483 | 483 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 484 | 484 | MDRV_SCREEN_SIZE(32*16, 32*16) |
| 485 | 485 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 16, 256-1) |
| 486 | ||
| 486 | 487 | MDRV_GFXDECODE(0x100000) |
| 487 | 488 | MDRV_PALETTE_LENGTH(1024) |
| 488 | 489 | |
| r1711 | r1712 | |
| 1111 | 1112 | MDRV_CPU_PROGRAM_MAP(squash_readmem,squash_writemem) |
| 1112 | 1113 | MDRV_CPU_VBLANK_INT(irq6_line_hold,1) |
| 1113 | 1114 | |
| 1114 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1115 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 1116 | 1115 | MDRV_INTERLEAVE(10) |
| 1117 | 1116 | |
| 1118 | 1117 | /* video hardware */ |
| 1119 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1118 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1119 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1120 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 1120 | 1121 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1121 | 1122 | MDRV_SCREEN_SIZE(32*16, 32*16) |
| 1122 | 1123 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 16, 256-1) |
| 1124 | ||
| 1123 | 1125 | MDRV_GFXDECODE(0x100000) |
| 1124 | 1126 | MDRV_PALETTE_LENGTH(1024) |
| 1125 | 1127 | |
| r1711 | r1712 | |
| 1278 | 1280 | MDRV_CPU_PROGRAM_MAP(squash_readmem,thoop_writemem) |
| 1279 | 1281 | MDRV_CPU_VBLANK_INT(irq6_line_hold,1) |
| 1280 | 1282 | |
| 1281 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1282 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 1283 | 1283 | MDRV_INTERLEAVE(10) |
| 1284 | 1284 | |
| 1285 | 1285 | /* video hardware */ |
| 1286 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1286 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1287 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1288 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 1287 | 1289 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1288 | 1290 | MDRV_SCREEN_SIZE(32*16, 32*16) |
| 1289 | 1291 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 16, 256-1) |
| 1292 | ||
| 1290 | 1293 | MDRV_GFXDECODE(0x100000) |
| 1291 | 1294 | MDRV_PALETTE_LENGTH(1024) |
| 1292 | 1295 |
| r1711 | r1712 | |
|---|---|---|
| 277 | 277 | MDRV_CPU_IO_MAP(bankp_io_map, 0) |
| 278 | 278 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,1) |
| 279 | 279 | |
| 280 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 281 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 282 | ||
| 283 | 280 | /* video hardware */ |
| 284 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 281 | MDRV_SCREEN_ADD("main", RASTER) | |
| 282 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 283 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 285 | 284 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 286 | 285 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 287 | 286 | MDRV_SCREEN_VISIBLE_AREA(3*8, 31*8-1, 2*8, 30*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 375 | 375 | MDRV_CPU_PROGRAM_MAP( readmem2, writemem2 ) |
| 376 | 376 | MDRV_CPU_IO_MAP( readport2, writeport2 ) |
| 377 | 377 | |
| 378 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 379 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 380 | ||
| 381 | 378 | MDRV_INTERLEAVE(100) |
| 382 | 379 | |
| 383 | 380 | //MDRV_MACHINE_RESET( ... ) |
| 384 | 381 | |
| 385 | 382 | /* video hardware */ |
| 386 | MDRV_VIDEO_ATTRIBUTES( VIDEO_TYPE_RASTER ) | |
| 383 | MDRV_SCREEN_ADD("main", RASTER) | |
| 384 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 385 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 387 | 386 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 388 | 387 | MDRV_SCREEN_SIZE ( 64*8, 32*8 ) |
| 389 | 388 | MDRV_SCREEN_VISIBLE_AREA ( 16*8, 56*8-1, 1*8, 31*8-1 ) |
| 390 | 389 | // MDRV_SCREEN_VISIBLE_AREA ( 0*8, 64*8-1, 1*8, 31*8-1 ) |
| 390 | ||
| 391 | 391 | MDRV_GFXDECODE( tankbust ) |
| 392 | 392 | |
| 393 | 393 | MDRV_PALETTE_LENGTH( 128 ) |
| r1711 | r1712 | |
|---|---|---|
| 1125 | 1125 | /* audio CPU */ |
| 1126 | 1126 | MDRV_CPU_PROGRAM_MAP(wecleman_sound_readmem,wecleman_sound_writemem) |
| 1127 | 1127 | |
| 1128 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1129 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1130 | 1128 | MDRV_INTERLEAVE(100) |
| 1131 | 1129 | |
| 1132 | 1130 | MDRV_MACHINE_RESET(wecleman) |
| 1133 | 1131 | |
| 1134 | 1132 | /* video hardware */ |
| 1135 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1133 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1134 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1135 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1136 | 1136 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) |
| 1137 | 1137 | MDRV_SCREEN_SIZE(320 +16, 224 +16) |
| 1138 | 1138 | MDRV_SCREEN_VISIBLE_AREA(0 +8, 320-1 +8, 0 +8, 224-1 +8) |
| 1139 | ||
| 1139 | 1140 | MDRV_GFXDECODE(wecleman) |
| 1140 | 1141 | |
| 1141 | 1142 | MDRV_PALETTE_LENGTH(2048) |
| r1711 | r1712 | |
| 1182 | 1183 | MDRV_CPU_PERIODIC_INT( hotchase_sound_timer, 496 ) |
| 1183 | 1184 | |
| 1184 | 1185 | /* Amuse: every 2 ms */ |
| 1185 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1186 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1186 | ||
| 1187 | 1187 | MDRV_INTERLEAVE(100) |
| 1188 | 1188 | |
| 1189 | 1189 | /* video hardware */ |
| 1190 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1190 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1191 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1192 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1191 | 1193 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1192 | 1194 | MDRV_SCREEN_SIZE(320, 224) |
| 1193 | 1195 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 0, 224-1) |
| 1196 | ||
| 1194 | 1197 | MDRV_GFXDECODE(hotchase) |
| 1195 | 1198 | MDRV_PALETTE_LENGTH(2048*2) |
| 1196 | 1199 |
| r1711 | r1712 | |
|---|---|---|
| 344 | 344 | * |
| 345 | 345 | *************************************/ |
| 346 | 346 | |
| 347 | MACHINE_RESET( crballoon ) | |
| 347 | static MACHINE_RESET( crballoon ) | |
| 348 | 348 | { |
| 349 | 349 | pc3092_reset(); |
| 350 | 350 | port_sound_w(0, 0); |
| r1711 | r1712 | |
| 370 | 370 | MDRV_MACHINE_RESET(crballoon) |
| 371 | 371 | |
| 372 | 372 | /* video hardware */ |
| 373 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 373 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 374 | 374 | MDRV_VIDEO_START(crbaloon) |
| 375 | 375 | MDRV_VIDEO_UPDATE(crbaloon) |
| 376 | 376 | |
| r1711 | r1712 | |
| 378 | 378 | MDRV_PALETTE_LENGTH(32) |
| 379 | 379 | MDRV_PALETTE_INIT(crbaloon) |
| 380 | 380 | |
| 381 | MDRV_SCREEN_ADD("main", RASTER) | |
| 381 | 382 | MDRV_SCREEN_REFRESH_RATE(60) |
| 382 | MDRV_SCREEN_VBLANK_TIME( | |
| 383 | MDRV_SCREEN_VBLANK_TIME( | |
| 383 | 384 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 384 | 385 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 385 | 386 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 28*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 180 | 180 | MDRV_CPU_PROGRAM_MAP(memmap,0) |
| 181 | 181 | MDRV_CPU_VBLANK_INT(dderby_interrupt,1) |
| 182 | 182 | |
| 183 | /* video hardware */ | |
| 184 | MDRV_SCREEN_ADD("main", RASTER) | |
| 183 | 185 | MDRV_SCREEN_REFRESH_RATE(60) |
| 184 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 185 | ||
| 186 | /* video hardware */ | |
| 187 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 186 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 188 | 187 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 189 | 188 | MDRV_SCREEN_SIZE(256, 256) |
| 190 | 189 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 16, 256-16-1) |
| 190 | ||
| 191 | 191 | MDRV_GFXDECODE(dmndrby) |
| 192 | 192 | MDRV_PALETTE_LENGTH(0x100) |
| 193 | 193 |
| r1711 | r1712 | |
|---|---|---|
| 207 | 207 | // MDRV_CPU_VBLANK_INT(nb1413m3_interrupt,96) // nmiclock not written, chip is 1411M1 instead of 1413M3 |
| 208 | 208 | MDRV_CPU_VBLANK_INT(nb1413m3_interrupt, 1) |
| 209 | 209 | |
| 210 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 211 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 212 | ||
| 213 | 210 | MDRV_MACHINE_RESET(nb1413m3) |
| 214 | 211 | MDRV_NVRAM_HANDLER(nb1413m3) |
| 215 | 212 | |
| 216 | 213 | /* video hardware */ |
| 217 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 214 | MDRV_SCREEN_ADD("main", RASTER) | |
| 215 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 216 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 218 | 217 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 219 | 218 | MDRV_SCREEN_SIZE(256, 256) |
| 220 | 219 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 16, 240-1) |
| 220 | ||
| 221 | 221 | MDRV_PALETTE_LENGTH(32) |
| 222 | 222 | |
| 223 | 223 | MDRV_PALETTE_INIT(pastelg) |
| r1711 | r1712 | |
|---|---|---|
| 2462 | 2462 | MDRV_CPU_CONFIG(config) |
| 2463 | 2463 | MDRV_CPU_PROGRAM_MAP(seattle_map,0) |
| 2464 | 2464 | |
| 2465 | MDRV_SCREEN_REFRESH_RATE(57) | |
| 2466 | ||
| 2467 | 2465 | MDRV_MACHINE_RESET(seattle) |
| 2468 | 2466 | MDRV_NVRAM_HANDLER(generic_1fill) |
| 2469 | 2467 | |
| 2470 | 2468 | /* video hardware */ |
| 2471 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 2469 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2470 | MDRV_SCREEN_REFRESH_RATE(57) | |
| 2472 | 2471 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 2473 | 2472 | MDRV_SCREEN_SIZE(640, 480) |
| 2474 | 2473 | MDRV_SCREEN_VISIBLE_AREA(0, 639, 0, 479) |
| r1711 | r1712 | |
|---|---|---|
| 256 | 256 | /* audio CPU */ |
| 257 | 257 | MDRV_CPU_PROGRAM_MAP(portrait_sound_map,0) |
| 258 | 258 | |
| 259 | MDRV_SCREEN_REFRESH_RATE(50) | |
| 260 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 261 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 262 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 263 | 259 | |
| 264 | 260 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 265 | 261 | |
| 262 | MDRV_SCREEN_ADD("main", RASTER) | |
| 263 | MDRV_SCREEN_REFRESH_RATE(50) | |
| 264 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 265 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 266 | 266 | MDRV_SCREEN_SIZE(64*8, 64*8) |
| 267 | 267 | MDRV_SCREEN_VISIBLE_AREA(0*8, 54*8-1, 0*8, 40*8-1) |
| 268 | 268 |
| r1711 | r1712 | |
|---|---|---|
| 290 | 290 | MDRV_CPU_PROGRAM_MAP(readmem_sound,writemem_sound) |
| 291 | 291 | MDRV_CPU_VBLANK_INT(nmi_line_assert,1) |
| 292 | 292 | |
| 293 | /* video hardware */ | |
| 294 | MDRV_SCREEN_ADD("main", RASTER) | |
| 293 | 295 | MDRV_SCREEN_REFRESH_RATE(57) |
| 294 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 295 | ||
| 296 | /* video hardware */ | |
| 297 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 296 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 298 | 297 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 299 | 298 | MDRV_SCREEN_SIZE(256+32+32, 256) |
| 300 | 299 | MDRV_SCREEN_VISIBLE_AREA(0, 255+32+32,0, 255-16) |
| 300 | ||
| 301 | 301 | MDRV_GFXDECODE(munchmo) |
| 302 | 302 | MDRV_PALETTE_LENGTH(256) |
| 303 | 303 |
| r1711 | r1712 | |
|---|---|---|
| 308 | 308 | MDRV_CPU_IO_MAP(readport,writeport) |
| 309 | 309 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 310 | 310 | |
| 311 | /* video hardware */ | |
| 312 | MDRV_SCREEN_ADD("main", RASTER) | |
| 311 | 313 | MDRV_SCREEN_REFRESH_RATE(60) |
| 312 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 313 | ||
| 314 | /* video hardware */ | |
| 315 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 314 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 316 | 315 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 317 | 316 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 318 | 317 | MDRV_SCREEN_VISIBLE_AREA(12, 32*8-1-12, 0*8, 28*8-1) |
| 318 | ||
| 319 | 319 | MDRV_GFXDECODE(funkybee) |
| 320 | 320 | MDRV_PALETTE_LENGTH(32) |
| 321 | 321 |
| r1711 | r1712 | |
|---|---|---|
| 242 | 242 | *************************************/ |
| 243 | 243 | |
| 244 | 244 | static INPUT_PORTS_START( btoads ) |
| 245 | PORT_START | |
| 245 | PORT_START_TAG("IN1") | |
| 246 | 246 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 247 | 247 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) |
| 248 | 248 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| r1711 | r1712 | |
| 253 | 253 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START1 ) |
| 254 | 254 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 255 | 255 | |
| 256 | PORT_START | |
| 256 | PORT_START_TAG("IN2") | |
| 257 | 257 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) |
| 258 | 258 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) |
| 259 | 259 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) |
| r1711 | r1712 | |
| 264 | 264 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START2 ) |
| 265 | 265 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 266 | 266 | |
| 267 | PORT_START | |
| 267 | PORT_START_TAG("IN3") | |
| 268 | 268 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(3) |
| 269 | 269 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(3) |
| 270 | 270 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(3) |
| r1711 | r1712 | |
| 282 | 282 | PORT_SERVICE_NO_TOGGLE( 0x0002, IP_ACTIVE_LOW ) |
| 283 | 283 | PORT_BIT( 0xfffd, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 284 | 284 | |
| 285 | PORT_START | |
| 286 | PORT_DIPNAME( 0x0001, 0x0000, DEF_STR( Demo_Sounds )) | |
| 285 | PORT_START_TAG("SW1") | |
| 286 | PORT_DIPNAME( 0x0001, 0x0000, DEF_STR( Demo_Sounds )) PORT_DIPLOCATION("SW1:1") | |
| 287 | 287 | PORT_DIPSETTING( 0x0001, DEF_STR( Off )) |
| 288 | 288 | PORT_DIPSETTING( 0x0000, DEF_STR( On )) |
| 289 | PORT_DIPNAME( 0x0002, 0x0000, DEF_STR( Stereo )) | |
| 289 | PORT_DIPNAME( 0x0002, 0x0000, DEF_STR( Stereo )) PORT_DIPLOCATION("SW1:2") | |
| 290 | 290 | PORT_DIPSETTING( 0x0002, DEF_STR( Off )) |
| 291 | 291 | PORT_DIPSETTING( 0x0000, DEF_STR( On )) |
| 292 | PORT_DIPNAME( 0x0004, 0x0000, "Common Coin Mech") | |
| 292 | PORT_DIPNAME( 0x0004, 0x0000, "Common Coin Mech") PORT_DIPLOCATION("SW1:3") | |
| 293 | 293 | PORT_DIPSETTING( 0x0004, DEF_STR( Off )) |
| 294 | 294 | PORT_DIPSETTING( 0x0000, DEF_STR( On )) |
| 295 | PORT_DIPNAME( 0x0008, 0x0008, "Three Players") | |
| 295 | PORT_DIPNAME( 0x0008, 0x0008, "Three Players") PORT_DIPLOCATION("SW1:4") | |
| 296 | 296 | PORT_DIPSETTING( 0x0008, DEF_STR( Off )) |
| 297 | 297 | PORT_DIPSETTING( 0x0000, DEF_STR( On )) |
| 298 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Free_Play )) | |
| 298 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Free_Play )) PORT_DIPLOCATION("SW1:5") | |
| 299 | 299 | PORT_DIPSETTING( 0x0010, DEF_STR( Off )) |
| 300 | 300 | PORT_DIPSETTING( 0x0000, DEF_STR( On )) |
| 301 | PORT_DIPNAME( 0x0020, 0x0020, "Blood Free Mode") | |
| 301 | PORT_DIPNAME( 0x0020, 0x0020, "Blood Free Mode") PORT_DIPLOCATION("SW1:6") | |
| 302 | 302 | PORT_DIPSETTING( 0x0020, DEF_STR( Off )) |
| 303 | 303 | PORT_DIPSETTING( 0x0000, DEF_STR( On )) |
| 304 | PORT_DIPNAME( 0x0040, 0x0040, "Credit Retention") | |
| 304 | PORT_DIPNAME( 0x0040, 0x0040, "Credit Retention") PORT_DIPLOCATION("SW1:7") | |
| 305 | 305 | PORT_DIPSETTING( 0x0040, DEF_STR( Off )) |
| 306 | 306 | PORT_DIPSETTING( 0x0000, DEF_STR( On )) |
| 307 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Unknown )) | |
| 308 | PORT_DIPSETTING( 0x0080, DEF_STR( Off )) | |
| 309 | PORT_DIPSETTING( 0x0000, DEF_STR( On )) | |
| 307 | PORT_DIPUNKNOWN_DIPLOC(0x0080, 0x0080, "SW1:8") | |
| 310 | 308 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 311 | 309 | INPUT_PORTS_END |
| 312 | 310 | |
| r1711 | r1712 | |
| 354 | 352 | MDRV_NVRAM_HANDLER(generic_1fill) |
| 355 | 353 | |
| 356 | 354 | /* video hardware */ |
| 357 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 358 | 355 | MDRV_VIDEO_START(btoads) |
| 359 | 356 | MDRV_VIDEO_UPDATE(tms340x0) |
| 360 | 357 | |
| 361 | MDRV_SCREEN_ADD("main", | |
| 358 | MDRV_SCREEN_ADD("main", RASTER) | |
| 362 | 359 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 363 | 360 | MDRV_SCREEN_RAW_PARAMS(VIDEO_CLOCK/2, 640, 0, 512, 257, 0, 224) |
| 364 | 361 | |
| r1711 | r1712 | |
| 380 | 377 | *************************************/ |
| 381 | 378 | |
| 382 | 379 | ROM_START( btoads ) |
| 383 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) /* sound program */ | |
| 384 | ROM_LOAD( "btu102.bin", 0x0000, 0x8000, CRC(a90b911a) SHA1(6ec25161e68df1c9870d48cc2b1f85cd1a49aba9) ) | |
| 380 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) /* sound program, M27C256B rom */ | |
| 381 | ROM_LOAD( "bt.u102", 0x0000, 0x8000, CRC(a90b911a) SHA1(6ec25161e68df1c9870d48cc2b1f85cd1a49aba9) ) | |
| 385 | 382 | |
| 386 | ROM_REGION16_LE( 0x800000, REGION_USER1, 0 ) /* 34020 code */ | |
| 387 | ROM_LOAD32_WORD( "btu120.bin", 0x000000, 0x400000, CRC(0dfd1e35) SHA1(733a0a4235bebd598c600f187ed2628f28cf9bd0) ) | |
| 388 | ROM_LOAD32_WORD( "btu121.bin", 0x000002, 0x400000, CRC(df7487e1) SHA1(67151b900767bb2653b5261a98c81ff8827222c3) ) | |
| 383 | ROM_REGION16_LE( 0x800000, REGION_USER1, 0 ) /* 34020 code, M27C322 roms */ | |
| 384 | ROM_LOAD32_WORD( "btc0-p0.u120", 0x000000, 0x400000, CRC(0dfd1e35) SHA1(733a0a4235bebd598c600f187ed2628f28cf9bd0) ) | |
| 385 | ROM_LOAD32_WORD( "btc0-p1.u121", 0x000002, 0x400000, CRC(df7487e1) SHA1(67151b900767bb2653b5261a98c81ff8827222c3) ) | |
| 389 | 386 | |
| 390 | ROM_REGION( 0x200000, REGION_SOUND1, 0 ) /* BSMT data */ | |
| 391 | ROM_LOAD( "btu109.bin", 0x00000, 0x200000, CRC(d9612ddb) SHA1(f186dfb013e81abf81ba8ac5dc7eb731c1ad82b6) ) | |
| 387 | ROM_REGION( 0x200000, REGION_SOUND1, 0 ) /* BSMT data, M27C160 rom */ | |
| 388 | ROM_LOAD( "btc0-s.u109", 0x00000, 0x200000, CRC(d9612ddb) SHA1(f186dfb013e81abf81ba8ac5dc7eb731c1ad82b6) ) | |
| 389 | ||
| 390 | ROM_REGION( 0x080a, REGION_PLDS, ROMREGION_DISPOSE ) | |
| 391 | ROM_LOAD( "u10.bin", 0x0000, 0x0157, CRC(b1144178) SHA1(15fb047adee4125e9fcf04171e0a502655e0a3d8) ) /* GAL20V8A-15LP Located at U10. */ | |
| 392 | ROM_LOAD( "u11.bin", 0x0000, 0x0157, CRC(7c6beb96) SHA1(2f19d21889dd765b344ad7d257ea7c244baebec2) ) /* GAL20V8A-15LP Located at U11. */ | |
| 393 | ROM_LOAD( "u57.bin", 0x0000, 0x0157, CRC(be355a56) SHA1(975238bb1ea8fef14458d6f264a82aa77ecf865d) ) /* GAL20V8A-15LP Located at U57. */ | |
| 394 | ROM_LOAD( "u58.bin", 0x0000, 0x0157, CRC(41ed339c) SHA1(5853c805a902e6d12c979958d878d1cefd6908cc) ) /* GAL20V8A-15LP Located at U58. */ | |
| 395 | ROM_LOAD( "u90.bin", 0x0000, 0x0157, CRC(a0d0c3f1) SHA1(47464c2ef9fadbba933df27767f377e0c29158aa) ) /* GAL20V8A-15LP Located at U90. */ | |
| 396 | ROM_LOAD( "u144.bin", 0x0000, 0x0157, CRC(8597017f) SHA1(003d7b5de57e48f831ab211e2783fff338ce2f32) ) /* GAL20V8A-15LP Located at U144. */ | |
| 392 | 397 | ROM_END |
| 393 | 398 | |
| 394 | 399 |
| r1711 | r1712 | |
|---|---|---|
| 1039 | 1039 | MDRV_CPU_PROGRAM_MAP(tetrisp2_readmem,tetrisp2_writemem) |
| 1040 | 1040 | MDRV_CPU_VBLANK_INT(irq2_line_hold,1) |
| 1041 | 1041 | |
| 1042 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1043 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1044 | ||
| 1045 | 1042 | MDRV_NVRAM_HANDLER(tetrisp2) |
| 1046 | 1043 | |
| 1047 | 1044 | /* video hardware */ |
| 1048 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1045 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1046 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1047 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1049 | 1048 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1050 | 1049 | MDRV_SCREEN_SIZE(0x140, 0xe0) |
| 1051 | 1050 | MDRV_SCREEN_VISIBLE_AREA(0, 0x140-1, 0, 0xe0-1) |
| 1051 | ||
| 1052 | 1052 | MDRV_GFXDECODE(tetrisp2) |
| 1053 | 1053 | MDRV_PALETTE_LENGTH(0x8000) |
| 1054 | 1054 | |
| r1711 | r1712 | |
| 1071 | 1071 | MDRV_CPU_PROGRAM_MAP(rockn1_readmem,rockn1_writemem) |
| 1072 | 1072 | MDRV_CPU_VBLANK_INT(irq2_line_hold,1) |
| 1073 | 1073 | |
| 1074 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1075 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1076 | ||
| 1077 | 1074 | MDRV_NVRAM_HANDLER(tetrisp2) |
| 1078 | 1075 | |
| 1079 | 1076 | /* video hardware */ |
| 1080 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1077 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1078 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1079 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1081 | 1080 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1082 | 1081 | MDRV_SCREEN_SIZE(0x140, 0xe0) |
| 1083 | 1082 | MDRV_SCREEN_VISIBLE_AREA(0, 0x140-1, 0, 0xe0-1) |
| 1083 | ||
| 1084 | 1084 | MDRV_GFXDECODE(tetrisp2) |
| 1085 | 1085 | MDRV_PALETTE_LENGTH(0x8000) |
| 1086 | 1086 | |
| r1711 | r1712 | |
| 1105 | 1105 | MDRV_CPU_PROGRAM_MAP(rockn2_readmem,rockn2_writemem) |
| 1106 | 1106 | MDRV_CPU_VBLANK_INT(irq2_line_hold,1) |
| 1107 | 1107 | |
| 1108 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1109 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1110 | ||
| 1111 | 1108 | MDRV_NVRAM_HANDLER(tetrisp2) |
| 1112 | 1109 | |
| 1113 | 1110 | /* video hardware */ |
| 1114 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1111 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1112 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1113 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1115 | 1114 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1116 | 1115 | MDRV_SCREEN_SIZE(0x140, 0xe0) |
| 1117 | 1116 | MDRV_SCREEN_VISIBLE_AREA(0, 0x140-1, 0, 0xe0-1) |
| 1117 | ||
| 1118 | 1118 | MDRV_GFXDECODE(tetrisp2) |
| 1119 | 1119 | MDRV_PALETTE_LENGTH(0x8000) |
| 1120 | 1120 | |
| r1711 | r1712 | |
| 1145 | 1145 | MDRV_NVRAM_HANDLER(tetrisp2) |
| 1146 | 1146 | |
| 1147 | 1147 | /* video hardware */ |
| 1148 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1149 | 1148 | |
| 1150 | 1149 | MDRV_GFXDECODE(rocknms) |
| 1151 | 1150 | MDRV_PALETTE_LENGTH(0x10000) |
| 1152 | 1151 | MDRV_DEFAULT_LAYOUT(layout_rocknms) |
| 1153 | 1152 | |
| 1154 | MDRV_SCREEN_ADD("left", | |
| 1153 | MDRV_SCREEN_ADD("left", RASTER) | |
| 1155 | 1154 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 1156 | 1155 | MDRV_SCREEN_REFRESH_RATE(60) |
| 1157 | MDRV_SCREEN_VBLANK_TIME( | |
| 1156 | MDRV_SCREEN_VBLANK_TIME( | |
| 1158 | 1157 | MDRV_SCREEN_SIZE(0x140, 0xe0) |
| 1159 | 1158 | MDRV_SCREEN_VISIBLE_AREA(0, 0x140-1, 0, 0xe0-1) |
| 1160 | 1159 | |
| 1161 | MDRV_SCREEN_ADD("right", | |
| 1160 | MDRV_SCREEN_ADD("right", RASTER) | |
| 1162 | 1161 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 1163 | 1162 | MDRV_SCREEN_REFRESH_RATE(60) |
| 1164 | MDRV_SCREEN_VBLANK_TIME( | |
| 1163 | MDRV_SCREEN_VBLANK_TIME( | |
| 1165 | 1164 | MDRV_SCREEN_SIZE(0x140, 0xe0) |
| 1166 | 1165 | MDRV_SCREEN_VISIBLE_AREA(0, 0x140-1, 0, 0xe0-1) |
| 1167 | 1166 |
| r1711 | r1712 | |
|---|---|---|
| 267 | 267 | /* audio CPU */ /* Accurate */ |
| 268 | 268 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 269 | 269 | |
| 270 | /* video hardware */ | |
| 271 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK | VIDEO_BUFFERS_SPRITERAM) | |
| 272 | ||
| 273 | MDRV_SCREEN_ADD("main", RASTER) | |
| 270 | 274 | MDRV_SCREEN_REFRESH_RATE(60) |
| 271 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 272 | ||
| 273 | /* video hardware */ | |
| 274 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK | VIDEO_BUFFERS_SPRITERAM) | |
| 275 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 275 | 276 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 276 | 277 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 277 | 278 | MDRV_SCREEN_VISIBLE_AREA(8*8, (64-8)*8-1, 1*8, 31*8-1 ) |
| 279 | ||
| 278 | 280 | MDRV_GFXDECODE(lastduel) |
| 279 | 281 | MDRV_PALETTE_LENGTH(1024) |
| 280 | 282 | |
| r1711 | r1712 | |
| 305 | 307 | /* audio CPU */ |
| 306 | 308 | MDRV_CPU_PROGRAM_MAP(mg_sound_readmem,mg_sound_writemem) |
| 307 | 309 | |
| 310 | /* video hardware */ | |
| 311 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK | VIDEO_BUFFERS_SPRITERAM) | |
| 312 | ||
| 313 | MDRV_SCREEN_ADD("main", RASTER) | |
| 308 | 314 | MDRV_SCREEN_REFRESH_RATE(60) |
| 309 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 310 | ||
| 311 | /* video hardware */ | |
| 312 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK | VIDEO_BUFFERS_SPRITERAM) | |
| 315 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 313 | 316 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 314 | 317 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 315 | 318 | MDRV_SCREEN_VISIBLE_AREA(8*8, (64-8)*8-1, 1*8, 31*8-1 ) |
| 319 | ||
| 316 | 320 | MDRV_GFXDECODE(madgear) |
| 317 | 321 | MDRV_PALETTE_LENGTH(1024) |
| 318 | 322 |
| r1711 | r1712 | |
|---|---|---|
| 94 | 94 | |
| 95 | 95 | 8) 'gangwarb' |
| 96 | 96 | |
| 97 | - When "Coin Slots" Dip Switch is set to " | |
| 97 | - When "Coin Slots" Dip Switch is set to "1 | |
| 98 | 98 | and this has nothing to do with the microcontroller stuff. |
| 99 | 99 | - There is no Dip Switch to determine if you are allowed to continue a game |
| 100 | 100 | or not, so you ALWAYS have the possibility to continue a game. |
| r1711 | r1712 | |
| 171 | 171 | [The Next Space] |
| 172 | 172 | - fixed color and sprite glitches, added sound, filled DIP settings |
| 173 | 173 | |
| 174 | ||
| 175 | DIP locations verified from manuals for: | |
| 176 | - tnexspce | |
| 177 | - btlfield | |
| 178 | - gangwarb | |
| 179 | - skyadvnt | |
| 180 | - goldmedl | |
| 181 | - kyros | |
| 182 | ||
| 174 | 183 | ***************************************************************************/ |
| 175 | 184 | |
| 176 | 185 | #include "driver.h" |
| r1711 | r1712 | |
| 970 | 979 | PORT_BIT( 0x8000, active, start ) |
| 971 | 980 | |
| 972 | 981 | #define ALPHA68K_COINAGE_BITS_0TO2 \ |
| 973 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coinage ) ) \ | |
| 982 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW2:4,5,6") \ | |
| 974 | 983 | PORT_DIPSETTING( 0x07, "A 1C/1C B 1C/1C" ) \ |
| 975 | 984 | PORT_DIPSETTING( 0x06, "A 1C/2C B 2C/1C" ) \ |
| 976 | 985 | PORT_DIPSETTING( 0x05, "A 1C/3C B 3C/1C" ) \ |
| r1711 | r1712 | |
| 981 | 990 | PORT_DIPSETTING( 0x00, "A 3C/2C B 8C/1C" ) \ |
| 982 | 991 | |
| 983 | 992 | #define ALPHA68K_COINAGE_BITS_1TO3 \ |
| 984 | PORT_DIPNAME( 0x0e, 0x0e, DEF_STR( Coinage ) ) \ | |
| 993 | PORT_DIPNAME( 0x0e, 0x0e, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:4,5,6") \ | |
| 985 | 994 | PORT_DIPSETTING( 0x0e, "A 1C/1C B 1C/1C" ) \ |
| 986 | 995 | PORT_DIPSETTING( 0x06, "A 1C/2C B 2C/1C" ) \ |
| 987 | 996 | PORT_DIPSETTING( 0x0a, "A 1C/3C B 3C/1C" ) \ |
| r1711 | r1712 | |
| 992 | 1001 | PORT_DIPSETTING( 0x00, "A 3C/2C B 8C/1C" ) |
| 993 | 1002 | |
| 994 | 1003 | #define ALPHA68K_COINAGE_BITS_2TO4 \ |
| 995 | PORT_DIPNAME( 0x1c, 0x1c, DEF_STR( Coinage ) ) \ | |
| 1004 | PORT_DIPNAME( 0x1c, 0x1c, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW2:2,3,4") \ | |
| 996 | 1005 | PORT_DIPSETTING( 0x1c, "A 1C/1C B 1C/1C" ) \ |
| 997 | 1006 | PORT_DIPSETTING( 0x18, "A 1C/2C B 2C/1C" ) \ |
| 998 | 1007 | PORT_DIPSETTING( 0x14, "A 1C/3C B 3C/1C" ) \ |
| r1711 | r1712 | |
| 1039 | 1048 | ALPHA68K_PLAYER_INPUT_SWAP_LR_MSB( 2, IPT_UNKNOWN, IPT_START2, IP_ACTIVE_HIGH ) |
| 1040 | 1049 | |
| 1041 | 1050 | PORT_START_TAG("IN1") /* dipswitches */ |
| 1042 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 1051 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:1") | |
| 1043 | 1052 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1044 | 1053 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1045 | ALPHA68K_COINAGE_BITS_1TO3 | |
| 1046 | PORT_DIPNAME( 0x30, 0x00, DEF_STR( Lives ) ) | |
| 1054 | //ALPHA68K_COINAGE_BITS_1TO3 | |
| 1055 | PORT_DIPNAME( 0x0e, 0x0e, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:2,3,4") | |
| 1056 | PORT_DIPSETTING( 0x0e, "A 1C/1C B 1C/1C" ) | |
| 1057 | PORT_DIPSETTING( 0x06, "A 1C/2C B 2C/1C" ) | |
| 1058 | PORT_DIPSETTING( 0x0a, "A 1C/3C B 3C/1C" ) | |
| 1059 | PORT_DIPSETTING( 0x02, "A 1C/4C B 4C/1C" ) | |
| 1060 | PORT_DIPSETTING( 0x0c, "A 1C/5C B 5C/1C" ) | |
| 1061 | PORT_DIPSETTING( 0x04, "A 1C/6C B 6C/1C" ) | |
| 1062 | PORT_DIPSETTING( 0x08, "A 2C/3C B 7C/1C" ) | |
| 1063 | PORT_DIPSETTING( 0x00, "A 3C/2C B 8C/1C" ) | |
| 1064 | PORT_DIPNAME( 0x30, 0x00, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:5,6") | |
| 1047 | 1065 | PORT_DIPSETTING( 0x00, "3" ) |
| 1048 | 1066 | PORT_DIPSETTING( 0x10, "4" ) |
| 1049 | 1067 | PORT_DIPSETTING( 0x20, "5" ) |
| 1050 | 1068 | PORT_DIPSETTING( 0x30, "6" ) |
| 1051 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Difficulty ) ) | |
| 1069 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:7") | |
| 1052 | 1070 | PORT_DIPSETTING( 0x00, DEF_STR( Easy ) ) |
| 1053 | 1071 | PORT_DIPSETTING( 0x40, DEF_STR( Hard ) ) |
| 1054 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Cabinet ) ) | |
| 1072 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW1:8") | |
| 1055 | 1073 | PORT_DIPSETTING( 0x80, DEF_STR( Upright ) ) |
| 1056 | 1074 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) |
| 1057 | 1075 | |
| r1711 | r1712 | |
| 1239 | 1257 | PORT_SERVICE_NO_TOGGLE(0x02, IP_ACTIVE_LOW) |
| 1240 | 1258 | |
| 1241 | 1259 | /* 2 physical sets of _6_ dip switches */ |
| 1242 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Flip_Screen ) ) | |
| 1260 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:1") | |
| 1243 | 1261 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 1244 | 1262 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1245 | PORT_DIPNAME( 0x18, 0x18, DEF_STR( Difficulty ) ) | |
| 1263 | PORT_DIPNAME( 0x18, 0x18, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:2,3") | |
| 1246 | 1264 | PORT_DIPSETTING( 0x00, DEF_STR( Easy ) ) |
| 1247 | 1265 | PORT_DIPSETTING( 0x18, DEF_STR( Normal ) ) |
| 1248 | 1266 | // PORT_DIPSETTING( 0x08, DEF_STR( Normal ) ) |
| 1249 | PORT_DIPSETTING( 0x10, DEF_STR( Hard ) ) // "Difficult" | |
| 1250 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Language ) ) | |
| 1267 | PORT_DIPSETTING( 0x10, DEF_STR( Hard ) ) // "Difficult" | |
| 1268 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Language ) ) PORT_DIPLOCATION("SW1:4") /* Listed as "Unused". */ | |
| 1251 | 1269 | PORT_DIPSETTING( 0x00, DEF_STR( English ) ) |
| 1252 | 1270 | PORT_DIPSETTING( 0x20, DEF_STR( Japanese ) ) |
| 1253 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unused ) ) // See notes | |
| 1254 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 1255 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1256 | PORT_DIPNAME( 0x80, 0x80, "Invulnerability (Cheat)") | |
| 1271 | PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "SW1:5" ) /* Listed as "Unused", see notes. */ | |
| 1272 | PORT_DIPNAME( 0x80, 0x80, "Invulnerability (Cheat)") PORT_DIPLOCATION("SW1:6") | |
| 1257 | 1273 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1258 | 1274 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1259 | 1275 | |
| 1260 | 1276 | PORT_START_TAG("IN4") /* A 6 way dip switch */ |
| 1261 | 1277 | ALPHA68K_COINAGE_BITS_0TO2 |
| 1262 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 1278 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:3") | |
| 1263 | 1279 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) |
| 1264 | 1280 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1265 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Lives ) ) | |
| 1281 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:1,2") | |
| 1266 | 1282 | PORT_DIPSETTING( 0x30, "3" ) |
| 1267 | 1283 | PORT_DIPSETTING( 0x20, "4" ) |
| 1268 | 1284 | PORT_DIPSETTING( 0x10, "5" ) |
| r1711 | r1712 | |
| 1290 | 1306 | PORT_SERVICE_NO_TOGGLE(0x02, IP_ACTIVE_LOW) |
| 1291 | 1307 | |
| 1292 | 1308 | /* 2 physical sets of _6_ dip switches */ |
| 1293 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Flip_Screen ) ) | |
| 1309 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:1") | |
| 1294 | 1310 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 1295 | 1311 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1296 | PORT_DIPNAME( 0x18, 0x18, DEF_STR( Difficulty ) ) | |
| 1312 | PORT_DIPNAME( 0x18, 0x18, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:2,3") | |
| 1297 | 1313 | PORT_DIPSETTING( 0x00, DEF_STR( Easy ) ) |
| 1298 | 1314 | PORT_DIPSETTING( 0x18, DEF_STR( Normal ) ) |
| 1299 | 1315 | // PORT_DIPSETTING( 0x08, DEF_STR( Normal ) ) |
| 1300 | PORT_DIPSETTING( 0x10, DEF_STR( Hard ) ) // "Difficult" | |
| 1301 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Language ) ) | |
| 1316 | PORT_DIPSETTING( 0x10, DEF_STR( Hard ) ) // "Difficult" | |
| 1317 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Language ) ) PORT_DIPLOCATION("SW1:4") /* Listed as "Unused". */ | |
| 1302 | 1318 | PORT_DIPSETTING( 0x00, DEF_STR( English ) ) |
| 1303 | 1319 | PORT_DIPSETTING( 0x20, DEF_STR( Japanese ) ) |
| 1304 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unused ) ) // See notes | |
| 1305 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 1306 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1307 | PORT_DIPNAME( 0x80, 0x80, "Invulnerability (Cheat)") | |
| 1320 | PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "SW1:5" ) /* Listed as "Unused", see notes. */ | |
| 1321 | PORT_DIPNAME( 0x80, 0x80, "Invulnerability (Cheat)") PORT_DIPLOCATION("SW1:6") | |
| 1308 | 1322 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1309 | 1323 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1310 | 1324 | |
| 1311 | 1325 | PORT_START_TAG("IN4") /* A 6 way dip switch */ |
| 1312 | PORT_DIPNAME( 0x07, 0x00, DEF_STR( Coinage ) ) | |
| 1326 | PORT_DIPNAME( 0x07, 0x00, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW2:4,5,6") | |
| 1313 | 1327 | PORT_DIPSETTING( 0x00, "A 1C/1C B 1C/1C" ) |
| 1314 | 1328 | PORT_DIPSETTING( 0x01, "A 1C/2C B 2C/1C" ) |
| 1315 | 1329 | PORT_DIPSETTING( 0x02, "A 1C/3C B 3C/1C" ) |
| r1711 | r1712 | |
| 1318 | 1332 | PORT_DIPSETTING( 0x05, "A 1C/6C B 6C/1C" ) |
| 1319 | 1333 | PORT_DIPSETTING( 0x06, "A 2C/3C B 7C/1C" ) |
| 1320 | 1334 | PORT_DIPSETTING( 0x07, "A 3C/2C B 8C/1C" ) |
| 1321 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) ) | |
| 1335 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:3") | |
| 1322 | 1336 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 1323 | 1337 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) |
| 1324 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) ) | |
| 1325 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 1326 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1327 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) | |
| 1328 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 1329 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1338 | PORT_DIPUNKNOWN_DIPLOC( 0x10, 0x10, "SW1:2" ) | |
| 1339 | PORT_DIPUNKNOWN_DIPLOC( 0x20, 0x20, "SW1:1" ) | |
| 1330 | 1340 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1331 | 1341 | |
| 1332 | 1342 | PORT_START_TAG("IN5") /* player 1 12-way rotary control - converted in controls_r() */ |
| r1711 | r1712 | |
| 1415 | 1425 | PORT_SERVICE_NO_TOGGLE(0x02, IP_ACTIVE_LOW) |
| 1416 | 1426 | |
| 1417 | 1427 | /* 2 physical sets of _6_ dip switches */ |
| 1418 | PORT_DIPNAME( 0x04, 0x00, "Event Select" ) | |
| 1428 | PORT_DIPNAME( 0x04, 0x00, "Event Select" ) PORT_DIPLOCATION("SW1:1") | |
| 1419 | 1429 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 1420 | 1430 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1421 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) ) | |
| 1422 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 1423 | PORT_DIPSETTING( 0x08, DEF_STR( Cocktail ) ) | |
| 1424 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START3 ) | |
| 1425 | PORT_DIPNAME( 0x20, 0x20, "Speed For 100M Dash" ) | |
| 1426 | PORT_DIPSETTING( 0x00, "10 Beats" ) /* 10 Beats for Max Speed */ | |
| 1427 | PORT_DIPSETTING( 0x20, "14 Beats" ) /* 14 Beats for Max Speed */ | |
| 1428 | PORT_DIPNAME( 0x40, 0x40, "Watch Computer Play" ) | |
| 1429 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) | |
| 1430 | PORT_DIPSETTING( 0x40, DEF_STR( Yes ) ) | |
| 1431 | PORT_DIPNAME( 0x80, 0x80, "Maximum Players" ) | |
| 1432 | PORT_DIPSETTING( 0x00, "2" ) | |
| 1433 | PORT_DIPSETTING( 0x80, "4" ) | |
| 1431 | PORT_DIPNAME( 0x88, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW1:2,6") | |
| 1432 | PORT_DIPSETTING( 0x00, "Upright 2 Players" ) | |
| 1433 | PORT_DIPSETTING( 0x80, "Upright 4 Players" ) | |
| 1434 | PORT_DIPSETTING( 0x88, DEF_STR( Cocktail ) ) | |
| 1435 | //PORT_DIPSETTING( 0x08, DEF_STR( Cocktail ) ) /* Not documented. */ | |
| 1436 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START3 ) PORT_DIPLOCATION("SW1:3") /* Listed as "Always OFF". */ | |
| 1437 | PORT_DIPNAME( 0x20, 0x20, "Speed For 100M Dash" ) PORT_DIPLOCATION("SW1:4") | |
| 1438 | PORT_DIPSETTING( 0x00, "10 Beats For Max Speed" ) | |
| 1439 | PORT_DIPSETTING( 0x20, "14 Beats For Max Speed" ) | |
| 1440 | PORT_DIPNAME( 0x40, 0x40, "Computer Demonstration" )PORT_DIPLOCATION("SW1:5") | |
| 1441 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1442 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 1434 | 1443 | |
| 1435 | 1444 | PORT_START_TAG("IN4") /* A 6 way dip switch */ |
| 1436 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Difficulty ) ) | |
| 1445 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:5,6") | |
| 1437 | 1446 | PORT_DIPSETTING( 0x03, DEF_STR( Easy ) ) |
| 1438 | 1447 | PORT_DIPSETTING( 0x02, DEF_STR( Normal ) ) |
| 1439 | 1448 | PORT_DIPSETTING( 0x01, DEF_STR( Hard ) ) |
| 1440 | 1449 | PORT_DIPSETTING( 0x00, DEF_STR( Very_Hard ) ) |
| 1441 | 1450 | ALPHA68K_COINAGE_BITS_2TO4 |
| 1442 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 1451 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:1") | |
| 1443 | 1452 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 1444 | 1453 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1445 | 1454 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r1711 | r1712 | |
| 1465 | 1474 | PORT_SERVICE_NO_TOGGLE(0x02, IP_ACTIVE_LOW) |
| 1466 | 1475 | |
| 1467 | 1476 | /* 2 physical sets of _6_ dip switches */ |
| 1468 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) | |
| 1477 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:1,2") | |
| 1469 | 1478 | PORT_DIPSETTING( 0x08, "2" ) |
| 1470 | 1479 | PORT_DIPSETTING( 0x0c, "3" ) |
| 1471 | 1480 | PORT_DIPSETTING( 0x04, "4" ) |
| 1472 | 1481 | PORT_DIPSETTING( 0x00, "5" ) |
| 1473 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unused ) ) // See notes | |
| 1474 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 1475 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1476 | PORT_DIPNAME( 0x60, 0x60, DEF_STR( Difficulty ) ) // See notes | |
| 1482 | PORT_DIPUNUSED_DIPLOC( 0x10, 0x10, "SW1:3" ) /* Listed as "Unused" */ | |
| 1483 | PORT_DIPNAME( 0x60, 0x60, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:4,5") // See notes | |
| 1477 | 1484 | PORT_DIPSETTING( 0x40, DEF_STR( Easy ) ) |
| 1478 | 1485 | PORT_DIPSETTING( 0x60, DEF_STR( Normal ) ) |
| 1479 | 1486 | PORT_DIPSETTING( 0x20, DEF_STR( Hard ) ) |
| 1480 | 1487 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 1481 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Demo_Sounds ) ) | |
| 1488 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:6") | |
| 1482 | 1489 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 1483 | 1490 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 1484 | 1491 | |
| 1485 | 1492 | PORT_START_TAG("IN4") /* A 6 way dip switch */ |
| 1486 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) | |
| 1487 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 1488 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1493 | PORT_DIPUNUSED_DIPLOC( 0x01, 0x01, "SW1:6" ) /* Listed as "Unused" */ | |
| 1489 | 1494 | ALPHA68K_COINAGE_BITS_1TO3 |
| 1490 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Flip_Screen ) ) | |
| 1495 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:2") | |
| 1491 | 1496 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| 1492 | 1497 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1493 | PORT_DIPNAME( 0x20, 0x20, "Freeze" ) | |
| 1498 | PORT_DIPNAME( 0x20, 0x20, "Freeze" ) PORT_DIPLOCATION("SW1:1") | |
| 1494 | 1499 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 1495 | 1500 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1496 | 1501 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r1711 | r1712 | |
| 1511 | 1516 | PORT_SERVICE_NO_TOGGLE(0x02, IP_ACTIVE_LOW) |
| 1512 | 1517 | |
| 1513 | 1518 | /* 2 physical sets of _6_ dip switches */ |
| 1514 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) | |
| 1519 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:1,2") | |
| 1515 | 1520 | PORT_DIPSETTING( 0x08, "2" ) |
| 1516 | 1521 | PORT_DIPSETTING( 0x0c, "3" ) |
| 1517 | 1522 | PORT_DIPSETTING( 0x04, "4" ) |
| 1518 | 1523 | PORT_DIPSETTING( 0x00, "5" ) |
| 1519 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unused ) ) // See notes | |
| 1520 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 1521 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1522 | PORT_DIPNAME( 0x60, 0x60, DEF_STR( Difficulty ) ) // See notes | |
| 1524 | PORT_DIPUNUSED_DIPLOC( 0x10, 0x10, "SW1:3" ) /* Listed as "Unused" */ | |
| 1525 | PORT_DIPNAME( 0x60, 0x60, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:4,5") // See notes | |
| 1523 | 1526 | PORT_DIPSETTING( 0x40, DEF_STR( Easy ) ) |
| 1524 | 1527 | PORT_DIPSETTING( 0x60, DEF_STR( Normal ) ) |
| 1525 | 1528 | PORT_DIPSETTING( 0x20, DEF_STR( Hard ) ) |
| 1526 | 1529 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 1527 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Demo_Sounds ) ) | |
| 1530 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:6") | |
| 1528 | 1531 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 1529 | 1532 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 1530 | 1533 | |
| 1531 | 1534 | PORT_START_TAG("IN4") /* A 6 way dip switch */ |
| 1532 | PORT_DIPNAME( 0x01, 0x00, "Price to Continue" ) | |
| 1535 | PORT_DIPNAME( 0x01, 0x00, "Price to Continue" ) PORT_DIPLOCATION("SW1:6") | |
| 1533 | 1536 | PORT_DIPSETTING( 0x01, DEF_STR( 1C_1C ) ) |
| 1534 | 1537 | PORT_DIPSETTING( 0x00, "Same as Start" ) |
| 1535 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Allow_Continue ) ) | |
| 1538 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Allow_Continue ) )PORT_DIPLOCATION("SW1:5") | |
| 1536 | 1539 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 1537 | 1540 | PORT_DIPSETTING( 0x02, DEF_STR( Yes ) ) |
| 1538 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Coinage ) ) | |
| 1541 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:3,4") | |
| 1539 | 1542 | PORT_DIPSETTING( 0x04, DEF_STR( 2C_1C ) ) |
| 1540 | 1543 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_1C ) ) |
| 1541 | 1544 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_2C ) ) |
| 1542 | 1545 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) |
| 1543 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Flip_Screen ) ) | |
| 1546 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:2") | |
| 1544 | 1547 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| 1545 | 1548 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1546 | PORT_DIPNAME( 0x20, 0x20, "Freeze" ) | |
| 1549 | PORT_DIPNAME( 0x20, 0x20, "Freeze" ) PORT_DIPLOCATION("SW1:1") | |
| 1547 | 1550 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 1548 | 1551 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1549 | 1552 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r1711 | r1712 | |
| 1563 | 1566 | PORT_SERVICE_NO_TOGGLE(0x02, IP_ACTIVE_LOW) |
| 1564 | 1567 | |
| 1565 | 1568 | /* 2 physical sets of _6_ dip switches */ |
| 1566 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) | |
| 1569 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:1,2") | |
| 1567 | 1570 | PORT_DIPSETTING( 0x08, "2" ) |
| 1568 | 1571 | PORT_DIPSETTING( 0x0c, "3" ) |
| 1569 | 1572 | PORT_DIPSETTING( 0x04, "4" ) |
| 1570 | 1573 | PORT_DIPSETTING( 0x00, "5" ) |
| 1571 | PORT_DIPNAME( 0x10, 0x00, "Timer Speed" ) // Check code at 0x01923a | |
| 1572 | PORT_DIPSETTING( 0x00, DEF_STR( Normal ) ) // 1 second = 0x01ff | |
| 1573 | PORT_DIPSETTING( 0x10, "Fast" ) // 1 second = 0x013f | |
| 1574 | PORT_DIPNAME( 0x60, 0x60, DEF_STR( Difficulty ) ) | |
| 1574 | PORT_DIPNAME( 0x10, 0x00, "Timer Speed" ) PORT_DIPLOCATION("SW2:3") // Check code at 0x01923a | |
| 1575 | PORT_DIPSETTING( 0x00, "Slow" ) // 1 second = 0x01ff | |
| 1576 | PORT_DIPSETTING( 0x10, DEF_STR( Normal ) ) // 1 second = 0x013f | |
| 1577 | PORT_DIPNAME( 0x60, 0x60, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:4,5") | |
| 1575 | 1578 | PORT_DIPSETTING( 0x40, DEF_STR( Easy ) ) |
| 1576 | 1579 | PORT_DIPSETTING( 0x60, DEF_STR( Normal ) ) |
| 1577 | 1580 | PORT_DIPSETTING( 0x20, DEF_STR( Hard ) ) |
| 1578 | 1581 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 1579 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Demo_Sounds ) ) | |
| 1582 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:6") | |
| 1580 | 1583 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 1581 | 1584 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 1582 | 1585 | |
| 1583 | 1586 | PORT_START_TAG("IN4") /* A 6 way dip switch */ |
| 1584 | PORT_DIPNAME( 0x01, 0x00, "Price to Continue" ) | |
| 1587 | PORT_DIPNAME( 0x01, 0x00, "Price to Continue" ) PORT_DIPLOCATION("SW1:6") | |
| 1585 | 1588 | PORT_DIPSETTING( 0x01, DEF_STR( 1C_1C ) ) |
| 1586 | 1589 | PORT_DIPSETTING( 0x00, "Same as Start" ) |
| 1587 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Allow_Continue ) ) | |
| 1590 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Allow_Continue ) )PORT_DIPLOCATION("SW1:5") | |
| 1588 | 1591 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 1589 | 1592 | PORT_DIPSETTING( 0x02, DEF_STR( Yes ) ) |
| 1590 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Coinage ) ) | |
| 1593 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:3,4") | |
| 1591 | 1594 | PORT_DIPSETTING( 0x04, DEF_STR( 2C_1C ) ) |
| 1592 | 1595 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_1C ) ) |
| 1593 | 1596 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_2C ) ) |
| 1594 | 1597 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) |
| 1595 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Flip_Screen ) ) | |
| 1598 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:2") | |
| 1596 | 1599 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| 1597 | 1600 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1598 | PORT_DIPNAME( 0x20, 0x20, "Freeze" ) | |
| 1601 | PORT_DIPNAME( 0x20, 0x20, "Freeze" ) PORT_DIPLOCATION("SW1:1") | |
| 1599 | 1602 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 1600 | 1603 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1601 | 1604 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r1711 | r1712 | |
| 1616 | 1619 | PORT_SERVICE_NO_TOGGLE(0x02, IP_ACTIVE_LOW) |
| 1617 | 1620 | |
| 1618 | 1621 | /* 2 physical sets of _6_ dip switches */ |
| 1619 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unused ) ) | |
| 1620 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1621 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) | |
| 1622 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Lives ) ) | |
| 1622 | PORT_DIPUNUSED_DIPLOC( 0x04, 0x04, "SW2:1" ) /* Listed as "Unused" */ | |
| 1623 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:2") | |
| 1623 | 1624 | PORT_DIPSETTING( 0x08, "3" ) |
| 1624 | 1625 | PORT_DIPSETTING( 0x00, "4" ) |
| 1625 | PORT_DIPNAME( 0x10, 0x00, "Timer Speed" ) // Check code at 0x01923a | |
| 1626 | PORT_DIPSETTING( 0x00, DEF_STR( Normal ) ) // 1 second = 0x01ff | |
| 1627 | PORT_DIPSETTING( 0x10, "Fast" ) // 1 second = 0x013f | |
| 1628 | PORT_DIPNAME( 0x60, 0x60, DEF_STR( Difficulty ) ) | |
| 1626 | PORT_DIPNAME( 0x10, 0x10, "Timer Speed" ) PORT_DIPLOCATION("SW2:3") // Check code at 0x01923a | |
| 1627 | PORT_DIPSETTING( 0x00, "Slow" ) // 1 second = 0x01ff | |
| 1628 | PORT_DIPSETTING( 0x10, DEF_STR( Normal ) ) // 1 second = 0x013f | |
| 1629 | PORT_DIPNAME( 0x60, 0x60, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:4,5") | |
| 1629 | 1630 | PORT_DIPSETTING( 0x40, DEF_STR( Easy ) ) |
| 1630 | 1631 | PORT_DIPSETTING( 0x60, DEF_STR( Normal ) ) |
| 1631 | 1632 | PORT_DIPSETTING( 0x20, DEF_STR( Hard ) ) |
| 1632 | 1633 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 1633 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Demo_Sounds ) ) | |
| 1634 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:6") | |
| 1634 | 1635 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 1635 | 1636 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 1636 | 1637 | |
| 1637 | 1638 | PORT_START_TAG("IN4") /* A 6 way dip switch */ |
| 1638 | PORT_DIPNAME( 0x01, 0x00, "Coin Slots" ) | |
| 1639 | PORT_DIPSETTING( 0x00, "Common" ) | |
| 1640 | PORT_DIPSETTING( 0x01, "Individual" ) | |
| 1641 | PORT_DIPNAME( 0x0e, 0x0e, DEF_STR( Coinage ) ) | |
| 1639 | PORT_DIPNAME( 0x01, 0x00, "Coin Slots" ) PORT_DIPLOCATION("SW1:6") | |
| 1640 | PORT_DIPSETTING( 0x00, "1" ) | |
| 1641 | PORT_DIPSETTING( 0x01, "2" ) | |
| 1642 | PORT_DIPNAME( 0x0e, 0x0e, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:3,4,5") | |
| 1642 | 1643 | PORT_DIPSETTING( 0x00, DEF_STR( 5C_1C ) ) |
| 1643 | 1644 | PORT_DIPSETTING( 0x02, DEF_STR( 3C_1C ) ) |
| 1644 | 1645 | PORT_DIPSETTING( 0x04, DEF_STR( 2C_1C ) ) |
| r1711 | r1712 | |
| 1647 | 1648 | PORT_DIPSETTING( 0x0a, DEF_STR( 1C_3C ) ) |
| 1648 | 1649 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_4C ) ) |
| 1649 | 1650 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_5C ) ) |
| 1650 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Flip_Screen ) ) | |
| 1651 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:2") | |
| 1651 | 1652 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| 1652 | 1653 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1653 | PORT_DIPNAME( 0x20, 0x20, "Freeze" ) | |
| 1654 | PORT_DIPNAME( 0x20, 0x20, "Freeze" ) PORT_DIPLOCATION("SW1:1") | |
| 1654 | 1655 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 1655 | 1656 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1656 | 1657 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r1711 | r1712 | |
| 1742 | 1743 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1743 | 1744 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1744 | 1745 | |
| 1745 | PORT_START_TAG("IN3") | |
| 1746 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) | |
| 1746 | PORT_START_TAG("DSW1") | |
| 1747 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:1") | |
| 1747 | 1748 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1748 | 1749 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1749 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unused ) ) | |
| 1750 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 1751 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1752 | PORT_DIPNAME( 0x04, 0x04, "Bonus Life Occurence" ) | |
| 1753 | PORT_DIPSETTING( 0x04, "1st and 2nd only" ) | |
| 1754 | PORT_DIPSETTING( 0x00, "1st, 2nd, then every 2nd" ) | |
| 1755 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unused ) ) | |
| 1756 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 1757 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1758 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coinage ) ) | |
| 1750 | PORT_DIPUNUSED_DIPLOC( 0x02, 0x02, "SW1:2" ) /* Listed as "Unused" */ | |
| 1751 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:3") | |
| 1752 | PORT_DIPSETTING( 0x04, "2nd Extend" ) | |
| 1753 | PORT_DIPSETTING( 0x00, "Every Extend" ) | |
| 1754 | PORT_DIPUNUSED_DIPLOC( 0x08, 0x08, "SW1:4" ) /* Listed as "Unused" */ | |
| 1755 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:5,6") | |
| 1759 | 1756 | PORT_DIPSETTING( 0x30, "A 1C/1C B 1C/2C" ) |
| 1760 | 1757 | PORT_DIPSETTING( 0x20, "A 2C/1C B 1C/3C" ) |
| 1761 | 1758 | PORT_DIPSETTING( 0x10, "A 3C/1C B 1C/5C" ) |
| 1762 | 1759 | PORT_DIPSETTING( 0x00, "A 4C/1C B 1C/6C" ) |
| 1763 | PORT_DIPNAME( 0xc0, 0x80, DEF_STR( Lives ) ) | |
| 1760 | PORT_DIPNAME( 0xc0, 0x80, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:7,8") | |
| 1764 | 1761 | PORT_DIPSETTING( 0xc0, "2" ) |
| 1765 | 1762 | PORT_DIPSETTING( 0x80, "3" ) |
| 1766 | 1763 | PORT_DIPSETTING( 0x40, "4" ) |
| 1767 | 1764 | PORT_DIPSETTING( 0x00, "5" ) |
| 1768 | 1765 | |
| 1769 | PORT_START_TAG("IN4") | |
| 1770 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) | |
| 1766 | PORT_START_TAG("DSW2") | |
| 1767 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:1,2") | |
| 1771 | 1768 | PORT_DIPSETTING( 0x02, DEF_STR( Easy ) ) |
| 1772 | 1769 | PORT_DIPSETTING( 0x03, DEF_STR( Normal ) ) |
| 1773 | 1770 | PORT_DIPSETTING( 0x01, DEF_STR( Hard ) ) |
| 1774 | 1771 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 1775 | PORT_DIPNAME( 0x0c, 0x0c, "Game Mode" ) | |
| 1776 | PORT_DIPSETTING( 0x08, "Demo Sounds Off" ) | |
| 1777 | PORT_DIPSETTING( 0x0c, "Demo Sounds On" ) | |
| 1778 | PORT_DIPSETTING( 0x04, "Infinite Lives (Cheat)") | |
| 1772 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:3") PORT_CONDITION("DSW2",0x08,PORTCOND_EQUALS,0x08) | |
| 1773 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1774 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) | |
| 1775 | PORT_DIPNAME( 0x04, 0x04, "Game Mode" ) PORT_DIPLOCATION("SW2:3") PORT_CONDITION("DSW2",0x08,PORTCOND_EQUALS,0x00) | |
| 1779 | 1776 | PORT_DIPSETTING( 0x00, "Freeze" ) |
| 1780 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life ) ) | |
| 1777 | PORT_DIPSETTING( 0x04, "Infinite Lives (Cheat)") | |
| 1778 | PORT_DIPNAME( 0x08, 0x08, "SW2:3 Demo Sound/Game Mode" )PORT_DIPLOCATION("SW2:4") | |
| 1779 | PORT_DIPSETTING( 0x08, DEF_STR( Demo_Sounds ) ) | |
| 1780 | PORT_DIPSETTING( 0x00, "Game Mode" ) | |
| 1781 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW2:5,6") | |
| 1781 | 1782 | PORT_DIPSETTING( 0x30, "100000 200000" ) |
| 1782 | 1783 | PORT_DIPSETTING( 0x20, "150000 300000" ) |
| 1783 | 1784 | PORT_DIPSETTING( 0x10, "300000 500000" ) |
| 1784 | 1785 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) |
| 1785 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Allow_Continue ) ) | |
| 1786 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW2:7") | |
| 1786 | 1787 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 1787 | 1788 | PORT_DIPSETTING( 0x40, DEF_STR( Yes ) ) |
| 1788 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) | |
| 1789 | PORT_SERVICE_DIPLOC( 0x80, IP_ACTIVE_LOW, "SW2:8" ) | |
| 1789 | 1790 | INPUT_PORTS_END |
| 1790 | 1791 | |
| 1791 | 1792 | /******************************************************************************/ |
| r1711 | r1712 | |
| 2066 | 2067 | MDRV_CPU_VBLANK_INT(irq0_line_hold, 2) |
| 2067 | 2068 | MDRV_CPU_PERIODIC_INT(nmi_line_pulse, 4000) |
| 2068 | 2069 | //ZT |
| 2069 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2070 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 2071 | 2070 | |
| 2072 | 2071 | MDRV_MACHINE_RESET(common) |
| 2073 | 2072 | |
| 2074 | 2073 | /* video hardware */ |
| 2075 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2074 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2075 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2076 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2076 | 2077 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2077 | 2078 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 2078 | 2079 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| r1711 | r1712 | |
| 2116 | 2117 | MDRV_CPU_VBLANK_INT(irq0_line_hold, 2) |
| 2117 | 2118 | MDRV_CPU_PERIODIC_INT(nmi_line_pulse, 4000) |
| 2118 | 2119 | //ZT |
| 2119 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2120 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 2121 | 2120 | |
| 2122 | 2121 | MDRV_MACHINE_RESET(common) |
| 2123 | 2122 | |
| 2124 | 2123 | /* video hardware */ |
| 2125 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2124 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2125 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2126 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2126 | 2127 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2127 | 2128 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 2128 | 2129 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| r1711 | r1712 | |
| 2163 | 2164 | MDRV_CPU_IO_MAP(jongbou_sound_io_map,0) |
| 2164 | 2165 | MDRV_CPU_VBLANK_INT(irq0_line_hold, 160) // guess, controls sound speed |
| 2165 | 2166 | |
| 2166 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2167 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 2168 | ||
| 2169 | 2167 | MDRV_MACHINE_RESET(common) |
| 2170 | 2168 | |
| 2171 | 2169 | /* video hardware */ |
| 2172 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2170 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2171 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2172 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2173 | 2173 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2174 | 2174 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 2175 | 2175 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| r1711 | r1712 | |
| 2198 | 2198 | /* audio CPU */ |
| 2199 | 2199 | MDRV_CPU_PROGRAM_MAP(alpha68k_I_s_readmem, alpha68k_I_s_writemem) |
| 2200 | 2200 | |
| 2201 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2202 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 2203 | ||
| 2204 | 2201 | /* video hardware */ |
| 2205 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2202 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2203 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2204 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2206 | 2205 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2207 | 2206 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 2208 | 2207 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| r1711 | r1712 | |
| 2234 | 2233 | MDRV_CPU_IO_MAP(sound_readport,sound_writeport) |
| 2235 | 2234 | MDRV_CPU_PERIODIC_INT(nmi_line_pulse, 7500) //AT |
| 2236 | 2235 | |
| 2237 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2238 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 2239 | ||
| 2240 | 2236 | MDRV_MACHINE_RESET(common) |
| 2241 | 2237 | |
| 2242 | 2238 | /* video hardware */ |
| 2243 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2239 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2240 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2241 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2244 | 2242 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2245 | 2243 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 2246 | 2244 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| r1711 | r1712 | |
| 2284 | 2282 | MDRV_CPU_IO_MAP(sound_readport, sound_writeport) |
| 2285 | 2283 | MDRV_CPU_PERIODIC_INT(nmi_line_pulse, 7500) |
| 2286 | 2284 | |
| 2287 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2288 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 2289 | ||
| 2290 | 2285 | MDRV_MACHINE_RESET(common) |
| 2291 | 2286 | |
| 2292 | 2287 | /* video hardware */ |
| 2293 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2288 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2289 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2290 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2294 | 2291 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2295 | 2292 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 2296 | 2293 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| r1711 | r1712 | |
| 2328 | 2325 | MDRV_CPU_IO_MAP(sound_readport,sound_writeport) |
| 2329 | 2326 | MDRV_CPU_PERIODIC_INT(nmi_line_pulse, 8500) //AT |
| 2330 | 2327 | |
| 2331 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2332 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 2333 | ||
| 2334 | 2328 | MDRV_MACHINE_RESET(common) |
| 2335 | 2329 | |
| 2336 | 2330 | /* video hardware */ |
| 2337 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2331 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2332 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2333 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2338 | 2334 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2339 | 2335 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 2340 | 2336 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| r1711 | r1712 | |
| 2371 | 2367 | MDRV_CPU_IO_MAP(sound_readport,sound_writeport) |
| 2372 | 2368 | MDRV_CPU_PERIODIC_INT(nmi_line_pulse, 8500) //AT |
| 2373 | 2369 | |
| 2374 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2375 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 2376 | ||
| 2377 | 2370 | MDRV_MACHINE_RESET(common) |
| 2378 | 2371 | |
| 2379 | 2372 | /* video hardware */ |
| 2380 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2373 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2374 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2375 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2381 | 2376 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2382 | 2377 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 2383 | 2378 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| r1711 | r1712 | |
| 2413 | 2408 | MDRV_CPU_PROGRAM_MAP(tnexspce_sound_readmem, tnexspce_sound_writemem) |
| 2414 | 2409 | MDRV_CPU_IO_MAP(tnexspce_sound_readport,tnexspce_sound_writeport) |
| 2415 | 2410 | |
| 2416 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2417 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 2418 | ||
| 2419 | 2411 | MDRV_MACHINE_RESET(tnexspce) |
| 2420 | 2412 | |
| 2421 | 2413 | /* video hardware */ |
| 2422 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2414 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2415 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2416 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2423 | 2417 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2424 | 2418 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 2425 | 2419 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 366 | 366 | /* Program and Data Maps are internal to the MCU */ |
| 367 | 367 | MDRV_CPU_IO_MAP(drgnmst_sound_io_map, 0) |
| 368 | 368 | |
| 369 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 370 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 371 | ||
| 372 | 369 | MDRV_GFXDECODE(drgnmst) |
| 373 | 370 | |
| 374 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 371 | ||
| 372 | MDRV_SCREEN_ADD("main", RASTER) | |
| 373 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 374 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 375 | 375 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 376 | 376 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 377 | 377 | MDRV_SCREEN_VISIBLE_AREA(8*8, 56*8-1, 2*8, 30*8-1) |
| 378 | ||
| 378 | 379 | MDRV_PALETTE_LENGTH(0x2000) |
| 379 | 380 | |
| 380 | 381 | MDRV_VIDEO_START(drgnmst) |
| r1711 | r1712 | |
|---|---|---|
| 33 | 33 | { |
| 34 | 34 | int i; |
| 35 | 35 | |
| 36 | for (i = 0; i < machine-> | |
| 36 | for (i = 0; i < machine->config->total_colors; i++) | |
| 37 | 37 | { |
| 38 | 38 | int bit0, bit1, bit2, r, g, b; |
| 39 | 39 | |
| r1711 | r1712 | |
| 358 | 358 | MDRV_CPU_PROGRAM_MAP(lucky8_map, 0) |
| 359 | 359 | MDRV_CPU_VBLANK_INT(irq0_line_hold, 1) |
| 360 | 360 | |
| 361 | // video hardware | |
| 362 | ||
| 363 | MDRV_SCREEN_ADD("main", RASTER) | |
| 361 | 364 | MDRV_SCREEN_REFRESH_RATE(60) |
| 362 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 363 | ||
| 364 | // video hardware | |
| 365 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 365 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 366 | 366 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 367 | 367 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 368 | 368 | MDRV_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 2*8, 30*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 301 | 301 | MDRV_CPU_ADD(M6502, 12096000 / 16) |
| 302 | 302 | MDRV_CPU_PROGRAM_MAP(boxer_map, 0) |
| 303 | 303 | |
| 304 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 305 | ||
| 306 | 304 | /* video hardware */ |
| 307 | 305 | MDRV_MACHINE_RESET(boxer) |
| 308 | 306 | |
| 309 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 307 | ||
| 308 | MDRV_SCREEN_ADD("main", RASTER) | |
| 309 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 310 | 310 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 311 | 311 | MDRV_SCREEN_SIZE(256, 262) |
| 312 | 312 | MDRV_SCREEN_VISIBLE_AREA(8, 247, 0, 239) |
| 313 | ||
| 313 | 314 | MDRV_GFXDECODE(boxer) |
| 314 | 315 | MDRV_PALETTE_LENGTH(4) |
| 315 | 316 | MDRV_PALETTE_INIT(boxer) |
| r1711 | r1712 | |
|---|---|---|
| 268 | 268 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,1) |
| 269 | 269 | |
| 270 | 270 | /* video hardware */ |
| 271 | MDRV_ | |
| 271 | MDRV_SC | |
| 272 | 272 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 273 | 273 | MDRV_SCREEN_RAW_PARAMS(STARFIRE_PIXEL_CLOCK, STARFIRE_HTOTAL, STARFIRE_HBEND, STARFIRE_HBSTART, STARFIRE_VTOTAL, STARFIRE_VBEND, STARFIRE_VBSTART) |
| 274 | 274 |
| r1711 | r1712 | |
|---|---|---|
| 176 | 176 | static UINT16 tmaster_addr; |
| 177 | 177 | static int (*compute_addr) (UINT16 reg_low, UINT16 reg_mid, UINT16 reg_high); |
| 178 | 178 | |
| 179 | int tmaster_compute_addr(UINT16 reg_low, UINT16 reg_mid, UINT16 reg_high) | |
| 179 | static int tmaster_compute_addr(UINT16 reg_low, UINT16 reg_mid, UINT16 reg_high) | |
| 180 | 180 | { |
| 181 | 181 | return (reg_low & 0xff) | ((reg_mid & 0x1ff) << 8) | (reg_high << 17); |
| 182 | 182 | } |
| 183 | 183 | |
| 184 | int galgames_compute_addr(UINT16 reg_low, UINT16 reg_mid, UINT16 reg_high) | |
| 184 | static int galgames_compute_addr(UINT16 reg_low, UINT16 reg_mid, UINT16 reg_high) | |
| 185 | 185 | { |
| 186 | 186 | return reg_low | (reg_mid << 16); |
| 187 | 187 | } |
| r1711 | r1712 | |
| 683 | 683 | MDRV_CPU_PROGRAM_MAP(tmaster_map,0) |
| 684 | 684 | MDRV_CPU_VBLANK_INT(tm3k_interrupt,2+5+20) // ?? |
| 685 | 685 | |
| 686 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 687 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 688 | ||
| 689 | 686 | MDRV_MACHINE_RESET(tmaster) |
| 690 | 687 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 691 | 688 | |
| 692 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 689 | ||
| 690 | MDRV_SCREEN_ADD("main", RASTER) | |
| 691 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 692 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 693 | 693 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 694 | 694 | MDRV_SCREEN_SIZE(400, 256) |
| 695 | 695 | MDRV_SCREEN_VISIBLE_AREA(0, 400-1, 0, 256-1) |
| 696 | ||
| 696 | 697 | MDRV_PALETTE_LENGTH(0x800) |
| 697 | 698 | |
| 698 | 699 | MDRV_VIDEO_START(tmaster) |
| r1711 | r1712 | |
| 756 | 757 | MDRV_MACHINE_RESET( galgames ) |
| 757 | 758 | |
| 758 | 759 | /* video hardware */ |
| 759 | MDRV_ | |
| 760 | MDRV_SC | |
| 760 | 761 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 761 | ||
| 762 | 762 | MDRV_SCREEN_REFRESH_RATE(60) |
| 763 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 764 | ||
| 763 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 765 | 764 | MDRV_SCREEN_SIZE(400, 256) |
| 766 | 765 | MDRV_SCREEN_VISIBLE_AREA(0, 400-1, 0, 256-1) |
| 766 | ||
| 767 | 767 | MDRV_PALETTE_LENGTH(0x800) // only 0x100 used |
| 768 | 768 | |
| 769 | 769 | MDRV_VIDEO_START(galgames) |
| r1711 | r1712 | |
|---|---|---|
| 109 | 109 | MDRV_CPU_ADD(Z80,12000000/4) |
| 110 | 110 | MDRV_CPU_PROGRAM_MAP(tcl_map,0) |
| 111 | 111 | |
| 112 | /* video hardware */ | |
| 113 | MDRV_SCREEN_ADD("main", RASTER) | |
| 112 | 114 | MDRV_SCREEN_REFRESH_RATE(60) |
| 113 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 114 | ||
| 115 | /* video hardware */ | |
| 116 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 115 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 117 | 116 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 118 | 117 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 119 | 118 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 119 | ||
| 120 | 120 | MDRV_GFXDECODE(tcl) |
| 121 | 121 | MDRV_PALETTE_LENGTH(16*16) |
| 122 | 122 |
| r1711 | r1712 | |
|---|---|---|
| 664 | 664 | MDRV_CPU_PERIODIC_INT(irq0_line_hold, 50*3) //?? |
| 665 | 665 | MDRV_CPU_VBLANK_INT(freekick_irqgen,1) |
| 666 | 666 | |
| 667 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 668 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 669 | ||
| 670 | 667 | MDRV_GFXDECODE(freekick) |
| 671 | 668 | |
| 672 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 669 | ||
| 670 | MDRV_SCREEN_ADD("main", RASTER) | |
| 671 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 672 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 673 | 673 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 674 | 674 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 675 | 675 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 676 | ||
| 676 | 677 | MDRV_PALETTE_LENGTH(0x200) |
| 677 | 678 | MDRV_PALETTE_INIT(RRRR_GGGG_BBBB) |
| 678 | 679 |
| r1711 | r1712 | |
|---|---|---|
| 1767 | 1767 | MDRV_CPU_PROGRAM_MAP(bigrun_sound_readmem,bigrun_sound_writemem) |
| 1768 | 1768 | MDRV_CPU_VBLANK_INT(irq4_line_hold,CISCHEAT_SOUND_INTERRUPT_NUM) |
| 1769 | 1769 | |
| 1770 | MDRV_SCREEN_REFRESH_RATE(30) | |
| 1771 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_30HZ_VBLANK_DURATION) | |
| 1772 | 1770 | MDRV_INTERLEAVE(20) |
| 1773 | 1771 | |
| 1774 | 1772 | /* video hardware */ |
| 1775 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_AFTER_VBLANK | VIDEO_HAS_SHADOWS) | |
| 1773 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_AFTER_VBLANK | VIDEO_HAS_SHADOWS) | |
| 1774 | ||
| 1775 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1776 | MDRV_SCREEN_REFRESH_RATE(30) | |
| 1777 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 1776 | 1778 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1777 | 1779 | MDRV_SCREEN_SIZE(256, 256) |
| 1778 | 1780 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0+16, 256-16-1) |
| 1781 | ||
| 1779 | 1782 | MDRV_GFXDECODE(bigrun) |
| 1780 | 1783 | MDRV_PALETTE_LENGTH(16*16 * 3 + 64*16 * 2 + 64*16) /* scroll 0,1,2; road 0,1; sprites */ |
| 1781 | 1784 | |
| r1711 | r1712 | |
| 1816 | 1819 | MDRV_CPU_PROGRAM_MAP(cischeat_sound_readmem,cischeat_sound_writemem) |
| 1817 | 1820 | |
| 1818 | 1821 | /* video hardware */ |
| 1822 | MDRV_SCREEN_MODIFY("main") | |
| 1819 | 1823 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0+16, 256-16-8-1) |
| 1824 | ||
| 1820 | 1825 | MDRV_GFXDECODE(cischeat) |
| 1821 | 1826 | MDRV_PALETTE_LENGTH(32*16 * 3 + 64*16 * 2 + 128*16) /* scroll 0,1,2; road 0,1; sprites */ |
| 1822 | 1827 | |
| r1711 | r1712 | |
| 1895 | 1900 | MDRV_CPU_PROGRAM_MAP(readmem_scudhamm,writemem_scudhamm) |
| 1896 | 1901 | MDRV_CPU_VBLANK_INT(interrupt_scudhamm,INTERRUPT_NUM_SCUDHAMM) |
| 1897 | 1902 | |
| 1903 | /* video hardware */ | |
| 1904 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_AFTER_VBLANK | VIDEO_HAS_SHADOWS) | |
| 1905 | ||
| 1906 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1898 | 1907 | MDRV_SCREEN_REFRESH_RATE(30) |
| 1899 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_30HZ_VBLANK_DURATION * 3) | |
| 1900 | ||
| 1901 | /* video hardware */ | |
| 1902 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_AFTER_VBLANK | VIDEO_HAS_SHADOWS) | |
| 1908 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500 * 3) /* not accurate */) | |
| 1903 | 1909 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1904 | 1910 | MDRV_SCREEN_SIZE(256, 256) |
| 1905 | 1911 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0 +16, 256-1 -16) |
| 1912 | ||
| 1906 | 1913 | MDRV_GFXDECODE(scudhamm) |
| 1907 | 1914 | MDRV_PALETTE_LENGTH(16*16+16*16+128*16) |
| 1908 | 1915 |
| r1711 | r1712 | |
|---|---|---|
| 1825 | 1825 | MDRV_CPU_IO_MAP( mcu_io, 0 ) |
| 1826 | 1826 | MDRV_CPU_VBLANK_INT(mcu_interrupt, 3) |
| 1827 | 1827 | |
| 1828 | MDRV_NVRAM_HANDLER(namcos22) | |
| 1829 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1828 | 1830 | MDRV_SCREEN_REFRESH_RATE(60) |
| 1829 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 1830 | MDRV_NVRAM_HANDLER(namcos22) | |
| 1831 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 1831 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 1832 | 1832 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 1833 | 1833 | MDRV_SCREEN_SIZE(NAMCOS22_NUM_COLS*16,NAMCOS22_NUM_ROWS*16) |
| 1834 | 1834 | MDRV_SCREEN_VISIBLE_AREA(0,NAMCOS22_NUM_COLS*16-1,0,NAMCOS22_NUM_ROWS*16-1) |
| 1835 | ||
| 1835 | 1836 | MDRV_PALETTE_LENGTH(NAMCOS22_PALETTE_SIZE) |
| 1836 | 1837 | MDRV_GFXDECODE(super) |
| 1837 | 1838 | MDRV_VIDEO_START(namcos22s) |
| r1711 | r1712 | |
| 2238 | 2239 | MDRV_CPU_PROGRAM_MAP( mcu_s22_program, 0 ) |
| 2239 | 2240 | MDRV_CPU_IO_MAP( mcu_s22_io, 0 ) |
| 2240 | 2241 | |
| 2242 | MDRV_NVRAM_HANDLER(namcos22) | |
| 2243 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2241 | 2244 | MDRV_SCREEN_REFRESH_RATE(60) |
| 2242 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 2243 | MDRV_NVRAM_HANDLER(namcos22) | |
| 2244 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 2245 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 2245 | 2246 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 2246 | 2247 | MDRV_SCREEN_SIZE(NAMCOS22_NUM_COLS*16,NAMCOS22_NUM_ROWS*16) |
| 2247 | 2248 | MDRV_SCREEN_VISIBLE_AREA(0,NAMCOS22_NUM_COLS*16-1,0,NAMCOS22_NUM_ROWS*16-1) |
| 2249 | ||
| 2248 | 2250 | MDRV_PALETTE_LENGTH(NAMCOS22_PALETTE_SIZE) |
| 2249 | 2251 | MDRV_GFXDECODE(namcos22) |
| 2250 | 2252 | MDRV_VIDEO_START(namcos22) |
| r1711 | r1712 | |
|---|---|---|
| 263 | 263 | MDRV_CPU_PROGRAM_MAP(flyball_map, 0) |
| 264 | 264 | MDRV_CPU_VBLANK_INT(nmi_line_pulse, 1) |
| 265 | 265 | |
| 266 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 267 | ||
| 268 | 266 | MDRV_MACHINE_RESET(flyball) |
| 269 | 267 | |
| 270 | 268 | /* video hardware */ |
| 271 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 269 | MDRV_SCREEN_ADD("main", RASTER) | |
| 270 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 272 | 271 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 273 | 272 | MDRV_SCREEN_SIZE(256, 262) |
| 274 | 273 | MDRV_SCREEN_VISIBLE_AREA(0, 255, 0, 239) |
| 274 | ||
| 275 | 275 | MDRV_GFXDECODE(flyball) |
| 276 | 276 | MDRV_PALETTE_LENGTH(4) |
| 277 | 277 |
| r1711 | r1712 | |
|---|---|---|
| 353 | 353 | MDRV_CPU_PROGRAM_MAP(zero_readmem,zero_writemem) |
| 354 | 354 | MDRV_CPU_VBLANK_INT(redclash_interrupt,1) |
| 355 | 355 | |
| 356 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 357 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 358 | ||
| 359 | 356 | /* video hardware */ |
| 360 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 357 | MDRV_SCREEN_ADD("main", RASTER) | |
| 358 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 359 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 361 | 360 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 362 | 361 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 363 | 362 | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 4*8, 28*8-1) |
| 363 | ||
| 364 | 364 | MDRV_GFXDECODE(redclash) |
| 365 | MDRV_PALETTE_LENGTH(64) | |
| 366 | MDRV_COLORTABLE_LENGTH(4*24) | |
| 365 | MDRV_PALETTE_LENGTH(4*8+4*16+32) | |
| 367 | 366 | |
| 368 | 367 | MDRV_PALETTE_INIT(redclash) |
| 369 | 368 | MDRV_VIDEO_START(redclash) |
| r1711 | r1712 | |
| 381 | 380 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 382 | 381 | MDRV_CPU_VBLANK_INT(redclash_interrupt,1) |
| 383 | 382 | |
| 384 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 385 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 386 | ||
| 387 | 383 | /* video hardware */ |
| 388 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 384 | MDRV_SCREEN_ADD("main", RASTER) | |
| 385 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 386 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 389 | 387 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 390 | 388 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 391 | 389 | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 4*8, 28*8-1) |
| 390 | ||
| 392 | 391 | MDRV_GFXDECODE(redclash) |
| 393 | MDRV_PALETTE_LENGTH(64) | |
| 394 | MDRV_COLORTABLE_LENGTH(4*24) | |
| 392 | MDRV_PALETTE_LENGTH(4*8+4*16+32) | |
| 395 | 393 | |
| 396 | 394 | MDRV_PALETTE_INIT(redclash) |
| 397 | 395 | MDRV_VIDEO_START(redclash) |
| r1711 | r1712 | |
|---|---|---|
| 259 | 259 | MDRV_CPU_ADD_TAG("main", Z80, VICDUAL_MAIN_CPU_CLOCK) |
| 260 | 260 | |
| 261 | 261 | /* video hardware */ |
| 262 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 263 | ||
| 264 | MDRV_SCREEN_ADD("main", 0) | |
| 262 | MDRV_SCREEN_ADD("main", RASTER) | |
| 265 | 263 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 266 | 264 | MDRV_SCREEN_RAW_PARAMS(VICDUAL_PIXEL_CLOCK, VICDUAL_HTOTAL, VICDUAL_HBEND, VICDUAL_HBSTART, VICDUAL_VTOTAL, VICDUAL_VBEND, VICDUAL_VBSTART) |
| 267 | 265 |
| r1711 | r1712 | |
|---|---|---|
| 196 | 196 | MDRV_NVRAM_HANDLER(atarigen) |
| 197 | 197 | |
| 198 | 198 | /* video hardware */ |
| 199 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 199 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 200 | 200 | MDRV_GFXDECODE(xybots) |
| 201 | 201 | MDRV_PALETTE_LENGTH(1024) |
| 202 | 202 | |
| 203 | MDRV_SCREEN_ADD("main", | |
| 203 | MDRV_SCREEN_ADD("main", RASTER) | |
| 204 | 204 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 205 | 205 | /* note: these parameters are from published specs, not derived */ |
| 206 | 206 | /* the board uses a SYNGEN chip to generate video signals */ |
| r1711 | r1712 | |
|---|---|---|
| 278 | 278 | MDRV_CPU_PROGRAM_MAP(speglsht_mem,0) |
| 279 | 279 | MDRV_CPU_VBLANK_INT(irq4_gen,1) |
| 280 | 280 | |
| 281 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 282 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 283 | 281 | MDRV_INTERLEAVE(100) |
| 284 | 282 | MDRV_MACHINE_RESET(speglsht) |
| 285 | 283 | |
| 286 | 284 | /* video hardware */ |
| 287 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 285 | MDRV_SCREEN_ADD("main", RASTER) | |
| 286 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 287 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 288 | 288 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 289 | 289 | MDRV_SCREEN_SIZE(512, 512) |
| 290 | 290 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 8, 239-8) |
| 291 | ||
| 291 | 292 | MDRV_GFXDECODE(speglsht) |
| 292 | 293 | MDRV_PALETTE_LENGTH(16*16*4+1) |
| 293 | 294 |
| r1711 | r1712 | |
|---|---|---|
| 265 | 265 | #include "driver.h" |
| 266 | 266 | #include "deprecat.h" |
| 267 | 267 | #include "cpu/m6502/m6502.h" |
| 268 | #include "video/mc6845.h" | |
| 268 | 269 | #include "sound/sn76477.h" |
| 269 | 270 | #include "sound/custom.h" |
| 270 | 271 | #include "sound/samples.h" |
| r1711 | r1712 | |
| 1082 | 1083 | MDRV_CPU_PROGRAM_MAP(sasuke_map, 0) |
| 1083 | 1084 | MDRV_CPU_VBLANK_INT(satansat_interrupt, 2) |
| 1084 | 1085 | |
| 1085 | MDRV_SCREEN_REFRESH_RATE((11289000.0 / 16) / (45 * 32 * 8)) | |
| 1086 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1087 | ||
| 1088 | 1086 | MDRV_MACHINE_RESET(sasuke) |
| 1089 | 1087 | |
| 1090 | 1088 | // video hardware |
| 1091 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1089 | ||
| 1090 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1091 | MDRV_SCREEN_REFRESH_RATE((11289000.0 / 16) / (45 * 32 * 8)) | |
| 1092 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1092 | 1093 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1093 | 1094 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 1094 | 1095 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 28*8-1) |
| 1096 | ||
| 1095 | 1097 | MDRV_GFXDECODE(sasuke) |
| 1096 | 1098 | MDRV_PALETTE_LENGTH(32) |
| 1097 | 1099 | |
| r1711 | r1712 | |
| 1099 | 1101 | MDRV_VIDEO_START(satansat) |
| 1100 | 1102 | MDRV_VIDEO_UPDATE(rockola) |
| 1101 | 1103 | |
| 1104 | MDRV_DEVICE_ADD("crtc", MC6845) | |
| 1105 | ||
| 1102 | 1106 | // sound hardware |
| 1103 | 1107 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 1104 | 1108 | |
| r1711 | r1712 | |
| 1154 | 1158 | MDRV_CPU_PROGRAM_MAP(vanguard_map, 0) |
| 1155 | 1159 | MDRV_CPU_VBLANK_INT(rockola_interrupt, 2) |
| 1156 | 1160 | |
| 1157 | MDRV_SCREEN_REFRESH_RATE((11289000.0 / 16) / (45 * 32 * 8)) | |
| 1158 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1159 | ||
| 1160 | 1161 | MDRV_MACHINE_RESET(vanguard) |
| 1161 | 1162 | |
| 1162 | 1163 | // video hardware |
| 1163 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1164 | ||
| 1165 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1166 | MDRV_SCREEN_REFRESH_RATE((11289000.0 / 16) / (45 * 32 * 8)) | |
| 1167 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1164 | 1168 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1165 | 1169 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 1166 | 1170 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 28*8-1) |
| 1171 | ||
| 1167 | 1172 | MDRV_GFXDECODE(vanguard) |
| 1168 | 1173 | MDRV_PALETTE_LENGTH(64) |
| 1169 | 1174 | |
| r1711 | r1712 | |
| 1171 | 1176 | MDRV_VIDEO_START(rockola) |
| 1172 | 1177 | MDRV_VIDEO_UPDATE(rockola) |
| 1173 | 1178 | |
| 1179 | MDRV_DEVICE_ADD("crtc", MC6845) | |
| 1180 | ||
| 1174 | 1181 | // sound hardware |
| 1175 | 1182 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 1176 | 1183 | |
| r1711 | r1712 | |
| 1226 | 1233 | MDRV_MACHINE_RESET(pballoon) |
| 1227 | 1234 | |
| 1228 | 1235 | // video hardware |
| 1236 | MDRV_SCREEN_MODIFY("main") | |
| 1229 | 1237 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 1230 | 1238 | MACHINE_DRIVER_END |
| 1231 | 1239 |
| r1711 | r1712 | |
|---|---|---|
| 379 | 379 | |
| 380 | 380 | static VIDEO_START(magicfly) |
| 381 | 381 | { |
| 382 | mc6845 = mc6845 | |
| 382 | mc6845 = devtag_get_token(machine, MC6845, "crtc" | |
| 383 | 383 | bg_tilemap = tilemap_create(get_magicfly_tile_info, tilemap_scan_rows, 8, 8, 32, 29); |
| 384 | 384 | } |
| 385 | 385 | |
| r1711 | r1712 | |
| 411 | 411 | |
| 412 | 412 | static VIDEO_START( 7mezzo ) |
| 413 | 413 | { |
| 414 | bg_tilemap = tilemap_create(get_7mezzo_tile_info, tilemap_scan_rows, | |
| 415 | 8, 8, 32, 29); | |
| 414 | mc6845 = devtag_get_token(machine, MC6845, "crtc"); | |
| 415 | bg_tilemap = tilemap_create(get_7mezzo_tile_info, tilemap_scan_rows, 8, 8, 32, 29); | |
| 416 | 416 | } |
| 417 | 417 | |
| 418 | 418 | static VIDEO_UPDATE( magicfly ) |
| r1711 | r1712 | |
| 423 | 423 | |
| 424 | 424 | static PALETTE_INIT( magicfly ) |
| 425 | 425 | { |
| 426 | /* 1st gfx bank */ | |
| 427 | palette_set_color(machine, 0, MAKE_RGB(0x00, 0x00, 0x00)); | |
| 428 | palette_set_color(machine, 2, MAKE_RGB(0x00, 0x00, 0x00)); | |
| 429 | palette_set_color(machine, 4, MAKE_RGB(0x00, 0x00, 0x00)); | |
| 430 | palette_set_color(machine, 6, MAKE_RGB(0x00, 0x00, 0x00)); | |
| 431 | palette_set_color(machine, 10, MAKE_RGB(0x00, 0x00, 0x00)); | |
| 432 | palette_set_color(machine, 11, MAKE_RGB(0x00, 0xff, 0x00)); | |
| 433 | palette_set_color(machine, 12, MAKE_RGB(0x00, 0x00, 0x00)); | |
| 434 | palette_set_color(machine, 14, MAKE_RGB(0x00, 0x00, 0x00)); | |
| 426 | int i; | |
| 435 | 427 | |
| 436 | /* 2nd gfx bank */ | |
| 437 | palette_set_color(machine, 22, MAKE_RGB(0xe0, 0xe0, 0xe0)); | |
| 438 | palette_set_color(machine, 23, MAKE_RGB(0xff, 0xff, 0xff)); | |
| 428 | for (i = 0; i < 0x100; i += 0x20) | |
| 429 | { | |
| 430 | /* 1st gfx bank */ | |
| 431 | palette_set_color(machine, i + 0, MAKE_RGB(0x00, 0x00, 0x00)); | |
| 432 | palette_set_color(machine, i + 2, MAKE_RGB(0x00, 0x00, 0x00)); | |
| 433 | palette_set_color(machine, i + 4, MAKE_RGB(0x00, 0x00, 0x00)); | |
| 434 | palette_set_color(machine, i + 6, MAKE_RGB(0x00, 0x00, 0x00)); | |
| 435 | palette_set_color(machine, i + 10, MAKE_RGB(0x00, 0x00, 0x00)); | |
| 436 | palette_set_color(machine, i + 11, MAKE_RGB(0x00, 0xff, 0x00)); | |
| 437 | palette_set_color(machine, i + 12, MAKE_RGB(0x00, 0x00, 0x00)); | |
| 438 | palette_set_color(machine, i + 14, MAKE_RGB(0x00, 0x00, 0x00)); | |
| 439 | ||
| 440 | /* 2nd gfx bank */ | |
| 441 | palette_set_color(machine, i + 22, MAKE_RGB(0xe0, 0xe0, 0xe0)); | |
| 442 | palette_set_color(machine, i + 23, MAKE_RGB(0xff, 0xff, 0xff)); | |
| 443 | } | |
| 439 | 444 | } |
| 440 | 445 | |
| 441 | 446 | |
| r1711 | r1712 | |
| 657 | 662 | MDRV_CPU_PROGRAM_MAP(magicfly_map, 0) |
| 658 | 663 | MDRV_CPU_VBLANK_INT(nmi_line_pulse, 1) |
| 659 | 664 | |
| 660 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 661 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 662 | ||
| 663 | 665 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 664 | 666 | |
| 665 | 667 | /* video hardware */ |
| 666 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 668 | MDRV_SCREEN_ADD("main", RASTER) | |
| 669 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 670 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 667 | 671 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 668 | 672 | MDRV_SCREEN_SIZE((39+1)*8, (31+1)*8) /* Taken from MC6845 init, registers 00 & 04. Normally programmed with (value-1). */ |
| 669 | 673 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 29*8-1) /* Taken from MC6845 init, registers 01 & 06. */ |
| 670 | 674 | |
| 671 | 675 | MDRV_GFXDECODE(magicfly) |
| 672 | MDRV_PALETTE_LENGTH( | |
| 676 | MDRV_PALETTE_LENGTH( | |
| 673 | 677 | MDRV_PALETTE_INIT(magicfly) |
| 674 | MDRV_COLORTABLE_LENGTH(256) | |
| 675 | 678 | |
| 676 | 679 | MDRV_VIDEO_START(magicfly) |
| 677 | 680 | MDRV_VIDEO_UPDATE(magicfly) |
| 678 | 681 | |
| 682 | MDRV_DEVICE_ADD("crtc", MC6845) | |
| 679 | 683 | MACHINE_DRIVER_END |
| 680 | 684 | |
| 681 | 685 | static MACHINE_DRIVER_START( 7mezzo ) |
| r1711 | r1712 | |
|---|---|---|
| 1631 | 1631 | MDRV_CPU_ADD_TAG("main", M6502, 12096000/8) /* 1.512 MHz (slows down to 0.75MHz while accessing playfield RAM) */ |
| 1632 | 1632 | MDRV_CPU_PROGRAM_MAP(centiped_map,0) |
| 1633 | 1633 | |
| 1634 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1635 | ||
| 1636 | 1634 | MDRV_MACHINE_START(centiped) |
| 1637 | 1635 | MDRV_MACHINE_RESET(centiped) |
| 1638 | 1636 | MDRV_NVRAM_HANDLER(atari_vg) |
| 1639 | 1637 | |
| 1640 | 1638 | /* video hardware */ |
| 1641 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1639 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1640 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1642 | 1641 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1643 | 1642 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 1644 | 1643 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 30*8-1) |
| 1644 | ||
| 1645 | 1645 | MDRV_GFXDECODE(centiped) |
| 1646 | 1646 | MDRV_PALETTE_LENGTH(4+4*4*4*4) |
| 1647 | 1647 | |
| r1711 | r1712 | |
| 1758 | 1758 | MDRV_CPU_PROGRAM_MAP(bullsdrt_map,0) |
| 1759 | 1759 | MDRV_CPU_IO_MAP(bullsdrt_port_map,0) |
| 1760 | 1760 | |
| 1761 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1762 | ||
| 1763 | 1761 | MDRV_NVRAM_HANDLER(atari_vg) |
| 1764 | 1762 | |
| 1765 | 1763 | /* video hardware */ |
| 1766 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1764 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1765 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1767 | 1766 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1768 | 1767 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 1769 | 1768 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 30*8-1) |
| 1769 | ||
| 1770 | 1770 | MDRV_GFXDECODE(centiped) |
| 1771 | 1771 | MDRV_PALETTE_LENGTH(4+4*4*4*4) |
| 1772 | 1772 |
| r1711 | r1712 | |
|---|---|---|
| 749 | 749 | MDRV_NVRAM_HANDLER(atarigen) |
| 750 | 750 | |
| 751 | 751 | /* video hardware */ |
| 752 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 752 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 753 | 753 | MDRV_GFXDECODE(atarisy1) |
| 754 | 754 | MDRV_PALETTE_LENGTH(1024) |
| 755 | 755 | |
| 756 | MDRV_SCREEN_ADD("main", | |
| 756 | MDRV_SCREEN_ADD("main", RASTER) | |
| 757 | 757 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 758 | 758 | /* note: these parameters are from published specs, not derived */ |
| 759 | 759 | /* video timing comes from an 82S163 (H) and an 82S129 (V) */ |
| r1711 | r1712 | |
|---|---|---|
| 994 | 994 | |
| 995 | 995 | MDRV_MACHINE_START(wgp) |
| 996 | 996 | |
| 997 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 998 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 999 | 997 | MDRV_INTERLEAVE(250) |
| 1000 | 998 | |
| 1001 | 999 | /* video hardware */ |
| 1002 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1000 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1001 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1002 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1003 | 1003 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1004 | 1004 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 1005 | 1005 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 32*8-1) |
| 1006 | ||
| 1006 | 1007 | MDRV_GFXDECODE(wgp) |
| 1007 | 1008 | MDRV_PALETTE_LENGTH(4096) |
| 1008 | 1009 | |
| r1711 | r1712 | |
| 1038 | 1039 | |
| 1039 | 1040 | MDRV_MACHINE_START(wgp) |
| 1040 | 1041 | |
| 1041 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1042 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1043 | 1042 | MDRV_INTERLEAVE(200) |
| 1044 | 1043 | |
| 1045 | 1044 | /* video hardware */ |
| 1046 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1045 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1046 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1047 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1047 | 1048 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1048 | 1049 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 1049 | 1050 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 32*8-1) |
| 1051 | ||
| 1050 | 1052 | MDRV_GFXDECODE(wgp) |
| 1051 | 1053 | MDRV_PALETTE_LENGTH(4096) |
| 1052 | 1054 |
| r1711 | r1712 | |
|---|---|---|
| 341 | 341 | MDRV_CPU_ADD(M6809E,4000000) |
| 342 | 342 | MDRV_CPU_PROGRAM_MAP(sound_cpu_map,0) |
| 343 | 343 | |
| 344 | /* video hardware */ | |
| 345 | MDRV_SCREEN_ADD("main", RASTER) | |
| 344 | 346 | MDRV_SCREEN_REFRESH_RATE(60) |
| 345 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 346 | ||
| 347 | /* video hardware */ | |
| 348 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 347 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 349 | 348 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 350 | 349 | MDRV_SCREEN_SIZE(34*8, 34*8) |
| 351 | 350 | MDRV_SCREEN_VISIBLE_AREA(0*8, 34*8-1, 0, 34*8-1) |
| 351 | ||
| 352 | 352 | MDRV_PALETTE_LENGTH(512) |
| 353 | 353 | MDRV_MACHINE_RESET( turbosub ) |
| 354 | 354 | MDRV_INTERLEAVE(100) |
| r1711 | r1712 | |
|---|---|---|
| 759 | 759 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 760 | 760 | MDRV_CPU_IO_MAP(sound_readport,sound_writeport) |
| 761 | 761 | /* IRQs are triggered by the YM2610 */ |
| 762 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 763 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 764 | 762 | |
| 765 | 763 | /* video hardware */ |
| 766 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 764 | MDRV_SCREEN_ADD("main", RASTER) | |
| 765 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 766 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 767 | 767 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 768 | 768 | MDRV_SCREEN_SIZE(512, 256) |
| 769 | 769 | MDRV_SCREEN_VISIBLE_AREA(15, 367-1, 8, 248-1) |
| 770 | ||
| 770 | 771 | MDRV_GFXDECODE(welltris) |
| 771 | 772 | MDRV_PALETTE_LENGTH(2048) |
| 772 | 773 | |
| r1711 | r1712 | |
| 788 | 789 | /* basic machine hardware */ |
| 789 | 790 | MDRV_IMPORT_FROM( welltris ) |
| 790 | 791 | |
| 792 | MDRV_SCREEN_MODIFY("main") | |
| 791 | 793 | MDRV_SCREEN_VISIBLE_AREA(15, 335-1, 0, 224-1) |
| 792 | 794 | MACHINE_DRIVER_END |
| 793 | 795 |
| r1711 | r1712 | |
|---|---|---|
| 39 | 39 | signed char delta = (val - dial[i]) & 15; |
| 40 | 40 | |
| 41 | 41 | if (delta & 8) |
| 42 | { | |
| 43 | 42 | delta |= 0xf0; /* extend sign to 8 bits */ |
| 44 | } | |
| 45 | 43 | |
| 46 | 44 | steer_flag[i] = (delta != 0); |
| 47 | 45 | |
| 48 | 46 | if (delta > 0) |
| 49 | { | |
| 50 | 47 | steer_dir[i] = 0; |
| 51 | ||
| 48 | ||
| 52 | 49 | if (delta < 0) |
| 53 | { | |
| 54 | 50 | steer_dir[i] = 1; |
| 55 | } | |
| 56 | 51 | |
| 57 | 52 | dial[i] = val; |
| 58 | 53 | } |
| 59 | 54 | } |
| 60 | 55 | |
| 61 | 56 | |
| 62 | static void fill_palette(running_machine *machine, int team) | |
| 63 | { | |
| 64 | int i; | |
| 65 | ||
| 66 | for (i = 0; i < 16; i += 8) | |
| 67 | { | |
| 68 | if (team) | |
| 69 | { | |
| 70 | palette_set_color(machine, i + 0, MAKE_RGB(0xff, 0x00, 0x00)); /* red */ | |
| 71 | palette_set_color(machine, i + 1, MAKE_RGB(0x00, 0x00, 0xff)); /* blue */ | |
| 72 | palette_set_color(machine, i + 2, MAKE_RGB(0xff, 0x00, 0x00)); /* red */ | |
| 73 | palette_set_color(machine, i + 3, MAKE_RGB(0x00, 0x00, 0xff)); /* blue */ | |
| 74 | palette_set_color(machine, i + 4, MAKE_RGB(0xff, 0x00, 0x00)); /* red */ | |
| 75 | palette_set_color(machine, i + 5, MAKE_RGB(0x00, 0x00, 0xff)); /* blue */ | |
| 76 | palette_set_color(machine, i + 6, MAKE_RGB(0xff, 0x00, 0x00)); /* red */ | |
| 77 | palette_set_color(machine, i + 7, MAKE_RGB(0x00, 0x00, 0xff)); /* blue */ | |
| 78 | } | |
| 79 | else | |
| 80 | { | |
| 81 | palette_set_color(machine, i + 0, MAKE_RGB(0xff, 0x00, 0x00)); /* red */ | |
| 82 | palette_set_color(machine, i + 1, MAKE_RGB(0x00, 0x00, 0xff)); /* blue */ | |
| 83 | palette_set_color(machine, i + 2, MAKE_RGB(0xff, 0xff, 0x00)); /* yellow */ | |
| 84 | palette_set_color(machine, i + 3, MAKE_RGB(0x00, 0xff, 0x00)); /* green */ | |
| 85 | palette_set_color(machine, i + 4, MAKE_RGB(0xff, 0x00, 0xff)); /* magenta */ | |
| 86 | palette_set_color(machine, i + 5, MAKE_RGB(0xe0, 0xc0, 0x70)); /* puce */ | |
| 87 | palette_set_color(machine, i + 6, MAKE_RGB(0x00, 0xff, 0xff)); /* cyan */ | |
| 88 | palette_set_color(machine, i + 7, MAKE_RGB(0xff, 0xaa, 0xaa)); /* pink */ | |
| 89 | } | |
| 90 | } | |
| 91 | ||
| 92 | palette_set_color(machine, 16, MAKE_RGB(0x00, 0x00, 0x00)); | |
| 93 | palette_set_color(machine, 17, MAKE_RGB(0xff, 0xff, 0xff)); | |
| 94 | } | |
| 95 | ||
| 96 | ||
| 97 | static PALETTE_INIT( sprint8 ) | |
| 98 | { | |
| 99 | int i; | |
| 100 | ||
| 101 | fill_palette(machine, 0); | |
| 102 | ||
| 103 | for (i = 0; i < 16; i++) | |
| 104 | { | |
| 105 | colortable[2 * i + 0] = 16; | |
| 106 | colortable[2 * i + 1] = i; | |
| 107 | } | |
| 108 | ||
| 109 | colortable[32] = 16; | |
| 110 | colortable[33] = 16; | |
| 111 | colortable[34] = 16; | |
| 112 | colortable[35] = 17; | |
| 113 | } | |
| 114 | ||
| 115 | ||
| 116 | 57 | static MACHINE_RESET( sprint8 ) |
| 117 | 58 | { |
| 118 | 59 | collision_reset = 0; |
| r1711 | r1712 | |
| 151 | 92 | } |
| 152 | 93 | |
| 153 | 94 | |
| 154 | static WRITE8_HANDLER( sprint8_team_w ) | |
| 155 | { | |
| 156 | fill_palette(Machine, !(data & 1)); | |
| 157 | } | |
| 158 | ||
| 159 | ||
| 160 | 95 | static WRITE8_HANDLER( sprint8_int_reset_w ) |
| 161 | 96 | { |
| 162 | 97 | collision_reset = !(data & 1); |
| r1711 | r1712 | |
| 200 | 135 | AM_RANGE(0x1d02, 0x1d02) AM_WRITE(sprint8_explosion_w) |
| 201 | 136 | AM_RANGE(0x1d03, 0x1d03) AM_WRITE(sprint8_bugle_w) |
| 202 | 137 | AM_RANGE(0x1d04, 0x1d04) AM_WRITE(sprint8_bug_w) |
| 203 | AM_RANGE(0x1d05, 0x1d05) AM_WRITE(sprint8_team | |
| 138 | AM_RANGE(0x1d05, 0x1d05) AM_WRITE(MWA8_RAM) AM_BASE(&sprint8_team | |
| 204 | 139 | AM_RANGE(0x1d06, 0x1d06) AM_WRITE(sprint8_attract_w) |
| 205 | 140 | AM_RANGE(0x1e00, 0x1e07) AM_WRITE(sprint8_motor_w) |
| 206 | 141 | AM_RANGE(0x1f00, 0x1f00) AM_WRITE(MWA8_NOP) /* probably a watchdog, disabled in service mode */ |
| r1711 | r1712 | |
| 532 | 467 | MDRV_CPU_ADD(M6800, 11055000 / 11) /* ? */ |
| 533 | 468 | MDRV_CPU_PROGRAM_MAP(readmem, writemem) |
| 534 | 469 | |
| 535 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 536 | 470 | MDRV_MACHINE_RESET(sprint8) |
| 537 | 471 | |
| 538 | 472 | /* video hardware */ |
| 539 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 473 | MDRV_SCREEN_ADD("main", RASTER) | |
| 474 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 540 | 475 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 541 | 476 | MDRV_SCREEN_SIZE(512, 261) |
| 542 | 477 | MDRV_SCREEN_VISIBLE_AREA(0, 495, 0, 231) |
| 478 | ||
| 543 | 479 | MDRV_GFXDECODE(sprint8) |
| 544 | MDRV_PALETTE_LENGTH(18) | |
| 545 | MDRV_COLORTABLE_LENGTH(36) | |
| 480 | MDRV_PALETTE_LENGTH(36) | |
| 546 | 481 | |
| 547 | 482 | MDRV_PALETTE_INIT(sprint8) |
| 548 | 483 | MDRV_VIDEO_START(sprint8) |
| r1711 | r1712 | |
|---|---|---|
| 454 | 454 | MDRV_CPU_PROGRAM_MAP(sub_map,0) |
| 455 | 455 | MDRV_CPU_VBLANK_INT(pturn_sub_intgen,3) |
| 456 | 456 | |
| 457 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 458 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 459 | ||
| 460 | 457 | MDRV_GFXDECODE(pturn) |
| 461 | 458 | |
| 462 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 459 | ||
| 460 | MDRV_SCREEN_ADD("main", RASTER) | |
| 461 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 462 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 463 | 463 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 464 | 464 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 465 | 465 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 466 | ||
| 466 | 467 | MDRV_PALETTE_LENGTH(0x100) |
| 467 | 468 | MDRV_PALETTE_INIT(RRRR_GGGG_BBBB) |
| 468 | 469 |
| r1711 | r1712 | |
|---|---|---|
| 311 | 311 | MDRV_CPU_PROGRAM_MAP(gumbo_readmem,gumbo_writemem) |
| 312 | 312 | MDRV_CPU_VBLANK_INT(irq1_line_hold,1) // all the same |
| 313 | 313 | |
| 314 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 315 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 316 | ||
| 317 | 314 | MDRV_GFXDECODE(gumbo) |
| 318 | 315 | |
| 319 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 316 | ||
| 317 | MDRV_SCREEN_ADD("main", RASTER) | |
| 318 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 319 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 320 | 320 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 321 | 321 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 322 | 322 | MDRV_SCREEN_VISIBLE_AREA(8*8, 48*8-1, 2*8, 30*8-1) |
| 323 | ||
| 323 | 324 | MDRV_PALETTE_LENGTH(0x200) |
| 324 | 325 | |
| 325 | 326 | MDRV_VIDEO_START(gumbo) |
| r1711 | r1712 | |
|---|---|---|
| 398 | 398 | MDRV_CPU_PROGRAM_MAP(getrivia_map,0) |
| 399 | 399 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,1) |
| 400 | 400 | |
| 401 | /* video hardware */ | |
| 402 | MDRV_SCREEN_ADD("main", RASTER) | |
| 401 | 403 | MDRV_SCREEN_REFRESH_RATE(60) |
| 402 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 403 | ||
| 404 | /* video hardware */ | |
| 405 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 404 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 406 | 405 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 407 | 406 | MDRV_SCREEN_SIZE(512, 256) |
| 408 | 407 | MDRV_SCREEN_VISIBLE_AREA(48, 511-48, 16, 255-16) |
| 408 | ||
| 409 | 409 | MDRV_PALETTE_LENGTH(256) |
| 410 | 410 | |
| 411 | 411 | MDRV_MACHINE_RESET(getrivia) |
| r1711 | r1712 | |
|---|---|---|
| 234 | 234 | MDRV_CPU_PROGRAM_MAP(dommy_readmem,dommy_writemem) |
| 235 | 235 | MDRV_CPU_VBLANK_INT(irq0_line_hold,16) |
| 236 | 236 | |
| 237 | /* video hardware */ | |
| 238 | MDRV_SCREEN_ADD("main", RASTER) | |
| 237 | 239 | MDRV_SCREEN_REFRESH_RATE(57) |
| 238 | 240 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(3072) /* frames per second, vblank duration taken from Burger Time */) |
| 239 | ||
| 240 | /* video hardware */ | |
| 241 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 242 | 241 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 243 | 242 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 244 | 243 | MDRV_SCREEN_VISIBLE_AREA(0*8, 31*8-1, 1*8, 31*8-1) |
| 244 | ||
| 245 | 245 | MDRV_GFXDECODE(scregg) |
| 246 | 246 | MDRV_PALETTE_LENGTH(8) |
| 247 | 247 | |
| r1711 | r1712 | |
| 267 | 267 | MDRV_CPU_PROGRAM_MAP(eggs_readmem,eggs_writemem) |
| 268 | 268 | MDRV_CPU_VBLANK_INT(irq0_line_hold,16) |
| 269 | 269 | |
| 270 | /* video hardware */ | |
| 271 | MDRV_SCREEN_ADD("main", RASTER) | |
| 270 | 272 | MDRV_SCREEN_REFRESH_RATE(57) |
| 271 | 273 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(3072) /* frames per second, vblank duration taken from Burger Time */) |
| 272 | ||
| 273 | /* video hardware */ | |
| 274 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 275 | 274 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 276 | 275 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 277 | 276 | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 1*8, 31*8-1) |
| 277 | ||
| 278 | 278 | MDRV_GFXDECODE(scregg) |
| 279 | 279 | MDRV_PALETTE_LENGTH(8) |
| 280 | 280 |
| r1711 | r1712 | |
|---|---|---|
| 936 | 936 | /* audio CPU */ |
| 937 | 937 | MDRV_CPU_PROGRAM_MAP(dec0_s_readmem,dec0_s_writemem) |
| 938 | 938 | |
| 939 | /* video hardware */ | |
| 940 | MDRV_SCREEN_ADD("main", RASTER) | |
| 939 | 941 | MDRV_SCREEN_REFRESH_RATE(57.41) |
| 940 | 942 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529) /* 57.41 Hz, 529us Vblank */) |
| 941 | ||
| 942 | /* video hardware */ | |
| 943 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 944 | 943 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 945 | 944 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 946 | 945 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 946 | ||
| 947 | 947 | MDRV_GFXDECODE(dec0) |
| 948 | 948 | MDRV_PALETTE_LENGTH(1024) |
| 949 | 949 | |
| r1711 | r1712 | |
| 979 | 979 | /* audio CPU */ |
| 980 | 980 | MDRV_CPU_PROGRAM_MAP(dec0_s_readmem,dec0_s_writemem) |
| 981 | 981 | |
| 982 | /* video hardware */ | |
| 983 | MDRV_SCREEN_ADD("main", RASTER) | |
| 982 | 984 | MDRV_SCREEN_REFRESH_RATE(57.41) |
| 983 | 985 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529) /* 57.41 Hz, 529us Vblank */) |
| 984 | ||
| 985 | /* video hardware */ | |
| 986 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 987 | 986 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 988 | 987 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 989 | 988 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 989 | ||
| 990 | 990 | MDRV_GFXDECODE(dec0) |
| 991 | 991 | MDRV_PALETTE_LENGTH(1024) |
| 992 | 992 | |
| r1711 | r1712 | |
| 1022 | 1022 | /* audio CPU */ |
| 1023 | 1023 | MDRV_CPU_PROGRAM_MAP(dec0_s_readmem,dec0_s_writemem) |
| 1024 | 1024 | |
| 1025 | /* video hardware */ | |
| 1026 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1025 | 1027 | MDRV_SCREEN_REFRESH_RATE(57.41) |
| 1026 | 1028 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529) /* 57.41 Hz, 529us Vblank */) |
| 1027 | ||
| 1028 | /* video hardware */ | |
| 1029 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1030 | 1029 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1031 | 1030 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 1032 | 1031 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 1032 | ||
| 1033 | 1033 | MDRV_GFXDECODE(dec0) |
| 1034 | 1034 | MDRV_PALETTE_LENGTH(1024) |
| 1035 | 1035 | |
| r1711 | r1712 | |
| 1068 | 1068 | MDRV_CPU_ADD(H6280,21477200/16) /* 21.4772MHz clock */ |
| 1069 | 1069 | MDRV_CPU_PROGRAM_MAP(robocop_sub_readmem,robocop_sub_writemem) |
| 1070 | 1070 | |
| 1071 | MDRV_SCREEN_REFRESH_RATE(57.41) | |
| 1072 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529) /* 57.41 Hz, 529us Vblank */) | |
| 1073 | 1071 | MDRV_INTERLEAVE(50) /* Interleave between HuC6280 & 68000 */ |
| 1074 | 1072 | |
| 1075 | 1073 | /* video hardware */ |
| 1076 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1074 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1075 | MDRV_SCREEN_REFRESH_RATE(57.41) | |
| 1076 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529) /* 57.41 Hz, 529us Vblank */) | |
| 1077 | 1077 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1078 | 1078 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 1079 | 1079 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 1080 | ||
| 1080 | 1081 | MDRV_GFXDECODE(dec0) |
| 1081 | 1082 | MDRV_PALETTE_LENGTH(1024) |
| 1082 | 1083 | |
| r1711 | r1712 | |
| 1112 | 1113 | /* audio CPU */ |
| 1113 | 1114 | MDRV_CPU_PROGRAM_MAP(dec0_s_readmem,dec0_s_writemem) |
| 1114 | 1115 | |
| 1116 | /* video hardware */ | |
| 1117 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1115 | 1118 | MDRV_SCREEN_REFRESH_RATE(57.41) |
| 1116 | 1119 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529) /* 57.41 Hz, 529us Vblank */) |
| 1117 | ||
| 1118 | /* video hardware */ | |
| 1119 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1120 | 1120 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1121 | 1121 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 1122 | 1122 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 1123 | ||
| 1123 | 1124 | MDRV_GFXDECODE(dec0) |
| 1124 | 1125 | MDRV_PALETTE_LENGTH(1024) |
| 1125 | 1126 | |
| r1711 | r1712 | |
| 1158 | 1159 | MDRV_CPU_ADD(H6280,21477200/16) /* 21.4772MHz clock */ |
| 1159 | 1160 | MDRV_CPU_PROGRAM_MAP(hippodrm_sub_readmem,hippodrm_sub_writemem) |
| 1160 | 1161 | |
| 1161 | MDRV_SCREEN_REFRESH_RATE(57.41) | |
| 1162 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529) /* 57.41 Hz, 529us Vblank */) | |
| 1163 | 1162 | MDRV_INTERLEAVE(5) /* Interleave between H6280 & 68000 */ |
| 1164 | 1163 | |
| 1165 | 1164 | /* video hardware */ |
| 1166 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1165 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1166 | MDRV_SCREEN_REFRESH_RATE(57.41) | |
| 1167 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529) /* 57.41 Hz, 529us Vblank */) | |
| 1167 | 1168 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1168 | 1169 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 1169 | 1170 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 1171 | ||
| 1170 | 1172 | MDRV_GFXDECODE(dec0) |
| 1171 | 1173 | MDRV_PALETTE_LENGTH(1024) |
| 1172 | 1174 | |
| r1711 | r1712 | |
| 1202 | 1204 | /* audio CPU */ /* verified on pcb (6Mhz is XIN on pin 10 of H6280, verified on pcb */ |
| 1203 | 1205 | MDRV_CPU_PROGRAM_MAP(slyspy_s_readmem,slyspy_s_writemem) |
| 1204 | 1206 | |
| 1207 | /* video hardware */ | |
| 1208 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1205 | 1209 | MDRV_SCREEN_REFRESH_RATE(57.41) |
| 1206 | 1210 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529) /* 57.41 Hz, 529us Vblank */) |
| 1207 | ||
| 1208 | /* video hardware */ | |
| 1209 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1210 | 1211 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1211 | 1212 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 1212 | 1213 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 1214 | ||
| 1213 | 1215 | MDRV_GFXDECODE(dec0) |
| 1214 | 1216 | MDRV_PALETTE_LENGTH(1024) |
| 1215 | 1217 | |
| r1711 | r1712 | |
| 1245 | 1247 | /* audio CPU */ /* verified on pcb (6Mhz is XIN on pin 10 of H6280, verified on pcb */ |
| 1246 | 1248 | MDRV_CPU_PROGRAM_MAP(midres_s_readmem,midres_s_writemem) |
| 1247 | 1249 | |
| 1250 | /* video hardware */ | |
| 1251 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1248 | 1252 | MDRV_SCREEN_REFRESH_RATE(57.41) |
| 1249 | 1253 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529) /* 57.41 Hz, 529us Vblank */) |
| 1250 | ||
| 1251 | /* video hardware */ | |
| 1252 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1253 | 1254 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1254 | 1255 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 1255 | 1256 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 1257 | ||
| 1256 | 1258 | MDRV_GFXDECODE(midres) |
| 1257 | 1259 | MDRV_PALETTE_LENGTH(1024) |
| 1258 | 1260 |
| r1711 | r1712 | |
|---|---|---|
| 2792 | 2792 | MDRV_CPU_ADD_TAG("main", V60, 16000000) /* Based on STA-0001 & STA-0001B System boards */ |
| 2793 | 2793 | MDRV_CPU_VBLANK_INT(ssv_interrupt,2) /* Vblank */ |
| 2794 | 2794 | |
| 2795 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2796 | ||
| 2797 | 2795 | MDRV_MACHINE_RESET(ssv) |
| 2798 | 2796 | |
| 2799 | 2797 | /* video hardware */ |
| 2800 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2798 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2799 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2801 | 2800 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2802 | ||
| 2803 | 2801 | MDRV_SCREEN_SIZE(0x180, 0x100) |
| 2804 | 2802 | MDRV_SCREEN_VISIBLE_AREA(0, 0x150-1, 0, 0xf0-1) |
| 2803 | ||
| 2805 | 2804 | MDRV_GFXDECODE(ssv) |
| 2806 | 2805 | MDRV_PALETTE_LENGTH(0x8000) |
| 2807 | 2806 | MDRV_VIDEO_START(ssv) |
| r1711 | r1712 | |
| 2827 | 2826 | MDRV_NVRAM_HANDLER(ssv) |
| 2828 | 2827 | |
| 2829 | 2828 | /* video hardware */ |
| 2829 | MDRV_SCREEN_MODIFY("main") | |
| 2830 | 2830 | MDRV_SCREEN_VISIBLE_AREA(0, 0x150-1, 4, 0xf0-1) |
| 2831 | 2831 | MACHINE_DRIVER_END |
| 2832 | 2832 | |
| r1711 | r1712 | |
| 2842 | 2842 | MDRV_NVRAM_HANDLER(gdfs) |
| 2843 | 2843 | |
| 2844 | 2844 | /* video hardware */ |
| 2845 | MDRV_SCREEN_MODIFY("main") | |
| 2845 | 2846 | MDRV_SCREEN_VISIBLE_AREA(0, 0x150-1, 0, 0xf0-1) |
| 2846 | 2847 | |
| 2847 | 2848 | MDRV_GFXDECODE(gdfs) |
| r1711 | r1712 | |
| 2858 | 2859 | MDRV_CPU_PROGRAM_MAP(hypreact_readmem, hypreact_writemem) |
| 2859 | 2860 | |
| 2860 | 2861 | /* video hardware */ |
| 2862 | MDRV_SCREEN_MODIFY("main") | |
| 2861 | 2863 | MDRV_SCREEN_VISIBLE_AREA(8, 0x148-1, 16, 0xf0-1) |
| 2862 | 2864 | MACHINE_DRIVER_END |
| 2863 | 2865 | |
| r1711 | r1712 | |
| 2870 | 2872 | MDRV_CPU_PROGRAM_MAP(hypreac2_readmem, hypreac2_writemem) |
| 2871 | 2873 | |
| 2872 | 2874 | /* video hardware */ |
| 2875 | MDRV_SCREEN_MODIFY("main") | |
| 2873 | 2876 | MDRV_SCREEN_VISIBLE_AREA(0, 0x150-1, 8, 0xf8-1) |
| 2874 | 2877 | MACHINE_DRIVER_END |
| 2875 | 2878 | |
| r1711 | r1712 | |
| 2882 | 2885 | MDRV_CPU_PROGRAM_MAP(janjans1_readmem, janjans1_writemem) |
| 2883 | 2886 | |
| 2884 | 2887 | /* video hardware */ |
| 2888 | MDRV_SCREEN_MODIFY("main") | |
| 2885 | 2889 | MDRV_SCREEN_VISIBLE_AREA(0, 0x150-1, 0, 0xf0-1) |
| 2886 | 2890 | MACHINE_DRIVER_END |
| 2887 | 2891 | |
| r1711 | r1712 | |
| 2894 | 2898 | MDRV_CPU_PROGRAM_MAP(keithlcy_readmem, keithlcy_writemem) |
| 2895 | 2899 | |
| 2896 | 2900 | /* video hardware */ |
| 2901 | MDRV_SCREEN_MODIFY("main") | |
| 2897 | 2902 | MDRV_SCREEN_VISIBLE_AREA(0, 0x150-1, 4, 0xf0-1) |
| 2898 | 2903 | MACHINE_DRIVER_END |
| 2899 | 2904 | |
| r1711 | r1712 | |
| 2908 | 2913 | MDRV_NVRAM_HANDLER(ssv) |
| 2909 | 2914 | |
| 2910 | 2915 | /* video hardware */ |
| 2916 | MDRV_SCREEN_MODIFY("main") | |
| 2911 | 2917 | MDRV_SCREEN_VISIBLE_AREA(0, 0x150-1, 0, 0xf0-1) |
| 2912 | 2918 | MACHINE_DRIVER_END |
| 2913 | 2919 | |
| r1711 | r1712 | |
| 2920 | 2926 | MDRV_CPU_PROGRAM_MAP(mslider_readmem, mslider_writemem) |
| 2921 | 2927 | |
| 2922 | 2928 | /* video hardware */ |
| 2929 | MDRV_SCREEN_MODIFY("main") | |
| 2923 | 2930 | MDRV_SCREEN_VISIBLE_AREA(0, 0x150-1, 0, 0xf0-1) |
| 2924 | 2931 | MACHINE_DRIVER_END |
| 2925 | 2932 | |
| r1711 | r1712 | |
| 2932 | 2939 | MDRV_CPU_PROGRAM_MAP(ryorioh_readmem, ryorioh_writemem) |
| 2933 | 2940 | |
| 2934 | 2941 | /* video hardware */ |
| 2942 | MDRV_SCREEN_MODIFY("main") | |
| 2935 | 2943 | MDRV_SCREEN_VISIBLE_AREA(0, 0x150-1, 0, 0xf0-1) |
| 2936 | 2944 | MACHINE_DRIVER_END |
| 2937 | 2945 | |
| r1711 | r1712 | |
| 2944 | 2952 | MDRV_CPU_PROGRAM_MAP(srmp4_readmem, srmp4_writemem) |
| 2945 | 2953 | |
| 2946 | 2954 | /* video hardware */ |
| 2955 | MDRV_SCREEN_MODIFY("main") | |
| 2947 | 2956 | MDRV_SCREEN_VISIBLE_AREA(0, 0x150-1, 4, 0xf4-1) |
| 2948 | 2957 | MACHINE_DRIVER_END |
| 2949 | 2958 | |
| r1711 | r1712 | |
| 2956 | 2965 | MDRV_CPU_PROGRAM_MAP(srmp7_readmem, srmp7_writemem) |
| 2957 | 2966 | |
| 2958 | 2967 | /* video hardware */ |
| 2968 | MDRV_SCREEN_MODIFY("main") | |
| 2959 | 2969 | MDRV_SCREEN_VISIBLE_AREA(0, 0x150-1, 0, 0xf0-1) |
| 2960 | 2970 | MACHINE_DRIVER_END |
| 2961 | 2971 | |
| r1711 | r1712 | |
| 2969 | 2979 | |
| 2970 | 2980 | MDRV_NVRAM_HANDLER(ssv) |
| 2971 | 2981 | /* video hardware */ |
| 2982 | MDRV_SCREEN_MODIFY("main") | |
| 2972 | 2983 | MDRV_SCREEN_VISIBLE_AREA(0, 0x158-1, 0, 0xf0-1) |
| 2973 | 2984 | MACHINE_DRIVER_END |
| 2974 | 2985 | |
| r1711 | r1712 | |
| 2981 | 2992 | MDRV_CPU_PROGRAM_MAP(survarts_readmem, survarts_writemem) |
| 2982 | 2993 | |
| 2983 | 2994 | /* video hardware */ |
| 2995 | MDRV_SCREEN_MODIFY("main") | |
| 2984 | 2996 | MDRV_SCREEN_VISIBLE_AREA(0, 0x150-1, 4, 0xf4-1) |
| 2985 | 2997 | MACHINE_DRIVER_END |
| 2986 | 2998 | |
| r1711 | r1712 | |
| 2988 | 3000 | /* basic machine hardware */ |
| 2989 | 3001 | MDRV_IMPORT_FROM(survarts) |
| 2990 | 3002 | /* video hardware */ |
| 3003 | MDRV_SCREEN_MODIFY("main") | |
| 2991 | 3004 | MDRV_SCREEN_VISIBLE_AREA(8, 0x158-16-1, 0, 0xf0-1) |
| 2992 | 3005 | MACHINE_DRIVER_END |
| 2993 | 3006 | |
| r1711 | r1712 | |
| 3002 | 3015 | MDRV_NVRAM_HANDLER(ssv) |
| 3003 | 3016 | |
| 3004 | 3017 | /* video hardware */ |
| 3018 | MDRV_SCREEN_MODIFY("main") | |
| 3005 | 3019 | MDRV_SCREEN_VISIBLE_AREA(0, 0x140-1, 8, 0xe8-1) |
| 3006 | 3020 | |
| 3007 | 3021 | MDRV_GFXDECODE(eaglshot) |
| r1711 | r1712 | |
| 3020 | 3034 | MDRV_NVRAM_HANDLER(ssv) |
| 3021 | 3035 | |
| 3022 | 3036 | /* video hardware */ |
| 3037 | MDRV_SCREEN_MODIFY("main") | |
| 3023 | 3038 | MDRV_SCREEN_VISIBLE_AREA(0, 0x150-1, 0, 0xf0-1) |
| 3024 | 3039 | MACHINE_DRIVER_END |
| 3025 | 3040 | |
| r1711 | r1712 | |
| 3032 | 3047 | MDRV_CPU_PROGRAM_MAP(twineag2_readmem, twineag2_writemem) |
| 3033 | 3048 | |
| 3034 | 3049 | /* video hardware */ |
| 3050 | MDRV_SCREEN_MODIFY("main") | |
| 3035 | 3051 | MDRV_SCREEN_VISIBLE_AREA(0, 0x150-1, 0, 0xf0-1) |
| 3036 | 3052 | MACHINE_DRIVER_END |
| 3037 | 3053 | |
| r1711 | r1712 | |
| 3044 | 3060 | MDRV_CPU_PROGRAM_MAP(ultrax_readmem, ultrax_writemem) |
| 3045 | 3061 | |
| 3046 | 3062 | /* video hardware */ |
| 3063 | MDRV_SCREEN_MODIFY("main") | |
| 3047 | 3064 | MDRV_SCREEN_VISIBLE_AREA(0, 0x150-1, 0, 0xf0-1) |
| 3048 | 3065 | MACHINE_DRIVER_END |
| 3049 | 3066 | |
| r1711 | r1712 | |
| 3058 | 3075 | MDRV_CPU_PROGRAM_MAP(jsk_v810_mem, 0) |
| 3059 | 3076 | |
| 3060 | 3077 | /* video hardware */ |
| 3078 | MDRV_SCREEN_MODIFY("main") | |
| 3061 | 3079 | MDRV_SCREEN_VISIBLE_AREA(0, 0x150-1, 0, 0xf0-1) |
| 3062 | 3080 | MACHINE_DRIVER_END |
| 3063 | 3081 |
| r1711 | r1712 | |
|---|---|---|
| 603 | 603 | MDRV_CPU_DATA_MAP(DSP_map_data, 0) |
| 604 | 604 | MDRV_CPU_IO_MAP(DSP_map_io, 0) |
| 605 | 605 | |
| 606 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 607 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 608 | 606 | MDRV_INTERLEAVE(10) |
| 609 | 607 | |
| 610 | 608 | MDRV_MACHINE_START(taitoair) |
| 611 | 609 | |
| 612 | 610 | /* video hardware */ |
| 613 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 611 | MDRV_SCREEN_ADD("main", RASTER) | |
| 612 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 613 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 614 | 614 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 615 | 615 | MDRV_SCREEN_SIZE(64*16, 64*16) |
| 616 | 616 | MDRV_SCREEN_VISIBLE_AREA(0*16, 32*16-1, 3*16, 28*16-1) |
| 617 | ||
| 617 | 618 | MDRV_GFXDECODE(airsys) |
| 618 | 619 | MDRV_PALETTE_LENGTH(512*16) |
| 619 | 620 |
| r1711 | r1712 | |
|---|---|---|
| 527 | 527 | MDRV_NVRAM_HANDLER(atarigen) |
| 528 | 528 | |
| 529 | 529 | /* video hardware */ |
| 530 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 530 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 531 | 531 | MDRV_GFXDECODE(atarig42) |
| 532 | 532 | MDRV_PALETTE_LENGTH(2048) |
| 533 | 533 | |
| 534 | MDRV_SCREEN_ADD("main", | |
| 534 | MDRV_SCREEN_ADD("main", RASTER) | |
| 535 | 535 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 536 | 536 | /* note: these parameters are from published specs, not derived */ |
| 537 | 537 | /* the board uses an SOS chip to generate video signals */ |
| r1711 | r1712 | |
|---|---|---|
| 460 | 460 | MDRV_MACHINE_RESET(tceptor) |
| 461 | 461 | |
| 462 | 462 | /* video hardware */ |
| 463 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 464 | 463 | MDRV_GFXDECODE(tceptor) |
| 465 | 464 | MDRV_PALETTE_LENGTH(4096) |
| 466 | 465 | MDRV_DEFAULT_LAYOUT(layout_horizont) |
| 467 | 466 | |
| 468 | MDRV_SCREEN_ADD("2D", | |
| 467 | MDRV_SCREEN_ADD("2D", RASTER) | |
| 469 | 468 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 470 | 469 | MDRV_SCREEN_REFRESH_RATE(60.606060) |
| 471 | MDRV_SCREEN_VBLANK_TIME( | |
| 470 | MDRV_SCREEN_VBLANK_TIME( | |
| 472 | 471 | MDRV_SCREEN_SIZE(38*8, 32*8) |
| 473 | 472 | MDRV_SCREEN_VISIBLE_AREA(2*8, 34*8-1 + 2*8, 0*8, 28*8-1 + 0) |
| 474 | 473 | |
| 475 | MDRV_SCREEN_ADD("3D Left", | |
| 474 | MDRV_SCREEN_ADD("3D Left", RASTER) | |
| 476 | 475 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 477 | 476 | MDRV_SCREEN_REFRESH_RATE(60.606060) |
| 478 | MDRV_SCREEN_VBLANK_TIME( | |
| 477 | MDRV_SCREEN_VBLANK_TIME( | |
| 479 | 478 | MDRV_SCREEN_SIZE(38*8, 32*8) |
| 480 | 479 | MDRV_SCREEN_VISIBLE_AREA(2*8, 34*8-1 + 2*8, 0*8, 28*8-1 + 0) |
| 481 | 480 | |
| 482 | MDRV_SCREEN_ADD("3D Right", | |
| 481 | MDRV_SCREEN_ADD("3D Right", RASTER) | |
| 483 | 482 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 484 | 483 | MDRV_SCREEN_REFRESH_RATE(60.606060) |
| 485 | MDRV_SCREEN_VBLANK_TIME( | |
| 484 | MDRV_SCREEN_VBLANK_TIME( | |
| 486 | 485 | MDRV_SCREEN_SIZE(38*8, 32*8) |
| 487 | 486 | MDRV_SCREEN_VISIBLE_AREA(2*8, 34*8-1 + 2*8, 0*8, 28*8-1 + 0) |
| 488 | 487 |
| r1711 | r1712 | |
|---|---|---|
| 425 | 425 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 426 | 426 | MDRV_CPU_IO_MAP(sound_readport,sound_writeport) |
| 427 | 427 | |
| 428 | /* video hardware */ | |
| 429 | MDRV_SCREEN_ADD("main", RASTER) | |
| 428 | 430 | MDRV_SCREEN_REFRESH_RATE(60) |
| 429 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 430 | ||
| 431 | /* video hardware */ | |
| 432 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 431 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 433 | 432 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 434 | 433 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 435 | 434 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 435 | ||
| 436 | 436 | MDRV_GFXDECODE(cop01) |
| 437 | 437 | MDRV_PALETTE_LENGTH(16+8*16+16*16) |
| 438 | 438 | |
| r1711 | r1712 | |
| 466 | 466 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 467 | 467 | MDRV_CPU_IO_MAP(mightguy_sound_readport,mightguy_sound_writeport) |
| 468 | 468 | |
| 469 | /* video hardware */ | |
| 470 | MDRV_SCREEN_ADD("main", RASTER) | |
| 469 | 471 | MDRV_SCREEN_REFRESH_RATE(60) |
| 470 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 471 | ||
| 472 | /* video hardware */ | |
| 473 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 472 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 474 | 473 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 475 | 474 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 476 | 475 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 476 | ||
| 477 | 477 | MDRV_GFXDECODE(cop01) |
| 478 | 478 | MDRV_PALETTE_LENGTH(16+8*16+16*16) |
| 479 | 479 |
| r1711 | r1712 | |
|---|---|---|
| 201 | 201 | MDRV_NVRAM_HANDLER(atarigen) |
| 202 | 202 | |
| 203 | 203 | /* video hardware */ |
| 204 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 204 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 205 | 205 | MDRV_GFXDECODE(vindictr) |
| 206 | 206 | MDRV_PALETTE_LENGTH(2048*8) |
| 207 | 207 | |
| 208 | MDRV_SCREEN_ADD("main", | |
| 208 | MDRV_SCREEN_ADD("main", RASTER) | |
| 209 | 209 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 210 | 210 | /* note: these parameters are from published specs, not derived */ |
| 211 | 211 | /* the board uses a SYNGEN chip to generate video signals */ |
| r1711 | r1712 | |
|---|---|---|
| 210 | 210 | MDRV_CPU_IO_MAP(readport,writeport) |
| 211 | 211 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 212 | 212 | |
| 213 | /* video hardware */ | |
| 214 | MDRV_SCREEN_ADD("main", RASTER) | |
| 213 | 215 | MDRV_SCREEN_REFRESH_RATE(60) |
| 214 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 215 | ||
| 216 | /* video hardware */ | |
| 217 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 216 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 218 | 217 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 219 | 218 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 220 | 219 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 32*8-1) |
| 220 | ||
| 221 | 221 | MDRV_GFXDECODE(hanaawas) |
| 222 | 222 | MDRV_PALETTE_LENGTH(32*8) |
| 223 | 223 |
| r1711 | r1712 | |
|---|---|---|
| 341 | 341 | |
| 342 | 342 | static WRITE8_HANDLER( vid_o2_callback ) |
| 343 | 343 | { |
| 344 | int clock = ptm6840_get_ext_clock(1, 1)/(ptm6840_get_count(1,1)?ptm6840_get_count(1,1):1) | |
| 345 | *ptm6840_get_ext_clock(1, 0)/(ptm6840_get_count(1,0)?ptm6840_get_count(1,0):1) | |
| 346 | *ptm6840_get_ext_clock(1, 2)/(ptm6840_get_count(1,2)?ptm6840_get_count(1,2):1); | |
| 347 | ||
| 344 | 348 | ptm6840_set_c3( 1, data); // copy output value to c3 |
| 349 | ||
| 350 | if (clock) | |
| 351 | { | |
| 352 | acia6850_set_rx_clock(0, clock); | |
| 353 | acia6850_set_tx_clock(0, clock); | |
| 354 | acia6850_set_rx_clock(1, clock); | |
| 355 | acia6850_set_tx_clock(1, clock); | |
| 356 | } | |
| 345 | 357 | } |
| 346 | 358 | |
| 347 | 359 | static WRITE8_HANDLER( vid_o3_callback ) |
| r1711 | r1712 | |
| 442 | 454 | |
| 443 | 455 | int x,y,count = 0; |
| 444 | 456 | |
| 445 | fillbitmap(bitmap, | |
| 457 | fillbitmap(bitmap, | |
| 446 | 458 | |
| 447 | 459 | for (i=0; i < 0x1000; i++) |
| 448 | 460 | { |
| r1711 | r1712 | |
| 987 | 999 | machine->gfx[mpu4_gfx_index+3] = allocgfx(&mpu4_vid_char_16x16_layout); |
| 988 | 1000 | |
| 989 | 1001 | /* set the color information */ |
| 990 | machine->gfx[mpu4_gfx_index+0]->total_colors = machine->drv->total_colors / 16; | |
| 991 | machine->gfx[mpu4_gfx_index+1]->total_colors = machine->drv->total_colors / 16; | |
| 992 | machine->gfx[mpu4_gfx_index+2]->total_colors = machine->drv->total_colors / 16; | |
| 993 | machine->gfx[mpu4_gfx_index+3]->total_colors = machine->drv->total_colors / 16; | |
| 1002 | machine->gfx[mpu4_gfx_index+0]->total_colors = machine->config->total_colors / 16; | |
| 1003 | machine->gfx[mpu4_gfx_index+1]->total_colors = machine->config->total_colors / 16; | |
| 1004 | machine->gfx[mpu4_gfx_index+2]->total_colors = machine->config->total_colors / 16; | |
| 1005 | machine->gfx[mpu4_gfx_index+3]->total_colors = machine->config->total_colors / 16; | |
| 994 | 1006 | |
| 995 | 1007 | scn2675_IR_pointer = 0; |
| 996 | 1008 | } |
| r1711 | r1712 | |
| 1450 | 1462 | ADDRESS_MAP_END |
| 1451 | 1463 | |
| 1452 | 1464 | //Deal 'Em was designed as an enhanced gamecard, to fit into an existing MPU4 cabinet |
| 1453 | //It's an unoffical addon, and does all its work through the existing 6809 CPU | |
| 1465 | //It's an unoffical addon, and does all its work through the existing 6809 CPU. | |
| 1466 | //Although given unofficial status, Barcrest's patent on the MPU4 Video hardware (GB1596363) describes | |
| 1467 | //the Deal 'Em board design, rather than the one they ultimately used. | |
| 1454 | 1468 | |
| 1455 | 1469 | static const gfx_layout dealemcharlayout = |
| 1456 | 1470 | { |
| r1711 | r1712 | |
| 1534 | 1548 | |
| 1535 | 1549 | static VIDEO_START(dealem) |
| 1536 | 1550 | { |
| 1537 | mc6845 = mc6845 | |
| 1551 | mc6845 = devtag_get_token(machine, MC6845, "crtc" | |
| 1538 | 1552 | } |
| 1539 | 1553 | |
| 1540 | 1554 | static VIDEO_UPDATE(dealem) |
| r1711 | r1712 | |
| 1607 | 1621 | |
| 1608 | 1622 | MDRV_INTERLEAVE(16) |
| 1609 | 1623 | /* video hardware */ |
| 1610 | MDRV_ | |
| 1624 | MDRV_SC | |
| 1611 | 1625 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1612 | 1626 | MDRV_SCREEN_SIZE(64*8, 64*8) |
| 1613 | 1627 | MDRV_SCREEN_VISIBLE_AREA(0*8, 63*8-1, 0*8, 37*8-1) |
| 1614 | 1628 | MDRV_SCREEN_REFRESH_RATE(50) |
| 1629 | ||
| 1615 | 1630 | MDRV_MACHINE_START(mpu4_vid) |
| 1616 | 1631 | MDRV_MACHINE_RESET(mpu4_vid) |
| 1617 | 1632 | MDRV_VIDEO_START (mpu4_vid) |
| r1711 | r1712 | |
| 1649 | 1664 | |
| 1650 | 1665 | MDRV_CPU_PERIODIC_INT(gen_50hz, 100) // generate 50 hz signal |
| 1651 | 1666 | |
| 1652 | MDRV_SCREEN_REFRESH_RATE(56)//Measured accurately from the flip-flop | |
| 1653 | 1667 | MDRV_CPU_VBLANK_INT(nmi_line_pulse, 1) |
| 1654 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 1655 | 1668 | |
| 1656 | 1669 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 1657 | 1670 | MDRV_SOUND_ADD_TAG("AY8913",AY8913, MPU4_MASTER_CLOCK/4) |
| r1711 | r1712 | |
| 1659 | 1672 | |
| 1660 | 1673 | MDRV_NVRAM_HANDLER(generic_0fill) // load/save nv RAM |
| 1661 | 1674 | /* video hardware */ |
| 1662 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1675 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1676 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 1663 | 1677 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1664 | 1678 | MDRV_SCREEN_SIZE((54+1)*8, (32+1)*8) /* Taken from MC6845 init, registers 00 & 04. Normally programmed with (value-1) */ |
| 1665 | 1679 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 31*8-1) /* Taken from MC6845 init, registers 01 & 06 */ |
| 1666 | 1680 | MDRV_SCREEN_REFRESH_RATE(50) |
| 1681 | ||
| 1667 | 1682 | MDRV_VIDEO_START( dealem) |
| 1668 | 1683 | MDRV_GFXDECODE(dealem) |
| 1669 | 1684 | MDRV_VIDEO_UPDATE(dealem) |
| 1670 | 1685 | |
| 1671 | 1686 | MDRV_PALETTE_LENGTH(32) |
| 1672 | MDRV_COLORTABLE_LENGTH(32) | |
| 1673 | 1687 | MDRV_PALETTE_INIT(dealem) |
| 1674 | 1688 | |
| 1689 | MDRV_DEVICE_ADD("crtc", MC6845) | |
| 1675 | 1690 | MACHINE_DRIVER_END |
| 1676 | 1691 | |
| 1677 | 1692 | static DRIVER_INIT (crmaze) |
| r1711 | r1712 | |
| 1955 | 1970 | GAME( 199?, bctvidbs,0, mpu4mod2, mpu4, 0, ROT0, "Barcrest", "MPU4 Video Firmware", GAME_IS_BIOS_ROOT ) |
| 1956 | 1971 | |
| 1957 | 1972 | GAME( 1994?,crmaze, bctvidbs,mpu4_vid, crmaze, crmaze,ROT0, "Barcrest", "The Crystal Maze: Team Challenge (SWP)", GAME_NOT_WORKING|GAME_NO_SOUND ) |
| 1958 | GAME( 1992?,crmazea, crmaze, mpu4_vid, crmaze, crmaze,ROT0, "Barcrest", "The Crystal Maze (AMLD version SWP)", GAME_NOT_WORKING|GAME_NO_SOUND ) | |
| 1959 | GAME( 1993?,crmazeb, crmaze, mpu4_vid, crmaze, 0, ROT0, "Barcrest", "The Crystal Maze - Now Featuring Ocean Zone (AMLD Version SWP)", GAME_NOT_WORKING|GAME_NO_SOUND ) // unprotected? | |
| 1973 | GAME( 1992?,crmazea, crmaze, mpu4_vid, crmaze, crmaze,ROT0, "Barcrest", "The Crystal Maze (AMLD Version)", GAME_NOT_WORKING|GAME_NO_SOUND ) | |
| 1974 | GAME( 1993?,crmazeb, crmaze, mpu4_vid, crmaze, 0, ROT0, "Barcrest", "The New Crystal Maze - Now Featuring Ocean Zone! (AMLD Version)", GAME_NOT_WORKING|GAME_NO_SOUND ) // unprotected? | |
| 1960 | 1975 | GAME( 1990, turnover,bctvidbs,mpu4_vid, mpu4, 0, ROT0, "Barcrest", "Turnover", GAME_NOT_WORKING|GAME_NO_SOUND ) // unprotected? |
| 1961 | 1976 | GAME( 1992, skiltrek,bctvidbs,mpu4_vid, mpu4, 0, ROT0, "Barcrest", "Skill Trek", GAME_NOT_WORKING|GAME_NO_SOUND ) // unprotected? |
| 1962 | 1977 | GAME( 1990, timemchn,bctvidbs,mpu4_vid, mpu4, 0, ROT0, "Barcrest", "Time Machine v2.0", GAME_NOT_WORKING|GAME_NO_SOUND ) // unprotected? |
| r1711 | r1712 | |
|---|---|---|
| 377 | 377 | MDRV_CPU_PROGRAM_MAP(snd_readmem,snd_writemem) |
| 378 | 378 | MDRV_CPU_IO_MAP(snd_readport,snd_writeport) |
| 379 | 379 | |
| 380 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 381 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 382 | ||
| 383 | 380 | #if AQUARIUS_HACK |
| 384 | 381 | MDRV_MACHINE_RESET(aquarium) |
| 385 | 382 | #endif |
| 386 | 383 | |
| 387 | 384 | /* video hardware */ |
| 388 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 385 | MDRV_SCREEN_ADD("main", RASTER) | |
| 386 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 387 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 389 | 388 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 390 | 389 | MDRV_SCREEN_SIZE(64*8, 64*8) |
| 391 | 390 | MDRV_SCREEN_VISIBLE_AREA(2*8, 42*8-1, 2*8, 34*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 3805 | 3805 | MDRV_CPU_PROGRAM_MAP(balcube_readmem,balcube_writemem) |
| 3806 | 3806 | MDRV_CPU_VBLANK_INT(metro_interrupt,10) /* ? */ |
| 3807 | 3807 | |
| 3808 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3809 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 3810 | ||
| 3811 | 3808 | MDRV_MACHINE_RESET(metro) |
| 3812 | 3809 | |
| 3813 | 3810 | /* video hardware */ |
| 3814 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 3811 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3812 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3813 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 3815 | 3814 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3816 | 3815 | MDRV_SCREEN_SIZE(320, 224) |
| 3817 | 3816 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 0, 224-1) |
| 3817 | ||
| 3818 | 3818 | MDRV_GFXDECODE(14220) |
| 3819 | 3819 | MDRV_PALETTE_LENGTH(8192) |
| 3820 | 3820 | |
| r1711 | r1712 | |
| 3838 | 3838 | MDRV_CPU_PROGRAM_MAP(bangball_readmem,bangball_writemem) |
| 3839 | 3839 | MDRV_CPU_VBLANK_INT(bangball_interrupt,1) |
| 3840 | 3840 | |
| 3841 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3842 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 3843 | ||
| 3844 | 3841 | MDRV_MACHINE_RESET(metro) |
| 3845 | 3842 | |
| 3846 | 3843 | /* video hardware */ |
| 3847 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 3844 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3845 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3846 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 3848 | 3847 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3849 | 3848 | MDRV_SCREEN_SIZE(320, 224) |
| 3850 | 3849 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 0, 224-1) |
| 3850 | ||
| 3851 | 3851 | MDRV_GFXDECODE(14220) |
| 3852 | 3852 | MDRV_PALETTE_LENGTH(8192) |
| 3853 | 3853 | |
| r1711 | r1712 | |
| 3871 | 3871 | MDRV_CPU_PROGRAM_MAP(batlbubl_readmem,batlbubl_writemem) |
| 3872 | 3872 | MDRV_CPU_VBLANK_INT(bangball_interrupt,1) |
| 3873 | 3873 | |
| 3874 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3875 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 3876 | ||
| 3877 | 3874 | MDRV_MACHINE_RESET(metro) |
| 3878 | 3875 | |
| 3879 | 3876 | /* video hardware */ |
| 3880 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 3877 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3878 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3879 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 3881 | 3880 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3882 | 3881 | MDRV_SCREEN_SIZE(320, 224) |
| 3883 | 3882 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 0, 224-1) |
| 3883 | ||
| 3884 | 3884 | MDRV_GFXDECODE(14220) |
| 3885 | 3885 | MDRV_PALETTE_LENGTH(8192) |
| 3886 | 3886 | |
| r1711 | r1712 | |
| 3909 | 3909 | MDRV_CPU_PROGRAM_MAP(daitorid_snd_readmem,daitorid_snd_writemem) |
| 3910 | 3910 | MDRV_CPU_IO_MAP(daitorid_snd_readport,daitorid_snd_writeport) |
| 3911 | 3911 | |
| 3912 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 3913 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 3914 | ||
| 3915 | 3912 | MDRV_MACHINE_RESET(metro) |
| 3916 | 3913 | |
| 3917 | 3914 | /* video hardware */ |
| 3918 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 3915 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3916 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 3917 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 3919 | 3918 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3920 | 3919 | MDRV_SCREEN_SIZE(320, 224) |
| 3921 | 3920 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 0, 224-1) |
| 3921 | ||
| 3922 | 3922 | MDRV_GFXDECODE(14220) |
| 3923 | 3923 | MDRV_PALETTE_LENGTH(8192) |
| 3924 | 3924 | |
| r1711 | r1712 | |
| 3953 | 3953 | MDRV_CPU_PROGRAM_MAP(metro_snd_readmem,metro_snd_writemem) |
| 3954 | 3954 | MDRV_CPU_IO_MAP(metro_snd_readport,metro_snd_writeport) |
| 3955 | 3955 | |
| 3956 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3957 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 3958 | ||
| 3959 | 3956 | MDRV_MACHINE_RESET(metro) |
| 3960 | 3957 | |
| 3961 | 3958 | /* video hardware */ |
| 3962 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 3959 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3960 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3961 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 3963 | 3962 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3964 | 3963 | MDRV_SCREEN_SIZE(320, 224) |
| 3965 | 3964 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 0, 224-1) |
| 3965 | ||
| 3966 | 3966 | MDRV_GFXDECODE(14100) |
| 3967 | 3967 | MDRV_PALETTE_LENGTH(8192) |
| 3968 | 3968 | |
| r1711 | r1712 | |
| 3996 | 3996 | MDRV_CPU_PROGRAM_MAP(metro_snd_readmem,metro_snd_writemem) |
| 3997 | 3997 | MDRV_CPU_IO_MAP(metro_snd_readport,metro_snd_writeport) |
| 3998 | 3998 | |
| 3999 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 4000 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 4001 | ||
| 4002 | 3999 | MDRV_MACHINE_RESET(metro) |
| 4003 | 4000 | |
| 4004 | 4001 | /* video hardware */ |
| 4005 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 4002 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4003 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 4004 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 4006 | 4005 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 4007 | 4006 | MDRV_SCREEN_SIZE(320, 240) |
| 4008 | 4007 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 0, 240-1) |
| 4008 | ||
| 4009 | 4009 | MDRV_GFXDECODE(14100) |
| 4010 | 4010 | MDRV_PALETTE_LENGTH(8192) |
| 4011 | 4011 | |
| r1711 | r1712 | |
| 4039 | 4039 | MDRV_CPU_PROGRAM_MAP(metro_snd_readmem,metro_snd_writemem) |
| 4040 | 4040 | MDRV_CPU_IO_MAP(metro_snd_readport,metro_snd_writeport) |
| 4041 | 4041 | |
| 4042 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 4043 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 4044 | ||
| 4045 | 4042 | MDRV_MACHINE_RESET(metro) |
| 4046 | 4043 | |
| 4047 | 4044 | /* video hardware */ |
| 4048 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 4045 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4046 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 4047 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 4049 | 4048 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 4050 | 4049 | MDRV_SCREEN_SIZE(320, 240) |
| 4051 | 4050 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 0, 240-1) |
| 4051 | ||
| 4052 | 4052 | MDRV_GFXDECODE(14220) |
| 4053 | 4053 | MDRV_PALETTE_LENGTH(8192) |
| 4054 | 4054 | |
| r1711 | r1712 | |
| 4082 | 4082 | MDRV_CPU_PROGRAM_MAP(metro_snd_readmem,metro_snd_writemem) |
| 4083 | 4083 | MDRV_CPU_IO_MAP(metro_snd_readport,metro_snd_writeport) |
| 4084 | 4084 | |
| 4085 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 4086 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 4087 | ||
| 4088 | 4085 | MDRV_MACHINE_RESET(metro) |
| 4089 | 4086 | |
| 4090 | 4087 | /* video hardware */ |
| 4091 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 4088 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4089 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 4090 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 4092 | 4091 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 4093 | 4092 | MDRV_SCREEN_SIZE(360, 224) |
| 4094 | 4093 | MDRV_SCREEN_VISIBLE_AREA(0, 360-1, 0, 224-1) |
| 4094 | ||
| 4095 | 4095 | MDRV_GFXDECODE(14100) |
| 4096 | 4096 | MDRV_PALETTE_LENGTH(8192) |
| 4097 | 4097 | |
| r1711 | r1712 | |
| 4124 | 4124 | MDRV_CPU_PROGRAM_MAP(metro_snd_readmem,metro_snd_writemem) |
| 4125 | 4125 | MDRV_CPU_IO_MAP(metro_snd_readport,metro_snd_writeport) |
| 4126 | 4126 | |
| 4127 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 4128 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 4129 | ||
| 4130 | 4127 | MDRV_MACHINE_RESET(metro) |
| 4131 | 4128 | |
| 4132 | 4129 | /* video hardware */ |
| 4133 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 4130 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4131 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 4132 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 4134 | 4133 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 4135 | 4134 | MDRV_SCREEN_SIZE(360, 224) |
| 4136 | 4135 | MDRV_SCREEN_VISIBLE_AREA(0, 360-1, 0, 224-1) |
| 4136 | ||
| 4137 | 4137 | MDRV_GFXDECODE(14100) |
| 4138 | 4138 | MDRV_PALETTE_LENGTH(8192) |
| 4139 | 4139 | |
| r1711 | r1712 | |
| 4160 | 4160 | MDRV_CPU_PROGRAM_MAP(dokyusei_readmem,dokyusei_writemem) |
| 4161 | 4161 | MDRV_CPU_VBLANK_INT(dokyusei_interrupt,2) /* ? */ |
| 4162 | 4162 | |
| 4163 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 4164 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 4165 | ||
| 4166 | 4163 | MDRV_MACHINE_RESET(metro) |
| 4167 | 4164 | |
| 4168 | 4165 | /* video hardware */ |
| 4169 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 4166 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4167 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 4168 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 4170 | 4169 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 4171 | 4170 | MDRV_SCREEN_SIZE(320, 256-32) |
| 4172 | 4171 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 0, 256-32-1) |
| 4172 | ||
| 4173 | 4173 | MDRV_GFXDECODE(14300) |
| 4174 | 4174 | MDRV_PALETTE_LENGTH(8192) |
| 4175 | 4175 | |
| r1711 | r1712 | |
| 4210 | 4210 | MDRV_CPU_PROGRAM_MAP(dokyusp_readmem,dokyusp_writemem) |
| 4211 | 4211 | MDRV_CPU_VBLANK_INT(gakusai_interrupt,1) |
| 4212 | 4212 | |
| 4213 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 4214 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 4215 | ||
| 4216 | 4213 | MDRV_MACHINE_RESET(metro) |
| 4217 | 4214 | MDRV_NVRAM_HANDLER(dokyusp) |
| 4218 | 4215 | |
| 4219 | 4216 | /* video hardware */ |
| 4220 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 4217 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4218 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 4219 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 4221 | 4220 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 4222 | 4221 | MDRV_SCREEN_SIZE(384, 256-32) |
| 4223 | 4222 | MDRV_SCREEN_VISIBLE_AREA(0, 384-1, 0, 256-32-1) |
| 4223 | ||
| 4224 | 4224 | MDRV_GFXDECODE(14300) |
| 4225 | 4225 | MDRV_PALETTE_LENGTH(8192) |
| 4226 | 4226 | |
| r1711 | r1712 | |
| 4248 | 4248 | MDRV_CPU_PROGRAM_MAP(gakusai_readmem,gakusai_writemem) |
| 4249 | 4249 | MDRV_CPU_VBLANK_INT(gakusai_interrupt,1) |
| 4250 | 4250 | |
| 4251 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 4252 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 4253 | ||
| 4254 | 4251 | MDRV_MACHINE_RESET(metro) |
| 4255 | 4252 | MDRV_NVRAM_HANDLER(93C46) |
| 4256 | 4253 | |
| 4257 | 4254 | /* video hardware */ |
| 4258 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 4255 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4256 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 4257 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 4259 | 4258 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 4260 | 4259 | MDRV_SCREEN_SIZE(320, 240) |
| 4261 | 4260 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 0, 240-1) |
| 4261 | ||
| 4262 | 4262 | MDRV_GFXDECODE(14300) |
| 4263 | 4263 | MDRV_PALETTE_LENGTH(8192) |
| 4264 | 4264 | |
| r1711 | r1712 | |
| 4286 | 4286 | MDRV_CPU_PROGRAM_MAP(gakusai2_readmem,gakusai2_writemem) |
| 4287 | 4287 | MDRV_CPU_VBLANK_INT(gakusai_interrupt,1) |
| 4288 | 4288 | |
| 4289 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 4290 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 4291 | ||
| 4292 | 4289 | MDRV_MACHINE_RESET(metro) |
| 4293 | 4290 | MDRV_NVRAM_HANDLER(93C46) |
| 4294 | 4291 | |
| 4295 | 4292 | /* video hardware */ |
| 4296 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 4293 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4294 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 4295 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 4297 | 4296 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 4298 | 4297 | MDRV_SCREEN_SIZE(320, 240) |
| 4299 | 4298 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 0, 240-1) |
| 4299 | ||
| 4300 | 4300 | MDRV_GFXDECODE(14300) |
| 4301 | 4301 | MDRV_PALETTE_LENGTH(8192) |
| 4302 | 4302 | |
| r1711 | r1712 | |
| 4330 | 4330 | MDRV_CPU_PROGRAM_MAP(metro_snd_readmem,metro_snd_writemem) |
| 4331 | 4331 | MDRV_CPU_IO_MAP(metro_snd_readport,metro_snd_writeport) |
| 4332 | 4332 | |
| 4333 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 4334 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 4335 | ||
| 4336 | 4333 | MDRV_MACHINE_RESET(metro) |
| 4337 | 4334 | |
| 4338 | 4335 | /* video hardware */ |
| 4339 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 4336 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4337 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 4338 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 4340 | 4339 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 4341 | 4340 | MDRV_SCREEN_SIZE(360, 224) |
| 4342 | 4341 | MDRV_SCREEN_VISIBLE_AREA(0, 360-1, 0, 224-1) |
| 4342 | ||
| 4343 | 4343 | MDRV_GFXDECODE(14100) |
| 4344 | 4344 | MDRV_PALETTE_LENGTH(8192) |
| 4345 | 4345 | |
| r1711 | r1712 | |
| 4373 | 4373 | MDRV_CPU_PROGRAM_MAP(metro_snd_readmem,metro_snd_writemem) |
| 4374 | 4374 | MDRV_CPU_IO_MAP(metro_snd_readport,metro_snd_writeport) |
| 4375 | 4375 | |
| 4376 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 4377 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 4378 | ||
| 4379 | 4376 | MDRV_MACHINE_RESET(metro) |
| 4380 | 4377 | |
| 4381 | 4378 | /* video hardware */ |
| 4382 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 4379 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4380 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 4381 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 4383 | 4382 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 4384 | 4383 | MDRV_SCREEN_SIZE(360, 224) |
| 4385 | 4384 | MDRV_SCREEN_VISIBLE_AREA(0, 360-1, 0, 224-1) |
| 4385 | ||
| 4386 | 4386 | MDRV_GFXDECODE(14100) |
| 4387 | 4387 | MDRV_PALETTE_LENGTH(8192) |
| 4388 | 4388 | |
| r1711 | r1712 | |
| 4416 | 4416 | MDRV_CPU_PROGRAM_MAP(daitorid_snd_readmem,daitorid_snd_writemem) |
| 4417 | 4417 | MDRV_CPU_IO_MAP(daitorid_snd_readport,daitorid_snd_writeport) |
| 4418 | 4418 | |
| 4419 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 4420 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 4421 | ||
| 4422 | 4419 | MDRV_MACHINE_RESET(metro) |
| 4423 | 4420 | |
| 4424 | 4421 | /* video hardware */ |
| 4425 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 4422 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4423 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 4424 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 4426 | 4425 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 4427 | 4426 | MDRV_SCREEN_SIZE(320, 224) |
| 4428 | 4427 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 0, 224-1) |
| 4428 | ||
| 4429 | 4429 | MDRV_GFXDECODE(14100) |
| 4430 | 4430 | MDRV_PALETTE_LENGTH(8192) |
| 4431 | 4431 | |
| r1711 | r1712 | |
| 4460 | 4460 | MDRV_CPU_PROGRAM_MAP(metro_snd_readmem,metro_snd_writemem) |
| 4461 | 4461 | MDRV_CPU_IO_MAP(metro_snd_readport,metro_snd_writeport) |
| 4462 | 4462 | |
| 4463 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 4464 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 4465 | ||
| 4466 | 4463 | MDRV_MACHINE_RESET(metro) |
| 4467 | 4464 | |
| 4468 | 4465 | /* video hardware */ |
| 4469 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 4466 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4467 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 4468 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 4470 | 4469 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 4471 | 4470 | MDRV_SCREEN_SIZE(360, 224) |
| 4472 | 4471 | MDRV_SCREEN_VISIBLE_AREA(0, 360-1, 0, 224-1) |
| 4472 | ||
| 4473 | 4473 | MDRV_GFXDECODE(14100) |
| 4474 | 4474 | MDRV_PALETTE_LENGTH(8192) |
| 4475 | 4475 | |
| r1711 | r1712 | |
| 4503 | 4503 | MDRV_CPU_PROGRAM_MAP(metro_snd_readmem,metro_snd_writemem) |
| 4504 | 4504 | MDRV_CPU_IO_MAP(metro_snd_readport,metro_snd_writeport) |
| 4505 | 4505 | |
| 4506 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 4507 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 4508 | ||
| 4509 | 4506 | MDRV_MACHINE_RESET(metro) |
| 4510 | 4507 | |
| 4511 | 4508 | /* video hardware */ |
| 4512 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 4509 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4510 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 4511 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 4513 | 4512 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 4514 | 4513 | MDRV_SCREEN_SIZE(320, 224) |
| 4515 | 4514 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 0, 224-1) |
| 4515 | ||
| 4516 | 4516 | MDRV_GFXDECODE(14100) |
| 4517 | 4517 | MDRV_PALETTE_LENGTH(8192) |
| 4518 | 4518 | |
| r1711 | r1712 | |
| 4540 | 4540 | MDRV_CPU_PROGRAM_MAP(mouja_readmem,mouja_writemem) |
| 4541 | 4541 | MDRV_CPU_VBLANK_INT(mouja_interrupt,1) |
| 4542 | 4542 | |
| 4543 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 4544 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 4545 | ||
| 4546 | 4543 | MDRV_MACHINE_RESET(metro) |
| 4547 | 4544 | |
| 4548 | 4545 | /* video hardware */ |
| 4549 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 4546 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4547 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 4548 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 4550 | 4549 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 4551 | 4550 | MDRV_SCREEN_SIZE(512, 256) |
| 4552 | 4551 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 0, 224-1) |
| 4552 | ||
| 4553 | 4553 | MDRV_GFXDECODE(14300) |
| 4554 | 4554 | MDRV_PALETTE_LENGTH(8192) |
| 4555 | 4555 | |
| r1711 | r1712 | |
| 4581 | 4581 | MDRV_CPU_PROGRAM_MAP(blzntrnd_sound_readmem, blzntrnd_sound_writemem) |
| 4582 | 4582 | MDRV_CPU_IO_MAP(blzntrnd_sound_readport, blzntrnd_sound_writeport) |
| 4583 | 4583 | |
| 4584 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 4585 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 4586 | ||
| 4587 | 4584 | MDRV_MACHINE_RESET(metro) |
| 4588 | 4585 | |
| 4589 | 4586 | /* video hardware */ |
| 4590 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 4587 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4588 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 4589 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 4591 | 4590 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 4592 | 4591 | MDRV_SCREEN_SIZE(320, 224) |
| 4593 | 4592 | MDRV_SCREEN_VISIBLE_AREA(8, 320-8-1, 0, 224-1) |
| 4593 | ||
| 4594 | 4594 | MDRV_GFXDECODE(blzntrnd) |
| 4595 | 4595 | MDRV_PALETTE_LENGTH(8192) |
| 4596 | 4596 | |
| r1711 | r1712 | |
| 4621 | 4621 | MDRV_CPU_PROGRAM_MAP(blzntrnd_sound_readmem, blzntrnd_sound_writemem) |
| 4622 | 4622 | MDRV_CPU_IO_MAP(blzntrnd_sound_readport, blzntrnd_sound_writeport) |
| 4623 | 4623 | |
| 4624 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 4625 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 4626 | ||
| 4627 | 4624 | MDRV_MACHINE_RESET(metro) |
| 4628 | 4625 | |
| 4629 | 4626 | /* video hardware */ |
| 4630 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 4627 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4628 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 4629 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 4631 | 4630 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 4632 | 4631 | MDRV_SCREEN_SIZE(320, 224) |
| 4633 | 4632 | MDRV_SCREEN_VISIBLE_AREA(8, 320-8-1, 0, 224-1) |
| 4633 | ||
| 4634 | 4634 | MDRV_GFXDECODE(gstrik2) |
| 4635 | 4635 | MDRV_PALETTE_LENGTH(8192) |
| 4636 | 4636 | |
| r1711 | r1712 | |
| 4688 | 4688 | MDRV_CPU_IO_MAP(puzzlet_io_map,0) |
| 4689 | 4689 | MDRV_CPU_VBLANK_INT(puzzlet_interrupt, 5) |
| 4690 | 4690 | |
| 4691 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 4692 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 4693 | ||
| 4694 | 4691 | MDRV_MACHINE_RESET(metro) |
| 4695 | 4692 | |
| 4696 | 4693 | /* video hardware */ |
| 4697 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 4694 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4695 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 4696 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 4698 | 4697 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 4699 | 4698 | MDRV_SCREEN_SIZE(320, 256-32) |
| 4700 | 4699 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 0, 256-32-1) |
| 4700 | ||
| 4701 | 4701 | MDRV_GFXDECODE(14300) |
| 4702 | 4702 | MDRV_PALETTE_LENGTH(8192) |
| 4703 | 4703 |
| r1711 | r1712 | |
|---|---|---|
| 289 | 289 | |
| 290 | 290 | /* Input Ports */ |
| 291 | 291 | |
| 292 | /* Here is the way to access to the different parts of the "test mode" : | |
| 293 | ||
| 294 | - sound : set "Coin A" Dip Switch to "Free Play" and "Coin B" Dip Switch to "Free Play" | |
| 295 | - paddle : set "Coin A" Dip Switch to "3C_1C" and "Coin B" Dip Switch to "Free Play" | |
| 296 | ||
| 297 | If use different settings, you'll only see a black screen. | |
| 298 | ||
| 299 | I haven't found how to exit the tests. The only way seems to reset the game. | |
| 300 | */ | |
| 301 | ||
| 302 | 292 | #define ANGELDSK_PLAYERS_INPUT( player ) \ |
| 303 | 293 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_UP ) PORT_PLAYER(player) PORT_8WAY \ |
| 304 | 294 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_DOWN ) PORT_PLAYER(player) PORT_8WAY \ |
| r1711 | r1712 | |
| 321 | 311 | |
| 322 | 312 | |
| 323 | 313 | static INPUT_PORTS_START( angelkds ) |
| 314 | /* | |
| 315 | Free Play: Set SW1:1-8 ON (A:Free Play & B:Free Play). | |
| 316 | Sound Test: Set SW1:1-8 ON (A:Free Play & B:Free Play), hold test switch and reboot. | |
| 317 | Joystick Test: Set SW1:1-7 ON & SW1:8 OFF (A:Free Play & B:3C_1C), hold test switch and reboot. | |
| 318 | Joystick Test Coin_A & Coin_B seem to be switched, only works when setting A to 3C_1C and B to Free Play. | |
| 319 | */ | |
| 324 | 320 | PORT_START_TAG("I40") /* inport $40 */ |
| 325 | PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_A ) ) | |
| 321 | PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:1,2,3,4") | |
| 326 | 322 | PORT_DIPSETTING( 0x70, DEF_STR( 4C_1C ) ) |
| 327 | 323 | PORT_DIPSETTING( 0x80, DEF_STR( 3C_1C ) ) |
| 328 | 324 | PORT_DIPSETTING( 0x90, DEF_STR( 2C_1C ) ) |
| r1711 | r1712 | |
| 338 | 334 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_4C ) ) |
| 339 | 335 | PORT_DIPSETTING( 0xb0, DEF_STR( 1C_5C ) ) |
| 340 | 336 | PORT_DIPSETTING( 0xa0, DEF_STR( 1C_6C ) ) |
| 341 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) | |
| 337 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) | |
| 342 | 338 | |
| 343 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_B ) ) | |
| 339 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:5,6,7,8") | |
| 344 | 340 | PORT_DIPSETTING( 0x07, DEF_STR( 4C_1C ) ) |
| 345 | 341 | PORT_DIPSETTING( 0x08, DEF_STR( 3C_1C ) ) |
| 346 | 342 | PORT_DIPSETTING( 0x09, DEF_STR( 2C_1C ) ) |
| r1711 | r1712 | |
| 359 | 355 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) |
| 360 | 356 | |
| 361 | 357 | PORT_START_TAG("I41") /* inport $41 */ |
| 362 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) | |
| 358 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW2:1") | |
| 363 | 359 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 364 | 360 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| 365 | PORT_DIPNAME( 0x02, 0x00, "Hi Score" ) | |
| 366 | PORT_DIPSETTING( 0x00, "3 Characters" ) | |
| 367 | PORT_DIPSETTING( 0x02, "10 Characters" ) | |
| 368 | PORT_DIPNAME( 0x0c, 0x08, DEF_STR( Bonus_Life ) ) | |
| 361 | PORT_DIPNAME( 0x02, 0x00, "High Score Characters" ) PORT_DIPLOCATION("SW2:2") | |
| 362 | PORT_DIPSETTING( 0x00, "3" ) | |
| 363 | PORT_DIPSETTING( 0x02, "10" ) | |
| 364 | PORT_DIPNAME( 0x0c, 0x08, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW2:3,4") | |
| 369 | 365 | PORT_DIPSETTING( 0x0c, "20k, 50k, 100k, 200k and 500k" ) |
| 370 | 366 | PORT_DIPSETTING( 0x08, "50k, 100k, 200k and 500k" ) |
| 371 | 367 | PORT_DIPSETTING( 0x04, "100k, 200k and 500k" ) |
| 372 | 368 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) |
| 373 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Lives ) ) | |
| 369 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:5,6") | |
| 374 | 370 | PORT_DIPSETTING( 0x30, "3" ) |
| 375 | 371 | PORT_DIPSETTING( 0x20, "4" ) |
| 376 | 372 | PORT_DIPSETTING( 0x10, "5" ) |
| 377 | 373 | PORT_DIPSETTING( 0x00, "99 (Cheat)" ) |
| 378 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Difficulty ) ) /* Stored at 0xc023 */ | |
| 374 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:7,8") /* Stored at 0xc023 */ | |
| 379 | 375 | PORT_DIPSETTING( 0xc0, DEF_STR( Very_Easy ) ) |
| 380 | 376 | PORT_DIPSETTING( 0x40, DEF_STR( Easy ) ) |
| 381 | 377 | PORT_DIPSETTING( 0x80, DEF_STR( Hard ) ) |
| r1711 | r1712 | |
| 428 | 424 | |
| 429 | 425 | static INPUT_PORTS_START( spcpostn ) |
| 430 | 426 | PORT_START_TAG("I40") /* inport $40 */ |
| 431 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) | |
| 427 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:1,2,3,4") | |
| 432 | 428 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| 433 | 429 | PORT_DIPSETTING( 0x05, DEF_STR( 3C_1C ) ) |
| 434 | 430 | PORT_DIPSETTING( 0x08, DEF_STR( 2C_1C ) ) |
| r1711 | r1712 | |
| 445 | 441 | PORT_DIPSETTING( 0x0a, DEF_STR( 1C_6C ) ) |
| 446 | 442 | PORT_DIPSETTING( 0x09, DEF_STR( 1C_7C ) ) |
| 447 | 443 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) |
| 448 | PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_B ) ) | |
| 444 | PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:5,6,7,8") | |
| 449 | 445 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 450 | 446 | PORT_DIPSETTING( 0x20, DEF_STR( 4C_1C ) ) |
| 451 | 447 | PORT_DIPSETTING( 0x50, DEF_STR( 3C_1C ) ) |
| r1711 | r1712 | |
| 464 | 460 | PORT_DIPSETTING( 0x90, DEF_STR( 1C_7C ) ) |
| 465 | 461 | |
| 466 | 462 | PORT_START_TAG("I41") /* inport $41 */ |
| 467 | PORT_DIPNAME( 0x01, 0x01, DEF_STR(Allow_Continue ) ) | |
| 463 | PORT_DIPNAME( 0x01, 0x01, DEF_STR(Allow_Continue ) ) PORT_DIPLOCATION("SW2:1") | |
| 468 | 464 | PORT_DIPSETTING( 0x01, DEF_STR( No ) ) |
| 469 | 465 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) |
| 470 | PORT_DIPNAME( 0x02, 0x02, "Obstruction Car" ) | |
| 466 | PORT_DIPNAME( 0x02, 0x02, "Obstruction Car" ) PORT_DIPLOCATION("SW2:2") | |
| 471 | 467 | PORT_DIPSETTING( 0x02, DEF_STR( Normal ) ) |
| 472 | 468 | PORT_DIPSETTING( 0x00, DEF_STR( Hard ) ) |
| 473 | PORT_DIPNAME( 0x0c, 0x08, "Time Limit" ) | |
| 469 | PORT_DIPNAME( 0x0c, 0x08, "Time Limit" ) PORT_DIPLOCATION("SW2:3,4") | |
| 474 | 470 | PORT_DIPSETTING( 0x00, "1:10" ) |
| 475 | 471 | PORT_DIPSETTING( 0x04, "1:20" ) |
| 476 | 472 | PORT_DIPSETTING( 0x08, "1:30" ) |
| 477 | 473 | PORT_DIPSETTING( 0x0c, "1:40" ) |
| 478 | PORT_DIPNAME( 0x30, 0x20, "Power Down" ) | |
| 474 | PORT_DIPNAME( 0x30, 0x20, "Power Down" ) PORT_DIPLOCATION("SW2:5,6") | |
| 479 | 475 | PORT_DIPSETTING( 0x30, "Slow" ) |
| 480 | 476 | PORT_DIPSETTING( 0x20, DEF_STR( Normal ) ) |
| 481 | 477 | PORT_DIPSETTING( 0x10, "Fast" ) |
| 482 | 478 | PORT_DIPSETTING( 0x00, "Fastest" ) |
| 483 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 479 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:7") | |
| 484 | 480 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) |
| 485 | 481 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 486 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) | |
| 487 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 488 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 482 | PORT_DIPUNUSED_DIPLOC( 0x80, 0x80, "SW2:8" ) /* Listed as "Unused" */ | |
| 489 | 483 | |
| 490 | 484 | PORT_START_TAG("I42") /* inport $42 */ |
| 491 | 485 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r1711 | r1712 | |
| 631 | 625 | MDRV_CPU_PROGRAM_MAP(readmem_sub,writemem_sub) |
| 632 | 626 | MDRV_CPU_IO_MAP(readport_sub,writeport_sub) |
| 633 | 627 | |
| 634 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 635 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 636 | 628 | MDRV_INTERLEAVE(100) |
| 637 | 629 | |
| 638 | 630 | /* video hardware */ |
| 639 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 631 | MDRV_SCREEN_ADD("main", RASTER) | |
| 632 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 633 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 640 | 634 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 641 | 635 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 642 | 636 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 271 | 271 | MDRV_CPU_IO_MAP(port_map,0) |
| 272 | 272 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 273 | 273 | |
| 274 | /* video hardware */ | |
| 275 | MDRV_SCREEN_ADD("main", RASTER) | |
| 274 | 276 | MDRV_SCREEN_REFRESH_RATE(60.606060) |
| 275 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 276 | ||
| 277 | /* video hardware */ | |
| 278 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 277 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 279 | 278 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 280 | 279 | MDRV_SCREEN_SIZE(36*8, 28*8) |
| 281 | 280 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 0*8, 28*8-1) |
| 281 | ||
| 282 | 282 | MDRV_GFXDECODE(jrpacman) |
| 283 | 283 | MDRV_PALETTE_LENGTH(128*4) |
| 284 | 284 |
| r1711 | r1712 | |
|---|---|---|
| 140 | 140 | MDRV_CPU_PROGRAM_MAP(genesis_z80_readmem, genesis_z80_writemem) |
| 141 | 141 | MDRV_CPU_VBLANK_INT(irq0_line_hold, 1) /* from vdp at scanline 0xe0 */ |
| 142 | 142 | |
| 143 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 144 | ||
| 145 | 143 | MDRV_INTERLEAVE(100) |
| 146 | 144 | |
| 147 | 145 | MDRV_MACHINE_START(genesis) |
| 148 | 146 | MDRV_MACHINE_RESET(genesis) |
| 149 | 147 | |
| 150 | 148 | /* video hardware */ |
| 151 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS) | |
| 149 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS) | |
| 150 | ||
| 151 | MDRV_SCREEN_ADD("main", RASTER) | |
| 152 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 152 | 153 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 153 | 154 | MDRV_SCREEN_SIZE(342,262) |
| 154 | 155 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 223) |
| 156 | ||
| 155 | 157 | MDRV_PALETTE_LENGTH(64) |
| 156 | 158 | |
| 157 | 159 | MDRV_VIDEO_START(genesis) |
| r1711 | r1712 | |
|---|---|---|
| 310 | 310 | MDRV_CPU_ADD(Z80,14318180/4) |
| 311 | 311 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 312 | 312 | |
| 313 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 314 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 315 | 313 | MDRV_MACHINE_START(circusc) |
| 316 | 314 | MDRV_MACHINE_RESET(circusc) |
| 317 | 315 | |
| 318 | 316 | /* video hardware */ |
| 319 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 317 | MDRV_SCREEN_ADD("main", RASTER) | |
| 318 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 319 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 320 | 320 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 321 | 321 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 322 | 322 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 323 | ||
| 323 | 324 | MDRV_GFXDECODE(circusc) |
| 324 | 325 | MDRV_PALETTE_LENGTH(16*16+16*16) |
| 325 | 326 |
| r1711 | r1712 | |
|---|---|---|
| 35 | 35 | for(x=0;x<128;x++) |
| 36 | 36 | { |
| 37 | 37 | if (vram2[y*128+x]&0xf) |
| 38 | *BITMAP_ADDR16(bitmap, y, x*2) = | |
| 38 | *BITMAP_ADDR16(bitmap, y, x*2) = ( | |
| 39 | 39 | else |
| 40 | *BITMAP_ADDR16(bitmap, y, x*2) = | |
| 40 | *BITMAP_ADDR16(bitmap, y, x*2) = ( | |
| 41 | 41 | |
| 42 | 42 | if (vram2[y*128+x]>>4) |
| 43 | *BITMAP_ADDR16(bitmap, y, x*2+1) = | |
| 43 | *BITMAP_ADDR16(bitmap, y, x*2+1) = ( | |
| 44 | 44 | else |
| 45 | *BITMAP_ADDR16(bitmap, y, x*2+1) = | |
| 45 | *BITMAP_ADDR16(bitmap, y, x*2+1) = ( | |
| 46 | 46 | } |
| 47 | 47 | return 0; |
| 48 | 48 | } |
| r1711 | r1712 | |
| 133 | 133 | MDRV_CPU_IO_MAP(laserbas_io,0) |
| 134 | 134 | MDRV_CPU_VBLANK_INT(laserbas_interrupt,2) |
| 135 | 135 | |
| 136 | ||
| 137 | MDRV_SCREEN_ADD("main", RASTER) | |
| 136 | 138 | MDRV_SCREEN_REFRESH_RATE(60) |
| 137 | ||
| 138 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 139 | 139 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 140 | 140 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 141 | 141 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 32*8-1) |
| 142 | ||
| 142 | 143 | MDRV_PALETTE_LENGTH(32) |
| 143 | 144 | MDRV_VIDEO_START(laserbas) |
| 144 | 145 | MDRV_VIDEO_UPDATE(laserbas) |
| r1711 | r1712 | |
|---|---|---|
| 253 | 253 | /* audio CPU */ |
| 254 | 254 | MDRV_CPU_PROGRAM_MAP(sound_map, 0) |
| 255 | 255 | |
| 256 | // video hardware | |
| 257 | ||
| 258 | MDRV_SCREEN_ADD("main", RASTER) | |
| 256 | 259 | MDRV_SCREEN_REFRESH_RATE(60) |
| 257 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 258 | ||
| 259 | // video hardware | |
| 260 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 260 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 261 | 261 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 262 | 262 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 263 | 263 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 264 | ||
| 264 | 265 | MDRV_GFXDECODE(mikie) |
| 265 | MDRV_PALETTE_LENGTH(256) | |
| 266 | MDRV_COLORTABLE_LENGTH(16*8*16+16*8*16) | |
| 266 | MDRV_PALETTE_LENGTH(16*8*16+16*8*16) | |
| 267 | 267 | |
| 268 | 268 | MDRV_PALETTE_INIT(mikie) |
| 269 | 269 | MDRV_VIDEO_START(mikie) |
| r1711 | r1712 | |
|---|---|---|
| 1015 | 1015 | MDRV_NVRAM_HANDLER(generic_1fill) |
| 1016 | 1016 | |
| 1017 | 1017 | /* video hardware */ |
| 1018 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1019 | 1018 | MDRV_PALETTE_LENGTH(32768) |
| 1020 | 1019 | |
| 1021 | MDRV_SCREEN_ADD("main", | |
| 1020 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1022 | 1021 | MDRV_SCREEN_RAW_PARAMS(MIDVUNIT_VIDEO_CLOCK/2, 666, 0, 512, 432, 0, 400) |
| 1023 | 1022 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1024 | 1023 |
| r1711 | r1712 | |
|---|---|---|
| 158 | 158 | |
| 159 | 159 | /* VIDEO */ |
| 160 | 160 | MDRV_IMPORT_FROM(tms9928a) |
| 161 | ||
| 162 | MDRV_SCREEN_MODIFY("main") | |
| 161 | 163 | MDRV_SCREEN_REFRESH_RATE(60) |
| 162 | 164 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 163 | MDRV_SCREEN_VBLANK_TIME( | |
| 165 | MDRV_SCREEN_VBLANK_TIME( | |
| 164 | 166 | |
| 165 | 167 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 166 | 168 |
| r1711 | r1712 | |
|---|---|---|
| 303 | 303 | MDRV_CPU_IO_MAP( nd1h8iomap, 0 ) |
| 304 | 304 | MDRV_CPU_VBLANK_INT( mcu_interrupt, 1 ) |
| 305 | 305 | |
| 306 | MDRV_SCREEN_REFRESH_RATE(60.0) | |
| 307 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 308 | 306 | MDRV_INTERLEAVE(100) |
| 309 | 307 | |
| 310 | 308 | MDRV_MACHINE_START(namcond1) |
| r1711 | r1712 | |
| 312 | 310 | MDRV_NVRAM_HANDLER(at28c16_0) |
| 313 | 311 | |
| 314 | 312 | /* video hardware */ |
| 315 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 313 | MDRV_SCREEN_ADD("main", RASTER) | |
| 314 | MDRV_SCREEN_REFRESH_RATE(60.0) | |
| 315 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 316 | 316 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 317 | 317 | MDRV_SCREEN_SIZE(288, 224) // maximum display resolution (512x512 in theory) |
| 318 | 318 | MDRV_SCREEN_VISIBLE_AREA(0, 287, 0, 223) // default visible area |
| 319 | ||
| 319 | 320 | MDRV_GFXDECODE(namcond1) |
| 320 | 321 | MDRV_PALETTE_LENGTH(256) |
| 321 | 322 |
| r1711 | r1712 | |
|---|---|---|
| 24 | 24 | */ |
| 25 | 25 | |
| 26 | 26 | #include "driver.h" |
| 27 | #include "video/mc6845.h" | |
| 27 | 28 | #include "sound/ay8910.h" |
| 28 | 29 | |
| 29 | 30 | /* video */ |
| r1711 | r1712 | |
| 293 | 294 | MDRV_CPU_PROGRAM_MAP(usgames_readmem,usgames_writemem) |
| 294 | 295 | MDRV_CPU_VBLANK_INT(irq0_line_hold,5) /* ?? */ |
| 295 | 296 | |
| 296 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 297 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 298 | ||
| 299 | 297 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 300 | 298 | |
| 301 | 299 | /* video hardware */ |
| 302 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 300 | MDRV_SCREEN_ADD("main", RASTER) | |
| 301 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 302 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 303 | 303 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 304 | 304 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 305 | 305 | MDRV_SCREEN_VISIBLE_AREA(7*8, 57*8-1, 0*8, 31*8-1) |
| 306 | ||
| 306 | 307 | MDRV_GFXDECODE(usgames) |
| 307 | MDRV_PALETTE_LENGTH(16) | |
| 308 | MDRV_COLORTABLE_LENGTH(2*256) | |
| 308 | MDRV_PALETTE_LENGTH(2*256) | |
| 309 | 309 | |
| 310 | 310 | MDRV_PALETTE_INIT(usgames) |
| 311 | 311 | MDRV_VIDEO_START(usgames) |
| 312 | 312 | MDRV_VIDEO_UPDATE(usgames) |
| 313 | 313 | |
| 314 | MDRV_DEVICE_ADD("crtc", MC6845) | |
| 315 | ||
| 314 | 316 | /* sound hardware */ |
| 315 | 317 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 316 | 318 |
| r1711 | r1712 | |
|---|---|---|
| 572 | 572 | MDRV_CPU_ADD(Z80, 4000000 ) /* 4 MHz */ |
| 573 | 573 | MDRV_CPU_PROGRAM_MAP(z80_readmem,z80_writemem) |
| 574 | 574 | |
| 575 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 576 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 577 | 575 | MDRV_INTERLEAVE(10) /* 10 CPU slices per frame - enough for the sound CPU to read all commands */ |
| 578 | 576 | |
| 579 | 577 | MDRV_MACHINE_START(opwolf) |
| 580 | 578 | MDRV_MACHINE_RESET(opwolf) |
| 581 | 579 | |
| 582 | 580 | /* video hardware */ |
| 583 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 581 | MDRV_SCREEN_ADD("main", RASTER) | |
| 582 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 583 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 584 | 584 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 585 | 585 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 586 | 586 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 587 | ||
| 587 | 588 | MDRV_GFXDECODE(opwolf) |
| 588 | 589 | MDRV_PALETTE_LENGTH(8192) |
| 589 | 590 | |
| r1711 | r1712 | |
| 624 | 625 | MDRV_CPU_PROGRAM_MAP(sub_z80_readmem,sub_z80_writemem) |
| 625 | 626 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 626 | 627 | |
| 627 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 628 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 629 | 628 | MDRV_INTERLEAVE(10) /* 10 CPU slices per frame - enough for the sound CPU to read all commands */ |
| 630 | 629 | |
| 631 | 630 | MDRV_MACHINE_START(opwolf) |
| 632 | 631 | |
| 633 | 632 | /* video hardware */ |
| 634 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 633 | MDRV_SCREEN_ADD("main", RASTER) | |
| 634 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 635 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 635 | 636 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 636 | 637 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 637 | 638 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 639 | ||
| 638 | 640 | MDRV_GFXDECODE(opwolfb) |
| 639 | 641 | MDRV_PALETTE_LENGTH(8192) |
| 640 | 642 |
| r1711 | r1712 | |
|---|---|---|
| 241 | 241 | MDRV_CPU_PROGRAM_MAP(surpratk_readmem,surpratk_writemem) |
| 242 | 242 | MDRV_CPU_VBLANK_INT(surpratk_interrupt,1) |
| 243 | 243 | |
| 244 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 245 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 246 | ||
| 247 | 244 | MDRV_MACHINE_RESET(surpratk) |
| 248 | 245 | |
| 249 | 246 | /* video hardware */ |
| 250 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS) | |
| 247 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 248 | ||
| 249 | MDRV_SCREEN_ADD("main", RASTER) | |
| 250 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 251 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 251 | 252 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 252 | 253 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 253 | 254 | MDRV_SCREEN_VISIBLE_AREA(14*8, (64-14)*8-1, 2*8, 30*8-1 ) |
| 255 | ||
| 254 | 256 | MDRV_PALETTE_LENGTH(2048) |
| 255 | 257 | |
| 256 | 258 | MDRV_VIDEO_START(surpratk) |
| r1711 | r1712 | |
|---|---|---|
| 115 | 115 | MDRV_CPU_PROGRAM_MAP(pangofun_map, 0) |
| 116 | 116 | |
| 117 | 117 | /* video hardware */ |
| 118 | MDRV_ | |
| 118 | MDRV_SC | |
| 119 | 119 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 120 | 120 | MDRV_SCREEN_REFRESH_RATE(60) |
| 121 | MDRV_SCREEN_VBLANK_TIME( | |
| 121 | MDRV_SCREEN_VBLANK_TIME( | |
| 122 | 122 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 123 | 123 | MDRV_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 0*8, 32*8-1) |
| 124 | ||
| 124 | 125 | MDRV_PALETTE_LENGTH(0x100) |
| 125 | 126 | |
| 126 | 127 | MDRV_VIDEO_START(pangofun) |
| r1711 | r1712 | |
|---|---|---|
| 431 | 431 | |
| 432 | 432 | static VIDEO_START( pmpoker ) |
| 433 | 433 | { |
| 434 | mc6845 = mc6845 | |
| 434 | mc6845 = devtag_get_token(machine, MC6845, "crtc" | |
| 435 | 435 | bg_tilemap = tilemap_create(get_bg_tile_info, tilemap_scan_rows, 8, 8, 32, 29); |
| 436 | 436 | } |
| 437 | 437 | |
| r1711 | r1712 | |
| 456 | 456 | /* 00000BGR */ |
| 457 | 457 | if (color_prom == 0) return; |
| 458 | 458 | |
| 459 | for (i = 0;i < machine-> | |
| 459 | for (i = 0;i < machine->config->total_colors;i++) | |
| 460 | 460 | { |
| 461 | 461 | int bit0, bit1, bit2, r, g, b; |
| 462 | 462 | |
| r1711 | r1712 | |
| 1005 | 1005 | MDRV_CPU_PROGRAM_MAP(pmpoker_map, 0) |
| 1006 | 1006 | MDRV_CPU_VBLANK_INT(nmi_line_pulse, 1) |
| 1007 | 1007 | |
| 1008 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1009 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1010 | ||
| 1011 | 1008 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 1012 | 1009 | |
| 1013 | 1010 | /* video hardware */ |
| 1014 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1011 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1012 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1013 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1015 | 1014 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1016 | 1015 | MDRV_SCREEN_SIZE((39+1)*8, (31+1)*8) /* Taken from MC6845 init, registers 00 & 04. Normally programmed with (value-1) */ |
| 1017 | 1016 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 29*8-1) /* Taken from MC6845 init, registers 01 & 06 */ |
| 1018 | 1017 | |
| 1019 | 1018 | MDRV_GFXDECODE(pmpoker) |
| 1020 | 1019 | |
| 1021 | MDRV_PALETTE_LENGTH(256) | |
| 1022 | 1020 | MDRV_PALETTE_INIT(pottnpkr) |
| 1023 | MDRV_ | |
| 1021 | MDRV_P | |
| 1024 | 1022 | |
| 1025 | 1023 | MDRV_VIDEO_START(pmpoker) |
| 1026 | 1024 | MDRV_VIDEO_UPDATE(pmpoker) |
| 1025 | ||
| 1026 | MDRV_DEVICE_ADD("crtc", MC6845) | |
| 1027 | 1027 | MACHINE_DRIVER_END |
| 1028 | 1028 | |
| 1029 | 1029 | static MACHINE_DRIVER_START( jokerpkr ) |
| r1711 | r1712 | |
| 1052 | 1052 | ROM_LOAD( "1-2.bin", 0x0800, 0x0800, CRC(6bbb1e2d) SHA1(51ee282219bf84218886ad11a24bc6a8e7337527) ) /* cards deck gfx, bitplane2 */ |
| 1053 | 1053 | ROM_LOAD( "1-3.bin", 0x1000, 0x0800, CRC(6e3e9b1d) SHA1(14eb8d14ce16719a6ad7d13db01e47c8f05955f0) ) /* cards deck gfx, bitplane3 */ |
| 1054 | 1054 | |
| 1055 | ROM_REGION( 0x0 | |
| 1055 | ROM_REGION( 0x0400, REGION_PROMS, 0 ) | |
| 1056 | 1056 | ROM_LOAD( "tbp24sa10n.7d", 0x0000, 0x0100, BAD_DUMP CRC(7f31066b) SHA1(15420780ec6b2870fc4539ec3afe4f0c58eedf12) ) /* PROM dump needed */ |
| 1057 | ROM_RELOAD( 0x0100, 0x0100 ) | |
| 1058 | ROM_RELOAD( 0x0200, 0x0100 ) | |
| 1059 | ROM_RELOAD( 0x0300, 0x0100 ) | |
| 1057 | 1060 | ROM_END |
| 1058 | 1061 | |
| 1059 | 1062 | /* the original goldnpkr u40_4a.bin rom is bit corrupted. |
| r1711 | r1712 | |
| 1074 | 1077 | ROM_LOAD( "u40_4a.bin", 0x2000, 0x2000, CRC(5fc965ef) SHA1(d9ecd7e9b4915750400e76ca604bec8152df1fe4) ) /* cards deck gfx, bitplane2 */ |
| 1075 | 1078 | ROM_COPY( REGION_GFX1, 0x0800, 0x4000, 0x0800 ) /* cards deck gfx, bitplane3. found in the 2nd quarter of the text layer rom */ |
| 1076 | 1079 | |
| 1077 | ROM_REGION( 0x0 | |
| 1080 | ROM_REGION( 0x0400, REGION_PROMS, 0 ) | |
| 1078 | 1081 | ROM_LOAD( "tbp24s10n.7d", 0x0000, 0x0100, BAD_DUMP CRC(7f31066b) SHA1(15420780ec6b2870fc4539ec3afe4f0c58eedf12) ) /* PROM dump needed */ |
| 1082 | ROM_RELOAD( 0x0100, 0x0100 ) | |
| 1083 | ROM_RELOAD( 0x0200, 0x0100 ) | |
| 1084 | ROM_RELOAD( 0x0300, 0x0100 ) | |
| 1079 | 1085 | |
| 1080 | 1086 | /* pmpoker goldnpkr |
| 1081 | 1087 | 1-4.bin u38_5a (1st quarter) 96.582031% \ 1st and 2nd halves are identical. |
| r1711 | r1712 | |
| 1097 | 1103 | ROM_LOAD( "u40.4a.bin", 0x2000, 0x2000, CRC(5fc965ef) SHA1(d9ecd7e9b4915750400e76ca604bec8152df1fe4) ) /* cards deck gfx, bitplane2 */ |
| 1098 | 1104 | ROM_COPY( REGION_GFX1, 0x0800, 0x4000, 0x0800 ) /* cards deck gfx, bitplane3. found in the 2nd quarter of the text layer rom */ |
| 1099 | 1105 | |
| 1100 | ROM_REGION( 0x0 | |
| 1106 | ROM_REGION( 0x0400, REGION_PROMS, 0 ) | |
| 1101 | 1107 | ROM_LOAD( "tbp24s10n.7d", 0x0000, 0x0100, CRC(7f31066b) SHA1(15420780ec6b2870fc4539ec3afe4f0c58eedf12) ) |
| 1108 | ROM_RELOAD( 0x0100, 0x0100 ) | |
| 1109 | ROM_RELOAD( 0x0200, 0x0100 ) | |
| 1110 | ROM_RELOAD( 0x0300, 0x0100 ) | |
| 1102 | 1111 | |
| 1103 | 1112 | /* pmpoker goldnpkb |
| 1104 | 1113 | 1-4.bin u38.5a (1st quarter) 96.582031% \ 1st and 2nd halves are identical. |
| r1711 | r1712 | |
| 1121 | 1130 | ROM_LOAD( "ic3_8.bin", 0x1000, 0x1000, CRC(40e426af) SHA1(7e7cb30dafc96bcb87a05d3e0ef5c2d426ed6a74) ) /* cards deck gfx, bitplane2 */ |
| 1122 | 1131 | ROM_LOAD( "ic5_9.bin", 0x2000, 0x1000, CRC(232374f3) SHA1(b75907edbf769b8c46fb1ebdb301c325c556e6c2) ) /* cards deck gfx, bitplane3 */ |
| 1123 | 1132 | |
| 1124 | ROM_REGION( 0x0 | |
| 1133 | ROM_REGION( 0x0400, REGION_PROMS, 0 ) | |
| 1125 | 1134 | ROM_LOAD( "tbp24s10n.7d", 0x0000, 0x0100, BAD_DUMP CRC(7f31066b) SHA1(15420780ec6b2870fc4539ec3afe4f0c58eedf12) ) /* PROM dump needed */ |
| 1135 | ROM_RELOAD( 0x0100, 0x0100 ) | |
| 1136 | ROM_RELOAD( 0x0200, 0x0100 ) | |
| 1137 | ROM_RELOAD( 0x0300, 0x0100 ) | |
| 1126 | 1138 | |
| 1127 | 1139 | /* ic2_7.bin 1ST AND 2ND HALF IDENTICAL |
| 1128 | 1140 | ic3_8.bin 1ST AND 2ND HALF IDENTICAL |
| r1711 | r1712 | |
| 1147 | 1159 | ROM_LOAD( "vp-2.bin", 0x0800, 0x0800, CRC(6bbb1e2d) SHA1(51ee282219bf84218886ad11a24bc6a8e7337527) ) /* cards deck gfx, bitplane2 */ |
| 1148 | 1160 | ROM_LOAD( "vp-3.bin", 0x1000, 0x0800, CRC(6e3e9b1d) SHA1(14eb8d14ce16719a6ad7d13db01e47c8f05955f0) ) /* cards deck gfx, bitplane3 */ |
| 1149 | 1161 | |
| 1150 | ROM_REGION( 0x0 | |
| 1162 | ROM_REGION( 0x0400, REGION_PROMS, 0 ) | |
| 1151 | 1163 | ROM_LOAD( "82s129.9c", 0x0000, 0x0100, BAD_DUMP CRC(7f31066b) SHA1(15420780ec6b2870fc4539ec3afe4f0c58eedf12) ) /* PROM dump needed */ |
| 1164 | ROM_RELOAD( 0x0100, 0x0100 ) | |
| 1165 | ROM_RELOAD( 0x0200, 0x0100 ) | |
| 1166 | ROM_RELOAD( 0x0300, 0x0100 ) | |
| 1152 | 1167 | ROM_END |
| 1153 | 1168 | |
| 1154 | 1169 | /* the alternative Jack Potten set is identical, but with different sized roms. |
| r1711 | r1712 | |
| 1177 | 1192 | ROM_LOAD( "pottpok3.bin", 0x0800, 0x0800, CRC(6bbb1e2d) SHA1(51ee282219bf84218886ad11a24bc6a8e7337527) ) /* cards deck gfx, bitplane2 */ |
| 1178 | 1193 | ROM_LOAD( "pottpok2.bin", 0x1000, 0x0800, CRC(6e3e9b1d) SHA1(14eb8d14ce16719a6ad7d13db01e47c8f05955f0) ) /* cards deck gfx, bitplane3 */ |
| 1179 | 1194 | |
| 1180 | ROM_REGION( 0x0 | |
| 1195 | ROM_REGION( 0x0400, REGION_PROMS, 0 ) | |
| 1181 | 1196 | ROM_LOAD( "82s129.9c", 0x0000, 0x0100, CRC(7f31066b) SHA1(15420780ec6b2870fc4539ec3afe4f0c58eedf12) ) |
| 1197 | ROM_RELOAD( 0x0100, 0x0100 ) | |
| 1198 | ROM_RELOAD( 0x0200, 0x0100 ) | |
| 1199 | ROM_RELOAD( 0x0300, 0x0100 ) | |
| 1182 | 1200 | ROM_END |
| 1183 | 1201 | |
| 1184 | 1202 | /*pottpok4.bin 0xxxxxxxxxx = 0x00 |
| r1711 | r1712 | |
| 1205 | 1223 | ROM_LOAD( "517.6a", 0x0800, 0x0800, CRC(6bbb1e2d) SHA1(51ee282219bf84218886ad11a24bc6a8e7337527) ) /* cards deck gfx, bitplane2 */ |
| 1206 | 1224 | ROM_LOAD( "517.7a", 0x1000, 0x0800, CRC(6e3e9b1d) SHA1(14eb8d14ce16719a6ad7d13db01e47c8f05955f0) ) /* cards deck gfx, bitplane3 */ |
| 1207 | 1225 | |
| 1208 | ROM_REGION( 0x0 | |
| 1226 | ROM_REGION( 0x0400, REGION_PROMS, 0 ) | |
| 1209 | 1227 | ROM_LOAD( "517_mb7052.9c", 0x0000, 0x0100, CRC(7f31066b) SHA1(15420780ec6b2870fc4539ec3afe4f0c58eedf12) ) |
| 1228 | ROM_RELOAD( 0x0100, 0x0100 ) | |
| 1229 | ROM_RELOAD( 0x0200, 0x0100 ) | |
| 1230 | ROM_RELOAD( 0x0300, 0x0100 ) | |
| 1210 | 1231 | ROM_END |
| 1211 | 1232 | |
| 1212 | 1233 | |
| r1711 | r1712 | |
| 1230 | 1251 | GAMEL( 1981, goldnpkr, pmpoker, pmpoker, goldnpkr, pmpoker, ROT0, "Bonanza Enterprises, Ltd", "Golden Poker Double Up (Big Boy)", GAME_NO_SOUND ,layout_goldnpkr ) |
| 1231 | 1252 | GAMEL( 1981, goldnpkb, pmpoker, pmpoker, goldnpkr, pmpoker, ROT0, "Bonanza Enterprises, Ltd", "Golden Poker Double Up (Mini Boy)", GAME_NO_SOUND ,layout_goldnpkr ) |
| 1232 | 1253 | GAMEL( 1981, goldnpkc, pmpoker, pmpoker, goldnpkc, pmpoker, ROT0, "Bootleg", "Golden Poker (no double up)", GAME_NO_SOUND ,layout_goldnpkr ) |
| 1233 | GAMEL( 198?, jokerpkr, pmpoker, jokerpkr, jokerpkr, pmpoker, ROT0, "Bootleg | |
| 1254 | GAMEL( 198?, jokerpkr, pmpoker, jokerpkr, jokerpkr, pmpoker, ROT0, "Bootleg on Coinmaster hardware", "Joker-Poker", GAME_NO_SOUND ,layout_pottnpkr ) | |
| 1234 | 1255 | GAMEL( 198?, pottnpkr, pmpoker, jokerpkr, pottnpkr, pmpoker, ROT0, "Bootleg", "Jack Potten's Poker (bootleg)", GAME_NO_SOUND ,layout_pottnpkr ) |
| 1235 | 1256 | GAMEL( 198?, pottnpkb, pmpoker, jokerpkr, goldnpkc, pmpoker, ROT0, "Bootleg", "Jack Potten's Poker (bootleg2)", GAME_NO_SOUND ,layout_pottnpkr ) |
| 1236 | 1257 |
| r1711 | r1712 | |
|---|---|---|
| 864 | 864 | MDRV_CPU_PROGRAM_MAP(bssoccer_pcm_2_readmem,bssoccer_pcm_2_writemem) |
| 865 | 865 | MDRV_CPU_IO_MAP(bssoccer_pcm_2_readport,bssoccer_pcm_2_writeport) |
| 866 | 866 | |
| 867 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 868 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 869 | 867 | MDRV_INTERLEAVE(100) |
| 870 | 868 | |
| 871 | 869 | /* video hardware */ |
| 872 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 870 | MDRV_SCREEN_ADD("main", RASTER) | |
| 871 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 872 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 873 | 873 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 874 | 874 | MDRV_SCREEN_SIZE(256, 256) |
| 875 | 875 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0+16, 256-16-1) |
| 876 | ||
| 876 | 877 | MDRV_GFXDECODE(suna16) |
| 877 | 878 | MDRV_PALETTE_LENGTH(512) |
| 878 | 879 | |
| r1711 | r1712 | |
| 923 | 924 | |
| 924 | 925 | /* 2nd PCM Z80 missing */ |
| 925 | 926 | |
| 926 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 927 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 928 | 927 | MDRV_INTERLEAVE(100) |
| 929 | 928 | |
| 930 | 929 | /* video hardware */ |
| 931 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 930 | MDRV_SCREEN_ADD("main", RASTER) | |
| 931 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 932 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 932 | 933 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 933 | 934 | MDRV_SCREEN_SIZE(256, 256) |
| 934 | 935 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0+16, 256-16-1) |
| 936 | ||
| 935 | 937 | MDRV_GFXDECODE(suna16) |
| 936 | 938 | MDRV_PALETTE_LENGTH(512) |
| 937 | 939 | |
| r1711 | r1712 | |
| 974 | 976 | |
| 975 | 977 | /* 2nd PCM Z80 missing */ |
| 976 | 978 | |
| 977 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 978 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 979 | 979 | MDRV_INTERLEAVE(100) |
| 980 | 980 | |
| 981 | 981 | /* video hardware */ |
| 982 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 982 | MDRV_SCREEN_ADD("main", RASTER) | |
| 983 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 984 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 983 | 985 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 984 | 986 | MDRV_SCREEN_SIZE(256, 256) |
| 985 | 987 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0+16, 256-16-1) |
| 988 | ||
| 986 | 989 | MDRV_GFXDECODE(suna16) |
| 987 | 990 | MDRV_PALETTE_LENGTH(512) |
| 988 | 991 | |
| r1711 | r1712 | |
| 1043 | 1046 | |
| 1044 | 1047 | /* 2nd PCM Z80 missing */ |
| 1045 | 1048 | |
| 1046 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1047 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1048 | 1049 | MDRV_INTERLEAVE(100) |
| 1049 | 1050 | |
| 1050 | 1051 | /* video hardware */ |
| 1051 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1052 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1053 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1054 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1052 | 1055 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1053 | 1056 | MDRV_SCREEN_SIZE(256, 256) |
| 1054 | 1057 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0+16, 256-16-1) |
| 1058 | ||
| 1055 | 1059 | MDRV_GFXDECODE(bestbest) |
| 1056 | 1060 | MDRV_PALETTE_LENGTH(256*8) |
| 1057 | 1061 |
| r1711 | r1712 | |
|---|---|---|
| 671 | 671 | MDRV_CPU_ADD(M6802,XTAL_3_579545MHz) /* verified on pcb */ |
| 672 | 672 | MDRV_CPU_PROGRAM_MAP(sound_readmem2,sound_writemem2) |
| 673 | 673 | |
| 674 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 675 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 676 | ||
| 677 | 674 | MDRV_MACHINE_START(zaccaria) |
| 678 | 675 | MDRV_MACHINE_RESET(zaccaria) |
| 679 | 676 | |
| 680 | 677 | /* video hardware */ |
| 681 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 678 | MDRV_SCREEN_ADD("main", RASTER) | |
| 679 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 680 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 682 | 681 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 683 | 682 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 684 | 683 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 684 | ||
| 685 | 685 | MDRV_GFXDECODE(zaccaria) |
| 686 | MDRV_PALETTE_LENGTH(512) | |
| 687 | MDRV_COLORTABLE_LENGTH(32*8+32*8) | |
| 686 | MDRV_PALETTE_LENGTH(32*8+32*8) | |
| 688 | 687 | |
| 689 | 688 | MDRV_PALETTE_INIT(zaccaria) |
| 690 | 689 | MDRV_VIDEO_START(zaccaria) |
| r1711 | r1712 | |
|---|---|---|
| 559 | 559 | /* audio CPU */ |
| 560 | 560 | MDRV_CPU_PROGRAM_MAP(readmem_sound,writemem_sound) |
| 561 | 561 | |
| 562 | MDRV_GFXDECODE(shadfrce) | |
| 562 | 563 | |
| 564 | ||
| 565 | MDRV_SCREEN_ADD("main", RASTER) | |
| 563 | 566 | MDRV_SCREEN_REFRESH_RATE(60) |
| 564 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 565 | ||
| 566 | MDRV_GFXDECODE(shadfrce) | |
| 567 | ||
| 568 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 567 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 569 | 568 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 570 | 569 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 571 | 570 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 32*8-1) |
| 571 | ||
| 572 | 572 | MDRV_PALETTE_LENGTH(0x4000) |
| 573 | 573 | |
| 574 | 574 | MDRV_VIDEO_START(shadfrce) |
| r1711 | r1712 | |
|---|---|---|
| 237 | 237 | MDRV_CPU_IO_MAP(sound_cpu_io_map,0) |
| 238 | 238 | MDRV_CPU_VBLANK_INT(irq0_line_hold,8) |
| 239 | 239 | |
| 240 | /* video hardware */ | |
| 241 | MDRV_SCREEN_ADD("main", RASTER) | |
| 240 | 242 | MDRV_SCREEN_REFRESH_RATE(60) |
| 241 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 242 | ||
| 243 | /* video hardware */ | |
| 244 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 243 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 245 | 244 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 246 | 245 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 247 | 246 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 247 | ||
| 248 | 248 | MDRV_GFXDECODE(speedbal) |
| 249 | 249 | MDRV_PALETTE_LENGTH(768) |
| 250 | 250 |
| r1711 | r1712 | |
|---|---|---|
| 242 | 242 | MDRV_CPU_IO_MAP(readport,writeport) |
| 243 | 243 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 244 | 244 | |
| 245 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 246 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 247 | ||
| 248 | 245 | MDRV_NVRAM_HANDLER(93C46) |
| 249 | 246 | |
| 250 | 247 | /* video hardware */ |
| 251 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 248 | MDRV_SCREEN_ADD("main", RASTER) | |
| 249 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 250 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 252 | 251 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 253 | 252 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 254 | 253 | MDRV_SCREEN_VISIBLE_AREA(0, 32*8-1, 0, 32*8-1) |
| 254 | ||
| 255 | 255 | MDRV_GFXDECODE( yumefuda ) |
| 256 | 256 | MDRV_PALETTE_LENGTH(0x100) |
| 257 | 257 |
| r1711 | r1712 | |
|---|---|---|
| 593 | 593 | MDRV_CPU_IO_MAP(jongkyo_portmap,0) |
| 594 | 594 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 595 | 595 | |
| 596 | /* video hardware */ | |
| 597 | MDRV_SCREEN_ADD("main", RASTER) | |
| 596 | 598 | MDRV_SCREEN_REFRESH_RATE(60) |
| 597 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 598 | ||
| 599 | /* video hardware */ | |
| 600 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 599 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 601 | 600 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 602 | 601 | MDRV_SCREEN_SIZE(256, 256) |
| 603 | 602 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 8, 256-8-1) |
| 603 | ||
| 604 | 604 | MDRV_PALETTE_LENGTH(0x100) |
| 605 | 605 | MDRV_PALETTE_INIT(jongkyo) |
| 606 | 606 |
| r1711 | r1712 | |
|---|---|---|
| 131 | 131 | MDRV_CPU_ADD_TAG("main", M6502, 14318181/14) |
| 132 | 132 | MDRV_CPU_PROGRAM_MAP(cpu_map, 0) |
| 133 | 133 | MDRV_CPU_PERIODIC_INT(attckufo_raster_interrupt, 15625) |
| 134 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 135 | 134 | |
| 136 | ||
| 135 | /* video hardware */ | |
| 137 | 136 | |
| 138 | /* video hardware */ | |
| 139 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 137 | MDRV_SCREEN_ADD("main", RASTER) | |
| 138 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 139 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 140 | 140 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 141 | 141 | MDRV_SCREEN_SIZE(256, 256) |
| 142 | 142 | MDRV_SCREEN_VISIBLE_AREA(0, 23*8-1, 0, 22*8-1) |
| 143 | ||
| 143 | 144 | MDRV_PALETTE_LENGTH(ARRAY_LENGTH(attckufo_palette)) |
| 144 | 145 | MDRV_PALETTE_INIT( attckufo ) |
| 145 | 146 |
| r1711 | r1712 | |
|---|---|---|
| 364 | 364 | MDRV_CPU_PROGRAM_MAP(littlerb_main, 0) |
| 365 | 365 | MDRV_CPU_VBLANK_INT(irq4_line_hold,1) |
| 366 | 366 | |
| 367 | ||
| 368 | MDRV_SCREEN_ADD("main", RASTER) | |
| 367 | 369 | MDRV_SCREEN_REFRESH_RATE(60) |
| 368 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 369 | ||
| 370 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 370 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 371 | 371 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 372 | 372 | MDRV_SCREEN_SIZE(512, 256) |
| 373 | 373 | MDRV_SCREEN_VISIBLE_AREA(0*8, 320-1, 0*8, 256-1) |
| r1711 | r1712 | |
|---|---|---|
| 591 | 591 | COMBINE_DATA( &gcu[chip].visible_area ); |
| 592 | 592 | if (ACCESSING_LSW32) |
| 593 | 593 | { |
| 594 | int numscreens = video_screen_count(Machine->config); | |
| 594 | 595 | int screen = chip; |
| 595 | 596 | int width, height; |
| 596 | 597 | screen_state *state = &Machine->screen[screen]; |
| r1711 | r1712 | |
| 604 | 605 | visarea.max_y = height-1; |
| 605 | 606 | |
| 606 | 607 | // only try and update the screen if the driver says we have one |
| 607 | if( | |
| 608 | if ( | |
| 608 | 609 | video_screen_configure(screen, visarea.max_x + 1, visarea.max_y + 1, &visarea, Machine->screen[screen].refresh); |
| 609 | 610 | } |
| 610 | 611 | break; |
| r1711 | r1712 | |
| 1995 | 1996 | MDRV_CPU_PROGRAM_MAP(firebeat_map, 0) |
| 1996 | 1997 | MDRV_CPU_VBLANK_INT(firebeat_interrupt,1) |
| 1997 | 1998 | |
| 1998 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1999 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 2000 | ||
| 2001 | 1999 | MDRV_MACHINE_RESET(firebeat) |
| 2002 | 2000 | MDRV_NVRAM_HANDLER(firebeat) |
| 2003 | 2001 | |
| 2004 | 2002 | /* video hardware */ |
| 2005 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 2003 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2004 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2005 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 2006 | 2006 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) |
| 2007 | MDRV_PALETTE_LENGTH(32768) | |
| 2008 | ||
| 2009 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 2010 | 2007 | MDRV_SCREEN_SIZE(640, 480) |
| 2011 | 2008 | MDRV_SCREEN_VISIBLE_AREA(0, 639, 0, 479) |
| 2012 | 2009 | |
| 2010 | MDRV_PALETTE_LENGTH(32768) | |
| 2011 | ||
| 2013 | 2012 | MDRV_VIDEO_START(firebeat) |
| 2014 | 2013 | MDRV_VIDEO_UPDATE(firebeat) |
| 2015 | 2014 | |
| r1711 | r1712 | |
| 2039 | 2038 | MDRV_NVRAM_HANDLER(firebeat) |
| 2040 | 2039 | |
| 2041 | 2040 | /* video hardware */ |
| 2042 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 2043 | 2041 | MDRV_PALETTE_LENGTH(32768) |
| 2044 | 2042 | |
| 2045 | MDRV_SCREEN_ADD("left", | |
| 2043 | MDRV_SCREEN_ADD("left", RASTER) | |
| 2046 | 2044 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) |
| 2047 | 2045 | MDRV_SCREEN_REFRESH_RATE(60) |
| 2048 | MDRV_SCREEN_VBLANK_TIME( | |
| 2046 | MDRV_SCREEN_VBLANK_TIME( | |
| 2049 | 2047 | MDRV_SCREEN_SIZE(640, 480) |
| 2050 | 2048 | MDRV_SCREEN_VISIBLE_AREA(0, 639, 0, 479) |
| 2051 | 2049 | |
| 2052 | MDRV_SCREEN_ADD("right", | |
| 2050 | MDRV_SCREEN_ADD("right", RASTER) | |
| 2053 | 2051 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) |
| 2054 | 2052 | MDRV_SCREEN_REFRESH_RATE(60) |
| 2055 | MDRV_SCREEN_VBLANK_TIME( | |
| 2053 | MDRV_SCREEN_VBLANK_TIME( | |
| 2056 | 2054 | MDRV_SCREEN_SIZE(640, 480) |
| 2057 | 2055 | MDRV_SCREEN_VISIBLE_AREA(0, 639, 0, 479) |
| 2058 | 2056 |
| r1711 | r1712 | |
|---|---|---|
| 304 | 304 | MDRV_MACHINE_START(clayshoo) |
| 305 | 305 | |
| 306 | 306 | /* video hardware */ |
| 307 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 308 | 307 | MDRV_VIDEO_UPDATE(clayshoo) |
| 309 | 308 | |
| 310 | MDRV_SCREEN_ADD("main", | |
| 309 | MDRV_SCREEN_ADD("main", RASTER) | |
| 311 | 310 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 312 | 311 | MDRV_SCREEN_SIZE(256, 256) |
| 313 | 312 | MDRV_SCREEN_VISIBLE_AREA(0, 255, 64, 255) |
| 314 | 313 | MDRV_SCREEN_REFRESH_RATE(60) |
| 315 | MDRV_SCREEN_VBLANK_TIME( | |
| 314 | MDRV_SCREEN_VBLANK_TIME( | |
| 316 | 315 | |
| 317 | 316 | MACHINE_DRIVER_END |
| 318 | 317 |
| r1711 | r1712 | |
|---|---|---|
| 279 | 279 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 280 | 280 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,16) /* IRQs are triggered by the main CPU */ |
| 281 | 281 | |
| 282 | /* video hardware */ | |
| 283 | MDRV_SCREEN_ADD("main", RASTER) | |
| 282 | 284 | MDRV_SCREEN_REFRESH_RATE(57) |
| 283 | 285 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(3072)) |
| 284 | ||
| 285 | /* video hardware */ | |
| 286 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 287 | 286 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 288 | 287 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 289 | 288 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 289 | ||
| 290 | 290 | MDRV_GFXDECODE(tagteam) |
| 291 | 291 | MDRV_PALETTE_LENGTH(32) |
| 292 | 292 |
| r1711 | r1712 | |
|---|---|---|
| 262 | 262 | |
| 263 | 263 | /* sound cpu */ |
| 264 | 264 | |
| 265 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 266 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 267 | ||
| 268 | 265 | MDRV_NVRAM_HANDLER(eolith) |
| 269 | 266 | |
| 270 | 267 | /* video hardware */ |
| 271 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 268 | MDRV_SCREEN_ADD("main", RASTER) | |
| 269 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 270 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 272 | 271 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) |
| 273 | 272 | MDRV_SCREEN_SIZE(512, 512) |
| 274 | 273 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 239) |
| r1711 | r1712 | |
|---|---|---|
| 496 | 496 | MDRV_CPU_ADD(M68705,2000000) /* ??? */ |
| 497 | 497 | MDRV_CPU_PROGRAM_MAP(m68705_readmem,m68705_writemem) |
| 498 | 498 | |
| 499 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 500 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 501 | 499 | MDRV_INTERLEAVE(10) /* 10 CPU slices per frame - interleaving is forced on the fly */ |
| 502 | 500 | |
| 503 | 501 | MDRV_MACHINE_RESET(bigevglf) |
| 504 | 502 | /* video hardware */ |
| 505 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 503 | MDRV_SCREEN_ADD("main", RASTER) | |
| 504 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 505 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 506 | 506 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 507 | 507 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 508 | 508 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 567 | 567 | MDRV_CPU_IO_MAP(readport,writeport) |
| 568 | 568 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 569 | 569 | |
| 570 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 571 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 572 | ||
| 573 | 570 | MDRV_MACHINE_RESET(bagman) |
| 574 | 571 | |
| 575 | 572 | /* video hardware */ |
| 576 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 573 | MDRV_SCREEN_ADD("main", RASTER) | |
| 574 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 575 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 577 | 576 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 578 | 577 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 579 | 578 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| r1711 | r1712 | |
| 604 | 603 | MDRV_CPU_IO_MAP(readport,writeport) |
| 605 | 604 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 606 | 605 | |
| 607 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 608 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 609 | ||
| 610 | 606 | MDRV_MACHINE_RESET(bagman) |
| 611 | 607 | |
| 612 | 608 | /* video hardware */ |
| 613 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 609 | MDRV_SCREEN_ADD("main", RASTER) | |
| 610 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 611 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 614 | 612 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 615 | 613 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 616 | 614 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| r1711 | r1712 | |
| 655 | 653 | MDRV_CPU_IO_MAP(readport,writeport) |
| 656 | 654 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 657 | 655 | |
| 658 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 659 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 660 | ||
| 661 | 656 | MDRV_MACHINE_RESET(bagman) |
| 662 | 657 | |
| 663 | 658 | /* video hardware */ |
| 664 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 659 | MDRV_SCREEN_ADD("main", RASTER) | |
| 660 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 661 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 665 | 662 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 666 | 663 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 667 | 664 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 863 | 863 | MDRV_CPU_IO_MAP( s23h8iomap, 0 ) |
| 864 | 864 | MDRV_CPU_VBLANK_INT( irq1_line_pulse, 1 ) |
| 865 | 865 | |
| 866 | ||
| 867 | MDRV_SCREEN_ADD("main", RASTER) | |
| 866 | 868 | MDRV_SCREEN_REFRESH_RATE(60) |
| 867 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 868 | ||
| 869 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 869 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 870 | 870 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 871 | 871 | MDRV_SCREEN_SIZE(64*16, 30*16) |
| 872 | 872 | MDRV_SCREEN_VISIBLE_AREA(0, 64*16-1, 0, 30*16-1) |
| 873 | ||
| 873 | 874 | MDRV_PALETTE_LENGTH(0x8000) |
| 874 | 875 | |
| 875 | 876 | MDRV_GFXDECODE(namcos23) |
| r1711 | r1712 | |
| 901 | 902 | MDRV_CPU_IO_MAP( s23h8iomap, 0 ) |
| 902 | 903 | MDRV_CPU_VBLANK_INT( irq1_line_pulse, 1 ) |
| 903 | 904 | |
| 905 | ||
| 906 | MDRV_SCREEN_ADD("main", RASTER) | |
| 904 | 907 | MDRV_SCREEN_REFRESH_RATE(60) |
| 905 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 906 | ||
| 907 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 908 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 908 | 909 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 909 | 910 | MDRV_SCREEN_SIZE(48*16, 30*16) |
| 910 | 911 | MDRV_SCREEN_VISIBLE_AREA(0, 48*16-1, 0, 30*16-1) |
| 912 | ||
| 911 | 913 | MDRV_PALETTE_LENGTH(0x8000) |
| 912 | 914 | |
| 913 | 915 | MDRV_GFXDECODE(namcos23) |
| r1711 | r1712 | |
|---|---|---|
| 408 | 408 | MDRV_CPU_PROGRAM_MAP(inufuku_readmem_sound, inufuku_writemem_sound) |
| 409 | 409 | MDRV_CPU_IO_MAP(inufuku_readport_sound, inufuku_writeport_sound) |
| 410 | 410 | /* IRQs are triggered by the YM2610 */ |
| 411 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 412 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 413 | 411 | |
| 414 | 412 | MDRV_MACHINE_RESET(inufuku) |
| 415 | 413 | MDRV_NVRAM_HANDLER(93C46) |
| 416 | 414 | |
| 417 | 415 | /* video hardware */ |
| 418 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 416 | MDRV_SCREEN_ADD("main", RASTER) | |
| 417 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 418 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 419 | 419 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 420 | 420 | MDRV_SCREEN_SIZE(2048, 256) |
| 421 | 421 | MDRV_SCREEN_VISIBLE_AREA(0, 319-1, 1, 224-1) |
| 422 | ||
| 422 | 423 | MDRV_GFXDECODE(inufuku) |
| 423 | 424 | MDRV_PALETTE_LENGTH(4096) |
| 424 | 425 |
| r1711 | r1712 | |
|---|---|---|
| 186 | 186 | /* basic machine hardware */ |
| 187 | 187 | MDRV_CPU_ADD(Z80, 8000000 / 2) /* 4 MHz ? */ |
| 188 | 188 | MDRV_CPU_PROGRAM_MAP(mem, 0) |
| 189 | ||
| 190 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 191 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 192 | 189 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 193 | 190 | |
| 194 | 191 | /* video hardware */ |
| 195 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 192 | MDRV_SCREEN_ADD("main", RASTER) | |
| 193 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 194 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 196 | 195 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 197 | 196 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 198 | 197 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 32*8-1) |
| 198 | ||
| 199 | 199 | MDRV_GFXDECODE(tattack) |
| 200 | 200 | MDRV_PALETTE_LENGTH(16) |
| 201 | 201 | MDRV_PALETTE_INIT(tattack ) |
| r1711 | r1712 | |
|---|---|---|
| 247 | 247 | MDRV_CPU_PROGRAM_MAP(sound_map, 0) |
| 248 | 248 | MDRV_CPU_VBLANK_INT(irq0_line_hold, 4) |
| 249 | 249 | |
| 250 | // video hardware | |
| 251 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 252 | ||
| 253 | MDRV_SCREEN_ADD("main", RASTER) | |
| 250 | 254 | MDRV_SCREEN_REFRESH_RATE(60) |
| 251 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 252 | ||
| 253 | // video hardware | |
| 254 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 255 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 255 | 256 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 256 | 257 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 257 | 258 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 259 | ||
| 258 | 260 | MDRV_GFXDECODE(commando) |
| 259 | 261 | MDRV_PALETTE_LENGTH(256) |
| 260 | 262 |
| r1711 | r1712 | |
|---|---|---|
| 1364 | 1364 | MDRV_NVRAM_HANDLER(atarigen) |
| 1365 | 1365 | |
| 1366 | 1366 | /* video hardware */ |
| 1367 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 1367 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 1368 | 1368 | MDRV_GFXDECODE(atarisy2) |
| 1369 | 1369 | MDRV_PALETTE_LENGTH(256) |
| 1370 | 1370 | |
| 1371 | MDRV_SCREEN_ADD("main", | |
| 1371 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1372 | 1372 | MDRV_SCREEN_RAW_PARAMS(VIDEO_CLOCK/2, 640, 0, 512, 416, 0, 384) |
| 1373 | 1373 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1374 | 1374 |
| r1711 | r1712 | |
|---|---|---|
| 310 | 310 | MDRV_CPU_IO_MAP(mjsister_readport,mjsister_writeport) |
| 311 | 311 | MDRV_CPU_VBLANK_INT(irq0_line_hold,2) |
| 312 | 312 | |
| 313 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 314 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 315 | 313 | MDRV_MACHINE_RESET(mjsister) |
| 316 | 314 | |
| 317 | 315 | /* video hardware */ |
| 318 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 316 | MDRV_SCREEN_ADD("main", RASTER) | |
| 317 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 318 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 319 | 319 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 320 | 320 | MDRV_SCREEN_SIZE(256+4, 256) |
| 321 | 321 | MDRV_SCREEN_VISIBLE_AREA(0, 255+4, 8, 247) |
| 322 | ||
| 322 | 323 | MDRV_PALETTE_INIT(RRRR_GGGG_BBBB) |
| 323 | 324 | MDRV_PALETTE_LENGTH(256) |
| 324 | 325 |
| r1711 | r1712 | |
|---|---|---|
| 934 | 934 | MDRV_MACHINE_RESET(ninjakd2) |
| 935 | 935 | |
| 936 | 936 | /* video hardware */ |
| 937 | MDRV_SCREEN_ADD("main", RASTER) | |
| 937 | 938 | MDRV_SCREEN_REFRESH_RATE(60) |
| 938 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 939 | 939 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 940 | 940 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 941 | 941 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 4*8, 28*8-1) |
| 942 | ||
| 942 | 943 | MDRV_GFXDECODE(ninjakd2) |
| 943 | 944 | MDRV_PALETTE_LENGTH(0x300) |
| 944 | 945 |
| r1711 | r1712 | |
|---|---|---|
| 100 | 100 | * |
| 101 | 101 | *************************************/ |
| 102 | 102 | |
| 103 | static const | |
| 103 | static const int | |
| 104 | 104 | { |
| 105 | 105 | 0x02, 0x00, |
| 106 | 106 | 0x02, 0x01, |
| r1711 | r1712 | |
| 110 | 110 | |
| 111 | 111 | static PALETTE_INIT( skydiver ) |
| 112 | 112 | { |
| 113 | palette_set_color(machine,0,MAKE_RGB(0x00,0x00,0x00)); /* black */ | |
| 114 | palette_set_color(machine,1,MAKE_RGB(0xff,0xff,0xff)); /* white */ | |
| 115 | palette_set_color(machine,2,MAKE_RGB(0xa0,0xa0,0xa0)); /* grey */ | |
| 113 | int i; | |
| 116 | 114 | |
| 117 | memcpy(colortable,colortable_source,sizeof(colortable_source)); | |
| 115 | for (i = 0; i < sizeof(colortable_source) / sizeof(colortable_source[0]); i++) | |
| 116 | { | |
| 117 | rgb_t color; | |
| 118 | ||
| 119 | switch (colortable_source[i]) | |
| 120 | { | |
| 121 | case 0: color = RGB_BLACK; break; | |
| 122 | case 1: color = RGB_WHITE; break; | |
| 123 | default: color = MAKE_RGB(0xa0, 0xa0, 0xa0); break; /* grey */ | |
| 124 | } | |
| 125 | ||
| 126 | palette_set_color(machine, i, color); | |
| 127 | } | |
| 118 | 128 | } |
| 119 | 129 | |
| 120 | 130 | |
| r1711 | r1712 | |
| 363 | 373 | MDRV_CPU_VBLANK_INT(skydiver_interrupt, 5) |
| 364 | 374 | MDRV_WATCHDOG_VBLANK_INIT(8) // 128V clocks the same as VBLANK |
| 365 | 375 | |
| 366 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 367 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 368 | 376 | MDRV_MACHINE_RESET(skydiver) |
| 369 | 377 | |
| 370 | 378 | /* video hardware */ |
| 371 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 379 | MDRV_SCREEN_ADD("main", RASTER) | |
| 380 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 381 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 372 | 382 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 373 | 383 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 374 | 384 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 28*8-1) |
| 385 | ||
| 375 | 386 | MDRV_GFXDECODE(skydiver) |
| 376 | MDRV_PALETTE_LENGTH(3) | |
| 377 | MDRV_COLORTABLE_LENGTH(sizeof(colortable_source) / sizeof(colortable_source[0])) | |
| 387 | MDRV_PALETTE_LENGTH(sizeof(colortable_source) / sizeof(colortable_source[0])) | |
| 378 | 388 | |
| 379 | 389 | MDRV_PALETTE_INIT(skydiver) |
| 380 | 390 | MDRV_VIDEO_START(skydiver) |
| r1711 | r1712 | |
|---|---|---|
| 537 | 537 | MDRV_CPU_PROGRAM_MAP(yunsung8_sound_readmem,yunsung8_sound_writemem) |
| 538 | 538 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) /* NMI caused by the MSM5205? */ |
| 539 | 539 | |
| 540 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 541 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 542 | ||
| 543 | 540 | MDRV_MACHINE_RESET(yunsung8) |
| 544 | 541 | |
| 545 | 542 | /* video hardware */ |
| 546 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 543 | MDRV_SCREEN_ADD("main", RASTER) | |
| 544 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 545 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 547 | 546 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 548 | 547 | MDRV_SCREEN_SIZE(512, 256) |
| 549 | 548 | MDRV_SCREEN_VISIBLE_AREA(0+64, 512-64-1, 0+8, 256-8-1) |
| 549 | ||
| 550 | 550 | MDRV_GFXDECODE(yunsung8) |
| 551 | 551 | MDRV_PALETTE_LENGTH(2048) |
| 552 | 552 |
| r1711 | r1712 | |
|---|---|---|
| 36 | 36 | a0 background #2 y position |
| 37 | 37 | c0 background control |
| 38 | 38 | |
| 39 | NOTE: It may be possible to remove the fake port now that conditional DIPS | |
| 40 | are supported. What should really be filled in for each mode? | |
| 39 | ***************************************************************************** | |
| 41 | 40 | |
| 41 | Locations based on m58.c driver | |
| 42 | ||
| 42 | 43 | ***************************************************************************/ |
| 43 | 44 | |
| 44 | 45 | #include "driver.h" |
| 46 | #include "iremipt.h" | |
| 45 | 47 | #include "m52.h" |
| 46 | 48 | #include "audio/irem.h" |
| 47 | 49 | #include "cpu/z80/z80.h" |
| r1711 | r1712 | |
| 50 | 52 | #define MASTER_CLOCK XTAL_18_432MHz |
| 51 | 53 | |
| 52 | 54 | |
| 53 | ||
| 54 | 55 | /************************************* |
| 55 | 56 | * |
| 56 | * Custom input ports | |
| 57 | * | |
| 58 | *************************************/ | |
| 59 | ||
| 60 | static CUSTOM_INPUT( coin_mode ) | |
| 61 | { | |
| 62 | /* Based on the coin mode fill in the upper bits */ | |
| 63 | UINT8 port5 = readinputport(5); | |
| 64 | return (readinputport(4) & 0x04) ? (port5 & 0x0f) : (port5 >> 4); | |
| 65 | } | |
| 66 | ||
| 67 | ||
| 68 | ||
| 69 | /************************************* | |
| 70 | * | |
| 71 | 57 | * Memory maps |
| 72 | 58 | * |
| 73 | 59 | *************************************/ |
| r1711 | r1712 | |
| 83 | 69 | AM_RANGE(0xd000, 0xd000) AM_MIRROR(0x07f8) AM_READ_PORT("IN0") |
| 84 | 70 | AM_RANGE(0xd001, 0xd001) AM_MIRROR(0x07f8) AM_READ_PORT("IN1") |
| 85 | 71 | AM_RANGE(0xd002, 0xd002) AM_MIRROR(0x07f8) AM_READ_PORT("IN2") |
| 86 | AM_RANGE(0xd003, 0xd003) AM_MIRROR(0x07f8) AM_READ_PORT("DSW0") | |
| 87 | AM_RANGE(0xd004, 0xd004) AM_MIRROR(0x07f8) AM_READ_PORT("DSW1") | |
| 72 | AM_RANGE(0xd003, 0xd003) AM_MIRROR(0x07f8) AM_READ_PORT("DSW1") | |
| 73 | AM_RANGE(0xd004, 0xd004) AM_MIRROR(0x07f8) AM_READ_PORT("DSW2") | |
| 88 | 74 | AM_RANGE(0xe000, 0xe7ff) AM_RAM |
| 89 | 75 | ADDRESS_MAP_END |
| 90 | 76 | |
| r1711 | r1712 | |
| 95 | 81 | AM_RANGE(0x8400, 0x87ff) AM_READWRITE(MRA8_RAM, m52_colorram_w) AM_BASE(&colorram) |
| 96 | 82 | AM_RANGE(0xc800, 0xc9ff) AM_WRITE(MWA8_RAM) AM_BASE(&spriteram) AM_SIZE(&spriteram_size) AM_SHARE(1) // bigger or mirrored? |
| 97 | 83 | AM_RANGE(0xd000, 0xd000) AM_READ_PORT("IN0") AM_WRITE(irem_sound_cmd_w) |
| 98 | AM_RANGE(0xd001, 0xd001) AM_READ_PORT("IN1") AM_WRITE( | |
| 84 | AM_RANGE(0xd001, 0xd001) AM_READ_PORT("IN1") AM_WRITE(alpha1v_flipscreen_w) | |
| 99 | 85 | AM_RANGE(0xd002, 0xd002) AM_READ_PORT("IN2") |
| 100 | AM_RANGE(0xd003, 0xd003) AM_READ_PORT("DSW0") | |
| 101 | AM_RANGE(0xd004, 0xd004) AM_READ_PORT("DSW1") | |
| 86 | AM_RANGE(0xd003, 0xd003) AM_READ_PORT("DSW1") | |
| 87 | AM_RANGE(0xd004, 0xd004) AM_READ_PORT("DSW2") | |
| 102 | 88 | AM_RANGE(0xe000, 0xefff) AM_RAM // bigger or mirrored? |
| 103 | 89 | ADDRESS_MAP_END |
| 104 | 90 | |
| r1711 | r1712 | |
| 117 | 103 | |
| 118 | 104 | /************************************* |
| 119 | 105 | * |
| 120 | * | |
| 106 | * Generic port definitions | |
| 121 | 107 | * |
| 122 | 108 | *************************************/ |
| 123 | 109 | |
| 124 | static INPUT_PORTS_START( mpatrol ) | |
| 110 | /* Same as m57, m58 and m62 (IREM Z80 hardware) */ | |
| 111 | static INPUT_PORTS_START( m52 ) | |
| 125 | 112 | PORT_START_TAG("IN0") |
| 113 | /* Start 1 & 2 also restarts and freezes the game with stop mode on | |
| 114 | and are used in test mode to enter and esc the various tests */ | |
| 126 | 115 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 127 | 116 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| 128 | /* coin input must be active for ? frames to be consistently recognized */ | |
| 129 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) PORT_IMPULSE(17) | |
| 117 | /* coin input must be active for 19 frames to be consistently recognized */ | |
| 118 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) PORT_IMPULSE(19) | |
| 130 | 119 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 131 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UN | |
| 120 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED | |
| 132 | 121 | |
| 133 | 122 | PORT_START_TAG("IN1") |
| 134 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY | |
| 135 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY | |
| 136 | PORT_BIT( 0x1c, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 123 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 124 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 125 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 126 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 127 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 137 | 128 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| 138 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UN | |
| 129 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED | |
| 139 | 130 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 140 | 131 | |
| 141 | 132 | PORT_START_TAG("IN2") |
| 142 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_COCKTAIL | |
| 143 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_COCKTAIL | |
| 144 | PORT_BIT( 0x0c, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 133 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 134 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 135 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 136 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 145 | 137 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 146 | 138 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL |
| 147 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UN | |
| 139 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED | |
| 148 | 140 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL |
| 149 | 141 | |
| 150 | PORT_START_TAG("DSW0") | |
| 151 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Lives ) ) | |
| 152 | PORT_DIPSETTING( 0x00, "1" ) | |
| 153 | PORT_DIPSETTING( 0x01, "2" ) | |
| 154 | PORT_DIPSETTING( 0x02, "3" ) | |
| 155 | PORT_DIPSETTING( 0x03, "5" ) | |
| 156 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) ) | |
| 157 | PORT_DIPSETTING( 0x0c, "10000 30000 50000" ) | |
| 158 | PORT_DIPSETTING( 0x08, "20000 40000 60000" ) | |
| 159 | PORT_DIPSETTING( 0x04, "10000" ) | |
| 160 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 161 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(coin_mode, NULL) | |
| 162 | /* Gets filled in based on the coin mode */ | |
| 142 | /* DSW1 is so different from game to game that it isn't included here */ | |
| 163 | 143 | |
| 164 | PORT_START_TAG("DSW1") | |
| 165 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) | |
| 144 | PORT_START_TAG("DSW2") | |
| 145 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW2:1") | |
| 166 | 146 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 167 | 147 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 168 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Cabinet ) ) | |
| 148 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW2:2") | |
| 169 | 149 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 170 | 150 | PORT_DIPSETTING( 0x02, DEF_STR( Cocktail ) ) |
| 171 | PORT_DIPNAME( 0x04, 0x04, "Coin Mode" ) | |
| 151 | PORT_DIPNAME( 0x04, 0x04, "Coin Mode" ) PORT_DIPLOCATION("SW2:3") | |
| 172 | 152 | PORT_DIPSETTING( 0x04, "Mode 1" ) |
| 173 | 153 | PORT_DIPSETTING( 0x00, "Mode 2" ) |
| 174 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) | |
| 175 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 154 | PORT_DIPUNKNOWN_DIPLOC( 0x08, IP_ACTIVE_LOW, "SW2:4" ) | |
| 155 | PORT_DIPUNKNOWN_DIPLOC( 0x10, IP_ACTIVE_LOW, "SW2:5" ) | |
| 156 | PORT_DIPUNKNOWN_DIPLOC( 0x20, IP_ACTIVE_LOW, "SW2:6" ) | |
| 157 | PORT_DIPNAME( 0x40, 0x40, "Invulnerability (Cheat)") PORT_DIPLOCATION("SW2:7") | |
| 158 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 176 | 159 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 160 | PORT_SERVICE_DIPLOC( 0x80, IP_ACTIVE_LOW, "SW2:8" ) | |
| 161 | INPUT_PORTS_END | |
| 162 | ||
| 163 | /************************************* | |
| 164 | * | |
| 165 | * Games port definitions | |
| 166 | * | |
| 167 | *************************************/ | |
| 168 | ||
| 169 | static INPUT_PORTS_START( mpatrol ) | |
| 170 | PORT_INCLUDE(m52) | |
| 171 | ||
| 172 | PORT_MODIFY("IN1") | |
| 173 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY | |
| 174 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY | |
| 175 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) /* IPT_JOYSTICK_DOWN */ | |
| 176 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED ) /* IPT_JOYSTICK_UP */ | |
| 177 | ||
| 178 | PORT_MODIFY("IN2") | |
| 179 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_COCKTAIL | |
| 180 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_COCKTAIL | |
| 181 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) /* IPT_JOYSTICK_DOWN PORT_COCKTAIL */ | |
| 182 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED ) /* IPT_JOYSTICK_UP PORT_COCKTAIL */ | |
| 183 | ||
| 184 | PORT_MODIFY("DSW2") | |
| 185 | PORT_DIPUNUSED_DIPLOC( 0x08, IP_ACTIVE_LOW, "SW2:4" ) /* should have been "slow motion" but no conditional jump at 0x00c3 */ | |
| 177 | 186 | /* In stop mode, press 2 to stop and 1 to restart */ |
| 178 | PORT_DIPNAME( 0x10, 0x10, "Stop Mode (Cheat)") | |
| 187 | PORT_DIPNAME( 0x10, 0x10, "Stop Mode (Cheat)") PORT_DIPLOCATION("SW2:5") | |
| 179 | 188 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| 180 | 189 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 181 | PORT_DIPNAME( 0x20, 0x20, "Sector Selection (Cheat)") | |
| 190 | PORT_DIPNAME( 0x20, 0x20, "Sector Selection (Cheat)") PORT_DIPLOCATION("SW2:6") | |
| 182 | 191 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 183 | 192 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 184 | PORT_DIPNAME( 0x40, 0x40, "Invulnerability (Cheat)") | |
| 185 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 186 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 187 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) | |
| 188 | 193 | |
| 189 | /* Fake port to support the two different coin modes */ | |
| 190 | PORT_START_TAG("FAKE") | |
| 191 | PORT_DIPNAME( 0x0f, 0x0f, "Coinage Mode 1" ) /* mapped on coin mode 1 */ | |
| 192 | PORT_DIPSETTING( 0x09, DEF_STR( 7C_1C ) ) | |
| 193 | PORT_DIPSETTING( 0x0a, DEF_STR( 6C_1C ) ) | |
| 194 | PORT_DIPSETTING( 0x0b, DEF_STR( 5C_1C ) ) | |
| 195 | PORT_DIPSETTING( 0x0c, DEF_STR( 4C_1C ) ) | |
| 196 | PORT_DIPSETTING( 0x0d, DEF_STR( 3C_1C ) ) | |
| 197 | PORT_DIPSETTING( 0x0e, DEF_STR( 2C_1C ) ) | |
| 198 | PORT_DIPSETTING( 0x0f, DEF_STR( 1C_1C ) ) | |
| 199 | PORT_DIPSETTING( 0x07, DEF_STR( 1C_2C ) ) | |
| 200 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_3C ) ) | |
| 201 | PORT_DIPSETTING( 0x05, DEF_STR( 1C_4C ) ) | |
| 202 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_5C ) ) | |
| 203 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_6C ) ) | |
| 204 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_7C ) ) | |
| 205 | PORT_DIPSETTING( 0x01, DEF_STR( 1C_8C ) ) | |
| 206 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) | |
| 207 | PORT_DIPNAME( 0x30, 0x30, "Coin A Mode 2" ) /* mapped on coin mode 2 */ | |
| 208 | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) | |
| 209 | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) | |
| 210 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) | |
| 211 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) | |
| 212 | PORT_DIPNAME( 0xc0, 0xc0, "Coin B Mode 2" ) | |
| 213 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_2C ) ) | |
| 214 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_3C ) ) | |
| 215 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_5C ) ) | |
| 216 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_6C ) ) | |
| 194 | PORT_START_TAG("DSW1") | |
| 195 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1,2") | |
| 196 | PORT_DIPSETTING( 0x00, "1" ) | |
| 197 | PORT_DIPSETTING( 0x01, "2" ) | |
| 198 | PORT_DIPSETTING( 0x02, "3" ) | |
| 199 | PORT_DIPSETTING( 0x03, "5" ) | |
| 200 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:3,4") | |
| 201 | PORT_DIPSETTING( 0x0c, "10000 30000 50000" ) | |
| 202 | PORT_DIPSETTING( 0x08, "20000 40000 60000" ) | |
| 203 | PORT_DIPSETTING( 0x04, "10000" ) | |
| 204 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 205 | IREM_Z80_COINAGE_TYPE_1_LOC(SW1) | |
| 217 | 206 | INPUT_PORTS_END |
| 218 | 207 | |
| 219 | ||
| 220 | 208 | static INPUT_PORTS_START( mpatrolw ) |
| 221 | 209 | PORT_INCLUDE(mpatrol) |
| 222 | 210 | |
| 223 | PORT_MODIFY("DSW0") | |
| 224 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Lives ) ) | |
| 211 | PORT_MODIFY("DSW1") | |
| 212 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1,2") | |
| 225 | 213 | PORT_DIPSETTING( 0x00, "2" ) |
| 226 | 214 | PORT_DIPSETTING( 0x01, "3" ) |
| 227 | 215 | PORT_DIPSETTING( 0x02, "4" ) |
| r1711 | r1712 | |
| 230 | 218 | |
| 231 | 219 | |
| 232 | 220 | static INPUT_PORTS_START( alpha1v ) |
| 233 | PORT_INCLUDE(mpatrol) | |
| 221 | PORT_START_TAG("IN0") | |
| 222 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) | |
| 223 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) | |
| 224 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 225 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 226 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 234 | 227 | |
| 235 | PORT_MODIFY("IN1") | |
| 236 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) | |
| 237 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) | |
| 238 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) | |
| 239 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) | |
| 240 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 228 | PORT_START_TAG("IN1") | |
| 229 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 230 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 231 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 232 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 233 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 234 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 235 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 236 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 241 | 237 | |
| 242 | PORT_MODIFY("IN2") | |
| 243 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_COCKTAIL | |
| 244 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_COCKTAIL | |
| 245 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_COCKTAIL | |
| 246 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_COCKTAIL | |
| 238 | PORT_START_TAG("IN2") | |
| 239 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 240 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 241 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 242 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 243 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 244 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 245 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 246 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 247 | 247 | |
| 248 | PORT_MODIFY("DSW0") | |
| 249 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Lives ) ) | |
| 250 | PORT_DIPSETTING( 0x00, "2" ) | |
| 251 | PORT_DIPSETTING( 0x01, "3" ) | |
| 252 | PORT_DIPSETTING( 0x02, "4" ) | |
| 253 | PORT_DIPSETTING( 0x03, "5" ) | |
| 248 | PORT_START_TAG("DSW1") | |
| 249 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Lives ) ) | |
| 250 | PORT_DIPSETTING( 0x03, "2" ) | |
| 251 | PORT_DIPSETTING( 0x02, "3" ) | |
| 252 | PORT_DIPSETTING( 0x01, "4" ) | |
| 253 | PORT_DIPSETTING( 0x00, "5" ) | |
| 254 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Cabinet ) ) | |
| 255 | PORT_DIPSETTING( 0x04, DEF_STR( Upright ) ) | |
| 256 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) | |
| 257 | PORT_DIPUNUSED( 0x08, IP_ACTIVE_LOW ) | |
| 258 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Allow_Continue ) ) | |
| 259 | PORT_DIPSETTING( 0x10, DEF_STR( No ) ) | |
| 260 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 261 | PORT_DIPUNUSED( 0x20, IP_ACTIVE_LOW ) | |
| 262 | PORT_DIPUNUSED( 0x40, IP_ACTIVE_LOW ) | |
| 263 | PORT_DIPUNUSED( 0x80, IP_ACTIVE_LOW ) | |
| 264 | ||
| 265 | PORT_START_TAG("DSW2") | |
| 266 | PORT_DIPNAME( 0x0f, 0x00, DEF_STR( Coin_A ) ) /* table at 0x5ef4 - 16 bytes (coins) + 16 bytes (credits) */ | |
| 267 | PORT_DIPSETTING( 0x0b, DEF_STR( 4C_1C ) ) | |
| 268 | PORT_DIPSETTING( 0x0c, DEF_STR( 3C_1C ) ) | |
| 269 | // PORT_DIPSETTING( 0x08, DEF_STR( 2C_1C ) ) | |
| 270 | // PORT_DIPSETTING( 0x09, DEF_STR( 2C_1C ) ) | |
| 271 | // PORT_DIPSETTING( 0x0a, DEF_STR( 2C_1C ) ) | |
| 272 | PORT_DIPSETTING( 0x0d, DEF_STR( 2C_1C ) ) | |
| 273 | // PORT_DIPSETTING( 0x0e, DEF_STR( 1C_1C ) ) | |
| 274 | // PORT_DIPSETTING( 0x0f, DEF_STR( 1C_1C ) ) | |
| 275 | // PORT_DIPSETTING( 0x07, DEF_STR( 1C_1C ) ) | |
| 276 | // PORT_DIPSETTING( 0x06, DEF_STR( 1C_1C ) ) | |
| 277 | // PORT_DIPSETTING( 0x05, DEF_STR( 1C_1C ) ) | |
| 278 | // PORT_DIPSETTING( 0x04, DEF_STR( 1C_1C ) ) | |
| 279 | // PORT_DIPSETTING( 0x03, DEF_STR( 1C_1C ) ) | |
| 280 | // PORT_DIPSETTING( 0x02, DEF_STR( 1C_1C ) ) | |
| 281 | // PORT_DIPSETTING( 0x01, DEF_STR( 1C_1C ) ) | |
| 282 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 283 | PORT_DIPNAME( 0xf0, 0x00, DEF_STR( Coin_B ) ) /* table at 0x5f14 - 16 bytes (coins) + 16 bytes (credits) */ | |
| 284 | // PORT_DIPSETTING( 0xf0, "1 Coin/0 Credit" ) | |
| 285 | // PORT_DIPSETTING( 0x70, DEF_STR( 1C_1C ) ) | |
| 286 | // PORT_DIPSETTING( 0x60, DEF_STR( 1C_1C ) ) | |
| 287 | // PORT_DIPSETTING( 0x50, DEF_STR( 1C_1C ) ) | |
| 288 | // PORT_DIPSETTING( 0x40, DEF_STR( 1C_1C ) ) | |
| 289 | // PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) | |
| 290 | // PORT_DIPSETTING( 0x20, DEF_STR( 1C_1C ) ) | |
| 291 | // PORT_DIPSETTING( 0x10, DEF_STR( 1C_1C ) ) | |
| 292 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 293 | // PORT_DIPSETTING( 0xe0, DEF_STR( 1C_1C ) ) | |
| 294 | PORT_DIPSETTING( 0xd0, DEF_STR( 1C_2C ) ) | |
| 295 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_3C ) ) | |
| 296 | PORT_DIPSETTING( 0xb0, DEF_STR( 1C_4C ) ) | |
| 297 | PORT_DIPSETTING( 0xa0, DEF_STR( 1C_5C ) ) | |
| 298 | PORT_DIPSETTING( 0x90, DEF_STR( 1C_6C ) ) | |
| 299 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_7C ) ) | |
| 254 | 300 | INPUT_PORTS_END |
| 255 | 301 | |
| 256 | 302 | |
| r1711 | r1712 | |
| 347 | 393 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 348 | 394 | |
| 349 | 395 | /* video hardware */ |
| 350 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 351 | 396 | MDRV_GFXDECODE(m52) |
| 352 | 397 | MDRV_PALETTE_LENGTH(128*4+16*4+3*4) |
| 353 | 398 | |
| 354 | MDRV_SCREEN_ADD("main", | |
| 399 | MDRV_SCREEN_ADD("main", RASTER) | |
| 355 | 400 | MDRV_SCREEN_RAW_PARAMS(MASTER_CLOCK/3, 384, 136, 376, 282, 22, 274) |
| 356 | 401 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 357 | 402 | |
| r1711 | r1712 | |
| 497 | 542 | * |
| 498 | 543 | *************************************/ |
| 499 | 544 | |
| 500 | GAME( 1982, mpatrol, 0, m52, mpatrol, 0, ROT0, "Irem", "Moon Patrol", GAME_SUPPORTS_SAVE ) | |
| 501 | GAME( 1982, mpatrolw, mpatrol, m52, mpatrolw, 0, ROT0, "Irem (Williams license)", "Moon Patrol (Williams)", GAME_SUPPORTS_SAVE ) | |
| 502 | GAME( 1988, alpha1v, 0, alpha1v, alpha1v, 0, ROT0, "Vision Electronics", "Alpha One (Vision Electronics / Kyle Hodgetts)", GAME_NOT_WORKING|GAME_NO_SOUND ) | |
| 545 | GAME( 1982, mpatrol, 0, m52, mpatrol, 0, ROT0, "Irem", "Moon Patrol", GAME_SUPPORTS_SAVE ) | |
| 546 | GAME( 1982, mpatrolw, mpatrol, m52, mpatrolw, 0, ROT0, "Irem (Williams license)", "Moon Patrol (Williams)", GAME_SUPPORTS_SAVE ) | |
| 547 | GAME( 1988, alpha1v, 0, alpha1v, alpha1v, 0, ROT0, "Vision Electronics", "Alpha One (Vision Electronics / Kyle Hodgetts)", GAME_NOT_WORKING|GAME_NO_SOUND ) |
| r1711 | r1712 | |
|---|---|---|
| 405 | 405 | MDRV_MACHINE_RESET(spacefb) |
| 406 | 406 | |
| 407 | 407 | /* video hardware */ |
| 408 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 409 | 408 | MDRV_VIDEO_START(spacefb) |
| 410 | 409 | MDRV_VIDEO_UPDATE(spacefb) |
| 411 | 410 | |
| 412 | MDRV_SCREEN_ADD("main", | |
| 411 | MDRV_SCREEN_ADD("main", RASTER) | |
| 413 | 412 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 414 | 413 | MDRV_SCREEN_RAW_PARAMS(SPACEFB_PIXEL_CLOCK, SPACEFB_HTOTAL, SPACEFB_HBEND, SPACEFB_HBSTART, SPACEFB_VTOTAL, SPACEFB_VBEND, SPACEFB_VBSTART) |
| 415 | 414 |
| r1711 | r1712 | |
|---|---|---|
| 129 | 129 | #include "driver.h" |
| 130 | 130 | #include "deprecat.h" |
| 131 | 131 | #include "sound/custom.h" |
| 132 | #include " | |
| 132 | #include " | |
| 133 | 133 | #include "geebee.lh" |
| 134 | 134 | #include "sos.lh" |
| 135 | 135 | |
| r1711 | r1712 | |
| 839 | 839 | MDRV_CPU_IO_MAP(readport_geebee,writeport_geebee) |
| 840 | 840 | MDRV_CPU_VBLANK_INT(irq0_line_pulse,1) /* one interrupt per frame */ |
| 841 | 841 | |
| 842 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 843 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 844 | ||
| 845 | 842 | /* video hardware */ |
| 846 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 843 | MDRV_SCREEN_ADD("main", RASTER) | |
| 844 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 845 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 847 | 846 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 848 | 847 | MDRV_SCREEN_SIZE(34*8, 28*8) |
| 849 | 848 | MDRV_SCREEN_VISIBLE_AREA(0*8, 34*8-1, 0*8, 28*8-1) |
| 849 | ||
| 850 | 850 | MDRV_GFXDECODE(1k) |
| 851 | MDRV_PALETTE_LENGTH(3) | |
| 852 | MDRV_COLORTABLE_LENGTH(4*2) | |
| 851 | MDRV_PALETTE_LENGTH(4*2) | |
| 853 | 852 | |
| 854 | 853 | MDRV_PALETTE_INIT(geebee) |
| 855 | 854 | MDRV_VIDEO_START(geebee) |
| r1711 | r1712 | |
| 869 | 868 | MDRV_IMPORT_FROM(geebee) |
| 870 | 869 | |
| 871 | 870 | MDRV_GFXDECODE(2k) |
| 872 | MDRV_ | |
| 871 | MDRV_P | |
| 873 | 872 | |
| 874 | 873 | MDRV_PALETTE_INIT(navarone) |
| 875 | 874 | MDRV_VIDEO_START(navarone) |
| 875 | MDRV_VIDEO_UPDATE(navarone) | |
| 876 | 876 | MACHINE_DRIVER_END |
| 877 | 877 | |
| 878 | 878 | static MACHINE_DRIVER_START( bombbee ) |
| r1711 | r1712 | |
| 882 | 882 | MDRV_CPU_PROGRAM_MAP(readmem_bombbee,writemem_bombbee) |
| 883 | 883 | MDRV_CPU_VBLANK_INT(irq0_line_assert,1) |
| 884 | 884 | |
| 885 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 886 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION /* frames per second, vblank duration */) | |
| 887 | ||
| 888 | 885 | /* video hardware */ |
| 889 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 886 | MDRV_SCREEN_ADD("main", RASTER) | |
| 887 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 888 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0) /* frames per second, vblank duration */) | |
| 890 | 889 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 891 | 890 | MDRV_SCREEN_SIZE(34*8, 28*8) |
| 892 | 891 | MDRV_SCREEN_VISIBLE_AREA(0*8, 34*8-1, 0*8, 28*8-1) |
| 892 | ||
| 893 | 893 | MDRV_GFXDECODE(color) |
| 894 | MDRV_PALETTE_LENGTH(256) | |
| 895 | MDRV_COLORTABLE_LENGTH(2*256) | |
| 894 | MDRV_PALETTE_LENGTH(2*256+1) | |
| 896 | 895 | |
| 897 | 896 | MDRV_PALETTE_INIT(warpwarp) |
| 898 | 897 | MDRV_VIDEO_START(warpwarp) |
| r1711 | r1712 | |
|---|---|---|
| 269 | 269 | MDRV_CPU_PROGRAM_MAP(cd32_map,0) |
| 270 | 270 | MDRV_CPU_VBLANK_INT(amiga_scanline_callback, 312) |
| 271 | 271 | |
| 272 | MDRV_SCREEN_REFRESH_RATE(59.997) | |
| 273 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 274 | ||
| 275 | 272 | MDRV_MACHINE_RESET(amiga) |
| 276 | 273 | MDRV_NVRAM_HANDLER(cd32) |
| 277 | 274 | |
| 278 | 275 | /* video hardware */ |
| 279 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 276 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 277 | ||
| 278 | MDRV_SCREEN_ADD("main", RASTER) | |
| 279 | MDRV_SCREEN_REFRESH_RATE(59.997) | |
| 280 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 280 | 281 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 281 | 282 | MDRV_SCREEN_SIZE(512*2, 312) |
| 282 | 283 | MDRV_SCREEN_VISIBLE_AREA((129-8)*2, (449+8-1)*2, 44-8, 300+8-1) |
| 284 | ||
| 283 | 285 | MDRV_PALETTE_LENGTH(4096) |
| 284 | 286 | MDRV_PALETTE_INIT(amiga) |
| 285 | 287 |
| r1711 | r1712 | |
|---|---|---|
| 637 | 637 | MDRV_CPU_PROGRAM_MAP(wheelfir_sub, 0) |
| 638 | 638 | MDRV_CPU_VBLANK_INT(irq1_line_hold,1) // 1 valid |
| 639 | 639 | |
| 640 | ||
| 641 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 642 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 643 | ||
| 644 | 640 | MDRV_MACHINE_RESET (wheelfir) |
| 645 | 641 | |
| 646 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 642 | ||
| 643 | MDRV_SCREEN_ADD("main", RASTER) | |
| 644 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 645 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 647 | 646 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 648 | 647 | MDRV_SCREEN_SIZE(64*8, 64*8) |
| 649 | 648 | MDRV_SCREEN_VISIBLE_AREA(0*8, 42*8-1, 0*8, 32*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 86 | 86 | |
| 87 | 87 | MDRV_GFXDECODE(steaser) |
| 88 | 88 | |
| 89 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 89 | ||
| 90 | MDRV_SCREEN_ADD("main", RASTER) | |
| 90 | 91 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 91 | 92 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 92 | 93 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 32*8-1) |
| 93 | 94 | MDRV_SCREEN_REFRESH_RATE(60) |
| 94 | MDRV_SCREEN_VBLANK_TIME( | |
| 95 | MDRV_SCREEN_VBLANK_TIME( | |
| 95 | 96 | |
| 96 | 97 | MDRV_PALETTE_LENGTH(0x200) |
| 97 | 98 |
| r1711 | r1712 | |
|---|---|---|
| 351 | 351 | MDRV_CPU_ADD(H6280,32220000/4) /* Custom chip 45, Audio section crystal is 32.220 MHz */ |
| 352 | 352 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 353 | 353 | |
| 354 | /* video hardware */ | |
| 355 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 356 | ||
| 357 | MDRV_SCREEN_ADD("main", RASTER) | |
| 354 | 358 | MDRV_SCREEN_REFRESH_RATE(58) |
| 355 | 359 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529)) |
| 356 | ||
| 357 | /* video hardware */ | |
| 358 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 359 | 360 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 360 | 361 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 361 | 362 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 363 | ||
| 362 | 364 | MDRV_GFXDECODE(cbuster) |
| 363 | 365 | MDRV_PALETTE_LENGTH(2048) |
| 364 | 366 |
| r1711 | r1712 | |
|---|---|---|
| 486 | 486 | MDRV_CPU_PROGRAM_MAP(bballoon_map,0) |
| 487 | 487 | MDRV_CPU_VBLANK_INT(bballoon_interrupt,1) |
| 488 | 488 | |
| 489 | ||
| 490 | MDRV_SCREEN_ADD("main", RASTER) | |
| 489 | 491 | MDRV_SCREEN_REFRESH_RATE(60) |
| 490 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 491 | ||
| 492 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 492 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 493 | 493 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) |
| 494 | 494 | MDRV_SCREEN_SIZE(1024, 1024) |
| 495 | 495 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 239) |
| 496 | ||
| 496 | 497 | MDRV_PALETTE_LENGTH(256) |
| 497 | 498 | |
| 498 | 499 | MDRV_VIDEO_START(bballoon) |
| r1711 | r1712 | |
|---|---|---|
| 678 | 678 | MDRV_CPU_IO_MAP(dunhuang_io_map,0) |
| 679 | 679 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 680 | 680 | |
| 681 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 682 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 683 | 681 | MDRV_WATCHDOG_TIME_INIT(ATTOTIME_IN_SEC(5)) |
| 684 | 682 | |
| 685 | 683 | /* video hardware */ |
| 686 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 684 | MDRV_SCREEN_ADD("main", RASTER) | |
| 685 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 686 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 687 | 687 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 688 | 688 | MDRV_SCREEN_SIZE(512, 256) |
| 689 | 689 | MDRV_SCREEN_VISIBLE_AREA(0+8, 512-8-1, 0+16, 256-16-1) |
| 690 | ||
| 690 | 691 | MDRV_GFXDECODE(dunhuang) |
| 691 | 692 | MDRV_PALETTE_LENGTH(0x100) |
| 692 | 693 |
| r1711 | r1712 | |
|---|---|---|
| 348 | 348 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 349 | 349 | MDRV_CPU_VBLANK_INT(irq0_line_hold,4) |
| 350 | 350 | |
| 351 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 352 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 353 | ||
| 354 | 351 | MDRV_MACHINE_START(gng) |
| 355 | 352 | |
| 356 | 353 | /* video hardware */ |
| 357 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 354 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 355 | ||
| 356 | MDRV_SCREEN_ADD("main", RASTER) | |
| 357 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 358 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 358 | 359 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 359 | 360 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 360 | 361 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 362 | ||
| 361 | 363 | MDRV_GFXDECODE(gng) |
| 362 | 364 | MDRV_PALETTE_LENGTH(256) |
| 363 | 365 |
| r1711 | r1712 | |
|---|---|---|
| 273 | 273 | MDRV_CPU_PROGRAM_MAP(sound_cpu,0) |
| 274 | 274 | MDRV_CPU_IO_MAP(sound_cpu_io,0) |
| 275 | 275 | |
| 276 | /* video hardware */ | |
| 277 | MDRV_SCREEN_ADD("main", RASTER) | |
| 276 | 278 | MDRV_SCREEN_REFRESH_RATE(60) |
| 277 | 279 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(16)) |
| 278 | ||
| 279 | /* video hardware */ | |
| 280 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 281 | 280 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 282 | 281 | MDRV_SCREEN_SIZE(512, 256) |
| 283 | 282 | MDRV_SCREEN_VISIBLE_AREA(0, 512-1, 0, 256-1) |
| 283 | ||
| 284 | 284 | MDRV_GFXDECODE(onetwo) |
| 285 | 285 | MDRV_PALETTE_LENGTH(0x80) |
| 286 | 286 |
| r1711 | r1712 | |
|---|---|---|
| 958 | 958 | MDRV_CPU_IO_MAP(readport_ojankohs,writeport_ojankohs) |
| 959 | 959 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 960 | 960 | |
| 961 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 962 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 963 | ||
| 964 | 961 | MDRV_MACHINE_RESET(ojankohs) |
| 965 | 962 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 966 | 963 | |
| 967 | 964 | /* video hardware */ |
| 968 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 965 | MDRV_SCREEN_ADD("main", RASTER) | |
| 966 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 967 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 969 | 968 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 970 | 969 | MDRV_SCREEN_SIZE(512, 512) |
| 971 | 970 | MDRV_SCREEN_VISIBLE_AREA(0, 288-1, 0, 224-1) |
| 971 | ||
| 972 | 972 | MDRV_GFXDECODE(ojankohs) |
| 973 | 973 | MDRV_PALETTE_LENGTH(1024) |
| 974 | 974 | |
| r1711 | r1712 | |
| 995 | 995 | MDRV_CPU_IO_MAP(readport_ojankohs,writeport_ojankoy) |
| 996 | 996 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 997 | 997 | |
| 998 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 999 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1000 | ||
| 1001 | 998 | MDRV_MACHINE_RESET(ojankohs) |
| 1002 | 999 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 1003 | 1000 | |
| 1004 | 1001 | /* video hardware */ |
| 1005 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1002 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1003 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1004 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1006 | 1005 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1007 | 1006 | MDRV_SCREEN_SIZE(512, 512) |
| 1008 | 1007 | MDRV_SCREEN_VISIBLE_AREA(0, 288-1, 0, 224-1) |
| 1008 | ||
| 1009 | 1009 | MDRV_GFXDECODE(ojankohs) |
| 1010 | 1010 | MDRV_PALETTE_LENGTH(1024) |
| 1011 | 1011 | MDRV_PALETTE_INIT(ojankoy) |
| r1711 | r1712 | |
| 1033 | 1033 | MDRV_CPU_IO_MAP(readport_ccasino,writeport_ccasino) |
| 1034 | 1034 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 1035 | 1035 | |
| 1036 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1037 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1038 | ||
| 1039 | 1036 | MDRV_MACHINE_RESET(ojankohs) |
| 1040 | 1037 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 1041 | 1038 | |
| 1042 | 1039 | /* video hardware */ |
| 1043 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1040 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1041 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1042 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1044 | 1043 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1045 | 1044 | MDRV_SCREEN_SIZE(512, 512) |
| 1046 | 1045 | MDRV_SCREEN_VISIBLE_AREA(0, 288-1, 0, 224-1) |
| 1046 | ||
| 1047 | 1047 | MDRV_GFXDECODE(ojankohs) |
| 1048 | 1048 | MDRV_PALETTE_LENGTH(1024) |
| 1049 | 1049 | |
| r1711 | r1712 | |
| 1070 | 1070 | MDRV_CPU_IO_MAP(readport_ojankoc,writeport_ojankoc) |
| 1071 | 1071 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 1072 | 1072 | |
| 1073 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1074 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1075 | ||
| 1076 | 1073 | MDRV_MACHINE_RESET(ojankohs) |
| 1077 | 1074 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 1078 | 1075 | |
| 1079 | 1076 | /* video hardware */ |
| 1080 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1077 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1078 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1079 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1081 | 1080 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1082 | 1081 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 1083 | 1082 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 8, 248-1) |
| 1083 | ||
| 1084 | 1084 | MDRV_PALETTE_LENGTH(16) |
| 1085 | 1085 | |
| 1086 | 1086 | MDRV_VIDEO_START(ojankoc) |
| r1711 | r1712 | |
|---|---|---|
| 80 | 80 | MDRV_CPU_IO_MAP(main_io_map, 0) |
| 81 | 81 | MDRV_CPU_VBLANK_INT(interrupt, 2) |
| 82 | 82 | |
| 83 | /* video hardware */ | |
| 84 | MDRV_SCREEN_ADD("main", RASTER) | |
| 83 | 85 | MDRV_SCREEN_REFRESH_RATE(60) |
| 84 | ||
| 85 | /* video hardware */ | |
| 86 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 87 | 86 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 88 | 87 | MDRV_SCREEN_SIZE(256, 256) |
| 89 | 88 | MDRV_SCREEN_VISIBLE_AREA(0, 255, 16, 239) |
| 89 | ||
| 90 | 90 | MDRV_PALETTE_LENGTH(8) |
| 91 | 91 | MDRV_PALETTE_INIT(n8080) |
| 92 | 92 | MDRV_VIDEO_START(spacefev) |
| r1711 | r1712 | |
| 105 | 105 | MDRV_CPU_IO_MAP(main_io_map, 0) |
| 106 | 106 | MDRV_CPU_VBLANK_INT(interrupt, 2) |
| 107 | 107 | |
| 108 | /* video hardware */ | |
| 109 | MDRV_SCREEN_ADD("main", RASTER) | |
| 108 | 110 | MDRV_SCREEN_REFRESH_RATE(60) |
| 109 | ||
| 110 | /* video hardware */ | |
| 111 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 112 | 111 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 113 | 112 | MDRV_SCREEN_SIZE(256, 256) |
| 114 | 113 | MDRV_SCREEN_VISIBLE_AREA(0, 255, 16, 239) |
| 114 | ||
| 115 | 115 | MDRV_PALETTE_LENGTH(8) |
| 116 | 116 | MDRV_PALETTE_INIT(n8080) |
| 117 | 117 | MDRV_VIDEO_START(sheriff) |
| r1711 | r1712 | |
| 130 | 130 | MDRV_CPU_IO_MAP(main_io_map, 0) |
| 131 | 131 | MDRV_CPU_VBLANK_INT(interrupt, 2) |
| 132 | 132 | |
| 133 | /* video hardware */ | |
| 134 | MDRV_SCREEN_ADD("main", RASTER) | |
| 133 | 135 | MDRV_SCREEN_REFRESH_RATE(60) |
| 134 | ||
| 135 | /* video hardware */ | |
| 136 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 137 | 136 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 138 | 137 | MDRV_SCREEN_SIZE(256, 256) |
| 139 | 138 | MDRV_SCREEN_VISIBLE_AREA(0, 255, 16, 239) |
| 139 | ||
| 140 | 140 | MDRV_PALETTE_LENGTH(8 + 0x400) |
| 141 | 141 | MDRV_PALETTE_INIT(helifire) |
| 142 | 142 | MDRV_VIDEO_START(helifire) |
| r1711 | r1712 | |
|---|---|---|
| 3031 | 3031 | // MDRV_CPU_VBLANK_INT(nb1413m3_interrupt, 132) // nmiclock = 60 |
| 3032 | 3032 | MDRV_CPU_VBLANK_INT(nb1413m3_interrupt, 1) |
| 3033 | 3033 | |
| 3034 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3035 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 3036 | ||
| 3037 | 3034 | MDRV_MACHINE_RESET(nb1413m3) |
| 3038 | 3035 | |
| 3039 | 3036 | /* video hardware */ |
| 3040 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 3037 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3038 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3039 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 3041 | 3040 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3042 | 3041 | MDRV_SCREEN_SIZE(512, 256) |
| 3043 | 3042 | MDRV_SCREEN_VISIBLE_AREA(0, 512-1, 8, 248-1) |
| 3043 | ||
| 3044 | 3044 | MDRV_PALETTE_LENGTH(256) |
| 3045 | 3045 | |
| 3046 | 3046 | MDRV_VIDEO_START(nbmj8891_2layer) |
| r1711 | r1712 | |
| 3098 | 3098 | MDRV_NVRAM_HANDLER(nb1413m3) |
| 3099 | 3099 | |
| 3100 | 3100 | /* video hardware */ |
| 3101 | MDRV_SCREEN_MODIFY("main") | |
| 3101 | 3102 | MDRV_SCREEN_VISIBLE_AREA(0, 512-1, 16, 240-1) |
| 3102 | 3103 | MDRV_VIDEO_START(nbmj8891_1layer) |
| 3103 | 3104 | MACHINE_DRIVER_END |
| r1711 | r1712 | |
| 3113 | 3114 | MDRV_NVRAM_HANDLER(nb1413m3) |
| 3114 | 3115 | |
| 3115 | 3116 | /* video hardware */ |
| 3117 | MDRV_SCREEN_MODIFY("main") | |
| 3116 | 3118 | MDRV_SCREEN_VISIBLE_AREA(0, 512-1, 16, 240-1) |
| 3117 | 3119 | MDRV_VIDEO_START(nbmj8891_1layer) |
| 3118 | 3120 | MACHINE_DRIVER_END |
| r1711 | r1712 | |
| 3127 | 3129 | // MDRV_CPU_VBLANK_INT(nb1413m3_interrupt, 128) |
| 3128 | 3130 | |
| 3129 | 3131 | /* video hardware */ |
| 3132 | MDRV_SCREEN_MODIFY("main") | |
| 3130 | 3133 | MDRV_SCREEN_VISIBLE_AREA(0, 512-1, 16, 240-1) |
| 3131 | 3134 | MDRV_VIDEO_START(nbmj8891_1layer) |
| 3132 | 3135 | MACHINE_DRIVER_END |
| r1711 | r1712 | |
| 3266 | 3269 | MDRV_NVRAM_HANDLER(nb1413m3) |
| 3267 | 3270 | |
| 3268 | 3271 | /* video hardware */ |
| 3272 | MDRV_SCREEN_MODIFY("main") | |
| 3269 | 3273 | MDRV_SCREEN_VISIBLE_AREA(0, 512-1, 16, 240-1) |
| 3270 | 3274 | MDRV_VIDEO_START(nbmj8891_1layer) |
| 3271 | 3275 | |
| r1711 | r1712 | |
| 3288 | 3292 | MDRV_NVRAM_HANDLER(nb1413m3) |
| 3289 | 3293 | |
| 3290 | 3294 | /* video hardware */ |
| 3295 | MDRV_SCREEN_MODIFY("main") | |
| 3291 | 3296 | MDRV_SCREEN_VISIBLE_AREA(0, 512-1, 16, 240-1) |
| 3292 | 3297 | MDRV_VIDEO_START(nbmj8891_1layer) |
| 3293 | 3298 |
| r1711 | r1712 | |
|---|---|---|
| 403 | 403 | /* audio CPU */ /* 2.51 MHz */ |
| 404 | 404 | MDRV_CPU_PROGRAM_MAP(sound_cpu,0) |
| 405 | 405 | /* IRQs are triggered by the main CPU */ |
| 406 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 407 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 408 | 406 | |
| 409 | 407 | /* video hardware */ |
| 410 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 408 | MDRV_SCREEN_ADD("main", RASTER) | |
| 409 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 410 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 411 | 411 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 412 | 412 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 413 | 413 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 414 | ||
| 414 | 415 | MDRV_GFXDECODE(wc90b) |
| 415 | 416 | MDRV_PALETTE_LENGTH(1024) |
| 416 | 417 |
| r1711 | r1712 | |
|---|---|---|
| 177 | 177 | MDRV_CPU_PROGRAM_MAP(main_map,0) |
| 178 | 178 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 179 | 179 | |
| 180 | /* video hardware */ | |
| 181 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_AFTER_VBLANK) | |
| 182 | ||
| 183 | MDRV_SCREEN_ADD("main", RASTER) | |
| 180 | 184 | MDRV_SCREEN_REFRESH_RATE(60) |
| 181 | 185 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(1500)) |
| 182 | ||
| 183 | /* video hardware */ | |
| 184 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_AFTER_VBLANK) | |
| 185 | 186 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 186 | 187 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 187 | 188 | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 0*8, 32*8-1) |
| 189 | ||
| 188 | 190 | MDRV_GFXDECODE(kncljoe) |
| 189 | MDRV_PALETTE_LENGTH(128+16) | |
| 190 | MDRV_COLORTABLE_LENGTH(16*8+16*8) | |
| 191 | MDRV_PALETTE_LENGTH(16*8+16*8) | |
| 191 | 192 | |
| 192 | 193 | MDRV_PALETTE_INIT(kncljoe) |
| 193 | 194 | MDRV_VIDEO_START(kncljoe) |
| r1711 | r1712 | |
|---|---|---|
| 302 | 302 | MDRV_CPU_IO_MAP(readport,writeport) |
| 303 | 303 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 304 | 304 | |
| 305 | /* video hardware */ | |
| 306 | MDRV_SCREEN_ADD("main", RASTER) | |
| 305 | 307 | MDRV_SCREEN_REFRESH_RATE(60) |
| 306 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 307 | ||
| 308 | /* video hardware */ | |
| 309 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 308 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 310 | 309 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 311 | 310 | MDRV_SCREEN_SIZE(32*16, 32*16) |
| 312 | 311 | MDRV_SCREEN_VISIBLE_AREA(0*16, 32*16-1, 2*16, 30*16-1) |
| 312 | ||
| 313 | 313 | MDRV_GFXDECODE(holeland) |
| 314 | 314 | MDRV_PALETTE_LENGTH(256) |
| 315 | 315 | |
| r1711 | r1712 | |
| 371 | 371 | MDRV_CPU_IO_MAP(readport,writeport) |
| 372 | 372 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 373 | 373 | |
| 374 | /* video hardware */ | |
| 375 | MDRV_SCREEN_ADD("main", RASTER) | |
| 374 | 376 | MDRV_SCREEN_REFRESH_RATE(59) |
| 375 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 376 | ||
| 377 | /* video hardware */ | |
| 378 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 377 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 379 | 378 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 380 | 379 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 381 | 380 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 381 | ||
| 382 | 382 | MDRV_GFXDECODE(crzrally) |
| 383 | 383 | MDRV_PALETTE_LENGTH(256) |
| 384 | 384 |
| r1711 | r1712 | |
|---|---|---|
| 526 | 526 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 527 | 527 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,16) |
| 528 | 528 | |
| 529 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 530 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529) /* 529ms Vblank duration?? */) | |
| 531 | 529 | MDRV_INTERLEAVE(200) |
| 532 | 530 | |
| 533 | 531 | /* video hardware */ |
| 534 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 532 | MDRV_SCREEN_ADD("main", RASTER) | |
| 533 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 534 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529) /* 529ms Vblank duration?? */) | |
| 535 | 535 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 536 | 536 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 537 | 537 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 538 | ||
| 538 | 539 | MDRV_GFXDECODE(liberate) |
| 539 | 540 | MDRV_PALETTE_LENGTH(33) |
| 540 | 541 | MDRV_PALETTE_INIT(liberate) |
| r1711 | r1712 | |
| 596 | 597 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 597 | 598 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,16) |
| 598 | 599 | |
| 599 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 600 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529) /* 529ms Vblank duration?? */) | |
| 601 | 600 | MDRV_INTERLEAVE(200) |
| 602 | 601 | |
| 603 | 602 | /* video hardware */ |
| 604 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 603 | MDRV_SCREEN_ADD("main", RASTER) | |
| 604 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 605 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529) /* 529ms Vblank duration?? */) | |
| 605 | 606 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 606 | 607 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 607 | 608 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 609 | ||
| 608 | 610 | MDRV_GFXDECODE(prosport) |
| 609 | 611 | MDRV_PALETTE_LENGTH(256) |
| 610 | 612 |
| r1711 | r1712 | |
|---|---|---|
| 441 | 441 | /* audio CPU */ /* 2MHz ? */ |
| 442 | 442 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 443 | 443 | |
| 444 | /* video hardware */ | |
| 445 | MDRV_SCREEN_ADD("main", RASTER) | |
| 444 | 446 | MDRV_SCREEN_REFRESH_RATE(60) |
| 445 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 446 | ||
| 447 | /* video hardware */ | |
| 448 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 447 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 449 | 448 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 450 | 449 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 451 | 450 | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 1*8, 31*8-1) |
| 451 | ||
| 452 | 452 | MDRV_GFXDECODE(spdodgeb) |
| 453 | 453 | MDRV_PALETTE_LENGTH(1024) |
| 454 | 454 |
| r1711 | r1712 | |
|---|---|---|
| 294 | 294 | MDRV_CPU_PROGRAM_MAP(sound_map, 0) |
| 295 | 295 | MDRV_CPU_VBLANK_INT(irq0_line_hold, 4) |
| 296 | 296 | |
| 297 | // video hardware | |
| 298 | ||
| 299 | MDRV_SCREEN_ADD("main", RASTER) | |
| 297 | 300 | MDRV_SCREEN_REFRESH_RATE(60) |
| 298 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 299 | ||
| 300 | // video hardware | |
| 301 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 301 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 302 | 302 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 303 | 303 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 304 | 304 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 305 | ||
| 305 | 306 | MDRV_GFXDECODE(gunsmoke) |
| 306 | 307 | MDRV_PALETTE_LENGTH(32*4+16*16+16*16) |
| 307 | 308 |
| r1711 | r1712 | |
|---|---|---|
| 664 | 664 | INPUT_PORTS_END |
| 665 | 665 | |
| 666 | 666 | |
| 667 | ||
| 667 | 668 | /************************************* |
| 668 | 669 | * |
| 669 | 670 | * Games port definitions |
| r1711 | r1712 | |
| 961 | 962 | INPUT_PORTS_END |
| 962 | 963 | |
| 963 | 964 | |
| 965 | ||
| 964 | 966 | /************************************* |
| 965 | 967 | * |
| 966 | 968 | * Graphics definitions |
| r1711 | r1712 | |
| 1009 | 1011 | MDRV_MACHINE_START(cvs) |
| 1010 | 1012 | |
| 1011 | 1013 | /* video hardware */ |
| 1012 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 1014 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 1013 | 1015 | MDRV_VIDEO_START(cvs) |
| 1014 | 1016 | MDRV_VIDEO_UPDATE(cvs) |
| 1015 | 1017 | |
| r1711 | r1712 | |
| 1017 | 1019 | MDRV_PALETTE_LENGTH((256+4)*8+8+1) |
| 1018 | 1020 | MDRV_PALETTE_INIT(cvs) |
| 1019 | 1021 | |
| 1022 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1020 | 1023 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1021 | 1024 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 1022 | 1025 | MDRV_SCREEN_VISIBLE_AREA(0*8, 30*8-1, 1*8, 32*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 1004 | 1004 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 1005 | 1005 | |
| 1006 | 1006 | /* video hardware */ |
| 1007 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 1007 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 1008 | 1008 | MDRV_GFXDECODE(turbo) |
| 1009 | 1009 | MDRV_PALETTE_LENGTH(256) |
| 1010 | 1010 | |
| 1011 | MDRV_SCREEN_ADD("main", | |
| 1011 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1012 | 1012 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1013 | 1013 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART) |
| 1014 | 1014 | |
| r1711 | r1712 | |
| 1030 | 1030 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 1031 | 1031 | |
| 1032 | 1032 | /* video hardware */ |
| 1033 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1034 | 1033 | MDRV_GFXDECODE(turbo) |
| 1035 | 1034 | MDRV_PALETTE_LENGTH(256) |
| 1036 | 1035 | |
| 1037 | MDRV_SCREEN_ADD("main", | |
| 1036 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1038 | 1037 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1039 | 1038 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART) |
| 1040 | 1039 | |
| r1711 | r1712 | |
| 1063 | 1062 | MDRV_MACHINE_RESET(buckrog) |
| 1064 | 1063 | |
| 1065 | 1064 | /* video hardware */ |
| 1066 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1067 | 1065 | MDRV_GFXDECODE(turbo) |
| 1068 | 1066 | MDRV_PALETTE_LENGTH(1024) |
| 1069 | 1067 | |
| 1070 | MDRV_SCREEN_ADD("main", | |
| 1068 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1071 | 1069 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1072 | 1070 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART) |
| 1073 | 1071 |
| r1711 | r1712 | |
|---|---|---|
| 1600 | 1600 | AM_RANGE(0x200000, 0x200001) AM_WRITE(MWA16_NOP ) // ? 0 |
| 1601 | 1601 | AM_RANGE(0x280000, 0x280001) AM_WRITE(MWA16_NOP ) // ? 0 / 1 (sub cpu related?) |
| 1602 | 1602 | AM_RANGE(0x300000, 0x300001) AM_WRITE(MWA16_NOP ) // ? 0 / 1 |
| 1603 | AM_RANGE(0x380000, 0x3803ff) AM_WRITE(paletteram16 | |
| 1603 | AM_RANGE(0x380000, 0x3803ff) AM_WRITE(MWA16_RAM) AM_BASE(&paletteram16 | |
| 1604 | 1604 | AM_RANGE(0x400000, 0x400001) AM_WRITE(MWA16_RAM ) // ? $4000 |
| 1605 | 1605 | AM_RANGE(0x600000, 0x600607) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16 ) // Sprites Y |
| 1606 | 1606 | AM_RANGE(0x800000, 0x800007) AM_WRITE(sub_ctrl_w ) // Sub CPU Control? |
| r1711 | r1712 | |
| 1637 | 1637 | AM_RANGE(0x300000, 0x300001) AM_WRITE(MWA16_NOP ) // IRQ enable/acknowledge? |
| 1638 | 1638 | AM_RANGE(0x400000, 0x400007) AM_WRITE(twineagl_tilebank_w ) // special tile banking to animate water in twineagl |
| 1639 | 1639 | AM_RANGE(0x500000, 0x500001) AM_WRITE(MWA16_NOP ) // ? |
| 1640 | AM_RANGE(0x700000, 0x7003ff) AM_WRITE(paletteram16 | |
| 1640 | AM_RANGE(0x700000, 0x7003ff) AM_WRITE(MWA16_RAM) AM_BASE(&paletteram16 | |
| 1641 | 1641 | AM_RANGE(0x800000, 0x800005) AM_WRITE(MWA16_RAM) AM_BASE(&seta_vctrl_0 ) // VRAM Ctrl |
| 1642 | 1642 | AM_RANGE(0x900000, 0x903fff) AM_WRITE(seta_vram_0_w) AM_BASE(&seta_vram_0 ) // VRAM |
| 1643 | 1643 | AM_RANGE(0xa00000, 0xa00007) AM_WRITE(sub_ctrl_w ) // Sub CPU Control? |
| r1711 | r1712 | |
| 1711 | 1711 | AM_RANGE(0x200000, 0x200fff) AM_WRITE(MWA16_RAM ) // NVRAM |
| 1712 | 1712 | AM_RANGE(0x300000, 0x300001) AM_WRITE(MWA16_NOP ) // ? (random value) |
| 1713 | 1713 | AM_RANGE(0x500000, 0x500001) AM_WRITE(MWA16_NOP ) // ? |
| 1714 | AM_RANGE(0x700000, 0x7003ff) AM_WRITE(paletteram16 | |
| 1714 | AM_RANGE(0x700000, 0x7003ff) AM_WRITE(MWA16_RAM) AM_BASE(&paletteram16 | |
| 1715 | 1715 | AM_RANGE(0x800000, 0x800005) AM_WRITE(MWA16_RAM) AM_BASE(&seta_vctrl_0 ) // VRAM Ctrl |
| 1716 | 1716 | AM_RANGE(0x900000, 0x903fff) AM_WRITE(seta_vram_0_w) AM_BASE(&seta_vram_0 ) // VRAM |
| 1717 | 1717 | AM_RANGE(0x904000, 0x904fff) AM_WRITE(MWA16_RAM ) // |
| r1711 | r1712 | |
| 1773 | 1773 | } |
| 1774 | 1774 | } |
| 1775 | 1775 | |
| 1776 | /* palette can probably be handled in a better way (better colortable / palette init..) */ | |
| 1777 | 1776 | |
| 1778 | INLINE void usc_changecolor_xRRRRRGGGGGBBBBB(pen_t color,int data) | |
| 1779 | { | |
| 1780 | if (color>=0x100) palette_set_color_rgb(Machine,color-0x100,pal5bit(data >> 10),pal5bit(data >> 5),pal5bit(data >> 0)); | |
| 1781 | else palette_set_color_rgb(Machine,color+0x200,pal5bit(data >> 10),pal5bit(data >> 5),pal5bit(data >> 0)); | |
| 1782 | } | |
| 1783 | ||
| 1784 | static WRITE16_HANDLER( usclssic_paletteram16_xRRRRRGGGGGBBBBB_word_w ) | |
| 1785 | { | |
| 1786 | COMBINE_DATA(&paletteram16[offset]); | |
| 1787 | usc_changecolor_xRRRRRGGGGGBBBBB(offset,paletteram16[offset]); | |
| 1788 | } | |
| 1789 | ||
| 1790 | ||
| 1791 | 1777 | static ADDRESS_MAP_START( usclssic_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1792 | 1778 | AM_RANGE(0x000000, 0x07ffff) AM_READ(MRA16_ROM ) // ROM |
| 1793 | 1779 | AM_RANGE(0xff0000, 0xffffff) AM_READ(MRA16_RAM ) // RAM |
| r1711 | r1712 | |
| 1813 | 1799 | AM_RANGE(0x800000, 0x800607) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16 ) // Sprites Y |
| 1814 | 1800 | AM_RANGE(0x900000, 0x900001) AM_WRITE(MWA16_RAM ) // ? $4000 |
| 1815 | 1801 | AM_RANGE(0xa00000, 0xa00005) AM_WRITE(MWA16_RAM) AM_BASE(&seta_vctrl_0 ) // VRAM Ctrl |
| 1816 | AM_RANGE(0xb00000, 0xb003ff) AM_WRITE( | |
| 1802 | AM_RANGE(0xb00000, 0xb003ff) AM_WRITE(MWA16 | |
| 1817 | 1803 | AM_RANGE(0xb40000, 0xb40001) AM_WRITE(usclssic_lockout_w ) // Coin Lockout + Tiles Banking |
| 1818 | 1804 | AM_RANGE(0xb40010, 0xb40011) AM_WRITE(calibr50_soundlatch_w ) // To Sub CPU |
| 1819 | 1805 | AM_RANGE(0xb40018, 0xb40019) AM_WRITE(watchdog_reset16_w ) // Watchdog |
| r1711 | r1712 | |
| 1851 | 1837 | AM_RANGE(0x200000, 0x200001) AM_WRITE(MWA16_NOP ) // ? watchdog ? |
| 1852 | 1838 | AM_RANGE(0x300000, 0x300001) AM_WRITE(MWA16_NOP ) // ? 0 (irq ack lev 2?) |
| 1853 | 1839 | AM_RANGE(0x500000, 0x500001) AM_WRITE(MWA16_NOP ) // ? (end of lev 1: bit 4 goes 1,0,1) |
| 1854 | AM_RANGE(0x700000, 0x7003ff) AM_WRITE(paletteram16 | |
| 1840 | AM_RANGE(0x700000, 0x7003ff) AM_WRITE(MWA16_RAM) AM_BASE(&paletteram16 | |
| 1855 | 1841 | AM_RANGE(0xa00000, 0xa00607) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16 ) // Sprites Y |
| 1856 | 1842 | AM_RANGE(0xc00000, 0xc00001) AM_WRITE(MWA16_RAM ) // ? 0x4000 |
| 1857 | 1843 | AM_RANGE(0xe00000, 0xe03fff) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16_2 ) // Sprites Code + X + Attr |
| r1711 | r1712 | |
| 1893 | 1879 | AM_RANGE(0x300000, 0x30ffff) AM_WRITE(MWA16_RAM ) // RAM (wrofaero only?) |
| 1894 | 1880 | AM_RANGE(0x500000, 0x500005) AM_WRITE(seta_vregs_w) AM_BASE(&seta_vregs ) // Coin Lockout + Video Registers |
| 1895 | 1881 | AM_RANGE(0x700000, 0x7003ff) AM_WRITE(MWA16_RAM ) // (rezon,jjsquawk) |
| 1896 | AM_RANGE(0x700400, 0x700fff) AM_WRITE(paletteram16 | |
| 1882 | AM_RANGE(0x700400, 0x700fff) AM_WRITE(MWA16_RAM) AM_BASE(&paletteram16 | |
| 1897 | 1883 | AM_RANGE(0x701000, 0x70ffff) AM_WRITE(MWA16_RAM ) // |
| 1898 | 1884 | AM_RANGE(0x800000, 0x800607) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16 ) // Sprites Y |
| 1899 | 1885 | AM_RANGE(0x880000, 0x880001) AM_WRITE(MWA16_RAM ) // ? 0xc000 |
| r1711 | r1712 | |
| 1948 | 1934 | AM_RANGE(0x300000, 0x30ffff) AM_WRITE(MWA16_RAM ) // RAM (wrofaero only?) |
| 1949 | 1935 | AM_RANGE(0x500000, 0x500005) AM_WRITE(seta_vregs_w) AM_BASE(&seta_vregs ) // Coin Lockout + Video Registers |
| 1950 | 1936 | AM_RANGE(0x700000, 0x7003ff) AM_WRITE(MWA16_RAM ) // (rezon,jjsquawk) |
| 1951 | AM_RANGE(0x700400, 0x700fff) AM_WRITE(paletteram16 | |
| 1937 | AM_RANGE(0x700400, 0x700fff) AM_WRITE(MWA16_RAM) AM_BASE(&paletteram16 | |
| 1952 | 1938 | AM_RANGE(0x701000, 0x70ffff) AM_WRITE(MWA16_RAM ) // |
| 1953 | 1939 | AM_RANGE(0x800000, 0x803fff) AM_WRITE(seta_vram_0_w) AM_BASE(&seta_vram_0 ) // VRAM 0 |
| 1954 | 1940 | AM_RANGE(0x804000, 0x80ffff) AM_WRITE(MWA16_RAM ) // (jjsquawk) |
| r1711 | r1712 | |
| 2044 | 2030 | AM_RANGE(0x300000, 0x30ffff) AM_WRITE(MWA16_RAM ) // RAM (wrofaero only?) |
| 2045 | 2031 | AM_RANGE(0x500000, 0x500005) AM_WRITE(seta_vregs_w) AM_BASE(&seta_vregs ) // Coin Lockout + Video Registers |
| 2046 | 2032 | AM_RANGE(0x700000, 0x7003ff) AM_WRITE(MWA16_RAM ) // (rezon,jjsquawk) |
| 2047 | AM_RANGE(0x700400, 0x700fff) AM_WRITE(paletteram16 | |
| 2033 | AM_RANGE(0x700400, 0x700fff) AM_WRITE(MWA16_RAM) AM_BASE(&paletteram16 | |
| 2048 | 2034 | AM_RANGE(0x701000, 0x70ffff) AM_WRITE(MWA16_RAM ) // |
| 2049 | 2035 | AM_RANGE(0x800000, 0x803fff) AM_WRITE(seta_vram_0_w) AM_BASE(&seta_vram_0 ) // VRAM 0 |
| 2050 | 2036 | AM_RANGE(0x804000, 0x80ffff) AM_WRITE(MWA16_RAM ) // (jjsquawk) |
| r1711 | r1712 | |
| 2095 | 2081 | AM_RANGE(0x8000f0, 0x8000f1) AM_WRITE(MWA16_RAM ) // NVRAM |
| 2096 | 2082 | AM_RANGE(0x800100, 0x8001ff) AM_WRITE(MWA16_RAM ) // NVRAM |
| 2097 | 2083 | AM_RANGE(0xa00000, 0xa03fff) AM_WRITE(seta_sound_word_w ) // Sound |
| 2098 | AM_RANGE(0xb00000, 0xb003ff) AM_WRITE(paletteram16 | |
| 2084 | AM_RANGE(0xb00000, 0xb003ff) AM_WRITE(MWA16_RAM) AM_BASE(&paletteram16 | |
| 2099 | 2085 | AM_RANGE(0xc00000, 0xc03fff) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16_2 ) // Sprites Code + X + Attr |
| 2100 | 2086 | AM_RANGE(0xd00000, 0xd00001) AM_WRITE(MWA16_RAM ) // ? 0x4000 |
| 2101 | 2087 | AM_RANGE(0xe00000, 0xe00607) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16 ) // Sprites Y |
| r1711 | r1712 | |
| 2132 | 2118 | AM_RANGE(0x200000, 0x200001) AM_WRITE(MWA16_NOP ) // ? 0/1 (IRQ acknowledge?) |
| 2133 | 2119 | AM_RANGE(0x400000, 0x400001) AM_WRITE(seta_vregs_w) AM_BASE(&seta_vregs ) // Coin Lockout + Sound Enable (bit 4?) |
| 2134 | 2120 | AM_RANGE(0xa00000, 0xa03fff) AM_WRITE(seta_sound_word_w ) // Sound |
| 2135 | AM_RANGE(0xb00000, 0xb003ff) AM_WRITE(paletteram16 | |
| 2121 | AM_RANGE(0xb00000, 0xb003ff) AM_WRITE(MWA16_RAM) AM_BASE(&paletteram16 | |
| 2136 | 2122 | AM_RANGE(0xc00000, 0xc03fff) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16_2 ) // Sprites Code + X + Attr |
| 2137 | 2123 | AM_RANGE(0xd00000, 0xd00001) AM_WRITE(MWA16_RAM ) // ? 0x4000 |
| 2138 | 2124 | AM_RANGE(0xe00000, 0xe00607) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16 ) // Sprites Y |
| r1711 | r1712 | |
| 2173 | 2159 | AM_RANGE(0x100000, 0x10ffff) AM_WRITE(MWA16_RAM ) // RAM |
| 2174 | 2160 | AM_RANGE(0x500000, 0x500005) AM_WRITE(seta_vregs_w) AM_BASE(&seta_vregs ) // Coin Lockout + Video Registers |
| 2175 | 2161 | AM_RANGE(0x700000, 0x7003ff) AM_WRITE(MWA16_RAM ) |
| 2176 | AM_RANGE(0x700400, 0x700fff) AM_WRITE(paletteram16 | |
| 2162 | AM_RANGE(0x700400, 0x700fff) AM_WRITE(MWA16_RAM) AM_BASE(&paletteram16 | |
| 2177 | 2163 | AM_RANGE(0x701000, 0x70ffff) AM_WRITE(MWA16_RAM ) // |
| 2178 | 2164 | AM_RANGE(0x800000, 0x803fff) AM_WRITE(seta_vram_0_w) AM_BASE(&seta_vram_0 ) // VRAM 0 |
| 2179 | 2165 | AM_RANGE(0x804000, 0x80ffff) AM_WRITE(MWA16_RAM ) // |
| r1711 | r1712 | |
| 2220 | 2206 | AM_RANGE(0x200000, 0x200001) AM_WRITE(MWA16_NOP ) // Watchdog |
| 2221 | 2207 | AM_RANGE(0x300000, 0x300001) AM_WRITE(MWA16_NOP ) // ? IRQ Ack |
| 2222 | 2208 | AM_RANGE(0x500000, 0x500001) AM_WRITE(seta_vregs_w) AM_BASE(&seta_vregs ) // Coin Lockout + Video Registers |
| 2223 | AM_RANGE(0x700000, 0x7003ff) AM_WRITE(paletteram16 | |
| 2209 | AM_RANGE(0x700000, 0x7003ff) AM_WRITE(MWA16_RAM) AM_BASE(&paletteram16 | |
| 2224 | 2210 | AM_RANGE(0x800000, 0x800005) AM_WRITE(MWA16_RAM) AM_BASE(&seta_vctrl_0 ) // VRAM Ctrl |
| 2225 | 2211 | AM_RANGE(0x900000, 0x903fff) AM_WRITE(seta_vram_0_w) AM_BASE(&seta_vram_0 ) // VRAM |
| 2226 | 2212 | AM_RANGE(0x904000, 0x90ffff) AM_WRITE(MWA16_NOP ) // unused (qzkklogy) |
| r1711 | r1712 | |
| 2268 | 2254 | AM_RANGE(0x40000c, 0x40000d) AM_WRITE(watchdog_reset16_w ) // Watchdog (sokonuke) |
| 2269 | 2255 | AM_RANGE(0x500000, 0x500003) AM_WRITE(seta_vregs_w) AM_BASE(&seta_vregs ) // Coin Lockout + Video Registers |
| 2270 | 2256 | AM_RANGE(0x500004, 0x500007) AM_WRITE(MWA16_NOP ) // IRQ Ack (sokonuke) |
| 2271 | AM_RANGE(0x600400, 0x600fff) AM_WRITE(paletteram16 | |
| 2257 | AM_RANGE(0x600400, 0x600fff) AM_WRITE(MWA16_RAM) AM_BASE(&paletteram16 | |
| 2272 | 2258 | AM_RANGE(0x601000, 0x610bff) AM_WRITE(MWA16_RAM ) // |
| 2273 | 2259 | AM_RANGE(0x800000, 0x803fff) AM_WRITE(seta_vram_0_w) AM_BASE(&seta_vram_0 ) // VRAM 0 |
| 2274 | 2260 | AM_RANGE(0x804000, 0x80ffff) AM_WRITE(MWA16_RAM ) // |
| r1711 | r1712 | |
| 2317 | 2303 | AM_RANGE(0x600000, 0x600005) AM_WRITE(seta_vregs_w) AM_BASE(&seta_vregs ) // ? Coin Lockout + Video Registers |
| 2318 | 2304 | AM_RANGE(0x600006, 0x600007) AM_WRITE(MWA16_NOP ) // ? |
| 2319 | 2305 | AM_RANGE(0x700000, 0x7003ff) AM_WRITE(MWA16_RAM ) // Palette RAM (tested) |
| 2320 | AM_RANGE(0x700400, 0x700fff) AM_WRITE(paletteram16 | |
| 2306 | AM_RANGE(0x700400, 0x700fff) AM_WRITE(MWA16_RAM) AM_BASE(&paletteram16 | |
| 2321 | 2307 | AM_RANGE(0x701000, 0x703fff) AM_WRITE(MWA16_RAM ) // Palette |
| 2322 | 2308 | AM_RANGE(0x800000, 0x803fff) AM_WRITE(seta_vram_0_w) AM_BASE(&seta_vram_0 ) // VRAM 0 |
| 2323 | 2309 | AM_RANGE(0x804000, 0x807fff) AM_WRITE(MWA16_RAM ) // tested |
| r1711 | r1712 | |
| 2361 | 2347 | AM_RANGE(0x50000c, 0x50000d) AM_WRITE(watchdog_reset16_w ) // Watchdog |
| 2362 | 2348 | AM_RANGE(0x600000, 0x600005) AM_WRITE(seta_vregs_w) AM_BASE(&seta_vregs ) // ? Coin Lockout + Video Registers |
| 2363 | 2349 | AM_RANGE(0x600006, 0x600007) AM_WRITE(MWA16_NOP ) // ? |
| 2364 | AM_RANGE(0x700400, 0x700fff) AM_WRITE(paletteram16 | |
| 2350 | AM_RANGE(0x700400, 0x700fff) AM_WRITE(MWA16_RAM) AM_BASE(&paletteram16 | |
| 2365 | 2351 | AM_RANGE(0x800000, 0x803fff) AM_WRITE(seta_vram_0_w) AM_BASE(&seta_vram_0 ) // VRAM 0 |
| 2366 | 2352 | AM_RANGE(0x880000, 0x883fff) AM_WRITE(seta_vram_2_w) AM_BASE(&seta_vram_2 ) // VRAM 2 |
| 2367 | 2353 | AM_RANGE(0x900000, 0x900005) AM_WRITE(MWA16_RAM) AM_BASE(&seta_vctrl_0 ) // VRAM 0&1 Ctrl |
| r1711 | r1712 | |
| 2433 | 2419 | AM_RANGE(0x8000f0, 0x8000f1) AM_WRITE(MWA16_RAM ) // NVRAM |
| 2434 | 2420 | AM_RANGE(0x800100, 0x8001ff) AM_WRITE(MWA16_RAM ) // NVRAM |
| 2435 | 2421 | AM_RANGE(0xa00000, 0xa03fff) AM_WRITE(seta_sound_word_w ) // Sound |
| 2436 | AM_RANGE(0xb00000, 0xb003ff) AM_WRITE(paletteram16 | |
| 2422 | AM_RANGE(0xb00000, 0xb003ff) AM_WRITE(MWA16_RAM) AM_BASE(&paletteram16 | |
| 2437 | 2423 | AM_RANGE(0xc00000, 0xc03fff) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16_2 ) // Sprites Code + X + Attr |
| 2438 | 2424 | AM_RANGE(0xd00000, 0xd00001) AM_WRITE(MWA16_RAM ) // ? 0x4000 |
| 2439 | 2425 | AM_RANGE(0xe00000, 0xe00607) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16 ) // Sprites Y |
| r1711 | r1712 | |
| 2486 | 2472 | AM_RANGE(0x400000, 0x400001) AM_WRITE(MWA16_NOP ) // Lev 2 IRQ Ack |
| 2487 | 2473 | AM_RANGE(0x400004, 0x400005) AM_WRITE(MWA16_NOP ) // Lev 4 IRQ Ack |
| 2488 | 2474 | AM_RANGE(0x500000, 0x500005) AM_WRITE(msgundam_vregs_w) AM_BASE(&seta_vregs ) // Coin Lockout + Video Registers |
| 2489 | AM_RANGE(0x700400, 0x700fff) AM_WRITE(paletteram16 | |
| 2475 | AM_RANGE(0x700400, 0x700fff) AM_WRITE(MWA16_RAM) AM_BASE(&paletteram16 | |
| 2490 | 2476 | AM_RANGE(0x800000, 0x800607) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16 ) // Sprites Y |
| 2491 | 2477 | AM_RANGE(0x880000, 0x880001) AM_WRITE(MWA16_RAM ) // ? 0x4000 |
| 2492 | 2478 | AM_RANGE(0x900000, 0x903fff) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16_2 ) // Sprites Code + X + Attr |
| r1711 | r1712 | |
| 2544 | 2530 | AM_RANGE(0xa00000, 0xa00607) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16 ) // Sprites Y |
| 2545 | 2531 | AM_RANGE(0xa80000, 0xa80001) AM_WRITE(MWA16_RAM ) // ? 0x4000 |
| 2546 | 2532 | AM_RANGE(0xb00000, 0xb03fff) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16_2 ) // Sprites Code + X + Attr |
| 2547 | AM_RANGE(0xc00400, 0xc00fff) AM_WRITE(paletteram16 | |
| 2533 | AM_RANGE(0xc00400, 0xc00fff) AM_WRITE(MWA16_RAM) AM_BASE(&paletteram16 | |
| 2548 | 2534 | ADDRESS_MAP_END |
| 2549 | 2535 | |
| 2550 | 2536 | /*************************************************************************** |
| r1711 | r1712 | |
| 2588 | 2574 | AM_RANGE(0xa00000, 0xa00607) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16 ) // Sprites Y |
| 2589 | 2575 | AM_RANGE(0xa80000, 0xa80001) AM_WRITE(MWA16_RAM ) // ? 0x4000 |
| 2590 | 2576 | AM_RANGE(0xb00000, 0xb03fff) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16_2 ) // Sprites Code + X + Attr |
| 2591 | AM_RANGE(0xc00400, 0xc00fff) AM_WRITE(paletteram16 | |
| 2577 | AM_RANGE(0xc00400, 0xc00fff) AM_WRITE(MWA16_RAM) AM_BASE(&paletteram16 | |
| 2592 | 2578 | ADDRESS_MAP_END |
| 2593 | 2579 | |
| 2594 | 2580 | /*************************************************************************** |
| r1711 | r1712 | |
| 2651 | 2637 | AM_RANGE(0x800000, 0x803fff) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16_2 ) // Sprites Code + X + Attr |
| 2652 | 2638 | AM_RANGE(0x900000, 0x900001) AM_WRITE(MWA16_RAM ) // ? 0x4000 |
| 2653 | 2639 | AM_RANGE(0xa00000, 0xa00607) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16 ) // Sprites Y |
| 2654 | AM_RANGE(0xb00000, 0xb003ff) AM_WRITE(paletteram16 | |
| 2640 | AM_RANGE(0xb00000, 0xb003ff) AM_WRITE(MWA16_RAM) AM_BASE(&paletteram16 | |
| 2655 | 2641 | AM_RANGE(0xc00000, 0xc03fff) AM_WRITE(seta_sound_word_w ) // Sound |
| 2656 | 2642 | ADDRESS_MAP_END |
| 2657 | 2643 | |
| r1711 | r1712 | |
| 2698 | 2684 | AM_RANGE(0x300000, 0x300001) AM_WRITE(MWA16_NOP ) // ? |
| 2699 | 2685 | AM_RANGE(0x400000, 0x40ffff) AM_WRITE(thunderl_protection_w ) // Protection (not in wits) |
| 2700 | 2686 | AM_RANGE(0x500000, 0x500001) AM_WRITE(seta_vregs_w) AM_BASE(&seta_vregs ) // Coin Lockout |
| 2701 | AM_RANGE(0x700000, 0x7003ff) AM_WRITE(paletteram16 | |
| 2687 | AM_RANGE(0x700000, 0x7003ff) AM_WRITE(MWA16_RAM) AM_BASE(&paletteram16 | |
| 2702 | 2688 | AM_RANGE(0xc00000, 0xc00001) AM_WRITE(MWA16_RAM ) // ? 0x4000 |
| 2703 | 2689 | AM_RANGE(0xd00000, 0xd00607) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16 ) // Sprites Y |
| 2704 | 2690 | AM_RANGE(0xe00000, 0xe03fff) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16_2 ) // Sprites Code + X + Attr |
| r1711 | r1712 | |
| 2758 | 2744 | static ADDRESS_MAP_START( umanclub_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 2759 | 2745 | AM_RANGE(0x000000, 0x03ffff) AM_WRITE(MWA16_ROM ) // ROM |
| 2760 | 2746 | AM_RANGE(0x200000, 0x20ffff) AM_WRITE(MWA16_RAM ) // RAM |
| 2761 | AM_RANGE(0x300000, 0x3003ff) AM_WRITE(paletteram16 | |
| 2747 | AM_RANGE(0x300000, 0x3003ff) AM_WRITE(MWA16_RAM) AM_BASE(&paletteram16 | |
| 2762 | 2748 | AM_RANGE(0x300400, 0x300fff) AM_WRITE(MWA16_RAM ) // |
| 2763 | 2749 | AM_RANGE(0x400000, 0x400001) AM_WRITE(MWA16_NOP ) // ? (end of lev 2) |
| 2764 | 2750 | AM_RANGE(0x400004, 0x400005) AM_WRITE(MWA16_NOP ) // ? (end of lev 2) |
| r1711 | r1712 | |
| 2802 | 2788 | AM_RANGE(0x000000, 0x0fffff) AM_WRITE(MWA16_ROM ) // ROM |
| 2803 | 2789 | AM_RANGE(0x200000, 0x20ffff) AM_WRITE(MWA16_RAM ) // ROM |
| 2804 | 2790 | AM_RANGE(0x500000, 0x500005) AM_WRITE(seta_vregs_w) AM_BASE(&seta_vregs ) // ? Coin Lockout + Video Registers |
| 2805 | AM_RANGE(0x700400, 0x700fff) AM_WRITE(paletteram16 | |
| 2791 | AM_RANGE(0x700400, 0x700fff) AM_WRITE(MWA16_RAM) AM_BASE(&paletteram16 | |
| 2806 | 2792 | AM_RANGE(0x800000, 0x803fff) AM_WRITE(seta_vram_0_w) AM_BASE(&seta_vram_0 ) // VRAM 0 |
| 2807 | 2793 | AM_RANGE(0x880000, 0x883fff) AM_WRITE(seta_vram_2_w) AM_BASE(&seta_vram_2 ) // VRAM 2 |
| 2808 | 2794 | AM_RANGE(0x900000, 0x900005) AM_WRITE(MWA16_RAM) AM_BASE(&seta_vctrl_0 ) // VRAM 0&1 Ctrl |
| r1711 | r1712 | |
| 3067 | 3053 | AM_RANGE(0x400000, 0x400001) AM_WRITE(seta_vregs_w) AM_BASE(&seta_vregs ) // Coin Lockout + Sound Enable (bit 4?) |
| 3068 | 3054 | AM_RANGE(0x900000, 0x9001ff) AM_WRITE(pairlove_prot_w) |
| 3069 | 3055 | AM_RANGE(0xa00000, 0xa03fff) AM_WRITE(seta_sound_word_w ) // Sound |
| 3070 | AM_RANGE(0xb00000, 0xb00fff) AM_WRITE(paletteram16 | |
| 3056 | AM_RANGE(0xb00000, 0xb00fff) AM_WRITE(MWA16_RAM) AM_BASE(&paletteram16 | |
| 3071 | 3057 | AM_RANGE(0xc00000, 0xc03fff) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16_2 ) // Sprites Code + X + Attr |
| 3072 | 3058 | AM_RANGE(0xd00000, 0xd00001) AM_WRITE(MWA16_RAM ) // ? 0x4000 |
| 3073 | 3059 | AM_RANGE(0xe00000, 0xe00607) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16 ) // Sprites Y |
| r1711 | r1712 | |
| 3091 | 3077 | AM_RANGE(0x610006, 0x610007) AM_WRITENOP |
| 3092 | 3078 | AM_RANGE(0x620000, 0x620003) AM_WRITENOP // protection |
| 3093 | 3079 | AM_RANGE(0x630000, 0x630003) AM_READ(seta_dsw_r) |
| 3094 | AM_RANGE(0x640400, 0x640fff) AM_WRITE(paletteram16 | |
| 3080 | AM_RANGE(0x640400, 0x640fff) AM_WRITE(MWA16_RAM) AM_BASE(&paletteram16 | |
| 3095 | 3081 | AM_RANGE(0x650000, 0x650001) AM_WRITE(YM3812_control_port_0_lsb_w) |
| 3096 | 3082 | AM_RANGE(0x650002, 0x650003) AM_WRITE(YM3812_write_port_0_lsb_w) |
| 3097 | 3083 | AM_RANGE(0x658000, 0x658001) AM_WRITE(OKIM6295_data_0_lsb_w) |
| r1711 | r1712 | |
| 6706 | 6692 | MDRV_CPU_PROGRAM_MAP(tndrcade_sub_readmem,tndrcade_sub_writemem) |
| 6707 | 6693 | MDRV_CPU_VBLANK_INT(tndrcade_sub_interrupt,TNDRCADE_SUB_INTERRUPTS_NUM) |
| 6708 | 6694 | |
| 6709 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 6710 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 6711 | ||
| 6712 | 6695 | /* video hardware */ |
| 6713 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 6696 | MDRV_SCREEN_ADD("main", RASTER) | |
| 6697 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 6698 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 6714 | 6699 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 6715 | 6700 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 6716 | 6701 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 2*8, 30*8-1) |
| 6702 | ||
| 6717 | 6703 | MDRV_GFXDECODE(tndrcade) |
| 6718 | 6704 | MDRV_PALETTE_LENGTH(512) /* sprites only */ |
| 6719 | 6705 | |
| r1711 | r1712 | |
| 6756 | 6742 | MDRV_CPU_PROGRAM_MAP(twineagl_sub_readmem,twineagl_sub_writemem) |
| 6757 | 6743 | MDRV_CPU_VBLANK_INT(seta_sub_interrupt,SETA_SUB_INTERRUPTS_NUM) |
| 6758 | 6744 | |
| 6759 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 6760 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 6761 | ||
| 6762 | 6745 | /* video hardware */ |
| 6763 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 6746 | MDRV_SCREEN_ADD("main", RASTER) | |
| 6747 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 6748 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 6764 | 6749 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 6765 | 6750 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 6766 | 6751 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 1*8, 31*8-1) |
| 6752 | ||
| 6767 | 6753 | MDRV_GFXDECODE(downtown) |
| 6768 | 6754 | MDRV_PALETTE_LENGTH(512) |
| 6769 | 6755 | |
| r1711 | r1712 | |
| 6798 | 6784 | MDRV_CPU_PROGRAM_MAP(downtown_sub_readmem,downtown_sub_writemem) |
| 6799 | 6785 | MDRV_CPU_VBLANK_INT(seta_sub_interrupt,SETA_SUB_INTERRUPTS_NUM) |
| 6800 | 6786 | |
| 6801 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 6802 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 6803 | ||
| 6804 | 6787 | /* video hardware */ |
| 6805 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 6788 | MDRV_SCREEN_ADD("main", RASTER) | |
| 6789 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 6790 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 6806 | 6791 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 6807 | 6792 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 6808 | 6793 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 1*8, 31*8-1) |
| 6794 | ||
| 6809 | 6795 | MDRV_GFXDECODE(downtown) |
| 6810 | 6796 | MDRV_PALETTE_LENGTH(512) |
| 6811 | 6797 | |
| r1711 | r1712 | |
| 6858 | 6844 | MDRV_CPU_PROGRAM_MAP(calibr50_sub_readmem,calibr50_sub_writemem) |
| 6859 | 6845 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) /* NMI caused by main cpu when writing to the sound latch */ |
| 6860 | 6846 | |
| 6861 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 6862 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 6863 | ||
| 6864 | 6847 | /* video hardware */ |
| 6865 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 6848 | MDRV_SCREEN_ADD("main", RASTER) | |
| 6849 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 6850 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 6866 | 6851 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 6867 | 6852 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 6868 | 6853 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 1*8, 31*8-1) |
| 6854 | ||
| 6869 | 6855 | MDRV_GFXDECODE(usclssic) |
| 6870 | MDRV_PALETTE_LENGTH(16*32+0x200) | |
| 6871 | MDRV_COLORTABLE_LENGTH(16*32 + 64*32) /* sprites, layer */ | |
| 6856 | MDRV_PALETTE_LENGTH(16*32 + 64*32) /* sprites, layer */ | |
| 6872 | 6857 | |
| 6873 | 6858 | MDRV_PALETTE_INIT(usclssic) /* layer is 6 planes deep */ |
| 6874 | 6859 | MDRV_VIDEO_START(seta_1_layer) |
| 6875 | MDRV_VIDEO_UPDATE(s | |
| 6860 | MDRV_VIDEO_UPDATE(usclssic) | |
| 6876 | 6861 | |
| 6877 | 6862 | /* sound hardware */ |
| 6878 | 6863 | MDRV_SPEAKER_STANDARD_STEREO("left", "right") |
| r1711 | r1712 | |
| 6904 | 6889 | MDRV_CPU_PROGRAM_MAP(calibr50_sub_readmem,calibr50_sub_writemem) |
| 6905 | 6890 | MDRV_CPU_VBLANK_INT(irq0_line_hold,4) /* IRQ: 4/frame |
| 6906 | 6891 | NMI: when the 68k writes the sound latch */ |
| 6907 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 6908 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 6909 | 6892 | |
| 6910 | 6893 | /* video hardware */ |
| 6911 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 6894 | MDRV_SCREEN_ADD("main", RASTER) | |
| 6895 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 6896 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 6912 | 6897 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 6913 | 6898 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 6914 | 6899 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 1*8, 31*8-1) |
| 6900 | ||
| 6915 | 6901 | MDRV_GFXDECODE(downtown) |
| 6916 | 6902 | MDRV_PALETTE_LENGTH(512) |
| 6917 | 6903 | |
| r1711 | r1712 | |
| 6945 | 6931 | MDRV_CPU_PROGRAM_MAP(metafox_sub_readmem,metafox_sub_writemem) |
| 6946 | 6932 | MDRV_CPU_VBLANK_INT(seta_sub_interrupt,SETA_SUB_INTERRUPTS_NUM) |
| 6947 | 6933 | |
| 6948 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 6949 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 6950 | ||
| 6951 | 6934 | /* video hardware */ |
| 6952 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 6935 | MDRV_SCREEN_ADD("main", RASTER) | |
| 6936 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 6937 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 6953 | 6938 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 6954 | 6939 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 6955 | 6940 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 2*8, 30*8-1) |
| 6941 | ||
| 6956 | 6942 | MDRV_GFXDECODE(downtown) |
| 6957 | 6943 | MDRV_PALETTE_LENGTH(512) |
| 6958 | 6944 | |
| r1711 | r1712 | |
| 6984 | 6970 | MDRV_CPU_PROGRAM_MAP(atehate_readmem,atehate_writemem) |
| 6985 | 6971 | MDRV_CPU_VBLANK_INT(seta_interrupt_1_and_2,SETA_INTERRUPTS_NUM) |
| 6986 | 6972 | |
| 6987 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 6988 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 6989 | ||
| 6990 | 6973 | /* video hardware */ |
| 6991 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 6974 | MDRV_SCREEN_ADD("main", RASTER) | |
| 6975 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 6976 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 6992 | 6977 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 6993 | 6978 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 6994 | 6979 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 1*8, 31*8-1) |
| 6980 | ||
| 6995 | 6981 | MDRV_GFXDECODE(tndrcade) |
| 6996 | 6982 | MDRV_PALETTE_LENGTH(512) /* sprites only */ |
| 6997 | 6983 | |
| r1711 | r1712 | |
| 7026 | 7012 | |
| 7027 | 7013 | MDRV_CPU_VBLANK_INT(seta_interrupt_2_and_4,SETA_INTERRUPTS_NUM) |
| 7028 | 7014 | |
| 7029 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7030 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 7031 | ||
| 7032 | 7015 | /* video hardware */ |
| 7033 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 7016 | MDRV_SCREEN_ADD("main", RASTER) | |
| 7017 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7018 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 7034 | 7019 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 7035 | 7020 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 7036 | 7021 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 1*8, 31*8-1) |
| 7022 | ||
| 7037 | 7023 | MDRV_GFXDECODE(blandia) |
| 7038 | MDRV_PALETTE_LENGTH(16*32+16*32+16*32) | |
| 7039 | MDRV_COLORTABLE_LENGTH(16*32+64*32+64*32) /* sprites, layer1, layer2 */ | |
| 7024 | MDRV_PALETTE_LENGTH(16*32+64*32+64*32) /* sprites, layer1, layer2 */ | |
| 7040 | 7025 | |
| 7041 | 7026 | MDRV_PALETTE_INIT(blandia) /* layers 1&2 are 6 planes deep */ |
| 7042 | 7027 | MDRV_VIDEO_START(seta_2_layers) |
| r1711 | r1712 | |
| 7059 | 7044 | MDRV_CPU_PROGRAM_MAP(blandiap_readmem,blandiap_writemem) |
| 7060 | 7045 | MDRV_CPU_VBLANK_INT(seta_interrupt_2_and_4,SETA_INTERRUPTS_NUM) |
| 7061 | 7046 | |
| 7062 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7063 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 7064 | ||
| 7065 | 7047 | /* video hardware */ |
| 7066 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 7048 | MDRV_SCREEN_ADD("main", RASTER) | |
| 7049 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7050 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 7067 | 7051 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 7068 | 7052 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 7069 | 7053 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 1*8, 31*8-1) |
| 7054 | ||
| 7070 | 7055 | MDRV_GFXDECODE(blandia) |
| 7071 | MDRV_PALETTE_LENGTH(16*32+16*32+16*32) | |
| 7072 | MDRV_COLORTABLE_LENGTH(16*32+64*32+64*32) /* sprites, layer1, layer2 */ | |
| 7056 | MDRV_PALETTE_LENGTH(16*32+64*32+64*32) /* sprites, layer1, layer2 */ | |
| 7073 | 7057 | |
| 7074 | 7058 | MDRV_PALETTE_INIT(blandia) /* layers 1&2 are 6 planes deep */ |
| 7075 | 7059 | MDRV_VIDEO_START(seta_2_layers) |
| r1711 | r1712 | |
| 7097 | 7081 | MDRV_CPU_PROGRAM_MAP(blockcar_readmem,blockcar_writemem) |
| 7098 | 7082 | MDRV_CPU_VBLANK_INT(irq3_line_hold,1) |
| 7099 | 7083 | |
| 7100 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7101 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 7102 | ||
| 7103 | 7084 | /* video hardware */ |
| 7104 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 7085 | MDRV_SCREEN_ADD("main", RASTER) | |
| 7086 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7087 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 7105 | 7088 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 7106 | 7089 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 7107 | 7090 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 1*8, 31*8-1) |
| 7091 | ||
| 7108 | 7092 | MDRV_GFXDECODE(tndrcade) |
| 7109 | 7093 | MDRV_PALETTE_LENGTH(512) /* sprites only */ |
| 7110 | 7094 | |
| r1711 | r1712 | |
| 7132 | 7116 | MDRV_CPU_PROGRAM_MAP(daioh_readmem,daioh_writemem) |
| 7133 | 7117 | MDRV_CPU_VBLANK_INT(seta_interrupt_1_and_2,SETA_INTERRUPTS_NUM) |
| 7134 | 7118 | |
| 7135 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7136 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 7137 | ||
| 7138 | 7119 | /* video hardware */ |
| 7139 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 7120 | MDRV_SCREEN_ADD("main", RASTER) | |
| 7121 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7122 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 7140 | 7123 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 7141 | 7124 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 7142 | 7125 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 1*8, 31*8-1) |
| 7126 | ||
| 7143 | 7127 | MDRV_GFXDECODE(msgundam) |
| 7144 | 7128 | MDRV_PALETTE_LENGTH(512 * 3) /* sprites, layer1, layer2 */ |
| 7145 | 7129 | |
| r1711 | r1712 | |
| 7172 | 7156 | MDRV_CPU_PROGRAM_MAP(drgnunit_readmem,drgnunit_writemem) |
| 7173 | 7157 | MDRV_CPU_VBLANK_INT(seta_interrupt_1_and_2,SETA_INTERRUPTS_NUM) |
| 7174 | 7158 | |
| 7175 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7176 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 7177 | ||
| 7178 | 7159 | /* video hardware */ |
| 7179 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 7160 | MDRV_SCREEN_ADD("main", RASTER) | |
| 7161 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7162 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 7180 | 7163 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 7181 | 7164 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 7182 | 7165 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 1*8, 31*8-1) |
| 7166 | ||
| 7183 | 7167 | MDRV_GFXDECODE(downtown) |
| 7184 | 7168 | MDRV_PALETTE_LENGTH(512) |
| 7185 | 7169 | |
| r1711 | r1712 | |
| 7206 | 7190 | MDRV_CPU_PROGRAM_MAP(drgnunit_readmem,drgnunit_writemem) |
| 7207 | 7191 | MDRV_CPU_VBLANK_INT(seta_interrupt_1_and_2,SETA_INTERRUPTS_NUM) |
| 7208 | 7192 | |
| 7209 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7210 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 7211 | ||
| 7212 | 7193 | /* video hardware */ |
| 7213 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 7194 | MDRV_SCREEN_ADD("main", RASTER) | |
| 7195 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7196 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 7214 | 7197 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 7215 | 7198 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 7216 | 7199 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 1*8, 31*8-1) |
| 7200 | ||
| 7217 | 7201 | MDRV_GFXDECODE(qzkklgy2) |
| 7218 | 7202 | MDRV_PALETTE_LENGTH(512) |
| 7219 | 7203 | |
| r1711 | r1712 | |
| 7242 | 7226 | MDRV_CPU_PROGRAM_MAP(wrofaero_readmem,wrofaero_writemem) |
| 7243 | 7227 | MDRV_CPU_VBLANK_INT(seta_interrupt_1_and_2,SETA_INTERRUPTS_NUM) |
| 7244 | 7228 | |
| 7245 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7246 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 7247 | ||
| 7248 | 7229 | /* video hardware */ |
| 7249 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 7230 | MDRV_SCREEN_ADD("main", RASTER) | |
| 7231 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7232 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 7250 | 7233 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 7251 | 7234 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 7252 | 7235 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 2*8, 30*8-1) |
| 7236 | ||
| 7253 | 7237 | MDRV_GFXDECODE(msgundam) |
| 7254 | 7238 | MDRV_PALETTE_LENGTH(512 * 3) /* sprites, layer1, layer2 */ |
| 7255 | 7239 | |
| r1711 | r1712 | |
| 7282 | 7266 | MDRV_CPU_PROGRAM_MAP(extdwnhl_readmem,extdwnhl_writemem) |
| 7283 | 7267 | MDRV_CPU_VBLANK_INT(seta_interrupt_1_and_2,SETA_INTERRUPTS_NUM) |
| 7284 | 7268 | |
| 7285 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7286 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 7287 | ||
| 7288 | 7269 | /* video hardware */ |
| 7289 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 7270 | MDRV_SCREEN_ADD("main", RASTER) | |
| 7271 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7272 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 7290 | 7273 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 7291 | 7274 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 7292 | 7275 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 7276 | ||
| 7293 | 7277 | MDRV_GFXDECODE(zingzip) |
| 7294 | MDRV_PALETTE_LENGTH(16*32+16*32+16*32) | |
| 7295 | MDRV_COLORTABLE_LENGTH(16*32+16*32+64*32) /* sprites, layer2, layer1 */ | |
| 7278 | MDRV_PALETTE_LENGTH(16*32+16*32+64*32) /* sprites, layer2, layer1 */ | |
| 7296 | 7279 | |
| 7297 | 7280 | MDRV_PALETTE_INIT(zingzip) /* layer 1 gfx is 6 planes deep */ |
| 7298 | 7281 | MDRV_VIDEO_START(seta_2_layers) |
| r1711 | r1712 | |
| 7340 | 7323 | MDRV_CPU_VBLANK_INT(seta_interrupt_2_and_4,SETA_INTERRUPTS_NUM) |
| 7341 | 7324 | #endif // __uPD71054_TIMER |
| 7342 | 7325 | |
| 7343 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7344 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 7345 | ||
| 7346 | 7326 | #if __uPD71054_TIMER |
| 7347 | 7327 | MDRV_MACHINE_RESET( wrofaero ) |
| 7348 | 7328 | #endif // __uPD71054_TIMER |
| 7349 | 7329 | |
| 7350 | 7330 | /* video hardware */ |
| 7351 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 7331 | MDRV_SCREEN_ADD("main", RASTER) | |
| 7332 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7333 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 7352 | 7334 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 7353 | 7335 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 7354 | 7336 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 1*8, 31*8-1) |
| 7337 | ||
| 7355 | 7338 | MDRV_GFXDECODE(jjsquawk) |
| 7356 | MDRV_PALETTE_LENGTH(16*32+16*32+16*32) | |
| 7357 | MDRV_COLORTABLE_LENGTH(16*32+64*32+64*32) /* sprites, layer2, layer1 */ | |
| 7339 | MDRV_PALETTE_LENGTH(16*32+64*32+64*32) /* sprites, layer2, layer1 */ | |
| 7358 | 7340 | |
| 7359 | 7341 | MDRV_PALETTE_INIT(gundhara) /* layers are 6 planes deep (but have only 4 palettes) */ |
| 7360 | 7342 | MDRV_VIDEO_START(seta_2_layers) |
| r1711 | r1712 | |
| 7385 | 7367 | MDRV_CPU_PROGRAM_MAP(wrofaero_readmem,wrofaero_writemem) |
| 7386 | 7368 | MDRV_CPU_VBLANK_INT(seta_interrupt_1_and_2,SETA_INTERRUPTS_NUM) |
| 7387 | 7369 | |
| 7388 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7389 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 7390 | ||
| 7391 | 7370 | /* video hardware */ |
| 7392 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 7371 | MDRV_SCREEN_ADD("main", RASTER) | |
| 7372 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7373 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 7393 | 7374 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 7394 | 7375 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 7395 | 7376 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 1*8, 31*8-1) |
| 7377 | ||
| 7396 | 7378 | MDRV_GFXDECODE(jjsquawk) |
| 7397 | MDRV_PALETTE_LENGTH(16*32+16*32+16*32) | |
| 7398 | MDRV_COLORTABLE_LENGTH(16*32+64*32+64*32) /* sprites, layer2, layer1 */ | |
| 7379 | MDRV_PALETTE_LENGTH(16*32+64*32+64*32) /* sprites, layer2, layer1 */ | |
| 7399 | 7380 | |
| 7400 | 7381 | MDRV_PALETTE_INIT(jjsquawk) /* layers are 6 planes deep */ |
| 7401 | 7382 | MDRV_VIDEO_START(seta_2_layers) |
| r1711 | r1712 | |
| 7422 | 7403 | MDRV_CPU_PROGRAM_MAP(kamenrid_readmem,kamenrid_writemem) |
| 7423 | 7404 | MDRV_CPU_VBLANK_INT( wrofaero_interrupt, 1 ) |
| 7424 | 7405 | |
| 7425 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7426 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 7427 | ||
| 7428 | 7406 | #if __uPD71054_TIMER |
| 7429 | 7407 | MDRV_MACHINE_RESET( wrofaero ) |
| 7430 | 7408 | #endif // __uPD71054_TIMER |
| 7431 | 7409 | |
| 7432 | 7410 | /* video hardware */ |
| 7433 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 7411 | MDRV_SCREEN_ADD("main", RASTER) | |
| 7412 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7413 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 7434 | 7414 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 7435 | 7415 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 7436 | 7416 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 1*8, 31*8-1) |
| 7417 | ||
| 7437 | 7418 | MDRV_GFXDECODE(msgundam) |
| 7438 | 7419 | MDRV_PALETTE_LENGTH(512 * 3) /* sprites, layer2, layer1 */ |
| 7439 | 7420 | |
| r1711 | r1712 | |
| 7462 | 7443 | MDRV_CPU_PROGRAM_MAP(orbs_readmem,orbs_writemem) |
| 7463 | 7444 | MDRV_CPU_VBLANK_INT(seta_interrupt_1_and_2,SETA_INTERRUPTS_NUM) |
| 7464 | 7445 | |
| 7465 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7466 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 7467 | ||
| 7468 | 7446 | /* video hardware */ |
| 7469 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 7447 | MDRV_SCREEN_ADD("main", RASTER) | |
| 7448 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7449 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 7470 | 7450 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 7471 | 7451 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 7472 | 7452 | MDRV_SCREEN_VISIBLE_AREA(1*8, 39*8-1, 1*8, 31*8-1) |
| 7453 | ||
| 7473 | 7454 | MDRV_GFXDECODE(orbs) |
| 7474 | 7455 | MDRV_PALETTE_LENGTH(512) /* sprites only */ |
| 7475 | 7456 | |
| r1711 | r1712 | |
| 7497 | 7478 | MDRV_CPU_PROGRAM_MAP(krzybowl_readmem,krzybowl_writemem) |
| 7498 | 7479 | MDRV_CPU_VBLANK_INT(seta_interrupt_1_and_2,SETA_INTERRUPTS_NUM) |
| 7499 | 7480 | |
| 7500 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7501 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 7502 | ||
| 7503 | 7481 | /* video hardware */ |
| 7504 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 7482 | MDRV_SCREEN_ADD("main", RASTER) | |
| 7483 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7484 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 7505 | 7485 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 7506 | 7486 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 7507 | 7487 | MDRV_SCREEN_VISIBLE_AREA(1*8, 39*8-1, 1*8, 31*8-1) |
| 7488 | ||
| 7508 | 7489 | MDRV_GFXDECODE(tndrcade) |
| 7509 | 7490 | MDRV_PALETTE_LENGTH(512) /* sprites only */ |
| 7510 | 7491 | |
| r1711 | r1712 | |
| 7533 | 7514 | MDRV_CPU_PROGRAM_MAP(madshark_readmem,madshark_writemem) |
| 7534 | 7515 | MDRV_CPU_VBLANK_INT( wrofaero_interrupt, 1 ) |
| 7535 | 7516 | |
| 7536 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7537 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 7538 | ||
| 7539 | 7517 | #if __uPD71054_TIMER |
| 7540 | 7518 | MDRV_MACHINE_RESET( wrofaero ) |
| 7541 | 7519 | #endif // __uPD71054_TIMER |
| 7542 | 7520 | |
| 7543 | 7521 | /* video hardware */ |
| 7544 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 7522 | MDRV_SCREEN_ADD("main", RASTER) | |
| 7523 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7524 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 7545 | 7525 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 7546 | 7526 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 7547 | 7527 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 2*8, 30*8-1) |
| 7548 | 7528 | |
| 7549 | 7529 | MDRV_GFXDECODE(jjsquawk) |
| 7550 | MDRV_PALETTE_LENGTH(16*32+16*32+16*32) | |
| 7551 | MDRV_COLORTABLE_LENGTH(16*32+64*32+64*32) /* sprites, layer2, layer1 */ | |
| 7530 | MDRV_PALETTE_LENGTH(16*32+64*32+64*32) /* sprites, layer2, layer1 */ | |
| 7552 | 7531 | |
| 7553 | 7532 | MDRV_PALETTE_INIT(jjsquawk) /* layers are 6 planes deep */ |
| 7554 | 7533 | |
| r1711 | r1712 | |
| 7581 | 7560 | MDRV_CPU_VBLANK_INT(seta_interrupt_2_and_4,SETA_INTERRUPTS_NUM) |
| 7582 | 7561 | #endif // __uPD71054_TIMER |
| 7583 | 7562 | |
| 7584 | MDRV_SCREEN_REFRESH_RATE(56.66) /* between 56 and 57 to match a real PCB's game speed */ | |
| 7585 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 7586 | ||
| 7587 | 7563 | #if __uPD71054_TIMER |
| 7588 | 7564 | MDRV_MACHINE_RESET( wrofaero ) |
| 7589 | 7565 | #endif // __uPD71054_TIMER |
| 7590 | 7566 | |
| 7591 | 7567 | /* video hardware */ |
| 7592 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 7568 | MDRV_SCREEN_ADD("main", RASTER) | |
| 7569 | MDRV_SCREEN_REFRESH_RATE(56.66) /* between 56 and 57 to match a real PCB's game speed */ | |
| 7570 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 7593 | 7571 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 7594 | 7572 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 7595 | 7573 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 1*8, 31*8-1) |
| 7574 | ||
| 7596 | 7575 | MDRV_GFXDECODE(msgundam) |
| 7597 | 7576 | MDRV_PALETTE_LENGTH(512 * 3) /* sprites, layer2, layer1 */ |
| 7598 | 7577 | |
| r1711 | r1712 | |
| 7622 | 7601 | MDRV_CPU_PROGRAM_MAP(oisipuzl_readmem,oisipuzl_writemem) |
| 7623 | 7602 | MDRV_CPU_VBLANK_INT(seta_interrupt_1_and_2,SETA_INTERRUPTS_NUM) |
| 7624 | 7603 | |
| 7625 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7626 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 7627 | ||
| 7628 | 7604 | /* video hardware */ |
| 7629 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 7605 | MDRV_SCREEN_ADD("main", RASTER) | |
| 7606 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7607 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 7630 | 7608 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 7631 | 7609 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 7632 | 7610 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 30*8-1) |
| 7611 | ||
| 7633 | 7612 | MDRV_GFXDECODE(msgundam) |
| 7634 | 7613 | MDRV_PALETTE_LENGTH(512 * 3) /* sprites, layer2, layer1 */ |
| 7635 | 7614 | |
| r1711 | r1712 | |
| 7658 | 7637 | MDRV_CPU_PROGRAM_MAP(triplfun_readmem,triplfun_writemem) |
| 7659 | 7638 | MDRV_CPU_VBLANK_INT(irq3_line_hold,1) |
| 7660 | 7639 | |
| 7661 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7662 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 7663 | ||
| 7664 | 7640 | /* video hardware */ |
| 7665 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 7641 | MDRV_SCREEN_ADD("main", RASTER) | |
| 7642 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7643 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 7666 | 7644 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 7667 | 7645 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 7668 | 7646 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 30*8-1) |
| 7647 | ||
| 7669 | 7648 | MDRV_GFXDECODE(msgundam) |
| 7670 | 7649 | MDRV_PALETTE_LENGTH(512 * 3) /* sprites, layer2, layer1 */ |
| 7671 | 7650 | |
| r1711 | r1712 | |
| 7692 | 7671 | MDRV_CPU_PROGRAM_MAP(kiwame_readmem,kiwame_writemem) |
| 7693 | 7672 | MDRV_CPU_VBLANK_INT(irq1_line_hold,1)/* lev 1-7 are the same. WARNING: |
| 7694 | 7673 | the interrupt table is written to. */ |
| 7695 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7696 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 7697 | 7674 | |
| 7698 | 7675 | /* video hardware */ |
| 7699 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 7676 | MDRV_SCREEN_ADD("main", RASTER) | |
| 7677 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7678 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 7700 | 7679 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 7701 | 7680 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 7702 | 7681 | MDRV_SCREEN_VISIBLE_AREA(0*8, 56*8-1, 1*8, 31*8-1) |
| 7682 | ||
| 7703 | 7683 | MDRV_GFXDECODE(tndrcade) |
| 7704 | 7684 | MDRV_PALETTE_LENGTH(512) /* sprites only */ |
| 7705 | 7685 | |
| r1711 | r1712 | |
| 7730 | 7710 | MDRV_CPU_PROGRAM_MAP(wrofaero_readmem,wrofaero_writemem) |
| 7731 | 7711 | MDRV_CPU_VBLANK_INT(seta_interrupt_1_and_2,SETA_INTERRUPTS_NUM) |
| 7732 | 7712 | |
| 7733 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7734 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 7735 | ||
| 7736 | 7713 | /* video hardware */ |
| 7737 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 7714 | MDRV_SCREEN_ADD("main", RASTER) | |
| 7715 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7716 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 7738 | 7717 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 7739 | 7718 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 7740 | 7719 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 1*8, 31*8-1) |
| 7720 | ||
| 7741 | 7721 | MDRV_GFXDECODE(msgundam) |
| 7742 | 7722 | MDRV_PALETTE_LENGTH(512 * 3) /* sprites, layer1, layer2 */ |
| 7743 | 7723 | |
| r1711 | r1712 | |
| 7768 | 7748 | MDRV_CPU_PROGRAM_MAP(thunderl_readmem,thunderl_writemem) |
| 7769 | 7749 | MDRV_CPU_VBLANK_INT(irq2_line_hold,1) |
| 7770 | 7750 | |
| 7771 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7772 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 7773 | ||
| 7774 | 7751 | /* video hardware */ |
| 7775 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 7752 | MDRV_SCREEN_ADD("main", RASTER) | |
| 7753 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7754 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 7776 | 7755 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 7777 | 7756 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 7778 | 7757 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 1*8, 31*8-1) |
| 7758 | ||
| 7779 | 7759 | MDRV_GFXDECODE(tndrcade) |
| 7780 | 7760 | MDRV_PALETTE_LENGTH(512) /* sprites only */ |
| 7781 | 7761 | |
| r1711 | r1712 | |
| 7802 | 7782 | MDRV_CPU_ADD(Z80, 16000000/4) /* 4 MHz */ |
| 7803 | 7783 | MDRV_CPU_PROGRAM_MAP(wiggie_sound_readmem,wiggie_sound_writemem) |
| 7804 | 7784 | |
| 7805 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7806 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 7807 | ||
| 7808 | 7785 | /* video hardware */ |
| 7809 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 7786 | MDRV_SCREEN_ADD("main", RASTER) | |
| 7787 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7788 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 7810 | 7789 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 7811 | 7790 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 7812 | 7791 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 1*8, 31*8-1) |
| 7792 | ||
| 7813 | 7793 | MDRV_GFXDECODE(wiggie) |
| 7814 | 7794 | MDRV_PALETTE_LENGTH(512) /* sprites only */ |
| 7815 | 7795 | |
| r1711 | r1712 | |
| 7832 | 7812 | MDRV_CPU_PROGRAM_MAP(thunderl_readmem,thunderl_writemem) |
| 7833 | 7813 | MDRV_CPU_VBLANK_INT(irq2_line_hold,1) |
| 7834 | 7814 | |
| 7835 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7836 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 7837 | ||
| 7838 | 7815 | /* video hardware */ |
| 7839 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 7816 | MDRV_SCREEN_ADD("main", RASTER) | |
| 7817 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7818 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 7840 | 7819 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 7841 | 7820 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 7842 | 7821 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 1*8, 31*8-1) |
| 7822 | ||
| 7843 | 7823 | MDRV_GFXDECODE(tndrcade) |
| 7844 | 7824 | MDRV_PALETTE_LENGTH(512) /* sprites only */ |
| 7845 | 7825 | |
| r1711 | r1712 | |
| 7868 | 7848 | MDRV_CPU_PROGRAM_MAP(umanclub_readmem,umanclub_writemem) |
| 7869 | 7849 | MDRV_CPU_VBLANK_INT(irq3_line_hold,1) |
| 7870 | 7850 | |
| 7871 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7872 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 7873 | ||
| 7874 | 7851 | /* video hardware */ |
| 7875 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 7852 | MDRV_SCREEN_ADD("main", RASTER) | |
| 7853 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7854 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 7876 | 7855 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 7877 | 7856 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 7878 | 7857 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 1*8, 31*8-1) |
| 7858 | ||
| 7879 | 7859 | MDRV_GFXDECODE(tndrcade) |
| 7880 | 7860 | MDRV_PALETTE_LENGTH(512) |
| 7881 | 7861 | |
| r1711 | r1712 | |
| 7908 | 7888 | MDRV_CPU_PROGRAM_MAP(utoukond_sound_readmem,utoukond_sound_writemem) |
| 7909 | 7889 | MDRV_CPU_IO_MAP(utoukond_sound_readport,utoukond_sound_writeport) |
| 7910 | 7890 | |
| 7911 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7912 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 7913 | ||
| 7914 | 7891 | /* video hardware */ |
| 7915 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 7892 | MDRV_SCREEN_ADD("main", RASTER) | |
| 7893 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7894 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 7916 | 7895 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 7917 | 7896 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 7918 | 7897 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 2*8, 30*8-1) |
| r1711 | r1712 | |
| 7953 | 7932 | MDRV_CPU_VBLANK_INT(seta_interrupt_2_and_4,SETA_INTERRUPTS_NUM) |
| 7954 | 7933 | #endif // __uPD71054_TIMER |
| 7955 | 7934 | |
| 7956 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7957 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 7958 | ||
| 7959 | 7935 | #if __uPD71054_TIMER |
| 7960 | 7936 | MDRV_MACHINE_RESET( wrofaero ) |
| 7961 | 7937 | #endif // __uPD71054_TIMER |
| 7962 | 7938 | |
| 7963 | 7939 | /* video hardware */ |
| 7964 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 7940 | MDRV_SCREEN_ADD("main", RASTER) | |
| 7941 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7942 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 7965 | 7943 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 7966 | 7944 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 7967 | 7945 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 1*8, 31*8-1) |
| 7946 | ||
| 7968 | 7947 | MDRV_GFXDECODE(msgundam) |
| 7969 | 7948 | MDRV_PALETTE_LENGTH(512 * 3) /* sprites, layer1, layer2 */ |
| 7970 | 7949 | |
| r1711 | r1712 | |
| 7999 | 7978 | MDRV_CPU_PROGRAM_MAP(wrofaero_readmem,wrofaero_writemem) |
| 8000 | 7979 | MDRV_CPU_VBLANK_INT(irq3_line_hold,1) |
| 8001 | 7980 | |
| 8002 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 8003 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 8004 | ||
| 8005 | 7981 | /* video hardware */ |
| 8006 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 7982 | MDRV_SCREEN_ADD("main", RASTER) | |
| 7983 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 7984 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 8007 | 7985 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 8008 | 7986 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 8009 | 7987 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 1*8, 31*8-1) |
| 7988 | ||
| 8010 | 7989 | MDRV_GFXDECODE(zingzip) |
| 8011 | MDRV_PALETTE_LENGTH(16*32+16*32+16*32) | |
| 8012 | MDRV_COLORTABLE_LENGTH(16*32+16*32+64*32) /* sprites, layer2, layer1 */ | |
| 7990 | MDRV_PALETTE_LENGTH(16*32+16*32+64*32) /* sprites, layer2, layer1 */ | |
| 8013 | 7991 | |
| 8014 | 7992 | MDRV_PALETTE_INIT(zingzip) /* layer 1 gfx is 6 planes deep */ |
| 8015 | 7993 | MDRV_VIDEO_START(seta_2_layers) |
| r1711 | r1712 | |
| 8035 | 8013 | MDRV_CPU_PROGRAM_MAP(pairlove_readmem,pairlove_writemem) |
| 8036 | 8014 | MDRV_CPU_VBLANK_INT(seta_interrupt_1_and_2,SETA_INTERRUPTS_NUM) |
| 8037 | 8015 | |
| 8038 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 8039 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 8040 | ||
| 8041 | 8016 | /* video hardware */ |
| 8042 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 8017 | MDRV_SCREEN_ADD("main", RASTER) | |
| 8018 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 8019 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 8043 | 8020 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 8044 | 8021 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 8045 | 8022 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 1*8, 31*8-1) |
| 8023 | ||
| 8046 | 8024 | MDRV_GFXDECODE(tndrcade) |
| 8047 | 8025 | MDRV_PALETTE_LENGTH(2048) /* sprites only */ |
| 8048 | 8026 | |
| r1711 | r1712 | |
| 8079 | 8057 | MDRV_CPU_PROGRAM_MAP(crazyfgt_map,0) |
| 8080 | 8058 | MDRV_CPU_VBLANK_INT(crazyfgt_interrupt,1+5) |
| 8081 | 8059 | |
| 8082 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 8083 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 8084 | ||
| 8085 | 8060 | /* video hardware */ |
| 8086 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 8061 | MDRV_SCREEN_ADD("main", RASTER) | |
| 8062 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 8063 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 8087 | 8064 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 8088 | 8065 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 8089 | 8066 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 2*8-4, 30*8-1-4) |
| 8067 | ||
| 8090 | 8068 | MDRV_GFXDECODE(crazyfgt) |
| 8091 | MDRV_PALETTE_LENGTH(16*32+16*32+16*32) | |
| 8092 | MDRV_COLORTABLE_LENGTH(16*32+64*32+64*32) /* sprites, layer1, layer2 */ | |
| 8069 | MDRV_PALETTE_LENGTH(16*32+64*32+64*32) /* sprites, layer1, layer2 */ | |
| 8093 | 8070 | |
| 8094 | 8071 | MDRV_PALETTE_INIT(gundhara) /* layers are 6 planes deep (but have only 4 palettes) */ |
| 8095 | 8072 | MDRV_VIDEO_START(seta_2_layers) |
| r1711 | r1712 | |
| 8139 | 8116 | MDRV_CPU_PROGRAM_MAP(inttoote_map,0) |
| 8140 | 8117 | MDRV_CPU_VBLANK_INT(inttoote_interrupt,8+1+1+1) |
| 8141 | 8118 | |
| 8142 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 8143 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 8144 | ||
| 8145 | 8119 | /* video hardware */ |
| 8146 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 8120 | MDRV_SCREEN_ADD("main", RASTER) | |
| 8121 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 8122 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 8147 | 8123 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 8148 | 8124 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 8149 | 8125 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 1*8, 31*8-1) |
| 8126 | ||
| 8150 | 8127 | MDRV_GFXDECODE(inttoote) |
| 8151 | 8128 | MDRV_PALETTE_LENGTH(512 * 1) /* sprites, layer1, layer2 */ |
| 8152 | 8129 | |
| 8153 | 8130 | MDRV_PALETTE_INIT(inttoote) |
| 8154 | 8131 | MDRV_VIDEO_START(seta_1_layer) |
| 8155 | MDRV_VIDEO_UPDATE( | |
| 8132 | MDRV_VIDEO_UPDATE(inttoote) | |
| 8156 | 8133 | |
| 8157 | 8134 | /* sound hardware */ |
| 8158 | 8135 | MDRV_SPEAKER_STANDARD_STEREO("left", "right") |
| r1711 | r1712 | |
| 9557 | 9534 | GAME( 1992, rezont, rezon, rezon, rezont, rezon, ROT0, "Allumer (Taito license)","Rezon (Taito)", 0 ) |
| 9558 | 9535 | GAME( 1991, stg, 0, drgnunit, stg, 0, ROT270, "Athena / Tecmo", "Strike Gunner S.T.G", 0 ) |
| 9559 | 9536 | GAME( 1991, pairlove, 0, pairlove, pairlove, 0, ROT270, "Athena", "Pairs Love", 0 ) |
| 9560 | GAME( 1992, blandia, 0, blandia, blandia, blandia, ROT0, "Allumer", "Blandia", 0 ) | |
| 9561 | GAME( 1992, blandiap, blandia, blandiap, blandia, 0, ROT0, "Allumer", "Blandia (prototype)", 0 ) | |
| 9537 | GAME( 1992, blandia, 0, blandia, blandia, blandia, ROT0, "Allumer", "Blandia", GAME_IMPERFECT_GRAPHICS ) | |
| 9538 | GAME( 1992, blandiap, blandia, blandiap, blandia, 0, ROT0, "Allumer", "Blandia (prototype)", GAME_IMPERFECT_GRAPHICS ) | |
| 9562 | 9539 | GAME( 1992, blockcar, 0, blockcar, blockcar, 0, ROT90, "Visco", "Block Carnival / Thunder & Lightning 2" , 0) // Title: DSW |
| 9563 | 9540 | GAME( 1992, qzkklogy, 0, drgnunit, qzkklogy, 0, ROT0, "Tecmo", "Quiz Kokology", 0 ) |
| 9564 | 9541 | GAME( 1992, neobattl, 0, umanclub, neobattl, 0, ROT270, "Banpresto / Sotsu Agency. Sunrise", "SD Gundam Neo Battling (Japan)", 0 ) |
| r1711 | r1712 | |
|---|---|---|
| 151 | 151 | MDRV_CPU_ADD(M6809, 750000) /* ?? guess */ |
| 152 | 152 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 153 | 153 | |
| 154 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 155 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 156 | 154 | MDRV_CPU_VBLANK_INT(truco_interrupt,1) |
| 157 | 155 | |
| 158 | 156 | MDRV_MACHINE_RESET(truco) |
| 159 | 157 | |
| 160 | 158 | /* video hardware */ |
| 161 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 159 | MDRV_SCREEN_ADD("main", RASTER) | |
| 160 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 161 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 162 | 162 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 163 | 163 | MDRV_SCREEN_SIZE(256, 192) |
| 164 | 164 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0, 192-1) |
| 165 | ||
| 165 | 166 | MDRV_PALETTE_LENGTH(16) |
| 166 | 167 | |
| 167 | 168 | MDRV_PALETTE_INIT(truco) |
| r1711 | r1712 | |
|---|---|---|
| 25 | 25 | #include "sound/sn76477.h" |
| 26 | 26 | #include "sound/tms3615.h" |
| 27 | 27 | |
| 28 | extern WRITE8_HANDLER( laserbat_csound1_w ); | |
| 29 | extern WRITE8_HANDLER( laserbat_csound2_w ); | |
| 28 | WRITE8_HANDLER( laserbat_csound1_w ); | |
| 29 | WRITE8_HANDLER( laserbat_csound2_w ); | |
| 30 | 30 | |
| 31 | 31 | static tilemap *bg_tilemap; |
| 32 | 32 | static int laserbat_video_page = 0; |
| r1711 | r1712 | |
| 36 | 36 | static UINT8 *s2636_1_ram; |
| 37 | 37 | static UINT8 *s2636_2_ram; |
| 38 | 38 | |
| 39 | static mame_bitmap *collision_bitmap; | |
| 40 | ||
| 41 | 39 | /* information for the single 32x32 sprite displayed */ |
| 42 | 40 | static struct sprite_info |
| 43 | 41 | { |
| r1711 | r1712 | |
| 509 | 507 | videoram = (UINT8 *)auto_malloc(0x400); |
| 510 | 508 | colorram = (UINT8 *)auto_malloc(0x400); |
| 511 | 509 | |
| 512 | collision_bitmap = auto_bitmap_alloc(machine->screen[0].width,machine->screen[0].height,BITMAP_FORMAT_INDEXED8); | |
| 513 | ||
| 514 | 510 | /* configure the S2636 chips */ |
| 515 | 511 | s2636_0 = s2636_config(s2636_0_ram, machine->screen[0].height, machine->screen[0].width, 0, -19); |
| 516 | 512 | s2636_1 = s2636_config(s2636_1_ram, machine->screen[0].height, machine->screen[0].width, 0, -19); |
| r1711 | r1712 | |
| 543 | 539 | int pixel2 = *BITMAP_ADDR8(s2636_2_bitmap, y, x); |
| 544 | 540 | |
| 545 | 541 | if (S2636_IS_PIXEL_DRAWN(pixel0)) |
| 546 | *BITMAP_ADDR16(bitmap, y, x) = | |
| 542 | *BITMAP_ADDR16(bitmap, y, x) = | |
| 547 | 543 | |
| 548 | 544 | if (S2636_IS_PIXEL_DRAWN(pixel1)) |
| 549 | *BITMAP_ADDR16(bitmap, y, x) = | |
| 545 | *BITMAP_ADDR16(bitmap, y, x) = | |
| 550 | 546 | |
| 551 | 547 | if (S2636_IS_PIXEL_DRAWN(pixel2)) |
| 552 | *BITMAP_ADDR16(bitmap, y, x) = | |
| 548 | *BITMAP_ADDR16(bitmap, y, x) = | |
| 553 | 549 | } |
| 554 | 550 | } |
| 555 | 551 | |
| r1711 | r1712 | |
| 699 | 695 | MDRV_CPU_IO_MAP(laserbat_io_map,0) |
| 700 | 696 | MDRV_CPU_VBLANK_INT(laserbat_interrupt,1) |
| 701 | 697 | |
| 702 | MDRV_SCREEN_REFRESH_RATE(50) | |
| 703 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 704 | ||
| 705 | 698 | /* video hardware */ |
| 706 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 699 | MDRV_SCREEN_ADD("main", RASTER) | |
| 700 | MDRV_SCREEN_REFRESH_RATE(50) | |
| 701 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 707 | 702 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 708 | 703 | MDRV_SCREEN_SIZE(256, 256) |
| 709 | 704 | MDRV_SCREEN_VISIBLE_AREA(1*8, 29*8-1, 2*8, 32*8-1) |
| r1711 | r1712 | |
| 738 | 733 | MDRV_CPU_PROGRAM_MAP(catnmous_sound_map,0) |
| 739 | 734 | MDRV_CPU_PERIODIC_INT(zaccaria_cb1_toggle, (double)3580000/4096) |
| 740 | 735 | |
| 741 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 742 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 743 | ||
| 744 | 736 | MDRV_MACHINE_START(catnmous) |
| 745 | 737 | MDRV_MACHINE_RESET(catnmous) |
| 746 | 738 | |
| 747 | 739 | /* video hardware */ |
| 748 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 740 | MDRV_SCREEN_ADD("main", RASTER) | |
| 741 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 742 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 749 | 743 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 750 | 744 | MDRV_SCREEN_SIZE(256, 256) |
| 751 | 745 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 32*8-1) |
| 752 | 746 | |
| 753 | 747 | MDRV_GFXDECODE(laserbat) |
| 754 | 748 | MDRV_PALETTE_LENGTH(1024) |
| 755 | MDRV_COLORTABLE_LENGTH(4096) | |
| 756 | 749 | |
| 757 | 750 | MDRV_VIDEO_START(laserbat) |
| 758 | 751 | MDRV_VIDEO_UPDATE(laserbat) |
| r1711 | r1712 | |
|---|---|---|
| 38 | 38 | #include "deprecat.h" |
| 39 | 39 | #include "machine/6522via.h" |
| 40 | 40 | #include "sound/ay8910.h" |
| 41 | #include "gameplan.h" | |
| 41 | 42 | |
| 42 | static int cmd,portA; | |
| 43 | static UINT8 xpos,ypos; | |
| 44 | ||
| 45 | static int trvquest_question = 0; | |
| 46 | ||
| 47 | static WRITE8_HANDLER( trvquest_video_portA_w ) | |
| 48 | { | |
| 49 | portA = data; | |
| 50 | } | |
| 51 | ||
| 52 | static WRITE8_HANDLER( trvquest_video_portB_w ) | |
| 53 | { | |
| 54 | cmd = data & 7; | |
| 55 | } | |
| 56 | ||
| 57 | static WRITE8_HANDLER( trvquest_video_CA2_w ) | |
| 58 | { | |
| 59 | if (data != 0) return; | |
| 60 | ||
| 61 | switch (cmd) | |
| 62 | { | |
| 63 | case 0: // draw pixel | |
| 64 | if (portA & 0x10) // auto increment X | |
| 65 | { | |
| 66 | if (portA & 0x40) | |
| 67 | xpos--; | |
| 68 | else | |
| 69 | xpos++; | |
| 70 | } | |
| 71 | if (portA & 0x20) // auto increment Y | |
| 72 | { | |
| 73 | if (portA & 0x80) | |
| 74 | ypos--; | |
| 75 | else | |
| 76 | ypos++; | |
| 77 | } | |
| 78 | ||
| 79 | *BITMAP_ADDR16(tmpbitmap, ypos, xpos) = Machine->pens[portA & 7]; | |
| 80 | break; | |
| 81 | ||
| 82 | case 1: // load X register | |
| 83 | xpos = portA; | |
| 84 | break; | |
| 85 | ||
| 86 | case 2: // load Y register | |
| 87 | ypos = portA; | |
| 88 | break; | |
| 89 | ||
| 90 | case 3: // clear screen | |
| 91 | fillbitmap(tmpbitmap, Machine->pens[portA & 7], NULL); | |
| 92 | break; | |
| 93 | } | |
| 94 | } | |
| 95 | ||
| 96 | static WRITE8_HANDLER( trvquest_question_w ) | |
| 97 | { | |
| 98 | trvquest_question = data; | |
| 99 | } | |
| 100 | ||
| 101 | 43 | static READ8_HANDLER( trvquest_question_r ) |
| 102 | 44 | { |
| 103 | return memory_region(REGION_USER1)[trvquest_question * 0x2000 + offset]; | |
| 104 | } | |
| 45 | gameplan_state *state = Machine->driver_data; | |
| 105 | 46 | |
| 106 | static READ8_HANDLER( trvquest_vblank_r ) | |
| 107 | { | |
| 108 | return 0x20; | |
| 47 | return memory_region(REGION_USER1)[*state->trvquest_question * 0x2000 + offset]; | |
| 109 | 48 | } |
| 110 | 49 | |
| 111 | 50 | static WRITE8_HANDLER( trvquest_coin_w ) |
| r1711 | r1712 | |
| 121 | 60 | static ADDRESS_MAP_START( cpu_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 122 | 61 | AM_RANGE(0x0000, 0x1fff) AM_RAM AM_BASE(&generic_nvram) AM_SIZE(&generic_nvram_size) // cmos ram |
| 123 | 62 | AM_RANGE(0x2000, 0x27ff) AM_RAM // main ram |
| 124 | AM_RANGE(0x3800, 0x380f) AM_READWRITE(via_0_r, via_0_w) | |
| 125 | AM_RANGE(0x3810, 0x381f) AM_READWRITE(via_1_r, via_1_w) | |
| 126 | AM_RANGE(0x3820, 0x382f) AM_READWRITE(via_2_r, via_2_w) | |
| 63 | AM_RANGE(0x3800, 0x380f) AM_READWRITE(via_1_r, via_1_w) | |
| 64 | AM_RANGE(0x3810, 0x381f) AM_READWRITE(via_2_r, via_2_w) | |
| 65 | AM_RANGE(0x3820, 0x382f) AM_READWRITE(via_0_r, via_0_w) | |
| 127 | 66 | AM_RANGE(0x3830, 0x3830) AM_WRITE(AY8910_control_port_0_w) |
| 128 | 67 | AM_RANGE(0x3831, 0x3831) AM_WRITE(AY8910_write_port_0_w) |
| 129 | 68 | AM_RANGE(0x3840, 0x3840) AM_WRITE(AY8910_control_port_1_w) |
| 130 | 69 | AM_RANGE(0x3841, 0x3841) AM_WRITE(AY8910_write_port_1_w) |
| 131 | 70 | AM_RANGE(0x3850, 0x3850) AM_READNOP //watchdog_reset_r ? |
| 132 | 71 | AM_RANGE(0x8000, 0x9fff) AM_READ(trvquest_question_r) |
| 133 | AM_RANGE(0xa000, 0xa000) AM_WRITE(trvquest_question | |
| 72 | AM_RANGE(0xa000, 0xa000) AM_WRITE(MWA8_RAM) AM_BASE_MEMBER(gameplan_state, trvquest_question | |
| 134 | 73 | AM_RANGE(0xa000, 0xa000) AM_READNOP // bogus read from the game code when reads question roms |
| 135 | 74 | AM_RANGE(0xb000, 0xffff) AM_ROM |
| 136 | 75 | ADDRESS_MAP_END |
| r1711 | r1712 | |
| 225 | 164 | } |
| 226 | 165 | |
| 227 | 166 | |
| 228 | static const struct via6522_interface via_ | |
| 167 | static const struct via6522_interface via_1_interface = | |
| 229 | 168 | { |
| 230 | 169 | /*inputs : A/B */ input_port_0_r, input_port_1_r, |
| 231 | 170 | /*inputs : CA/B1,CA/B2 */ NULL, NULL, NULL, NULL, |
| r1711 | r1712 | |
| 234 | 173 | /*irq */ NULL |
| 235 | 174 | }; |
| 236 | 175 | |
| 237 | static const struct via6522_interface via_ | |
| 176 | static const struct via6522_interface via_2_interface = | |
| 238 | 177 | { |
| 239 | 178 | /*inputs : A/B */ input_port_2_r, input_port_3_r, |
| 240 | 179 | /*inputs : CA/B1,CA/B2 */ NULL, NULL, NULL, NULL, |
| r1711 | r1712 | |
| 243 | 182 | /*irq */ via_irq |
| 244 | 183 | }; |
| 245 | 184 | |
| 246 | static const struct via6522_interface via_2_interface = | |
| 247 | { | |
| 248 | /*inputs : A/B */ NULL, trvquest_vblank_r, | |
| 249 | /*inputs : CA/B1,CA/B2 */ NULL, NULL, NULL, NULL, | |
| 250 | /*outputs: A/B */ trvquest_video_portA_w, trvquest_video_portB_w, | |
| 251 | /*outputs: CA/B1,CA/B2 */ NULL, NULL, trvquest_video_CA2_w, NULL, | |
| 252 | /*irq */ NULL | |
| 253 | }; | |
| 254 | 185 | |
| 255 | static | |
| 186 | static MACH | |
| 256 | 187 | { |
| 257 | palette_set_color(machine,0,MAKE_RGB(0x00,0x00,0x00)); /* 0 BLACK */ | |
| 258 | palette_set_color(machine,1,MAKE_RGB(0xff,0x00,0x00)); /* 1 RED */ | |
| 259 | palette_set_color(machine,2,MAKE_RGB(0x00,0xff,0x00)); /* 2 GREEN */ | |
| 260 | palette_set_color(machine,3,MAKE_RGB(0xff,0xff,0x00)); /* 3 YELLOW */ | |
| 261 | palette_set_color(machine,4,MAKE_RGB(0x00,0x00,0xff)); /* 4 BLUE */ | |
| 262 | palette_set_color(machine,5,MAKE_RGB(0xff,0x00,0xff)); /* 5 MAGENTA */ | |
| 263 | palette_set_color(machine,6,MAKE_RGB(0x00,0xff,0xff)); /* 6 CYAN */ | |
| 264 | palette_set_color(machine,7,MAKE_RGB(0xff,0xff,0xff)); /* 7 WHITE */ | |
| 188 | via_config(1, &via_1_interface); | |
| 189 | via_config(2, &via_2_interface); | |
| 265 | 190 | } |
| 266 | 191 | |
| 267 | 192 | static MACHINE_RESET( trvquest ) |
| 268 | 193 | { |
| 269 | via_config(0, &via_0_interface); | |
| 270 | via_config(1, &via_1_interface); | |
| 271 | via_config(2, &via_2_interface); | |
| 272 | 194 | via_reset(); |
| 273 | 195 | } |
| 274 | 196 | |
| 275 | 197 | static INTERRUPT_GEN( trvquest_interrupt ) |
| 276 | 198 | { |
| 277 | via_1_ca1_w(0,1); | |
| 278 | via_1_ca1_w(0,0); | |
| 199 | via_2_ca1_w(0,1); | |
| 200 | via_2_ca1_w(0,0); | |
| 279 | 201 | } |
| 280 | 202 | |
| 281 | 203 | static MACHINE_DRIVER_START( trvquest ) |
| 204 | ||
| 205 | MDRV_DRIVER_DATA(gameplan_state) | |
| 206 | ||
| 282 | 207 | MDRV_CPU_ADD(M6809,6000000) |
| 283 | 208 | MDRV_CPU_PROGRAM_MAP(cpu_map,0) |
| 284 | 209 | MDRV_CPU_VBLANK_INT(trvquest_interrupt,1) |
| 285 | 210 | |
| 286 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 287 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 288 | ||
| 289 | 211 | MDRV_NVRAM_HANDLER(generic_1fill) |
| 212 | MDRV_MACHINE_START(trvquest) | |
| 290 | 213 | MDRV_MACHINE_RESET(trvquest) |
| 291 | 214 | |
| 292 | 215 | /* video hardware */ |
| 293 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 294 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 295 | MDRV_SCREEN_SIZE(256, 256) | |
| 296 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 32*8-1) | |
| 216 | MDRV_IMPORT_FROM(trvquest_video) | |
| 297 | 217 | |
| 298 | MDRV_PALETTE_LENGTH(8) | |
| 299 | ||
| 300 | MDRV_PALETTE_INIT(trvquest) | |
| 301 | MDRV_VIDEO_START(generic_bitmapped) | |
| 302 | MDRV_VIDEO_UPDATE(generic_bitmapped) | |
| 303 | ||
| 304 | 218 | /* sound hardware */ |
| 305 | 219 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 306 | 220 | |
| r1711 | r1712 | |
| 332 | 246 | ROM_LOAD( "roma", 0x16000, 0x2000, CRC(b4bcaf33) SHA1(c6b08fb8d55b2834d0c6c5baff9f544c795e4c15) ) |
| 333 | 247 | ROM_END |
| 334 | 248 | |
| 335 | GAME( 1984, trvquest, 0, trvquest, trvquest, 0, ROT90, "Sunn / Techstar", "Trivia Quest", | |
| 249 | GAME( 1984, trvquest, 0, trvquest, trvquest, 0, ROT90, "Sunn / Techstar", "Trivia Quest", GAME_SUPPORTS_SAVE ) |
| r1711 | r1712 | |
|---|---|---|
| 1298 | 1298 | MDRV_CPU_PROGRAM_MAP(sub_readmem,sub_writemem) |
| 1299 | 1299 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 1300 | 1300 | |
| 1301 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1302 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1303 | 1301 | MDRV_INTERLEAVE(100) |
| 1304 | 1302 | |
| 1305 | 1303 | MDRV_MACHINE_RESET(tnzs) |
| 1306 | 1304 | |
| 1307 | 1305 | /* video hardware */ |
| 1308 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1306 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1307 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1308 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1309 | 1309 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1310 | 1310 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 1311 | 1311 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 1312 | ||
| 1312 | 1313 | MDRV_GFXDECODE(tnzs) |
| 1313 | 1314 | MDRV_PALETTE_LENGTH(512) |
| 1314 | 1315 | |
| r1711 | r1712 | |
| 1336 | 1337 | MDRV_CPU_PROGRAM_MAP(sub_readmem,sub_writemem) |
| 1337 | 1338 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 1338 | 1339 | |
| 1339 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1340 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1341 | 1340 | MDRV_INTERLEAVE(100) |
| 1342 | 1341 | |
| 1343 | 1342 | MDRV_MACHINE_RESET(tnzs) |
| 1344 | 1343 | |
| 1345 | 1344 | /* video hardware */ |
| 1346 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1345 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1346 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1347 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1347 | 1348 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1348 | 1349 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 1349 | 1350 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 1351 | ||
| 1350 | 1352 | MDRV_GFXDECODE(tnzs) |
| 1351 | 1353 | MDRV_PALETTE_LENGTH(512) |
| 1352 | 1354 | |
| r1711 | r1712 | |
| 1378 | 1380 | MDRV_CPU_PROGRAM_MAP(i8742_readmem,i8742_writemem) |
| 1379 | 1381 | MDRV_CPU_IO_MAP(i8742_readport,i8742_writeport) |
| 1380 | 1382 | |
| 1381 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1382 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 1383 | 1383 | MDRV_INTERLEAVE(100) |
| 1384 | 1384 | |
| 1385 | 1385 | MDRV_MACHINE_RESET(tnzs) |
| 1386 | 1386 | |
| 1387 | 1387 | /* video hardware */ |
| 1388 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1388 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1389 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1390 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 1389 | 1391 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1390 | 1392 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 1391 | 1393 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 1394 | ||
| 1392 | 1395 | MDRV_GFXDECODE(tnzs) |
| 1393 | 1396 | MDRV_PALETTE_LENGTH(512) |
| 1394 | 1397 | |
| r1711 | r1712 | |
| 1415 | 1418 | MDRV_CPU_PROGRAM_MAP(sub_readmem,sub_writemem) |
| 1416 | 1419 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 1417 | 1420 | |
| 1418 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1419 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1420 | 1421 | MDRV_INTERLEAVE(100) |
| 1421 | 1422 | |
| 1422 | 1423 | MDRV_MACHINE_RESET(tnzs) |
| 1423 | 1424 | |
| 1424 | 1425 | /* video hardware */ |
| 1425 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1426 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1427 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1428 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1426 | 1429 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1427 | 1430 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 1428 | 1431 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 1432 | ||
| 1429 | 1433 | MDRV_GFXDECODE(insectx) |
| 1430 | 1434 | MDRV_PALETTE_LENGTH(512) |
| 1431 | 1435 | |
| r1711 | r1712 | |
| 1452 | 1456 | MDRV_CPU_PROGRAM_MAP(kageki_sub_readmem,kageki_sub_writemem) |
| 1453 | 1457 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 1454 | 1458 | |
| 1455 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1456 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1457 | 1459 | MDRV_INTERLEAVE(100) |
| 1458 | 1460 | |
| 1459 | 1461 | MDRV_MACHINE_RESET(tnzs) |
| 1460 | 1462 | |
| 1461 | 1463 | /* video hardware */ |
| 1462 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1464 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1465 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1466 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1463 | 1467 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1464 | 1468 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 1465 | 1469 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 1470 | ||
| 1466 | 1471 | MDRV_GFXDECODE(tnzs) |
| 1467 | 1472 | MDRV_PALETTE_LENGTH(512) |
| 1468 | 1473 | |
| r1711 | r1712 | |
| 1500 | 1505 | MDRV_CPU_PROGRAM_MAP(tnzsb_cpu2_map,0) |
| 1501 | 1506 | MDRV_CPU_IO_MAP(tnzsb_readport,tnzsb_writeport) |
| 1502 | 1507 | |
| 1503 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1504 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1505 | 1508 | MDRV_INTERLEAVE(100) |
| 1506 | 1509 | |
| 1507 | 1510 | MDRV_MACHINE_RESET(tnzs) |
| 1508 | 1511 | |
| 1509 | 1512 | /* video hardware */ |
| 1510 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1513 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1514 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1515 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1511 | 1516 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1512 | 1517 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 1513 | 1518 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 1519 | ||
| 1514 | 1520 | MDRV_GFXDECODE(tnzs) |
| 1515 | 1521 | MDRV_PALETTE_LENGTH(512) |
| 1516 | 1522 |
| r1711 | r1712 | |
|---|---|---|
| 471 | 471 | /* audio CPU */ |
| 472 | 472 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 473 | 473 | |
| 474 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 475 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 476 | 474 | MDRV_INTERLEAVE(100) /* 100 CPU slices per frame - an high value to ensure proper */ |
| 477 | 475 | /* synchronization of the CPUs */ |
| 478 | 476 | |
| 479 | 477 | /* video hardware */ |
| 480 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 478 | MDRV_SCREEN_ADD("main", RASTER) | |
| 479 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 480 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 481 | 481 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 482 | 482 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 483 | 483 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 484 | ||
| 484 | 485 | MDRV_GFXDECODE(tp84) |
| 485 | 486 | MDRV_PALETTE_LENGTH(4096) |
| 486 | 487 |
| r1711 | r1712 | |
|---|---|---|
| 822 | 822 | MDRV_CPU_ADD(H6280,32220000/4/3) /* verified on pcb (8.050Mhz is XIN on pin 10 of H6280 */ |
| 823 | 823 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 824 | 824 | |
| 825 | /* video hardware */ | |
| 826 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 827 | ||
| 828 | MDRV_SCREEN_ADD("main", RASTER) | |
| 825 | 829 | MDRV_SCREEN_REFRESH_RATE(58) |
| 826 | 830 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529)) |
| 827 | ||
| 828 | /* video hardware */ | |
| 829 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 830 | 831 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 831 | 832 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 832 | 833 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 834 | ||
| 833 | 835 | MDRV_GFXDECODE(rohga) |
| 834 | 836 | MDRV_PALETTE_LENGTH(2048) |
| 835 | 837 | |
| r1711 | r1712 | |
| 865 | 867 | MDRV_CPU_ADD(H6280,32220000/4/3) /* verified on pcb (8.050Mhz is XIN on pin 10 of H6280 */ |
| 866 | 868 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 867 | 869 | |
| 870 | /* video hardware */ | |
| 871 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM ) | |
| 872 | ||
| 873 | MDRV_SCREEN_ADD("main", RASTER) | |
| 868 | 874 | MDRV_SCREEN_REFRESH_RATE(58) |
| 869 | 875 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529)) |
| 870 | ||
| 871 | /* video hardware */ | |
| 872 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM ) | |
| 873 | 876 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 874 | 877 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 875 | 878 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 879 | ||
| 876 | 880 | MDRV_GFXDECODE(wizdfire) |
| 877 | 881 | MDRV_PALETTE_LENGTH(2048) |
| 878 | 882 | |
| r1711 | r1712 | |
| 908 | 912 | MDRV_CPU_ADD(H6280,32220000/4/3) /* verified on pcb (8.050Mhz is XIN on pin 10 of H6280 */ |
| 909 | 913 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 910 | 914 | |
| 915 | /* video hardware */ | |
| 916 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM ) | |
| 917 | ||
| 918 | MDRV_SCREEN_ADD("main", RASTER) | |
| 911 | 919 | MDRV_SCREEN_REFRESH_RATE(58) |
| 912 | 920 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529)) |
| 913 | ||
| 914 | /* video hardware */ | |
| 915 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM ) | |
| 916 | 921 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 917 | 922 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 918 | 923 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 924 | ||
| 919 | 925 | MDRV_GFXDECODE(wizdfire) |
| 920 | 926 | MDRV_PALETTE_LENGTH(2048) |
| 921 | 927 | |
| r1711 | r1712 | |
| 951 | 957 | MDRV_CPU_ADD(H6280,32220000/4/3) /* verified on pcb (8.050Mhz is XIN on pin 10 of H6280 */ |
| 952 | 958 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 953 | 959 | |
| 960 | /* video hardware */ | |
| 961 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 962 | ||
| 963 | MDRV_SCREEN_ADD("main", RASTER) | |
| 954 | 964 | MDRV_SCREEN_REFRESH_RATE(58) |
| 955 | 965 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529)) |
| 956 | ||
| 957 | /* video hardware */ | |
| 958 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 959 | 966 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 960 | 967 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 961 | 968 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 969 | ||
| 962 | 970 | MDRV_GFXDECODE(schmeisr) |
| 963 | 971 | MDRV_PALETTE_LENGTH(2048) |
| 964 | 972 |
| r1711 | r1712 | |
|---|---|---|
| 408 | 408 | /* audio CPU */ /* 3.579545 MHz */ |
| 409 | 409 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 410 | 410 | |
| 411 | /* video hardware */ | |
| 412 | MDRV_SCREEN_ADD("main", RASTER) | |
| 411 | 413 | MDRV_SCREEN_REFRESH_RATE(60) |
| 412 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 413 | ||
| 414 | /* video hardware */ | |
| 415 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 414 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 416 | 415 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 417 | 416 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 418 | 417 | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 1*8, 31*8-1) /* 240 x 240 */ |
| 418 | ||
| 419 | 419 | MDRV_GFXDECODE(vb) |
| 420 | 420 | MDRV_PALETTE_LENGTH(256) |
| 421 | 421 | |
| r1711 | r1712 | |
| 447 | 447 | /* audio CPU */ /* 3.579545 MHz */ |
| 448 | 448 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 449 | 449 | |
| 450 | /* video hardware */ | |
| 451 | MDRV_SCREEN_ADD("main", RASTER) | |
| 450 | 452 | MDRV_SCREEN_REFRESH_RATE(60) |
| 451 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 452 | ||
| 453 | /* video hardware */ | |
| 454 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 453 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 455 | 454 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 456 | 455 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 457 | 456 | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 1*8, 31*8-1) /* 240 x 240 */ |
| 457 | ||
| 458 | 458 | MDRV_GFXDECODE(vb) |
| 459 | 459 | MDRV_PALETTE_LENGTH(256) |
| 460 | 460 |
| r1711 | r1712 | |
|---|---|---|
| 177 | 177 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 178 | 178 | MDRV_CPU_VBLANK_INT(higemaru_interrupt,2) |
| 179 | 179 | |
| 180 | /* video hardware */ | |
| 181 | MDRV_SCREEN_ADD("main", RASTER) | |
| 180 | 182 | MDRV_SCREEN_REFRESH_RATE(60) |
| 181 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 182 | ||
| 183 | /* video hardware */ | |
| 184 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 183 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 185 | 184 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 186 | 185 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 187 | 186 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 187 | ||
| 188 | 188 | MDRV_GFXDECODE(higemaru) |
| 189 | 189 | MDRV_PALETTE_LENGTH(32*4+16*16) |
| 190 | 190 |
| r1711 | r1712 | |
|---|---|---|
| 695 | 695 | MDRV_CPU_PROGRAM_MAP(sound_map, 0) |
| 696 | 696 | MDRV_CPU_PERIODIC_INT(audio_interrupt, 480) |
| 697 | 697 | |
| 698 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 699 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 700 | ||
| 701 | 698 | MDRV_GFXDECODE(plygonet) |
| 702 | 699 | MDRV_NVRAM_HANDLER(polygonet) |
| 703 | 700 | |
| 704 | 701 | /* video hardware */ |
| 705 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 702 | MDRV_SCREEN_ADD("main", RASTER) | |
| 703 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 704 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 706 | 705 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 707 | 706 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 708 | 707 | MDRV_SCREEN_VISIBLE_AREA(0, 64*8-1, 0, 32*8-1 ) |
| 708 | ||
| 709 | 709 | MDRV_PALETTE_LENGTH(32768) |
| 710 | 710 | |
| 711 | 711 | MDRV_VIDEO_START(polygonet) |
| r1711 | r1712 | |
|---|---|---|
| 231 | 231 | MDRV_NVRAM_HANDLER(atarigen) |
| 232 | 232 | |
| 233 | 233 | /* video hardware */ |
| 234 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 234 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 235 | 235 | MDRV_GFXDECODE(batman) |
| 236 | 236 | MDRV_PALETTE_LENGTH(2048) |
| 237 | 237 | |
| 238 | MDRV_SCREEN_ADD("main", | |
| 238 | MDRV_SCREEN_ADD("main", RASTER) | |
| 239 | 239 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 240 | 240 | /* note: these parameters are from published specs, not derived */ |
| 241 | 241 | /* the board uses a VAD chip to generate video signals */ |
| r1711 | r1712 | |
|---|---|---|
| 493 | 493 | Sega Marine Fishing 840-0027C 22221 10 315-6213 not populated ROM 3&4 not populated. Requires special I/O board and fishing controller |
| 494 | 494 | *Slash Out 840-0041C 23341 17 315-6213 317-0286-COM |
| 495 | 495 | *Spawn 841-0005C 22977B 10 315-6213 317-5051-COM |
| 496 | Toy Fighter 840-0011C 22035 10 315-6212 317-0257-COM | |
| 496 | 497 | Virtua Striker 2 2000 840-0010C 21929C 15 315-6213 317-0258-COM |
| 497 | 498 | *Zombie Revenge 840-0003C 21707 19 315-6213 317-0249-COM |
| 498 | 499 | |
| r1711 | r1712 | |
| 507 | 508 | #include "machine/x76f100.h" |
| 508 | 509 | #include "cpu/sh4/sh4.h" |
| 509 | 510 | #include "cpu/arm7/arm7core.h" |
| 511 | #include "sound/aica.h" | |
| 510 | 512 | #include "dc.h" |
| 513 | #include "deprecat.h" | |
| 511 | 514 | |
| 512 | #define CPU_CLOCK 200000000 | |
| 515 | #define CPU_CLOCK (200000000) | |
| 513 | 516 | /* MD2 MD1 MD0 MD6 MD4 MD3 MD5 MD7 MD8 */ |
| 514 | 517 | static const struct sh4_config sh4cpu_config = { 1, 0, 1, 0, 0, 0, 1, 1, 0, CPU_CLOCK }; |
| 515 | 518 | |
| r1711 | r1712 | |
| 544 | 547 | { |
| 545 | 548 | } |
| 546 | 549 | |
| 547 | static READ32_HANDLER( dc_aica_arm_r ) | |
| 548 | { | |
| 549 | return 0; | |
| 550 | } | |
| 551 | ||
| 552 | static WRITE32_HANDLER( dc_aica_arm_w ) | |
| 553 | { | |
| 554 | } | |
| 555 | ||
| 556 | 550 | /* |
| 557 | 551 | Naomi ROM board info from ElSemi: |
| 558 | 552 | |
| r1711 | r1712 | |
| 721 | 715 | return -1; |
| 722 | 716 | } |
| 723 | 717 | |
| 718 | static void aica_irq(int irq) | |
| 719 | { | |
| 720 | cpunum_set_input_line(Machine, 1, ARM7_FIRQ_LINE, irq ? ASSERT_LINE : CLEAR_LINE); | |
| 721 | } | |
| 722 | ||
| 724 | 723 | static ADDRESS_MAP_START( dc_audio_map, ADDRESS_SPACE_PROGRAM, 32 ) |
| 725 | 724 | AM_RANGE(0x00000000, 0x007fffff) AM_RAM AM_BASE( &dc_sound_ram ) /* shared with SH-4 */ |
| 726 | AM_RANGE(0x00800000, 0x00807fff) AM_READWRITE( | |
| 725 | AM_RANGE(0x00800000, 0x00807fff) AM_READWRITE( | |
| 727 | 726 | AM_RANGE(0x00808000, 0x008080ff) AM_READ( test1 ) // for bug (?) in sound bios |
| 728 | 727 | ADDRESS_MAP_END |
| 729 | 728 | |
| 730 | 729 | static INPUT_PORTS_START( naomi ) |
| 731 | PORT_START | |
| 730 | PORT_START_TAG("IN0") | |
| 732 | 731 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) PORT_NAME("Service") |
| 733 | 732 | PORT_SERVICE_NO_TOGGLE( 0x01, IP_ACTIVE_LOW ) |
| 733 | PORT_START_TAG("IN1") | |
| 734 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 735 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 736 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 737 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 738 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 739 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 740 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON2 ) | |
| 741 | PORT_START_TAG("IN2") | |
| 742 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON3 ) | |
| 743 | PORT_START_TAG("IN3") | |
| 744 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 745 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 746 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 747 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 748 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 749 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 750 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 751 | PORT_START_TAG("IN4") | |
| 752 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 753 | PORT_START_TAG("COINS") | |
| 754 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 755 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 734 | 756 | INPUT_PORTS_END |
| 735 | 757 | |
| 758 | static const struct AICAinterface aica_interface = | |
| 759 | { | |
| 760 | REGION_CPU1, // dummy, is fixed up in the reset handler | |
| 761 | 0, | |
| 762 | aica_irq | |
| 763 | }; | |
| 764 | ||
| 765 | static MACHINE_RESET( naomi ) | |
| 766 | { | |
| 767 | MACHINE_RESET_CALL(dc); | |
| 768 | AICA_set_ram_base(0, dc_sound_ram, 8*1024*1024); | |
| 769 | } | |
| 770 | ||
| 736 | 771 | static MACHINE_DRIVER_START( naomi ) |
| 737 | 772 | /* basic machine hardware */ |
| 738 | 773 | MDRV_CPU_ADD_TAG("main", SH4, CPU_CLOCK) // SH4!!! |
| r1711 | r1712 | |
| 744 | 779 | MDRV_CPU_ADD_TAG("sound", ARM7, ((XTAL_33_8688MHz*2)/3)/8) // AICA bus clock is 2/3rds * 33.8688. ARM7 gets 1 bus cycle out of each 8. |
| 745 | 780 | MDRV_CPU_PROGRAM_MAP(dc_audio_map, 0) |
| 746 | 781 | |
| 747 | MDRV_MACHINE_RESET( dc ) | |
| 782 | MDRV_MACHINE_START( dc ) | |
| 783 | MDRV_MACHINE_RESET( naomi ) | |
| 748 | 784 | |
| 749 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 750 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 751 | ||
| 752 | 785 | MDRV_NVRAM_HANDLER(naomi_eeproms) |
| 753 | 786 | |
| 754 | 787 | /* video hardware */ |
| 755 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 788 | MDRV_SCREEN_ADD("main", RASTER) | |
| 789 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 790 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 756 | 791 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 757 | 792 | MDRV_SCREEN_SIZE(640, 480) |
| 758 | 793 | MDRV_SCREEN_VISIBLE_AREA(0, 640-1, 0, 480-1) |
| 794 | ||
| 759 | 795 | MDRV_PALETTE_LENGTH(0x1000) |
| 760 | 796 | |
| 761 | 797 | MDRV_VIDEO_START(dc) |
| 762 | 798 | MDRV_VIDEO_UPDATE(dc) |
| 799 | ||
| 800 | MDRV_SPEAKER_STANDARD_STEREO("left", "right") | |
| 801 | MDRV_SOUND_ADD(AICA, 0) | |
| 802 | MDRV_SOUND_CONFIG(aica_interface) | |
| 803 | MDRV_SOUND_ROUTE(0, "left", 2.0) | |
| 804 | MDRV_SOUND_ROUTE(0, "right", 2.0) | |
| 763 | 805 | MACHINE_DRIVER_END |
| 764 | 806 | |
| 765 | 807 | #define ROM_LOAD16_WORD_SWAP_BIOS(bios,name,offset,length,hash) \ |
| r1711 | r1712 | |
| 1372 | 1414 | ROM_LOAD("mpr-21993.ic14",0x7000000, 0x0400000, CRC(fb28cf0a) SHA1(d51b1d4514a93074d1f77bd1bc5995739604cf56) ) |
| 1373 | 1415 | ROM_END |
| 1374 | 1416 | |
| 1417 | ||
| 1418 | /* toy fighter - 1999 sega */ | |
| 1419 | ||
| 1420 | ROM_START( toyfight ) | |
| 1421 | ROM_REGION( 0x200000, REGION_CPU1, 0) | |
| 1422 | NAOMI_BIOS | |
| 1423 | ||
| 1424 | ROM_REGION( 0x8000000, REGION_USER1, 0) | |
| 1425 | ROM_LOAD("epr-22035.ic22", 0x0000000, 0x0400000, CRC(dbc76493) SHA1(a9772bdb62610a39adf2b9f397781bcddda3e635) ) | |
| 1426 | ||
| 1427 | ROM_LOAD("mpr-22025.ic1", 0x0800000, 0x0800000, CRC(30237202) SHA1(e229a7671b3a34b26a461716bd7b437da100e1c8) ) | |
| 1428 | ROM_LOAD("mpr-22026.ic2", 0x1000000, 0x0800000, CRC(f28e71ff) SHA1(019425fcf234beca2b586de5235cf9f171563533) ) | |
| 1429 | ROM_LOAD("mpr-22027.ic3", 0x1800000, 0x0800000, CRC(1a84632d) SHA1(f3880f21399c6713c48c710c06d0344a0a28f026) ) | |
| 1430 | ROM_LOAD("mpr-22028.ic4", 0x2000000, 0x0800000, CRC(2b34ccba) SHA1(76c39ea19c3be1d9a9ce9e67035be7543b71ff26) ) | |
| 1431 | ROM_LOAD("mpr-22029.ic5", 0x2800000, 0x0800000, CRC(8162953a) SHA1(15c9e10080a5f2e70c31b9b89a256050a1aed4e9) ) | |
| 1432 | ROM_LOAD("mpr-22030.ic6", 0x3000000, 0x0800000, CRC(5bf5fed6) SHA1(6c8eedb177aa49aee9a8b090f2e5f96644416c6c) ) | |
| 1433 | ROM_LOAD("mpr-22031.ic7", 0x3800000, 0x0800000, CRC(ee7c40cc) SHA1(b9d92ef5bae0e932ec8769a30ebd841a263d3e2a) ) | |
| 1434 | ROM_LOAD("mpr-22032.ic8", 0x4000000, 0x0800000, CRC(3c48c9ba) SHA1(00be199b23040f8e81db2ec489ba98cbf615652c) ) | |
| 1435 | ROM_LOAD("mpr-22033.ic9", 0x4800000, 0x0800000, CRC(5fe5586e) SHA1(3ff41ae1f81469597684faadd88e62b5e0634352) ) | |
| 1436 | ROM_LOAD("mpr-22034.ic10",0x5000000, 0x0800000, CRC(3aa5ce5e) SHA1(f00a906235e4522d6fc2ac771324114346875314) ) | |
| 1437 | ROM_END | |
| 1438 | ||
| 1375 | 1439 | /* |
| 1376 | 1440 | |
| 1377 | 1441 | SYSTEMID: NAOMI |
| r1711 | r1712 | |
| 1826 | 1890 | |
| 1827 | 1891 | */ |
| 1828 | 1892 | |
| 1893 | /* according to elsemi this set might be a bad dump, (or protected while the clone isn't?) */ | |
| 1829 | 1894 | ROM_START( vs2_2k ) |
| 1830 | 1895 | ROM_REGION( 0x200000, REGION_CPU1, 0) |
| 1831 | 1896 | NAOMI_BIOS |
| r1711 | r1712 | |
| 2220 | 2285 | GAME( 1999, vs2_2k, naomi, naomi, naomi, 0, ROT0, "Sega", "Virtua Striker 2 Ver. 2000 (JPN, USA, EXP, KOR, AUS) (set 1)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 2221 | 2286 | GAME( 1999, vs2_2ka, vs2_2k, naomi, naomi, 0, ROT0, "Sega", "Virtua Striker 2 Ver. 2000 (JPN, USA, EXP, KOR, AUS) (set 2)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 2222 | 2287 | GAME( 1999, smarinef, naomi, naomi, naomi, 0, ROT0, "Sega", "Sega Marine Fishing", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 2288 | GAME( 1999, toyfight, naomi, naomi, naomi, 0, ROT0, "Sega", "Toy Fighter", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2223 | 2289 | // Incomplete Dumps (just IC22) |
| 2224 | 2290 | GAME( 2000, cspike, naomi, naomi, naomi, 0, ROT0, "Psikyo / Capcom", "Gun Spike (JPN) / Cannon Spike (USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 2225 | 2291 | GAME( 2000, capsnk, naomi, naomi, naomi, 0, ROT0, "Capcom / SNK", "Capcom Vs. SNK Millennium Fight 2000 (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| r1711 | r1712 | |
|---|---|---|
| 2155 | 2155 | /* audio CPU */ /* From schematics, should be accurate */ |
| 2156 | 2156 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) /* fixed */ |
| 2157 | 2157 | |
| 2158 | MDRV_SCREEN_REFRESH_RATE((18432000.0/4)/(288*264)) /* ??? */ | |
| 2159 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 2160 | ||
| 2161 | 2158 | MDRV_MACHINE_RESET(nemesis) |
| 2162 | 2159 | |
| 2163 | 2160 | /* video hardware */ |
| 2164 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2161 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2162 | MDRV_SCREEN_REFRESH_RATE((18432000.0/4)/(288*264)) /* ??? */ | |
| 2163 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 2165 | 2164 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2166 | 2165 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 2167 | 2166 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 2167 | ||
| 2168 | 2168 | MDRV_GFXDECODE(nemesis) |
| 2169 | 2169 | MDRV_PALETTE_LENGTH(2048) |
| 2170 | 2170 | |
| r1711 | r1712 | |
| 2203 | 2203 | /* audio CPU */ /* 3.579545 MHz */ |
| 2204 | 2204 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 2205 | 2205 | |
| 2206 | MDRV_SCREEN_REFRESH_RATE((18432000.0/4)/(288*264)) /* 60.606060 Hz */ | |
| 2207 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 2208 | ||
| 2209 | 2206 | MDRV_MACHINE_RESET(nemesis) |
| 2210 | 2207 | |
| 2211 | 2208 | /* video hardware */ |
| 2212 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2209 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2210 | MDRV_SCREEN_REFRESH_RATE((18432000.0/4)/(288*264)) /* 60.606060 Hz */ | |
| 2211 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 2213 | 2212 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2214 | 2213 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 2215 | 2214 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 2215 | ||
| 2216 | 2216 | MDRV_GFXDECODE(nemesis) |
| 2217 | 2217 | MDRV_PALETTE_LENGTH(2048) |
| 2218 | 2218 | |
| r1711 | r1712 | |
| 2247 | 2247 | /* audio CPU */ /* 3.579545 MHz */ |
| 2248 | 2248 | MDRV_CPU_PROGRAM_MAP(sal_sound_readmem,sal_sound_writemem) |
| 2249 | 2249 | |
| 2250 | MDRV_SCREEN_REFRESH_RATE((18432000.0/4)/(288*264)) /* 60.606060 Hz */ | |
| 2251 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC((264-256)*125/2)) | |
| 2252 | ||
| 2253 | 2250 | MDRV_MACHINE_RESET(nemesis) |
| 2254 | 2251 | |
| 2255 | 2252 | /* video hardware */ |
| 2256 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_AFTER_VBLANK) | |
| 2253 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_AFTER_VBLANK) | |
| 2254 | ||
| 2255 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2256 | MDRV_SCREEN_REFRESH_RATE((18432000.0/4)/(288*264)) /* 60.606060 Hz */ | |
| 2257 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC((264-256)*125/2)) | |
| 2257 | 2258 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2258 | 2259 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 2259 | 2260 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 2261 | ||
| 2260 | 2262 | MDRV_GFXDECODE(nemesis) |
| 2261 | 2263 | MDRV_PALETTE_LENGTH(2048) |
| 2262 | 2264 | |
| r1711 | r1712 | |
| 2296 | 2298 | /* audio CPU */ /* 3.579545 MHz */ |
| 2297 | 2299 | MDRV_CPU_PROGRAM_MAP(sal_sound_readmem,sal_sound_writemem) |
| 2298 | 2300 | |
| 2299 | MDRV_SCREEN_REFRESH_RATE((18432000.0/4)/(288*264)) /* 60.606060 Hz */ | |
| 2300 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 2301 | ||
| 2302 | 2301 | MDRV_MACHINE_RESET(nemesis) |
| 2303 | 2302 | |
| 2304 | 2303 | /* video hardware */ |
| 2305 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 2304 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 2305 | ||
| 2306 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2307 | MDRV_SCREEN_REFRESH_RATE((18432000.0/4)/(288*264)) /* 60.606060 Hz */ | |
| 2308 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 2306 | 2309 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2307 | 2310 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 2308 | 2311 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 2312 | ||
| 2309 | 2313 | MDRV_GFXDECODE(nemesis) |
| 2310 | 2314 | MDRV_PALETTE_LENGTH(2048) |
| 2311 | 2315 | |
| r1711 | r1712 | |
| 2340 | 2344 | /* audio CPU */ /* 3.579545 MHz */ |
| 2341 | 2345 | MDRV_CPU_PROGRAM_MAP(city_sound_readmem,city_sound_writemem) |
| 2342 | 2346 | |
| 2343 | MDRV_SCREEN_REFRESH_RATE((18432000.0/4)/(288*264)) /* 60.606060 Hz */ | |
| 2344 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 2345 | ||
| 2346 | 2347 | MDRV_MACHINE_RESET(nemesis) |
| 2347 | 2348 | |
| 2348 | 2349 | /* video hardware */ |
| 2349 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 2350 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 2351 | ||
| 2352 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2353 | MDRV_SCREEN_REFRESH_RATE((18432000.0/4)/(288*264)) /* 60.606060 Hz */ | |
| 2354 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 2350 | 2355 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2351 | 2356 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 2352 | 2357 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 2358 | ||
| 2353 | 2359 | MDRV_GFXDECODE(nemesis) |
| 2354 | 2360 | MDRV_PALETTE_LENGTH(2048) |
| 2355 | 2361 | |
| r1711 | r1712 | |
| 2388 | 2394 | /* audio CPU */ /* 3.579545 MHz */ |
| 2389 | 2395 | MDRV_CPU_PROGRAM_MAP(city_sound_readmem,city_sound_writemem) |
| 2390 | 2396 | |
| 2391 | MDRV_SCREEN_REFRESH_RATE((18432000.0/4)/(288*264)) /* 60.606060 Hz */ | |
| 2392 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 2393 | ||
| 2394 | 2397 | MDRV_MACHINE_RESET(nemesis) |
| 2395 | 2398 | |
| 2396 | 2399 | /* video hardware */ |
| 2397 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 2400 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 2401 | ||
| 2402 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2403 | MDRV_SCREEN_REFRESH_RATE((18432000.0/4)/(288*264)) /* 60.606060 Hz */ | |
| 2404 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 2398 | 2405 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2399 | 2406 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 2400 | 2407 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 2408 | ||
| 2401 | 2409 | MDRV_GFXDECODE(nemesis) |
| 2402 | 2410 | MDRV_PALETTE_LENGTH(2048) |
| 2403 | 2411 | |
| r1711 | r1712 | |
| 2436 | 2444 | MDRV_CPU_PROGRAM_MAP(gx400_sound_readmem,gx400_sound_writemem) |
| 2437 | 2445 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,1) /* interrupts are triggered by the main CPU */ |
| 2438 | 2446 | |
| 2439 | MDRV_SCREEN_REFRESH_RATE((18432000.0/4)/(288*264)) /* 60.606060 Hz */ | |
| 2440 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 2441 | ||
| 2442 | 2447 | MDRV_MACHINE_RESET(nemesis) |
| 2443 | 2448 | |
| 2444 | 2449 | /* video hardware */ |
| 2445 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2450 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2451 | MDRV_SCREEN_REFRESH_RATE((18432000.0/4)/(288*264)) /* 60.606060 Hz */ | |
| 2452 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 2446 | 2453 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2447 | 2454 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 2448 | 2455 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 2456 | ||
| 2449 | 2457 | MDRV_GFXDECODE(nemesis) |
| 2450 | 2458 | MDRV_PALETTE_LENGTH(2048) |
| 2451 | 2459 | |
| r1711 | r1712 | |
| 2485 | 2493 | MDRV_CPU_PROGRAM_MAP(gx400_sound_readmem,gx400_sound_writemem) |
| 2486 | 2494 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,1) /* interrupts are triggered by the main CPU */ |
| 2487 | 2495 | |
| 2488 | MDRV_SCREEN_REFRESH_RATE((18432000.0/4)/(288*264)) /* 60.606060 Hz */ | |
| 2489 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 2490 | ||
| 2491 | 2496 | MDRV_MACHINE_RESET(nemesis) |
| 2492 | 2497 | |
| 2493 | 2498 | /* video hardware */ |
| 2494 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2499 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2500 | MDRV_SCREEN_REFRESH_RATE((18432000.0/4)/(288*264)) /* 60.606060 Hz */ | |
| 2501 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 2495 | 2502 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2496 | 2503 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 2497 | 2504 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 2505 | ||
| 2498 | 2506 | MDRV_GFXDECODE(nemesis) |
| 2499 | 2507 | MDRV_PALETTE_LENGTH(2048) |
| 2500 | 2508 | |
| r1711 | r1712 | |
| 2532 | 2540 | /* audio CPU */ /* 3.579545 MHz */ |
| 2533 | 2541 | MDRV_CPU_PROGRAM_MAP(sal_sound_readmem,sal_sound_writemem) |
| 2534 | 2542 | |
| 2535 | MDRV_SCREEN_REFRESH_RATE((18432000.0/4)/(288*264)) /* 60.606060 Hz */ | |
| 2536 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 2537 | ||
| 2538 | 2543 | MDRV_MACHINE_RESET(nemesis) |
| 2539 | 2544 | |
| 2540 | 2545 | /* video hardware */ |
| 2541 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2546 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2547 | MDRV_SCREEN_REFRESH_RATE((18432000.0/4)/(288*264)) /* 60.606060 Hz */ | |
| 2548 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 2542 | 2549 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2543 | 2550 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 2544 | 2551 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 2552 | ||
| 2545 | 2553 | MDRV_GFXDECODE(nemesis) |
| 2546 | 2554 | MDRV_PALETTE_LENGTH(2048) |
| 2547 | 2555 |
| r1711 | r1712 | |
|---|---|---|
| 127 | 127 | MDRV_CPU_IO_MAP(portmap,0) |
| 128 | 128 | MDRV_CPU_VBLANK_INT(cheekyms_interrupt,1) |
| 129 | 129 | |
| 130 | /* video hardware */ | |
| 131 | MDRV_SCREEN_ADD("main", RASTER) | |
| 130 | 132 | MDRV_SCREEN_REFRESH_RATE(60) |
| 131 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 132 | ||
| 133 | /* video hardware */ | |
| 134 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 133 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 135 | 134 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 136 | 135 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 137 | 136 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 4*8, 28*8-1) |
| 137 | ||
| 138 | 138 | MDRV_GFXDECODE(cheekyms) |
| 139 | 139 | MDRV_PALETTE_LENGTH(0xc0) |
| 140 | 140 |
| r1711 | r1712 | |
|---|---|---|
| 208 | 208 | // MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 209 | 209 | // MDRV_CPU_VBLANK_INT(nmi_line_pulse,16) |
| 210 | 210 | |
| 211 | /* video hardware */ | |
| 212 | MDRV_SCREEN_ADD("main", RASTER) | |
| 211 | 213 | MDRV_SCREEN_REFRESH_RATE(57) |
| 212 | 214 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(3072)) |
| 213 | ||
| 214 | /* video hardware */ | |
| 215 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 216 | 215 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 217 | 216 | MDRV_SCREEN_SIZE(256, 256) |
| 218 | 217 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 32*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 372 | 372 | MDRV_CPU_PROGRAM_MAP(magmax_soundreadmem,magmax_soundwritemem) |
| 373 | 373 | MDRV_CPU_IO_MAP(magmax_soundreadport,magmax_soundwriteport) |
| 374 | 374 | |
| 375 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 376 | 375 | MDRV_INTERLEAVE(10) |
| 377 | 376 | |
| 378 | 377 | MDRV_MACHINE_START(magmax) |
| 379 | 378 | MDRV_MACHINE_RESET(magmax) |
| 380 | 379 | |
| 381 | 380 | /* video hardware */ |
| 382 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 381 | MDRV_SCREEN_ADD("main", RASTER) | |
| 382 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 383 | 383 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 384 | 384 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 385 | 385 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 386 | ||
| 386 | 387 | MDRV_GFXDECODE(magmax) |
| 387 | 388 | MDRV_PALETTE_LENGTH(1*16 + 16*16 + 256) |
| 388 | 389 |
| r1711 | r1712 | |
|---|---|---|
| 157 | 157 | xxxxxx00 Right coin == 6 credit/coin |
| 158 | 158 | (Left coin always registers 1 credit/coin) |
| 159 | 159 | |
| 160 | DIP locations verified from manual for: | |
| 161 | - asteroid | |
| 162 | - llander | |
| 163 | - llander1 | |
| 164 | - astdelux | |
| 165 | ||
| 160 | 166 | ***************************************************************************/ |
| 161 | 167 | |
| 162 | 168 | #include "driver.h" |
| r1711 | r1712 | |
| 186 | 192 | |
| 187 | 193 | /************************************* |
| 188 | 194 | * |
| 189 | * L | |
| 195 | * Lunar Lander LEDs/lamps | |
| 190 | 196 | * |
| 191 | 197 | *************************************/ |
| 192 | 198 | |
| r1711 | r1712 | |
| 214 | 220 | AM_RANGE(0x0000, 0x01ff) AM_RAM |
| 215 | 221 | AM_RANGE(0x0200, 0x02ff) AM_RAM AM_RAMBANK(1) AM_BASE(&asteroid_ram1) |
| 216 | 222 | AM_RANGE(0x0300, 0x03ff) AM_RAM AM_RAMBANK(2) AM_BASE(&asteroid_ram2) |
| 217 | AM_RANGE(0x2000, 0x2007) AM_READ(asteroid_IN0_r) /* IN0 */ | |
| 218 | AM_RANGE(0x2400, 0x2407) AM_READ(asteroid_IN1_r) /* IN1 */ | |
| 219 | AM_RANGE(0x2800, 0x2803) AM_READ(asteroid_DSW1_r) /* DSW1 */ | |
| 223 | AM_RANGE(0x2000, 0x2007) AM_READ(asteroid_IN0_r) /* IN0 */ | |
| 224 | AM_RANGE(0x2400, 0x2407) AM_READ(asteroid_IN1_r) /* IN1 */ | |
| 225 | AM_RANGE(0x2800, 0x2803) AM_READ(asteroid_DSW1_r) /* DSW1 */ | |
| 220 | 226 | AM_RANGE(0x3000, 0x3000) AM_WRITE(avgdvg_go_w) |
| 221 | 227 | AM_RANGE(0x3200, 0x3200) AM_WRITE(asteroid_bank_switch_w) |
| 222 | 228 | AM_RANGE(0x3400, 0x3400) AM_WRITE(watchdog_reset_w) |
| r1711 | r1712 | |
| 225 | 231 | AM_RANGE(0x3c00, 0x3c05) AM_WRITE(asteroid_sounds_w) |
| 226 | 232 | AM_RANGE(0x3e00, 0x3e00) AM_WRITE(asteroid_noise_reset_w) |
| 227 | 233 | AM_RANGE(0x4000, 0x47ff) AM_RAM AM_BASE(&vectorram) AM_SIZE(&vectorram_size) AM_REGION(REGION_CPU1, 0x4000) |
| 228 | AM_RANGE(0x5000, 0x57ff) AM_ROM /* vector rom */ | |
| 234 | AM_RANGE(0x5000, 0x57ff) AM_ROM /* vector rom */ | |
| 229 | 235 | AM_RANGE(0x6800, 0x7fff) AM_ROM |
| 230 | 236 | ADDRESS_MAP_END |
| 231 | 237 | |
| r1711 | r1712 | |
| 235 | 241 | AM_RANGE(0x0000, 0x01ff) AM_RAM |
| 236 | 242 | AM_RANGE(0x0200, 0x02ff) AM_RAM AM_RAMBANK(1) AM_BASE(&asteroid_ram1) |
| 237 | 243 | AM_RANGE(0x0300, 0x03ff) AM_RAM AM_RAMBANK(2) AM_BASE(&asteroid_ram2) |
| 238 | AM_RANGE(0x2000, 0x2007) AM_READ(asteroid_IN0_r) /* IN0 */ | |
| 239 | AM_RANGE(0x2400, 0x2407) AM_READ(asteroid_IN1_r) /* IN1 */ | |
| 240 | AM_RANGE(0x2800, 0x2803) AM_READ(asteroid_DSW1_r) /* DSW1 */ | |
| 244 | AM_RANGE(0x2000, 0x2007) AM_READ(asteroid_IN0_r) /* IN0 */ | |
| 245 | AM_RANGE(0x2400, 0x2407) AM_READ(asteroid_IN1_r) /* IN1 */ | |
| 246 | AM_RANGE(0x2800, 0x2803) AM_READ(asteroid_DSW1_r) /* DSW1 */ | |
| 241 | 247 | AM_RANGE(0x2c00, 0x2c0f) AM_READWRITE(pokey1_r, pokey1_w) |
| 242 | 248 | AM_RANGE(0x2c40, 0x2c7f) AM_READ(atari_vg_earom_r) |
| 243 | 249 | AM_RANGE(0x3000, 0x3000) AM_WRITE(avgdvg_go_w) |
| r1711 | r1712 | |
| 251 | 257 | AM_RANGE(0x3c05, 0x3c07) AM_WRITE(astdelux_coin_counter_w) |
| 252 | 258 | AM_RANGE(0x3e00, 0x3e00) AM_WRITE(asteroid_noise_reset_w) |
| 253 | 259 | AM_RANGE(0x4000, 0x47ff) AM_RAM AM_BASE(&vectorram) AM_SIZE(&vectorram_size) AM_REGION(REGION_CPU1, 0x4000) |
| 254 | AM_RANGE(0x4800, 0x57ff) AM_ROM /* vector rom */ | |
| 260 | AM_RANGE(0x4800, 0x57ff) AM_ROM /* vector rom */ | |
| 255 | 261 | AM_RANGE(0x6000, 0x7fff) AM_ROM |
| 256 | 262 | ADDRESS_MAP_END |
| 257 | 263 | |
| r1711 | r1712 | |
| 259 | 265 | static ADDRESS_MAP_START( llander_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 260 | 266 | ADDRESS_MAP_FLAGS( AMEF_ABITS(15) ) |
| 261 | 267 | AM_RANGE(0x0000, 0x00ff) AM_RAM AM_MIRROR(0x1f00) |
| 262 | AM_RANGE(0x2000, 0x2000) AM_READ(llander_IN0_r) /* IN0 */ | |
| 263 | AM_RANGE(0x2400, 0x2407) AM_READ(asteroid_IN1_r) /* IN1 */ | |
| 264 | AM_RANGE(0x2800, 0x2803) AM_READ(asteroid_DSW1_r) /* DSW1 */ | |
| 265 | AM_RANGE(0x2c00, 0x2c00) AM_READ(input_port_3_r) /* IN3 */ | |
| 268 | AM_RANGE(0x2000, 0x2000) AM_READ(llander_IN0_r) /* IN0 */ | |
| 269 | AM_RANGE(0x2400, 0x2407) AM_READ(asteroid_IN1_r) /* IN1 */ | |
| 270 | AM_RANGE(0x2800, 0x2803) AM_READ(asteroid_DSW1_r) /* DSW1 */ | |
| 271 | AM_RANGE(0x2c00, 0x2c00) AM_READ(input_port_3_r) /* IN3 */ | |
| 266 | 272 | AM_RANGE(0x3000, 0x3000) AM_WRITE(avgdvg_go_w) |
| 267 | 273 | AM_RANGE(0x3200, 0x3200) AM_WRITE(llander_led_w) |
| 268 | 274 | AM_RANGE(0x3400, 0x3400) AM_WRITE(watchdog_reset_w) |
| 269 | 275 | AM_RANGE(0x3c00, 0x3c00) AM_WRITE(llander_sounds_w) |
| 270 | 276 | AM_RANGE(0x3e00, 0x3e00) AM_WRITE(llander_snd_reset_w) |
| 271 | 277 | AM_RANGE(0x4000, 0x47ff) AM_RAM AM_BASE(&vectorram) AM_SIZE(&vectorram_size) AM_REGION(REGION_CPU1, 0x4000) |
| 272 | AM_RANGE(0x4800, 0x5fff) AM_ROM /* vector rom */ | |
| 278 | AM_RANGE(0x4800, 0x5fff) AM_ROM /* vector rom */ | |
| 273 | 279 | AM_RANGE(0x6000, 0x7fff) AM_ROM |
| 274 | 280 | ADDRESS_MAP_END |
| 275 | 281 | |
| r1711 | r1712 | |
| 300 | 306 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN3 ) |
| 301 | 307 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_START1 ) |
| 302 | 308 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_START2 ) |
| 303 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_CODE(KEYCODE_LALT) PORT_CODE(JOYCODE_BUTTON2) /* thrust */ | |
| 304 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_CODE(KEYCODE_RIGHT) PORT_CODE(JOYCODE_X_RIGHT_SWITCH) /* right */ | |
| 305 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_CODE(KEYCODE_LEFT) PORT_CODE(JOYCODE_X_LEFT_SWITCH) /* left */ | |
| 309 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_CODE(KEYCODE_LALT) PORT_CODE(JOYCODE_BUTTON2) /* thrust */ | |
| 310 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_CODE(KEYCODE_RIGHT) PORT_CODE(JOYCODE_X_RIGHT_SWITCH)/* right */ | |
| 311 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_CODE(KEYCODE_LEFT) PORT_CODE(JOYCODE_X_LEFT_SWITCH) /* left */ | |
| 306 | 312 | |
| 307 | 313 | PORT_START_TAG("DSW") |
| 308 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Language ) ) | |
| 314 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Language ) ) PORT_DIPLOCATION("SW:1,2") | |
| 309 | 315 | PORT_DIPSETTING ( 0x00, DEF_STR( English ) ) |
| 310 | 316 | PORT_DIPSETTING ( 0x01, DEF_STR( German ) ) |
| 311 | 317 | PORT_DIPSETTING ( 0x02, DEF_STR( French ) ) |
| 312 | 318 | PORT_DIPSETTING ( 0x03, DEF_STR( Spanish ) ) |
| 313 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Lives ) ) | |
| 319 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW:3") | |
| 314 | 320 | PORT_DIPSETTING ( 0x04, "3" ) |
| 315 | 321 | PORT_DIPSETTING ( 0x00, "4" ) |
| 316 | PORT_DIPNAME( 0x08, 0x00, "Center Mech" ) /*Left | |
| 322 | PORT_DIPNAME( 0x08, 0x00, "Center Mech" ) PORT_DIPLOCATION("SW:4") /* Left/C | |
| 317 | 323 | PORT_DIPSETTING ( 0x00, "X 1" ) |
| 318 | 324 | PORT_DIPSETTING ( 0x08, "X 2" ) |
| 319 | PORT_DIPNAME( 0x30, 0x00, "Right Mech" ) | |
| 325 | PORT_DIPNAME( 0x30, 0x00, "Right Mech" ) PORT_DIPLOCATION("SW:5,6") | |
| 320 | 326 | PORT_DIPSETTING ( 0x00, "X 1" ) |
| 321 | 327 | PORT_DIPSETTING ( 0x10, "X 4" ) |
| 322 | 328 | PORT_DIPSETTING ( 0x20, "X 5" ) |
| 323 | 329 | PORT_DIPSETTING ( 0x30, "X 6" ) |
| 324 | PORT_DIPNAME( 0xc0, 0x80, DEF_STR( Coinage ) ) | |
| 330 | PORT_DIPNAME( 0xc0, 0x80, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW:7,8") | |
| 325 | 331 | PORT_DIPSETTING ( 0xc0, DEF_STR( 2C_1C ) ) |
| 326 | 332 | PORT_DIPSETTING ( 0x80, DEF_STR( 1C_1C ) ) |
| 327 | 333 | PORT_DIPSETTING ( 0x40, DEF_STR( 1C_2C ) ) |
| r1711 | r1712 | |
| 330 | 336 | |
| 331 | 337 | |
| 332 | 338 | static INPUT_PORTS_START( asteroib ) |
| 333 | PORT_START_TAG("IN0") | |
| 339 | PORT_INCLUDE( asteroid ) | |
| 340 | ||
| 341 | PORT_MODIFY("IN0") | |
| 334 | 342 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* resets */ |
| 335 | 343 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* resets */ |
| 336 | 344 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_TILT ) |
| r1711 | r1712 | |
| 341 | 349 | /* Bit 7 is VG_HALT, handled in the machine dependent part */ |
| 342 | 350 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 343 | 351 | |
| 344 | PORT_ | |
| 352 | PORT_MODIFY | |
| 345 | 353 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) |
| 346 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 347 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_CODE(KEYCODE_LALT) PORT_CODE(JOYCODE_BUTTON2) /* thrust */ | |
| 348 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 349 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 350 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_CODE(KEYCODE_LCONTROL) PORT_CODE(JOYCODE_BUTTON1) /* fire */ | |
| 351 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_CODE(KEYCODE_RIGHT) PORT_CODE(JOYCODE_X_RIGHT_SWITCH) /* right */ | |
| 352 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_CODE(KEYCODE_LEFT) PORT_CODE(JOYCODE_X_LEFT_SWITCH) /* left */ | |
| 354 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 355 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_CODE(KEYCODE_LALT) PORT_CODE(JOYCODE_BUTTON2) /* thrust */ | |
| 356 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 357 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_CODE(KEYCODE_LCONTROL) PORT_CODE(JOYCODE_BUTTON1) /* fire */ | |
| 353 | 358 | |
| 354 | PORT_START_TAG("DSW") | |
| 355 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Language ) ) | |
| 356 | PORT_DIPSETTING ( 0x00, DEF_STR( English ) ) | |
| 357 | PORT_DIPSETTING ( 0x01, DEF_STR( German ) ) | |
| 358 | PORT_DIPSETTING ( 0x02, DEF_STR( French ) ) | |
| 359 | PORT_DIPSETTING ( 0x03, DEF_STR( Spanish ) ) | |
| 360 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Lives ) ) | |
| 361 | PORT_DIPSETTING ( 0x04, "3" ) | |
| 362 | PORT_DIPSETTING ( 0x00, "4" ) | |
| 363 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) ) | |
| 364 | PORT_DIPSETTING ( 0x00, DEF_STR( Off ) ) | |
| 365 | PORT_DIPSETTING ( 0x08, DEF_STR( On ) ) | |
| 366 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) ) | |
| 367 | PORT_DIPSETTING ( 0x00, DEF_STR( Off ) ) | |
| 368 | PORT_DIPSETTING ( 0x10, DEF_STR( On ) ) | |
| 369 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) | |
| 370 | PORT_DIPSETTING ( 0x00, DEF_STR( Off ) ) | |
| 371 | PORT_DIPSETTING ( 0x20, DEF_STR( On ) ) | |
| 372 | PORT_DIPNAME( 0xc0, 0x80, DEF_STR( Coinage ) ) | |
| 373 | PORT_DIPSETTING ( 0xc0, DEF_STR( 2C_1C ) ) | |
| 374 | PORT_DIPSETTING ( 0x80, DEF_STR( 1C_1C ) ) | |
| 375 | PORT_DIPSETTING ( 0x40, DEF_STR( 1C_2C ) ) | |
| 376 | PORT_DIPSETTING ( 0x00, DEF_STR( Free_Play ) ) | |
| 359 | PORT_MODIFY("DSW") | |
| 360 | PORT_DIPUNKNOWN_DIPLOC( 0x08, 0x08, "SW:4" ) | |
| 361 | PORT_DIPUNKNOWN_DIPLOC( 0x10, 0x10, "SW:5" ) | |
| 362 | PORT_DIPUNKNOWN_DIPLOC( 0x20, 0x20, "SW:6" ) | |
| 377 | 363 | |
| 378 | 364 | PORT_START_TAG("HS") /* hyperspace */ |
| 379 | 365 | PORT_BIT( 0x7f, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 380 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_CODE(KEYCODE_SPACE) PORT_CODE(JOYCODE_BUTTON3) /* hyperspace */ | |
| 366 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_CODE(KEYCODE_SPACE) PORT_CODE(JOYCODE_BUTTON3) /* hyperspace */ | |
| 381 | 367 | INPUT_PORTS_END |
| 382 | 368 | |
| 383 | 369 | |
| 384 | 370 | static INPUT_PORTS_START( asterock ) |
| 385 | PORT_START_TAG("IN0") | |
| 371 | PORT_INCLUDE( asteroid ) | |
| 372 | ||
| 373 | PORT_MODIFY("IN0") | |
| 386 | 374 | /* Bit 0 is VG_HALT, handled in the machine dependent part */ |
| 387 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 388 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 389 | 375 | /* Bit 2 is the 3 KHz source */ |
| 390 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 391 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_CODE(KEYCODE_SPACE) PORT_CODE(JOYCODE_BUTTON3) /* hyperspace */ | |
| 392 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_CODE(KEYCODE_LCONTROL) PORT_CODE(JOYCODE_BUTTON1) /* fire */ | |
| 393 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Diagnostic Step") PORT_CODE(KEYCODE_F1) | |
| 394 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_TILT ) | |
| 395 | 376 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 396 | 377 | |
| 397 | PORT_START_TAG("IN1") | |
| 398 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 399 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 400 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN3 ) | |
| 401 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 402 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 403 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_CODE(KEYCODE_LALT) PORT_CODE(JOYCODE_BUTTON2) /* thrust */ | |
| 404 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_CODE(KEYCODE_RIGHT) PORT_CODE(JOYCODE_X_RIGHT_SWITCH) /* right */ | |
| 405 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_CODE(KEYCODE_LEFT) PORT_CODE(JOYCODE_X_LEFT_SWITCH) /* left */ | |
| 406 | ||
| 407 | PORT_START_TAG("DSW") | |
| 408 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Language ) ) | |
| 378 | PORT_MODIFY("DSW") | |
| 379 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Language ) ) PORT_DIPLOCATION("SW:1,2") | |
| 409 | 380 | PORT_DIPSETTING( 0x00, DEF_STR( English ) ) |
| 410 | 381 | PORT_DIPSETTING( 0x01, DEF_STR( French ) ) |
| 411 | 382 | PORT_DIPSETTING( 0x02, DEF_STR( German ) ) |
| 412 | 383 | PORT_DIPSETTING( 0x03, DEF_STR( Italian ) ) |
| 413 | PORT_DIPNAME( 0x0c, 0x04, DEF_STR( Lives ) ) | |
| 384 | PORT_DIPNAME( 0x0c, 0x04, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW:3,4") | |
| 414 | 385 | PORT_DIPSETTING( 0x00, "2" ) |
| 415 | 386 | PORT_DIPSETTING( 0x04, "3" ) |
| 416 | 387 | PORT_DIPSETTING( 0x08, "4" ) |
| 417 | 388 | PORT_DIPSETTING( 0x0c, "5" ) |
| 418 | PORT_DIPNAME( 0x10, 0x00, "Records Table" ) | |
| 389 | PORT_DIPNAME( 0x10, 0x00, "Records Table" ) PORT_DIPLOCATION("SW:5") | |
| 419 | 390 | PORT_DIPSETTING( 0x00, DEF_STR( Normal ) ) |
| 420 | 391 | PORT_DIPSETTING( 0x10, "Special" ) |
| 421 | PORT_DIPNAME( 0x20, 0x00, "Coin Mode" ) | |
| 392 | PORT_DIPNAME( 0x20, 0x00, "Coin Mode" ) PORT_DIPLOCATION("SW:6") | |
| 422 | 393 | PORT_DIPSETTING ( 0x00, DEF_STR( Normal ) ) |
| 423 | 394 | PORT_DIPSETTING ( 0x20, "Special" ) |
| 424 | PORT_DIPNAME( 0xc0, 0x80, DEF_STR( Coinage ) ) | |
| 395 | PORT_DIPNAME( 0xc0, 0x80, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW:7,8") | |
| 425 | 396 | PORT_DIPSETTING ( 0xc0, DEF_STR( 2C_1C ) ) PORT_CONDITION("DSW",0x20,PORTCOND_EQUALS,0x00) |
| 426 | 397 | PORT_DIPSETTING ( 0x80, DEF_STR( 1C_1C ) ) PORT_CONDITION("DSW",0x20,PORTCOND_EQUALS,0x00) |
| 427 | 398 | PORT_DIPSETTING ( 0x40, DEF_STR( 1C_2C ) ) PORT_CONDITION("DSW",0x20,PORTCOND_EQUALS,0x00) |
| r1711 | r1712 | |
| 435 | 406 | |
| 436 | 407 | static INPUT_PORTS_START( astdelux ) |
| 437 | 408 | PORT_START_TAG("IN0") |
| 438 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UN | |
| 409 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED | |
| 439 | 410 | /* Bit 2 and 3 are handled in the machine dependent part. */ |
| 440 | 411 | /* Bit 2 is the 3 KHz source and Bit 3 the VG_HALT bit */ |
| 441 | 412 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| r1711 | r1712 | |
| 447 | 418 | PORT_SERVICE( 0x80, IP_ACTIVE_HIGH ) |
| 448 | 419 | |
| 449 | 420 | PORT_START_TAG("IN1") |
| 450 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 451 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 452 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN3 ) | |
| 421 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) /* Coin Left */ | |
| 422 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) /* Coin Center */ | |
| 423 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN3 ) /* Coin Right */ | |
| 453 | 424 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_START1 ) |
| 454 | 425 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_START2 ) |
| 455 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_CODE(KEYCODE_LALT) PORT_CODE(JOYCODE_BUTTON2) /* thrust */ | |
| 456 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_CODE(KEYCODE_RIGHT) PORT_CODE(JOYCODE_X_RIGHT_SWITCH) /* right */ | |
| 457 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_CODE(KEYCODE_LEFT) PORT_CODE(JOYCODE_X_LEFT_SWITCH) /* left */ | |
| 426 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_CODE(KEYCODE_LALT) PORT_CODE(JOYCODE_BUTTON2) /* thrust */ | |
| 427 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_CODE(KEYCODE_RIGHT) PORT_CODE(JOYCODE_X_RIGHT_SWITCH)/* right */ | |
| 428 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_CODE(KEYCODE_LEFT) PORT_CODE(JOYCODE_X_LEFT_SWITCH) /* left */ | |
| 458 | 429 | |
| 459 | 430 | PORT_START_TAG("DSW1") |
| 460 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Language ) ) | |
| 431 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Language ) ) PORT_DIPLOCATION("R5:1,2") | |
| 461 | 432 | PORT_DIPSETTING ( 0x00, DEF_STR( English ) ) |
| 462 | 433 | PORT_DIPSETTING ( 0x01, DEF_STR( German ) ) |
| 463 | 434 | PORT_DIPSETTING ( 0x02, DEF_STR( French ) ) |
| 464 | 435 | PORT_DIPSETTING ( 0x03, DEF_STR( Spanish ) ) |
| 465 | PORT_DIPNAME( 0x0c, 0x04, DEF_STR( Lives ) ) | |
| 436 | /* Default lives is 2,3,4,5. Values incremented by 1 if Bonus Life set to None or Coinage set to 2C_1C. | |
| 437 | Incremented by 2 if both are set at the same time. PORT_CONDITION() can only test for 1 switch at a time. */ | |
| 438 | PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Lives ) ) PORT_DIPLOCATION("R5:3,4") /* Default is 2 or 3 depending on manual version */ | |
| 466 | 439 | PORT_DIPSETTING ( 0x00, "2-4" ) |
| 467 | 440 | PORT_DIPSETTING ( 0x04, "3-5" ) |
| 468 | 441 | PORT_DIPSETTING ( 0x08, "4-6" ) |
| 469 | 442 | PORT_DIPSETTING ( 0x0c, "5-7" ) |
| 470 | PORT_DIPNAME( 0x10, 0x00, "Minimum | |
| 443 | PORT_DIPNAME( 0x10, 0x00, "Minimum Plays" ) PORT_DIPLOCATION("R5:5") | |
| 471 | 444 | PORT_DIPSETTING ( 0x00, "1" ) |
| 472 | 445 | PORT_DIPSETTING ( 0x10, "2" ) |
| 473 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Difficulty ) ) | |
| 446 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("R5:6") /* Listed as "Unused" */ | |
| 474 | 447 | PORT_DIPSETTING ( 0x00, DEF_STR( Hard ) ) |
| 475 | 448 | PORT_DIPSETTING ( 0x20, DEF_STR( Easy ) ) |
| 476 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Bonus_Life ) ) | |
| 449 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("R5:7,8") | |
| 477 | 450 | PORT_DIPSETTING ( 0x00, "10000" ) |
| 478 | 451 | PORT_DIPSETTING ( 0x40, "12000" ) |
| 479 | 452 | PORT_DIPSETTING ( 0x80, "15000" ) |
| 480 | 453 | PORT_DIPSETTING ( 0xc0, DEF_STR( None ) ) |
| 481 | 454 | |
| 482 | 455 | PORT_START_TAG("DSW2") |
| 483 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Coinage ) ) | |
| 456 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Coinage ) ) PORT_DIPLOCATION("L8:1,2") | |
| 484 | 457 | PORT_DIPSETTING ( 0x00, DEF_STR( 2C_1C ) ) |
| 485 | 458 | PORT_DIPSETTING ( 0x01, DEF_STR( 1C_1C ) ) |
| 486 | 459 | PORT_DIPSETTING ( 0x02, DEF_STR( 1C_2C ) ) |
| 487 | 460 | PORT_DIPSETTING ( 0x03, DEF_STR( Free_Play ) ) |
| 488 | PORT_DIPNAME( 0x0c, 0x0c, "Right Coin" ) | |
| 489 | PORT_DIPSETTING ( 0x00, "*6" ) | |
| 490 | PORT_DIPSETTING ( 0x04, "*5" ) | |
| 491 | PORT_DIPSETTING ( 0x08, "*4" ) | |
| 492 | PORT_DIPSETTING ( 0x0c, "*1" ) | |
| 493 | PORT_DIPNAME( 0x10, 0x10, "Center Coin" ) | |
| 494 | PORT_DIPSETTING ( 0x00, "*2" ) | |
| 495 | PORT_DIPSETTING ( 0x10, "*1" ) | |
| 496 | PORT_DIPNAME( 0xe0, 0x80, "Bonus Coins" ) | |
| 497 | PORT_DIPSETTING ( 0x60, "1 each 5" ) | |
| 498 | PORT_DIPSETTING ( 0x80, "2 each 4" ) | |
| 499 | PORT_DIPSETTING ( 0xa0, "1 each 4" ) | |
| 500 | PORT_DIPSETTING ( 0xc0, "1 each 2" ) | |
| 461 | PORT_DIPNAME( 0x0c, 0x0c, "Right Coin" ) PORT_DIPLOCATION("L8:3,4") | |
| 462 | PORT_DIPSETTING ( 0x00, "X 6" ) | |
| 463 | PORT_DIPSETTING ( 0x04, "X 5" ) | |
| 464 | PORT_DIPSETTING ( 0x08, "X 4" ) | |
| 465 | PORT_DIPSETTING ( 0x0c, "X 1" ) | |
| 466 | PORT_DIPNAME( 0x10, 0x10, "Center Coin" ) PORT_DIPLOCATION("L8:5") /* "Left Coin" in a 2-mech door */ | |
| 467 | PORT_DIPSETTING ( 0x00, "X 2" ) | |
| 468 | PORT_DIPSETTING ( 0x10, "X 1" ) | |
| 469 | PORT_DIPNAME( 0xe0, 0xe0, "Bonus Coins" ) PORT_DIPLOCATION("L8:6,7,8") | |
| 470 | PORT_DIPSETTING ( 0x60, "1 Coin Each 5 Coins" ) | |
| 471 | PORT_DIPSETTING ( 0x80, "2 Coins Each 4 Coins" ) | |
| 472 | PORT_DIPSETTING ( 0xa0, "1 Coin Each 4 Coins" ) | |
| 473 | PORT_DIPSETTING ( 0xc0, "1 Coin Each 2 Coins" ) | |
| 501 | 474 | PORT_DIPSETTING ( 0xe0, DEF_STR( None ) ) |
| 475 | ||
| 476 | /* The manual includes a 3rd DIP controlling the number & configuration of coin counters, defined as: | |
| 477 | PORT_START_TAG("DSW3") // 4-Toggle switch located on game PCB at M12 | |
| 478 | PORT_DIPNAME( 0x03, 0x00, "Coin Counters" ) PORT_DIPLOCATION("M12:1,2") | |
| 479 | PORT_DIPSETTING ( 0x00, "1=Left, Center & Right" ) // "For games having these coin doors: Thai 1Baht/1Baht, German 1DM/1DM, US 25c/25c, | |
| 480 | // Belgian or French 5Fr/5Fr, Swiss or French 1Fr/1Fr, US 25c/25c/25c, | |
| 481 | // Japanese 100Y/100Y, Swedish 1Kr/1Kr, UK 10P/10P, Australian 20c/20c, or Italian 100L/100L." | |
| 482 | PORT_DIPSETTING ( 0x01, "1=Left & Center, 2=Right" ) // "For games having these coin doors: German 2DM/1DM, German 1DM/5DM, US 25c/25c/1$, or US 25c/1$." | |
| 483 | PORT_DIPSETTING ( 0x02, "1=Left, 2=Center & Right" ) // "No coin door is currently designed for this configuration." | |
| 484 | PORT_DIPSETTING ( 0x03, "1=Left, 2=Center, 3=Right" ) // "For games having these coin doors: German 1DM/2DM/5DM." | |
| 485 | PORT_DIPUNUSED_DIPLOC( 0x04, 0x04, "M12:3" ) // Listed as "Unused" | |
| 486 | PORT_DIPUNUSED_DIPLOC( 0x08, 0x08, "M12:4" ) // Listed as "Unused" | |
| 487 | */ | |
| 502 | 488 | INPUT_PORTS_END |
| 503 | 489 | |
| 504 | 490 | |
| r1711 | r1712 | |
| 514 | 500 | |
| 515 | 501 | PORT_START_TAG("IN1") |
| 516 | 502 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) |
| 517 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 503 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 518 | 504 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| 519 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN3 ) | |
| 520 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_START2 ) PORT_NAME("Select Game") | |
| 505 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN3 ) | |
| 506 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_START2 ) PORT_NAME("Select Game") | |
| 521 | 507 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_NAME("Abort") |
| 522 | 508 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_CODE(KEYCODE_RIGHT) PORT_CODE(JOYCODE_X_RIGHT_SWITCH) /* right */ |
| 523 | 509 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_CODE(KEYCODE_LEFT) PORT_CODE(JOYCODE_X_LEFT_SWITCH) /* left */ |
| 524 | 510 | |
| 525 | 511 | PORT_START_TAG("DSW") |
| 526 | PORT_DIPNAME( 0x03, 0x01, "Right Coin" ) | |
| 527 | PORT_DIPSETTING ( 0x00, "*1" ) | |
| 528 | PORT_DIPSETTING ( 0x01, "*4" ) | |
| 529 | PORT_DIPSETTING ( 0x02, "*5" ) | |
| 530 | PORT_DIPSETTING ( 0x03, "*6" ) | |
| 531 | PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Language ) ) | |
| 512 | PORT_DIPNAME( 0x03, 0x00, "Right Coin" ) PORT_DIPLOCATION("P8:1,2") /* "Left Coin Mech always registers X 1" */ | |
| 513 | PORT_DIPSETTING ( 0x00, "X 1" ) | |
| 514 | PORT_DIPSETTING ( 0x01, "X 4" ) | |
| 515 | PORT_DIPSETTING ( 0x02, "X 5" ) | |
| 516 | PORT_DIPSETTING ( 0x03, "X 6" ) | |
| 517 | PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Language ) ) PORT_DIPLOCATION("P8:3,4") | |
| 532 | 518 | PORT_DIPSETTING ( 0x00, DEF_STR( English ) ) |
| 533 | 519 | PORT_DIPSETTING ( 0x04, DEF_STR( French ) ) |
| 534 | 520 | PORT_DIPSETTING ( 0x08, DEF_STR( Spanish ) ) |
| 535 | 521 | PORT_DIPSETTING ( 0x0c, DEF_STR( German ) ) |
| 536 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Coinage ) ) | |
| 522 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Coinage ) ) PORT_DIPLOCATION("P8:6") | |
| 537 | 523 | PORT_DIPSETTING ( 0x00, DEF_STR( Normal ) ) |
| 538 | 524 | PORT_DIPSETTING ( 0x20, DEF_STR( Free_Play ) ) |
| 539 | PORT_DIPNAME( 0xd0, 0x80, "Fuel | |
| 525 | PORT_DIPNAME( 0xd0, 0x80, "Fuel Units Per Coin" ) PORT_DIPLOCATION("P8:5,7,8") | |
| 540 | 526 | PORT_DIPSETTING ( 0x00, "450" ) |
| 541 | 527 | PORT_DIPSETTING ( 0x40, "600" ) |
| 542 | 528 | PORT_DIPSETTING ( 0x80, "750" ) |
| r1711 | r1712 | |
| 556 | 542 | |
| 557 | 543 | |
| 558 | 544 | static INPUT_PORTS_START( llander1 ) |
| 559 | PORT_START_TAG("IN0") | |
| 560 | /* Bit 0 is VG_HALT, handled in the machine dependent part */ | |
| 561 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 562 | PORT_SERVICE( 0x02, IP_ACTIVE_LOW ) | |
| 563 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_TILT ) | |
| 564 | /* Of the rest, Bit 6 is the 3KHz source. 3,4 and 5 are unknown */ | |
| 565 | PORT_BIT( 0x78, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 566 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Diagnostic Step") PORT_CODE(KEYCODE_F1) | |
| 545 | PORT_INCLUDE( llander ) | |
| 567 | 546 | |
| 568 | PORT_START_TAG("IN1") | |
| 569 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 570 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 571 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 572 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN3 ) | |
| 573 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_START2 ) PORT_NAME("Select Game") | |
| 574 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_NAME("Abort") | |
| 575 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_CODE(KEYCODE_RIGHT) PORT_CODE(JOYCODE_X_RIGHT_SWITCH) /* right */ | |
| 576 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_CODE(KEYCODE_LEFT) PORT_CODE(JOYCODE_X_LEFT_SWITCH) /* left */ | |
| 577 | ||
| 578 | PORT_START_TAG("DSW") | |
| 579 | PORT_DIPNAME( 0x03, 0x01, "Right Coin" ) | |
| 580 | PORT_DIPSETTING ( 0x00, "*1" ) | |
| 581 | PORT_DIPSETTING ( 0x01, "*4" ) | |
| 582 | PORT_DIPSETTING ( 0x02, "*5" ) | |
| 583 | PORT_DIPSETTING ( 0x03, "*6" ) | |
| 584 | PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Language ) ) | |
| 585 | PORT_DIPSETTING ( 0x00, DEF_STR( English ) ) | |
| 586 | PORT_DIPSETTING ( 0x04, DEF_STR( French ) ) | |
| 587 | PORT_DIPSETTING ( 0x08, DEF_STR( Spanish ) ) | |
| 588 | PORT_DIPSETTING ( 0x0c, DEF_STR( German ) ) | |
| 589 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Coinage ) ) | |
| 547 | PORT_MODIFY("DSW") | |
| 548 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Coinage ) ) PORT_DIPLOCATION("P8:5") /* "Left Coin Mech always registers X 1" */ | |
| 590 | 549 | PORT_DIPSETTING ( 0x00, DEF_STR( Normal ) ) |
| 591 | 550 | PORT_DIPSETTING ( 0x10, DEF_STR( Free_Play ) ) |
| 592 | PORT_DIPNAME( 0xc0, 0x80, "Fuel units" ) | |
| 551 | PORT_DIPUNUSED_DIPLOC( 0x20, 0x20, "P8:6" ) /* Listed as "Unused" */ | |
| 552 | PORT_DIPNAME( 0xc0, 0x80, "Fuel units" ) PORT_DIPLOCATION("P8:7,8") | |
| 593 | 553 | PORT_DIPSETTING ( 0x00, "450" ) |
| 594 | 554 | PORT_DIPSETTING ( 0x40, "600" ) |
| 595 | 555 | PORT_DIPSETTING ( 0x80, "750" ) |
| 596 | 556 | PORT_DIPSETTING ( 0xc0, "900" ) |
| 597 | ||
| 598 | /* The next one is a potentiometer */ | |
| 599 | /* see llander paddle notes */ | |
| 600 | PORT_START_TAG("IN3") | |
| 601 | PORT_BIT( 0xff, 0x00, IPT_PADDLE ) PORT_MINMAX(0,254) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_CODE_DEC(KEYCODE_UP) PORT_CODE_DEC(JOYCODE_Y_UP_SWITCH) PORT_CODE_INC(KEYCODE_DOWN) PORT_CODE_INC(JOYCODE_Y_DOWN_SWITCH) PORT_REVERSE | |
| 602 | 557 | INPUT_PORTS_END |
| 603 | 558 | |
| 604 | 559 | |
| r1711 | r1712 | |
| 630 | 585 | MDRV_CPU_PROGRAM_MAP(asteroid_map,0) |
| 631 | 586 | MDRV_CPU_PERIODIC_INT(asteroid_interrupt, (double)MASTER_CLOCK/4096/12) |
| 632 | 587 | |
| 633 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 634 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 635 | ||
| 636 | 588 | MDRV_MACHINE_RESET(asteroid) |
| 637 | 589 | |
| 638 | 590 | /* video hardware */ |
| 639 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_VECTOR ) | |
| 640 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) | |
| 591 | MDRV_SCREEN_ADD("main", VECTOR) | |
| 592 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 641 | 593 | MDRV_SCREEN_SIZE(400,300) |
| 642 | 594 | MDRV_SCREEN_VISIBLE_AREA(522, 1566, 394, 1182) |
| 595 | ||
| 643 | 596 | MDRV_PALETTE_LENGTH(32768) |
| 644 | 597 | |
| 645 | 598 | MDRV_VIDEO_START(dvg) |
| r1711 | r1712 | |
| 690 | 643 | MDRV_CPU_PROGRAM_MAP(llander_map,0) |
| 691 | 644 | MDRV_CPU_PERIODIC_INT(llander_interrupt, (double)MASTER_CLOCK/4096/12) |
| 692 | 645 | |
| 693 | MDRV_SCREEN_REFRESH_RATE(40) | |
| 694 | 646 | MDRV_MACHINE_RESET(avgdvg) |
| 695 | 647 | |
| 648 | MDRV_SCREEN_MODIFY("main") | |
| 649 | MDRV_SCREEN_REFRESH_RATE(40) | |
| 696 | 650 | MDRV_SCREEN_VISIBLE_AREA(522, 1566, 270, 1070) |
| 697 | 651 | MDRV_VIDEO_START(dvg) |
| 698 | 652 | MDRV_VIDEO_UPDATE(vector) |
| r1711 | r1712 | |
| 935 | 889 | * |
| 936 | 890 | *************************************/ |
| 937 | 891 | |
| 938 | GAME( 1979, asteroid, 0, asteroid, asteroid, 0, ROT0, "Atari", "Asteroids (rev 2)", 0 ) | |
| 939 | GAME( 1979, asteroi1, asteroid, asteroid, asteroid, 0, ROT0, "Atari", "Asteroids (rev 1)", 0 ) | |
| 940 | GAME( 1979, asteroib, asteroid, asteroid, asteroib, asteroib, ROT0, "bootleg", "Asteroids (bootleg on Lunar Lander hardware)", 0 ) | |
| 941 | GAME( 1979, asterock, asteroid, asterock, asterock, asterock, ROT0, "Sidam", "Asterock", 0 ) | |
| 942 | GAME( 1979, meteorts, asteroid, asteroid, asteroid, 0, ROT0, "VGG", "Meteorites", 0 ) | |
| 943 | GAME( 1980, meteorho, asteroid, asteroid, asteroid, 0, ROT0, "Hoei", "Meteor", 0 ) | |
| 944 | GAMEL(1980, astdelux, 0, astdelux, astdelux, 0, ROT0, "Atari", "Asteroids Deluxe (rev 3)", 0, layout_ho88ffff ) | |
| 945 | GAMEL(1980, astdelu2, astdelux, astdelux, astdelux, 0, ROT0, "Atari", "Asteroids Deluxe (rev 2)", 0, layout_ho88ffff ) | |
| 946 | GAMEL(1980, astdelu1, astdelux, astdelux, astdelux, 0, ROT0, "Atari", "Asteroids Deluxe (rev 1)", 0, layout_ho88ffff ) | |
| 947 | GAME( 1979, llander, 0, llander, llander, 0, ROT0, "Atari", "Lunar Lander (rev 2)", 0 ) | |
| 948 | GAME( 1979, llander1, llander, llander, llander1, 0, ROT0, "Atari", "Lunar Lander (rev 1)", 0 ) | |
| 892 | GAME( 1979, asteroid, 0, asteroid, asteroid, 0, ROT0, "Atari", "Asteroids (rev 2)", 0 ) | |
| 893 | GAME( 1979, asteroi1, asteroid, asteroid, asteroid, 0, ROT0, "Atari", "Asteroids (rev 1)", 0 ) | |
| 894 | GAME( 1979, asteroib, asteroid, asteroid, asteroib, asteroib, ROT0, "bootleg", "Asteroids (bootleg on Lunar Lander hardware)", 0 ) | |
| 895 | GAME( 1979, asterock, asteroid, asterock, asterock, asterock, ROT0, "Sidam", "Asterock", 0 ) | |
| 896 | GAME( 1979, meteorts, asteroid, asteroid, asteroid, 0, ROT0, "VGG", "Meteorites", 0 ) | |
| 897 | GAME( 1980, meteorho, asteroid, asteroid, asteroid, 0, ROT0, "Hoei", "Meteor", 0 ) | |
| 898 | GAMEL(1980, astdelux, 0, astdelux, astdelux, 0, ROT0, "Atari", "Asteroids Deluxe (rev 3)", 0, layout_ho88ffff ) | |
| 899 | GAMEL(1980, astdelu2, astdelux, astdelux, astdelux, 0, ROT0, "Atari", "Asteroids Deluxe (rev 2)", 0, layout_ho88ffff ) | |
| 900 | GAMEL(1980, astdelu1, astdelux, astdelux, astdelux, 0, ROT0, "Atari", "Asteroids Deluxe (rev 1)", 0, layout_ho88ffff ) | |
| 901 | GAME( 1979, llander, 0, llander, llander, 0, ROT0, "Atari", "Lunar Lander (rev 2)", 0 ) | |
| 902 | GAME( 1979, llander1, llander, llander, llander1, 0, ROT0, "Atari", "Lunar Lander (rev 1)", 0 ) |
| r1711 | r1712 | |
|---|---|---|
| 415 | 415 | MDRV_CPU_PROGRAM_MAP(powerbal_main_map, 0) |
| 416 | 416 | MDRV_CPU_VBLANK_INT(irq2_line_hold,1) |
| 417 | 417 | |
| 418 | /* video hardware */ | |
| 419 | MDRV_SCREEN_ADD("main", RASTER) | |
| 418 | 420 | MDRV_SCREEN_REFRESH_RATE(61) |
| 419 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 420 | ||
| 421 | /* video hardware */ | |
| 422 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 421 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 423 | 422 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 424 | 423 | MDRV_SCREEN_SIZE(128*8, 64*8) |
| 425 | 424 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 30*8-1) |
| 425 | ||
| 426 | 426 | MDRV_GFXDECODE(powerbal) |
| 427 | 427 | MDRV_PALETTE_LENGTH(512) |
| 428 | 428 | |
| r1711 | r1712 | |
| 443 | 443 | MDRV_CPU_PROGRAM_MAP(magicstk_main_map, 0) |
| 444 | 444 | MDRV_CPU_VBLANK_INT(irq2_line_hold,1) |
| 445 | 445 | |
| 446 | MDRV_SCREEN_REFRESH_RATE(61) | |
| 447 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 448 | ||
| 449 | 446 | MDRV_NVRAM_HANDLER(magicstk) |
| 450 | 447 | |
| 451 | 448 | /* video hardware */ |
| 452 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 449 | MDRV_SCREEN_ADD("main", RASTER) | |
| 450 | MDRV_SCREEN_REFRESH_RATE(61) | |
| 451 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 453 | 452 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 454 | 453 | MDRV_SCREEN_SIZE(128*8, 64*8) |
| 455 | 454 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 30*8-1) |
| 455 | ||
| 456 | 456 | MDRV_GFXDECODE(powerbal) |
| 457 | 457 | MDRV_PALETTE_LENGTH(512) |
| 458 | 458 |
| r1711 | r1712 | |
|---|---|---|
| 2746 | 2746 | MDRV_CPU_ADD(M68000, MASTER_CLOCK_352/5) //11.46 MHz |
| 2747 | 2747 | MDRV_CPU_PROGRAM_MAP(sound_mem, 0) |
| 2748 | 2748 | |
| 2749 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2750 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(192)) // guess, needed to force video update after V-Blank OUT interrupt | |
| 2751 | ||
| 2752 | 2749 | MDRV_MACHINE_START(stv) |
| 2753 | 2750 | MDRV_MACHINE_RESET(stv) |
| 2754 | 2751 | MDRV_NVRAM_HANDLER(stv) /* Actually 93c45 */ |
| 2755 | 2752 | |
| 2756 | 2753 | /* video hardware */ |
| 2757 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_AFTER_VBLANK ) | |
| 2754 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_AFTER_VBLANK ) | |
| 2755 | ||
| 2756 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2757 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2758 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(192)) // guess, needed to force video update after V-Blank OUT interrupt | |
| 2758 | 2759 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) |
| 2759 | 2760 | MDRV_SCREEN_SIZE(1024, 1024) |
| 2760 | 2761 | MDRV_SCREEN_VISIBLE_AREA(0*8, 703, 0*8, 512) // we need to use a resolution as high as the max size it can change to |
| 2762 | ||
| 2761 | 2763 | MDRV_PALETTE_LENGTH(2048+(2048*2))//standard palette + extra memory for rgb brightness. |
| 2762 | 2764 | MDRV_GFXDECODE(stv) |
| 2763 | 2765 |
| r1711 | r1712 | |
|---|---|---|
| 653 | 653 | |
| 654 | 654 | MDRV_DEFAULT_LAYOUT(layout_dualhovu) |
| 655 | 655 | |
| 656 | MDRV_SCREEN_ADD("menu", | |
| 656 | MDRV_SCREEN_ADD("menu", RASTER) | |
| 657 | 657 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) |
| 658 | 658 | MDRV_SCREEN_REFRESH_RATE(60) |
| 659 | 659 | MDRV_SCREEN_SIZE(342,262) |
| r1711 | r1712 | |
|---|---|---|
| 270 | 270 | MDRV_CPU_IO_MAP(readport_sound,writeport_sound) |
| 271 | 271 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) /* ? */ |
| 272 | 272 | |
| 273 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 274 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 275 | 273 | MDRV_INTERLEAVE(50) |
| 276 | 274 | |
| 277 | 275 | MDRV_MACHINE_START(timelimt) |
| 278 | 276 | MDRV_MACHINE_RESET(timelimt) |
| 279 | 277 | |
| 280 | 278 | /* video hardware */ |
| 281 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 279 | MDRV_SCREEN_ADD("main", RASTER) | |
| 280 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 281 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 282 | 282 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 283 | 283 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 284 | 284 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 285 | ||
| 285 | 286 | MDRV_GFXDECODE(timelimt) |
| 286 | 287 | MDRV_PALETTE_LENGTH(64) |
| 287 | 288 |
| r1711 | r1712 | |
|---|---|---|
| 192 | 192 | { |
| 193 | 193 | int i; |
| 194 | 194 | |
| 195 | for (i = 0;i < 32;i++) | |
| 195 | /* allocate the colortable */ | |
| 196 | machine->colortable = colortable_alloc(machine, 0x20); | |
| 197 | ||
| 198 | /* create a lookup table for the palette */ | |
| 199 | for (i = 0; i < 0x20; i++) | |
| 196 | 200 | { |
| 197 | int bit0,bit1,bit2,r,g,b; | |
| 201 | int bit0, bit1, bit2; | |
| 202 | int r, g, b; | |
| 198 | 203 | |
| 199 | ||
| 200 | 204 | /* red component */ |
| 201 | bit0 = (*color_prom >> 0) & 0x01; | |
| 202 | bit1 = (*color_prom >> 1) & 0x01; | |
| 203 | bit2 = (*color_prom >> 2) & 0x01; | |
| 205 | bit0 = (color_prom[i] >> 0) & 0x01; | |
| 206 | bit1 = (color_prom[i] >> 1) & 0x01; | |
| 207 | bit2 = (color_prom[i] >> 2) & 0x01; | |
| 204 | 208 | r = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 209 | ||
| 205 | 210 | /* green component */ |
| 206 | bit0 = (*color_prom >> 3) & 0x01; | |
| 207 | bit1 = (*color_prom >> 4) & 0x01; | |
| 208 | bit2 = (*color_prom >> 5) & 0x01; | |
| 211 | bit0 = (color_prom[i] >> 3) & 0x01; | |
| 212 | bit1 = (color_prom[i] >> 4) & 0x01; | |
| 213 | bit2 = (color_prom[i] >> 5) & 0x01; | |
| 209 | 214 | g = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 215 | ||
| 210 | 216 | /* blue component */ |
| 211 | 217 | bit0 = 0; |
| 212 | bit1 = (*color_prom >> 6) & 0x01; | |
| 213 | bit2 = (*color_prom >> 7) & 0x01; | |
| 218 | bit1 = (color_prom[i] >> 6) & 0x01; | |
| 219 | bit2 = (color_prom[i] >> 7) & 0x01; | |
| 214 | 220 | b = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 215 | 221 | |
| 216 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); | |
| 217 | color_prom++; | |
| 222 | colortable_palette_set_color(machine->colortable, i, MAKE_RGB(r, g, b)); | |
| 218 | 223 | } |
| 219 | 224 | |
| 220 | 225 | /* color_prom now points to the beginning of the lookup table */ |
| 226 | color_prom += 0x20; | |
| 221 | 227 | |
| 222 | /* Colortable entry */ | |
| 223 | for(i = 0; i < 0x100; i++) | |
| 224 | colortable[i] = color_prom[i]; | |
| 228 | /* characters map to the upper 16 palette entries */ | |
| 229 | for (i = 0; i < 0x100; i++) | |
| 230 | { | |
| 231 | UINT8 ctabentry = color_prom[i] & 0x1f; | |
| 232 | colortable_entry_set_value(machine->colortable, i, ctabentry); | |
| 233 | } | |
| 225 | 234 | } |
| 226 | 235 | |
| 227 | 236 | static MACHINE_DRIVER_START( talbot ) |
| r1711 | r1712 | |
| 235 | 244 | MDRV_CPU_ADD(ALPHA8201, 18432000/6/8) |
| 236 | 245 | MDRV_CPU_PROGRAM_MAP(mcu_map,0) |
| 237 | 246 | |
| 247 | /* video hardware */ | |
| 248 | MDRV_SCREEN_ADD("main", RASTER) | |
| 238 | 249 | MDRV_SCREEN_REFRESH_RATE(60) |
| 239 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 240 | ||
| 241 | /* video hardware */ | |
| 242 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 250 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 243 | 251 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 244 | 252 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 245 | 253 | MDRV_SCREEN_VISIBLE_AREA(0, 32*8-1, 2*8, 30*8-1) |
| 254 | ||
| 246 | 255 | MDRV_GFXDECODE(talbot) |
| 247 | MDRV_PALETTE_LENGTH(32) | |
| 248 | MDRV_COLORTABLE_LENGTH(0x100) | |
| 256 | MDRV_PALETTE_LENGTH(0x100) | |
| 249 | 257 | |
| 250 | 258 | MDRV_PALETTE_INIT(talbot) |
| 251 | 259 | MDRV_VIDEO_START(talbot) |
| r1711 | r1712 | |
|---|---|---|
| 498 | 498 | MDRV_MACHINE_RESET( taito_dualscreen ) |
| 499 | 499 | |
| 500 | 500 | /* video hardware */ |
| 501 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 502 | 501 | MDRV_GFXDECODE(warriorb) |
| 503 | 502 | MDRV_PALETTE_LENGTH(4096*2) |
| 504 | 503 | MDRV_DEFAULT_LAYOUT(layout_dualhsxs) |
| 505 | 504 | |
| 506 | MDRV_SCREEN_ADD("left", | |
| 505 | MDRV_SCREEN_ADD("left", RASTER) | |
| 507 | 506 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 508 | 507 | MDRV_SCREEN_REFRESH_RATE(60) |
| 509 | MDRV_SCREEN_VBLANK_TIME( | |
| 508 | MDRV_SCREEN_VBLANK_TIME( | |
| 510 | 509 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 511 | 510 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 3*8, 32*8-1) |
| 512 | 511 | |
| 513 | MDRV_SCREEN_ADD("right", | |
| 512 | MDRV_SCREEN_ADD("right", RASTER) | |
| 514 | 513 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 515 | 514 | MDRV_SCREEN_REFRESH_RATE(60) |
| 516 | MDRV_SCREEN_VBLANK_TIME( | |
| 515 | MDRV_SCREEN_VBLANK_TIME( | |
| 517 | 516 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 518 | 517 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 3*8, 32*8-1) |
| 519 | 518 | |
| r1711 | r1712 | |
| 558 | 557 | MDRV_MACHINE_RESET( taito_dualscreen ) |
| 559 | 558 | |
| 560 | 559 | /* video hardware */ |
| 561 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 562 | 560 | MDRV_GFXDECODE(warriorb) |
| 563 | 561 | MDRV_PALETTE_LENGTH(4096*2) |
| 564 | 562 | MDRV_DEFAULT_LAYOUT(layout_dualhsxs) |
| 565 | 563 | |
| 566 | MDRV_SCREEN_ADD("left", | |
| 564 | MDRV_SCREEN_ADD("left", RASTER) | |
| 567 | 565 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 568 | 566 | MDRV_SCREEN_REFRESH_RATE(60) |
| 569 | MDRV_SCREEN_VBLANK_TIME( | |
| 567 | MDRV_SCREEN_VBLANK_TIME( | |
| 570 | 568 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 571 | 569 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 32*8-1) |
| 572 | 570 | |
| 573 | MDRV_SCREEN_ADD("right", | |
| 571 | MDRV_SCREEN_ADD("right", RASTER) | |
| 574 | 572 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 575 | 573 | MDRV_SCREEN_REFRESH_RATE(60) |
| 576 | MDRV_SCREEN_VBLANK_TIME( | |
| 574 | MDRV_SCREEN_VBLANK_TIME( | |
| 577 | 575 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 578 | 576 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 32*8-1) |
| 579 | 577 |
| r1711 | r1712 | |
|---|---|---|
| 2359 | 2359 | static MACHINE_DRIVER_START( igs_base ) |
| 2360 | 2360 | MDRV_CPU_ADD_TAG("main",M68000, 22000000/3) |
| 2361 | 2361 | |
| 2362 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2363 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 2364 | ||
| 2365 | 2362 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 2366 | 2363 | |
| 2367 | 2364 | // MDRV_GFXDECODE(igs_blit) |
| 2368 | 2365 | |
| 2369 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2366 | ||
| 2367 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2368 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2369 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2370 | 2370 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2371 | 2371 | MDRV_SCREEN_SIZE(512, 256) |
| 2372 | 2372 | MDRV_SCREEN_VISIBLE_AREA(0, 512-1, 0, 240-1) |
| 2373 | ||
| 2373 | 2374 | MDRV_PALETTE_LENGTH(0x800) |
| 2374 | 2375 | |
| 2375 | 2376 | MDRV_VIDEO_START( igs ) |
| r1711 | r1712 | |
|---|---|---|
| 321 | 321 | MDRV_CPU_PROGRAM_MAP(sound_cpu,0) |
| 322 | 322 | /* IRQs are triggered by the main CPU */ |
| 323 | 323 | |
| 324 | /* video hardware */ | |
| 325 | MDRV_SCREEN_ADD("main", RASTER) | |
| 324 | 326 | MDRV_SCREEN_REFRESH_RATE(60) |
| 325 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 326 | ||
| 327 | /* video hardware */ | |
| 328 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 327 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 329 | 328 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 330 | 329 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 331 | 330 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) // black border at bottom is a game bug... |
| 331 | ||
| 332 | 332 | MDRV_GFXDECODE(goal92) |
| 333 | 333 | MDRV_PALETTE_LENGTH(128*16) |
| 334 | 334 |
| r1711 | r1712 | |
|---|---|---|
| 335 | 335 | MDRV_CPU_PROGRAM_MAP(champbwl_map,0) |
| 336 | 336 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 337 | 337 | |
| 338 | MDRV_SCREEN_REFRESH_RATE(57.5) | |
| 339 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 340 | ||
| 341 | 338 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 342 | 339 | |
| 343 | 340 | /* video hardware */ |
| 344 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 341 | MDRV_SCREEN_ADD("main", RASTER) | |
| 342 | MDRV_SCREEN_REFRESH_RATE(57.5) | |
| 343 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 345 | 344 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 346 | 345 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 347 | 346 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 1*8, 31*8-1) |
| 347 | ||
| 348 | 348 | MDRV_GFXDECODE(champbwl) |
| 349 | 349 | MDRV_PALETTE_LENGTH(512) |
| 350 | 350 |
| r1711 | r1712 | |
|---|---|---|
| 270 | 270 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 271 | 271 | MDRV_CPU_VBLANK_INT(bishi_interrupt, 2) |
| 272 | 272 | |
| 273 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 274 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(1200)) | |
| 275 | ||
| 276 | 273 | MDRV_MACHINE_START(bishi) |
| 277 | 274 | MDRV_MACHINE_RESET(bishi) |
| 278 | 275 | |
| 279 | 276 | /* video hardware */ |
| 280 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS | VIDEO_UPDATE_AFTER_VBLANK) | |
| 277 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS | VIDEO_UPDATE_AFTER_VBLANK) | |
| 278 | ||
| 279 | MDRV_SCREEN_ADD("main", RASTER) | |
| 280 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 281 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(1200)) | |
| 281 | 282 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 282 | 283 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 283 | 284 | MDRV_SCREEN_VISIBLE_AREA(29, 29+288-1, 16, 16+224-1) |
| r1711 | r1712 | |
|---|---|---|
| 429 | 429 | |
| 430 | 430 | static VIDEO_UPDATE( common ) |
| 431 | 431 | { |
| 432 | fillbitmap(bitmap, | |
| 432 | fillbitmap(bitmap, | |
| 433 | 433 | draw_sprites(machine, bitmap, screen); |
| 434 | 434 | return 0; |
| 435 | 435 | } |
| r1711 | r1712 | |
| 586 | 586 | MDRV_CPU_PROGRAM_MAP(common_map,0) |
| 587 | 587 | MDRV_CPU_VBLANK_INT(irq1_line_hold, 1) |
| 588 | 588 | |
| 589 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 590 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 591 | ||
| 592 | 589 | MDRV_NVRAM_HANDLER(93C46_vamphalf) |
| 593 | 590 | |
| 594 | 591 | /* video hardware */ |
| 595 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 592 | MDRV_SCREEN_ADD("main", RASTER) | |
| 593 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 594 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 596 | 595 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 597 | 596 | MDRV_SCREEN_SIZE(512, 512) |
| 598 | 597 | MDRV_SCREEN_VISIBLE_AREA(31, 350, 16, 255) |
| r1711 | r1712 | |
|---|---|---|
| 275 | 275 | MDRV_CPU_VBLANK_INT(irq0_line_hold,4) |
| 276 | 276 | |
| 277 | 277 | /* video hardware */ |
| 278 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 279 | 278 | MDRV_GFXDECODE(1942) |
| 280 | 279 | MDRV_PALETTE_LENGTH(64*4+4*32*8+16*16) |
| 281 | 280 | |
| 282 | MDRV_SCREEN_ADD("main", | |
| 281 | MDRV_SCREEN_ADD("main", RASTER) | |
| 283 | 282 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 284 | 283 | MDRV_SCREEN_REFRESH_RATE(60) |
| 285 | MDRV_SCREEN_VBLANK_TIME( | |
| 284 | MDRV_SCREEN_VBLANK_TIME( | |
| 286 | 285 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 287 | 286 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 288 | 287 |
| r1711 | r1712 | |
|---|---|---|
| 275 | 275 | MDRV_CPU_IO_MAP(readport,writeport) |
| 276 | 276 | MDRV_CPU_VBLANK_INT(mayumi_interrupt,1) |
| 277 | 277 | |
| 278 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 279 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 280 | 278 | MDRV_MACHINE_RESET( mayumi ) |
| 281 | 279 | |
| 282 | 280 | /* video hardware */ |
| 283 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 281 | MDRV_SCREEN_ADD("main", RASTER) | |
| 282 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 283 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 284 | 284 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 285 | 285 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 286 | 286 | MDRV_SCREEN_VISIBLE_AREA(2*8, 62*8-1, 2*8, 30*8-1) |
| 287 | ||
| 287 | 288 | MDRV_GFXDECODE(mayumi) |
| 288 | 289 | MDRV_PALETTE_LENGTH(256) |
| 289 | 290 |
| r1711 | r1712 | |
|---|---|---|
| 218 | 218 | MDRV_CPU_PROGRAM_MAP(poolshrk_cpu_map, 0) |
| 219 | 219 | MDRV_CPU_VBLANK_INT(irq0_line_assert, 1) |
| 220 | 220 | |
| 221 | /* video hardware */ | |
| 222 | MDRV_SCREEN_ADD("main", RASTER) | |
| 221 | 223 | MDRV_SCREEN_REFRESH_RATE(60) |
| 222 | ||
| 223 | /* video hardware */ | |
| 224 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 225 | 224 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 226 | 225 | MDRV_SCREEN_SIZE(256, 256) |
| 227 | 226 | MDRV_SCREEN_VISIBLE_AREA(1, 255, 24, 255) |
| 227 | ||
| 228 | 228 | MDRV_GFXDECODE(poolshrk) |
| 229 | 229 | MDRV_PALETTE_LENGTH(4) |
| 230 | 230 | MDRV_PALETTE_INIT(poolshrk) |
| r1711 | r1712 | |
|---|---|---|
| 532 | 532 | |
| 533 | 533 | SEIBU_SOUND_SYSTEM_CPU(XTAL_7_15909MHz/2) /* verified on pcb */ |
| 534 | 534 | |
| 535 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 536 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 537 | ||
| 538 | 535 | MDRV_MACHINE_RESET(seibu_sound_1) |
| 539 | 536 | |
| 540 | 537 | // video hardware |
| 541 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 538 | ||
| 539 | MDRV_SCREEN_ADD("main", RASTER) | |
| 540 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 541 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 542 | 542 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 543 | 543 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 544 | 544 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 545 | ||
| 545 | 546 | MDRV_GFXDECODE(bloodbro) |
| 546 | 547 | MDRV_PALETTE_LENGTH(2048) |
| 547 | 548 |
| r1711 | r1712 | |
|---|---|---|
| 244 | 244 | |
| 245 | 245 | SEIBU_SOUND_SYSTEM_CPU(XTAL_14_31818MHz/4) /* verified on pcb */ |
| 246 | 246 | |
| 247 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 248 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 249 | 247 | MDRV_INTERLEAVE(200) |
| 250 | 248 | |
| 251 | 249 | MDRV_MACHINE_RESET(seibu_sound_2) |
| 252 | 250 | |
| 253 | 251 | /* video hardware */ |
| 254 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 252 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 253 | ||
| 254 | MDRV_SCREEN_ADD("main", RASTER) | |
| 255 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 256 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 255 | 257 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 256 | 258 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 257 | 259 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 260 | ||
| 258 | 261 | MDRV_GFXDECODE(raiden) |
| 259 | 262 | MDRV_PALETTE_LENGTH(2048) |
| 260 | 263 | |
| r1711 | r1712 | |
| 280 | 283 | |
| 281 | 284 | SEIBU_SOUND_SYSTEM_CPU(XTAL_14_31818MHz/4) /* verified on pcb */ |
| 282 | 285 | |
| 283 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 284 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 285 | 286 | MDRV_INTERLEAVE(120) |
| 286 | 287 | |
| 287 | 288 | MDRV_MACHINE_RESET(seibu_sound_2) |
| 288 | 289 | |
| 289 | 290 | /* video hardware */ |
| 290 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 291 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 292 | ||
| 293 | MDRV_SCREEN_ADD("main", RASTER) | |
| 294 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 295 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 291 | 296 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 292 | 297 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 293 | 298 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 299 | ||
| 294 | 300 | MDRV_GFXDECODE(raiden) |
| 295 | 301 | MDRV_PALETTE_LENGTH(2048) |
| 296 | 302 |
| r1711 | r1712 | |
|---|---|---|
| 457 | 457 | MDRV_CPU_PROGRAM_MAP(main_map_r1,0) |
| 458 | 458 | MDRV_CPU_VBLANK_INT(amiga_scanline_callback, 262) |
| 459 | 459 | |
| 460 | MDRV_SCREEN_REFRESH_RATE(59.97) | |
| 461 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 462 | ||
| 463 | 460 | MDRV_MACHINE_START(alg) |
| 464 | 461 | MDRV_MACHINE_RESET(alg) |
| 465 | 462 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 466 | 463 | |
| 467 | 464 | /* video hardware */ |
| 468 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_SELF_RENDER) | |
| 465 | MDRV_VIDEO_ATTRIBUTES(VIDEO_SELF_RENDER) | |
| 466 | ||
| 467 | MDRV_SCREEN_ADD("main", RASTER) | |
| 468 | MDRV_SCREEN_REFRESH_RATE(59.97) | |
| 469 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 469 | 470 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 470 | 471 | MDRV_SCREEN_SIZE(512*2, 262) |
| 471 | 472 | MDRV_SCREEN_VISIBLE_AREA((129-8)*2, (449+8-1)*2, 44-8, 244+8-1) |
| r1711 | r1712 | |
| 508 | 509 | MDRV_CPU_PROGRAM_MAP(main_map_picmatic,0) |
| 509 | 510 | MDRV_CPU_VBLANK_INT(amiga_scanline_callback, 312) |
| 510 | 511 | |
| 512 | MDRV_SCREEN_MODIFY("main") | |
| 511 | 513 | MDRV_SCREEN_REFRESH_RATE(50) |
| 512 | ||
| 513 | 514 | MDRV_SCREEN_SIZE(512*2, 312) |
| 514 | 515 | MDRV_SCREEN_VISIBLE_AREA((129-8)*2, (449+8-1)*2, 44-8, 300+8-1) |
| 515 | 516 | MACHINE_DRIVER_END |
| r1711 | r1712 | |
|---|---|---|
| 35 | 35 | { |
| 36 | 36 | int x,y, count; |
| 37 | 37 | |
| 38 | fillbitmap(bitmap, | |
| 38 | fillbitmap(bitmap, | |
| 39 | 39 | count = 0; |
| 40 | 40 | |
| 41 | 41 | for (y=0;y<256/8;y++) |
| r1711 | r1712 | |
| 149 | 149 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 150 | 150 | // MDRV_CPU_VBLANK_INT(nmi_line_pulse,1) |
| 151 | 151 | |
| 152 | /* video hardware */ | |
| 153 | MDRV_SCREEN_ADD("main", RASTER) | |
| 152 | 154 | MDRV_SCREEN_REFRESH_RATE(60) |
| 153 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 154 | ||
| 155 | /* video hardware */ | |
| 156 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 155 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 157 | 156 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 158 | 157 | MDRV_SCREEN_SIZE(256, 256) |
| 159 | 158 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0, 256-1) |
| 159 | ||
| 160 | 160 | MDRV_GFXDECODE(galaxia) |
| 161 | 161 | MDRV_PALETTE_LENGTH(0x100) |
| 162 | 162 |
| r1711 | r1712 | |
|---|---|---|
| 142 | 142 | for (x=0;x < 320/4;x++) |
| 143 | 143 | { |
| 144 | 144 | color = vega_vram[count + (0x14000/4) * (vega_vbuffer ^ 1)] & 0xff; |
| 145 | *BITMAP_ADDR16(bitmap, y, x*4 + 3) = | |
| 145 | *BITMAP_ADDR16(bitmap, y, x*4 + 3) = | |
| 146 | 146 | |
| 147 | 147 | color = (vega_vram[count + (0x14000/4) * (vega_vbuffer ^ 1)] & 0xff00) >> 8; |
| 148 | *BITMAP_ADDR16(bitmap, y, x*4 + 2) = | |
| 148 | *BITMAP_ADDR16(bitmap, y, x*4 + 2) = | |
| 149 | 149 | |
| 150 | 150 | color = (vega_vram[count + (0x14000/4) * (vega_vbuffer ^ 1)] & 0xff0000) >> 16; |
| 151 | *BITMAP_ADDR16(bitmap, y, x*4 + 1) = | |
| 151 | *BITMAP_ADDR16(bitmap, y, x*4 + 1) = | |
| 152 | 152 | |
| 153 | 153 | color = (vega_vram[count + (0x14000/4) * (vega_vbuffer ^ 1)] & 0xff000000) >> 24; |
| 154 | *BITMAP_ADDR16(bitmap, y, x*4 + 0) = | |
| 154 | *BITMAP_ADDR16(bitmap, y, x*4 + 0) = | |
| 155 | 155 | |
| 156 | 156 | count++; |
| 157 | 157 | } |
| r1711 | r1712 | |
| 167 | 167 | |
| 168 | 168 | /* sound cpu */ |
| 169 | 169 | |
| 170 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 171 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 172 | ||
| 173 | 170 | MDRV_NVRAM_HANDLER(at28c16_0) |
| 174 | 171 | |
| 175 | 172 | /* video hardware */ |
| 176 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 173 | MDRV_SCREEN_ADD("main", RASTER) | |
| 174 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 175 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 177 | 176 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 178 | 177 | MDRV_SCREEN_SIZE(512, 512) |
| 179 | 178 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 239) |
| 179 | ||
| 180 | 180 | MDRV_PALETTE_LENGTH(256) |
| 181 | 181 | |
| 182 | 182 | MDRV_VIDEO_START(vega) |
| r1711 | r1712 | |
|---|---|---|
| 721 | 721 | MDRV_NVRAM_HANDLER(93C46) |
| 722 | 722 | |
| 723 | 723 | /* video hardware */ |
| 724 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 725 | 724 | MDRV_GFXDECODE(fromanc2) |
| 726 | 725 | MDRV_PALETTE_LENGTH(4096) |
| 727 | 726 | MDRV_DEFAULT_LAYOUT(layout_dualhsxs) |
| 728 | 727 | |
| 729 | MDRV_SCREEN_ADD("left", | |
| 728 | MDRV_SCREEN_ADD("left", RASTER) | |
| 730 | 729 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 731 | 730 | MDRV_SCREEN_REFRESH_RATE(60) |
| 732 | MDRV_SCREEN_VBLANK_TIME( | |
| 731 | MDRV_SCREEN_VBLANK_TIME( | |
| 733 | 732 | MDRV_SCREEN_SIZE(512, 512) |
| 734 | 733 | MDRV_SCREEN_VISIBLE_AREA(0, 352-1, 0, 240-1) |
| 735 | 734 | |
| 736 | MDRV_SCREEN_ADD("right", | |
| 735 | MDRV_SCREEN_ADD("right", RASTER) | |
| 737 | 736 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 738 | 737 | MDRV_SCREEN_REFRESH_RATE(60) |
| 739 | MDRV_SCREEN_VBLANK_TIME( | |
| 738 | MDRV_SCREEN_VBLANK_TIME( | |
| 740 | 739 | MDRV_SCREEN_SIZE(512, 512) |
| 741 | 740 | MDRV_SCREEN_VISIBLE_AREA(0, 352-1, 0, 240-1) |
| 742 | 741 | |
| r1711 | r1712 | |
| 774 | 773 | MDRV_NVRAM_HANDLER(93C46) |
| 775 | 774 | |
| 776 | 775 | /* video hardware */ |
| 777 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 778 | 776 | MDRV_GFXDECODE(fromancr) |
| 779 | 777 | MDRV_PALETTE_LENGTH(4096) |
| 780 | 778 | MDRV_DEFAULT_LAYOUT(layout_dualhsxs) |
| 781 | 779 | |
| 782 | MDRV_SCREEN_ADD("left", | |
| 780 | MDRV_SCREEN_ADD("left", RASTER) | |
| 783 | 781 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 784 | 782 | MDRV_SCREEN_REFRESH_RATE(60) |
| 785 | MDRV_SCREEN_VBLANK_TIME( | |
| 783 | MDRV_SCREEN_VBLANK_TIME( | |
| 786 | 784 | MDRV_SCREEN_SIZE(512, 512) |
| 787 | 785 | MDRV_SCREEN_VISIBLE_AREA(0, 352-1, 0, 240-1) |
| 788 | 786 | |
| 789 | MDRV_SCREEN_ADD("right", | |
| 787 | MDRV_SCREEN_ADD("right", RASTER) | |
| 790 | 788 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 791 | 789 | MDRV_SCREEN_REFRESH_RATE(60) |
| 792 | MDRV_SCREEN_VBLANK_TIME( | |
| 790 | MDRV_SCREEN_VBLANK_TIME( | |
| 793 | 791 | MDRV_SCREEN_SIZE(512, 512) |
| 794 | 792 | MDRV_SCREEN_VISIBLE_AREA(0, 352-1, 0, 240-1) |
| 795 | 793 | |
| r1711 | r1712 | |
| 823 | 821 | MDRV_NVRAM_HANDLER(93C46) |
| 824 | 822 | |
| 825 | 823 | /* video hardware */ |
| 826 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 827 | 824 | MDRV_GFXDECODE(fromancr) |
| 828 | 825 | MDRV_PALETTE_LENGTH(4096) |
| 829 | 826 | |
| 830 | 827 | MDRV_DEFAULT_LAYOUT(layout_dualhsxs) |
| 831 | 828 | |
| 832 | MDRV_SCREEN_ADD("left", | |
| 829 | MDRV_SCREEN_ADD("left", RASTER) | |
| 833 | 830 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 834 | 831 | MDRV_SCREEN_REFRESH_RATE(60) |
| 835 | MDRV_SCREEN_VBLANK_TIME( | |
| 832 | MDRV_SCREEN_VBLANK_TIME( | |
| 836 | 833 | MDRV_SCREEN_SIZE(2048, 256) |
| 837 | 834 | MDRV_SCREEN_VISIBLE_AREA(0, 352-1, 0, 240-1) |
| 838 | 835 | |
| 839 | MDRV_SCREEN_ADD("right", | |
| 836 | MDRV_SCREEN_ADD("right", RASTER) | |
| 840 | 837 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 841 | 838 | MDRV_SCREEN_REFRESH_RATE(60) |
| 842 | MDRV_SCREEN_VBLANK_TIME( | |
| 839 | MDRV_SCREEN_VBLANK_TIME( | |
| 843 | 840 | MDRV_SCREEN_SIZE(512, 512) |
| 844 | 841 | MDRV_SCREEN_VISIBLE_AREA(0, 352-1, 0, 240-1) |
| 845 | 842 |
| r1711 | r1712 | |
|---|---|---|
| 343 | 343 | |
| 344 | 344 | MDRV_MACHINE_START(bombjack) |
| 345 | 345 | |
| 346 | /* video hardware */ | |
| 347 | MDRV_SCREEN_ADD("main", RASTER) | |
| 346 | 348 | MDRV_SCREEN_REFRESH_RATE(60) |
| 347 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 348 | ||
| 349 | /* video hardware */ | |
| 350 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 349 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 351 | 350 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 352 | 351 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 353 | 352 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 353 | ||
| 354 | 354 | MDRV_GFXDECODE(bombjack) |
| 355 | 355 | MDRV_PALETTE_LENGTH(128) |
| 356 | 356 |
| r1711 | r1712 | |
|---|---|---|
| 440 | 440 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 441 | 441 | |
| 442 | 442 | /* video hardware */ |
| 443 | MDRV_ | |
| 443 | MDRV_SC | |
| 444 | 444 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 445 | 445 | MDRV_SCREEN_RAW_PARAMS(BALSENTE_PIXEL_CLOCK, BALSENTE_HTOTAL, BALSENTE_HBEND, BALSENTE_HBSTART, BALSENTE_VTOTAL, BALSENTE_VBEND, BALSENTE_VBSTART) |
| 446 | ||
| 446 | 447 | MDRV_PALETTE_LENGTH(2048) |
| 447 | 448 | |
| 448 | 449 | MDRV_PALETTE_INIT(gridlee) |
| r1711 | r1712 | |
|---|---|---|
| 842 | 842 | MDRV_CPU_IO_MAP(0,writeport) |
| 843 | 843 | MDRV_CPU_VBLANK_INT(irq0_line_assert,1) |
| 844 | 844 | |
| 845 | /* video hardware */ | |
| 846 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 847 | ||
| 848 | MDRV_SCREEN_ADD("main", RASTER) | |
| 845 | 849 | MDRV_SCREEN_REFRESH_RATE(60.606060) |
| 846 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 847 | ||
| 848 | /* video hardware */ | |
| 849 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS) | |
| 850 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 850 | 851 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 851 | 852 | MDRV_SCREEN_SIZE(36*8, 32*8) |
| 852 | 853 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 2*8, 30*8-1) |
| 854 | ||
| 853 | 855 | MDRV_GFXDECODE(rallyx) |
| 854 | 856 | MDRV_PALETTE_LENGTH(64*4+4) |
| 855 | 857 | |
| r1711 | r1712 | |
| 877 | 879 | MDRV_CPU_PROGRAM_MAP(jungler_map,0) |
| 878 | 880 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,1) |
| 879 | 881 | |
| 882 | /* video hardware */ | |
| 883 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 884 | ||
| 885 | MDRV_SCREEN_ADD("main", RASTER) | |
| 880 | 886 | MDRV_SCREEN_REFRESH_RATE(60) |
| 881 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION /* frames per second, vblank duration */) | |
| 882 | ||
| 883 | /* video hardware */ | |
| 884 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS) | |
| 887 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0) /* frames per second, vblank duration */) | |
| 885 | 888 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 886 | 889 | MDRV_SCREEN_SIZE(36*8, 32*8) |
| 887 | 890 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 2*8, 30*8-1) |
| 891 | ||
| 888 | 892 | MDRV_GFXDECODE(jungler) |
| 889 | 893 | MDRV_PALETTE_LENGTH(64*4+4+64) |
| 890 | 894 | |
| r1711 | r1712 | |
| 914 | 918 | MDRV_IMPORT_FROM(jungler) |
| 915 | 919 | |
| 916 | 920 | /* video hardware */ |
| 921 | MDRV_SCREEN_MODIFY("main") | |
| 917 | 922 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 918 | 923 | MDRV_VIDEO_START(locomotn) |
| 919 | 924 | MDRV_VIDEO_UPDATE(locomotn) |
| r1711 | r1712 | |
| 926 | 931 | MDRV_IMPORT_FROM(jungler) |
| 927 | 932 | |
| 928 | 933 | /* video hardware */ |
| 934 | MDRV_SCREEN_MODIFY("main") | |
| 929 | 935 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 930 | 936 | MDRV_VIDEO_START(commsega) |
| 931 | 937 | MDRV_VIDEO_UPDATE(locomotn) |
| r1711 | r1712 | |
|---|---|---|
| 36 | 36 | #include "sound/dac.h" |
| 37 | 37 | |
| 38 | 38 | /* from video */ |
| 39 | extern WRITE8_HANDLER( trucocl_videoram_w ); | |
| 40 | extern WRITE8_HANDLER( trucocl_colorram_w ); | |
| 41 | extern PALETTE_INIT( trucocl ); | |
| 42 | extern VIDEO_START( trucocl ); | |
| 43 | extern VIDEO_UPDATE( trucocl ); | |
| 39 | WRITE8_HANDLER( trucocl_videoram_w ); | |
| 40 | WRITE8_HANDLER( trucocl_colorram_w ); | |
| 41 | PALETTE_INIT( trucocl ); | |
| 42 | VIDEO_START( trucocl ); | |
| 43 | VIDEO_UPDATE( trucocl ); | |
| 44 | 44 | |
| 45 | 45 | |
| 46 | 46 | static WRITE8_HANDLER( irq_enable_w) |
| r1711 | r1712 | |
| 147 | 147 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 148 | 148 | MDRV_CPU_VBLANK_INT(trucocl_interrupt,1) |
| 149 | 149 | |
| 150 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 151 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 152 | ||
| 153 | 150 | /* video hardware */ |
| 154 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 151 | MDRV_SCREEN_ADD("main", RASTER) | |
| 152 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 153 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 155 | 154 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 156 | 155 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 157 | 156 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 32*8-1) |
| 157 | ||
| 158 | 158 | MDRV_GFXDECODE(trucocl) |
| 159 | 159 | MDRV_PALETTE_LENGTH(32) |
| 160 | MDRV_COLORTABLE_LENGTH(32) | |
| 161 | 160 | |
| 162 | 161 | MDRV_PALETTE_INIT(trucocl) |
| 163 | 162 | MDRV_VIDEO_START(trucocl) |
| r1711 | r1712 | |
|---|---|---|
| 43 | 43 | MDRV_CPU_PROGRAM_MAP(igs_m68_map,0) |
| 44 | 44 | //MDRV_CPU_VBLANK_INT(irq1_line_hold,1) |
| 45 | 45 | |
| 46 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 47 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 48 | ||
| 49 | 46 | //MDRV_GFXDECODE(igs_m68) |
| 50 | 47 | |
| 51 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 48 | ||
| 49 | MDRV_SCREEN_ADD("main", RASTER) | |
| 50 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 51 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 52 | 52 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 53 | 53 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 54 | 54 | MDRV_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 0*8, 32*8-1) |
| 55 | ||
| 55 | 56 | MDRV_PALETTE_LENGTH(0x200) |
| 56 | 57 | |
| 57 | 58 | MDRV_VIDEO_START(igs_m68) |
| r1711 | r1712 | |
|---|---|---|
| 496 | 496 | |
| 497 | 497 | if (screen==0) |
| 498 | 498 | { |
| 499 | fillbitmap(bitmap, | |
| 499 | fillbitmap(bitmap, | |
| 500 | 500 | |
| 501 | 501 | |
| 502 | 502 | tilemap_set_scrollx(ms32_bg_tilemap[0], 0, ms32_bg0_scroll[0x00/4] + ms32_bg0_scroll[0x08/4] + 0x10 ); |
| r1711 | r1712 | |
| 514 | 514 | } |
| 515 | 515 | else |
| 516 | 516 | { |
| 517 | fillbitmap(bitmap, | |
| 517 | fillbitmap(bitmap, | |
| 518 | 518 | |
| 519 | 519 | |
| 520 | 520 | tilemap_set_scrollx(ms32_bg_tilemap[1], 0, ms32_bg1_scroll[0x00/4] + ms32_bg1_scroll[0x08/4] + 0x10 ); |
| r1711 | r1712 | |
| 1348 | 1348 | |
| 1349 | 1349 | MDRV_MACHINE_RESET(ms32) |
| 1350 | 1350 | |
| 1351 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1352 | 1351 | MDRV_GFXDECODE(bnstars) |
| 1353 | 1352 | MDRV_PALETTE_LENGTH(0x8000*2) |
| 1354 | 1353 | |
| 1355 | 1354 | MDRV_DEFAULT_LAYOUT(layout_dualhsxs) |
| 1356 | 1355 | |
| 1357 | MDRV_SCREEN_ADD("left", | |
| 1356 | MDRV_SCREEN_ADD("left", RASTER) | |
| 1358 | 1357 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1359 | 1358 | MDRV_SCREEN_REFRESH_RATE(60) |
| 1360 | MDRV_SCREEN_VBLANK_TIME( | |
| 1359 | MDRV_SCREEN_VBLANK_TIME( | |
| 1361 | 1360 | MDRV_SCREEN_SIZE(40*8, 28*8) |
| 1362 | 1361 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 28*8-1) |
| 1363 | 1362 | |
| 1364 | MDRV_SCREEN_ADD("right", | |
| 1363 | MDRV_SCREEN_ADD("right", RASTER) | |
| 1365 | 1364 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1366 | 1365 | MDRV_SCREEN_REFRESH_RATE(60) |
| 1367 | MDRV_SCREEN_VBLANK_TIME( | |
| 1366 | MDRV_SCREEN_VBLANK_TIME( | |
| 1368 | 1367 | MDRV_SCREEN_SIZE(40*8, 28*8) |
| 1369 | 1368 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 28*8-1) |
| 1370 | 1369 |
| r1711 | r1712 | |
|---|---|---|
| 679 | 679 | MDRV_CPU_PROGRAM_MAP(readmem_burglarx,writemem_burglarx) |
| 680 | 680 | MDRV_CPU_VBLANK_INT(irq2_line_hold,1) |
| 681 | 681 | |
| 682 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 683 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 684 | ||
| 685 | 682 | MDRV_MACHINE_RESET(unico) |
| 686 | 683 | |
| 687 | 684 | /* video hardware */ |
| 688 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 685 | MDRV_SCREEN_ADD("main", RASTER) | |
| 686 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 687 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 689 | 688 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 690 | 689 | MDRV_SCREEN_SIZE(0x180, 0xe0) |
| 691 | 690 | MDRV_SCREEN_VISIBLE_AREA(0, 0x180-1, 0, 0xe0-1) |
| 691 | ||
| 692 | 692 | MDRV_GFXDECODE(unico) |
| 693 | 693 | MDRV_PALETTE_LENGTH(8192) |
| 694 | 694 | |
| r1711 | r1712 | |
| 726 | 726 | MDRV_CPU_PROGRAM_MAP(readmem_zeropnt,writemem_zeropnt) |
| 727 | 727 | MDRV_CPU_VBLANK_INT(irq2_line_hold,1) |
| 728 | 728 | |
| 729 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 730 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 731 | ||
| 732 | 729 | MDRV_MACHINE_RESET(zeropt) |
| 733 | 730 | |
| 734 | 731 | /* video hardware */ |
| 735 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 732 | MDRV_SCREEN_ADD("main", RASTER) | |
| 733 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 734 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 736 | 735 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 737 | 736 | MDRV_SCREEN_SIZE(0x180, 0xe0) |
| 738 | 737 | MDRV_SCREEN_VISIBLE_AREA(0, 0x180-1, 0, 0xe0-1) |
| 738 | ||
| 739 | 739 | MDRV_GFXDECODE(unico) |
| 740 | 740 | MDRV_PALETTE_LENGTH(8192) |
| 741 | 741 | |
| r1711 | r1712 | |
| 768 | 768 | MDRV_CPU_PROGRAM_MAP(readmem_zeropnt2,writemem_zeropnt2) |
| 769 | 769 | MDRV_CPU_VBLANK_INT(irq2_line_hold,1) |
| 770 | 770 | |
| 771 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 772 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 773 | ||
| 774 | 771 | MDRV_MACHINE_RESET(zeropt) |
| 775 | 772 | |
| 776 | 773 | MDRV_NVRAM_HANDLER(zeropnt2) |
| 777 | 774 | |
| 778 | 775 | /* video hardware */ |
| 779 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 776 | MDRV_SCREEN_ADD("main", RASTER) | |
| 777 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 778 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 780 | 779 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 781 | 780 | MDRV_SCREEN_SIZE(0x180, 0xe0) |
| 782 | 781 | MDRV_SCREEN_VISIBLE_AREA(0, 0x180-1, 0, 0xe0-1) |
| 782 | ||
| 783 | 783 | MDRV_GFXDECODE(unico) |
| 784 | 784 | MDRV_PALETTE_LENGTH(8192) |
| 785 | 785 |
| r1711 | r1712 | |
|---|---|---|
| 228 | 228 | /* audio CPU */ /* ? */ |
| 229 | 229 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 230 | 230 | |
| 231 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 232 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 233 | 231 | MDRV_MACHINE_RESET(blockhl) |
| 234 | 232 | |
| 235 | 233 | /* video hardware */ |
| 236 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS) | |
| 234 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 235 | ||
| 236 | MDRV_SCREEN_ADD("main", RASTER) | |
| 237 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 238 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 237 | 239 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 238 | 240 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 239 | 241 | MDRV_SCREEN_VISIBLE_AREA(14*8, (64-14)*8-1, 2*8, 30*8-1 ) |
| 242 | ||
| 240 | 243 | MDRV_PALETTE_LENGTH(1024) |
| 241 | 244 | |
| 242 | 245 | MDRV_VIDEO_START(blockhl) |
| r1711 | r1712 | |
|---|---|---|
| 383 | 383 | MDRV_CPU_PROGRAM_MAP(gcpinbal_readmem,gcpinbal_writemem) |
| 384 | 384 | MDRV_CPU_VBLANK_INT(gcpinbal_interrupt,1) |
| 385 | 385 | |
| 386 | /* video hardware */ | |
| 387 | MDRV_SCREEN_ADD("main", RASTER) | |
| 386 | 388 | MDRV_SCREEN_REFRESH_RATE(60) |
| 387 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION /* frames per second, vblank duration */) | |
| 388 | ||
| 389 | /* video hardware */ | |
| 390 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 389 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0) /* frames per second, vblank duration */) | |
| 391 | 390 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 392 | 391 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 393 | 392 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 30*8-1) |
| 393 | ||
| 394 | 394 | MDRV_GFXDECODE(gcpinbal) |
| 395 | 395 | MDRV_PALETTE_LENGTH(4096) |
| 396 | 396 |
| r1711 | r1712 | |
|---|---|---|
| 685 | 685 | MDRV_CPU_PROGRAM_MAP(base_mem,realbrk_mem) |
| 686 | 686 | MDRV_CPU_VBLANK_INT(realbrk_interrupt,1) |
| 687 | 687 | |
| 688 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 689 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 690 | ||
| 691 | 688 | MDRV_MACHINE_RESET( tmp68301 ) |
| 692 | 689 | |
| 693 | 690 | /* video hardware */ |
| 694 | MDRV_SCREEN_ADD("main", 0) | |
| 695 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 691 | MDRV_SCREEN_ADD("main", RASTER) | |
| 692 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 693 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 696 | 694 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 697 | 695 | MDRV_SCREEN_SIZE(0x140, 0xe0) |
| 698 | 696 | MDRV_SCREEN_VISIBLE_AREA(0, 0x140-1, 0, 0xe0-1) |
| 697 | ||
| 699 | 698 | MDRV_GFXDECODE(realbrk) |
| 700 | 699 | MDRV_PALETTE_LENGTH(0x8000) |
| 701 | 700 |
| r1711 | r1712 | |
|---|---|---|
| 201 | 201 | /* audio CPU */ |
| 202 | 202 | MDRV_CPU_PROGRAM_MAP(snd_readmem,snd_writemem) |
| 203 | 203 | |
| 204 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 205 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 206 | ||
| 207 | 204 | MDRV_GFXDECODE(diverboy) |
| 208 | 205 | |
| 209 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 206 | ||
| 207 | MDRV_SCREEN_ADD("main", RASTER) | |
| 208 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 209 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 210 | 210 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 211 | 211 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 212 | 212 | MDRV_SCREEN_VISIBLE_AREA(0*8+4, 40*8+1, 2*8, 32*8-1) |
| 213 | ||
| 213 | 214 | MDRV_PALETTE_LENGTH(0x400) |
| 214 | 215 | |
| 215 | 216 | MDRV_VIDEO_START(diverboy) |
| r1711 | r1712 | |
|---|---|---|
| 293 | 293 | MDRV_CPU_PROGRAM_MAP(amiga_map,0) |
| 294 | 294 | MDRV_CPU_VBLANK_INT(amiga_scanline_callback, 262) |
| 295 | 295 | |
| 296 | MDRV_SCREEN_REFRESH_RATE(59.997) | |
| 297 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 298 | ||
| 299 | 296 | MDRV_MACHINE_RESET(amiga) |
| 300 | 297 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 301 | 298 | |
| 302 | 299 | /* video hardware */ |
| 303 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 300 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 301 | ||
| 302 | MDRV_SCREEN_ADD("main", RASTER) | |
| 303 | MDRV_SCREEN_REFRESH_RATE(59.997) | |
| 304 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 304 | 305 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 305 | 306 | MDRV_SCREEN_SIZE(512*2, 262) |
| 306 | 307 | MDRV_SCREEN_VISIBLE_AREA((129-8)*2, (449+8-1)*2, 44-8, 244+8-1) |
| r1711 | r1712 | |
|---|---|---|
| 918 | 918 | |
| 919 | 919 | MDRV_MACHINE_START(g80v) |
| 920 | 920 | MDRV_MACHINE_RESET(g80v) |
| 921 | MDRV_SCREEN_REFRESH_RATE(40) | |
| 922 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 923 | 921 | |
| 924 | 922 | /* video hardware */ |
| 925 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_VECTOR ) | |
| 926 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) | |
| 923 | MDRV_SCREEN_ADD("main", VECTOR) | |
| 924 | MDRV_SCREEN_REFRESH_RATE(40) | |
| 927 | 925 | MDRV_SCREEN_SIZE(400, 300) |
| 928 | 926 | MDRV_SCREEN_VISIBLE_AREA(512, 1536, 640-32, 1408+32) |
| 927 | ||
| 929 | 928 | MDRV_PALETTE_LENGTH(256) |
| 930 | 929 | |
| 931 | 930 | MDRV_VIDEO_START(sega) |
| r1711 | r1712 | |
|---|---|---|
| 194 | 194 | MDRV_CPU_IO_MAP(carjmbre_sound_readport,carjmbre_sound_writeport) |
| 195 | 195 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 196 | 196 | |
| 197 | /* video hardware */ | |
| 198 | MDRV_SCREEN_ADD("main", RASTER) | |
| 197 | 199 | MDRV_SCREEN_REFRESH_RATE(60) |
| 198 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 199 | ||
| 200 | /* video hardware */ | |
| 201 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 200 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 202 | 201 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 203 | 202 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 204 | 203 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 204 | ||
| 205 | 205 | MDRV_GFXDECODE(carjmbre) |
| 206 | 206 | MDRV_PALETTE_LENGTH(64) |
| 207 | 207 |
| r1711 | r1712 | |
|---|---|---|
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | /* first of all, fill the screen with the background color */ |
| 77 | fillbitmap(bitmap, | |
| 77 | fillbitmap(bitmap, | |
| 78 | 78 | |
| 79 | 79 | |
| 80 | 80 | drawgfx(bitmap,machine->gfx[1], |
| r1711 | r1712 | |
| 321 | 321 | MDRV_CPU_ADD(8080, 18000000 / 9) /* 2 MHz ? */ |
| 322 | 322 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 323 | 323 | |
| 324 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 325 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 326 | ||
| 327 | 324 | /* video hardware */ |
| 328 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 325 | MDRV_SCREEN_ADD("main", RASTER) | |
| 326 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 327 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 329 | 328 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 330 | 329 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 331 | 330 | MDRV_SCREEN_VISIBLE_AREA(4*8, 32*8-1, 2*8, 32*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 429 | 429 | MDRV_CPU_PROGRAM_MAP(varia_program_map, 0) |
| 430 | 430 | MDRV_CPU_VBLANK_INT(irq1_line_hold,1) // also level 3 |
| 431 | 431 | |
| 432 | ||
| 433 | MDRV_SCREEN_ADD("main", RASTER) | |
| 432 | 434 | MDRV_SCREEN_REFRESH_RATE(60) |
| 433 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 434 | ||
| 435 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 435 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 436 | 436 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 437 | 437 | MDRV_SCREEN_SIZE(2048, 2048) |
| 438 | 438 | MDRV_SCREEN_VISIBLE_AREA(0+64, 319+64, 0+64, 223+64) |
| 439 | ||
| 439 | 440 | MDRV_GFXDECODE(vmetal) |
| 440 | 441 | MDRV_PALETTE_LENGTH(0x4000) |
| 441 | 442 |
| r1711 | r1712 | |
|---|---|---|
| 426 | 426 | MDRV_CPU_PROGRAM_MAP(superchs_cpub_readmem,superchs_cpub_writemem) |
| 427 | 427 | MDRV_CPU_VBLANK_INT(irq4_line_hold,1)/* VBL */ |
| 428 | 428 | |
| 429 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 430 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 431 | 429 | MDRV_INTERLEAVE(8) /* CPU slices - Need to interleave Cpu's 1 & 3 */ |
| 432 | 430 | |
| 433 | 431 | MDRV_MACHINE_RESET(superchs) |
| 434 | 432 | MDRV_NVRAM_HANDLER(superchs) |
| 435 | 433 | |
| 436 | 434 | /* video hardware */ |
| 437 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 435 | MDRV_SCREEN_ADD("main", RASTER) | |
| 436 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 437 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 438 | 438 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 439 | 439 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 440 | 440 | MDRV_SCREEN_VISIBLE_AREA(0, 40*8-1, 2*8, 32*8-1) |
| 441 | ||
| 441 | 442 | MDRV_GFXDECODE(superchs) |
| 442 | 443 | MDRV_PALETTE_LENGTH(8192) |
| 443 | 444 |
| r1711 | r1712 | |
|---|---|---|
| 410 | 410 | MDRV_CPU_PROGRAM_MAP(bottom9_sound_readmem,bottom9_sound_writemem) |
| 411 | 411 | MDRV_CPU_VBLANK_INT(bottom9_sound_interrupt,8) /* irq is triggered by the main CPU */ |
| 412 | 412 | |
| 413 | /* video hardware */ | |
| 414 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 415 | ||
| 416 | MDRV_SCREEN_ADD("main", RASTER) | |
| 413 | 417 | MDRV_SCREEN_REFRESH_RATE(60) |
| 414 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 415 | ||
| 416 | /* video hardware */ | |
| 417 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS) | |
| 418 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 418 | 419 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 419 | 420 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 420 | 421 | MDRV_SCREEN_VISIBLE_AREA(14*8, (64-14)*8-1, 2*8, 30*8-1 ) |
| 422 | ||
| 421 | 423 | MDRV_PALETTE_LENGTH(1024) |
| 422 | 424 | |
| 423 | 425 | MDRV_VIDEO_START(bottom9) |
| r1711 | r1712 | |
|---|---|---|
| 247 | 247 | MDRV_CPU_PROGRAM_MAP(flower_sound_cpu,0) |
| 248 | 248 | MDRV_CPU_PERIODIC_INT(sn_irq, 90) /* periodic interrupt, don't know about the frequency */ |
| 249 | 249 | |
| 250 | /* video hardware */ | |
| 251 | MDRV_SCREEN_ADD("main", RASTER) | |
| 250 | 252 | MDRV_SCREEN_REFRESH_RATE(60) |
| 251 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 252 | ||
| 253 | /* video hardware */ | |
| 254 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 253 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 255 | 254 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 256 | 255 | MDRV_SCREEN_SIZE(34*8, 33*8) |
| 257 | 256 | MDRV_SCREEN_VISIBLE_AREA(0*8, 34*8-1, 0*8, 28*8-1) |
| 257 | ||
| 258 | 258 | MDRV_GFXDECODE(flower) |
| 259 | 259 | |
| 260 | 260 | MDRV_PALETTE_INIT(flower) |
| r1711 | r1712 | |
|---|---|---|
| 280 | 280 | /* audio CPU */ |
| 281 | 281 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 282 | 282 | |
| 283 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 284 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 285 | ||
| 286 | 283 | /* video hardware */ |
| 287 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 284 | MDRV_SCREEN_ADD("main", RASTER) | |
| 285 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 286 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 288 | 287 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 289 | 288 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 290 | 289 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 30*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 450 | 450 | MDRV_CPU_PROGRAM_MAP(dreamwld_map, 0) |
| 451 | 451 | MDRV_CPU_VBLANK_INT(irq4_line_hold,1) // 4, 5, or 6, all point to the same place |
| 452 | 452 | |
| 453 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 454 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 455 | ||
| 456 | 453 | /* video hardware */ |
| 457 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 454 | MDRV_SCREEN_ADD("main", RASTER) | |
| 455 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 456 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 458 | 457 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 459 | 458 | MDRV_SCREEN_SIZE(512,256) |
| 460 | 459 | MDRV_SCREEN_VISIBLE_AREA(0, 304-1, 0, 224-1) |
| r1711 | r1712 | |
|---|---|---|
| 492 | 492 | |
| 493 | 493 | MDRV_MACHINE_START(xsleena) |
| 494 | 494 | |
| 495 | MDRV_SCREEN_REFRESH_RATE(57) | |
| 496 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 497 | 495 | MDRV_INTERLEAVE(100) |
| 498 | 496 | |
| 499 | 497 | /* video hardware */ |
| 500 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 498 | MDRV_SCREEN_ADD("main", RASTER) | |
| 499 | MDRV_SCREEN_REFRESH_RATE(57) | |
| 500 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 501 | 501 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 502 | 502 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 503 | 503 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 504 | ||
| 504 | 505 | MDRV_GFXDECODE(xain) |
| 505 | 506 | MDRV_PALETTE_LENGTH(512) |
| 506 | 507 |
| r1711 | r1712 | |
|---|---|---|
| 467 | 467 | MDRV_CPU_IO_MAP(main_portmap,0) |
| 468 | 468 | MDRV_CPU_VBLANK_INT(yamyam_interrupt,4) /* ? */ |
| 469 | 469 | |
| 470 | /* video hardware */ | |
| 471 | MDRV_SCREEN_ADD("main", RASTER) | |
| 470 | 472 | MDRV_SCREEN_REFRESH_RATE(60) |
| 471 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 472 | ||
| 473 | /* video hardware */ | |
| 474 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 473 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 475 | 474 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 476 | 475 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 477 | 476 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 477 | ||
| 478 | 478 | MDRV_GFXDECODE(gundealr) |
| 479 | 479 | MDRV_PALETTE_LENGTH(512) |
| 480 | 480 |
| r1711 | r1712 | |
|---|---|---|
| 180 | 180 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 181 | 181 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 182 | 182 | |
| 183 | /* video hardware */ | |
| 184 | MDRV_SCREEN_ADD("main", RASTER) | |
| 183 | 185 | MDRV_SCREEN_REFRESH_RATE(5000000.0/312/262) |
| 184 | 186 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(4368)) |
| 185 | ||
| 186 | /* video hardware */ | |
| 187 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 188 | 187 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 189 | 188 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 190 | 189 | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 4*8, 28*8-1) |
| 190 | ||
| 191 | 191 | MDRV_GFXDECODE(mrdo) |
| 192 | MDRV_PALETTE_LENGTH(256) | |
| 193 | MDRV_COLORTABLE_LENGTH(64*4+16*4) | |
| 192 | MDRV_PALETTE_LENGTH(64*4+16*4) | |
| 194 | 193 | |
| 195 | 194 | MDRV_PALETTE_INIT(mrdo) |
| 196 | 195 | MDRV_VIDEO_START(mrdo) |
| r1711 | r1712 | |
|---|---|---|
| 1013 | 1013 | MDRV_CPU_IO_MAP(mcu_port_map, 0) |
| 1014 | 1014 | MDRV_CPU_VBLANK_INT(irq0_line_assert,1) |
| 1015 | 1015 | |
| 1016 | MDRV_SCREEN_REFRESH_RATE(60.606060) | |
| 1017 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1018 | 1016 | // heavy sync required to prevent CPUs from fighting for video RAM access and going into deadlocks |
| 1019 | 1017 | MDRV_INTERLEAVE(640) |
| 1020 | 1018 | |
| r1711 | r1712 | |
| 1022 | 1020 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 1023 | 1021 | |
| 1024 | 1022 | /* video hardware */ |
| 1025 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS) | |
| 1023 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 1024 | ||
| 1025 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1026 | MDRV_SCREEN_REFRESH_RATE(60.606060) | |
| 1027 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1026 | 1028 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1027 | 1029 | MDRV_SCREEN_SIZE(64*8, 64*8) |
| 1028 | 1030 | MDRV_SCREEN_VISIBLE_AREA(9 + 8*8, 9 + 44*8-1, 2*8, 30*8-1) |
| 1031 | ||
| 1029 | 1032 | MDRV_GFXDECODE(namcos1) |
| 1030 | 1033 | MDRV_PALETTE_LENGTH(0x2000) |
| 1031 | 1034 |
| r1711 | r1712 | |
|---|---|---|
| 716 | 716 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 717 | 717 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,8) /* ??? */ |
| 718 | 718 | |
| 719 | /* video hardware */ | |
| 720 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 721 | ||
| 722 | MDRV_SCREEN_ADD("main", RASTER) | |
| 719 | 723 | MDRV_SCREEN_REFRESH_RATE(60) |
| 720 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 721 | ||
| 722 | /* video hardware */ | |
| 723 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS) | |
| 724 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 724 | 725 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 725 | 726 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 726 | 727 | MDRV_SCREEN_VISIBLE_AREA(14*8, (64-14)*8-1, 2*8, 30*8-1 ) |
| 728 | ||
| 727 | 729 | MDRV_PALETTE_LENGTH(256) |
| 728 | 730 | |
| 729 | 731 | MDRV_VIDEO_START(mainevt) |
| r1711 | r1712 | |
| 755 | 757 | MDRV_CPU_PROGRAM_MAP(dv_sound_readmem,dv_sound_writemem) |
| 756 | 758 | MDRV_CPU_VBLANK_INT(irq0_line_hold,4) |
| 757 | 759 | |
| 760 | /* video hardware */ | |
| 761 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 762 | ||
| 763 | MDRV_SCREEN_ADD("main", RASTER) | |
| 758 | 764 | MDRV_SCREEN_REFRESH_RATE(60) |
| 759 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 760 | ||
| 761 | /* video hardware */ | |
| 762 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS) | |
| 765 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 763 | 766 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 764 | 767 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 765 | 768 | MDRV_SCREEN_VISIBLE_AREA(13*8, (64-13)*8-1, 2*8, 30*8-1 ) |
| 769 | ||
| 766 | 770 | MDRV_PALETTE_LENGTH(256) |
| 767 | 771 | |
| 768 | 772 | MDRV_VIDEO_START(dv) |
| r1711 | r1712 | |
|---|---|---|
| 1310 | 1310 | MDRV_CPU_IO_MAP(kungfum_readport,kungfum_writeport) |
| 1311 | 1311 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 1312 | 1312 | |
| 1313 | /* video hardware */ | |
| 1314 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1313 | 1315 | MDRV_SCREEN_REFRESH_RATE(55) |
| 1314 | 1316 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(1790) /* frames per second and vblank duration from the Lode Runner manual */) |
| 1315 | ||
| 1316 | /* video hardware */ | |
| 1317 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1318 | 1317 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1319 | 1318 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 1320 | 1319 | MDRV_SCREEN_VISIBLE_AREA((64*8-384)/2, 64*8-(64*8-384)/2-1, 0*8, 32*8-1) |
| 1320 | ||
| 1321 | 1321 | MDRV_GFXDECODE(ldrun) |
| 1322 | 1322 | MDRV_PALETTE_LENGTH(512) |
| 1323 | 1323 | |
| r1711 | r1712 | |
| 1339 | 1339 | MDRV_CPU_IO_MAP(kungfum_readport,kungfum_writeport) |
| 1340 | 1340 | |
| 1341 | 1341 | /* video hardware */ |
| 1342 | MDRV_SCREEN_MODIFY("main") | |
| 1342 | 1343 | MDRV_SCREEN_VISIBLE_AREA((64*8-256)/2, 64*8-(64*8-256)/2-1, 0*8, 32*8-1) |
| 1343 | 1344 | |
| 1344 | 1345 | MDRV_VIDEO_START(kungfum) |
| r1711 | r1712 | |
| 1355 | 1356 | MDRV_CPU_IO_MAP(kungfum_readport,battroad_writeport) |
| 1356 | 1357 | |
| 1357 | 1358 | /* video hardware */ |
| 1359 | MDRV_SCREEN_MODIFY("main") | |
| 1358 | 1360 | MDRV_SCREEN_VISIBLE_AREA((64*8-256)/2, 64*8-(64*8-256)/2-1, 0*8, 32*8-1) |
| 1359 | 1361 | MDRV_GFXDECODE(battroad) |
| 1360 | 1362 | MDRV_PALETTE_LENGTH(544) |
| r1711 | r1712 | |
| 1376 | 1378 | MDRV_VIDEO_START(ldrun2) |
| 1377 | 1379 | MDRV_VIDEO_UPDATE(ldrun) |
| 1378 | 1380 | |
| 1381 | MDRV_SCREEN_MODIFY("main") | |
| 1379 | 1382 | MDRV_SCREEN_VISIBLE_AREA((64*8-384)/2, 64*8-(64*8-384)/2-1, 0*8, 31*8-1) |
| 1380 | 1383 | MACHINE_DRIVER_END |
| 1381 | 1384 | |
| r1711 | r1712 | |
| 1391 | 1394 | /* video hardware */ |
| 1392 | 1395 | MDRV_GFXDECODE(ldrun3) |
| 1393 | 1396 | |
| 1397 | MDRV_SCREEN_MODIFY("main") | |
| 1394 | 1398 | MDRV_SCREEN_VISIBLE_AREA((64*8-384)/2, 64*8-(64*8-384)/2-1, 0*8, 31*8-1) |
| 1395 | 1399 | MACHINE_DRIVER_END |
| 1396 | 1400 | |
| r1711 | r1712 | |
| 1484 | 1488 | MDRV_CPU_IO_MAP(kungfum_readport,youjyudn_writeport) |
| 1485 | 1489 | |
| 1486 | 1490 | /* video hardware */ |
| 1491 | MDRV_SCREEN_MODIFY("main") | |
| 1487 | 1492 | MDRV_SCREEN_VISIBLE_AREA((64*8-256)/2, 64*8-(64*8-256)/2-1, 0*8, 32*8-1) |
| 1488 | 1493 | MDRV_GFXDECODE(youjyudn) |
| 1489 | 1494 | |
| r1711 | r1712 | |
| 1500 | 1505 | MDRV_CPU_PROGRAM_MAP(horizon_readmem,horizon_writemem) |
| 1501 | 1506 | |
| 1502 | 1507 | /* video hardware */ |
| 1508 | MDRV_SCREEN_MODIFY("main") | |
| 1503 | 1509 | MDRV_SCREEN_VISIBLE_AREA((64*8-256)/2, 64*8-(64*8-256)/2-1, 0*8, 32*8-1) |
| 1504 | 1510 | |
| 1505 | 1511 | MDRV_VIDEO_START(horizon) |
| r1711 | r1712 | |
|---|---|---|
| 1250 | 1250 | MDRV_MACHINE_START(astrocde) |
| 1251 | 1251 | |
| 1252 | 1252 | /* video hardware */ |
| 1253 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1254 | 1253 | MDRV_PALETTE_LENGTH(512) |
| 1255 | 1254 | |
| 1256 | MDRV_SCREEN_ADD("main", | |
| 1255 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1257 | 1256 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1258 | 1257 | MDRV_SCREEN_RAW_PARAMS(ASTROCADE_CLOCK, 455, 0, 352, 262, 0, 240) |
| 1259 | 1258 | MDRV_SCREEN_DEFAULT_POSITION(1.1, 0.0, 1.18, -0.018) /* clip out borders */ |
| r1711 | r1712 | |
|---|---|---|
| 313 | 313 | MDRV_CPU_PROGRAM_MAP(i8039_readmem,i8039_writemem) |
| 314 | 314 | MDRV_CPU_IO_MAP(i8039_readport,i8039_writeport) |
| 315 | 315 | |
| 316 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 317 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 318 | 316 | MDRV_INTERLEAVE(15) |
| 319 | 317 | |
| 320 | 318 | /* video hardware */ |
| 321 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 319 | MDRV_SCREEN_ADD("main", RASTER) | |
| 320 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 321 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 322 | 322 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 323 | 323 | MDRV_SCREEN_SIZE(36*8, 32*8) |
| 324 | 324 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 2*8, 30*8-1) |
| 325 | ||
| 325 | 326 | MDRV_GFXDECODE(megazone) |
| 326 | 327 | MDRV_PALETTE_LENGTH(16*16+16*16) |
| 327 | 328 |
| r1711 | r1712 | |
|---|---|---|
| 428 | 428 | MDRV_CPU_PROGRAM_MAP(hvysmsh_map,0) |
| 429 | 429 | MDRV_CPU_VBLANK_INT(deco32_vbl_interrupt,1) |
| 430 | 430 | |
| 431 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 432 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529)) | |
| 433 | 431 | MDRV_NVRAM_HANDLER(93C46) |
| 434 | 432 | |
| 435 | 433 | /* video hardware */ |
| 436 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM ) | |
| 434 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM ) | |
| 435 | ||
| 436 | MDRV_SCREEN_ADD("main", RASTER) | |
| 437 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 438 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529)) | |
| 437 | 439 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 438 | 440 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 439 | 441 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 442 | ||
| 440 | 443 | MDRV_GFXDECODE(hvysmsh) |
| 441 | 444 | MDRV_PALETTE_LENGTH(1024) |
| 442 | 445 | |
| r1711 | r1712 | |
| 464 | 467 | MDRV_CPU_PROGRAM_MAP(wcvol95_map,0) |
| 465 | 468 | MDRV_CPU_VBLANK_INT(deco32_vbl_interrupt,1) |
| 466 | 469 | |
| 467 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 468 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529)) | |
| 469 | 470 | MDRV_NVRAM_HANDLER(93C46) |
| 470 | 471 | |
| 471 | 472 | /* video hardware */ |
| 472 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM ) | |
| 473 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM ) | |
| 474 | ||
| 475 | MDRV_SCREEN_ADD("main", RASTER) | |
| 476 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 477 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529)) | |
| 473 | 478 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 474 | 479 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 475 | 480 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 481 | ||
| 476 | 482 | MDRV_GFXDECODE(hvysmsh) |
| 477 | 483 | MDRV_PALETTE_LENGTH(1024) |
| 478 | 484 |
| r1711 | r1712 | |
|---|---|---|
| 281 | 281 | MDRV_CPU_IO_MAP(pass_sound_readport,pass_sound_writeport) |
| 282 | 282 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 283 | 283 | |
| 284 | /* video hardware */ | |
| 285 | MDRV_SCREEN_ADD("main", RASTER) | |
| 284 | 286 | MDRV_SCREEN_REFRESH_RATE(60) |
| 285 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 286 | ||
| 287 | /* video hardware */ | |
| 288 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 287 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 289 | 288 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 290 | 289 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 291 | 290 | MDRV_SCREEN_VISIBLE_AREA(8*8, 48*8-1, 2*8, 30*8-1) |
| 291 | ||
| 292 | 292 | MDRV_PALETTE_LENGTH(0x200) |
| 293 | 293 | MDRV_GFXDECODE(pass) |
| 294 | 294 |
| r1711 | r1712 | |
|---|---|---|
| 442 | 442 | |
| 443 | 443 | SEIBU_SOUND_SYSTEM_CPU(XTAL_14_31818MHz/4) /* verifed on pcb */ |
| 444 | 444 | |
| 445 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 446 | 445 | MDRV_MACHINE_RESET(seibu_sound_1) |
| 447 | 446 | |
| 448 | 447 | /* video hardware */ |
| 449 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 448 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 449 | ||
| 450 | MDRV_SCREEN_ADD("main", RASTER) | |
| 451 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 450 | 452 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 451 | 453 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 452 | 454 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) /* verified */ |
| 455 | ||
| 453 | 456 | MDRV_GFXDECODE(toki) |
| 454 | 457 | MDRV_PALETTE_LENGTH(1024) |
| 455 | 458 | |
| r1711 | r1712 | |
| 473 | 476 | /* audio CPU */ |
| 474 | 477 | MDRV_CPU_PROGRAM_MAP(tokib_audio_map,0) |
| 475 | 478 | |
| 479 | /* video hardware */ | |
| 480 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 481 | ||
| 482 | MDRV_SCREEN_ADD("main", RASTER) | |
| 476 | 483 | MDRV_SCREEN_REFRESH_RATE(60) |
| 477 | ||
| 478 | /* video hardware */ | |
| 479 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 480 | 484 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 481 | 485 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 482 | 486 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) /* verified */ |
| 487 | ||
| 483 | 488 | MDRV_GFXDECODE(tokib) |
| 484 | 489 | MDRV_PALETTE_LENGTH(1024) |
| 485 | 490 |
| r1711 | r1712 | |
|---|---|---|
| 691 | 691 | MDRV_CPU_IO_MAP(io_map, 0) |
| 692 | 692 | |
| 693 | 693 | MDRV_CPU_VBLANK_INT(dwarfd_interrupt,NUM_LINES+4) //16 +vblank + 1 unused |
| 694 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 695 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 696 | 694 | |
| 697 | 695 | /* video hardware */ |
| 698 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 696 | MDRV_SCREEN_ADD("main", RASTER) | |
| 697 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 698 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 699 | 699 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 700 | 700 | MDRV_SCREEN_SIZE(272*2, 200) |
| 701 | 701 | MDRV_SCREEN_VISIBLE_AREA(0, 272*2-1, 0, 200-1) |
| 702 | ||
| 702 | 703 | MDRV_GFXDECODE(dwarfd) |
| 703 | 704 | MDRV_PALETTE_LENGTH(0x100) |
| 704 | 705 | MDRV_PALETTE_INIT(dwarfd) |
| r1711 | r1712 | |
|---|---|---|
| 1108 | 1108 | MDRV_CPU_ADD(M68705,18432000/6) /* OK */ |
| 1109 | 1109 | MDRV_CPU_PROGRAM_MAP(mcu_map,0) |
| 1110 | 1110 | |
| 1111 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1112 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 1113 | 1111 | MDRV_INTERLEAVE(100) /* high interleave to ensure proper synchronization of CPUs */ |
| 1114 | 1112 | MDRV_MACHINE_RESET(ta7630) /* init machine */ |
| 1115 | 1113 | |
| 1116 | 1114 | /* video hardware */ |
| 1117 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1115 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1116 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1117 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 1118 | 1118 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1119 | 1119 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 1120 | 1120 | MDRV_SCREEN_VISIBLE_AREA(128,128+255, 2*8, 30*8-1) |
| r1711 | r1712 | |
| 1155 | 1155 | // MDRV_CPU_ADD(M68705,18432000/6) |
| 1156 | 1156 | // MDRV_CPU_PROGRAM_MAP(mcu_map,0) |
| 1157 | 1157 | |
| 1158 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1159 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 1160 | 1158 | MDRV_MACHINE_RESET(ta7630) /* init machine */ |
| 1161 | 1159 | |
| 1162 | 1160 | /* video hardware */ |
| 1163 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1161 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1162 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1163 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 1164 | 1164 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1165 | 1165 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 1166 | 1166 | MDRV_SCREEN_VISIBLE_AREA(128,128+255, 2*8, 30*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 348 | 348 | MDRV_CPU_PROGRAM_MAP(mcu_map,0) |
| 349 | 349 | MDRV_CPU_IO_MAP(mcu_io_map,0) |
| 350 | 350 | |
| 351 | MDRV_SCREEN_REFRESH_RATE(30) | |
| 352 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_30HZ_VBLANK_DURATION) | |
| 353 | ||
| 354 | 351 | /* video hardware */ |
| 355 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 352 | MDRV_SCREEN_ADD("main", RASTER) | |
| 353 | MDRV_SCREEN_REFRESH_RATE(30) | |
| 354 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 356 | 355 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 357 | 356 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 358 | 357 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) /* not sure about the visible area */ |
| r1711 | r1712 | |
|---|---|---|
| 794 | 794 | /* audio CPU */ |
| 795 | 795 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 796 | 796 | /* IRQs are caused by the main CPU */ |
| 797 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 798 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION*2) | |
| 799 | 797 | MDRV_MACHINE_START(renegade) |
| 800 | 798 | MDRV_MACHINE_RESET(renegade) |
| 801 | 799 | |
| 802 | 800 | /* video hardware */ |
| 803 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 804 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 805 | MDRV_SCREEN_SIZE(32*8, 32*8) | |
| 806 | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 0, 30*8-1) | |
| 807 | MDRV_GFXDECODE(renegade) | |
| 808 | MDRV_PALETTE_LENGTH(256) | |
| 801 | MDRV_SCREEN_ADD("main", RASTER) | |
| 802 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 803 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */*2) | |
| 804 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 805 | MDRV_SCREEN_SIZE(32*8, 32*8) | |
| 806 | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 0, 30*8-1) | |
| 809 | 807 | |
| 810 | MDRV_VIDEO_START(renegade) | |
| 811 | MDRV_VIDEO_UPDATE(renegade) | |
| 808 | MDRV_GFXDECODE(renegade) | |
| 809 | MDRV_PALETTE_LENGTH(256) | |
| 812 | 810 | |
| 813 | /* sound hardware */ | |
| 811 | MDRV_VIDEO_START(renegade) | |
| 812 | MDRV_VIDEO_UPDATE(renegade) | |
| 813 | ||
| 814 | /* sound hardware */ | |
| 814 | 815 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 815 | 816 | |
| 816 | 817 | MDRV_SOUND_ADD(YM3526, 12000000/4) |
| r1711 | r1712 | |
|---|---|---|
| 274 | 274 | |
| 275 | 275 | /* video hardware */ |
| 276 | 276 | MDRV_IMPORT_FROM(tms9928a) |
| 277 | MDRV_SCREEN_MODIFY("main") | |
| 277 | 278 | MDRV_SCREEN_REFRESH_RATE(60) |
| 278 | 279 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 279 | MDRV_SCREEN_VBLANK_TIME( | |
| 280 | MDRV_SCREEN_VBLANK_TIME( | |
| 280 | 281 | |
| 281 | 282 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 282 | 283 |
| r1711 | r1712 | |
|---|---|---|
| 1647 | 1647 | MDRV_CPU_IO_MAP(namco_54xx_map_io,0) |
| 1648 | 1648 | |
| 1649 | 1649 | MDRV_WATCHDOG_VBLANK_INIT(8) |
| 1650 | MDRV_SCREEN_REFRESH_RATE(60.606060) | |
| 1651 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1652 | 1650 | MDRV_INTERLEAVE(100) /* 100 CPU slices per frame - an high value to ensure proper */ |
| 1653 | 1651 | /* synchronization of the CPUs */ |
| 1654 | 1652 | MDRV_MACHINE_RESET(bosco) |
| 1655 | 1653 | |
| 1656 | 1654 | /* video hardware */ |
| 1657 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1655 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1656 | MDRV_SCREEN_REFRESH_RATE(60.606060) | |
| 1657 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1658 | 1658 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1659 | 1659 | MDRV_SCREEN_SIZE(36*8, 32*8) |
| 1660 | 1660 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 2*8, 30*8-1) |
| 1661 | ||
| 1661 | 1662 | MDRV_GFXDECODE(bosco) |
| 1662 | 1663 | MDRV_PALETTE_LENGTH(64*4+64*4+4+64) |
| 1663 | 1664 | |
| r1711 | r1712 | |
| 1705 | 1706 | MDRV_CPU_IO_MAP(namco_54xx_map_io,0) |
| 1706 | 1707 | |
| 1707 | 1708 | MDRV_WATCHDOG_VBLANK_INIT(8) |
| 1708 | MDRV_SCREEN_REFRESH_RATE(60.606060) | |
| 1709 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1710 | 1709 | MDRV_INTERLEAVE(100) /* 100 CPU slices per frame - an high value to ensure proper */ |
| 1711 | 1710 | /* synchronization of the CPUs */ |
| 1712 | 1711 | MDRV_MACHINE_RESET(galaga) |
| 1713 | 1712 | |
| 1714 | 1713 | /* video hardware */ |
| 1715 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1714 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1715 | MDRV_SCREEN_REFRESH_RATE(60.606060) | |
| 1716 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1716 | 1717 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1717 | 1718 | MDRV_SCREEN_SIZE(36*8, 28*8) |
| 1718 | 1719 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 0*8, 28*8-1) |
| 1720 | ||
| 1719 | 1721 | MDRV_GFXDECODE(galaga) |
| 1720 | 1722 | MDRV_PALETTE_LENGTH(64*4+64*4+64) |
| 1721 | 1723 | |
| r1711 | r1712 | |
| 1778 | 1780 | MDRV_CPU_IO_MAP(namco_54xx_map_io,0) |
| 1779 | 1781 | |
| 1780 | 1782 | MDRV_WATCHDOG_VBLANK_INIT(8) |
| 1781 | MDRV_SCREEN_REFRESH_RATE(60.606060) | |
| 1782 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1783 | 1783 | MDRV_INTERLEAVE(1000) /* 1000 CPU slices per frame - an high value to ensure proper */ |
| 1784 | 1784 | /* synchronization of the CPUs */ |
| 1785 | 1785 | MDRV_MACHINE_RESET(xevious) |
| 1786 | 1786 | |
| 1787 | 1787 | /* video hardware */ |
| 1788 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1788 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1789 | MDRV_SCREEN_REFRESH_RATE(60.606060) | |
| 1790 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1789 | 1791 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1790 | 1792 | MDRV_SCREEN_SIZE(36*8, 28*8) |
| 1791 | 1793 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 0*8, 28*8-1) |
| 1794 | ||
| 1792 | 1795 | MDRV_GFXDECODE(xevious) |
| 1793 | 1796 | MDRV_PALETTE_LENGTH(128*4+64*8+64*2) |
| 1794 | 1797 | |
| r1711 | r1712 | |
| 1850 | 1853 | MDRV_CPU_PROGRAM_MAP(digdug_map,0) |
| 1851 | 1854 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,2) /* 64V */ |
| 1852 | 1855 | |
| 1853 | MDRV_SCREEN_REFRESH_RATE(60.606060) | |
| 1854 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1855 | 1856 | MDRV_INTERLEAVE(100) /* 100 CPU slices per frame - an high value to ensure proper */ |
| 1856 | 1857 | /* synchronization of the CPUs */ |
| 1857 | 1858 | MDRV_MACHINE_RESET(digdug) |
| 1858 | 1859 | MDRV_NVRAM_HANDLER(atari_vg) |
| 1859 | 1860 | |
| 1860 | 1861 | /* video hardware */ |
| 1861 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1862 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1863 | MDRV_SCREEN_REFRESH_RATE(60.606060) | |
| 1864 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1862 | 1865 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1863 | 1866 | MDRV_SCREEN_SIZE(36*8, 28*8) |
| 1864 | 1867 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 0*8, 28*8-1) |
| 1868 | ||
| 1865 | 1869 | MDRV_GFXDECODE(digdug) |
| 1866 | 1870 | MDRV_PALETTE_LENGTH(16*2+64*4+64*4) |
| 1867 | 1871 |
| r1711 | r1712 | |
|---|---|---|
| 364 | 364 | MDRV_CPU_PROGRAM_MAP(t5182_map, 0) |
| 365 | 365 | MDRV_CPU_IO_MAP(t5182_io, 0) |
| 366 | 366 | |
| 367 | MDRV_SCREEN_ADD("main", RASTER) | |
| 367 | 368 | MDRV_SCREEN_REFRESH_RATE(60) |
| 368 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 369 | ||
| 369 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 370 | 370 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 371 | 371 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 372 | 372 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 373 | ||
| 373 | 374 | MDRV_GFXDECODE(panicr) |
| 374 | 375 | MDRV_PALETTE_LENGTH(256*3) |
| 375 | 376 | MDRV_PALETTE_INIT(panicr) |
| r1711 | r1712 | |
|---|---|---|
| 260 | 260 | int i; |
| 261 | 261 | |
| 262 | 262 | /* Oddly enough, the top 4 bits of each byte is 0 */ |
| 263 | for (i = 0; i < machine-> | |
| 263 | for (i = 0; i < machine->config->total_colors; i++) | |
| 264 | 264 | { |
| 265 | 265 | int r,g,b; |
| 266 | 266 | int bit0,bit1,bit2,bit3; |
| r1711 | r1712 | |
| 348 | 348 | MDRV_MACHINE_START(istellar) |
| 349 | 349 | |
| 350 | 350 | /* video */ |
| 351 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 352 | 351 | |
| 352 | MDRV_SCREEN_ADD("main", RASTER) | |
| 353 | 353 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 354 | 354 | MDRV_SCREEN_REFRESH_RATE(60) |
| 355 | MDRV_SCREEN_VBLANK_TIME( | |
| 355 | MDRV_SCREEN_VBLANK_TIME( | |
| 356 | 356 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 357 | 357 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 32*8-1) |
| 358 | 358 |
| r1711 | r1712 | |
|---|---|---|
| 558 | 558 | static GFXDECODE_START( wwjgtin ) |
| 559 | 559 | GFXDECODE_ENTRY( REGION_GFX1, 0, lasso_charlayout, 0, 16 ) |
| 560 | 560 | GFXDECODE_ENTRY( REGION_GFX1, 0, lasso_spritelayout, 0, 16 ) |
| 561 | GFXDECODE_ENTRY( REGION_GFX2, 0, wwjgtin_tracklayout, | |
| 561 | GFXDECODE_ENTRY( REGION_GFX2, 0, wwjgtin_tracklayout, 4*16, 16 ) | |
| 562 | 562 | GFXDECODE_END |
| 563 | 563 | |
| 564 | 564 | static GFXDECODE_START( pinbo ) |
| r1711 | r1712 | |
| 577 | 577 | MDRV_CPU_ADD_TAG("audio", M6502, 600000) |
| 578 | 578 | MDRV_CPU_PROGRAM_MAP(lasso_audio_map, 0) |
| 579 | 579 | |
| 580 | MDRV_SCREEN_REFRESH_RATE(57) /* guess, but avoids glitching of Chameleon's high score table */ | |
| 581 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 582 | ||
| 583 | 580 | MDRV_CPU_VBLANK_INT(lasso_interrupt,2) /* IRQ = VBlank, NMI = Coin Insertion */ |
| 584 | 581 | MDRV_INTERLEAVE(100) |
| 585 | 582 | |
| 586 | 583 | MDRV_MACHINE_START(lasso) |
| 587 | 584 | |
| 588 | 585 | /* video hardware */ |
| 589 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 586 | MDRV_SCREEN_ADD("main", RASTER) | |
| 587 | MDRV_SCREEN_REFRESH_RATE(57) /* guess, but avoids glitching of Chameleon's high score table */ | |
| 588 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 590 | 589 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 591 | 590 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 592 | 591 | MDRV_SCREEN_VISIBLE_AREA(0, 32*8-1, 2*8, 30*8-1) |
| 592 | ||
| 593 | 593 | MDRV_GFXDECODE(lasso) |
| 594 | 594 | MDRV_PALETTE_LENGTH(0x40) |
| 595 | 595 | |
| r1711 | r1712 | |
| 641 | 641 | MDRV_CPU_PROGRAM_MAP(wwjgtin_audio_map,0) |
| 642 | 642 | |
| 643 | 643 | /* video hardware */ |
| 644 | MDRV_SCREEN_MODIFY("main") | |
| 644 | 645 | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 2*8, 30*8-1) // Smaller visible area? |
| 645 | 646 | MDRV_GFXDECODE(wwjgtin) // Has 1 additional layer |
| 646 | MDRV_PALETTE_LENGTH(0x40+1) | |
| 647 | MDRV_COLORTABLE_LENGTH(4*16 + 16*16) // Reserve 1 color for black | |
| 647 | MDRV_PALETTE_LENGTH(0x40 + 16*16) | |
| 648 | 648 | |
| 649 | 649 | MDRV_PALETTE_INIT(wwjgtin) |
| 650 | 650 | MDRV_VIDEO_START(wwjgtin) |
| r1711 | r1712 | |
|---|---|---|
| 355 | 355 | |
| 356 | 356 | MDRV_MACHINE_RESET(macs) |
| 357 | 357 | |
| 358 | ||
| 359 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 360 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 361 | ||
| 362 | 358 | /* video hardware */ |
| 363 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 359 | MDRV_SCREEN_ADD("main", RASTER) | |
| 360 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 361 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 364 | 362 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 365 | 363 | MDRV_SCREEN_SIZE(128*8, 128*8) |
| 366 | 364 | MDRV_SCREEN_VISIBLE_AREA(0*8, 128*8-1, 0*8, 128*8-1) |
| 365 | ||
| 367 | 366 | MDRV_GFXDECODE(macs) |
| 368 | 367 | MDRV_PALETTE_LENGTH(16*16*4+1) |
| 369 | 368 |
| r1711 | r1712 | |
|---|---|---|
| 3140 | 3140 | MDRV_CPU_ADD_TAG("main", Z80, 5000000) /* 5.00 MHz */ |
| 3141 | 3141 | MDRV_CPU_VBLANK_INT(nb1413m3_interrupt, 1) |
| 3142 | 3142 | |
| 3143 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3144 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 3145 | ||
| 3146 | 3143 | MDRV_MACHINE_RESET(nb1413m3) |
| 3147 | 3144 | MDRV_NVRAM_HANDLER(nb1413m3) |
| 3148 | 3145 | |
| 3149 | 3146 | /* video hardware */ |
| 3150 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 3147 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3148 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3149 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 3151 | 3150 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3152 | 3151 | MDRV_SCREEN_SIZE(512, 256) |
| 3153 | 3152 | MDRV_SCREEN_VISIBLE_AREA(0, 512-1, 16, 240-1) |
| 3153 | ||
| 3154 | 3154 | MDRV_PALETTE_LENGTH(4096) |
| 3155 | 3155 | |
| 3156 | 3156 | MDRV_PALETTE_INIT(mbmj8688_12bit) |
| r1711 | r1712 | |
| 3188 | 3188 | MDRV_IMPORT_FROM(NBMJDRV_4096) |
| 3189 | 3189 | |
| 3190 | 3190 | /* video hardware */ |
| 3191 | MDRV_ | |
| 3191 | MDRV_SC | |
| 3192 | 3192 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3193 | 3193 | MDRV_PALETTE_LENGTH(65536) |
| 3194 | 3194 | |
| r1711 | r1712 | |
| 3261 | 3261 | MDRV_NVRAM_HANDLER(nb1413m3) |
| 3262 | 3262 | |
| 3263 | 3263 | /* video hardware */ |
| 3264 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 3265 | 3264 | MDRV_PALETTE_LENGTH(65536) |
| 3266 | 3265 | MDRV_PALETTE_INIT(mbmj8688_16bit) |
| 3267 | 3266 | MDRV_DEFAULT_LAYOUT(layout_nbmj8688) |
| 3268 | 3267 | |
| 3269 | MDRV_SCREEN_ADD("main", | |
| 3268 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3270 | 3269 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3271 | 3270 | MDRV_SCREEN_REFRESH_RATE(60) |
| 3272 | MDRV_SCREEN_VBLANK_TIME( | |
| 3271 | MDRV_SCREEN_VBLANK_TIME( | |
| 3273 | 3272 | MDRV_SCREEN_SIZE(512, 256) |
| 3274 | 3273 | MDRV_SCREEN_VISIBLE_AREA(0, 512-1, 16, 240-1) |
| 3275 | 3274 | |
| 3276 | MDRV_SCREEN_ADD("LCD0", | |
| 3275 | MDRV_SCREEN_ADD("LCD0", RASTER) | |
| 3277 | 3276 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3278 | 3277 | MDRV_SCREEN_REFRESH_RATE(60) |
| 3279 | MDRV_SCREEN_VBLANK_TIME( | |
| 3278 | MDRV_SCREEN_VBLANK_TIME( | |
| 3280 | 3279 | MDRV_SCREEN_SIZE(480, 64) |
| 3281 | 3280 | MDRV_SCREEN_VISIBLE_AREA(0, 480-1, 0, 64-1) |
| 3282 | 3281 | |
| 3283 | MDRV_SCREEN_ADD("LCD1", | |
| 3282 | MDRV_SCREEN_ADD("LCD1", RASTER) | |
| 3284 | 3283 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3285 | 3284 | MDRV_SCREEN_REFRESH_RATE(60) |
| 3286 | MDRV_SCREEN_VBLANK_TIME( | |
| 3285 | MDRV_SCREEN_VBLANK_TIME( | |
| 3287 | 3286 | MDRV_SCREEN_SIZE(480, 64) |
| 3288 | 3287 | MDRV_SCREEN_VISIBLE_AREA(0, 480-1, 0, 64-1) |
| 3289 | 3288 |
| r1711 | r1712 | |
|---|---|---|
| 38 | 38 | ***********************************************************/ |
| 39 | 39 | |
| 40 | 40 | #include "driver.h" |
| 41 | #include "deprecat.h" | |
| 42 | 41 | #include "cpu/i8039/i8039.h" |
| 43 | 42 | #include "video/resnet.h" |
| 44 | 43 | #include "sound/ay8910.h" |
| r1711 | r1712 | |
| 67 | 66 | y = 255-y; |
| 68 | 67 | x = 247-x; |
| 69 | 68 | } |
| 70 | *BITMAP_ADDR16(tmpbitmap, y, x) = | |
| 69 | *BITMAP_ADDR16(tmpbitmap, y, x) = | |
| 71 | 70 | } |
| 72 | 71 | |
| 73 | 72 | static WRITE8_HANDLER( sbw_videoram_w ) |
| r1711 | r1712 | |
| 94 | 93 | |
| 95 | 94 | static VIDEO_UPDATE(sbowling) |
| 96 | 95 | { |
| 97 | fillbitmap(bitmap, | |
| 96 | fillbitmap(bitmap, | |
| 98 | 97 | tilemap_draw(bitmap,cliprect,sb_tilemap,0,0); |
| 99 | 98 | copybitmap_trans(bitmap,tmpbitmap,0,0,0,0,cliprect, color_prom_address); |
| 100 | 99 | return 0; |
| r1711 | r1712 | |
| 301 | 300 | 3, resistances_rg, outputs_g, 0, 100, |
| 302 | 301 | 2, resistances_b, outputs_b, 0, 100); |
| 303 | 302 | |
| 304 | for (i = 0;i < machine-> | |
| 303 | for (i = 0;i < machine->config->total_colors;i++) | |
| 305 | 304 | { |
| 306 | 305 | int bit0,bit1,bit2,r,g,b; |
| 307 | 306 | |
| r1711 | r1712 | |
| 332 | 331 | MDRV_CPU_PROGRAM_MAP(main_map,0) |
| 333 | 332 | MDRV_CPU_IO_MAP(port_map,0) |
| 334 | 333 | MDRV_CPU_VBLANK_INT(sbw_interrupt, 2) |
| 335 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 336 | 334 | MDRV_GFXDECODE(sbowling) |
| 337 | 335 | |
| 338 | 336 | /* video hardware */ |
| 339 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 337 | MDRV_SCREEN_ADD("main", RASTER) | |
| 338 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 340 | 339 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 341 | 340 | MDRV_SCREEN_SIZE(32*8, 262) /* vert size taken from mw8080bw */ |
| 342 | 341 | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 4*8, 32*8-1) |
| 342 | ||
| 343 | 343 | MDRV_PALETTE_LENGTH(0x400) |
| 344 | 344 | MDRV_PALETTE_INIT(sbowling) |
| 345 | 345 | MDRV_VIDEO_START(sbowling) |
| r1711 | r1712 | |
|---|---|---|
| 557 | 557 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 558 | 558 | MDRV_CPU_IO_MAP(0,sound_writeport) |
| 559 | 559 | |
| 560 | MDRV_SCREEN_REFRESH_RATE(53.8) | |
| 561 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 562 | /* frames per second hand tuned to match game and music speed */ | |
| 563 | 560 | MDRV_INTERLEAVE(10) /* Allow time for 2nd cpu to interleave*/ |
| 564 | 561 | MDRV_MACHINE_RESET(psychic5) |
| 565 | 562 | |
| 566 | 563 | /* video hardware */ |
| 567 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 564 | MDRV_SCREEN_ADD("main", RASTER) | |
| 565 | MDRV_SCREEN_REFRESH_RATE(53.8) | |
| 566 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 567 | /* frames per second hand tuned to match game and music speed */ | |
| 568 | 568 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 569 | 569 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 570 | 570 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 571 | ||
| 571 | 572 | MDRV_GFXDECODE(psychic5) |
| 572 | 573 | MDRV_PALETTE_LENGTH(768) |
| 573 | 574 |
| r1711 | r1712 | |
|---|---|---|
| 585 | 585 | |
| 586 | 586 | MDRV_MACHINE_START(taitoh) |
| 587 | 587 | |
| 588 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 589 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 590 | 588 | MDRV_INTERLEAVE(10) |
| 591 | 589 | |
| 592 | 590 | /* video hardware */ |
| 593 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 591 | MDRV_SCREEN_ADD("main", RASTER) | |
| 592 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 593 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 594 | 594 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 595 | 595 | MDRV_SCREEN_SIZE(64*16, 64*16) |
| 596 | 596 | MDRV_SCREEN_VISIBLE_AREA(0*16, 32*16-1, 3*16, 28*16-1) |
| 597 | ||
| 597 | 598 | MDRV_GFXDECODE(syvalion) |
| 598 | 599 | MDRV_PALETTE_LENGTH(33*16) |
| 599 | 600 | |
| r1711 | r1712 | |
| 623 | 624 | |
| 624 | 625 | MDRV_MACHINE_START(taitoh) |
| 625 | 626 | |
| 626 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 627 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 628 | 627 | MDRV_INTERLEAVE(10) |
| 629 | 628 | |
| 630 | 629 | /* video hardware */ |
| 631 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 630 | MDRV_SCREEN_ADD("main", RASTER) | |
| 631 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 632 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 632 | 633 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 633 | 634 | MDRV_SCREEN_SIZE(64*16, 64*16) |
| 634 | 635 | MDRV_SCREEN_VISIBLE_AREA(1*16, 21*16-1, 2*16, 17*16-1) |
| 636 | ||
| 635 | 637 | MDRV_GFXDECODE(recordbr) |
| 636 | 638 | MDRV_PALETTE_LENGTH(32*16) |
| 637 | 639 | |
| r1711 | r1712 | |
| 661 | 663 | |
| 662 | 664 | MDRV_MACHINE_START(taitoh) |
| 663 | 665 | |
| 664 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 665 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 666 | 666 | MDRV_INTERLEAVE(10) |
| 667 | 667 | |
| 668 | 668 | /* video hardware */ |
| 669 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 669 | MDRV_SCREEN_ADD("main", RASTER) | |
| 670 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 671 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 670 | 672 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 671 | 673 | MDRV_SCREEN_SIZE(64*16, 64*16) |
| 672 | 674 | MDRV_SCREEN_VISIBLE_AREA(1*16, 21*16-1, 2*16, 17*16-1) |
| 675 | ||
| 673 | 676 | MDRV_GFXDECODE(dleague) |
| 674 | 677 | MDRV_PALETTE_LENGTH(33*16) |
| 675 | 678 |
| r1711 | r1712 | |
|---|---|---|
| 275 | 275 | MDRV_CPU_PROGRAM_MAP(good_map,0) |
| 276 | 276 | MDRV_CPU_VBLANK_INT(irq2_line_hold,1) |
| 277 | 277 | |
| 278 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 279 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 280 | ||
| 281 | 278 | MDRV_GFXDECODE(good) |
| 282 | 279 | |
| 283 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 280 | ||
| 281 | MDRV_SCREEN_ADD("main", RASTER) | |
| 282 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 283 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 284 | 284 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 285 | 285 | MDRV_SCREEN_SIZE(32*16, 32*16) |
| 286 | 286 | MDRV_SCREEN_VISIBLE_AREA(1*16, 23*16-1, 0*16, 14*16-1) |
| 287 | ||
| 287 | 288 | MDRV_PALETTE_LENGTH(0x400) |
| 288 | 289 | |
| 289 | 290 | MDRV_VIDEO_START(good) |
| r1711 | r1712 | |
|---|---|---|
| 2406 | 2406 | MDRV_CPU_IO_MAP(shuttlei_io_map,0) |
| 2407 | 2407 | |
| 2408 | 2408 | /* video hardware */ |
| 2409 | MDRV_SCREEN_MODIFY("main") | |
| 2409 | 2410 | // MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 24*8-1) |
| 2410 | 2411 | MDRV_VIDEO_UPDATE(shuttlei) |
| 2411 | 2412 |
| r1711 | r1712 | |
|---|---|---|
| 710 | 710 | /* audio CPU */ |
| 711 | 711 | MDRV_CPU_PROGRAM_MAP(z80_sound_map,0) |
| 712 | 712 | |
| 713 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 714 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 715 | ||
| 716 | 713 | MDRV_NVRAM_HANDLER(othunder) |
| 717 | 714 | MDRV_MACHINE_START(othunder) |
| 718 | 715 | MDRV_MACHINE_RESET(othunder) |
| 719 | 716 | |
| 720 | 717 | /* video hardware */ |
| 721 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 718 | MDRV_SCREEN_ADD("main", RASTER) | |
| 719 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 720 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 722 | 721 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 723 | 722 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 724 | 723 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 32*8-1) |
| 724 | ||
| 725 | 725 | MDRV_GFXDECODE(othunder) |
| 726 | 726 | MDRV_PALETTE_LENGTH(4096) |
| 727 | 727 |
| r1711 | r1712 | |
|---|---|---|
| 358 | 358 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 359 | 359 | MDRV_CPU_VBLANK_INT(ginganin_sound_interrupt,60) /* Takahiro Nogi. 1999/09/27 (1 -> 60) */ |
| 360 | 360 | |
| 361 | /* video hardware */ | |
| 362 | MDRV_SCREEN_ADD("main", RASTER) | |
| 361 | 363 | MDRV_SCREEN_REFRESH_RATE(60) |
| 362 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 363 | ||
| 364 | /* video hardware */ | |
| 365 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 364 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 366 | 365 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 367 | 366 | MDRV_SCREEN_SIZE(256, 256) |
| 368 | 367 | MDRV_SCREEN_VISIBLE_AREA(0, 255, 0 + 16 , 255 - 16) |
| 368 | ||
| 369 | 369 | MDRV_GFXDECODE(ginganin) |
| 370 | 370 | MDRV_PALETTE_LENGTH(1024) |
| 371 | 371 |
| r1711 | r1712 | |
|---|---|---|
| 274 | 274 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 275 | 275 | MDRV_CPU_IO_MAP(sound_readport,sound_writeport) |
| 276 | 276 | /* IRQs are triggered by the YM2608 */ |
| 277 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 278 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 279 | ||
| 280 | 277 | MDRV_MACHINE_RESET(tail2nos) |
| 281 | 278 | |
| 282 | 279 | /* video hardware */ |
| 283 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 280 | MDRV_SCREEN_ADD("main", RASTER) | |
| 281 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 282 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 284 | 283 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 285 | 284 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 286 | 285 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 286 | ||
| 287 | 287 | MDRV_GFXDECODE(tail2nos) |
| 288 | 288 | MDRV_PALETTE_LENGTH(2048) |
| 289 | 289 |
| r1711 | r1712 | |
|---|---|---|
| 164 | 164 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 165 | 165 | MDRV_CPU_VBLANK_INT(M79_interrupt,1) |
| 166 | 166 | |
| 167 | /* video hardware */ | |
| 168 | MDRV_SCREEN_ADD("main", RASTER) | |
| 167 | 169 | MDRV_SCREEN_REFRESH_RATE(60) |
| 168 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 169 | ||
| 170 | /* video hardware */ | |
| 171 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 170 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 172 | 171 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 173 | 172 | MDRV_SCREEN_SIZE(32*8, 28*8) |
| 174 | 173 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 28*8-1) |
| 174 | ||
| 175 | 175 | MDRV_VIDEO_START(generic_bitmapped) |
| 176 | 176 | MDRV_VIDEO_UPDATE(generic_bitmapped) |
| 177 | 177 |
| r1711 | r1712 | |
|---|---|---|
| 184 | 184 | MDRV_CPU_IO_MAP(readport,writeport) |
| 185 | 185 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,1) |
| 186 | 186 | |
| 187 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 188 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 189 | ||
| 190 | 187 | /* video hardware */ |
| 191 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 188 | MDRV_SCREEN_ADD("main", RASTER) | |
| 189 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 190 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 192 | 191 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 193 | 192 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 194 | 193 | MDRV_SCREEN_VISIBLE_AREA(0*8, 30*8-1, 2*8, 30*8-1) |
| 194 | ||
| 195 | 195 | MDRV_GFXDECODE(mrjong) |
| 196 | MDRV_PALETTE_LENGTH(16) | |
| 197 | MDRV_COLORTABLE_LENGTH(4*32) | |
| 196 | MDRV_PALETTE_LENGTH(4*32) | |
| 198 | 197 | |
| 199 | 198 | MDRV_PALETTE_INIT(mrjong) |
| 200 | 199 | MDRV_VIDEO_START(mrjong) |
| r1711 | r1712 | |
|---|---|---|
| 354 | 354 | |
| 355 | 355 | MDRV_MACHINE_START( cvs ) |
| 356 | 356 | |
| 357 | MDRV_SCREEN_REFRESH_RATE(50) /* From dot clock */ | |
| 358 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 359 | 357 | MDRV_INTERLEAVE(100) |
| 360 | 358 | |
| 361 | 359 | /* video hardware */ |
| 362 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 360 | MDRV_SCREEN_ADD("main", RASTER) | |
| 361 | MDRV_SCREEN_REFRESH_RATE(50) /* From dot clock */ | |
| 362 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 363 | 363 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 364 | 364 | MDRV_SCREEN_SIZE(256, 256) |
| 365 | 365 | MDRV_SCREEN_VISIBLE_AREA(1*8+1, 29*8-1, 2*8, 32*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 60 | 60 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 61 | 61 | // MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 62 | 62 | |
| 63 | /* video hardware */ | |
| 64 | MDRV_SCREEN_ADD("main", RASTER) | |
| 63 | 65 | MDRV_SCREEN_REFRESH_RATE(60) |
| 64 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 65 | ||
| 66 | /* video hardware */ | |
| 67 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 66 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 68 | 67 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 69 | 68 | MDRV_SCREEN_SIZE(256, 256) |
| 70 | 69 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 16, 256-16-1) |
| 70 | ||
| 71 | 71 | MDRV_PALETTE_LENGTH(0x100) |
| 72 | 72 | |
| 73 | 73 | /* no gfx decode, MSX video chip doesn't use tiles, roms are memory mapped */ |
| r1711 | r1712 | |
|---|---|---|
| 556 | 556 | /* audio CPU */ /* 4 MHz */ |
| 557 | 557 | MDRV_CPU_PROGRAM_MAP(z80_sound_readmem,z80_sound_writemem) |
| 558 | 558 | |
| 559 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 560 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 561 | 559 | MDRV_INTERLEAVE(10) |
| 562 | 560 | |
| 563 | 561 | MDRV_MACHINE_START(slapshot) |
| 564 | 562 | MDRV_NVRAM_HANDLER(timekeeper_0) |
| 565 | 563 | |
| 566 | 564 | /* video hardware */ |
| 567 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 565 | MDRV_SCREEN_ADD("main", RASTER) | |
| 566 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 567 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 568 | 568 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 569 | 569 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 570 | 570 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 30*8-1) |
| 571 | ||
| 571 | 572 | MDRV_GFXDECODE(slapshot) |
| 572 | 573 | MDRV_PALETTE_LENGTH(8192) |
| 573 | 574 | |
| r1711 | r1712 | |
| 597 | 598 | /* audio CPU */ /* 4 MHz */ |
| 598 | 599 | MDRV_CPU_PROGRAM_MAP(z80_sound_readmem,z80_sound_writemem) |
| 599 | 600 | |
| 600 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 601 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 602 | 601 | MDRV_INTERLEAVE(10) |
| 603 | 602 | |
| 604 | 603 | MDRV_NVRAM_HANDLER(timekeeper_0) |
| 605 | 604 | |
| 606 | 605 | /* video hardware */ |
| 607 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 606 | MDRV_SCREEN_ADD("main", RASTER) | |
| 607 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 608 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 608 | 609 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 609 | 610 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 610 | 611 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 30*8-1) |
| 612 | ||
| 611 | 613 | MDRV_GFXDECODE(slapshot) |
| 612 | 614 | MDRV_PALETTE_LENGTH(8192) |
| 613 | 615 |
| r1711 | r1712 | |
|---|---|---|
| 383 | 383 | MDRV_CPU_PROGRAM_MAP(ertictac_map,0) |
| 384 | 384 | MDRV_CPU_VBLANK_INT(ertictac_interrupt,1) |
| 385 | 385 | |
| 386 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 387 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 388 | ||
| 389 | 386 | MDRV_MACHINE_RESET(ertictac) |
| 390 | 387 | |
| 391 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 388 | ||
| 389 | MDRV_SCREEN_ADD("main", RASTER) | |
| 390 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 391 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 392 | 392 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 393 | 393 | MDRV_SCREEN_SIZE(320, 256) |
| 394 | 394 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 255) |
| 395 | ||
| 395 | 396 | MDRV_PALETTE_LENGTH(256) |
| 396 | 397 | MDRV_PALETTE_INIT(ertictac) |
| 397 | 398 |
| r1711 | r1712 | |
|---|---|---|
| 2085 | 2085 | MDRV_CPU_ADD(N2A03,N2A03_DEFAULTCLOCK) |
| 2086 | 2086 | MDRV_CPU_PROGRAM_MAP(vsnes_cpu1_map,0) |
| 2087 | 2087 | /* some carts also trigger IRQs */ |
| 2088 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2089 | ||
| 2090 | 2088 | MDRV_MACHINE_RESET(vsnes) |
| 2091 | 2089 | |
| 2092 | 2090 | /* video hardware */ |
| 2093 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2091 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2092 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2094 | 2093 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2095 | 2094 | MDRV_SCREEN_SIZE(32*8, 262) |
| 2096 | 2095 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 30*8-1) |
| 2096 | ||
| 2097 | 2097 | MDRV_PALETTE_LENGTH(8*4*16) |
| 2098 | 2098 | |
| 2099 | 2099 | MDRV_PALETTE_INIT(vsnes) |
| r1711 | r1712 | |
| 2121 | 2121 | MDRV_CPU_ADD(N2A03,N2A03_DEFAULTCLOCK) |
| 2122 | 2122 | MDRV_CPU_PROGRAM_MAP(vsnes_cpu2_map,0) |
| 2123 | 2123 | /* some carts also trigger IRQs */ |
| 2124 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2125 | ||
| 2126 | 2124 | MDRV_MACHINE_RESET(vsdual) |
| 2127 | 2125 | |
| 2128 | 2126 | /* video hardware */ |
| 2129 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2130 | 2127 | MDRV_PALETTE_LENGTH(2*8*4*16) |
| 2131 | 2128 | MDRV_DEFAULT_LAYOUT(layout_dualhsxs) |
| 2132 | 2129 | |
| 2133 | MDRV_SCREEN_ADD("top", | |
| 2130 | MDRV_SCREEN_ADD("top", RASTER) | |
| 2134 | 2131 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2135 | 2132 | MDRV_SCREEN_REFRESH_RATE(60) |
| 2136 | 2133 | MDRV_SCREEN_SIZE(32*8, 262) |
| 2137 | 2134 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 30*8-1) |
| 2138 | 2135 | |
| 2139 | MDRV_SCREEN_ADD("bottom", | |
| 2136 | MDRV_SCREEN_ADD("bottom", RASTER) | |
| 2140 | 2137 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2141 | 2138 | MDRV_SCREEN_REFRESH_RATE(60) |
| 2142 | 2139 | MDRV_SCREEN_SIZE(32*8, 262) |
| r1711 | r1712 | |
|---|---|---|
| 250 | 250 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,1) |
| 251 | 251 | MDRV_CPU_PERIODIC_INT(irq0_line_assert,4*60) /* ?? controls music tempo */ |
| 252 | 252 | |
| 253 | /* video hardware */ | |
| 254 | MDRV_SCREEN_ADD("main", RASTER) | |
| 253 | 255 | MDRV_SCREEN_REFRESH_RATE(60) |
| 254 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 255 | ||
| 256 | /* video hardware */ | |
| 257 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 256 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 258 | 257 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 259 | 258 | MDRV_SCREEN_SIZE(80*4, 32*8) |
| 260 | 259 | MDRV_SCREEN_VISIBLE_AREA(0, 80*4-1, 0, 28*8-1) |
| 260 | ||
| 261 | 261 | MDRV_GFXDECODE(xyonix) |
| 262 | 262 | MDRV_PALETTE_LENGTH(256) |
| 263 | 263 |
| r1711 | r1712 | |
|---|---|---|
| 217 | 217 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 218 | 218 | |
| 219 | 219 | /* video hardware */ |
| 220 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK | VIDEO_ALWAYS_UPDATE) | |
| 220 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK | VIDEO_ALWAYS_UPDATE) | |
| 221 | ||
| 222 | MDRV_SCREEN_ADD("main", RASTER) | |
| 221 | 223 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 222 | 224 | /* using the standard Exidy video parameters for now, needs to be confirmed */ |
| 223 | 225 | MDRV_SCREEN_RAW_PARAMS(EXIDY_PIXEL_CLOCK, EXIDY_HTOTAL, EXIDY_HBEND, EXIDY_HBSTART, EXIDY_VTOTAL, EXIDY_VBEND, EXIDY_VBSTART) |
| 226 | ||
| 224 | 227 | MDRV_PALETTE_LENGTH(64) |
| 225 | 228 | |
| 226 | 229 | MDRV_VIDEO_START(victory) |
| r1711 | r1712 | |
|---|---|---|
| 258 | 258 | MDRV_CPU_PROGRAM_MAP(sound_map, 0) |
| 259 | 259 | MDRV_CPU_VBLANK_INT(irq0_line_hold, 4) |
| 260 | 260 | |
| 261 | // video hardware | |
| 262 | ||
| 263 | MDRV_SCREEN_ADD("main", RASTER) | |
| 261 | 264 | MDRV_SCREEN_REFRESH_RATE(60) |
| 262 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 263 | ||
| 264 | // video hardware | |
| 265 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 265 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 266 | 266 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 267 | 267 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 268 | 268 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 792 | 792 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 793 | 793 | |
| 794 | 794 | MDRV_MACHINE_RESET(cninja) |
| 795 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 796 | 795 | |
| 797 | 796 | /* video hardware */ |
| 798 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 797 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 798 | ||
| 799 | MDRV_SCREEN_ADD("main", RASTER) | |
| 800 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 799 | 801 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 800 | 802 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 801 | 803 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 804 | ||
| 802 | 805 | MDRV_GFXDECODE(cninja) |
| 803 | 806 | MDRV_PALETTE_LENGTH(2048) |
| 804 | 807 | |
| r1711 | r1712 | |
| 838 | 841 | MDRV_CPU_PROGRAM_MAP(stoneage_s_readmem,stoneage_s_writemem) |
| 839 | 842 | |
| 840 | 843 | MDRV_MACHINE_RESET(cninja) |
| 841 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 842 | 844 | |
| 843 | 845 | /* video hardware */ |
| 844 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 846 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 847 | ||
| 848 | MDRV_SCREEN_ADD("main", RASTER) | |
| 849 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 845 | 850 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 846 | 851 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 847 | 852 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 853 | ||
| 848 | 854 | MDRV_GFXDECODE(cninja) |
| 849 | 855 | MDRV_PALETTE_LENGTH(2048) |
| 850 | 856 | |
| r1711 | r1712 | |
| 881 | 887 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 882 | 888 | |
| 883 | 889 | MDRV_MACHINE_RESET(cninja) |
| 884 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 885 | 890 | |
| 886 | 891 | /* video hardware */ |
| 887 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 892 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 893 | ||
| 894 | MDRV_SCREEN_ADD("main", RASTER) | |
| 895 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 888 | 896 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 889 | 897 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 890 | 898 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 899 | ||
| 891 | 900 | MDRV_GFXDECODE(cninja) |
| 892 | 901 | MDRV_PALETTE_LENGTH(2048) |
| 893 | 902 | |
| r1711 | r1712 | |
| 927 | 936 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 928 | 937 | |
| 929 | 938 | MDRV_MACHINE_RESET(cninja) |
| 930 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 931 | 939 | |
| 932 | 940 | /* video hardware */ |
| 933 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 941 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 942 | ||
| 943 | MDRV_SCREEN_ADD("main", RASTER) | |
| 944 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 934 | 945 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 935 | 946 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 936 | 947 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 948 | ||
| 937 | 949 | MDRV_GFXDECODE(robocop2) |
| 938 | 950 | MDRV_PALETTE_LENGTH(2048) |
| 939 | 951 | |
| r1711 | r1712 | |
| 975 | 987 | /* audio CPU */ |
| 976 | 988 | MDRV_CPU_PROGRAM_MAP(sound_readmem_mutantf,sound_writemem_mutantf) |
| 977 | 989 | |
| 990 | /* video hardware */ | |
| 991 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM ) | |
| 992 | ||
| 993 | MDRV_SCREEN_ADD("main", RASTER) | |
| 978 | 994 | MDRV_SCREEN_REFRESH_RATE(60) |
| 979 | ||
| 980 | /* video hardware */ | |
| 981 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM ) | |
| 982 | 995 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 983 | 996 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 984 | 997 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 998 | ||
| 985 | 999 | MDRV_GFXDECODE(mutantf) |
| 986 | 1000 | MDRV_PALETTE_LENGTH(2048) |
| 987 | 1001 |
| r1711 | r1712 | |
|---|---|---|
| 422 | 422 | MDRV_CPU_IO_MAP(mcu_port_map,0) |
| 423 | 423 | MDRV_CPU_VBLANK_INT(irq0_line_assert,1) |
| 424 | 424 | |
| 425 | MDRV_SCREEN_REFRESH_RATE(60.606060) | |
| 426 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 427 | 425 | MDRV_INTERLEAVE(100) /* we need heavy synching between the MCU and the CPU */ |
| 428 | 426 | |
| 429 | 427 | /* video hardware */ |
| 430 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 428 | MDRV_SCREEN_ADD("main", RASTER) | |
| 429 | MDRV_SCREEN_REFRESH_RATE(60.606060) | |
| 430 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 431 | 431 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 432 | 432 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 433 | 433 | MDRV_SCREEN_VISIBLE_AREA(3*8, 39*8-1, 2*8, 30*8-1) |
| 434 | ||
| 434 | 435 | MDRV_GFXDECODE(pacland) |
| 435 | 436 | MDRV_PALETTE_LENGTH(256*4+256*4+64*16) |
| 436 | 437 |
| r1711 | r1712 | |
|---|---|---|
| 497 | 497 | MDRV_NVRAM_HANDLER(93C56) |
| 498 | 498 | |
| 499 | 499 | /* video hardware */ |
| 500 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 501 | 500 | MDRV_GFXDECODE(ps4) |
| 502 | 501 | MDRV_PALETTE_LENGTH((0x2000/4)*2 + 2) /* 0x2000/4 for each screen. 1 for each screen clear colour */ |
| 503 | 502 | MDRV_DEFAULT_LAYOUT(layout_dualhsxs) |
| 504 | 503 | |
| 505 | MDRV_SCREEN_ADD("left", | |
| 504 | MDRV_SCREEN_ADD("left", RASTER) | |
| 506 | 505 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 507 | 506 | MDRV_SCREEN_REFRESH_RATE(60) |
| 508 | MDRV_SCREEN_VBLANK_TIME( | |
| 507 | MDRV_SCREEN_VBLANK_TIME( | |
| 509 | 508 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 510 | 509 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 28*8-1) |
| 511 | 510 | |
| 512 | MDRV_SCREEN_ADD("right", | |
| 511 | MDRV_SCREEN_ADD("right", RASTER) | |
| 513 | 512 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 514 | 513 | MDRV_SCREEN_REFRESH_RATE(60) |
| 515 | MDRV_SCREEN_VBLANK_TIME( | |
| 514 | MDRV_SCREEN_VBLANK_TIME( | |
| 516 | 515 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 517 | 516 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 28*8-1) |
| 518 | 517 |
| r1711 | r1712 | |
|---|---|---|
| 479 | 479 | /* Data Map is internal to the CPU */ |
| 480 | 480 | MDRV_CPU_IO_MAP(DSP_io_map, 0) |
| 481 | 481 | |
| 482 | MDRV_SCREEN_REFRESH_RATE(56) | |
| 483 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 484 | 482 | MDRV_INTERLEAVE(100) /* 100 CPU slices per frame */ |
| 485 | 483 | |
| 486 | 484 | MDRV_MACHINE_RESET(wardner) |
| 487 | 485 | |
| 488 | 486 | /* video hardware */ |
| 489 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK | VIDEO_BUFFERS_SPRITERAM) | |
| 487 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK | VIDEO_BUFFERS_SPRITERAM) | |
| 488 | ||
| 489 | MDRV_SCREEN_ADD("main", RASTER) | |
| 490 | MDRV_SCREEN_REFRESH_RATE(56) | |
| 491 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 490 | 492 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 491 | 493 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 492 | 494 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 30*8-1) |
| 495 | ||
| 493 | 496 | MDRV_GFXDECODE(wardner) |
| 494 | 497 | MDRV_PALETTE_LENGTH(1792) |
| 495 | 498 |
| r1711 | r1712 | |
|---|---|---|
| 273 | 273 | MDRV_CPU_IO_MAP(sound_portmap,0) |
| 274 | 274 | MDRV_CPU_PERIODIC_INT(irq0_line_hold, 244) |
| 275 | 275 | |
| 276 | MDRV_SCREEN_REFRESH_RATE(61) | |
| 277 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 278 | 276 | MDRV_INTERLEAVE(100) |
| 279 | 277 | |
| 280 | 278 | /* video hardware */ |
| 281 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 279 | MDRV_SCREEN_ADD("main", RASTER) | |
| 280 | MDRV_SCREEN_REFRESH_RATE(61) | |
| 281 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 282 | 282 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 283 | 283 | MDRV_SCREEN_SIZE(512, 512) |
| 284 | 284 | MDRV_SCREEN_VISIBLE_AREA(0, 255,0, 223) |
| 285 | ||
| 285 | 286 | MDRV_GFXDECODE(jcross) |
| 286 | 287 | MDRV_PALETTE_LENGTH((16+2)*16) |
| 287 | 288 | MDRV_VIDEO_START(jcross) |
| r1711 | r1712 | |
|---|---|---|
| 446 | 446 | static const struct CustomSound_interface snes_sound_interface = |
| 447 | 447 | { snes_sh_start }; |
| 448 | 448 | |
| 449 | static GFXDECODE_START( nss ) | |
| 450 | GFXDECODE_END | |
| 451 | ||
| 452 | static PALETTE_INIT( snes ) | |
| 453 | { | |
| 454 | int i; | |
| 455 | ||
| 456 | for( i = 0; i < 32768; i++ ) | |
| 457 | palette_set_color_rgb( machine, i, pal5bit(i >> 0), pal5bit(i >> 5), pal5bit(i >> 10) ); | |
| 458 | ||
| 459 | /* The colortable can be black */ | |
| 460 | for( i = 0; i < 256; i++ ) | |
| 461 | colortable[i] = 0; | |
| 462 | } | |
| 463 | ||
| 464 | 449 | static MACHINE_DRIVER_START( snes ) |
| 465 | 450 | /* basic machine hardware */ |
| 466 | 451 | MDRV_CPU_ADD_TAG("main", G65816, 3580000) /* 2.68Mhz, also 3.58Mhz */ |
| r1711 | r1712 | |
| 479 | 464 | /* video hardware */ |
| 480 | 465 | MDRV_VIDEO_UPDATE( snes ) |
| 481 | 466 | |
| 482 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 483 | MDRV_GFXDECODE(nss) | |
| 484 | MDRV_PALETTE_LENGTH(32768) | |
| 485 | MDRV_COLORTABLE_LENGTH(257) | |
| 486 | MDRV_PALETTE_INIT( snes ) | |
| 487 | 467 | |
| 488 | MDRV_SCREEN_ADD("main", 0) | |
| 489 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 468 | MDRV_SCREEN_ADD("main", RASTER) | |
| 469 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) | |
| 490 | 470 | MDRV_SCREEN_RAW_PARAMS(DOTCLK_NTSC, SNES_HTOTAL, 0, SNES_SCR_WIDTH, SNES_VTOTAL_NTSC, 0, SNES_SCR_HEIGHT_NTSC) |
| 491 | 471 | |
| 492 | 472 | /* sound hardware */ |
| r1711 | r1712 | |
|---|---|---|
| 244 | 244 | MDRV_CPU_PROGRAM_MAP(readmem_snd,writemem_snd) |
| 245 | 245 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,4) |
| 246 | 246 | |
| 247 | /* video hardware */ | |
| 248 | MDRV_SCREEN_ADD("main", RASTER) | |
| 247 | 249 | MDRV_SCREEN_REFRESH_RATE(60) |
| 248 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 249 | ||
| 250 | /* video hardware */ | |
| 251 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 250 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 252 | 251 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 253 | 252 | MDRV_SCREEN_SIZE(256, 256) |
| 254 | 253 | MDRV_SCREEN_VISIBLE_AREA(16,255,16, 255-16) |
| 254 | ||
| 255 | 255 | MDRV_GFXDECODE(rollrace) |
| 256 | 256 | MDRV_PALETTE_LENGTH(256) |
| 257 | 257 | |
| r1711 | r1712 | |
| 276 | 276 | /* basic machine hardware */ |
| 277 | 277 | MDRV_IMPORT_FROM(rollrace) |
| 278 | 278 | |
| 279 | MDRV_SCREEN_MODIFY("main") | |
| 279 | 280 | MDRV_SCREEN_VISIBLE_AREA(0,255-24,16, 255-16) |
| 280 | 281 | MACHINE_DRIVER_END |
| 281 | 282 |
| r1711 | r1712 | |
|---|---|---|
| 21 | 21 | MBL-01.11A [895be69a] |
| 22 | 22 | MBL-02.12A [474f6104] |
| 23 | 23 | |
| 24 | MBL-03.10A [a | |
| 24 | MBL-03.10A [4a599703 | |
| 25 | 25 | |
| 26 | 26 | MBL-04.12K [b533123d] |
| 27 | 27 | |
| r1711 | r1712 | |
| 121 | 121 | flip_screen_set( deco16_pf12_control[0]&0x80 ); |
| 122 | 122 | deco16_pf12_update(deco16_pf1_rowscroll,deco16_pf2_rowscroll); |
| 123 | 123 | |
| 124 | fillbitmap(bitmap, | |
| 124 | fillbitmap(bitmap, | |
| 125 | 125 | |
| 126 | 126 | deco16_tilemap_2_draw(bitmap,cliprect,TILEMAP_DRAW_OPAQUE,0); |
| 127 | 127 | deco16_tilemap_1_draw(bitmap,cliprect,0,0); |
| r1711 | r1712 | |
| 213 | 213 | PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Unknown ) ) |
| 214 | 214 | PORT_DIPSETTING( 0x0004, DEF_STR( Off ) ) |
| 215 | 215 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 216 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Unknown ) ) | |
| 217 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) | |
| 218 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 219 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_VBLANK ) | |
| 220 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unknown ) ) // eeprom read? | |
| 216 | PORT_SERVICE( 0x0008, IP_ACTIVE_LOW ) | |
| 217 | PORT_BIT( 0x0010, IP_ACTIVE_HIGH, IPT_VBLANK ) | |
| 218 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Flip_Screen ) ) | |
| 221 | 219 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) |
| 222 | 220 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 223 | 221 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unknown ) ) |
| 224 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 225 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 222 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 223 | PORT_DIPSETTING( 0x0040, DEF_STR( On ) ) | |
| 226 | 224 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Unknown ) ) |
| 227 | 225 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) |
| 228 | 226 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| r1711 | r1712 | |
| 252 | 250 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 253 | 251 | |
| 254 | 252 | PORT_START_TAG("MIRAGE0") |
| 255 | ||
| 253 | | |
| 256 | 254 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 257 | 255 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 258 | 256 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Unknown ) ) |
| r1711 | r1712 | |
| 267 | 265 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Unknown ) ) |
| 268 | 266 | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) |
| 269 | 267 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 270 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unknown ) ) | |
| 268 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unknown ) ) /* Makes selections in "Test Mode" when changing from "Off" to "On" */ | |
| 271 | 269 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) |
| 272 | 270 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 273 | 271 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unknown ) ) |
| r1711 | r1712 | |
| 353 | 351 | MDRV_CPU_PROGRAM_MAP(mirage_readmem,mirage_writemem) |
| 354 | 352 | MDRV_CPU_VBLANK_INT(irq6_line_hold,1) |
| 355 | 353 | |
| 354 | /* video hardware */ | |
| 355 | MDRV_SCREEN_ADD("main", RASTER) | |
| 356 | 356 | MDRV_SCREEN_REFRESH_RATE(58) |
| 357 | 357 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529)) |
| 358 | ||
| 359 | /* video hardware */ | |
| 360 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 361 | 358 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 362 | 359 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 363 | 360 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 361 | ||
| 364 | 362 | MDRV_GFXDECODE(mirage) |
| 365 | 363 | MDRV_PALETTE_LENGTH(1024) |
| 366 | 364 | |
| r1711 | r1712 | |
| 392 | 390 | ROM_LOAD16_BYTE( "mbl-01.11a", 0x000001, 0x200000, CRC(895be69a) SHA1(541d8f37fb4cf99312b80a0eb0d729fbbeab5f4f) ) |
| 393 | 391 | ROM_LOAD16_BYTE( "mbl-02.12a", 0x000000, 0x200000, CRC(474f6104) SHA1(ff81b32b90192c3d5f27c436a9246aa6caaeeeee) ) |
| 394 | 392 | |
| 395 | ROM_REGION( 0x200000, REGION_SOUND1, 0 ) /* M6295 samples (scrambled? bad?) */ | |
| 396 | ROM_LOAD( "mbl-03.10a", 0x000000, 0x200000, BAD_DUMP CRC(afccbc3c) SHA1(457b7fbd22e723e69b65a989ee9957354b673176) ) // dumped in wrong mode, missing every other byte | |
| 393 | ROM_REGION( 0x200000, REGION_SOUND1, 0 ) /* M6295 samples */ | |
| 394 | ROM_LOAD( "mbl-03.10a", 0x000000, 0x200000, CRC(4a599703) SHA1(b49e84faa2d6acca952740d30fc8d1a33ac47e79) ) | |
| 397 | 395 | |
| 398 | 396 | ROM_REGION( 0x200000, REGION_SOUND2, 0 ) /* M6295 samples */ |
| 399 | 397 | ROM_LOAD( "mbl-04.12k", 0x000000, 0x100000, CRC(b533123d) SHA1(2cb2f11331d00c2d282113932ed2836805f4fc6e) ) |
| r1711 | r1712 | |
|---|---|---|
| 897 | 897 | MDRV_WATCHDOG_VBLANK_INIT(8) |
| 898 | 898 | |
| 899 | 899 | /* video hardware */ |
| 900 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 901 | 900 | MDRV_PALETTE_LENGTH(8) |
| 902 | 901 | |
| 903 | MDRV_SCREEN_ADD("main", | |
| 902 | MDRV_SCREEN_ADD("main", RASTER) | |
| 904 | 903 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 905 | 904 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART) |
| 906 | 905 |
| r1711 | r1712 | |
|---|---|---|
| 351 | 351 | MDRV_CPU_ADD(M6809, XTAL_18_432MHz/12) /* verified on pcb */ |
| 352 | 352 | MDRV_CPU_PROGRAM_MAP(readmem_cpu2,writemem_cpu2) |
| 353 | 353 | |
| 354 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 355 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 356 | 354 | MDRV_INTERLEAVE(100) /* we need heavy synch */ |
| 357 | 355 | |
| 358 | 356 | /* video hardware */ |
| 359 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 357 | MDRV_SCREEN_ADD("main", RASTER) | |
| 358 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 359 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 360 | 360 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 361 | 361 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 362 | 362 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 363 | 363 | /* MDRV_SCREEN_SIZE(64*8, 32*8) |
| 364 | 364 | MDRV_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 2*8, 30*8-1) */ |
| 365 | ||
| 365 | 366 | MDRV_GFXDECODE(ddrible) |
| 366 | 367 | MDRV_PALETTE_LENGTH(64 + 256) |
| 367 | 368 |
| r1711 | r1712 | |
|---|---|---|
| 319 | 319 | MDRV_CPU_PROGRAM_MAP(popper_sound_readmem,popper_sound_writemem) |
| 320 | 320 | MDRV_CPU_VBLANK_INT(irq0_line_hold,4) //NMIs caused by the main CPU |
| 321 | 321 | |
| 322 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 323 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 324 | 322 | MDRV_INTERLEAVE(30) |
| 325 | 323 | |
| 326 | 324 | /* video hardware */ |
| 327 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 325 | MDRV_SCREEN_ADD("main", RASTER) | |
| 326 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 327 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 328 | 328 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 329 | 329 | MDRV_SCREEN_SIZE(33*8, 32*8) |
| 330 | 330 | MDRV_SCREEN_VISIBLE_AREA(0*8, 33*8-1, 2*8, 30*8-1) |
| 331 | ||
| 331 | 332 | MDRV_GFXDECODE(popper) |
| 332 | 333 | MDRV_PALETTE_LENGTH(64) |
| 333 | 334 |
| r1711 | r1712 | |
|---|---|---|
| 289 | 289 | MDRV_CPU_VBLANK_INT(irq0_line_hold,2) |
| 290 | 290 | |
| 291 | 291 | /* video hardware */ |
| 292 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 293 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 294 | 292 | MDRV_INTERLEAVE(100) |
| 295 | 293 | |
| 296 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 294 | ||
| 295 | MDRV_SCREEN_ADD("main", RASTER) | |
| 296 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 297 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 297 | 298 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 298 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 299 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 300 | 299 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 301 | 300 | #if ladyfrog_scr_size |
| 302 | 301 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 29*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 171 | 171 | MDRV_CPU_PROGRAM_MAP(go2000_readmem,go2000_writemem) |
| 172 | 172 | MDRV_CPU_VBLANK_INT(irq1_line_hold,1) |
| 173 | 173 | |
| 174 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 175 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 176 | ||
| 177 | 174 | MDRV_GFXDECODE(go2000) |
| 178 | 175 | |
| 179 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 176 | ||
| 177 | MDRV_SCREEN_ADD("main", RASTER) | |
| 178 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 179 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 180 | 180 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 181 | 181 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 182 | 182 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 2*8, 30*8-1) |
| 183 | ||
| 183 | 184 | MDRV_PALETTE_LENGTH(0x800) |
| 184 | 185 | |
| 185 | 186 | MDRV_VIDEO_START(go2000) |
| r1711 | r1712 | |
|---|---|---|
| 841 | 841 | MDRV_CPU_IO_MAP(cpu2_port_am,0) |
| 842 | 842 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 843 | 843 | |
| 844 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 845 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 846 | 844 | MDRV_INTERLEAVE(100) |
| 847 | 845 | |
| 848 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 846 | MDRV_SCREEN_ADD("main", RASTER) | |
| 847 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 848 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 849 | 849 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 850 | ||
| 851 | 850 | MDRV_SCREEN_SIZE(256, 256) |
| 852 | 851 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 16, 256-16-1) |
| 852 | ||
| 853 | 853 | MDRV_GFXDECODE(djboy) |
| 854 | 854 | MDRV_PALETTE_LENGTH(0x200) |
| 855 | 855 |
| r1711 | r1712 | |
|---|---|---|
| 724 | 724 | /* audio CPU */ |
| 725 | 725 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 726 | 726 | |
| 727 | /* video hardware */ | |
| 728 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 729 | ||
| 730 | MDRV_SCREEN_ADD("main", RASTER) | |
| 727 | 731 | MDRV_SCREEN_REFRESH_RATE(60) |
| 728 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 729 | ||
| 730 | /* video hardware */ | |
| 731 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 732 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 732 | 733 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 733 | 734 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 734 | 735 | MDRV_SCREEN_VISIBLE_AREA(8*8, (64-8)*8-1, 2*8, 30*8-1 ) |
| 736 | ||
| 735 | 737 | MDRV_GFXDECODE(sidearms) |
| 736 | 738 | MDRV_PALETTE_LENGTH(1024) |
| 737 | 739 | |
| r1711 | r1712 | |
| 768 | 770 | /* audio CPU */ |
| 769 | 771 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 770 | 772 | |
| 773 | /* video hardware */ | |
| 774 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 775 | ||
| 776 | MDRV_SCREEN_ADD("main", RASTER) | |
| 771 | 777 | MDRV_SCREEN_REFRESH_RATE(60) |
| 772 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 773 | ||
| 774 | /* video hardware */ | |
| 775 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 778 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 776 | 779 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 777 | 780 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 778 | 781 | MDRV_SCREEN_VISIBLE_AREA(8*8, (64-8)*8-1, 2*8, 30*8-1 ) |
| 782 | ||
| 779 | 783 | MDRV_GFXDECODE(turtship) |
| 780 | 784 | MDRV_PALETTE_LENGTH(1024) |
| 781 | 785 | |
| r1711 | r1712 | |
| 813 | 817 | MDRV_CPU_IO_MAP(whizz_readport,whizz_writeport) |
| 814 | 818 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 815 | 819 | |
| 816 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 817 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 818 | 820 | MDRV_INTERLEAVE(1000) |
| 819 | 821 | |
| 820 | 822 | /* video hardware */ |
| 821 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 823 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 824 | ||
| 825 | MDRV_SCREEN_ADD("main", RASTER) | |
| 826 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 827 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 822 | 828 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 823 | 829 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 824 | 830 | MDRV_SCREEN_VISIBLE_AREA(8*8, (64-8)*8-1, 2*8, 30*8-1 ) |
| 831 | ||
| 825 | 832 | MDRV_GFXDECODE(turtship) |
| 826 | 833 | MDRV_PALETTE_LENGTH(1024) |
| 827 | 834 |
| r1711 | r1712 | |
|---|---|---|
| 1014 | 1014 | MDRV_CPU_ADD(Z80, XTAL_16MHz/4) /* verified on pcb */ |
| 1015 | 1015 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 1016 | 1016 | |
| 1017 | MDRV_SCREEN_REFRESH_RATE(57.43) | |
| 1018 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1019 | 1017 | MDRV_INTERLEAVE(10) /* 10 CPU slices per frame - enough for the sound CPU to read all commands */ |
| 1020 | 1018 | |
| 1021 | 1019 | MDRV_MACHINE_START(taitox) |
| 1022 | 1020 | MDRV_MACHINE_RESET(cchip1) |
| 1023 | 1021 | |
| 1024 | 1022 | /* video hardware */ |
| 1025 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1023 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1024 | MDRV_SCREEN_REFRESH_RATE(57.43) | |
| 1025 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1026 | 1026 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1027 | 1027 | MDRV_SCREEN_SIZE(52*8, 32*8) |
| 1028 | 1028 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 1*8, 31*8-1) |
| 1029 | ||
| 1029 | 1030 | MDRV_GFXDECODE(superman) |
| 1030 | 1031 | MDRV_PALETTE_LENGTH(2048) |
| 1031 | 1032 | |
| r1711 | r1712 | |
| 1053 | 1054 | MDRV_CPU_ADD(Z80, XTAL_16MHz/4) /* verified on pcb */ |
| 1054 | 1055 | MDRV_CPU_PROGRAM_MAP(daisenpu_sound_readmem,daisenpu_sound_writemem) |
| 1055 | 1056 | |
| 1056 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1057 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1058 | 1057 | MDRV_INTERLEAVE(10) /* 10 CPU slices per frame - enough for the sound CPU to read all commands */ |
| 1059 | 1058 | |
| 1060 | 1059 | MDRV_MACHINE_START(taitox) |
| 1061 | 1060 | |
| 1062 | 1061 | /* video hardware */ |
| 1063 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1062 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1063 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1064 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1064 | 1065 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1065 | 1066 | MDRV_SCREEN_SIZE(52*8, 32*8) |
| 1066 | 1067 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 2*8, 30*8-1) |
| 1068 | ||
| 1067 | 1069 | MDRV_GFXDECODE(superman) |
| 1068 | 1070 | MDRV_PALETTE_LENGTH(2048) |
| 1069 | 1071 | |
| r1711 | r1712 | |
| 1089 | 1091 | MDRV_CPU_ADD(Z80, 4000000) /* 4 MHz ??? */ |
| 1090 | 1092 | MDRV_CPU_PROGRAM_MAP(ballbros_sound_readmem,ballbros_sound_writemem) |
| 1091 | 1093 | |
| 1092 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1093 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1094 | 1094 | MDRV_INTERLEAVE(10) /* 10 CPU slices per frame - enough for the sound CPU to read all commands */ |
| 1095 | 1095 | |
| 1096 | 1096 | MDRV_MACHINE_START(taitox) |
| 1097 | 1097 | |
| 1098 | 1098 | /* video hardware */ |
| 1099 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1099 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1100 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1101 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1100 | 1102 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1101 | 1103 | MDRV_SCREEN_SIZE(52*8, 32*8) |
| 1102 | 1104 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 1*8, 31*8-1) |
| 1105 | ||
| 1103 | 1106 | MDRV_GFXDECODE(superman) |
| 1104 | 1107 | MDRV_PALETTE_LENGTH(2048) |
| 1105 | 1108 | |
| r1711 | r1712 | |
| 1127 | 1130 | MDRV_CPU_ADD(Z80, 4000000) /* 4 MHz ??? */ |
| 1128 | 1131 | MDRV_CPU_PROGRAM_MAP(ballbros_sound_readmem,ballbros_sound_writemem) |
| 1129 | 1132 | |
| 1130 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1131 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1132 | 1133 | MDRV_INTERLEAVE(10) /* 10 CPU slices per frame - enough for the sound CPU to read all commands */ |
| 1133 | 1134 | |
| 1134 | 1135 | MDRV_MACHINE_START(taitox) |
| 1135 | 1136 | |
| 1136 | 1137 | /* video hardware */ |
| 1137 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1138 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1139 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1140 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1138 | 1141 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1139 | 1142 | MDRV_SCREEN_SIZE(52*8, 32*8) |
| 1140 | 1143 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 1*8, 31*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 882 | 882 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 883 | 883 | MDRV_CPU_IO_MAP(sound_readport,sound_writeport) |
| 884 | 884 | |
| 885 | /* video hardware */ | |
| 886 | MDRV_SCREEN_ADD("main", RASTER) | |
| 885 | 887 | MDRV_SCREEN_REFRESH_RATE(60) |
| 886 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 887 | ||
| 888 | /* video hardware */ | |
| 889 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 888 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 890 | 889 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 891 | 890 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 892 | 891 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 892 | ||
| 893 | 893 | MDRV_GFXDECODE(jack) |
| 894 | 894 | MDRV_PALETTE_LENGTH(32) |
| 895 | 895 | |
| r1711 | r1712 | |
| 934 | 934 | MDRV_GFXDECODE(joinem) |
| 935 | 935 | MDRV_PALETTE_LENGTH(0x100) |
| 936 | 936 | |
| 937 | MDRV_SCREEN_MODIFY("main") | |
| 937 | 938 | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 2*8, 30*8-1) |
| 938 | 939 | |
| 939 | 940 | MDRV_PALETTE_INIT(joinem) |
| r1711 | r1712 | |
| 953 | 954 | MDRV_GFXDECODE(joinem) |
| 954 | 955 | MDRV_PALETTE_LENGTH(0x100) |
| 955 | 956 | |
| 957 | MDRV_SCREEN_MODIFY("main") | |
| 956 | 958 | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 2*8, 30*8-1) |
| 957 | 959 | |
| 958 | 960 | MDRV_PALETTE_INIT(joinem) |
| r1711 | r1712 | |
|---|---|---|
| 327 | 327 | /* audio CPU */ |
| 328 | 328 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 329 | 329 | |
| 330 | /* video hardware */ | |
| 331 | MDRV_SCREEN_ADD("main", RASTER) | |
| 330 | 332 | MDRV_SCREEN_REFRESH_RATE(58) |
| 331 | 333 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529)) |
| 332 | ||
| 333 | /* video hardware */ | |
| 334 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 335 | 334 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 336 | 335 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 337 | 336 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-2, 1*8, 31*8-1) // hmm |
| 337 | ||
| 338 | 338 | MDRV_GFXDECODE(tumblep) |
| 339 | 339 | MDRV_PALETTE_LENGTH(1024) |
| 340 | 340 |
| r1711 | r1712 | |
|---|---|---|
| 248 | 248 | MDRV_CPU_ADD(M6502, 1500000) /* 1.5 MHz ???? */ |
| 249 | 249 | MDRV_CPU_PROGRAM_MAP(sub_readmem,sub_writemem) |
| 250 | 250 | |
| 251 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 252 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 253 | 251 | MDRV_INTERLEAVE(100) |
| 254 | 252 | |
| 255 | 253 | /* video hardware */ |
| 256 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 254 | MDRV_SCREEN_ADD("main", RASTER) | |
| 255 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 256 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 257 | 257 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 258 | 258 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 259 | 259 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 260 | ||
| 260 | 261 | MDRV_GFXDECODE(dogfgt) |
| 261 | 262 | MDRV_PALETTE_LENGTH(16+64) |
| 262 | 263 |
| r1711 | r1712 | |
|---|---|---|
| 210 | 210 | MDRV_CPU_ADD(H6280, XTAL_32_22MHz/4/3) /* Custom chip 45; XIN is 32.220MHZ/4, verified on pcb */ |
| 211 | 211 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 212 | 212 | |
| 213 | /* video hardware */ | |
| 214 | MDRV_SCREEN_ADD("main", RASTER) | |
| 213 | 215 | MDRV_SCREEN_REFRESH_RATE(58) |
| 214 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 215 | ||
| 216 | /* video hardware */ | |
| 217 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 216 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 218 | 217 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 219 | 218 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 220 | 219 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 220 | ||
| 221 | 221 | MDRV_PALETTE_LENGTH(1024) |
| 222 | 222 | MDRV_GFXDECODE(dietgo) |
| 223 | 223 |
| r1711 | r1712 | |
|---|---|---|
| 206 | 206 | extern UINT8 *taitosj_collision_reg; |
| 207 | 207 | extern UINT8 *kikstart_scrollram; |
| 208 | 208 | |
| 209 | PALETTE_INIT( taitosj ); | |
| 210 | 209 | READ8_HANDLER( taitosj_gfxrom_r ); |
| 211 | 210 | WRITE8_HANDLER( taitosj_videoe_w ); |
| 212 | 211 | WRITE8_HANDLER( taitosj_characterram_w ); |
| r1711 | r1712 | |
| 1782 | 1781 | |
| 1783 | 1782 | |
| 1784 | 1783 | static GFXDECODE_START( taitosj ) |
| 1785 | GFXDECODE_ENTRY( 0, 0x9000, charlayout, 0, 16 ) /* the game dynamically modifies this */ | |
| 1786 | GFXDECODE_ENTRY( 0, 0x9000, spritelayout, 0, 16 ) /* the game dynamically modifies this */ | |
| 1787 | GFXDECODE_ENTRY( 0, 0xa800, charlayout, 0, 16 ) /* the game dynamically modifies this */ | |
| 1788 | GFXDECODE_ENTRY( 0, 0xa800, spritelayout, 0, 16 ) /* the game dynamically modifies this */ | |
| 1784 | GFXDECODE_ENTRY( 0, 0x9000, charlayout, 0, 8 ) /* the game dynamically modifies this */ | |
| 1785 | GFXDECODE_ENTRY( 0, 0x9000, spritelayout, 0, 8 ) /* the game dynamically modifies this */ | |
| 1786 | GFXDECODE_ENTRY( 0, 0xa800, charlayout, 0, 8 ) /* the game dynamically modifies this */ | |
| 1787 | GFXDECODE_ENTRY( 0, 0xa800, spritelayout, 0, 8 ) /* the game dynamically modifies this */ | |
| 1789 | 1788 | GFXDECODE_END |
| 1790 | 1789 | |
| 1791 | 1790 | |
| r1711 | r1712 | |
| 1873 | 1872 | /* - periodic IRQ, with frequency 6000000/(4*16*16*10*16) = 36.621 Hz, */ |
| 1874 | 1873 | MDRV_CPU_PERIODIC_INT(irq0_line_hold, (double)6000000/(4*16*16*10*16)) |
| 1875 | 1874 | |
| 1876 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1877 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 1878 | ||
| 1879 | 1875 | MDRV_MACHINE_START(taitosj) |
| 1880 | 1876 | MDRV_MACHINE_RESET(taitosj) |
| 1881 | 1877 | |
| 1882 | 1878 | /* video hardware */ |
| 1883 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1879 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1880 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1881 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 1884 | 1882 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1885 | 1883 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 1886 | 1884 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 1885 | ||
| 1887 | 1886 | MDRV_GFXDECODE(taitosj) |
| 1888 | 1887 | MDRV_PALETTE_LENGTH(64) |
| 1889 | MDRV_COLORTABLE_LENGTH(16*8) | |
| 1890 | 1888 | |
| 1891 | MDRV_PALETTE_INIT(taitosj) | |
| 1892 | 1889 | MDRV_VIDEO_START(taitosj) |
| 1893 | 1890 | MDRV_VIDEO_UPDATE(taitosj) |
| 1894 | 1891 |
| r1711 | r1712 | |
|---|---|---|
| 592 | 592 | MDRV_CPU_IO_MAP(sound_readport,sound_writeport) |
| 593 | 593 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,128) /* clocked by V1 */ |
| 594 | 594 | /* IRQs are generated by main Z80 and YM2151 */ |
| 595 | MDRV_SCREEN_REFRESH_RATE(55) | |
| 596 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 597 | 595 | MDRV_MACHINE_RESET(m72_sound) |
| 598 | 596 | |
| 599 | 597 | /* video hardware */ |
| 600 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 598 | MDRV_SCREEN_ADD("main", RASTER) | |
| 599 | MDRV_SCREEN_REFRESH_RATE(55) | |
| 600 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 601 | 601 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 602 | 602 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 603 | 603 | MDRV_SCREEN_VISIBLE_AREA(16*8, (64-16)*8-1, 0*8, 32*8-1 ) |
| 604 | ||
| 604 | 605 | MDRV_GFXDECODE(vigilant) |
| 605 | 606 | MDRV_PALETTE_LENGTH(512+32) /* 512 real palette, 32 virtual palette */ |
| 606 | 607 | |
| r1711 | r1712 | |
| 634 | 635 | MDRV_CPU_IO_MAP(buccanrs_sound_readport,buccanrs_sound_writeport) |
| 635 | 636 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,128) /* clocked by V1 */ |
| 636 | 637 | /* IRQs are generated by main Z80 and YM2151 */ |
| 637 | MDRV_SCREEN_REFRESH_RATE(55) | |
| 638 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 639 | 638 | MDRV_MACHINE_RESET(m72_sound) |
| 640 | 639 | |
| 641 | 640 | /* video hardware */ |
| 642 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 641 | MDRV_SCREEN_ADD("main", RASTER) | |
| 642 | MDRV_SCREEN_REFRESH_RATE(55) | |
| 643 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 643 | 644 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 644 | 645 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 645 | 646 | MDRV_SCREEN_VISIBLE_AREA(16*8, (64-16)*8-1, 0*8, 32*8-1 ) |
| 647 | ||
| 646 | 648 | MDRV_GFXDECODE(buccanrs) |
| 647 | 649 | MDRV_PALETTE_LENGTH(512+32) /* 512 real palette, 32 virtual palette */ |
| 648 | 650 | |
| r1711 | r1712 | |
| 692 | 694 | MDRV_CPU_IO_MAP(sound_readport,sound_writeport) |
| 693 | 695 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,128) /* clocked by V1 */ |
| 694 | 696 | /* IRQs are generated by main Z80 and YM2151 */ |
| 695 | MDRV_SCREEN_REFRESH_RATE(55) | |
| 696 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 697 | 697 | MDRV_MACHINE_RESET(m72_sound) |
| 698 | 698 | |
| 699 | 699 | /* video hardware */ |
| 700 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 700 | MDRV_SCREEN_ADD("main", RASTER) | |
| 701 | MDRV_SCREEN_REFRESH_RATE(55) | |
| 702 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 701 | 703 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 702 | 704 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 703 | 705 | MDRV_SCREEN_VISIBLE_AREA(8*8, (64-8)*8-1, 0*8, 32*8-1 ) |
| 706 | ||
| 704 | 707 | MDRV_GFXDECODE(kikcubic) |
| 705 | 708 | MDRV_PALETTE_LENGTH(256) |
| 706 | 709 |
| r1711 | r1712 | |
|---|---|---|
| 569 | 569 | MDRV_CPU_IO_MAP(sound_readport,sound_writeport) |
| 570 | 570 | MDRV_CPU_PERIODIC_INT(nmi_line_pulse, 6000) /* Hz */ |
| 571 | 571 | |
| 572 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 573 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 574 | 572 | MDRV_INTERLEAVE(100) /* We really need heavy synching among the processors */ |
| 575 | 573 | |
| 576 | 574 | /* video hardware */ |
| 577 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 575 | MDRV_SCREEN_ADD("main", RASTER) | |
| 576 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 577 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 578 | 578 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 579 | 579 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 580 | 580 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 581 | ||
| 581 | 582 | MDRV_GFXDECODE(kingobox) |
| 582 | MDRV_PALETTE_LENGTH(256+8) | |
| 583 | MDRV_COLORTABLE_LENGTH(256+8*2) | |
| 583 | MDRV_PALETTE_LENGTH(256+8*2) | |
| 584 | 584 | |
| 585 | 585 | MDRV_PALETTE_INIT(kingofb) |
| 586 | 586 | MDRV_VIDEO_START(kingofb) |
| r1711 | r1712 | |
| 620 | 620 | MDRV_CPU_IO_MAP(rk_sound_readport,rk_sound_writeport) |
| 621 | 621 | MDRV_CPU_PERIODIC_INT(nmi_line_pulse, 6000) /* Hz */ |
| 622 | 622 | |
| 623 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 624 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 625 | 623 | MDRV_INTERLEAVE(100) /* We really need heavy synching among the processors */ |
| 626 | 624 | |
| 627 | 625 | /* video hardware */ |
| 628 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 626 | MDRV_SCREEN_ADD("main", RASTER) | |
| 627 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 628 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 629 | 629 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 630 | 630 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 631 | 631 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 632 | ||
| 632 | 633 | MDRV_GFXDECODE(rk) |
| 633 | MDRV_PALETTE_LENGTH(256+8) | |
| 634 | MDRV_COLORTABLE_LENGTH(256+8*2) | |
| 634 | MDRV_PALETTE_LENGTH(256+8*2) | |
| 635 | 635 | |
| 636 | 636 | MDRV_PALETTE_INIT(ringking) |
| 637 | 637 | MDRV_VIDEO_START(ringking) |
| r1711 | r1712 | |
|---|---|---|
| 568 | 568 | MDRV_CPU_IO_MAP(sound_readport,sound_writeport) |
| 569 | 569 | MDRV_CPU_PERIODIC_INT(irq0_line_hold, 7250) /* timed interrupt, ?? Hz */ |
| 570 | 570 | |
| 571 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 572 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 573 | ||
| 574 | 571 | MDRV_MACHINE_RESET(galivan) |
| 575 | 572 | |
| 576 | 573 | /* video hardware */ |
| 577 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 574 | MDRV_SCREEN_ADD("main", RASTER) | |
| 575 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 576 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 578 | 577 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 579 | 578 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 580 | 579 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 580 | ||
| 581 | 581 | MDRV_GFXDECODE(galivan) |
| 582 | 582 | MDRV_PALETTE_LENGTH(8*16+16*16+256*16) |
| 583 | 583 | |
| r1711 | r1712 | |
| 612 | 612 | MDRV_CPU_IO_MAP(sound_readport,sound_writeport) |
| 613 | 613 | MDRV_CPU_PERIODIC_INT(irq0_line_hold, 7250) /* timed interrupt, ?? Hz */ |
| 614 | 614 | |
| 615 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 616 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 617 | ||
| 618 | 615 | MDRV_MACHINE_RESET(galivan) |
| 619 | 616 | |
| 620 | 617 | /* video hardware */ |
| 621 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 618 | MDRV_SCREEN_ADD("main", RASTER) | |
| 619 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 620 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 622 | 621 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 623 | 622 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 624 | 623 | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 2*8, 30*8-1) |
| 624 | ||
| 625 | 625 | MDRV_GFXDECODE(ninjemak) |
| 626 | 626 | MDRV_PALETTE_LENGTH(8*16+16*16+256*16) |
| 627 | 627 |
| r1711 | r1712 | |
|---|---|---|
| 78 | 78 | |
| 79 | 79 | static MACHINE_RESET( nbmj8991 ) |
| 80 | 80 | { |
| 81 | if (machine-> | |
| 81 | if (machine->config->cpu[1].type == CPU_Z80) | |
| 82 | 82 | { |
| 83 | 83 | memory_configure_bank(1, 0, 4, memory_region(REGION_CPU2) + 0x8000, 0x8000); |
| 84 | 84 | memory_set_bank(1, 0); |
| r1711 | r1712 | |
| 1762 | 1762 | // MDRV_CPU_VBLANK_INT(nb1413m3_interrupt, 128) |
| 1763 | 1763 | MDRV_CPU_VBLANK_INT(nb1413m3_interrupt, 1) |
| 1764 | 1764 | |
| 1765 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1766 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1767 | 1765 | MDRV_MACHINE_RESET(nbmj8991) |
| 1768 | 1766 | |
| 1769 | 1767 | /* video hardware */ |
| 1770 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1768 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1769 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1770 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1771 | 1771 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1772 | 1772 | MDRV_SCREEN_SIZE(1024, 512) |
| 1773 | 1773 | MDRV_SCREEN_VISIBLE_AREA(0, 640-1, 0, 240-1) |
| 1774 | ||
| 1774 | 1775 | MDRV_PALETTE_LENGTH(256) |
| 1775 | 1776 | |
| 1776 | 1777 | MDRV_VIDEO_START(nbmj8991) |
| r1711 | r1712 | |
| 1800 | 1801 | MDRV_CPU_IO_MAP(sound_readport_nbmj8991, sound_writeport_nbmj8991) |
| 1801 | 1802 | MDRV_CPU_VBLANK_INT(irq0_line_hold, 128) |
| 1802 | 1803 | |
| 1803 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1804 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1805 | 1804 | MDRV_MACHINE_RESET(nbmj8991) |
| 1806 | 1805 | |
| 1807 | 1806 | /* video hardware */ |
| 1808 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1807 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1808 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1809 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1809 | 1810 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1810 | 1811 | MDRV_SCREEN_SIZE(1024, 512) |
| 1811 | 1812 | MDRV_SCREEN_VISIBLE_AREA(0, 640-1, 0, 240-1) |
| 1813 | ||
| 1812 | 1814 | MDRV_PALETTE_LENGTH(256) |
| 1813 | 1815 | |
| 1814 | 1816 | MDRV_VIDEO_START(nbmj8991) |
| r1711 | r1712 | |
|---|---|---|
| 324 | 324 | /* audio CPU */ /* 3.579545 MHz */ |
| 325 | 325 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 326 | 326 | |
| 327 | /* video hardware */ | |
| 328 | MDRV_SCREEN_ADD("main", RASTER) | |
| 327 | 329 | MDRV_SCREEN_REFRESH_RATE(58) |
| 328 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 329 | ||
| 330 | /* video hardware */ | |
| 331 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 330 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 332 | 331 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 333 | 332 | MDRV_SCREEN_SIZE(320, 256) |
| 334 | 333 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 8, 247) |
| 334 | ||
| 335 | 335 | MDRV_PALETTE_LENGTH(513) |
| 336 | 336 | |
| 337 | 337 | MDRV_VIDEO_START(blockout) |
| r1711 | r1712 | |
|---|---|---|
| 764 | 764 | /* audio CPU */ |
| 765 | 765 | MDRV_CPU_PROGRAM_MAP(readmem_sound2,writemem_sound2) |
| 766 | 766 | |
| 767 | /* video hardware */ | |
| 768 | MDRV_SCREEN_ADD("main", RASTER) | |
| 767 | 769 | MDRV_SCREEN_REFRESH_RATE(60) |
| 768 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 769 | ||
| 770 | /* video hardware */ | |
| 771 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 770 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 772 | 771 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 773 | 772 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 774 | 773 | MDRV_SCREEN_VISIBLE_AREA(0, 255, 8, 255-8) |
| 774 | ||
| 775 | 775 | MDRV_GFXDECODE(tsamurai) |
| 776 | 776 | MDRV_PALETTE_LENGTH(256) |
| 777 | 777 | |
| r1711 | r1712 | |
| 815 | 815 | MDRV_CPU_IO_MAP(readport_sound3_m660,writeport_sound3_m660) |
| 816 | 816 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,1) |
| 817 | 817 | |
| 818 | /* video hardware */ | |
| 819 | MDRV_SCREEN_ADD("main", RASTER) | |
| 818 | 820 | MDRV_SCREEN_REFRESH_RATE(60) |
| 819 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 820 | ||
| 821 | /* video hardware */ | |
| 822 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 821 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 823 | 822 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 824 | 823 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 825 | 824 | MDRV_SCREEN_VISIBLE_AREA(0, 255, 8, 255-8) |
| 825 | ||
| 826 | 826 | MDRV_GFXDECODE(tsamurai) |
| 827 | 827 | MDRV_PALETTE_LENGTH(256) |
| 828 | 828 | |
| r1711 | r1712 | |
| 856 | 856 | MDRV_CPU_IO_MAP(0,z80_writeport) |
| 857 | 857 | MDRV_CPU_VBLANK_INT(vsgongf_sound_interrupt,3) |
| 858 | 858 | |
| 859 | /* video hardware */ | |
| 860 | MDRV_SCREEN_ADD("main", RASTER) | |
| 859 | 861 | MDRV_SCREEN_REFRESH_RATE(60) |
| 860 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 861 | ||
| 862 | /* video hardware */ | |
| 863 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 862 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 864 | 863 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 865 | 864 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 866 | 865 | MDRV_SCREEN_VISIBLE_AREA(0, 255, 8, 255-8) |
| 866 | ||
| 867 | 867 | MDRV_GFXDECODE(tsamurai) |
| 868 | 868 | MDRV_PALETTE_LENGTH(256) |
| 869 | 869 |
| r1711 | r1712 | |
|---|---|---|
| 368 | 368 | |
| 369 | 369 | MDRV_CPU_PROGRAM_MAP(igs_majhong_map,0) |
| 370 | 370 | |
| 371 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 372 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 373 | 371 | MDRV_CPU_VBLANK_INT(igs_majhong_interrupt,1) |
| 374 | 372 | //MDRV_NVRAM_HANDLER(generic_0fill) |
| 375 | 373 | |
| 376 | 374 | MDRV_GFXDECODE(igs_m027) |
| 377 | 375 | |
| 378 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 376 | ||
| 377 | MDRV_SCREEN_ADD("main", RASTER) | |
| 378 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 379 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 379 | 380 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 380 | 381 | MDRV_SCREEN_SIZE(512, 256) |
| 381 | 382 | MDRV_SCREEN_VISIBLE_AREA(0, 512-1, 0, 256-1) |
| 383 | ||
| 382 | 384 | MDRV_PALETTE_LENGTH(0x200) |
| 383 | 385 | |
| 384 | 386 | MDRV_VIDEO_START( igs_majhong ) |
| r1711 | r1712 | |
|---|---|---|
| 240 | 240 | MDRV_CPU_VBLANK_INT(nmi_line_pulse, 1) |
| 241 | 241 | MDRV_WATCHDOG_VBLANK_INIT(8) |
| 242 | 242 | |
| 243 | /* video hardware */ | |
| 244 | MDRV_SCREEN_ADD("main", RASTER) | |
| 243 | 245 | MDRV_SCREEN_REFRESH_RATE(60) |
| 244 | 246 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(22 * 1000000 / 15750)) |
| 245 | ||
| 246 | /* video hardware */ | |
| 247 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 248 | 247 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 249 | 248 | MDRV_SCREEN_SIZE(256, 240) |
| 250 | 249 | MDRV_SCREEN_VISIBLE_AREA(0, 255, 0, 239) |
| 250 | ||
| 251 | 251 | MDRV_GFXDECODE(canyon) |
| 252 | 252 | MDRV_PALETTE_LENGTH(4) |
| 253 | 253 |
| r1711 | r1712 | |
|---|---|---|
| 232 | 232 | MDRV_CPU_IO_MAP(io_map,0) |
| 233 | 233 | MDRV_CPU_VBLANK_INT(ettrivia_interrupt,1) |
| 234 | 234 | |
| 235 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 236 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 237 | ||
| 238 | 235 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 239 | 236 | |
| 240 | 237 | /* video hardware */ |
| 241 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 238 | MDRV_SCREEN_ADD("main", RASTER) | |
| 239 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 240 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 242 | 241 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 243 | 242 | MDRV_SCREEN_SIZE(256, 256) |
| 244 | 243 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 28*8-1) |
| 244 | ||
| 245 | 245 | MDRV_GFXDECODE(ettrivia) |
| 246 | 246 | MDRV_PALETTE_LENGTH(256) |
| 247 | 247 |
| r1711 | r1712 | |
|---|---|---|
| 442 | 442 | MDRV_CPU_PROGRAM_MAP(splash_readmem_sound,splash_writemem_sound) |
| 443 | 443 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,64) /* needed for the msm5205 to play the samples */ |
| 444 | 444 | |
| 445 | /* video hardware */ | |
| 446 | MDRV_SCREEN_ADD("main", RASTER) | |
| 445 | 447 | MDRV_SCREEN_REFRESH_RATE(60) |
| 446 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 447 | ||
| 448 | /* video hardware */ | |
| 449 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 448 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 450 | 449 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 451 | 450 | MDRV_SCREEN_SIZE(64*8, 64*8) |
| 452 | 451 | MDRV_SCREEN_VISIBLE_AREA(2*8, 49*8-1, 2*8, 32*8-1) |
| 452 | ||
| 453 | 453 | MDRV_GFXDECODE(splash) |
| 454 | 454 | MDRV_PALETTE_LENGTH(2048) |
| 455 | 455 | |
| r1711 | r1712 | |
| 490 | 490 | MDRV_CPU_IO_MAP(roldf_sound_io_map,0) |
| 491 | 491 | // MDRV_CPU_VBLANK_INT(nmi_line_pulse,64) /* needed for the msm5205 to play the samples */ |
| 492 | 492 | |
| 493 | /* video hardware */ | |
| 494 | MDRV_SCREEN_ADD("main", RASTER) | |
| 493 | 495 | MDRV_SCREEN_REFRESH_RATE(60) |
| 494 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 495 | ||
| 496 | /* video hardware */ | |
| 497 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 496 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 498 | 497 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 499 | 498 | MDRV_SCREEN_SIZE(64*8, 64*8) |
| 500 | 499 | MDRV_SCREEN_VISIBLE_AREA(2*8, 49*8-1, 2*8, 32*8-1) |
| 501 | 500 | // MDRV_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 0*8, 64*8-1) |
| 501 | ||
| 502 | 502 | MDRV_GFXDECODE(splash) |
| 503 | 503 | MDRV_PALETTE_LENGTH(2048) |
| 504 | 504 | |
| r1711 | r1712 | |
| 528 | 528 | // MDRV_CPU_PROGRAM_MAP(splash_readmem_sound,splash_writemem_sound) |
| 529 | 529 | // MDRV_CPU_VBLANK_INT(nmi_line_pulse,64) /* needed for the msm5205 to play the samples */ |
| 530 | 530 | |
| 531 | /* video hardware */ | |
| 532 | MDRV_SCREEN_ADD("main", RASTER) | |
| 531 | 533 | MDRV_SCREEN_REFRESH_RATE(60) |
| 532 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 533 | ||
| 534 | /* video hardware */ | |
| 535 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 534 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 536 | 535 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 537 | 536 | MDRV_SCREEN_SIZE(64*8, 64*8) |
| 538 | 537 | MDRV_SCREEN_VISIBLE_AREA(0*8, 47*8-1, 2*8, 32*8-1) |
| 538 | ||
| 539 | 539 | MDRV_GFXDECODE(splash) |
| 540 | 540 | MDRV_PALETTE_LENGTH(2048) |
| 541 | 541 |
| r1711 | r1712 | |
|---|---|---|
| 1004 | 1004 | MDRV_CPU_PROGRAM_MAP(jalmah,0) |
| 1005 | 1005 | MDRV_CPU_VBLANK_INT(irq2_line_hold,1) |
| 1006 | 1006 | |
| 1007 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1008 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1009 | ||
| 1010 | 1007 | MDRV_GFXDECODE(jalmah) |
| 1011 | 1008 | |
| 1012 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1009 | ||
| 1010 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1011 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1012 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1013 | 1013 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1014 | 1014 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 1015 | 1015 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 1016 | ||
| 1016 | 1017 | MDRV_PALETTE_LENGTH(0x400) |
| 1017 | 1018 | MDRV_MACHINE_RESET(daireika) |
| 1018 | 1019 |
| r1711 | r1712 | |
|---|---|---|
| 579 | 579 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 580 | 580 | MDRV_CPU_IO_MAP(sound_readport,sound_writeport) |
| 581 | 581 | |
| 582 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 583 | 582 | MDRV_INTERLEAVE(100) /* 100 CPU slices per frame */ |
| 584 | 583 | |
| 585 | 584 | /* video hardware */ |
| 586 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 585 | MDRV_SCREEN_ADD("main", RASTER) | |
| 586 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 587 | 587 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 588 | 588 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 589 | 589 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 590 | ||
| 590 | 591 | MDRV_GFXDECODE(f1gp) |
| 591 | 592 | MDRV_PALETTE_LENGTH(2048) |
| 592 | 593 | |
| r1711 | r1712 | |
| 617 | 618 | MDRV_CPU_VBLANK_INT(irq1_line_hold,1) |
| 618 | 619 | |
| 619 | 620 | /* NO sound CPU */ |
| 620 | ||
| 621 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 622 | 621 | MDRV_INTERLEAVE(100) /* 100 CPU slices per frame */ |
| 623 | 622 | |
| 624 | 623 | /* video hardware */ |
| 625 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 624 | MDRV_SCREEN_ADD("main", RASTER) | |
| 625 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 626 | 626 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 627 | 627 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 628 | 628 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 629 | ||
| 629 | 630 | MDRV_GFXDECODE(f1gp) |
| 630 | 631 | MDRV_PALETTE_LENGTH(2048) |
| 631 | 632 | |
| r1711 | r1712 | |
| 651 | 652 | |
| 652 | 653 | /* video hardware */ |
| 653 | 654 | MDRV_GFXDECODE(f1gp2) |
| 655 | MDRV_SCREEN_MODIFY("main") | |
| 654 | 656 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 28*8-1) |
| 655 | 657 | |
| 656 | 658 | MDRV_VIDEO_START(f1gp2) |
| r1711 | r1712 | |
|---|---|---|
| 266 | 266 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 267 | 267 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 268 | 268 | |
| 269 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 270 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 271 | ||
| 272 | 269 | /* video hardware */ |
| 273 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 270 | MDRV_SCREEN_ADD("main", RASTER) | |
| 271 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 272 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 274 | 273 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 275 | 274 | MDRV_SCREEN_SIZE(256, 256) |
| 276 | 275 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 32*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 471 | 471 | MDRV_CPU_IO_MAP(lvcards_io_map, 0) |
| 472 | 472 | MDRV_CPU_VBLANK_INT(irq0_line_hold, 1) |
| 473 | 473 | |
| 474 | // video hardware | |
| 475 | ||
| 476 | MDRV_SCREEN_ADD("main", RASTER) | |
| 474 | 477 | MDRV_SCREEN_REFRESH_RATE(60) |
| 475 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 476 | ||
| 477 | // video hardware | |
| 478 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 478 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 479 | 479 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 480 | 480 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 481 | 481 | MDRV_SCREEN_VISIBLE_AREA(8*0, 32*8-1, 2*8, 30*8-1) |
| 482 | ||
| 482 | 483 | MDRV_GFXDECODE(lvcards) |
| 483 | 484 | MDRV_PALETTE_LENGTH(256) |
| 484 | 485 |
| r1711 | r1712 | |
|---|---|---|
| 641 | 641 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 642 | 642 | |
| 643 | 643 | /* video hardware */ |
| 644 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 645 | 644 | MDRV_PALETTE_LENGTH(32768) |
| 646 | 645 | |
| 647 | MDRV_SCREEN_ADD("main", | |
| 646 | MDRV_SCREEN_ADD("main", RASTER) | |
| 648 | 647 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 649 | 648 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, 505, 0, 399, 289, 0, 253) |
| 650 | 649 |
| r1711 | r1712 | |
|---|---|---|
| 1586 | 1586 | MDRV_CPU_PROGRAM_MAP(readmem_mcu,writemem_mcu) |
| 1587 | 1587 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 1588 | 1588 | |
| 1589 | MDRV_SCREEN_REFRESH_RATE( (49152000.0 / 8) / (384 * 264) ) | |
| 1590 | 1589 | MDRV_INTERLEAVE(100) /* CPU slices per frame */ |
| 1591 | 1590 | |
| 1592 | 1591 | MDRV_MACHINE_RESET(namcos2) |
| 1593 | 1592 | MDRV_NVRAM_HANDLER(namcos2) |
| 1594 | 1593 | |
| 1595 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS) | |
| 1594 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 1595 | ||
| 1596 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1597 | MDRV_SCREEN_REFRESH_RATE( (49152000.0 / 8) / (384 * 264) ) | |
| 1596 | 1598 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1597 | 1599 | MDRV_SCREEN_SIZE(384, 264) |
| 1598 | 1600 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 0*8, 28*8-1) |
| 1601 | ||
| 1599 | 1602 | MDRV_GFXDECODE(namcos2) |
| 1600 | 1603 | MDRV_PALETTE_LENGTH(0x2000) |
| 1601 | 1604 | |
| r1711 | r1712 | |
| 1656 | 1659 | MDRV_CPU_PROGRAM_MAP(readmem_mcu,writemem_mcu) |
| 1657 | 1660 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 1658 | 1661 | |
| 1659 | MDRV_SCREEN_REFRESH_RATE( (49152000.0 / 8) / (384 * 264) ) | |
| 1660 | 1662 | MDRV_INTERLEAVE(100) /* CPU slices per frame */ |
| 1661 | 1663 | |
| 1662 | 1664 | MDRV_MACHINE_RESET(namcos2) |
| 1663 | 1665 | MDRV_NVRAM_HANDLER(namcos2) |
| 1664 | 1666 | |
| 1665 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS) | |
| 1667 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 1668 | ||
| 1669 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1670 | MDRV_SCREEN_REFRESH_RATE( (49152000.0 / 8) / (384 * 264) ) | |
| 1666 | 1671 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1667 | 1672 | MDRV_SCREEN_SIZE(384, 264) |
| 1668 | 1673 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 0*8, 28*8-1) |
| 1674 | ||
| 1669 | 1675 | MDRV_GFXDECODE(namcos2) |
| 1670 | 1676 | MDRV_PALETTE_LENGTH(0x2000) |
| 1671 | 1677 | |
| r1711 | r1712 | |
| 1702 | 1708 | MDRV_CPU_PROGRAM_MAP(readmem_mcu,writemem_mcu) |
| 1703 | 1709 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 1704 | 1710 | |
| 1705 | MDRV_SCREEN_REFRESH_RATE( (49152000.0 / 8) / (384 * 264) ) | |
| 1706 | 1711 | MDRV_INTERLEAVE(100) /* CPU slices per frame */ |
| 1707 | 1712 | |
| 1708 | 1713 | MDRV_MACHINE_RESET(namcos2) |
| 1709 | 1714 | MDRV_NVRAM_HANDLER(namcos2) |
| 1710 | 1715 | |
| 1711 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS) | |
| 1716 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 1717 | ||
| 1718 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1719 | MDRV_SCREEN_REFRESH_RATE( (49152000.0 / 8) / (384 * 264) ) | |
| 1712 | 1720 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1713 | 1721 | MDRV_SCREEN_SIZE(384, 264) |
| 1714 | 1722 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 0*8, 28*8-1) |
| 1723 | ||
| 1715 | 1724 | MDRV_GFXDECODE(finallap) |
| 1716 | 1725 | MDRV_PALETTE_LENGTH(0x2000) |
| 1717 | 1726 | |
| r1711 | r1712 | |
| 1748 | 1757 | MDRV_CPU_PROGRAM_MAP(readmem_mcu,writemem_mcu) |
| 1749 | 1758 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 1750 | 1759 | |
| 1751 | MDRV_SCREEN_REFRESH_RATE( (49152000.0 / 8) / (384 * 264) ) | |
| 1752 | 1760 | MDRV_INTERLEAVE(100) /* CPU slices per frame */ |
| 1753 | 1761 | |
| 1754 | 1762 | MDRV_MACHINE_RESET(namcos2) |
| 1755 | 1763 | MDRV_NVRAM_HANDLER(namcos2) |
| 1756 | 1764 | |
| 1757 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS) | |
| 1765 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 1766 | ||
| 1767 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1768 | MDRV_SCREEN_REFRESH_RATE( (49152000.0 / 8) / (384 * 264) ) | |
| 1758 | 1769 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1759 | 1770 | MDRV_SCREEN_SIZE(384, 264) |
| 1760 | 1771 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 0*8, 28*8-1) |
| 1772 | ||
| 1761 | 1773 | MDRV_GFXDECODE(sgunner) |
| 1762 | 1774 | MDRV_PALETTE_LENGTH(0x2000) |
| 1763 | 1775 | |
| r1711 | r1712 | |
| 1794 | 1806 | MDRV_CPU_PROGRAM_MAP(readmem_mcu,writemem_mcu) |
| 1795 | 1807 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 1796 | 1808 | |
| 1797 | MDRV_SCREEN_REFRESH_RATE( (49152000.0 / 8) / (384 * 264) ) | |
| 1798 | 1809 | MDRV_INTERLEAVE(100) /* CPU slices per frame */ |
| 1799 | 1810 | |
| 1800 | 1811 | MDRV_MACHINE_RESET(namcos2) |
| 1801 | 1812 | MDRV_NVRAM_HANDLER(namcos2) |
| 1802 | 1813 | |
| 1803 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS) | |
| 1814 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 1815 | ||
| 1816 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1817 | MDRV_SCREEN_REFRESH_RATE( (49152000.0 / 8) / (384 * 264) ) | |
| 1804 | 1818 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1805 | 1819 | MDRV_SCREEN_SIZE(384, 264) |
| 1806 | 1820 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 0*8, 28*8-1) |
| 1821 | ||
| 1807 | 1822 | MDRV_GFXDECODE(luckywld) |
| 1808 | 1823 | MDRV_PALETTE_LENGTH(0x2000) |
| 1809 | 1824 | |
| r1711 | r1712 | |
| 1840 | 1855 | MDRV_CPU_PROGRAM_MAP(readmem_mcu,writemem_mcu) |
| 1841 | 1856 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 1842 | 1857 | |
| 1843 | MDRV_SCREEN_REFRESH_RATE( (49152000.0 / 8) / (384 * 264) ) | |
| 1844 | 1858 | MDRV_INTERLEAVE(100) /* CPU slices per frame */ |
| 1845 | 1859 | |
| 1846 | 1860 | MDRV_MACHINE_RESET(namcos2) |
| 1847 | 1861 | MDRV_NVRAM_HANDLER(namcos2) |
| 1848 | 1862 | |
| 1849 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS) | |
| 1863 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 1864 | ||
| 1865 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1866 | MDRV_SCREEN_REFRESH_RATE( (49152000.0 / 8) / (384 * 264) ) | |
| 1850 | 1867 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1851 | 1868 | MDRV_SCREEN_SIZE(384, 264) |
| 1852 | 1869 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 0*8, 28*8-1) |
| 1870 | ||
| 1853 | 1871 | MDRV_GFXDECODE(metlhawk) |
| 1854 | 1872 | MDRV_PALETTE_LENGTH(0x2000) |
| 1855 | 1873 |
| r1711 | r1712 | |
|---|---|---|
| 615 | 615 | MDRV_CPU_PROGRAM_MAP(route16_cpu2_map,0) |
| 616 | 616 | |
| 617 | 617 | /* video hardware */ |
| 618 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 619 | 618 | MDRV_VIDEO_UPDATE(route16) |
| 620 | 619 | |
| 621 | MDRV_SCREEN_ADD("main", | |
| 620 | MDRV_SCREEN_ADD("main", RASTER) | |
| 622 | 621 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 623 | 622 | MDRV_SCREEN_SIZE(256, 256) |
| 624 | 623 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0, 256-1) |
| 625 | 624 | MDRV_SCREEN_REFRESH_RATE(57) |
| 626 | MDRV_SCREEN_VBLANK_TIME( | |
| 625 | MDRV_SCREEN_VBLANK_TIME( | |
| 627 | 626 | |
| 628 | 627 | /* sound hardware */ |
| 629 | 628 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| r1711 | r1712 | |
|---|---|---|
| 544 | 544 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 545 | 545 | MDRV_CPU_IO_MAP(readport,writeport) |
| 546 | 546 | |
| 547 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 548 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 549 | 547 | MDRV_GFXDECODE(tecmosys) |
| 550 | 548 | |
| 551 | 549 | MDRV_NVRAM_HANDLER(93C46) |
| 552 | 550 | |
| 553 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_AFTER_VBLANK) | |
| 551 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_AFTER_VBLANK) | |
| 552 | ||
| 553 | MDRV_SCREEN_ADD("main", RASTER) | |
| 554 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 555 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 554 | 556 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 555 | 557 | MDRV_SCREEN_SIZE(64*8, 64*8) |
| 556 | 558 | MDRV_SCREEN_VISIBLE_AREA(0*8, 42*8-1, 0*8, 32*8-1) |
| 559 | ||
| 557 | 560 | MDRV_PALETTE_LENGTH(0x800+1) |
| 558 | 561 | |
| 559 | 562 | MDRV_VIDEO_START(deroon) |
| r1711 | r1712 | |
|---|---|---|
| 296 | 296 | MDRV_CPU_PERIODIC_INT(periodic_interrupt,75) |
| 297 | 297 | MDRV_CPU_VBLANK_INT(coin_interrupt,1) |
| 298 | 298 | |
| 299 | MDRV_SCREEN_REFRESH_RATE(50) | |
| 300 | ||
| 301 | 299 | MDRV_MACHINE_RESET(polyplay) |
| 302 | 300 | |
| 303 | 301 | /* video hardware */ |
| 304 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 302 | MDRV_SCREEN_ADD("main", RASTER) | |
| 303 | MDRV_SCREEN_REFRESH_RATE(50) | |
| 305 | 304 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 306 | 305 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 307 | 306 | MDRV_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 0*8, 32*8-1) |
| 307 | ||
| 308 | 308 | MDRV_GFXDECODE(polyplay) |
| 309 | 309 | MDRV_PALETTE_LENGTH(10) |
| 310 | 310 |
| r1711 | r1712 | |
|---|---|---|
| 341 | 341 | MDRV_CPU_PROGRAM_MAP(cpuc_readmem,cpuc_writemem) |
| 342 | 342 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 343 | 343 | |
| 344 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 345 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 346 | 344 | MDRV_INTERLEAVE(10) /* 10 CPU slices per frame - enough for the sound CPU to read all commands */ |
| 347 | 345 | |
| 348 | 346 | /* video hardware */ |
| 349 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 347 | MDRV_SCREEN_ADD("main", RASTER) | |
| 348 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 349 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 350 | 350 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 351 | 351 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 352 | 352 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 353 | ||
| 353 | 354 | MDRV_GFXDECODE(exzisus) |
| 354 | 355 | MDRV_PALETTE_LENGTH(1024) |
| 355 | 356 |
| r1711 | r1712 | |
|---|---|---|
| 1034 | 1034 | MDRV_NVRAM_HANDLER(exidy440) |
| 1035 | 1035 | |
| 1036 | 1036 | /* video hardware */ |
| 1037 | MDRV_ | |
| 1037 | MDRV_SC | |
| 1038 | 1038 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1039 | 1039 | MDRV_SCREEN_RAW_PARAMS(EXIDY440_PIXEL_CLOCK, EXIDY440_HTOTAL, EXIDY440_HBEND, EXIDY440_HBSTART, EXIDY440_VTOTAL, EXIDY440_VBEND, EXIDY440_VBSTART) |
| 1040 | ||
| 1040 | 1041 | MDRV_PALETTE_LENGTH(256) |
| 1041 | 1042 | |
| 1042 | 1043 | MDRV_VIDEO_START(exidy440) |
| r1711 | r1712 | |
| 1054 | 1055 | MDRV_IMPORT_FROM(exidy440) |
| 1055 | 1056 | |
| 1056 | 1057 | /* video hardware */ |
| 1058 | MDRV_SCREEN_MODIFY("main") | |
| 1057 | 1059 | MDRV_SCREEN_RAW_PARAMS(EXIDY440_PIXEL_CLOCK, EXIDY440_HTOTAL, EXIDY440_HBEND, EXIDY440_HBSTART, EXIDY440_VTOTAL, EXIDY440_VBEND, TOPSECEX_VBSTART) |
| 1058 | 1060 | |
| 1059 | 1061 | MACHINE_DRIVER_END |
| r1711 | r1712 | |
|---|---|---|
| 711 | 711 | MDRV_MACHINE_START(tx1) |
| 712 | 712 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 713 | 713 | |
| 714 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 715 | 714 | MDRV_GFXDECODE(tx1) |
| 716 | MDRV_PALETTE_LENGTH(256) | |
| 717 | MDRV_COLORTABLE_LENGTH(256+(256*4)+(2048*4)) | |
| 715 | MDRV_PALETTE_LENGTH(256+(256*4)+(2048*4)) | |
| 718 | 716 | MDRV_PALETTE_INIT(tx1) |
| 719 | 717 | MDRV_VIDEO_EOF(tx1) |
| 720 | 718 | |
| 721 | 719 | MDRV_DEFAULT_LAYOUT(layout_triphsxs) |
| 722 | 720 | |
| 723 | MDRV_SCREEN_ADD("left", | |
| 721 | MDRV_SCREEN_ADD("left", RASTER) | |
| 724 | 722 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 725 | 723 | MDRV_SCREEN_REFRESH_RATE(60) |
| 726 | 724 | MDRV_SCREEN_RAW_PARAMS(TX1_PIXEL_CLOCK, TX1_HTOTAL, TX1_HBEND, TX1_HBSTART, TX1_VTOTAL, TX1_VBEND, TX1_VBSTART) |
| 727 | 725 | |
| 728 | MDRV_SCREEN_ADD("center", | |
| 726 | MDRV_SCREEN_ADD("center", RASTER) | |
| 729 | 727 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 730 | 728 | MDRV_SCREEN_RAW_PARAMS(TX1_PIXEL_CLOCK, TX1_HTOTAL, TX1_HBEND, TX1_HBSTART, TX1_VTOTAL, TX1_VBEND, TX1_VBSTART) |
| 731 | 729 | |
| 732 | MDRV_SCREEN_ADD("right", | |
| 730 | MDRV_SCREEN_ADD("right", RASTER) | |
| 733 | 731 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 734 | 732 | MDRV_SCREEN_RAW_PARAMS(TX1_PIXEL_CLOCK, TX1_HTOTAL, TX1_HBEND, TX1_HBSTART, TX1_VTOTAL, TX1_VBEND, TX1_VBSTART) |
| 735 | 733 | |
| r1711 | r1712 | |
| 768 | 766 | MDRV_MACHINE_START(buggyboy) |
| 769 | 767 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 770 | 768 | |
| 771 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 772 | 769 | MDRV_GFXDECODE(buggyboy) |
| 773 | 770 | MDRV_DEFAULT_LAYOUT(layout_triphsxs) |
| 774 | 771 | |
| 775 | MDRV_SCREEN_ADD("left", | |
| 772 | MDRV_SCREEN_ADD("left", RASTER) | |
| 776 | 773 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 777 | 774 | MDRV_SCREEN_RAW_PARAMS(BB_PIXEL_CLOCK, BB_HTOTAL, BB_HBEND, BB_HBSTART, BB_VTOTAL, BB_VBEND, BB_VBSTART) |
| 778 | 775 | |
| 779 | MDRV_SCREEN_ADD("center", | |
| 776 | MDRV_SCREEN_ADD("center", RASTER) | |
| 780 | 777 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 781 | 778 | MDRV_SCREEN_RAW_PARAMS(BB_PIXEL_CLOCK, BB_HTOTAL, BB_HBEND, BB_HBSTART, BB_VTOTAL, BB_VBEND, BB_VBSTART) |
| 782 | 779 | |
| 783 | MDRV_SCREEN_ADD("right", | |
| 780 | MDRV_SCREEN_ADD("right", RASTER) | |
| 784 | 781 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 785 | 782 | MDRV_SCREEN_RAW_PARAMS(BB_PIXEL_CLOCK, BB_HTOTAL, BB_HBEND, BB_HBSTART, BB_VTOTAL, BB_VBEND, BB_VBSTART) |
| 786 | 783 | |
| 787 | MDRV_PALETTE_LENGTH(256) | |
| 788 | MDRV_COLORTABLE_LENGTH(256+(256*4)+(2048*4)) | |
| 784 | MDRV_PALETTE_LENGTH(256+(256*4)+(2048*4)) | |
| 789 | 785 | MDRV_PALETTE_INIT(buggyboy) |
| 790 | 786 | MDRV_VIDEO_START(buggyboy) |
| 791 | 787 | MDRV_VIDEO_UPDATE(buggyboy) |
| r1711 | r1712 | |
| 825 | 821 | MDRV_MACHINE_START(buggybjr) |
| 826 | 822 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 827 | 823 | |
| 828 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 829 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 830 | 824 | |
| 825 | MDRV_SCREEN_ADD("main", RASTER) | |
| 826 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 831 | 827 | #if 0 |
| 832 | 828 | MDRV_SCREEN_RAW_PARAMS(BB_PIXEL_CLOCK, BB_HTOTAL, BB_HBEND, BB_HBSTART, BB_VTOTAL, BB_VBEND, BB_VBSTART) |
| 833 | 829 | #else |
| r1711 | r1712 | |
| 836 | 832 | MDRV_SCREEN_SIZE(256, 256) |
| 837 | 833 | MDRV_SCREEN_VISIBLE_AREA(0, 255, 0, 239) |
| 838 | 834 | #endif |
| 839 | MDRV_GFXDECODE(buggyboy) | |
| 840 | MDRV_PALETTE_LENGTH(256) | |
| 841 | MDRV_COLORTABLE_LENGTH(256) | |
| 842 | MDRV_PALETTE_INIT(buggyboy) | |
| 835 | ||
| 836 | MDRV_PALETTE_LENGTH(512) | |
| 837 | MDRV_PALETTE_INIT(buggybjr) | |
| 843 | 838 | MDRV_VIDEO_START(buggybjr) |
| 844 | 839 | MDRV_VIDEO_UPDATE(buggybjr) |
| 845 | 840 | MDRV_VIDEO_EOF(buggyboy) |
| r1711 | r1712 | |
|---|---|---|
| 469 | 469 | MDRV_CPU_IO_MAP(copio,0) |
| 470 | 470 | |
| 471 | 471 | /* video */ |
| 472 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 473 | 472 | |
| 473 | MDRV_SCREEN_ADD("main", RASTER) | |
| 474 | 474 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 475 | 475 | MDRV_SCREEN_REFRESH_RATE(60) |
| 476 | MDRV_SCREEN_VBLANK_TIME( | |
| 476 | MDRV_SCREEN_VBLANK_TIME( | |
| 477 | 477 | MDRV_SCREEN_SIZE(32*10, 32*8) |
| 478 | 478 | MDRV_SCREEN_VISIBLE_AREA(0*10, 32*10-1, 0*8, 32*8-1) |
| 479 | 479 |
| r1711 | r1712 | |
|---|---|---|
| 245 | 245 | MDRV_CPU_PROGRAM_MAP(genesis_z80_readmem, genesis_z80_writemem) |
| 246 | 246 | MDRV_CPU_VBLANK_INT(irq0_line_hold, 1) /* from vdp at scanline 0xe0 */ |
| 247 | 247 | |
| 248 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 249 | ||
| 250 | 248 | MDRV_INTERLEAVE(100) |
| 251 | 249 | |
| 252 | 250 | MDRV_MACHINE_START(genesis) |
| 253 | 251 | MDRV_MACHINE_RESET(genesis) |
| 254 | 252 | |
| 255 | 253 | /* video hardware */ |
| 256 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS) | |
| 254 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS) | |
| 255 | ||
| 256 | MDRV_SCREEN_ADD("main", RASTER) | |
| 257 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 257 | 258 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 258 | 259 | MDRV_SCREEN_SIZE(342,262) |
| 259 | 260 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 223) |
| 261 | ||
| 260 | 262 | MDRV_PALETTE_LENGTH(64) |
| 261 | 263 | |
| 262 | 264 | MDRV_VIDEO_START(genesis) |
| r1711 | r1712 | |
| 279 | 281 | |
| 280 | 282 | /* video hardware */ |
| 281 | 283 | MDRV_VIDEO_START(genesis) |
| 284 | MDRV_SCREEN_MODIFY("main") | |
| 282 | 285 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 223) |
| 283 | 286 | |
| 284 | 287 | /* sound hardware */ |
| r1711 | r1712 | |
|---|---|---|
| 799 | 799 | MDRV_CPU_IO_MAP(trvwhiz_io_map,0) |
| 800 | 800 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 801 | 801 | |
| 802 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 803 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 804 | ||
| 805 | 802 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 806 | 803 | MDRV_MACHINE_RESET(merit) |
| 807 | 804 | |
| 808 | 805 | /* video hardware */ |
| 809 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 806 | MDRV_SCREEN_ADD("main", RASTER) | |
| 807 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 808 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 810 | 809 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 811 | 810 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 812 | 811 | MDRV_SCREEN_VISIBLE_AREA(0, 64*8-1, 1*8, 32*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 566 | 566 | /* audio CPU */ /* Accurate */ |
| 567 | 567 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 568 | 568 | |
| 569 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 570 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529)) | |
| 571 | 569 | MDRV_INTERLEAVE(140) /* 140 CPU slices per frame */ |
| 572 | 570 | |
| 573 | 571 | /* video hardware */ |
| 574 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 572 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 573 | ||
| 574 | MDRV_SCREEN_ADD("main", RASTER) | |
| 575 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 576 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529)) | |
| 575 | 577 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 576 | 578 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 577 | 579 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 580 | ||
| 578 | 581 | MDRV_GFXDECODE(dassault) |
| 579 | 582 | MDRV_PALETTE_LENGTH(4096) |
| 580 | 583 |
| r1711 | r1712 | |
|---|---|---|
| 190 | 190 | MDRV_CPU_ADD_TAG("main", Z80, 18432000/6) /* 3.072 MHz */ |
| 191 | 191 | MDRV_CPU_PROGRAM_MAP(dambustr_readmem, dambustr_writemem) |
| 192 | 192 | |
| 193 | MDRV_SCREEN_REFRESH_RATE(16000.0/132/2) | |
| 194 | ||
| 195 | 193 | MDRV_MACHINE_RESET(galaxian) |
| 196 | 194 | |
| 197 | 195 | /* video hardware */ |
| 198 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 196 | MDRV_SCREEN_ADD("main", RASTER) | |
| 197 | MDRV_SCREEN_REFRESH_RATE(16000.0/132/2) | |
| 199 | 198 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 200 | 199 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 201 | 200 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 201 | ||
| 202 | 202 | MDRV_GFXDECODE(dambustr) |
| 203 | 203 | MDRV_PALETTE_LENGTH(32+2+64+8) /* 32 for the characters, 2 for the bullets, 64 for the stars, 8 for the background */ |
| 204 | 204 |
| r1711 | r1712 | |
|---|---|---|
| 459 | 459 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 460 | 460 | MDRV_CPU_VBLANK_INT(pingpong_interrupt,16) /* 1 IRQ + 8 NMI */ |
| 461 | 461 | |
| 462 | /* video hardware */ | |
| 463 | MDRV_SCREEN_ADD("main", RASTER) | |
| 462 | 464 | MDRV_SCREEN_REFRESH_RATE(60) |
| 463 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 464 | ||
| 465 | /* video hardware */ | |
| 466 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 465 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 467 | 466 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 468 | 467 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 469 | 468 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 469 | ||
| 470 | 470 | MDRV_GFXDECODE(pingpong) |
| 471 | 471 | MDRV_PALETTE_LENGTH(64*4+64*4) |
| 472 | 472 |
| r1711 | r1712 | |
|---|---|---|
| 175 | 175 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 176 | 176 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 177 | 177 | |
| 178 | /* video hardware */ | |
| 179 | MDRV_SCREEN_ADD("main", RASTER) | |
| 178 | 180 | MDRV_SCREEN_REFRESH_RATE(60) |
| 179 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 180 | ||
| 181 | /* video hardware */ | |
| 182 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 181 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 183 | 182 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 184 | 183 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 185 | 184 | MDRV_SCREEN_VISIBLE_AREA(2*8, 30*8-1, 3*8, 32*8-1) |
| 185 | ||
| 186 | 186 | MDRV_GFXDECODE(ssrj) |
| 187 | 187 | MDRV_PALETTE_LENGTH(128) |
| 188 | 188 | MDRV_PALETTE_INIT(ssrj) |
| r1711 | r1712 | |
|---|---|---|
| 203 | 203 | MDRV_NVRAM_HANDLER(atarigen) |
| 204 | 204 | |
| 205 | 205 | /* video hardware */ |
| 206 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 206 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 207 | 207 | MDRV_GFXDECODE(blstroid) |
| 208 | 208 | MDRV_PALETTE_LENGTH(512) |
| 209 | 209 | |
| 210 | MDRV_SCREEN_ADD("main", | |
| 210 | MDRV_SCREEN_ADD("main", RASTER) | |
| 211 | 211 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 212 | 212 | /* note: these parameters are from published specs, not derived */ |
| 213 | 213 | /* the board uses an SOS-2 chip to generate video signals */ |
| r1711 | r1712 | |
|---|---|---|
| 202 | 202 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 203 | 203 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 204 | 204 | |
| 205 | /* video hardware */ | |
| 206 | MDRV_SCREEN_ADD("main", RASTER) | |
| 205 | 207 | MDRV_SCREEN_REFRESH_RATE(60) |
| 206 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 207 | ||
| 208 | /* video hardware */ | |
| 209 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 208 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 210 | 209 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 211 | 210 | MDRV_SCREEN_SIZE(36*8, 32*8) |
| 212 | 211 | MDRV_SCREEN_VISIBLE_AREA(0, 36*8-1, 2*8, 30*8-1) |
| 212 | ||
| 213 | 213 | MDRV_GFXDECODE(gotya) |
| 214 | 214 | MDRV_PALETTE_LENGTH(16*4) |
| 215 | 215 |
| r1711 | r1712 | |
|---|---|---|
| 60 | 60 | MDRV_CPU_IO_MAP(gtipoker_iomap,0) |
| 61 | 61 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 62 | 62 | |
| 63 | /* video hardware */ | |
| 64 | MDRV_SCREEN_ADD("main", RASTER) | |
| 63 | 65 | MDRV_SCREEN_REFRESH_RATE(60) |
| 64 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 65 | ||
| 66 | /* video hardware */ | |
| 67 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 66 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 68 | 67 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 69 | 68 | MDRV_SCREEN_SIZE(256, 256) |
| 70 | 69 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 16, 256-16-1) |
| 70 | ||
| 71 | 71 | MDRV_GFXDECODE(gtipoker) |
| 72 | 72 | MDRV_PALETTE_LENGTH(0x100) |
| 73 | 73 |
| r1711 | r1712 | |
|---|---|---|
| 177 | 177 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 178 | 178 | MDRV_CPU_PERIODIC_INT(aztarac_snd_timed_irq, 100) |
| 179 | 179 | |
| 180 | MDRV_SCREEN_REFRESH_RATE(40) | |
| 181 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 182 | ||
| 183 | 180 | MDRV_MACHINE_RESET(aztarac) |
| 184 | 181 | MDRV_NVRAM_HANDLER(generic_1fill) |
| 185 | 182 | |
| 186 | 183 | /* video hardware */ |
| 187 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_VECTOR ) | |
| 188 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) | |
| 184 | MDRV_SCREEN_ADD("main", VECTOR) | |
| 185 | MDRV_SCREEN_REFRESH_RATE(40) | |
| 189 | 186 | MDRV_SCREEN_SIZE(400, 300) |
| 190 | 187 | MDRV_SCREEN_VISIBLE_AREA(0, 1024-1, 0, 768-1) |
| 188 | ||
| 191 | 189 | MDRV_PALETTE_LENGTH(32768) |
| 192 | 190 | |
| 193 | 191 | MDRV_VIDEO_START(aztarac) |
| r1711 | r1712 | |
|---|---|---|
| 837 | 837 | MDRV_CPU_ADD(Z80, 8000000) //??? |
| 838 | 838 | MDRV_CPU_PROGRAM_MAP(apache3_z80_map,0) |
| 839 | 839 | |
| 840 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 841 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 842 | 840 | MDRV_INTERLEAVE(100) |
| 843 | 841 | |
| 844 | 842 | /* video hardware */ |
| 845 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 843 | MDRV_SCREEN_ADD("main", RASTER) | |
| 844 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 845 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 846 | 846 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 847 | 847 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 848 | 848 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 30*8-1) |
| 849 | ||
| 849 | 850 | MDRV_GFXDECODE(apache3) |
| 850 | 851 | MDRV_PALETTE_LENGTH(1024 + 4096) /* 1024 real colours, and 4096 arranged as series of cluts */ |
| 851 | 852 | |
| r1711 | r1712 | |
| 879 | 880 | MDRV_CPU_ADD(Z80, 4000000) //??? |
| 880 | 881 | MDRV_CPU_PROGRAM_MAP(roundup5_z80_map,0) |
| 881 | 882 | |
| 882 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 883 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 884 | 883 | MDRV_INTERLEAVE(100) |
| 885 | 884 | |
| 886 | 885 | /* video hardware */ |
| 887 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 886 | MDRV_SCREEN_ADD("main", RASTER) | |
| 887 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 888 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 888 | 889 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 889 | 890 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 890 | 891 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 30*8-1) |
| 892 | ||
| 891 | 893 | MDRV_GFXDECODE(roundup5) |
| 892 | 894 | MDRV_PALETTE_LENGTH(1024 + 4096) /* 1024 real colours, and 4096 arranged as series of cluts */ |
| 893 | 895 | |
| r1711 | r1712 | |
| 922 | 924 | MDRV_CPU_ADD(Z80, 16000000 / 4) /* Confirmed */ |
| 923 | 925 | MDRV_CPU_PROGRAM_MAP(cyclwarr_z80_map,0) |
| 924 | 926 | |
| 925 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 926 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 927 | 927 | MDRV_INTERLEAVE(200) |
| 928 | 928 | |
| 929 | 929 | /* video hardware */ |
| 930 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 930 | MDRV_SCREEN_ADD("main", RASTER) | |
| 931 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 932 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 931 | 933 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 932 | 934 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 933 | 935 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 30*8-1) |
| 936 | ||
| 934 | 937 | MDRV_GFXDECODE(cyclwarr) |
| 935 | 938 | MDRV_PALETTE_LENGTH(8192 + 8192) |
| 936 | 939 | |
| r1711 | r1712 | |
| 965 | 968 | MDRV_CPU_ADD(Z80, 16000000 / 4) /* Confirmed */ |
| 966 | 969 | MDRV_CPU_PROGRAM_MAP(cyclwarr_z80_map,0) |
| 967 | 970 | |
| 968 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 969 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 970 | 971 | MDRV_INTERLEAVE(200) |
| 971 | 972 | |
| 972 | 973 | /* video hardware */ |
| 973 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 974 | MDRV_SCREEN_ADD("main", RASTER) | |
| 975 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 976 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 974 | 977 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 975 | 978 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 976 | 979 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 30*8-1) |
| 980 | ||
| 977 | 981 | MDRV_GFXDECODE(cyclwarr) |
| 978 | 982 | MDRV_PALETTE_LENGTH(8192 + 8192) |
| 979 | 983 |
| r1711 | r1712 | |
|---|---|---|
| 382 | 382 | /* audio CPU */ |
| 383 | 383 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 384 | 384 | |
| 385 | /* video hardware */ | |
| 386 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 387 | ||
| 388 | MDRV_SCREEN_ADD("main", RASTER) | |
| 385 | 389 | MDRV_SCREEN_REFRESH_RATE(58) |
| 386 | 390 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529)) |
| 387 | ||
| 388 | /* video hardware */ | |
| 389 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 390 | 391 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 391 | 392 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 392 | 393 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 394 | ||
| 393 | 395 | MDRV_GFXDECODE(supbtime) |
| 394 | 396 | MDRV_PALETTE_LENGTH(1024) |
| 395 | 397 | |
| r1711 | r1712 | |
| 421 | 423 | /* audio CPU */ |
| 422 | 424 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 423 | 425 | |
| 426 | /* video hardware */ | |
| 427 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 428 | ||
| 429 | MDRV_SCREEN_ADD("main", RASTER) | |
| 424 | 430 | MDRV_SCREEN_REFRESH_RATE(58) |
| 425 | 431 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529)) |
| 426 | ||
| 427 | /* video hardware */ | |
| 428 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 429 | 432 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 430 | 433 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 431 | 434 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 435 | ||
| 432 | 436 | MDRV_GFXDECODE(supbtime) |
| 433 | 437 | MDRV_PALETTE_LENGTH(1024) |
| 434 | 438 |
| r1711 | r1712 | |
|---|---|---|
| 388 | 388 | MDRV_CPU_PROGRAM_MAP(blmbycar_readmem,blmbycar_writemem) |
| 389 | 389 | MDRV_CPU_VBLANK_INT(irq1_line_hold,1) |
| 390 | 390 | |
| 391 | /* video hardware */ | |
| 392 | MDRV_SCREEN_ADD("main", RASTER) | |
| 391 | 393 | MDRV_SCREEN_REFRESH_RATE(60) |
| 392 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 393 | ||
| 394 | /* video hardware */ | |
| 395 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 394 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 396 | 395 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 397 | 396 | MDRV_SCREEN_SIZE(0x180, 0x100) |
| 398 | 397 | MDRV_SCREEN_VISIBLE_AREA(0, 0x180-1, 0, 0x100-1) |
| 398 | ||
| 399 | 399 | MDRV_GFXDECODE(blmbycar) |
| 400 | 400 | MDRV_PALETTE_LENGTH(0x300) |
| 401 | 401 | |
| r1711 | r1712 | |
| 418 | 418 | MDRV_CPU_PROGRAM_MAP(watrball_readmem,watrball_writemem) |
| 419 | 419 | MDRV_CPU_VBLANK_INT(irq1_line_hold,1) |
| 420 | 420 | |
| 421 | /* video hardware */ | |
| 422 | MDRV_SCREEN_ADD("main", RASTER) | |
| 421 | 423 | MDRV_SCREEN_REFRESH_RATE(60) |
| 422 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 423 | ||
| 424 | /* video hardware */ | |
| 425 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 424 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 426 | 425 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 427 | 426 | MDRV_SCREEN_SIZE(0x180, 0x100) |
| 428 | 427 | MDRV_SCREEN_VISIBLE_AREA(0, 0x180-1, 16, 0x100-1) |
| 428 | ||
| 429 | 429 | MDRV_GFXDECODE(blmbycar) |
| 430 | 430 | MDRV_PALETTE_LENGTH(0x300) |
| 431 | 431 |
| r1711 | r1712 | |
|---|---|---|
| 408 | 408 | MDRV_MACHINE_RESET(toratora) |
| 409 | 409 | |
| 410 | 410 | /* video hardware */ |
| 411 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 412 | 411 | MDRV_VIDEO_UPDATE(toratora) |
| 413 | 412 | |
| 414 | MDRV_SCREEN_ADD("main", | |
| 413 | MDRV_SCREEN_ADD("main", RASTER) | |
| 415 | 414 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 416 | 415 | MDRV_SCREEN_SIZE(256, 256) |
| 417 | 416 | MDRV_SCREEN_VISIBLE_AREA(0,256-1,8,248-1) |
| 418 | 417 | MDRV_SCREEN_REFRESH_RATE(60) |
| 419 | MDRV_SCREEN_VBLANK_TIME( | |
| 418 | MDRV_SCREEN_VBLANK_TIME( | |
| 420 | 419 | |
| 421 | 420 | /* audio hardware */ |
| 422 | 421 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| r1711 | r1712 | |
|---|---|---|
| 380 | 380 | MDRV_CPU_ADD_TAG("68705", M68705,18432000/6) /* 3.072 MHz? */ |
| 381 | 381 | MDRV_CPU_PROGRAM_MAP(mcu_map,0) |
| 382 | 382 | |
| 383 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 384 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 385 | 383 | MDRV_INTERLEAVE(100) /* 100 CPU slices per frame - enough for the sound CPU to read all commands */ |
| 386 | 384 | |
| 387 | 385 | /* video hardware */ |
| 388 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 386 | MDRV_SCREEN_ADD("main", RASTER) | |
| 387 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 388 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 389 | 389 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 390 | 390 | MDRV_SCREEN_SIZE(36*8, 28*8) |
| 391 | 391 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 0*8, 28*8-1) |
| 392 | ||
| 392 | 393 | MDRV_GFXDECODE(retofinv) |
| 393 | 394 | MDRV_PALETTE_LENGTH(256*2+64*16+64*16) |
| 394 | 395 |
| r1711 | r1712 | |
|---|---|---|
| 305 | 305 | /* audio CPU */ /* ? */ |
| 306 | 306 | MDRV_CPU_PROGRAM_MAP(gbusters_readmem_sound,gbusters_writemem_sound) |
| 307 | 307 | |
| 308 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 309 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 310 | ||
| 311 | 308 | MDRV_MACHINE_RESET(gbusters) |
| 312 | 309 | |
| 313 | 310 | /* video hardware */ |
| 314 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS) | |
| 311 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 312 | ||
| 313 | MDRV_SCREEN_ADD("main", RASTER) | |
| 314 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 315 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 315 | 316 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 316 | 317 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 317 | 318 | MDRV_SCREEN_VISIBLE_AREA(14*8, (64-14)*8-1, 2*8, 30*8-1 ) |
| 319 | ||
| 318 | 320 | MDRV_PALETTE_LENGTH(1024) |
| 319 | 321 | |
| 320 | 322 | MDRV_VIDEO_START(gbusters) |
| r1711 | r1712 | |
|---|---|---|
| 621 | 621 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 622 | 622 | MDRV_CPU_PERIODIC_INT(sound_interrupt, (double)5000000/131072) |
| 623 | 623 | |
| 624 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 625 | 624 | MDRV_INTERLEAVE(10) |
| 626 | 625 | |
| 627 | 626 | /* video hardware */ |
| 628 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 627 | MDRV_SCREEN_ADD("main", RASTER) | |
| 628 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 629 | 629 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 630 | 630 | MDRV_SCREEN_SIZE(32*8, 30*8) |
| 631 | 631 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 632 | ||
| 632 | 633 | MDRV_GFXDECODE(meadows) |
| 633 | 634 | MDRV_PALETTE_LENGTH(2) |
| 634 | 635 | |
| r1711 | r1712 | |
| 656 | 657 | MDRV_CPU_IO_MAP(minferno_readport,0) |
| 657 | 658 | MDRV_CPU_VBLANK_INT(minferno_interrupt,1) |
| 658 | 659 | |
| 660 | /* video hardware */ | |
| 661 | MDRV_SCREEN_ADD("main", RASTER) | |
| 659 | 662 | MDRV_SCREEN_REFRESH_RATE(60) |
| 660 | ||
| 661 | /* video hardware */ | |
| 662 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 663 | 663 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 664 | 664 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 665 | 665 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 24*8-1) |
| 666 | ||
| 666 | 667 | MDRV_GFXDECODE(minferno) |
| 667 | 668 | MDRV_PALETTE_LENGTH(2) |
| 668 | 669 |
| r1711 | r1712 | |
|---|---|---|
| 70 | 70 | MDRV_CPU_IO_MAP(readport,writeport) |
| 71 | 71 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 72 | 72 | |
| 73 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 74 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 75 | ||
| 76 | 73 | /* video hardware */ |
| 77 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 78 | 74 | MDRV_VIDEO_UPDATE(dotrikun) |
| 79 | 75 | |
| 76 | MDRV_SCREEN_ADD("main", RASTER) | |
| 77 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 78 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 80 | 79 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 81 | 80 | MDRV_SCREEN_SIZE(256, 256) |
| 82 | 81 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0, 192-1) |
| r1711 | r1712 | |
|---|---|---|
| 229 | 229 | MDRV_CPU_PROGRAM_MAP(bogeyman_map, 0) |
| 230 | 230 | MDRV_CPU_VBLANK_INT(irq0_line_hold, 16) // Controls sound |
| 231 | 231 | |
| 232 | // video hardware | |
| 233 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 234 | ||
| 235 | MDRV_SCREEN_ADD("main", RASTER) | |
| 232 | 236 | MDRV_SCREEN_REFRESH_RATE(60) |
| 233 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 234 | ||
| 235 | // video hardware | |
| 236 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 237 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 237 | 238 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 238 | 239 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 239 | 240 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 977 | 977 | MDRV_NVRAM_HANDLER(atarigen) |
| 978 | 978 | |
| 979 | 979 | /* video hardware */ |
| 980 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 980 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 981 | 981 | MDRV_PALETTE_LENGTH(1024) |
| 982 | 982 | |
| 983 | MDRV_SCREEN_ADD("main", | |
| 983 | MDRV_SCREEN_ADD("main", RASTER) | |
| 984 | 984 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 985 | 985 | MDRV_SCREEN_RAW_PARAMS(4000000*4, 160*4, 0, 127*4, 417, 0, 384) |
| 986 | 986 | |
| r1711 | r1712 | |
| 3425 | 3425 | memory_install_write16_handler(hdcpu_main, ADDRESS_SPACE_PROGRAM, 0x823800, 0x823fff, 0, 0, hd68k_ds3_control_w); |
| 3426 | 3426 | |
| 3427 | 3427 | /* if we have a sound DSP, boot it */ |
| 3428 | if (hdcpu_sound != -1 && machine-> | |
| 3428 | if (hdcpu_sound != -1 && machine->config->cpu[hdcpu_sound].type == CPU_ADSP2105) | |
| 3429 | 3429 | adsp2105_load_boot_data((UINT8 *)(memory_region(REGION_CPU1 + hdcpu_sound) + 0x10000), |
| 3430 | 3430 | (UINT32 *)(memory_region(REGION_CPU1 + hdcpu_sound))); |
| 3431 | if (hdcpu_sounddsp != -1 && machine-> | |
| 3431 | if (hdcpu_sounddsp != -1 && machine->config->cpu[hdcpu_sounddsp].type == CPU_ADSP2105) | |
| 3432 | 3432 | adsp2105_load_boot_data((UINT8 *)(memory_region(REGION_CPU1 + hdcpu_sounddsp) + 0x10000), |
| 3433 | 3433 | (UINT32 *)(memory_region(REGION_CPU1 + hdcpu_sounddsp))); |
| 3434 | 3434 |
| r1711 | r1712 | |
|---|---|---|
| 1078 | 1078 | MDRV_CPU_PROGRAM_MAP(srmp2_readmem,srmp2_writemem) |
| 1079 | 1079 | MDRV_CPU_VBLANK_INT(srmp2_interrupt,16) /* Interrupt times is not understood */ |
| 1080 | 1080 | |
| 1081 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1082 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1083 | ||
| 1084 | 1081 | MDRV_MACHINE_RESET(srmp2) |
| 1085 | 1082 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 1086 | 1083 | |
| 1087 | 1084 | /* video hardware */ |
| 1088 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1085 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1086 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1087 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1089 | 1088 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1090 | 1089 | MDRV_SCREEN_SIZE(464, 256-16) |
| 1091 | 1090 | MDRV_SCREEN_VISIBLE_AREA(16, 464-1, 8, 256-1-24) |
| 1091 | ||
| 1092 | 1092 | MDRV_GFXDECODE(srmp2) |
| 1093 | MDRV_PALETTE_LENGTH(1024) | |
| 1094 | MDRV_COLORTABLE_LENGTH(1024) /* sprites only */ | |
| 1093 | MDRV_PALETTE_LENGTH(1024) /* sprites only */ | |
| 1095 | 1094 | |
| 1096 | 1095 | MDRV_PALETTE_INIT(srmp2) |
| 1097 | 1096 | MDRV_VIDEO_UPDATE(srmp2) /* just draw the sprites */ |
| r1711 | r1712 | |
| 1119 | 1118 | MDRV_CPU_IO_MAP(srmp3_readport,srmp3_writeport) |
| 1120 | 1119 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 1121 | 1120 | |
| 1122 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1123 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1124 | ||
| 1125 | 1121 | MDRV_MACHINE_RESET(srmp3) |
| 1126 | 1122 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 1127 | 1123 | |
| 1128 | 1124 | /* video hardware */ |
| 1129 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1125 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1126 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1127 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1130 | 1128 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1131 | 1129 | MDRV_SCREEN_SIZE(400, 256-16) |
| 1132 | 1130 | MDRV_SCREEN_VISIBLE_AREA(16, 400-1, 8, 256-1-24) |
| 1131 | ||
| 1133 | 1132 | MDRV_GFXDECODE(srmp3) |
| 1134 | 1133 | MDRV_PALETTE_LENGTH(512) /* sprites only */ |
| 1135 | 1134 | |
| r1711 | r1712 | |
| 1156 | 1155 | MDRV_CPU_PROGRAM_MAP(mjyuugi_readmem,mjyuugi_writemem) |
| 1157 | 1156 | MDRV_CPU_VBLANK_INT(srmp2_interrupt,16) /* Interrupt times is not understood */ |
| 1158 | 1157 | |
| 1159 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1160 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1161 | ||
| 1162 | 1158 | MDRV_MACHINE_RESET(srmp2) |
| 1163 | 1159 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 1164 | 1160 | |
| 1165 | 1161 | /* video hardware */ |
| 1166 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1162 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1163 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1164 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1167 | 1165 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1168 | 1166 | MDRV_SCREEN_SIZE(400, 256-16) |
| 1169 | 1167 | MDRV_SCREEN_VISIBLE_AREA(16, 400-1, 0, 256-1-16) |
| 1168 | ||
| 1170 | 1169 | MDRV_GFXDECODE(srmp3) |
| 1171 | 1170 | MDRV_PALETTE_LENGTH(512) /* sprites only */ |
| 1172 | 1171 |
| r1711 | r1712 | |
|---|---|---|
| 76 | 76 | #include "sound/dac.h" |
| 77 | 77 | #include "sound/2151intf.h" |
| 78 | 78 | #include "m72.h" |
| 79 | #include "cpu/nec/nec.h" | |
| 79 | 80 | |
| 80 | 81 | |
| 81 | 82 | #define MASTER_CLOCK XTAL_32MHz |
| r1711 | r1712 | |
| 1920 | 1921 | static MACHINE_DRIVER_START( rtype ) |
| 1921 | 1922 | |
| 1922 | 1923 | /* basic machine hardware */ |
| 1923 | MDRV_CPU_ADD(V30,MASTER_CLOCK/2/2) /* 16 MHz external freq (8MHz internal) */ | |
| 1924 | MDRV_CPU_ADD_TAG("main",V30,MASTER_CLOCK/2/2) /* 16 MHz external freq (8MHz internal) */ | |
| 1924 | 1925 | MDRV_CPU_PROGRAM_MAP(rtype_map,0) |
| 1925 | 1926 | MDRV_CPU_IO_MAP(m72_portmap,0) |
| 1926 | 1927 | |
| 1927 | MDRV_CPU_ADD(Z80, SOUND_CLOCK) | |
| 1928 | MDRV_CPU_ADD_TAG("sound",Z80, SOUND_CLOCK) | |
| 1928 | 1929 | MDRV_CPU_PROGRAM_MAP(sound_ram_map,0) |
| 1929 | 1930 | MDRV_CPU_IO_MAP(sound_portmap,0) |
| 1930 | 1931 | /* IRQs are generated by main Z80 and YM2151 */ |
| r1711 | r1712 | |
| 1933 | 1934 | MDRV_MACHINE_RESET(m72) |
| 1934 | 1935 | |
| 1935 | 1936 | /* video hardware */ |
| 1936 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1937 | 1937 | MDRV_GFXDECODE(m72) |
| 1938 | 1938 | MDRV_PALETTE_LENGTH(512) |
| 1939 | 1939 | |
| 1940 | MDRV_SCREEN_ADD("main", | |
| 1940 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1941 | 1941 | MDRV_SCREEN_RAW_PARAMS(MASTER_CLOCK/4, 512, 64, 448, 284, 0, 256) |
| 1942 | 1942 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1943 | 1943 | |
| r1711 | r1712 | |
| 1986 | 1986 | static MACHINE_DRIVER_START( m72 ) |
| 1987 | 1987 | |
| 1988 | 1988 | /* basic machine hardware */ |
| 1989 | MDRV_CPU_ADD(V30,MASTER_CLOCK/2/2) /* 16 MHz external freq (8MHz internal) */ | |
| 1989 | MDRV_CPU_ADD_TAG("main",V30,MASTER_CLOCK/2/2) /* 16 MHz external freq (8MHz internal) */ | |
| 1990 | 1990 | MDRV_CPU_PROGRAM_MAP(m72_map,0) |
| 1991 | 1991 | MDRV_CPU_IO_MAP(m72_portmap,0) |
| 1992 | 1992 | |
| 1993 | MDRV_CPU_ADD(Z80, SOUND_CLOCK) | |
| 1993 | MDRV_CPU_ADD_TAG("sound",Z80, SOUND_CLOCK) | |
| 1994 | 1994 | MDRV_CPU_PROGRAM_MAP(sound_ram_map,0) |
| 1995 | 1995 | MDRV_CPU_IO_MAP(sound_portmap,0) |
| 1996 | 1996 | MDRV_CPU_VBLANK_INT(fake_nmi,128) /* clocked by V1? (Vigilante) */ |
| r1711 | r1712 | |
| 2000 | 2000 | MDRV_MACHINE_RESET(m72) |
| 2001 | 2001 | |
| 2002 | 2002 | /* video hardware */ |
| 2003 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2004 | 2003 | MDRV_GFXDECODE(m72) |
| 2005 | 2004 | MDRV_PALETTE_LENGTH(512) |
| 2006 | 2005 | |
| 2007 | MDRV_SCREEN_ADD("main", | |
| 2006 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2008 | 2007 | MDRV_SCREEN_RAW_PARAMS(MASTER_CLOCK/4, 512, 64, 448, 284, 0, 256) |
| 2009 | 2008 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2010 | 2009 | |
| r1711 | r1712 | |
| 2027 | 2026 | static MACHINE_DRIVER_START( m72_8751 ) |
| 2028 | 2027 | MDRV_IMPORT_FROM(m72) |
| 2029 | 2028 | |
| 2030 | MDRV_CPU_ADD(I8751, 8000000) | |
| 2029 | MDRV_CPU_ADD_TAG("mcu",I8751, 8000000) | |
| 2031 | 2030 | MDRV_CPU_PROGRAM_MAP(mcu_map,0) |
| 2032 | 2031 | MDRV_CPU_DATA_MAP(mcu_data_map,0) |
| 2033 | 2032 | MDRV_CPU_VBLANK_INT(irq0_line_pulse,1) |
| r1711 | r1712 | |
| 2037 | 2036 | static MACHINE_DRIVER_START( dkgenm72 ) |
| 2038 | 2037 | |
| 2039 | 2038 | /* basic machine hardware */ |
| 2040 | MDRV_CPU_ADD(V30,MASTER_CLOCK/2/2) /* 16 MHz external freq (8MHz internal) */ | |
| 2039 | MDRV_CPU_ADD_TAG("main",V30,MASTER_CLOCK/2/2) /* 16 MHz external freq (8MHz internal) */ | |
| 2041 | 2040 | MDRV_CPU_PROGRAM_MAP(m72_map,0) |
| 2042 | 2041 | MDRV_CPU_IO_MAP(m72_portmap,0) |
| 2043 | 2042 | |
| 2044 | MDRV_CPU_ADD(Z80, SOUND_CLOCK) | |
| 2043 | MDRV_CPU_ADD_TAG("sound",Z80, SOUND_CLOCK) | |
| 2045 | 2044 | MDRV_CPU_PROGRAM_MAP(sound_ram_map,0) |
| 2046 | 2045 | MDRV_CPU_IO_MAP(sound_portmap,0) |
| 2047 | 2046 | MDRV_CPU_VBLANK_INT(fake_nmi,128) /* clocked by V1? (Vigilante) */ |
| r1711 | r1712 | |
| 2051 | 2050 | MDRV_MACHINE_RESET(xmultipl) |
| 2052 | 2051 | |
| 2053 | 2052 | /* video hardware */ |
| 2054 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2055 | 2053 | MDRV_GFXDECODE(m72) |
| 2056 | 2054 | MDRV_PALETTE_LENGTH(512) |
| 2057 | 2055 | |
| 2058 | MDRV_SCREEN_ADD("main", | |
| 2056 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2059 | 2057 | MDRV_SCREEN_RAW_PARAMS(MASTER_CLOCK/4, 512, 64, 448, 284, 0, 256) |
| 2060 | 2058 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2061 | 2059 | |
| r1711 | r1712 | |
| 2079 | 2077 | static MACHINE_DRIVER_START( xmultipl ) |
| 2080 | 2078 | |
| 2081 | 2079 | /* basic machine hardware */ |
| 2082 | MDRV_CPU_ADD(V30,MASTER_CLOCK/2/2) /* 16 MHz external freq (8MHz internal) */ | |
| 2080 | MDRV_CPU_ADD_TAG("main",V30,MASTER_CLOCK/2/2) /* 16 MHz external freq (8MHz internal) */ | |
| 2083 | 2081 | MDRV_CPU_PROGRAM_MAP(xmultipl_map,0) |
| 2084 | 2082 | MDRV_CPU_IO_MAP(m72_portmap,0) |
| 2085 | 2083 | |
| 2086 | MDRV_CPU_ADD(Z80, SOUND_CLOCK) | |
| 2084 | MDRV_CPU_ADD_TAG("sound",Z80, SOUND_CLOCK) | |
| 2087 | 2085 | MDRV_CPU_PROGRAM_MAP(sound_ram_map,0) |
| 2088 | 2086 | MDRV_CPU_IO_MAP(sound_portmap,0) |
| 2089 | 2087 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,128) /* clocked by V1? (Vigilante) */ |
| r1711 | r1712 | |
| 2093 | 2091 | MDRV_MACHINE_RESET(xmultipl) |
| 2094 | 2092 | |
| 2095 | 2093 | /* video hardware */ |
| 2096 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2097 | 2094 | MDRV_GFXDECODE(m72) |
| 2098 | 2095 | MDRV_PALETTE_LENGTH(512) |
| 2099 | 2096 | |
| 2100 | MDRV_SCREEN_ADD("main", | |
| 2097 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2101 | 2098 | MDRV_SCREEN_RAW_PARAMS(MASTER_CLOCK/4, 512, 64, 448, 284, 0, 256) |
| 2102 | 2099 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2103 | 2100 | |
| r1711 | r1712 | |
| 2121 | 2118 | static MACHINE_DRIVER_START( dbreed ) |
| 2122 | 2119 | |
| 2123 | 2120 | /* basic machine hardware */ |
| 2124 | MDRV_CPU_ADD(V30,MASTER_CLOCK/2/2) /* 16 MHz external freq (8MHz internal) */ | |
| 2121 | MDRV_CPU_ADD_TAG("main",V30,MASTER_CLOCK/2/2) /* 16 MHz external freq (8MHz internal) */ | |
| 2125 | 2122 | MDRV_CPU_PROGRAM_MAP(dbreed_map,0) |
| 2126 | 2123 | MDRV_CPU_IO_MAP(hharry_portmap,0) |
| 2127 | 2124 | |
| 2128 | MDRV_CPU_ADD(Z80, SOUND_CLOCK) | |
| 2125 | MDRV_CPU_ADD_TAG("sound",Z80, SOUND_CLOCK) | |
| 2129 | 2126 | MDRV_CPU_PROGRAM_MAP(sound_rom_map,0) |
| 2130 | 2127 | MDRV_CPU_IO_MAP(rtype2_sound_portmap,0) |
| 2131 | 2128 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,128) /* clocked by V1? (Vigilante) */ |
| r1711 | r1712 | |
| 2135 | 2132 | MDRV_MACHINE_RESET(xmultipl) |
| 2136 | 2133 | |
| 2137 | 2134 | /* video hardware */ |
| 2138 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2139 | 2135 | MDRV_GFXDECODE(rtype2) |
| 2140 | 2136 | MDRV_PALETTE_LENGTH(512) |
| 2141 | 2137 | |
| 2142 | MDRV_SCREEN_ADD("main", | |
| 2138 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2143 | 2139 | MDRV_SCREEN_RAW_PARAMS(MASTER_CLOCK/4, 512, 64, 448, 284, 0, 256) |
| 2144 | 2140 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2145 | 2141 | |
| r1711 | r1712 | |
| 2162 | 2158 | static MACHINE_DRIVER_START( dbreed72 ) |
| 2163 | 2159 | |
| 2164 | 2160 | /* basic machine hardware */ |
| 2165 | MDRV_CPU_ADD(V30,MASTER_CLOCK/2/2) /* 16 MHz external freq (8MHz internal) */ | |
| 2161 | MDRV_CPU_ADD_TAG("main", V30,MASTER_CLOCK/2/2) /* 16 MHz external freq (8MHz internal) */ | |
| 2166 | 2162 | MDRV_CPU_PROGRAM_MAP(dbreed72_map,0) |
| 2167 | 2163 | MDRV_CPU_IO_MAP(m72_portmap,0) |
| 2168 | 2164 | |
| 2169 | MDRV_CPU_ADD(Z80, SOUND_CLOCK) | |
| 2165 | MDRV_CPU_ADD_TAG("sound", Z80, SOUND_CLOCK) | |
| 2170 | 2166 | MDRV_CPU_PROGRAM_MAP(sound_ram_map,0) |
| 2171 | 2167 | MDRV_CPU_IO_MAP(sound_portmap,0) |
| 2172 | 2168 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,128) /* clocked by V1? (Vigilante) */ |
| r1711 | r1712 | |
| 2176 | 2172 | MDRV_MACHINE_RESET(xmultipl) |
| 2177 | 2173 | |
| 2178 | 2174 | /* video hardware */ |
| 2179 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2180 | 2175 | MDRV_GFXDECODE(m72) |
| 2181 | 2176 | MDRV_PALETTE_LENGTH(512) |
| 2182 | 2177 | |
| 2183 | MDRV_SCREEN_ADD("main", | |
| 2178 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2184 | 2179 | MDRV_SCREEN_RAW_PARAMS(MASTER_CLOCK/4, 512, 64, 448, 284, 0, 256) |
| 2185 | 2180 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2186 | 2181 | |
| r1711 | r1712 | |
| 2204 | 2199 | static MACHINE_DRIVER_START( rtype2 ) |
| 2205 | 2200 | |
| 2206 | 2201 | /* basic machine hardware */ |
| 2207 | MDRV_CPU_ADD(V30,MASTER_CLOCK/2/2) /* 16 MHz external freq (8MHz internal) */ | |
| 2202 | MDRV_CPU_ADD_TAG("main", V30,MASTER_CLOCK/2/2) /* 16 MHz external freq (8MHz internal) */ | |
| 2208 | 2203 | MDRV_CPU_PROGRAM_MAP(rtype2_map,0) |
| 2209 | 2204 | MDRV_CPU_IO_MAP(rtype2_portmap,0) |
| 2210 | 2205 | |
| 2211 | MDRV_CPU_ADD(Z80, SOUND_CLOCK) | |
| 2206 | MDRV_CPU_ADD_TAG("sound", Z80, SOUND_CLOCK) | |
| 2212 | 2207 | MDRV_CPU_PROGRAM_MAP(sound_rom_map,0) |
| 2213 | 2208 | MDRV_CPU_IO_MAP(rtype2_sound_portmap,0) |
| 2214 | 2209 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,128) /* clocked by V1? (Vigilante) */ |
| r1711 | r1712 | |
| 2218 | 2213 | MDRV_MACHINE_RESET(m72) |
| 2219 | 2214 | |
| 2220 | 2215 | /* video hardware */ |
| 2221 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2222 | 2216 | MDRV_GFXDECODE(rtype2) |
| 2223 | 2217 | MDRV_PALETTE_LENGTH(512) |
| 2224 | 2218 | |
| 2225 | MDRV_SCREEN_ADD("main", | |
| 2219 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2226 | 2220 | MDRV_SCREEN_RAW_PARAMS(MASTER_CLOCK/4, 512, 64, 448, 284, 0, 256) |
| 2227 | 2221 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2228 | 2222 | |
| r1711 | r1712 | |
| 2245 | 2239 | static MACHINE_DRIVER_START( majtitle ) |
| 2246 | 2240 | |
| 2247 | 2241 | /* basic machine hardware */ |
| 2248 | MDRV_CPU_ADD(V30,MASTER_CLOCK/2/2) /* 16 MHz external freq (8MHz internal) */ | |
| 2242 | MDRV_CPU_ADD_TAG("main", V30,MASTER_CLOCK/2/2) /* 16 MHz external freq (8MHz internal) */ | |
| 2249 | 2243 | MDRV_CPU_PROGRAM_MAP(majtitle_map,0) |
| 2250 | 2244 | MDRV_CPU_IO_MAP(majtitle_portmap,0) |
| 2251 | 2245 | |
| 2252 | MDRV_CPU_ADD(Z80, SOUND_CLOCK) | |
| 2246 | MDRV_CPU_ADD_TAG("sound", Z80, SOUND_CLOCK) | |
| 2253 | 2247 | MDRV_CPU_PROGRAM_MAP(sound_rom_map,0) |
| 2254 | 2248 | MDRV_CPU_IO_MAP(rtype2_sound_portmap,0) |
| 2255 | 2249 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,128) /* clocked by V1? (Vigilante) */ |
| r1711 | r1712 | |
| 2259 | 2253 | MDRV_MACHINE_RESET(m72) |
| 2260 | 2254 | |
| 2261 | 2255 | /* video hardware */ |
| 2262 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2263 | 2256 | MDRV_GFXDECODE(majtitle) |
| 2264 | 2257 | MDRV_PALETTE_LENGTH(512) |
| 2265 | 2258 | |
| 2266 | MDRV_SCREEN_ADD("main", | |
| 2259 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2267 | 2260 | MDRV_SCREEN_RAW_PARAMS(MASTER_CLOCK/4, 512, 64, 448, 284, 0, 256) |
| 2268 | 2261 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2269 | 2262 | |
| r1711 | r1712 | |
| 2286 | 2279 | static MACHINE_DRIVER_START( hharry ) |
| 2287 | 2280 | |
| 2288 | 2281 | /* basic machine hardware */ |
| 2289 | MDRV_CPU_ADD(V30,MASTER_CLOCK/2/2) /* 16 MHz external freq (8MHz internal) */ | |
| 2282 | MDRV_CPU_ADD_TAG("main", V30,MASTER_CLOCK/2/2) /* 16 MHz external freq (8MHz internal) */ | |
| 2290 | 2283 | MDRV_CPU_PROGRAM_MAP(hharry_map,0) |
| 2291 | 2284 | MDRV_CPU_IO_MAP(hharry_portmap,0) |
| 2292 | 2285 | |
| 2293 | MDRV_CPU_ADD(Z80, SOUND_CLOCK) | |
| 2286 | MDRV_CPU_ADD_TAG("sound", Z80, SOUND_CLOCK) | |
| 2294 | 2287 | MDRV_CPU_PROGRAM_MAP(sound_rom_map,0) |
| 2295 | 2288 | MDRV_CPU_IO_MAP(rtype2_sound_portmap,0) |
| 2296 | 2289 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,128) /* clocked by V1? (Vigilante) */ |
| r1711 | r1712 | |
| 2300 | 2293 | MDRV_MACHINE_RESET(xmultipl) |
| 2301 | 2294 | |
| 2302 | 2295 | /* video hardware */ |
| 2303 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2304 | 2296 | MDRV_GFXDECODE(rtype2) |
| 2305 | 2297 | MDRV_PALETTE_LENGTH(512) |
| 2306 | 2298 | |
| 2307 | MDRV_SCREEN_ADD("main", | |
| 2299 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2308 | 2300 | MDRV_SCREEN_RAW_PARAMS(MASTER_CLOCK/4, 512, 64, 448, 284, 0, 256) |
| 2309 | 2301 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2310 | 2302 | |
| r1711 | r1712 | |
| 2328 | 2320 | static MACHINE_DRIVER_START( hharryu ) |
| 2329 | 2321 | |
| 2330 | 2322 | /* basic machine hardware */ |
| 2331 | MDRV_CPU_ADD(V30,MASTER_CLOCK/2/2) /* 16 MHz external freq (8MHz internal) */ | |
| 2323 | MDRV_CPU_ADD_TAG("main", V30,MASTER_CLOCK/2/2) /* 16 MHz external freq (8MHz internal) */ | |
| 2332 | 2324 | MDRV_CPU_PROGRAM_MAP(hharryu_map,0) |
| 2333 | 2325 | MDRV_CPU_IO_MAP(rtype2_portmap,0) |
| 2334 | 2326 | |
| 2335 | MDRV_CPU_ADD(Z80, SOUND_CLOCK) | |
| 2327 | MDRV_CPU_ADD_TAG("sound", Z80, SOUND_CLOCK) | |
| 2336 | 2328 | MDRV_CPU_PROGRAM_MAP(sound_rom_map,0) |
| 2337 | 2329 | MDRV_CPU_IO_MAP(rtype2_sound_portmap,0) |
| 2338 | 2330 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,128) /* clocked by V1? (Vigilante) */ |
| r1711 | r1712 | |
| 2342 | 2334 | MDRV_MACHINE_RESET(xmultipl) |
| 2343 | 2335 | |
| 2344 | 2336 | /* video hardware */ |
| 2345 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2346 | 2337 | MDRV_GFXDECODE(rtype2) |
| 2347 | 2338 | MDRV_PALETTE_LENGTH(512) |
| 2348 | 2339 | |
| 2349 | MDRV_SCREEN_ADD("main", | |
| 2340 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2350 | 2341 | MDRV_SCREEN_RAW_PARAMS(MASTER_CLOCK/4, 512, 64, 448, 284, 0, 256) |
| 2351 | 2342 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2352 | 2343 | |
| r1711 | r1712 | |
| 2370 | 2361 | static MACHINE_DRIVER_START( poundfor ) |
| 2371 | 2362 | |
| 2372 | 2363 | /* basic machine hardware */ |
| 2373 | MDRV_CPU_ADD(V30,MASTER_CLOCK/2/2) /* 16 MHz external freq (8MHz internal) */ | |
| 2364 | MDRV_CPU_ADD_TAG("main", V30,MASTER_CLOCK/2/2) /* 16 MHz external freq (8MHz internal) */ | |
| 2374 | 2365 | MDRV_CPU_PROGRAM_MAP(rtype2_map,0) |
| 2375 | 2366 | MDRV_CPU_IO_MAP(poundfor_portmap,0) |
| 2376 | 2367 | |
| 2377 | MDRV_CPU_ADD(Z80, SOUND_CLOCK) | |
| 2368 | MDRV_CPU_ADD_TAG("sound", Z80, SOUND_CLOCK) | |
| 2378 | 2369 | MDRV_CPU_PROGRAM_MAP(sound_rom_map,0) |
| 2379 | 2370 | MDRV_CPU_IO_MAP(poundfor_sound_portmap,0) |
| 2380 | 2371 | MDRV_CPU_VBLANK_INT(fake_nmi,128) /* clocked by V1? (Vigilante) */ |
| r1711 | r1712 | |
| 2384 | 2375 | MDRV_MACHINE_RESET(m72) |
| 2385 | 2376 | |
| 2386 | 2377 | /* video hardware */ |
| 2387 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2388 | 2378 | MDRV_GFXDECODE(rtype2) |
| 2389 | 2379 | MDRV_PALETTE_LENGTH(512) |
| 2390 | 2380 | |
| 2391 | MDRV_SCREEN_ADD("main", | |
| 2381 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2392 | 2382 | MDRV_SCREEN_RAW_PARAMS(MASTER_CLOCK/4, 512, 64, 448, 284, 0, 256) |
| 2393 | 2383 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2394 | 2384 | |
| r1711 | r1712 | |
| 2408 | 2398 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "right", 0.40) |
| 2409 | 2399 | MACHINE_DRIVER_END |
| 2410 | 2400 | |
| 2411 | static MACHINE_DRIVER_START( | |
| 2401 | static MACHINE_DRIVER_START( c | |
| 2412 | 2402 | |
| 2413 | 2403 | /* basic machine hardware */ |
| 2414 | MDRV_CPU_ADD(V30,MASTER_CLOCK/2/2) | |
| 2404 | MDRV_CPU_ADD_TAG("main", V30,MASTER_CLOCK/2/2) | |
| 2415 | 2405 | MDRV_CPU_PROGRAM_MAP(kengo_map,0) |
| 2416 | 2406 | MDRV_CPU_IO_MAP(kengo_portmap,0) |
| 2417 | 2407 | |
| 2418 | MDRV_CPU_ADD(Z80, SOUND_CLOCK) | |
| 2408 | MDRV_CPU_ADD_TAG("sound", Z80, SOUND_CLOCK) | |
| 2419 | 2409 | MDRV_CPU_PROGRAM_MAP(sound_rom_map,0) |
| 2420 | 2410 | MDRV_CPU_IO_MAP(rtype2_sound_portmap,0) |
| 2421 | 2411 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,128) /* clocked by V1? (Vigilante) */ |
| r1711 | r1712 | |
| 2425 | 2415 | MDRV_MACHINE_RESET(kengo) |
| 2426 | 2416 | |
| 2427 | 2417 | /* video hardware */ |
| 2428 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2429 | 2418 | MDRV_GFXDECODE(rtype2) |
| 2430 | 2419 | MDRV_PALETTE_LENGTH(512) |
| 2431 | 2420 | |
| 2432 | MDRV_SCREEN_ADD("main", | |
| 2421 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2433 | 2422 | MDRV_SCREEN_RAW_PARAMS(MASTER_CLOCK/4, 512, 64, 448, 284, 0, 256) |
| 2434 | 2423 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2435 | 2424 | |
| r1711 | r1712 | |
| 2449 | 2438 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "right", 0.40) |
| 2450 | 2439 | MACHINE_DRIVER_END |
| 2451 | 2440 | |
| 2441 | static const nec_config kengo_config ={ gunforce_decryption_table, }; | |
| 2442 | static MACHINE_DRIVER_START( kengo ) | |
| 2443 | MDRV_IMPORT_FROM( cosmccop ) | |
| 2444 | MDRV_CPU_MODIFY("main") | |
| 2445 | MDRV_CPU_CONFIG(kengo_config) | |
| 2446 | MACHINE_DRIVER_END | |
| 2452 | 2447 | |
| 2453 | 2448 | |
| 2454 | 2449 | /*************************************************************************** |
| r1711 | r1712 | |
| 3539 | 3534 | |
| 3540 | 3535 | |
| 3541 | 3536 | |
| 3542 | static DRIVER_INIT( kengo ) | |
| 3543 | { | |
| 3544 | irem_cpu_decrypt(0,gunforce_decryption_table); | |
| 3545 | } | |
| 3546 | 3537 | |
| 3547 | ||
| 3548 | ||
| 3549 | 3538 | GAME( 1987, rtype, 0, rtype, rtype, 0, ROT0, "Irem", "R-Type (World)", GAME_NO_COCKTAIL ) |
| 3550 | 3539 | GAME( 1987, rtypej, rtype, rtype, rtypep, 0, ROT0, "Irem", "R-Type (Japan)", GAME_NO_COCKTAIL ) |
| 3551 | 3540 | GAME( 1987, rtypejp, rtype, rtype, rtypep, 0, ROT0, "Irem", "R-Type (Japan prototype)", GAME_NO_COCKTAIL ) |
| r1711 | r1712 | |
| 3573 | 3562 | GAME( 1990, poundfoj, poundfor, poundfor, poundfor, 0, ROT270, "Irem", "Pound for Pound (Japan)", GAME_NO_COCKTAIL ) |
| 3574 | 3563 | GAME( 1990, poundfou, poundfor, poundfor, poundfor, 0, ROT270, "Irem America", "Pound for Pound (US)", GAME_NO_COCKTAIL ) |
| 3575 | 3564 | GAME( 1990, airduel, 0, m72, airduel, airduel, ROT270, "Irem", "Air Duel (Japan)", 0 ) |
| 3576 | GAME( 1991, cosmccop, 0, | |
| 3565 | GAME( 1991, cosmccop, 0, c | |
| 3577 | 3566 | GAME( 1991, gallop, cosmccop, m72, gallop, gallop, ROT0, "Irem", "Gallop - Armed police Unit (Japan)", GAME_NO_COCKTAIL ) |
| 3578 | GAME( 1991, kengo, 0, kengo, kengo, | |
| 3567 | GAME( 1991, kengo, 0, kengo, kengo, 0 |
| r1711 | r1712 | |
|---|---|---|
| 322 | 322 | } |
| 323 | 323 | |
| 324 | 324 | |
| 325 | static void *begin_update(mame_bitmap *bitmap, const rectangle *cliprect) | |
| 325 | static void *begin_update(running_machine *machine, mc6845_t *mc6845, mame_bitmap *bitmap, const rectangle *cliprect) | |
| 326 | 326 | { |
| 327 | 327 | /* create the pens */ |
| 328 | 328 | offs_t i; |
| r1711 | r1712 | |
| 337 | 337 | } |
| 338 | 338 | |
| 339 | 339 | |
| 340 | static void update_row(mame_bitmap *bitmap, const rectangle *cliprect, | |
| 340 | static void update_row(running_machine *machine, mc6845_t *mc6845, mame_bitmap *bitmap, const rectangle *cliprect, | |
| 341 | 341 | UINT16 ma, UINT8 ra, UINT16 y, UINT8 x_count, void *param) |
| 342 | 342 | { |
| 343 | 343 | UINT8 cx; |
| r1711 | r1712 | |
| 387 | 387 | } |
| 388 | 388 | |
| 389 | 389 | |
| 390 | static void display_enable_changed(int display_enabled) | |
| 390 | static void display_enable_changed(running_machine *machine, mc6845_t *mc6845, int display_enabled) | |
| 391 | 391 | { |
| 392 | 392 | TTL74123_A_w(0, display_enabled); |
| 393 | 393 | } |
| r1711 | r1712 | |
| 407 | 407 | |
| 408 | 408 | static VIDEO_START( r2dtank ) |
| 409 | 409 | { |
| 410 | /* configure the CRT controller */ | |
| 411 | mc6845 = mc6845_config(&mc6845_intf); | |
| 410 | mc6845 = devtag_get_token(machine, MC6845, "crtc"); | |
| 412 | 411 | } |
| 413 | 412 | |
| 414 | 413 | |
| r1711 | r1712 | |
| 558 | 557 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 559 | 558 | |
| 560 | 559 | /* video hardware */ |
| 561 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 562 | 560 | MDRV_VIDEO_START(r2dtank) |
| 563 | 561 | MDRV_VIDEO_UPDATE(r2dtank) |
| 564 | 562 | |
| 565 | MDRV_SCREEN_ADD("main", | |
| 563 | MDRV_SCREEN_ADD("main", RASTER) | |
| 566 | 564 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 567 | 565 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, 256, 0, 256, 256, 0, 256) /* temporary, CRTC will configure screen */ |
| 568 | 566 | |
| 567 | MDRV_DEVICE_ADD("crtc", MC6845) | |
| 568 | MDRV_DEVICE_CONFIG(mc6845_intf) | |
| 569 | ||
| 569 | 570 | /* audio hardware */ |
| 570 | 571 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 571 | 572 |
| r1711 | r1712 | |
|---|---|---|
| 334 | 334 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 335 | 335 | MDRV_CPU_VBLANK_INT(irq1_line_hold,1) |
| 336 | 336 | |
| 337 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 338 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 339 | ||
| 340 | 337 | MDRV_MACHINE_RESET(ohmygod) |
| 341 | MDRV_WATCHDOG_ | |
| 338 | MDRV_WATCHDOG_TIME | |
| 342 | 339 | |
| 343 | 340 | /* video hardware */ |
| 344 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 341 | MDRV_SCREEN_ADD("main", RASTER) | |
| 342 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 343 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 345 | 344 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 346 | 345 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 347 | 346 | MDRV_SCREEN_VISIBLE_AREA(12*8, (64-12)*8-1, 0*8, 30*8-1 ) |
| 347 | ||
| 348 | 348 | MDRV_GFXDECODE(ohmygod) |
| 349 | 349 | MDRV_PALETTE_LENGTH(1024) |
| 350 | 350 |
| r1711 | r1712 | |
|---|---|---|
| 255 | 255 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 256 | 256 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 257 | 257 | |
| 258 | /* video hardware */ | |
| 259 | MDRV_SCREEN_ADD("main", RASTER) | |
| 258 | 260 | MDRV_SCREEN_REFRESH_RATE(60) |
| 259 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 260 | ||
| 261 | /* video hardware */ | |
| 262 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 261 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 263 | 262 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 264 | 263 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 265 | 264 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 265 | ||
| 266 | 266 | MDRV_GFXDECODE(pokechmp) |
| 267 | 267 | MDRV_PALETTE_LENGTH(0x400) |
| 268 | 268 |
| r1711 | r1712 | |
|---|---|---|
| 707 | 707 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 708 | 708 | MDRV_CPU_IO_MAP(sound_readport,sound_writeport) |
| 709 | 709 | |
| 710 | /* video hardware */ | |
| 711 | MDRV_SCREEN_ADD("main", RASTER) | |
| 710 | 712 | MDRV_SCREEN_REFRESH_RATE(60) |
| 711 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 712 | ||
| 713 | /* video hardware */ | |
| 714 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 713 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 715 | 714 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 716 | 715 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 717 | 716 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 717 | ||
| 718 | 718 | MDRV_GFXDECODE(ikari3) |
| 719 | 719 | MDRV_PALETTE_LENGTH(2048) |
| 720 | 720 | |
| r1711 | r1712 | |
| 746 | 746 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 747 | 747 | MDRV_CPU_IO_MAP(sound_readport,sound_writeport) |
| 748 | 748 | |
| 749 | /* video hardware */ | |
| 750 | MDRV_SCREEN_ADD("main", RASTER) | |
| 749 | 751 | MDRV_SCREEN_REFRESH_RATE(60) |
| 750 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 751 | ||
| 752 | /* video hardware */ | |
| 753 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 752 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 754 | 753 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 755 | 754 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 756 | 755 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 756 | ||
| 757 | 757 | MDRV_GFXDECODE(pow) |
| 758 | 758 | MDRV_PALETTE_LENGTH(2048) |
| 759 | 759 | |
| r1711 | r1712 | |
| 785 | 785 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 786 | 786 | MDRV_CPU_IO_MAP(sound_readport,sound_writeport) |
| 787 | 787 | |
| 788 | /* video hardware */ | |
| 789 | MDRV_SCREEN_ADD("main", RASTER) | |
| 788 | 790 | MDRV_SCREEN_REFRESH_RATE(60) |
| 789 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 790 | ||
| 791 | /* video hardware */ | |
| 792 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 791 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 793 | 792 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 794 | 793 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 795 | 794 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 795 | ||
| 796 | 796 | MDRV_GFXDECODE(searchar) |
| 797 | 797 | MDRV_PALETTE_LENGTH(2048) |
| 798 | 798 | |
| r1711 | r1712 | |
| 824 | 824 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 825 | 825 | MDRV_CPU_IO_MAP(sound_readport,sound_writeport) |
| 826 | 826 | |
| 827 | /* video hardware */ | |
| 828 | MDRV_SCREEN_ADD("main", RASTER) | |
| 827 | 829 | MDRV_SCREEN_REFRESH_RATE(60) |
| 828 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 829 | ||
| 830 | /* video hardware */ | |
| 831 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 830 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 832 | 831 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 833 | 832 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 834 | 833 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 834 | ||
| 835 | 835 | MDRV_GFXDECODE(searchar) |
| 836 | 836 | MDRV_PALETTE_LENGTH(2048) |
| 837 | 837 |
| r1711 | r1712 | |
|---|---|---|
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | 10 | #include "deprecat.h" |
| 11 | #include "video/mc6845.h" | |
| 12 | 11 | #include "sound/ay8910.h" |
| 12 | #include "madalien.h" | |
| 13 | 13 | |
| 14 | #define MAIN_CLOCK 10595000 | |
| 15 | 14 | |
| 16 | 15 | #define SOUND_CLOCK 4000000 |
| 17 | 16 | |
| 18 | #define PIXEL_CLOCK (MAIN_CLOCK / 2) | |
| 19 | 17 | |
| 18 | static UINT8 *shift_hi; | |
| 19 | static UINT8 *shift_lo; | |
| 20 | 20 | |
| 21 | static UINT8* madalien_videoram; | |
| 22 | static UINT8* madalien_charram; | |
| 23 | 21 | |
| 24 | static UINT8 madalien_video_flags; | |
| 25 | static UINT8 madalien_screen_control; | |
| 26 | static UINT8 madalien_scroll; | |
| 27 | static UINT8 madalien_edge1_pos; | |
| 28 | static UINT8 madalien_edge2_pos; | |
| 29 | static UINT8 madalien_headlight_pos; | |
| 30 | static UINT8 madalien_shift_count; | |
| 31 | static UINT8 madalien_shift_data; | |
| 32 | ||
| 33 | static mc6845_t *mc6845; | |
| 34 | ||
| 35 | static tilemap* tilemap_fg; | |
| 36 | ||
| 37 | static tilemap* tilemap_edge1[4]; | |
| 38 | static tilemap* tilemap_edge2[4]; | |
| 39 | ||
| 40 | static mame_bitmap* tmp_bitmap; | |
| 41 | static mame_bitmap* headlight_bitmap; | |
| 42 | ||
| 43 | ||
| 44 | static PALETTE_INIT( madalien ) | |
| 45 | { | |
| 46 | int i; | |
| 47 | ||
| 48 | for (i = 0; i < 32; i++) | |
| 49 | { | |
| 50 | int r = 0; | |
| 51 | int g = 0; | |
| 52 | int b = 0; | |
| 53 | ||
| 54 | if (BIT(color_prom[i], 0)) | |
| 55 | r += 0x3f; | |
| 56 | if (BIT(color_prom[i], 1)) | |
| 57 | r += 0xc0; | |
| 58 | if (BIT(color_prom[i], 2)) | |
| 59 | g += 0x3f; | |
| 60 | if (BIT(color_prom[i], 3)) | |
| 61 | g += 0xc0; | |
| 62 | if (BIT(color_prom[i], 4)) | |
| 63 | b += 0x3f; | |
| 64 | if (BIT(color_prom[i], 5)) | |
| 65 | b += 0xc0; | |
| 66 | ||
| 67 | palette_set_color(machine, i, MAKE_RGB(r, g, b)); | |
| 68 | } | |
| 69 | ||
| 70 | for (i = 0; i < 16; i++) | |
| 71 | { | |
| 72 | colortable[0x00 + i] = i; | |
| 73 | colortable[0x10 + i] = i; | |
| 74 | colortable[0x20 + i] = i + 0x10; | |
| 75 | ||
| 76 | /* PCB can swap address lines 1 and 2 when accessing color PROM */ | |
| 77 | ||
| 78 | if (BIT(i, 1)) | |
| 79 | { | |
| 80 | colortable[0x10 + i] ^= 6; | |
| 81 | } | |
| 82 | if (BIT(i, 2)) | |
| 83 | { | |
| 84 | colortable[0x10 + i] ^= 6; | |
| 85 | } | |
| 86 | } | |
| 87 | } | |
| 88 | ||
| 89 | ||
| 90 | static WRITE8_HANDLER( madalien_mc6845_address_w ) | |
| 91 | { | |
| 92 | mc6845_address_w(mc6845, data); | |
| 93 | } | |
| 94 | ||
| 95 | static READ8_HANDLER( madalien_mc6845_register_r ) | |
| 96 | { | |
| 97 | return mc6845_register_r(mc6845); | |
| 98 | } | |
| 99 | ||
| 100 | static WRITE8_HANDLER( madalien_mc6845_register_w ) | |
| 101 | { | |
| 102 | mc6845_register_w(mc6845, data); | |
| 103 | } | |
| 104 | ||
| 105 | ||
| 106 | static void update_edges(int area) | |
| 107 | { | |
| 108 | UINT8* map = memory_region(REGION_GFX2) + 0x200 * area; | |
| 109 | ||
| 110 | // MADALIEN: | |
| 111 | // | |
| 112 | // area 0 section A - casino | |
| 113 | // section B - tunnel | |
| 114 | // area 1 section A - city | |
| 115 | // section B - tunnel | |
| 116 | // | |
| 117 | // MADALINA: | |
| 118 | // | |
| 119 | // area 0 section A - desert | |
| 120 | // section B - tunnel | |
| 121 | // area 1 section A - lake | |
| 122 | // section B - tunnel | |
| 123 | ||
| 124 | tilemap_set_user_data(tilemap_edge1[0], map); /* left edge */ | |
| 125 | tilemap_set_user_data(tilemap_edge1[1], map); | |
| 126 | tilemap_set_user_data(tilemap_edge1[2], map); | |
| 127 | tilemap_set_user_data(tilemap_edge1[3], map); | |
| 128 | ||
| 129 | map += 0x80; | |
| 130 | ||
| 131 | tilemap_set_user_data(tilemap_edge2[0], map); /* right edge */ | |
| 132 | tilemap_set_user_data(tilemap_edge2[1], map); | |
| 133 | tilemap_set_user_data(tilemap_edge2[2], map); | |
| 134 | tilemap_set_user_data(tilemap_edge2[3], map); | |
| 135 | ||
| 136 | tilemap_mark_all_tiles_dirty(ALL_TILEMAPS); | |
| 137 | } | |
| 138 | ||
| 139 | ||
| 140 | static int scan_helper(int col, int row, int section) | |
| 141 | { | |
| 142 | return section * 0x100 + (~col & 15) * 8 + row; | |
| 143 | } | |
| 144 | ||
| 145 | ||
| 146 | static TILEMAP_MAPPER( scan_mode0 ) | |
| 147 | { | |
| 148 | return scan_helper(col, row, 0); | |
| 149 | } | |
| 150 | static TILEMAP_MAPPER( scan_mode1 ) | |
| 151 | { | |
| 152 | return scan_helper(col, row, 1); | |
| 153 | } | |
| 154 | static TILEMAP_MAPPER( scan_mode2 ) | |
| 155 | { | |
| 156 | return scan_helper(col, row, BIT(col, 4) ? 1 : 0); | |
| 157 | } | |
| 158 | static TILEMAP_MAPPER( scan_mode3 ) | |
| 159 | { | |
| 160 | return scan_helper(col, row, BIT(col, 4) ? 0 : 1); | |
| 161 | } | |
| 162 | ||
| 163 | ||
| 164 | static TILE_GET_INFO( get_tile_info_BG ) | |
| 165 | { | |
| 166 | const UINT8* p = param; | |
| 167 | ||
| 168 | SET_TILE_INFO(1, p[tile_index], BIT(madalien_video_flags, 2) ? 2 : 0, 0); | |
| 169 | } | |
| 170 | ||
| 171 | ||
| 172 | static TILE_GET_INFO( get_tile_info_FG ) | |
| 173 | { | |
| 174 | SET_TILE_INFO(0, madalien_videoram[tile_index], 0, 0); | |
| 175 | } | |
| 176 | ||
| 177 | ||
| 178 | static VIDEO_START( madalien ) | |
| 179 | { | |
| 180 | rectangle rect = { 0, 127, 0, 127 }; | |
| 181 | ||
| 182 | static const mc6845_interface mc6845_intf = | |
| 183 | { | |
| 184 | 0, /* screen we are acting on */ | |
| 185 | PIXEL_CLOCK / 8, /* the clock of the chip */ | |
| 186 | 8, /* number of pixels per video memory address */ | |
| 187 | NULL, /* before pixel update callback */ | |
| 188 | NULL, /* row update callback */ | |
| 189 | NULL, /* after pixel update callback */ | |
| 190 | NULL /* call back for display state changes */ | |
| 191 | }; | |
| 192 | ||
| 193 | mc6845 = mc6845_config(&mc6845_intf); | |
| 194 | ||
| 195 | tilemap_fg = tilemap_create(get_tile_info_FG, | |
| 196 | tilemap_scan_cols_flip_x, 8, 8, 32, 32); | |
| 197 | ||
| 198 | tilemap_set_transparent_pen(tilemap_fg, 0); | |
| 199 | ||
| 200 | tilemap_edge1[0] = tilemap_create(get_tile_info_BG, | |
| 201 | scan_mode0, 16, 16, 16, 8); | |
| 202 | tilemap_edge1[1] = tilemap_create(get_tile_info_BG, | |
| 203 | scan_mode1, 16, 16, 16, 8); | |
| 204 | tilemap_edge1[2] = tilemap_create(get_tile_info_BG, | |
| 205 | scan_mode2, 16, 16, 32, 8); | |
| 206 | tilemap_edge1[3] = tilemap_create(get_tile_info_BG, | |
| 207 | scan_mode3, 16, 16, 32, 8); | |
| 208 | ||
| 209 | tilemap_edge2[0] = tilemap_create(get_tile_info_BG, | |
| 210 | scan_mode0, 16, 16, 16, 8); | |
| 211 | tilemap_edge2[1] = tilemap_create(get_tile_info_BG, | |
| 212 | scan_mode1, 16, 16, 16, 8); | |
| 213 | tilemap_edge2[2] = tilemap_create(get_tile_info_BG, | |
| 214 | scan_mode2, 16, 16, 32, 8); | |
| 215 | tilemap_edge2[3] = tilemap_create(get_tile_info_BG, | |
| 216 | scan_mode3, 16, 16, 32, 8); | |
| 217 | ||
| 218 | update_edges(0); | |
| 219 | ||
| 220 | tilemap_set_scrolldy(tilemap_edge2[0], 0, machine->screen[0].height - 256); | |
| 221 | tilemap_set_scrolldy(tilemap_edge2[1], 0, machine->screen[0].height - 256); | |
| 222 | tilemap_set_scrolldy(tilemap_edge2[2], 0, machine->screen[0].height - 256); | |
| 223 | tilemap_set_scrolldy(tilemap_edge2[3], 0, machine->screen[0].height - 256); | |
| 224 | ||
| 225 | tilemap_set_flip(tilemap_edge2[0], TILEMAP_FLIPY); | |
| 226 | tilemap_set_flip(tilemap_edge2[1], TILEMAP_FLIPY); | |
| 227 | tilemap_set_flip(tilemap_edge2[2], TILEMAP_FLIPY); | |
| 228 | tilemap_set_flip(tilemap_edge2[3], TILEMAP_FLIPY); | |
| 229 | ||
| 230 | headlight_bitmap = auto_bitmap_alloc(128, 128, BITMAP_FORMAT_INDEXED16); | |
| 231 | ||
| 232 | drawgfx(headlight_bitmap, machine->gfx[2], | |
| 233 | 0, 0, 0, 0, 0x00, 0x00, &rect, TRANSPARENCY_NONE, 0); | |
| 234 | drawgfx(headlight_bitmap, machine->gfx[2], | |
| 235 | 0, 0, 0, 1, 0x00, 0x40, &rect, TRANSPARENCY_NONE, 0); | |
| 236 | ||
| 237 | tmp_bitmap = auto_bitmap_alloc(256, 256, BITMAP_FORMAT_INDEXED16); | |
| 238 | } | |
| 239 | ||
| 240 | ||
| 241 | static VIDEO_UPDATE( madalien ) | |
| 242 | { | |
| 243 | int i; | |
| 244 | ||
| 245 | int flip_screen; | |
| 246 | ||
| 247 | /* draw background */ | |
| 248 | ||
| 249 | rectangle rect = { 0, 255, 0, 255 }; | |
| 250 | ||
| 251 | rectangle clip_edge1 = rect; | |
| 252 | rectangle clip_edge2 = rect; | |
| 253 | ||
| 254 | int mode = madalien_scroll & 3; | |
| 255 | ||
| 256 | clip_edge1.max_y = madalien_edge1_pos ^ 0x7f; | |
| 257 | clip_edge2.min_y = madalien_edge2_pos | 0x80; | |
| 258 | ||
| 259 | fillbitmap(tmp_bitmap, machine->pens[0], &rect); | |
| 260 | ||
| 261 | tilemap_draw( | |
| 262 | tmp_bitmap, &clip_edge1, tilemap_edge1[mode], 0, 0); | |
| 263 | tilemap_draw( | |
| 264 | tmp_bitmap, &clip_edge2, tilemap_edge2[mode], 0, 0); | |
| 265 | ||
| 266 | /* draw foreground */ | |
| 267 | ||
| 268 | for (i = 0; i < 256; i++) | |
| 269 | { | |
| 270 | decodechar(machine->gfx[0], i, madalien_charram); | |
| 271 | } | |
| 272 | ||
| 273 | tilemap_mark_all_tiles_dirty(tilemap_fg); | |
| 274 | ||
| 275 | tilemap_draw(tmp_bitmap, &rect, tilemap_fg, 0, 0); | |
| 276 | ||
| 277 | /* highlight section A (outside of tunnels) */ | |
| 278 | ||
| 279 | if (mode != 1) | |
| 280 | { | |
| 281 | int x; | |
| 282 | int y; | |
| 283 | ||
| 284 | int _L = 0; | |
| 285 | int _T = 0; | |
| 286 | int _R = 256; | |
| 287 | int _B = 256; | |
| 288 | ||
| 289 | if (mode == 2) | |
| 290 | { | |
| 291 | if (_L < (madalien_scroll & 0xfc)) | |
| 292 | _L = (madalien_scroll & 0xfc); | |
| 293 | } | |
| 294 | if (mode == 3) | |
| 295 | { | |
| 296 | if (_R > (madalien_scroll & 0xfc)) | |
| 297 | _R = (madalien_scroll & 0xfc); | |
| 298 | } | |
| 299 | ||
| 300 | for (y = _T; y < _B; y++) | |
| 301 | { | |
| 302 | for (x = _L; x < _R; x++) | |
| 303 | { | |
| 304 | *BITMAP_ADDR16(tmp_bitmap, y, x) |= 8; | |
| 305 | } | |
| 306 | } | |
| 307 | } | |
| 308 | ||
| 309 | /* draw car headlight */ | |
| 310 | ||
| 311 | if (BIT(madalien_video_flags, 0)) | |
| 312 | { | |
| 313 | int x; | |
| 314 | int y; | |
| 315 | ||
| 316 | for (y = 0; y < 128; y++) | |
| 317 | { | |
| 318 | int ypos = (y - madalien_headlight_pos) & 0xff; | |
| 319 | ||
| 320 | for (x = 0; x < 128; x++) | |
| 321 | { | |
| 322 | if (*BITMAP_ADDR16(headlight_bitmap, y, x) != 0) | |
| 323 | { | |
| 324 | *BITMAP_ADDR16(tmp_bitmap, ypos, x) |= 8; | |
| 325 | } | |
| 326 | } | |
| 327 | } | |
| 328 | }; | |
| 329 | ||
| 330 | /* flip screen if necessary */ | |
| 331 | ||
| 332 | flip_screen = 0; | |
| 333 | ||
| 334 | if (BIT(readinputportbytag("DIP"), 6)) /* cocktail DIP */ | |
| 335 | { | |
| 336 | if (BIT(madalien_screen_control, 0)) | |
| 337 | { | |
| 338 | flip_screen = 1; | |
| 339 | } | |
| 340 | } | |
| 341 | ||
| 342 | copybitmap(bitmap, tmp_bitmap, flip_screen, flip_screen, 0, 0, cliprect); | |
| 343 | ||
| 344 | return 0; | |
| 345 | } | |
| 346 | ||
| 347 | ||
| 348 | 22 | static INTERRUPT_GEN( madalien_interrupt ) |
| 349 | 23 | { |
| 350 | 24 | cpunum_set_input_line(machine, 0, INPUT_LINE_NMI, |
| r1711 | r1712 | |
| 352 | 26 | } |
| 353 | 27 | |
| 354 | 28 | |
| 355 | ||
| 29 | I | |
| 356 | 30 | { |
| 357 | const UINT8 | |
| 31 | const UINT8 | |
| 358 | 32 | |
| 359 | return table[ | |
| 33 | return table[(( | |
| 360 | 34 | } |
| 361 | 35 | |
| 362 | ||
| 363 | static READ8_HANDLER( madalien_shift_hi_r ) | |
| 36 | static READ8_HANDLER( shift_r ) | |
| 364 | 37 | { |
| 365 | UINT8 result = 0; | |
| 366 | ||
| 367 | UINT8 flip = 0; | |
| 368 | ||
| 369 | if (BIT(madalien_shift_data, 0)) flip |= 1 << 7; | |
| 370 | if (BIT(madalien_shift_data, 1)) flip |= 1 << 6; | |
| 371 | if (BIT(madalien_shift_data, 2)) flip |= 1 << 5; | |
| 372 | if (BIT(madalien_shift_data, 3)) flip |= 1 << 4; | |
| 373 | if (BIT(madalien_shift_data, 4)) flip |= 1 << 3; | |
| 374 | if (BIT(madalien_shift_data, 5)) flip |= 1 << 2; | |
| 375 | if (BIT(madalien_shift_data, 6)) flip |= 1 << 1; | |
| 376 | if (BIT(madalien_shift_data, 7)) flip |= 1 << 0; | |
| 377 | ||
| 378 | { | |
| 379 | const UINT8* table = memory_region(REGION_USER1); | |
| 380 | ||
| 381 | UINT8 lookup = table[256 * (madalien_shift_count ^ 7) + flip]; | |
| 382 | ||
| 383 | if (BIT(lookup, 0)) result |= 1 << 6; | |
| 384 | if (BIT(lookup, 1)) result |= 1 << 5; | |
| 385 | if (BIT(lookup, 2)) result |= 1 << 4; | |
| 386 | if (BIT(lookup, 3)) result |= 1 << 3; | |
| 387 | if (BIT(lookup, 4)) result |= 1 << 2; | |
| 388 | if (BIT(lookup, 5)) result |= 1 << 1; | |
| 389 | if (BIT(lookup, 6)) result |= 1 << 0; | |
| 390 | } | |
| 391 | ||
| 392 | return result; | |
| 38 | return shift_common(*shift_hi, *shift_lo); | |
| 393 | 39 | } |
| 394 | 40 | |
| 395 | ||
| 396 | static WRITE8_HANDLER(madalien_video_flags_w) | |
| 41 | static READ8_HANDLER( shift_rev_r ) | |
| 397 | 42 | { |
| 398 | data &= 15; | |
| 43 | UINT8 hi = *shift_hi ^ 0x07; | |
| 44 | UINT8 lo = BITSWAP8(*shift_lo,0,1,2,3,4,5,6,7); | |
| 399 | 45 | |
| 400 | if (madalien_video_flags != data) | |
| 401 | { | |
| 402 | update_edges(data >> 3); | |
| 403 | } | |
| 46 | UINT8 ret = shift_common(hi, lo); | |
| 404 | 47 | |
| 405 | | |
| 48 | r | |
| 406 | 49 | } |
| 407 | 50 | |
| 408 | 51 | |
| 409 | static WRITE8_HANDLER( madalien_headlight_pos_w ) | |
| 410 | { | |
| 411 | madalien_headlight_pos = data; | |
| 412 | } | |
| 413 | ||
| 414 | ||
| 415 | static WRITE8_HANDLER( madalien_scroll_w ) | |
| 416 | { | |
| 417 | int i; | |
| 418 | ||
| 419 | // bits #0 and #1 define scrolling mode | |
| 420 | // | |
| 421 | // mode 0 - cycle over map section A | |
| 422 | // mode 1 - cycle over map section B | |
| 423 | // | |
| 424 | // mode 2 - transition from B to A | |
| 425 | // mode 3 - transition from A to B | |
| 426 | ||
| 427 | for (i = 0; i < 4; i++) | |
| 428 | { | |
| 429 | tilemap_set_scrollx( | |
| 430 | tilemap_edge1[i], 0, -(data & 0xfc)); | |
| 431 | tilemap_set_scrollx( | |
| 432 | tilemap_edge2[i], 0, -(data & 0xfc)); | |
| 433 | } | |
| 434 | ||
| 435 | madalien_scroll = data; | |
| 436 | } | |
| 437 | ||
| 438 | ||
| 439 | static WRITE8_HANDLER( madalien_edge1_pos_w ) | |
| 440 | { | |
| 441 | madalien_edge1_pos = data & 0x7f; | |
| 442 | ||
| 443 | tilemap_set_scrolly(tilemap_edge1[0], 0, madalien_edge1_pos); | |
| 444 | tilemap_set_scrolly(tilemap_edge1[1], 0, madalien_edge1_pos); | |
| 445 | tilemap_set_scrolly(tilemap_edge1[2], 0, madalien_edge1_pos); | |
| 446 | tilemap_set_scrolly(tilemap_edge1[3], 0, madalien_edge1_pos); | |
| 447 | } | |
| 448 | ||
| 449 | ||
| 450 | static WRITE8_HANDLER( madalien_edge2_pos_w ) | |
| 451 | { | |
| 452 | madalien_edge2_pos = data & 0x7f; | |
| 453 | ||
| 454 | tilemap_set_scrolly(tilemap_edge2[0], 0, madalien_edge2_pos); | |
| 455 | tilemap_set_scrolly(tilemap_edge2[1], 0, madalien_edge2_pos); | |
| 456 | tilemap_set_scrolly(tilemap_edge2[2], 0, madalien_edge2_pos); | |
| 457 | tilemap_set_scrolly(tilemap_edge2[3], 0, madalien_edge2_pos); | |
| 458 | } | |
| 459 | ||
| 460 | ||
| 461 | static WRITE8_HANDLER( madalien_shift_data_w ) | |
| 462 | { | |
| 463 | madalien_shift_data = data; | |
| 464 | } | |
| 465 | static WRITE8_HANDLER( madalien_shift_count_w ) | |
| 466 | { | |
| 467 | madalien_shift_count = data & 7; | |
| 468 | } | |
| 469 | ||
| 470 | ||
| 471 | static WRITE8_HANDLER( madalien_screen_control_w ) | |
| 472 | { | |
| 473 | /* bit #0 is set during player 2's turn, bit #3 is set during CRTC initialization */ | |
| 474 | ||
| 475 | madalien_screen_control = data & 15; | |
| 476 | } | |
| 477 | ||
| 478 | ||
| 479 | 52 | static WRITE8_HANDLER( madalien_output_w ) |
| 480 | 53 | { |
| 481 | 54 | /* output latch, eight output bits, none connected */ |
| r1711 | r1712 | |
| 517 | 90 | |
| 518 | 91 | AM_RANGE(0x8000, 0x8000) AM_MIRROR(0x0ff0) AM_WRITE(madalien_mc6845_address_w) |
| 519 | 92 | AM_RANGE(0x8001, 0x8001) AM_MIRROR(0x0ff0) AM_READWRITE(madalien_mc6845_register_r, madalien_mc6845_register_w) |
| 520 | AM_RANGE(0x8004, 0x8004) AM_MIRROR(0x0ff0) AM_WRITE(madalien_ | |
| 93 | AM_RANGE(0x8004, 0x8004) AM_MIRROR(0x0ff0) AM_WRITE(MWA8_RAM) AM_BASE(&madalien_video | |
| 521 | 94 | AM_RANGE(0x8005, 0x8005) AM_MIRROR(0x0ff0) AM_WRITE(madalien_output_w) |
| 522 | 95 | AM_RANGE(0x8006, 0x8006) AM_MIRROR(0x0ff0) AM_READWRITE(soundlatch2_r, madalien_sound_command_w) |
| 523 | AM_RANGE(0x8008, 0x8008) AM_MIRROR(0x07f0) AM_READWRITE(madalien_shift_lo_r, madalien_shift_count_w) | |
| 524 | AM_RANGE(0x8009, 0x8009) AM_MIRROR(0x07f0) AM_READWRITE(madalien_shift_hi_r, madalien_shift_data_w) | |
| 525 | AM_RANGE(0x800b, 0x800b) AM_MIRROR(0x07f0) AM_WRITE(madalien_video_flags_w) | |
| 526 | AM_RANGE(0x800c, 0x800c) AM_MIRROR(0x07f0) AM_WRITE(madalien_headlight_pos_w) | |
| 527 | AM_RANGE(0x800d, 0x800d) AM_MIRROR(0x07f0) AM_WRITE(madalien_edge1_pos_w) | |
| 528 | AM_RANGE(0x800e, 0x800e) AM_MIRROR(0x07f0) AM_WRITE(madalien_edge2_pos_w) | |
| 529 | AM_RANGE(0x800f, 0x800f) AM_MIRROR(0x07f0) AM_WRITE(madalien_scroll_w) | |
| 96 | AM_RANGE(0x8008, 0x8008) AM_MIRROR(0x07f0) AM_READWRITE(shift_r, MWA8_RAM) AM_BASE(&shift_hi) | |
| 97 | AM_RANGE(0x8009, 0x8009) AM_MIRROR(0x07f0) AM_READWRITE(shift_rev_r, MWA8_RAM) AM_BASE(&shift_lo) | |
| 98 | AM_RANGE(0x800b, 0x800b) AM_MIRROR(0x07f0) AM_WRITE(MWA8_RAM) AM_BASE(&madalien_video_flags) | |
| 99 | AM_RANGE(0x800c, 0x800c) AM_MIRROR(0x07f0) AM_WRITE(MWA8_RAM) AM_BASE(&madalien_headlight_pos) | |
| 100 | AM_RANGE(0x800d, 0x800d) AM_MIRROR(0x07f0) AM_WRITE(MWA8_RAM) AM_BASE(&madalien_edge1_pos) | |
| 101 | AM_RANGE(0x800e, 0x800e) AM_MIRROR(0x07f0) AM_WRITE(MWA8_RAM) AM_BASE(&madalien_edge2_pos) | |
| 102 | AM_RANGE(0x800f, 0x800f) AM_MIRROR(0x07f0) AM_WRITE(MWA8_RAM) AM_BASE(&madalien_scroll) | |
| 530 | 103 | |
| 531 | 104 | AM_RANGE(0x9000, 0x9000) AM_MIRROR(0x0ff0) AM_READ(input_port_0_r) |
| 532 | 105 | AM_RANGE(0x9001, 0x9001) AM_MIRROR(0x0ff0) AM_READ(input_port_1_r) |
| r1711 | r1712 | |
| 590 | 163 | INPUT_PORTS_END |
| 591 | 164 | |
| 592 | 165 | |
| 593 | ||
| 594 | static const UINT32 headlight_xoffset[] = | |
| 595 | { | |
| 596 | STEP8(0x78, 1), | |
| 597 | STEP8(0x70, 1), | |
| 598 | STEP8(0x68, 1), | |
| 599 | STEP8(0x60, 1), | |
| 600 | STEP8(0x58, 1), | |
| 601 | STEP8(0x50, 1), | |
| 602 | STEP8(0x48, 1), | |
| 603 | STEP8(0x40, 1), | |
| 604 | STEP8(0x38, 1), | |
| 605 | STEP8(0x30, 1), | |
| 606 | STEP8(0x28, 1), | |
| 607 | STEP8(0x20, 1), | |
| 608 | STEP8(0x18, 1), | |
| 609 | STEP8(0x10, 1), | |
| 610 | STEP8(0x08, 1), | |
| 611 | STEP8(0x00, 1), | |
| 612 | }; | |
| 613 | ||
| 614 | static const UINT32 headlight_yoffset[] = | |
| 615 | { | |
| 616 | STEP32(0x0000, 0x80), STEP32(0x1000, 0x80) | |
| 617 | }; | |
| 618 | ||
| 619 | static const gfx_layout headlightlayout = | |
| 620 | { | |
| 621 | 128, 64, | |
| 622 | 1, | |
| 623 | 1, | |
| 624 | { 0 }, | |
| 625 | EXTENDED_XOFFS, | |
| 626 | EXTENDED_YOFFS, | |
| 627 | 0x2000, | |
| 628 | headlight_xoffset, | |
| 629 | headlight_yoffset | |
| 630 | }; | |
| 631 | ||
| 632 | static const gfx_layout charlayout = | |
| 633 | { | |
| 634 | 8, 8, | |
| 635 | 256, | |
| 636 | 3, | |
| 637 | { 2*0x4000, 1*0x4000, 0*0x4000 }, | |
| 638 | { STEP8(0, 1) }, | |
| 639 | { STEP8(0, 8) }, | |
| 640 | 64 | |
| 641 | }; | |
| 642 | ||
| 643 | static const gfx_layout tilelayout = | |
| 644 | { | |
| 645 | 16, 16, | |
| 646 | RGN_FRAC(1,3), | |
| 647 | 3, | |
| 648 | { RGN_FRAC(2,3), RGN_FRAC(1,3), RGN_FRAC(0,3) }, | |
| 649 | { | |
| 650 | 0x30*8+4, 0x30*8+5, 0x30*8+6, 0x30*8+7, | |
| 651 | 0x20*8+4, 0x20*8+5, 0x20*8+6, 0x20*8+7, | |
| 652 | 0x10*8+4, 0x10*8+5, 0x10*8+6, 0x10*8+7, | |
| 653 | 0x00*8+4, 0x00*8+5, 0x00*8+6, 0x00*8+7 | |
| 654 | }, | |
| 655 | { STEP16(0, 8) }, | |
| 656 | 0x200 | |
| 657 | }; | |
| 658 | ||
| 659 | ||
| 660 | static GFXDECODE_START( madalien ) | |
| 661 | GFXDECODE_ENTRY( 0, 0, charlayout, 32, 2 ) /* foreground characters, stored in RAM */ | |
| 662 | GFXDECODE_ENTRY( REGION_GFX1, 0, tilelayout, 0, 4 ) | |
| 663 | GFXDECODE_ENTRY( REGION_GFX3, 0, headlightlayout, 0, 1 ) | |
| 664 | GFXDECODE_END | |
| 665 | ||
| 666 | ||
| 667 | 166 | static const struct AY8910interface ay8910_interface = |
| 668 | 167 | { |
| 669 | 168 | NULL, |
| r1711 | r1712 | |
| 676 | 175 | static MACHINE_DRIVER_START( madalien ) |
| 677 | 176 | |
| 678 | 177 | /* main CPU */ |
| 679 | MDRV_CPU_ADD | |
| 178 | MDRV_CPU_ADD | |
| 680 | 179 | MDRV_CPU_PROGRAM_MAP(main_map, 0) |
| 681 | 180 | MDRV_CPU_VBLANK_INT(madalien_interrupt, 1) |
| 682 | 181 | |
| 683 | 182 | /* audio CPU */ |
| 684 | MDRV_CPU_ADD | |
| 183 | MDRV_CPU_ADD | |
| 685 | 184 | MDRV_CPU_PROGRAM_MAP(sound_map, 0) |
| 686 | 185 | MDRV_CPU_PERIODIC_INT(nmi_line_pulse, 800) /* unknown due to incomplete schematics */ |
| 687 | 186 | |
| 688 | 187 | /* video hardware */ |
| 689 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 690 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, 336, 0, 256, 288, 0, 256) | |
| 691 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 692 | MDRV_GFXDECODE(madalien) | |
| 693 | MDRV_PALETTE_LENGTH(32) | |
| 694 | MDRV_COLORTABLE_LENGTH(48) | |
| 695 | MDRV_PALETTE_INIT(madalien) | |
| 696 | MDRV_VIDEO_START(madalien) | |
| 697 | MDRV_VIDEO_UPDATE(madalien) | |
| 188 | MDRV_IMPORT_FROM(madalien_video); | |
| 698 | 189 | |
| 699 | /* | |
| 190 | /* a | |
| 700 | 191 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 701 | 192 | |
| 702 | 193 | MDRV_SOUND_ADD(AY8910, SOUND_CLOCK / 4) |
| r1711 | r1712 | |
| 725 | 216 | ROM_LOAD( "md.3l", 0x0400, 0x0400, CRC(3ee1287a) SHA1(33bc59a8d09d22f3db80f881c2f37aa788718138) ) |
| 726 | 217 | ROM_LOAD( "me.3m", 0x0800, 0x0400, CRC(45a5c201) SHA1(ac600afeabf494634c3189d8e96644bd0deb45f3) ) |
| 727 | 218 | |
| 728 | ROM_REGION( 0x0400, REGION_GFX2, 0 ) /* background tile map */ | |
| 729 | ROM_LOAD( "mf.4h", 0x0000, 0x0400, CRC(e9cba773) SHA1(356c7edb1b412a9e04f0747e780c945af8791c55) ) | |
| 730 | ||
| 731 | ROM_REGION( 0x0400, REGION_GFX3, ROMREGION_DISPOSE ) /* headlight */ | |
| 219 | ROM_REGION( 0x0400, REGION_GFX2, ROMREGION_DISPOSE ) /* headlight */ | |
| 732 | 220 | ROM_LOAD( "ma.2b", 0x0000, 0x0400, CRC(aab16446) SHA1(d2342627cc2766004343f27515d8a7989d5fe932) ) |
| 733 | 221 | |
| 734 | ROM_REGION( 0x0800, REGION_USER1, 0 ) /* shifting table */ | |
| 222 | ROM_REGION( 0x0400, REGION_USER1, 0 ) /* background tile map */ | |
| 223 | ROM_LOAD( "mf.4h", 0x0000, 0x0400, CRC(e9cba773) SHA1(356c7edb1b412a9e04f0747e780c945af8791c55) ) | |
| 224 | ||
| 225 | ROM_REGION( 0x0800, REGION_USER2, 0 ) /* shifting table */ | |
| 735 | 226 | ROM_LOAD( "mb.5c", 0x0000, 0x0800, CRC(cb801e49) SHA1(7444c4af7cf07e5fdc54044d62ea4fcb201b2b8b) ) |
| 736 | 227 | |
| 737 | 228 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) /* color PROM */ |
| r1711 | r1712 | |
| 761 | 252 | ROM_LOAD( "me-1.3l", 0x0400, 0x0400, CRC(7328a425) SHA1(327adc8b0e25d93f1ae98a44c26d0aaaac1b1a9c) ) |
| 762 | 253 | ROM_LOAD( "md-1.3m", 0x0800, 0x0400, CRC(b5329929) SHA1(86890e1b7cc8cb31fc0dcbc2d3cff02e4cf95619) ) |
| 763 | 254 | |
| 764 | ROM_REGION( 0x0400, REGION_GFX2, 0 ) /* background tile map */ | |
| 765 | ROM_LOAD( "mf-1.4h", 0x0000, 0x0400, CRC(9b04c446) SHA1(918013f3c0244ab6a670b9d1b6b642298e2c5ab8) ) | |
| 766 | ||
| 767 | ROM_REGION( 0x0400, REGION_GFX3, ROMREGION_DISPOSE ) /* headlight */ | |
| 255 | ROM_REGION( 0x0400, REGION_GFX2, ROMREGION_DISPOSE ) /* headlight */ | |
| 768 | 256 | ROM_LOAD( "ma.2b", 0x0000, 0x0400, CRC(aab16446) SHA1(d2342627cc2766004343f27515d8a7989d5fe932) ) |
| 769 | 257 | |
| 770 | ROM_REGION( 0x0800, REGION_USER1, 0 ) /* shifting table */ | |
| 258 | ROM_REGION( 0x0400, REGION_USER1, 0 ) /* background tile map */ | |
| 259 | ROM_LOAD( "mf-1.4h", 0x0000, 0x0400, CRC(9b04c446) SHA1(918013f3c0244ab6a670b9d1b6b642298e2c5ab8) ) | |
| 260 | ||
| 261 | ROM_REGION( 0x0800, REGION_USER2, 0 ) /* shifting table */ | |
| 771 | 262 | ROM_LOAD( "mb.5c", 0x0000, 0x0800, CRC(cb801e49) SHA1(7444c4af7cf07e5fdc54044d62ea4fcb201b2b8b) ) |
| 772 | 263 | |
| 773 | 264 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) /* color PROM */ |
| r1711 | r1712 | |
| 775 | 266 | ROM_END |
| 776 | 267 | |
| 777 | 268 | |
| 778 | static DRIVER_INIT( madalien ) | |
| 779 | { | |
| 780 | state_save_register_global(madalien_video_flags); | |
| 781 | state_save_register_global(madalien_screen_control); | |
| 782 | state_save_register_global(madalien_scroll); | |
| 783 | state_save_register_global(madalien_edge1_pos); | |
| 784 | state_save_register_global(madalien_edge2_pos); | |
| 785 | state_save_register_global(madalien_headlight_pos); | |
| 786 | state_save_register_global(madalien_shift_count); | |
| 787 | state_save_register_global(madalien_shift_data); | |
| 788 | } | |
| 789 | ||
| 790 | ||
| 791 | /* rom parent machine inp init */ | |
| 792 | GAME( 1980, madalien, 0, madalien, madalien, madalien, ROT270, "Data East Corporation", "Mad Alien", GAME_IMPERFECT_SOUND ) | |
| 793 | GAME( 1980, madalina, madalien, madalien, madalien, madalien, ROT270, "Data East Corporation", "Mad Alien (Highway Chase)", GAME_IMPERFECT_SOUND ) | |
| 269 | /* set parent machine inp init */ | |
| 270 | GAME( 1980, madalien, 0, madalien, madalien, 0, ROT270, "Data East Corporation", "Mad Alien", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE ) | |
| 271 | GAME( 1980, madalina, madalien, madalien, madalien, 0, ROT270, "Data East Corporation", "Mad Alien (Highway Chase)", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE ) |
| r1711 | r1712 | |
|---|---|---|
| 132 | 132 | MDRV_CPU_VBLANK_INT(igs_180_interrupt,2) |
| 133 | 133 | //MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 134 | 134 | |
| 135 | /* video hardware */ | |
| 136 | MDRV_SCREEN_ADD("main", RASTER) | |
| 135 | 137 | MDRV_SCREEN_REFRESH_RATE(60) |
| 136 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 137 | ||
| 138 | /* video hardware */ | |
| 139 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 138 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 140 | 139 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 141 | 140 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 142 | 141 | MDRV_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 0*8, 32*8-1) |
| 142 | ||
| 143 | 143 | MDRV_GFXDECODE(igs_180) |
| 144 | 144 | MDRV_PALETTE_LENGTH(1024) |
| 145 | 145 |
| r1711 | r1712 | |
|---|---|---|
| 160 | 160 | PORT_DIPSETTING( 0x08, "40000" ) |
| 161 | 161 | PORT_DIPSETTING( 0x04, "70000" ) |
| 162 | 162 | PORT_DIPSETTING( 0x00, "100000" ) |
| 163 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW1:5") /* Listed as "Unused" in the manual */ | |
| 164 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 165 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 163 | PORT_DIPUNUSED_DIPLOC( 0x10, 0x00, "SW1:5" ) /* Listed as "Unused" */ | |
| 166 | 164 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:6") |
| 167 | 165 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 168 | 166 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) |
| r1711 | r1712 | |
| 172 | 170 | /* The last dip switch is directly connected to the video hardware and |
| 173 | 171 | flips the screen. The program instead sees the coin input, which must |
| 174 | 172 | stay low for exactly 2 frames to be consistently recognized. */ |
| 175 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(2) | |
| 173 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(2) PORT_DIPLOCATION("SW1:8") /* "Screen Inversion" */ | |
| 176 | 174 | |
| 177 | 175 | PORT_START_TAG("DSW2") |
| 178 | 176 | PORT_DIPNAME( 0x07, 0x00, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW2:1,2,3") |
| r1711 | r1712 | |
| 185 | 183 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_3C ) ) |
| 186 | 184 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_4C ) ) |
| 187 | 185 | PORT_DIPNAME( 0x18, 0x08, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:4,5") |
| 188 | PORT_DIPSETTING( 0x00, "0(Easy)" ) | |
| 189 | PORT_DIPSETTING( 0x08, "1(Medium)" ) | |
| 190 | PORT_DIPSETTING( 0x10, "2(Hard)" ) | |
| 191 | PORT_DIPSETTING( 0x18, "3(Hardest)" ) | |
| 192 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW2:6") /* Listed as "Unused" in the manual */ | |
| 193 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 194 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 195 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW2:7") /* Listed as "Unused" in the manual */ | |
| 196 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 197 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 198 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW2:8") /* Listed as "Unused" in the manual */ | |
| 199 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 200 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 186 | PORT_DIPSETTING( 0x00, DEF_STR( Easy ) ) | |
| 187 | PORT_DIPSETTING( 0x08, DEF_STR( Normal ) ) | |
| 188 | PORT_DIPSETTING( 0x10, DEF_STR( Medium ) ) | |
| 189 | PORT_DIPSETTING( 0x18, DEF_STR( Hard ) ) | |
| 190 | PORT_DIPUNUSED_DIPLOC( 0x20, 0x00, "SW2:6" ) /* Listed as "Unused" */ | |
| 191 | PORT_DIPUNUSED_DIPLOC( 0x40, 0x00, "SW2:7" ) /* Listed as "Unused" */ | |
| 192 | PORT_DIPUNUSED_DIPLOC( 0x80, 0x00, "SW2:8" ) /* Listed as "Unused" */ | |
| 201 | 193 | INPUT_PORTS_END |
| 202 | 194 | |
| 203 | 195 | |
| r1711 | r1712 | |
| 263 | 255 | MDRV_CPU_PROGRAM_MAP(readmem_sound,writemem_sound) |
| 264 | 256 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 265 | 257 | |
| 266 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 267 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 268 | ||
| 269 | 258 | /* video hardware */ |
| 270 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 259 | MDRV_SCREEN_ADD("main", RASTER) | |
| 260 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 261 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 271 | 262 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 272 | MDRV_GFXDECODE(aeroboto) | |
| 273 | ||
| 274 | 263 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 275 | 264 | MDRV_SCREEN_VISIBLE_AREA(0*8, 31*8-1, 2*8, 30*8-1) |
| 265 | ||
| 266 | MDRV_GFXDECODE(aeroboto) | |
| 267 | ||
| 276 | 268 | MDRV_PALETTE_LENGTH(256) |
| 277 | 269 | |
| 278 | 270 | MDRV_PALETTE_INIT(RRRR_GGGG_BBBB) |
| r1711 | r1712 | |
|---|---|---|
| 351 | 351 | MDRV_CPU_PROGRAM_MAP( konamigv_map, 0 ) |
| 352 | 352 | MDRV_CPU_VBLANK_INT( psx_vblank, 1 ) |
| 353 | 353 | |
| 354 | MDRV_SCREEN_REFRESH_RATE( 60 ) | |
| 355 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC( 0 )) | |
| 356 | ||
| 357 | 354 | MDRV_MACHINE_RESET( konamigv ) |
| 358 | 355 | MDRV_NVRAM_HANDLER(konamigv_93C46) |
| 359 | 356 | |
| 360 | 357 | /* video hardware */ |
| 361 | MDRV_VIDEO_ATTRIBUTES( VIDEO_TYPE_RASTER ) | |
| 358 | MDRV_SCREEN_ADD("main", RASTER) | |
| 359 | MDRV_SCREEN_REFRESH_RATE( 60 ) | |
| 360 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC( 0 )) | |
| 362 | 361 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 363 | 362 | MDRV_SCREEN_SIZE( 1024, 512 ) |
| 364 | 363 | MDRV_SCREEN_VISIBLE_AREA( 0, 639, 0, 479 ) |
| 364 | ||
| 365 | 365 | MDRV_PALETTE_LENGTH( 65536 ) |
| 366 | 366 | |
| 367 | 367 | MDRV_PALETTE_INIT( psx ) |
| r1711 | r1712 | |
|---|---|---|
| 583 | 583 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 584 | 584 | /* IRQs are caused by the ADPCM chip */ |
| 585 | 585 | /* NMIs are caused by the main CPU */ |
| 586 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 587 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 588 | 586 | MDRV_MACHINE_RESET(firetrap) |
| 589 | 587 | |
| 590 | 588 | /* video hardware */ |
| 591 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 589 | MDRV_SCREEN_ADD("main", RASTER) | |
| 590 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 591 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 592 | 592 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 593 | 593 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 594 | 594 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 595 | ||
| 595 | 596 | MDRV_GFXDECODE(firetrap) |
| 596 | 597 | MDRV_PALETTE_LENGTH(256) |
| 597 | 598 | |
| r1711 | r1712 | |
| 622 | 623 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 623 | 624 | /* IRQs are caused by the ADPCM chip */ |
| 624 | 625 | /* NMIs are caused by the main CPU */ |
| 625 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 626 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 627 | 626 | |
| 628 | 627 | /* video hardware */ |
| 629 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 628 | MDRV_SCREEN_ADD("main", RASTER) | |
| 629 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 630 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 630 | 631 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 631 | 632 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 632 | 633 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 634 | ||
| 633 | 635 | MDRV_GFXDECODE(firetrap) |
| 634 | 636 | MDRV_PALETTE_LENGTH(256) |
| 635 | 637 |
| r1711 | r1712 | |
|---|---|---|
| 866 | 866 | |
| 867 | 867 | MDRV_NVRAM_HANDLER(generic_1fill) |
| 868 | 868 | |
| 869 | MDRV_SCREEN_REFRESH_RATE(6000000.0f / 384.0f / 282.0f) | |
| 870 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 871 | ||
| 872 | 869 | MDRV_MACHINE_RESET( mastboy ) |
| 873 | 870 | |
| 874 | 871 | /* video hardware */ |
| 875 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 872 | MDRV_SCREEN_ADD("main", RASTER) | |
| 873 | MDRV_SCREEN_REFRESH_RATE(6000000.0f / 384.0f / 282.0f) | |
| 874 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 876 | 875 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 877 | 876 | MDRV_SCREEN_SIZE(256, 256) |
| 878 | 877 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 16, 256-16-1) |
| 878 | ||
| 879 | 879 | MDRV_GFXDECODE(mastboy) |
| 880 | 880 | MDRV_PALETTE_LENGTH(0x100) |
| 881 | 881 |
| r1711 | r1712 | |
|---|---|---|
| 373 | 373 | |
| 374 | 374 | /* CPU3 is a i8751 */ |
| 375 | 375 | |
| 376 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 377 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 378 | ||
| 379 | 376 | MDRV_MACHINE_RESET(thedeep) |
| 380 | 377 | |
| 381 | 378 | /* video hardware */ |
| 382 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 379 | MDRV_SCREEN_ADD("main", RASTER) | |
| 380 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 381 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 383 | 382 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 384 | 383 | MDRV_SCREEN_SIZE(0x100, 0xf8) |
| 385 | 384 | MDRV_SCREEN_VISIBLE_AREA(0, 0x100-1, 0, 0xf8-1) |
| 385 | ||
| 386 | 386 | MDRV_GFXDECODE(thedeep) |
| 387 | 387 | MDRV_PALETTE_LENGTH(512) |
| 388 | 388 |
| r1711 | r1712 | |
|---|---|---|
| 377 | 377 | MDRV_CPU_ADD(Z80, 5000000) |
| 378 | 378 | MDRV_CPU_PROGRAM_MAP(snd_readmem, snd_writemem) |
| 379 | 379 | |
| 380 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 381 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 382 | ||
| 383 | 380 | MDRV_GFXDECODE(oneshot) |
| 384 | 381 | |
| 385 | 382 | /* video hardware */ |
| 386 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 383 | MDRV_SCREEN_ADD("main", RASTER) | |
| 384 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 385 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 387 | 386 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 388 | 387 | MDRV_SCREEN_SIZE(32*16, 32*16) |
| 389 | 388 | MDRV_SCREEN_VISIBLE_AREA(0*16, 20*16-1, 0*16, 15*16-1) |
| 389 | ||
| 390 | 390 | MDRV_PALETTE_LENGTH(0x400) |
| 391 | 391 | |
| 392 | 392 | MDRV_VIDEO_START(oneshot) |
| r1711 | r1712 | |
|---|---|---|
| 244 | 244 | MDRV_CPU_PROGRAM_MAP(stlforce_map,0) |
| 245 | 245 | MDRV_CPU_VBLANK_INT(irq4_line_hold,1) |
| 246 | 246 | |
| 247 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 248 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 249 | ||
| 250 | 247 | MDRV_NVRAM_HANDLER(stlforce) |
| 251 | 248 | |
| 252 | 249 | /* video hardware */ |
| 253 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 250 | MDRV_SCREEN_ADD("main", RASTER) | |
| 251 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 252 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 254 | 253 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 255 | 254 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 256 | 255 | MDRV_SCREEN_VISIBLE_AREA(1*8, 47*8-1, 0*8, 30*8-1) |
| r1711 | r1712 | |
| 274 | 273 | MDRV_IMPORT_FROM(stlforce) |
| 275 | 274 | MDRV_CPU_REPLACE("cpu", M68000, 14745600) |
| 276 | 275 | |
| 276 | MDRV_SCREEN_MODIFY("main") | |
| 277 | 277 | MDRV_SCREEN_VISIBLE_AREA(3*8, 45*8-1, 0*8, 30*8-1) |
| 278 | 278 | MACHINE_DRIVER_END |
| 279 | 279 |
| r1711 | r1712 | |
|---|---|---|
| 516 | 516 | MDRV_CPU_IO_MAP(readport,writeport) |
| 517 | 517 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 518 | 518 | |
| 519 | /* video hardware */ | |
| 520 | MDRV_SCREEN_ADD("main", RASTER) | |
| 519 | 521 | MDRV_SCREEN_REFRESH_RATE(60) |
| 520 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 521 | ||
| 522 | /* video hardware */ | |
| 523 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 522 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 524 | 523 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 525 | 524 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 526 | 525 | MDRV_SCREEN_VISIBLE_AREA(4*8, 60*8-1, 2*8, 30*8-1) |
| 526 | ||
| 527 | 527 | MDRV_GFXDECODE(1) |
| 528 | 528 | MDRV_PALETTE_LENGTH(0x100) |
| 529 | 529 |
| r1711 | r1712 | |
|---|---|---|
| 707 | 707 | |
| 708 | 708 | MDRV_MACHINE_START(topspeed) |
| 709 | 709 | |
| 710 | /* video hardware */ | |
| 711 | MDRV_SCREEN_ADD("main", RASTER) | |
| 710 | 712 | MDRV_SCREEN_REFRESH_RATE(60) |
| 711 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 712 | ||
| 713 | /* video hardware */ | |
| 714 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 713 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 715 | 714 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 716 | 715 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 717 | 716 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 32*8-1) |
| 717 | ||
| 718 | 718 | MDRV_GFXDECODE(topspeed) |
| 719 | 719 | MDRV_PALETTE_LENGTH(8192) |
| 720 | 720 |
| r1711 | r1712 | |
|---|---|---|
| 582 | 582 | MDRV_CPU_CONFIG(sharc_cfg) |
| 583 | 583 | MDRV_CPU_DATA_MAP(sharc_map, 0) |
| 584 | 584 | |
| 585 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 586 | 585 | MDRV_INTERLEAVE(500) |
| 587 | 586 | |
| 588 | 587 | MDRV_NVRAM_HANDLER(93C46) |
| 589 | 588 | MDRV_MACHINE_RESET(zr107) |
| 590 | 589 | |
| 591 | 590 | /* video hardware */ |
| 592 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 591 | MDRV_SCREEN_ADD("main", RASTER) | |
| 592 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 593 | 593 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 594 | 594 | MDRV_SCREEN_SIZE(64*8, 48*8) |
| 595 | 595 | MDRV_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 0*8, 48*8-1) |
| 596 | ||
| 596 | 597 | MDRV_PALETTE_LENGTH(65536) |
| 597 | 598 | |
| 598 | 599 | MDRV_VIDEO_START(zr107) |
| r1711 | r1712 | |
| 626 | 627 | MDRV_CPU_CONFIG(sharc_cfg) |
| 627 | 628 | MDRV_CPU_DATA_MAP(sharc_map, 0) |
| 628 | 629 | |
| 629 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 630 | 630 | MDRV_INTERLEAVE(500) |
| 631 | 631 | |
| 632 | 632 | MDRV_NVRAM_HANDLER(93C46) |
| 633 | 633 | MDRV_MACHINE_RESET(zr107) |
| 634 | 634 | |
| 635 | 635 | /* video hardware */ |
| 636 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 636 | MDRV_SCREEN_ADD("main", RASTER) | |
| 637 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 637 | 638 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 638 | 639 | MDRV_SCREEN_SIZE(64*8, 48*8) |
| 639 | 640 | MDRV_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 0*8, 48*8-1) |
| 641 | ||
| 640 | 642 | MDRV_PALETTE_LENGTH(65536) |
| 641 | 643 | |
| 642 | 644 | MDRV_VIDEO_START(jetwave) |
| r1711 | r1712 | |
|---|---|---|
| 151 | 151 | static INPUT_PORTS_START( amspdwy ) |
| 152 | 152 | |
| 153 | 153 | PORT_START_TAG("DSW1") |
| 154 | PORT_DIPNAME( 0x01, 0x00, "Character Test" ) | |
| 154 | PORT_DIPNAME( 0x01, 0x00, "Character Test" ) PORT_DIPLOCATION("SW1:8") | |
| 155 | 155 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 156 | 156 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) |
| 157 | PORT_DIPNAME( 0x02, 0x00, "Show Arrows" ) | |
| 157 | PORT_DIPNAME( 0x02, 0x00, "Show Arrows" ) PORT_DIPLOCATION("SW1:7") | |
| 158 | 158 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 159 | 159 | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) |
| 160 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Demo_Sounds ) ) | |
| 160 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:6") | |
| 161 | 161 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 162 | 162 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) |
| 163 | PORT_SERVICE( 0x08, IP_ACTIVE_HIGH ) | |
| 164 | PORT_DIPNAME( 0x10, 0x00, "Steering Test" ) | |
| 163 | PORT_SERVICE_DIPLOC( 0x08, IP_ACTIVE_HIGH, "SW1:5" ) | |
| 164 | PORT_DIPNAME( 0x10, 0x00, "Steering Test" ) PORT_DIPLOCATION("SW1:4") | |
| 165 | 165 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 166 | 166 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) |
| 167 | PORT_DIPUNUSED( 0x20, IP_ACTIVE_HIGH ) | |
| 168 | PORT_DIPUNUSED( 0x40, IP_ACTIVE_HIGH ) | |
| 169 | PORT_DIPUNUSED( 0x80, IP_ACTIVE_HIGH ) | |
| 167 | PORT_DIPUNUSED_DIPLOC( 0x20, 0x00, "SW1:3" ) /* Listed as "Unused" */ | |
| 168 | PORT_DIPUNUSED_DIPLOC( 0x40, 0x00, "SW1:2" ) /* Listed as "Unused" */ | |
| 169 | PORT_DIPUNUSED_DIPLOC( 0x80, 0x00, "SW1:1" ) /* Listed as "Unused" */ | |
| 170 | 170 | |
| 171 | 171 | PORT_START_TAG("DSW2") |
| 172 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) ) | |
| 172 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW2:7,8") | |
| 173 | 173 | PORT_DIPSETTING( 0x03, DEF_STR( 2C_1C ) ) |
| 174 | 174 | // PORT_DIPSETTING( 0x02, DEF_STR( 1C_1C ) ) |
| 175 | 175 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) |
| 176 | 176 | PORT_DIPSETTING( 0x01, DEF_STR( 1C_2C ) ) |
| 177 | PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Difficulty ) ) | |
| 177 | PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:5,6") | |
| 178 | 178 | PORT_DIPSETTING( 0x00, DEF_STR( Easy ) ) |
| 179 | 179 | PORT_DIPSETTING( 0x04, DEF_STR( Normal ) ) |
| 180 | 180 | PORT_DIPSETTING( 0x08, DEF_STR( Hard ) ) |
| 181 | 181 | PORT_DIPSETTING( 0x0c, DEF_STR( Hardest ) ) |
| 182 | PORT_DIPNAME( 0x30, 0x00, "Time | |
| 182 | PORT_DIPNAME( 0x30, 0x00, "Time | |
| 183 | 183 | PORT_DIPSETTING( 0x30, "20 sec" ) |
| 184 | 184 | PORT_DIPSETTING( 0x20, "30 sec" ) |
| 185 | 185 | PORT_DIPSETTING( 0x10, "45 sec" ) |
| 186 | 186 | PORT_DIPSETTING( 0x00, "60 sec" ) |
| 187 | PORT_DIPUNUSED( 0x40, IP_ACTIVE_HIGH ) | |
| 188 | PORT_DIPUNUSED( 0x80, IP_ACTIVE_HIGH ) | |
| 187 | PORT_DIPUNUSED_DIPLOC( 0x40, 0x00, "SW2:2" ) /* Listed as "Unused" */ | |
| 188 | PORT_DIPUNUSED_DIPLOC( 0x80, 0x00, "SW2:1" ) /* Listed as "Unused" */ | |
| 189 | 189 | |
| 190 | 190 | PORT_START_TAG("IN2") // Player 1 Wheel + Coins |
| 191 | 191 | PORT_BIT( 0x1f, IP_ACTIVE_HIGH, IPT_SPECIAL ) // wheel |
| r1711 | r1712 | |
| 215 | 215 | PORT_INCLUDE(amspdwy) |
| 216 | 216 | |
| 217 | 217 | PORT_MODIFY("DSW2") |
| 218 | PORT_DIPNAME( 0x10, 0x00, "Time | |
| 218 | PORT_DIPNAME( 0x10, 0x00, "Time | |
| 219 | 219 | PORT_DIPSETTING( 0x10, "45 sec" ) |
| 220 | 220 | PORT_DIPSETTING( 0x00, "60 sec" ) |
| 221 | PORT_DIPUNUSED( 0x20, | |
| 221 | PORT_DIPUNUSED_DIPLOC( 0x20, 0x00, | |
| 222 | 222 | INPUT_PORTS_END |
| 223 | 223 | |
| 224 | 224 | |
| r1711 | r1712 | |
| 279 | 279 | MDRV_CPU_ADD(Z80,3000000) /* Can't be disabled: the YM2151 timers must work */ |
| 280 | 280 | MDRV_CPU_PROGRAM_MAP(amspdwy_sound_readmem,amspdwy_sound_writemem) |
| 281 | 281 | |
| 282 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 283 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 284 | ||
| 285 | 282 | /* video hardware */ |
| 286 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 283 | MDRV_SCREEN_ADD("main", RASTER) | |
| 284 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 285 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 287 | 286 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 288 | 287 | MDRV_SCREEN_SIZE(256, 256) |
| 289 | 288 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0+16, 256-16-1) |
| r1711 | r1712 | |
|---|---|---|
| 2045 | 2045 | MDRV_CPU_IO_MAP(sms_readport,sms_writeport) |
| 2046 | 2046 | |
| 2047 | 2047 | /* IRQ handled via the timers */ |
| 2048 | ||
| 2049 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2050 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) // Vblank handled manually. | |
| 2051 | 2048 | MDRV_MACHINE_RESET(systeme) |
| 2052 | 2049 | |
| 2053 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2054 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) | |
| 2055 | 2050 | |
| 2051 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2052 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2053 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) // Vblank handled manually. | |
| 2054 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) | |
| 2056 | 2055 | MDRV_SCREEN_SIZE(256, 256) |
| 2057 | 2056 | // MDRV_SCREEN_VISIBLE_AREA(0, 255, 0, 223) |
| 2058 | 2057 | MDRV_SCREEN_VISIBLE_AREA(0, 255, 0, 191) |
| r1711 | r1712 | |
|---|---|---|
| 820 | 820 | MDRV_CPU_PERIODIC_INT(fantland_sound_irq, 8000) |
| 821 | 821 | // NMI when soundlatch is written |
| 822 | 822 | |
| 823 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 824 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 825 | ||
| 826 | 823 | MDRV_MACHINE_RESET(fantland) |
| 827 | 824 | |
| 828 | 825 | MDRV_INTERLEAVE(8000/60) // sound irq must feed the DAC at 8kHz |
| 829 | 826 | |
| 830 | 827 | /* video hardware */ |
| 831 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 828 | MDRV_SCREEN_ADD("main", RASTER) | |
| 829 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 830 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 832 | 831 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 833 | 832 | MDRV_SCREEN_SIZE(352,256) |
| 834 | 833 | MDRV_SCREEN_VISIBLE_AREA(0, 352-1, 0, 256-1) |
| 834 | ||
| 835 | 835 | MDRV_GFXDECODE(fantland) |
| 836 | 836 | MDRV_PALETTE_LENGTH(256) |
| 837 | 837 | |
| r1711 | r1712 | |
| 871 | 871 | MDRV_CPU_IO_MAP(fantland_sound_iomap, 0) |
| 872 | 872 | // IRQ by YM2151, NMI when soundlatch is written |
| 873 | 873 | |
| 874 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 875 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 876 | ||
| 877 | 874 | MDRV_MACHINE_RESET(fantland) |
| 878 | 875 | |
| 879 | 876 | /* video hardware */ |
| 880 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 877 | MDRV_SCREEN_ADD("main", RASTER) | |
| 878 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 879 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 881 | 880 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 882 | 881 | MDRV_SCREEN_SIZE(352,256) |
| 883 | 882 | MDRV_SCREEN_VISIBLE_AREA(0, 352-1, 0, 256-1) |
| 883 | ||
| 884 | 884 | MDRV_GFXDECODE(fantland) |
| 885 | 885 | MDRV_PALETTE_LENGTH(256) |
| 886 | 886 | |
| r1711 | r1712 | |
| 923 | 923 | MDRV_CPU_ADD(I8088, 18432000/3) // 8088 - AMD P8088-2 CPU, running at 6.144MHz [18.432/3] |
| 924 | 924 | MDRV_CPU_PROGRAM_MAP(borntofi_sound_map, 0) |
| 925 | 925 | |
| 926 | MDRV_SCREEN_REFRESH_RATE(54) // 54 Hz | |
| 927 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 928 | ||
| 929 | 926 | MDRV_MACHINE_RESET(borntofi) |
| 930 | 927 | |
| 931 | 928 | /* video hardware */ |
| 932 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 929 | MDRV_SCREEN_ADD("main", RASTER) | |
| 930 | MDRV_SCREEN_REFRESH_RATE(54) // 54 Hz | |
| 931 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 933 | 932 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 934 | 933 | MDRV_SCREEN_SIZE(352,256) |
| 935 | 934 | MDRV_SCREEN_VISIBLE_AREA(0, 352-1, 0, 256-1) |
| 935 | ||
| 936 | 936 | MDRV_GFXDECODE(fantland) |
| 937 | 937 | MDRV_PALETTE_LENGTH(256) |
| 938 | 938 | |
| r1711 | r1712 | |
| 970 | 970 | MDRV_CPU_PROGRAM_MAP(wheelrun_sound_map, 0) |
| 971 | 971 | // IRQ by YM3526, NMI when soundlatch is written |
| 972 | 972 | |
| 973 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 974 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 975 | ||
| 976 | 973 | MDRV_MACHINE_RESET(fantland) |
| 977 | 974 | |
| 978 | 975 | /* video hardware */ |
| 979 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 976 | MDRV_SCREEN_ADD("main", RASTER) | |
| 977 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 978 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 980 | 979 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 981 | 980 | MDRV_SCREEN_SIZE(256,224) |
| 982 | 981 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0, 224-1) |
| 982 | ||
| 983 | 983 | MDRV_GFXDECODE(fantland) |
| 984 | 984 | MDRV_PALETTE_LENGTH(256) |
| 985 | 985 |
| r1711 | r1712 | |
|---|---|---|
| 256 | 256 | MDRV_CPU_IO_MAP(portmap,0) |
| 257 | 257 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 258 | 258 | |
| 259 | /* video hardware */ | |
| 260 | MDRV_SCREEN_ADD("main", RASTER) | |
| 259 | 261 | MDRV_SCREEN_REFRESH_RATE(60) |
| 260 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 261 | ||
| 262 | /* video hardware */ | |
| 263 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 262 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 264 | 263 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 265 | 264 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 266 | 265 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 32*8-1) |
| 266 | ||
| 267 | 267 | MDRV_GFXDECODE(dominob) |
| 268 | 268 | MDRV_PALETTE_LENGTH(512) |
| 269 | 269 |
| r1711 | r1712 | |
|---|---|---|
| 2729 | 2729 | MDRV_CPU_PROGRAM_MAP( konami573_map, 0 ) |
| 2730 | 2730 | MDRV_CPU_VBLANK_INT( sys573_vblank, 1 ) |
| 2731 | 2731 | |
| 2732 | MDRV_SCREEN_REFRESH_RATE( 60 ) | |
| 2733 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC( 0 )) | |
| 2734 | ||
| 2735 | 2732 | MDRV_MACHINE_RESET( konami573 ) |
| 2736 | 2733 | MDRV_NVRAM_HANDLER( konami573 ) |
| 2737 | 2734 | |
| 2738 | 2735 | /* video hardware */ |
| 2739 | MDRV_VIDEO_ATTRIBUTES( VIDEO_TYPE_RASTER ) | |
| 2736 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2737 | MDRV_SCREEN_REFRESH_RATE( 60 ) | |
| 2738 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC( 0 )) | |
| 2740 | 2739 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2741 | 2740 | MDRV_SCREEN_SIZE( 1024, 1024 ) |
| 2742 | 2741 | MDRV_SCREEN_VISIBLE_AREA( 0, 639, 0, 479 ) |
| 2742 | ||
| 2743 | 2743 | MDRV_PALETTE_LENGTH( 65536 ) |
| 2744 | 2744 | |
| 2745 | 2745 | MDRV_PALETTE_INIT( psx ) |
| r1711 | r1712 | |
|---|---|---|
| 431 | 431 | MDRV_NVRAM_HANDLER(atarigen) |
| 432 | 432 | |
| 433 | 433 | /* video hardware */ |
| 434 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 434 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 435 | 435 | MDRV_GFXDECODE(atarig1) |
| 436 | 436 | MDRV_PALETTE_LENGTH(1280) |
| 437 | 437 | |
| 438 | MDRV_SCREEN_ADD("main", | |
| 438 | MDRV_SCREEN_ADD("main", RASTER) | |
| 439 | 439 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 440 | 440 | /* note: these parameters are from published specs, not derived */ |
| 441 | 441 | MDRV_SCREEN_RAW_PARAMS(ATARI_CLOCK_14MHz/2, 456, 0, 336, 262, 0, 240) |
| r1711 | r1712 | |
|---|---|---|
| 486 | 486 | MDRV_WATCHDOG_VBLANK_INIT(8) |
| 487 | 487 | |
| 488 | 488 | /* video hardware */ |
| 489 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 490 | 489 | MDRV_GFXDECODE(sbrkout) |
| 491 | 490 | MDRV_PALETTE_LENGTH(2) |
| 492 | 491 | |
| 493 | MDRV_SCREEN_ADD("main", | |
| 492 | MDRV_SCREEN_ADD("main", RASTER) | |
| 494 | 493 | MDRV_SCREEN_RAW_PARAMS(MAIN_CLOCK/2, 384, 0, 256, 262, 0, 224) |
| 495 | 494 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 496 | 495 |
| r1711 | r1712 | |
|---|---|---|
| 440 | 440 | /* audio CPU */ /* ? */ |
| 441 | 441 | MDRV_CPU_PROGRAM_MAP(bladestl_readmem_sound,bladestl_writemem_sound) |
| 442 | 442 | |
| 443 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 444 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 445 | 443 | MDRV_INTERLEAVE(10) |
| 446 | 444 | |
| 447 | 445 | /* video hardware */ |
| 448 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 446 | MDRV_SCREEN_ADD("main", RASTER) | |
| 447 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 448 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 449 | 449 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 450 | 450 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 451 | 451 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 452 | ||
| 452 | 453 | MDRV_GFXDECODE(bladestl) |
| 453 | 454 | MDRV_PALETTE_INIT(bladestl) |
| 454 | 455 | MDRV_PALETTE_LENGTH(32 + 16*16) |
| r1711 | r1712 | |
|---|---|---|
| 243 | 243 | MDRV_CPU_ADD(M68010, ATARI_CLOCK_32MHz/4) |
| 244 | 244 | MDRV_CPU_PROGRAM_MAP(main_readmem,main_writemem) |
| 245 | 245 | |
| 246 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 247 | ||
| 248 | 246 | MDRV_MACHINE_RESET(toobin) |
| 249 | 247 | MDRV_NVRAM_HANDLER(atarigen) |
| 250 | 248 | |
| 251 | 249 | /* video hardware */ |
| 252 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 250 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 251 | ||
| 252 | MDRV_SCREEN_ADD("main", RASTER) | |
| 253 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 253 | 254 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 254 | 255 | /* the vert size is copied from atarisy2.c. Needs to be verified */ |
| 255 | 256 | MDRV_SCREEN_SIZE(64*8, 420) |
| 256 | 257 | MDRV_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 0*8, 48*8-1) |
| 258 | ||
| 257 | 259 | MDRV_GFXDECODE(toobin) |
| 258 | 260 | MDRV_PALETTE_LENGTH(1024) |
| 259 | 261 |
| r1711 | r1712 | |
|---|---|---|
| 688 | 688 | MDRV_CPU_PROGRAM_MAP(bwidow_map,0) |
| 689 | 689 | MDRV_CPU_PERIODIC_INT(irq0_line_assert, (double)MASTER_CLOCK / 4096 / 12) |
| 690 | 690 | |
| 691 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 692 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 693 | ||
| 694 | 691 | MDRV_NVRAM_HANDLER(atari_vg) |
| 695 | 692 | |
| 696 | 693 | /* video hardware */ |
| 697 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_VECTOR ) | |
| 698 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) | |
| 694 | MDRV_SCREEN_ADD("main", VECTOR) | |
| 695 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 699 | 696 | MDRV_SCREEN_SIZE(400, 300) |
| 700 | 697 | MDRV_SCREEN_VISIBLE_AREA(0, 480, 0, 440) |
| 698 | ||
| 701 | 699 | MDRV_PALETTE_LENGTH(32768) |
| 702 | 700 | |
| 703 | 701 | MDRV_VIDEO_START(avg) |
| r1711 | r1712 | |
| 722 | 720 | MDRV_IMPORT_FROM(bwidow) |
| 723 | 721 | |
| 724 | 722 | /* video hardware */ |
| 723 | MDRV_SCREEN_MODIFY("main") | |
| 725 | 724 | MDRV_SCREEN_VISIBLE_AREA(0, 420, 0, 400) |
| 726 | 725 | MACHINE_DRIVER_END |
| 727 | 726 | |
| r1711 | r1712 | |
| 733 | 732 | MDRV_CPU_MODIFY("main") |
| 734 | 733 | MDRV_CPU_PROGRAM_MAP(spacduel_map,0) |
| 735 | 734 | |
| 736 | MDRV_SCREEN_REFRESH_RATE(45) | |
| 737 | ||
| 738 | 735 | /* video hardware */ |
| 736 | MDRV_SCREEN_MODIFY("main") | |
| 737 | MDRV_SCREEN_REFRESH_RATE(45) | |
| 739 | 738 | MDRV_SCREEN_VISIBLE_AREA(0, 500, 0, 440) |
| 740 | 739 | MACHINE_DRIVER_END |
| 741 | 740 | |
| r1711 | r1712 | |
| 747 | 746 | MDRV_CPU_MODIFY("main") |
| 748 | 747 | MDRV_CPU_PROGRAM_MAP(spacduel_map,0) |
| 749 | 748 | |
| 750 | MDRV_SCREEN_REFRESH_RATE(45) | |
| 751 | ||
| 752 | 749 | /* video hardware */ |
| 750 | MDRV_SCREEN_MODIFY("main") | |
| 751 | MDRV_SCREEN_REFRESH_RATE(45) | |
| 753 | 752 | MDRV_SCREEN_VISIBLE_AREA(0, 540, 0, 400) |
| 754 | 753 | MACHINE_DRIVER_END |
| 755 | 754 |
| r1711 | r1712 | |
|---|---|---|
| 265 | 265 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 266 | 266 | MDRV_CPU_VBLANK_INT(irq0_line_hold,4) |
| 267 | 267 | |
| 268 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 269 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 270 | ||
| 271 | 268 | MDRV_MACHINE_RESET(srumbler) |
| 272 | 269 | |
| 273 | 270 | /* video hardware */ |
| 274 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 271 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 272 | ||
| 273 | MDRV_SCREEN_ADD("main", RASTER) | |
| 274 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 275 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 275 | 276 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 276 | 277 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 277 | 278 | MDRV_SCREEN_VISIBLE_AREA(10*8, (64-10)*8-1, 1*8, 31*8-1 ) |
| 279 | ||
| 278 | 280 | MDRV_GFXDECODE(srumbler) |
| 279 | 281 | MDRV_PALETTE_LENGTH(512) |
| 280 | 282 |
| r1711 | r1712 | |
|---|---|---|
| 3472 | 3472 | MDRV_MACHINE_RESET(seibu_sound_1) |
| 3473 | 3473 | |
| 3474 | 3474 | /* video hardware */ |
| 3475 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 3475 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 3476 | ||
| 3477 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3476 | 3478 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3477 | 3479 | MDRV_SCREEN_REFRESH_RATE(60) |
| 3478 | MDRV_SCREEN_VBLANK_TIME( | |
| 3480 | MDRV_SCREEN_VBLANK_TIME( | |
| 3479 | 3481 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 3480 | 3482 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 3483 | ||
| 3481 | 3484 | MDRV_GFXDECODE(legionna) |
| 3482 | 3485 | MDRV_PALETTE_LENGTH(128*16) |
| 3483 | 3486 | |
| r1711 | r1712 | |
| 3501 | 3504 | MDRV_MACHINE_RESET(seibu_sound_1) |
| 3502 | 3505 | |
| 3503 | 3506 | /* video hardware */ |
| 3504 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 3507 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 3508 | ||
| 3509 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3505 | 3510 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3506 | 3511 | MDRV_SCREEN_REFRESH_RATE(60) |
| 3507 | MDRV_SCREEN_VBLANK_TIME( | |
| 3512 | MDRV_SCREEN_VBLANK_TIME( | |
| 3508 | 3513 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 3509 | 3514 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 32*8-1) |
| 3515 | ||
| 3510 | 3516 | MDRV_GFXDECODE(heatbrl) |
| 3511 | 3517 | MDRV_PALETTE_LENGTH(128*16) |
| 3512 | 3518 | |
| r1711 | r1712 | |
| 3529 | 3535 | MDRV_MACHINE_RESET(seibu_sound_1) |
| 3530 | 3536 | |
| 3531 | 3537 | /* video hardware */ |
| 3532 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 3538 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 3539 | ||
| 3540 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3533 | 3541 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3534 | 3542 | MDRV_SCREEN_REFRESH_RATE(61) |
| 3535 | MDRV_SCREEN_VBLANK_TIME( | |
| 3543 | MDRV_SCREEN_VBLANK_TIME( | |
| 3536 | 3544 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 3537 | 3545 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 30*8-1) |
| 3546 | ||
| 3538 | 3547 | MDRV_GFXDECODE(heatbrl) |
| 3539 | 3548 | MDRV_PALETTE_LENGTH(128*16) |
| 3540 | 3549 | |
| r1711 | r1712 | |
| 3557 | 3566 | MDRV_MACHINE_RESET(seibu_sound_1) |
| 3558 | 3567 | |
| 3559 | 3568 | /* video hardware */ |
| 3560 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 3569 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 3570 | ||
| 3571 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3561 | 3572 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3562 | 3573 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 3563 | 3574 | MDRV_SCREEN_REFRESH_RATE(61) |
| 3564 | MDRV_SCREEN_VBLANK_TIME( | |
| 3575 | MDRV_SCREEN_VBLANK_TIME( | |
| 3565 | 3576 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 32*8-1) |
| 3577 | ||
| 3566 | 3578 | MDRV_GFXDECODE(heatbrl) |
| 3567 | 3579 | MDRV_PALETTE_LENGTH(128*16) |
| 3568 | 3580 | |
| r1711 | r1712 | |
| 3585 | 3597 | MDRV_MACHINE_RESET(seibu_sound_1) |
| 3586 | 3598 | |
| 3587 | 3599 | /* video hardware */ |
| 3588 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 3600 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 3601 | ||
| 3602 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3589 | 3603 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3590 | 3604 | MDRV_SCREEN_REFRESH_RATE(60) |
| 3591 | MDRV_SCREEN_VBLANK_TIME( | |
| 3605 | MDRV_SCREEN_VBLANK_TIME( | |
| 3592 | 3606 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 3593 | 3607 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 32*8-1) |
| 3608 | ||
| 3594 | 3609 | MDRV_GFXDECODE(sdgndmrb) |
| 3595 | 3610 | MDRV_PALETTE_LENGTH(128*16) |
| 3596 | 3611 | |
| r1711 | r1712 | |
| 3614 | 3629 | MDRV_MACHINE_RESET(seibu_sound_1) |
| 3615 | 3630 | |
| 3616 | 3631 | /* video hardware */ |
| 3617 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 3632 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 3633 | ||
| 3634 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3618 | 3635 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3619 | 3636 | MDRV_SCREEN_REFRESH_RATE(60) |
| 3620 | MDRV_SCREEN_VBLANK_TIME( | |
| 3637 | MDRV_SCREEN_VBLANK_TIME( | |
| 3621 | 3638 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 3622 | 3639 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 30*8-1) |
| 3640 | ||
| 3623 | 3641 | MDRV_GFXDECODE(heatbrl) |
| 3624 | 3642 | MDRV_PALETTE_LENGTH(128*16) |
| 3625 | 3643 | |
| r1711 | r1712 | |
| 3647 | 3665 | //MDRV_MACHINE_INIT(seibu_sound_1) |
| 3648 | 3666 | |
| 3649 | 3667 | /* video hardware */ |
| 3650 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 3668 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 3669 | ||
| 3670 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3651 | 3671 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3652 | 3672 | MDRV_SCREEN_REFRESH_RATE(60) |
| 3653 | MDRV_SCREEN_VBLANK_TIME( | |
| 3673 | MDRV_SCREEN_VBLANK_TIME( | |
| 3654 | 3674 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 3655 | 3675 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 32*8-1) |
| 3676 | ||
| 3656 | 3677 | MDRV_GFXDECODE(heatbrl) |
| 3657 | 3678 | MDRV_PALETTE_LENGTH(128*16) |
| 3658 | 3679 |
| r1711 | r1712 | |
|---|---|---|
| 170 | 170 | } |
| 171 | 171 | #endif |
| 172 | 172 | |
| 173 | fillbitmap(bitmap, | |
| 173 | fillbitmap(bitmap, | |
| 174 | 174 | |
| 175 | 175 | if (layers_ctrl & 2) draw_sprites(machine, bitmap,cliprect); |
| 176 | 176 | if (layers_ctrl & 1) tilemap_draw(bitmap,cliprect, tmap, 0, 0); |
| r1711 | r1712 | |
| 444 | 444 | MDRV_CPU_PROGRAM_MAP(mem_map,0) |
| 445 | 445 | MDRV_CPU_VBLANK_INT(irq1_line_hold,1) |
| 446 | 446 | |
| 447 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 448 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 449 | ||
| 450 | 447 | MDRV_NVRAM_HANDLER(93C46) |
| 451 | 448 | |
| 452 | 449 | /* video hardware */ |
| 453 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 450 | MDRV_SCREEN_ADD("main", RASTER) | |
| 451 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 452 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 454 | 453 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 455 | 454 | MDRV_SCREEN_SIZE(320, 256) |
| 456 | 455 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 16, 256-16-1) |
| 456 | ||
| 457 | 457 | MDRV_GFXDECODE(midas) |
| 458 | 458 | MDRV_PALETTE_LENGTH(0x10000) |
| 459 | 459 |
| r1711 | r1712 | |
|---|---|---|
| 882 | 882 | MDRV_CPU_PROGRAM_MAP(zwackery_map,0) |
| 883 | 883 | MDRV_CPU_VBLANK_INT(mcr68_interrupt,1) |
| 884 | 884 | |
| 885 | MDRV_SCREEN_REFRESH_RATE(30) | |
| 886 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_30HZ_VBLANK_DURATION) | |
| 887 | 885 | // MDRV_WATCHDOG_VBLANK_INIT(8) |
| 888 | 886 | MDRV_MACHINE_START(zwackery) |
| 889 | 887 | MDRV_MACHINE_RESET(zwackery) |
| 890 | 888 | |
| 891 | 889 | /* video hardware */ |
| 892 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 890 | MDRV_SCREEN_ADD("main", RASTER) | |
| 891 | MDRV_SCREEN_REFRESH_RATE(30) | |
| 892 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 893 | 893 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 894 | 894 | MDRV_SCREEN_SIZE(32*16, 30*16) |
| 895 | 895 | MDRV_SCREEN_VISIBLE_AREA(0, 32*16-1, 0, 30*16-1) |
| 896 | ||
| 896 | 897 | MDRV_GFXDECODE(zwackery) |
| 897 | 898 | MDRV_PALETTE_LENGTH(4096) |
| 898 | 899 | |
| r1711 | r1712 | |
| 911 | 912 | MDRV_CPU_PROGRAM_MAP(mcr68_map,0) |
| 912 | 913 | MDRV_CPU_VBLANK_INT(mcr68_interrupt,1) |
| 913 | 914 | |
| 914 | MDRV_SCREEN_REFRESH_RATE(30) | |
| 915 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_30HZ_VBLANK_DURATION) | |
| 916 | 915 | MDRV_WATCHDOG_VBLANK_INIT(8) |
| 917 | 916 | MDRV_MACHINE_START(mcr68) |
| 918 | 917 | MDRV_MACHINE_RESET(mcr68) |
| 919 | 918 | |
| 920 | 919 | /* video hardware */ |
| 921 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 920 | MDRV_SCREEN_ADD("main", RASTER) | |
| 921 | MDRV_SCREEN_REFRESH_RATE(30) | |
| 922 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 922 | 923 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 923 | 924 | MDRV_SCREEN_SIZE(32*16, 30*16) |
| 924 | 925 | MDRV_SCREEN_VISIBLE_AREA(0, 32*16-1, 0, 30*16-1) |
| 926 | ||
| 925 | 927 | MDRV_GFXDECODE(mcr68) |
| 926 | 928 | MDRV_PALETTE_LENGTH(64) |
| 927 | 929 | |
| r1711 | r1712 | |
| 1027 | 1029 | ROM_REGION( 0x8000, REGION_GFX3, ROMREGION_DISPOSE ) /* bg color maps */ |
| 1028 | 1030 | ROM_LOAD16_BYTE( "tilef.bin", 0x0000, 0x4000, CRC(a0dfcd7e) SHA1(0fc6723eddef2a96de9bf1f48006dd067c148540) ) |
| 1029 | 1031 | ROM_LOAD16_BYTE( "tilee.bin", 0x0001, 0x4000, CRC(ab504dc8) SHA1(4ebdcd42624e94c29ccdb8247bfff2d8e936ddd7) ) |
| 1032 | ||
| 1033 | ROM_REGION( 0x000D, REGION_PLDS, ROMREGION_DISPOSE ) | |
| 1034 | /* According to the manual these pal's are located on the "Venus CPU" board */ | |
| 1035 | ROM_LOAD( "pal.d5", 0x0000, 0x00001, NO_DUMP ) /* marked H-T in manual */ | |
| 1036 | ROM_LOAD( "pal.d2", 0x0001, 0x00001, NO_DUMP ) /* marked V-T in manual */ | |
| 1037 | ROM_LOAD( "pal.d4", 0x0002, 0x00001, NO_DUMP ) /* marked MISC V&H PAL in manual */ | |
| 1038 | ROM_LOAD( "pal.d3", 0x0003, 0x00001, NO_DUMP ) /* marked MISC CUSTOM PAL in manual */ | |
| 1039 | ROM_LOAD( "pal.e6", 0x0004, 0x00001, NO_DUMP ) /* marked CPU WTS PAL in manual*/ | |
| 1040 | ROM_LOAD( "pal.f8", 0x0005, 0x00001, NO_DUMP ) /* marked CPU IOC PAL in manual*/ | |
| 1041 | ROM_LOAD( "pal.a5", 0x0006, 0x00001, NO_DUMP ) /* marked CPU RMD PAL in manual*/ | |
| 1042 | /* According to the manual these pal's are located on the "Venus VIDEO" board */ | |
| 1043 | ROM_LOAD( "pal.1f", 0x0007, 0x00001, NO_DUMP ) /* marked PAL FGBDCD in manual*/ | |
| 1044 | ROM_LOAD( "pal.1d", 0x0008, 0x00001, NO_DUMP ) /* marked PAL HCT in manual*/ | |
| 1045 | /* According to the manual these pal's are located on the "Venus BACKGROUND" board */ | |
| 1046 | ROM_LOAD( "pal.1c", 0x0009, 0x00001, NO_DUMP ) /* marked BGBPE PAL in manual*/ | |
| 1047 | ROM_LOAD( "pal.5c", 0x000a, 0x00001, NO_DUMP ) /* marked HCT PAL in manual*/ | |
| 1048 | ROM_LOAD( "pal.5j", 0x000b, 0x00001, NO_DUMP ) /* marked BGBDCD PAL in manual*/ | |
| 1049 | /* According to the manual this pal is located on the "Artificial Artist" board */ | |
| 1050 | ROM_LOAD( "pal20.u15", 0x000c, 0x00001, NO_DUMP ) /* marked CSD002R0 in manual, pal type not specified */ | |
| 1030 | 1051 | ROM_END |
| 1031 | 1052 | |
| 1032 | 1053 | |
| r1711 | r1712 | |
| 1052 | 1073 | ROM_LOAD( "xeno_fg.8j", 0x10000, 0x10000, CRC(20e682f5) SHA1(1009f7ec56998df8a1d5ecd724d0523c435c9ee0) ) |
| 1053 | 1074 | ROM_LOAD( "xeno_fg.9j", 0x20000, 0x10000, CRC(82fb3e09) SHA1(f06e9df20044244a6c174f4876e615ccc18e1cba) ) |
| 1054 | 1075 | ROM_LOAD( "xeno_fg.10j", 0x30000, 0x10000, CRC(6a7a3516) SHA1(1def9c134220eac9ba5e46d38282ff18f51b6398) ) |
| 1076 | ||
| 1077 | ROM_REGION( 0x0006, REGION_PLDS, ROMREGION_DISPOSE ) | |
| 1078 | /* According to the manual these pal's are located on the Video Game board */ | |
| 1079 | ROM_LOAD( "pal20l8.9b", 0x00000, 0x00001, NO_DUMP ) /* marked COLARB in manual */ | |
| 1080 | ROM_LOAD( "pal16l8.1j", 0x00001, 0x00001, NO_DUMP ) /* marked IODCD in manual */ | |
| 1081 | ROM_LOAD( "pal16l8.2j", 0x00002, 0x00001, NO_DUMP ) /* marked MEMDCD in manual */ | |
| 1082 | ROM_LOAD( "pal16r4.2k", 0x00003, 0x00001, NO_DUMP ) /* marked DTACK in manual */ | |
| 1083 | ROM_LOAD( "pal16r4.14k", 0x00004, 0x00001, NO_DUMP ) /* marked HSYNC in manual*/ | |
| 1084 | /* According to the manual this pal is located on the "Sounds Good" board */ | |
| 1085 | ROM_LOAD( "pal20.u15", 0x00005, 0x00001, NO_DUMP ) /* marked SG01R0 in manual, pal type not specified */ | |
| 1055 | 1086 | ROM_END |
| 1056 | 1087 | |
| 1057 | 1088 | |
| r1711 | r1712 | |
| 1079 | 1110 | ROM_LOAD( "fg1.8j", 0x20000, 0x20000, CRC(692afb67) SHA1(5669298a646deb2f82e438ae52de03f81a9e11a7) ) |
| 1080 | 1111 | ROM_LOAD( "fg2.9j", 0x40000, 0x20000, CRC(f1aba383) SHA1(56d1f7e9eb430671076415dd87fe77a38fadad84) ) |
| 1081 | 1112 | ROM_LOAD( "fg3.10j", 0x60000, 0x20000, CRC(d3475ff8) SHA1(aa7a283a190a6c43e365fcd9242c5d0b920dbf32) ) |
| 1113 | ||
| 1114 | ROM_REGION( 0x0006, REGION_PLDS, ROMREGION_DISPOSE ) | |
| 1115 | /* According to the manual these pal's are located on the Video Game board */ | |
| 1116 | ROM_LOAD( "pal20l8.9b", 0x00000, 0x00001, NO_DUMP ) /* marked COLARB in manual */ | |
| 1117 | ROM_LOAD( "pal16l8.1j", 0x00001, 0x00001, NO_DUMP ) /* marked IODCD in manual */ | |
| 1118 | ROM_LOAD( "pal16l8.2j", 0x00002, 0x00001, NO_DUMP ) /* marked MEMDCD in manual */ | |
| 1119 | ROM_LOAD( "pal16r4.2k", 0x00003, 0x00001, NO_DUMP ) /* marked DTACK in manual */ | |
| 1120 | ROM_LOAD( "pal16r4.14k", 0x00004, 0x00001, NO_DUMP ) /* marked HSYNC in manual*/ | |
| 1121 | /* According to the manual this pal is located on the "Sounds Good" board */ | |
| 1122 | ROM_LOAD( "pal20.u15", 0x00005, 0x00001, NO_DUMP ) /* marked SG01R0 in manual, pal type not specified */ | |
| 1082 | 1123 | ROM_END |
| 1083 | 1124 | |
| 1084 | 1125 | |
| r1711 | r1712 | |
| 1106 | 1147 | ROM_LOAD( "fg1.8j", 0x20000, 0x20000, CRC(692afb67) SHA1(5669298a646deb2f82e438ae52de03f81a9e11a7) ) |
| 1107 | 1148 | ROM_LOAD( "fg2.9j", 0x40000, 0x20000, CRC(f1aba383) SHA1(56d1f7e9eb430671076415dd87fe77a38fadad84) ) |
| 1108 | 1149 | ROM_LOAD( "fg3.10j", 0x60000, 0x20000, CRC(d3475ff8) SHA1(aa7a283a190a6c43e365fcd9242c5d0b920dbf32) ) |
| 1150 | ||
| 1151 | ROM_REGION( 0x0006, REGION_PLDS, ROMREGION_DISPOSE ) | |
| 1152 | /* According to the manual these pal's are located on the Video Game board */ | |
| 1153 | ROM_LOAD( "pal20l8.9b", 0x00000, 0x00001, NO_DUMP ) /* marked COLARB in manual */ | |
| 1154 | ROM_LOAD( "pal16l8.1j", 0x00001, 0x00001, NO_DUMP ) /* marked IODCD in manual */ | |
| 1155 | ROM_LOAD( "pal16l8.2j", 0x00002, 0x00001, NO_DUMP ) /* marked MEMDCD in manual */ | |
| 1156 | ROM_LOAD( "pal16r4.2k", 0x00003, 0x00001, NO_DUMP ) /* marked DTACK in manual */ | |
| 1157 | ROM_LOAD( "pal16r4.14k", 0x00004, 0x00001, NO_DUMP ) /* marked HSYNC in manual*/ | |
| 1158 | /* According to the manual this pal is located on the "Sounds Good" board */ | |
| 1159 | ROM_LOAD( "pal20.u15", 0x00005, 0x00001, NO_DUMP ) /* marked SG01R0 in manual, pal type not specified */ | |
| 1109 | 1160 | ROM_END |
| 1110 | 1161 | |
| 1111 | 1162 | |
| r1711 | r1712 | |
| 1131 | 1182 | ROM_LOAD( "fg1", 0x20000, 0x20000, CRC(4fbdba58) SHA1(5dfaca5447e96d904028a14ef01ab6bd972011e6) ) |
| 1132 | 1183 | ROM_LOAD( "fg2", 0x40000, 0x20000, CRC(8891f6f8) SHA1(af07aa290eff3b9632b238d8b5a37280961f63f7) ) |
| 1133 | 1184 | ROM_LOAD( "fg3", 0x60000, 0x20000, CRC(18e4a130) SHA1(2412b45ca58b36515c80b0888a5d35303a5ce5a2) ) |
| 1185 | ||
| 1186 | ROM_REGION( 0x0006, REGION_PLDS, ROMREGION_DISPOSE ) | |
| 1187 | /* According to the manual these pal's are located on the Video Game board */ | |
| 1188 | ROM_LOAD( "pal20l8.9b", 0x00000, 0x00001, NO_DUMP ) /* marked COLARB in manual */ | |
| 1189 | ROM_LOAD( "pal16l8.1j", 0x00001, 0x00001, NO_DUMP ) /* marked IODCD in manual */ | |
| 1190 | ROM_LOAD( "pal16l8.2j", 0x00002, 0x00001, NO_DUMP ) /* marked MEMDCD in manual */ | |
| 1191 | ROM_LOAD( "pal16r4.2k", 0x00003, 0x00001, NO_DUMP ) /* marked DTACK in manual */ | |
| 1192 | ROM_LOAD( "pal16r4.14k", 0x00004, 0x00001, NO_DUMP ) /* marked HSYNC in manual*/ | |
| 1193 | /* According to the manual this pal is located on the "Sounds Good" board */ | |
| 1194 | ROM_LOAD( "pal20.u15", 0x00005, 0x00001, NO_DUMP ) /* marked SG01R0 in manual, pal type not specified */ | |
| 1134 | 1195 | ROM_END |
| 1135 | 1196 | |
| 1136 | 1197 | |
| r1711 | r1712 | |
| 1327 | 1388 | |
| 1328 | 1389 | static DRIVER_INIT( xenophob ) |
| 1329 | 1390 | { |
| 1330 | mcr68_common_init(MCR_SOUNDS_GOOD, 0, | |
| 1391 | mcr68_common_init(MCR_SOUNDS_GOOD, 0, -4); | |
| 1331 | 1392 | |
| 1332 | 1393 | /* Xenophobe doesn't care too much about this value; currently taken from Blasted */ |
| 1333 | 1394 | mcr68_timing_factor = attotime_make(0, HZ_TO_ATTOSECONDS(cpunum_get_clock(0) / 10) * (256 + 16)); |
| r1711 | r1712 | |
|---|---|---|
| 275 | 275 | MDRV_CPU_IO_MAP(0,sound_writeport) |
| 276 | 276 | MDRV_CPU_VBLANK_INT(pbaction_interrupt,2) /* ??? */ |
| 277 | 277 | /* IRQs are caused by the main CPU */ |
| 278 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 279 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 280 | 278 | |
| 281 | 279 | /* video hardware */ |
| 282 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 280 | MDRV_SCREEN_ADD("main", RASTER) | |
| 281 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 282 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 283 | 283 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 284 | 284 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 285 | 285 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 286 | ||
| 286 | 287 | MDRV_GFXDECODE(pbaction) |
| 287 | 288 | MDRV_PALETTE_LENGTH(256) |
| 288 | 289 |
| r1711 | r1712 | |
|---|---|---|
| 800 | 800 | #define MASTER_CLOCK XTAL_16MHz |
| 801 | 801 | |
| 802 | 802 | #include "driver.h" |
| 803 | #include "video/mc6845.h" | |
| 804 | #include "machine/6821pia.h" | |
| 803 | 805 | #include "sound/ay8910.h" |
| 804 | #include "machine/6821pia.h" | |
| 805 | 806 | |
| 806 | 807 | #include "funworld.lh" |
| 807 | 808 | |
| r1711 | r1712 | |
| 1455 | 1456 | MDRV_CPU_PROGRAM_MAP(funworld_map, 0) |
| 1456 | 1457 | MDRV_CPU_VBLANK_INT(nmi_line_pulse, 1) |
| 1457 | 1458 | |
| 1458 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1459 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1460 | ||
| 1461 | 1459 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 1462 | 1460 | |
| 1463 | 1461 | // video hardware |
| 1464 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1462 | ||
| 1463 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1464 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1465 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1465 | 1466 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1466 | 1467 | MDRV_SCREEN_SIZE((124+1)*4, (30+1)*8) // Taken from MC6845 init, registers 00 & 04. Normally programmed with (value-1). |
| 1467 | 1468 | MDRV_SCREEN_VISIBLE_AREA(0*4, 96*4-1, 0*8, 29*8-1) // Taken from MC6845 init, registers 01 & 06. |
| r1711 | r1712 | |
| 1475 | 1476 | MDRV_VIDEO_START(funworld) |
| 1476 | 1477 | MDRV_VIDEO_UPDATE(funworld) |
| 1477 | 1478 | |
| 1479 | MDRV_DEVICE_ADD("crtc", MC6845) | |
| 1480 | ||
| 1478 | 1481 | // sound hardware |
| 1479 | 1482 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 1480 | 1483 | |
| r1711 | r1712 | |
| 1497 | 1500 | MDRV_CPU_REPLACE("main", M65C02, MASTER_CLOCK/8) // 2MHz |
| 1498 | 1501 | MDRV_CPU_PROGRAM_MAP(magiccrd_map, 0) |
| 1499 | 1502 | |
| 1503 | MDRV_SCREEN_MODIFY("main") | |
| 1500 | 1504 | MDRV_SCREEN_SIZE((123+1)*4, (36+1)*8) // Taken from MC6845 init, registers 00 & 04. Normally programmed with (value-1). |
| 1501 | 1505 | // MDRV_SCREEN_VISIBLE_AREA(0*4, 112*4-1, 0*8, 34*8-1) // Taken from MC6845 init, registers 01 & 06. |
| 1502 | 1506 | MDRV_SCREEN_VISIBLE_AREA(0*4, 98*4-1, 0*8, 32*8-1) // adjusted to screen for testing purposes. |
| r1711 | r1712 | |
| 1535 | 1539 | MDRV_CPU_PROGRAM_MAP(snookr10_map, 0) |
| 1536 | 1540 | MDRV_CPU_VBLANK_INT(nmi_line_pulse, 1) |
| 1537 | 1541 | |
| 1542 | // video hardware | |
| 1543 | ||
| 1544 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1538 | 1545 | MDRV_SCREEN_REFRESH_RATE(60) |
| 1539 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1540 | ||
| 1541 | // video hardware | |
| 1542 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1546 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1543 | 1547 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1544 | 1548 | MDRV_SCREEN_SIZE((128+1)*4, (30+1)*8) |
| 1545 | 1549 | MDRV_SCREEN_VISIBLE_AREA(0*4, 96*4-1, 0*8, 30*8-1) |
| 1546 | 1550 | // MDRV_SCREEN_SIZE((124+1)*4, (30+1)*8) |
| 1547 | 1551 | // MDRV_SCREEN_VISIBLE_AREA(0*4, 96*4-1, 0*8, 29*8-1) |
| 1548 | 1552 | |
| 1553 | // MDRV_DEVICE_ADD("crtc", MC6845) | |
| 1554 | ||
| 1549 | 1555 | MDRV_GFXDECODE(sn10) |
| 1550 | 1556 | |
| 1551 | 1557 | // MDRV_DEFAULT_LAYOUT(layout_funworld) |
| r1711 | r1712 | |
|---|---|---|
| 410 | 410 | /* 60 fps, that's how I fixed it for now. */ |
| 411 | 411 | MDRV_CPU_PROGRAM_MAP(overdriv_s_readmem,overdriv_s_writemem) |
| 412 | 412 | |
| 413 | MDRV_SCREEN_REFRESH_RATE(59) | |
| 414 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 415 | 413 | MDRV_INTERLEAVE(200) |
| 416 | 414 | |
| 417 | 415 | MDRV_MACHINE_RESET(overdriv) |
| 418 | 416 | MDRV_NVRAM_HANDLER(overdriv) |
| 419 | 417 | |
| 420 | 418 | /* video hardware */ |
| 421 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS) | |
| 419 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 420 | ||
| 421 | MDRV_SCREEN_ADD("main", RASTER) | |
| 422 | MDRV_SCREEN_REFRESH_RATE(59) | |
| 423 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 422 | 424 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 423 | 425 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 424 | 426 | MDRV_SCREEN_VISIBLE_AREA(13*8, (64-13)*8-1, 0*8, 32*8-1 ) |
| 427 | ||
| 425 | 428 | MDRV_GFXDECODE(overdriv) |
| 426 | 429 | MDRV_PALETTE_LENGTH(2048) |
| 427 | 430 |
| r1711 | r1712 | |
|---|---|---|
| 705 | 705 | /* audio CPU */ /* ? */ |
| 706 | 706 | MDRV_CPU_PROGRAM_MAP(scontra_readmem_sound,scontra_writemem_sound) |
| 707 | 707 | |
| 708 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 709 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 710 | ||
| 711 | 708 | MDRV_MACHINE_RESET(scontra) |
| 712 | 709 | |
| 713 | 710 | /* video hardware */ |
| 714 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS) | |
| 711 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 712 | ||
| 713 | MDRV_SCREEN_ADD("main", RASTER) | |
| 714 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 715 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 715 | 716 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 716 | 717 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 717 | 718 | MDRV_SCREEN_VISIBLE_AREA(14*8, (64-14)*8-1, 2*8, 30*8-1 ) |
| 719 | ||
| 718 | 720 | MDRV_PALETTE_LENGTH(1024) |
| 719 | 721 | |
| 720 | 722 | MDRV_VIDEO_START(scontra) |
| r1711 | r1712 | |
| 745 | 747 | /* audio CPU */ /* ? */ |
| 746 | 748 | MDRV_CPU_PROGRAM_MAP(thunderx_readmem_sound,thunderx_writemem_sound) |
| 747 | 749 | |
| 748 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 749 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 750 | ||
| 751 | 750 | MDRV_MACHINE_RESET(thunderx) |
| 752 | 751 | |
| 753 | 752 | /* video hardware */ |
| 754 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS) | |
| 753 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 754 | ||
| 755 | MDRV_SCREEN_ADD("main", RASTER) | |
| 756 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 757 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 755 | 758 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 756 | 759 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 757 | 760 | MDRV_SCREEN_VISIBLE_AREA(14*8, (64-14)*8-1, 2*8, 30*8-1 ) |
| 761 | ||
| 758 | 762 | MDRV_PALETTE_LENGTH(1024) |
| 759 | 763 | |
| 760 | 764 | MDRV_VIDEO_START(scontra) |
| r1711 | r1712 | |
|---|---|---|
| 177 | 177 | MDRV_CPU_PROGRAM_MAP(jackpool_readmem,jackpool_writemem) |
| 178 | 178 | MDRV_CPU_VBLANK_INT(jackpool_interrupt,3) // ? |
| 179 | 179 | |
| 180 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 181 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 182 | ||
| 183 | 180 | MDRV_GFXDECODE(jackpool) |
| 184 | 181 | |
| 185 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 182 | ||
| 183 | MDRV_SCREEN_ADD("main", RASTER) | |
| 184 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 185 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 186 | 186 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 187 | 187 | MDRV_SCREEN_SIZE(64*8, 64*8) |
| 188 | 188 | MDRV_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 0*8, 32*8-1) |
| 189 | ||
| 189 | 190 | MDRV_PALETTE_LENGTH(0x200) |
| 190 | 191 | |
| 191 | 192 | MDRV_VIDEO_START(jackpool) |
| r1711 | r1712 | |
|---|---|---|
| 229 | 229 | |
| 230 | 230 | |
| 231 | 231 | /* 1-bit RGB palette */ |
| 232 | static const | |
| 232 | static const int | |
| 233 | 233 | { |
| 234 | 234 | 0, 1, 2, 3, 4, 5, 6, 7, |
| 235 | 235 | 0, 0, 1, 2, 3, 4, 5, 6, /* not sure about these, but they are only used */ |
| r1711 | r1712 | |
| 240 | 240 | 0, 3, 4, 5, 6, 7, 0, 1, |
| 241 | 241 | 0, 2, 3, 4, 5, 6, 7, 0 |
| 242 | 242 | }; |
| 243 | ||
| 243 | 244 | static PALETTE_INIT( spcforce ) |
| 244 | 245 | { |
| 245 | 246 | int i; |
| 246 | for (i = 0; i < 8; i++) | |
| 247 | palette_set_color_rgb(machine, i, pal1bit(i >> 0), pal1bit(i >> 1), pal1bit(i >> 2)); | |
| 248 | memcpy(colortable,colortable_source,sizeof(colortable_source)); | |
| 247 | ||
| 248 | for (i = 0; i < sizeof(colortable_source) / sizeof(colortable_source[0]); i++) | |
| 249 | { | |
| 250 | int data = colortable_source[i]; | |
| 251 | rgb_t color = MAKE_RGB(pal1bit(data >> 0), pal1bit(data >> 1), pal1bit(data >> 2)); | |
| 252 | ||
| 253 | palette_set_color(machine, i, color); | |
| 254 | } | |
| 249 | 255 | } |
| 250 | 256 | |
| 251 | 257 | |
| r1711 | r1712 | |
| 262 | 268 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 263 | 269 | MDRV_CPU_IO_MAP(sound_readport,sound_writeport) |
| 264 | 270 | |
| 271 | /* video hardware */ | |
| 272 | MDRV_SCREEN_ADD("main", RASTER) | |
| 265 | 273 | MDRV_SCREEN_REFRESH_RATE(60) |
| 266 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 267 | ||
| 268 | /* video hardware */ | |
| 269 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 274 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 270 | 275 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 271 | 276 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 272 | 277 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 28*8-1) |
| 278 | ||
| 273 | 279 | MDRV_GFXDECODE(spcforce) |
| 274 | MDRV_PALETTE_LENGTH(8) | |
| 275 | MDRV_COLORTABLE_LENGTH(sizeof(colortable_source) / sizeof(colortable_source[0])) | |
| 280 | MDRV_PALETTE_LENGTH(sizeof(colortable_source) / sizeof(colortable_source[0])) | |
| 276 | 281 | |
| 277 | 282 | MDRV_PALETTE_INIT(spcforce) |
| 278 | 283 | MDRV_VIDEO_UPDATE(spcforce) |
| r1711 | r1712 | |
|---|---|---|
| 702 | 702 | /* audio CPU */ |
| 703 | 703 | MDRV_CPU_PROGRAM_MAP(cpu3_map,0) |
| 704 | 704 | |
| 705 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 706 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 707 | 705 | MDRV_INTERLEAVE(200) /* Allow time for 2nd cpu to interleave*/ |
| 708 | 706 | |
| 709 | 707 | MDRV_MACHINE_RESET(gsword) |
| r1711 | r1712 | |
| 714 | 712 | #endif |
| 715 | 713 | |
| 716 | 714 | /* video hardware */ |
| 717 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 715 | MDRV_SCREEN_ADD("main", RASTER) | |
| 716 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 717 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 718 | 718 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 719 | 719 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 720 | 720 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 721 | ||
| 721 | 722 | MDRV_GFXDECODE(gsword) |
| 722 | 723 | MDRV_PALETTE_LENGTH(64*4+64*4) |
| 723 | 724 | |
| r1711 | r1712 | |
| 755 | 756 | // MDRV_CPU_VBLANK_INT(gsword_snd_interrupt,1) |
| 756 | 757 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 757 | 758 | |
| 758 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 759 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 760 | 759 | MDRV_MACHINE_RESET(josvolly) |
| 761 | 760 | |
| 762 | 761 | /* video hardware */ |
| 763 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 762 | MDRV_SCREEN_ADD("main", RASTER) | |
| 763 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 764 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 764 | 765 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 765 | 766 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 766 | 767 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 992 | 992 | MDRV_CPU_PROGRAM_MAP(nmg5_sound_map,0) |
| 993 | 993 | MDRV_CPU_IO_MAP(sound_io_map,0) |
| 994 | 994 | |
| 995 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 996 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 997 | ||
| 998 | 995 | MDRV_MACHINE_START(nmg5) |
| 999 | 996 | MDRV_MACHINE_RESET(nmg5) |
| 1000 | 997 | |
| 1001 | 998 | /* video hardware */ |
| 1002 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 999 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1000 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1001 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1003 | 1002 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1004 | 1003 | MDRV_SCREEN_SIZE(320, 256) |
| 1005 | 1004 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 239) |
| 1005 | ||
| 1006 | 1006 | MDRV_GFXDECODE(nmg5) |
| 1007 | 1007 | MDRV_PALETTE_LENGTH(0x400) |
| 1008 | 1008 | |
| r1711 | r1712 | |
| 1050 | 1050 | /* basic machine hardware */ |
| 1051 | 1051 | MDRV_IMPORT_FROM(nmg5) |
| 1052 | 1052 | |
| 1053 | MDRV_SCREEN_MODIFY("main") | |
| 1053 | 1054 | MDRV_SCREEN_REFRESH_RATE(55) // ! |
| 1054 | 1055 | |
| 1055 | 1056 | MDRV_GFXDECODE(pclubys) |
| r1711 | r1712 | |
|---|---|---|
| 367 | 367 | MDRV_MACHINE_RESET(mario) |
| 368 | 368 | |
| 369 | 369 | /* video hardware */ |
| 370 | MDRV_ | |
| 370 | MDRV_SC | |
| 371 | 371 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 372 | 372 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART) |
| 373 | 373 | MDRV_GFXDECODE(mario) |
| r1711 | r1712 | |
|---|---|---|
| 532 | 532 | |
| 533 | 533 | MDRV_MACHINE_START(xmen) |
| 534 | 534 | |
| 535 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 536 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 537 | ||
| 538 | 535 | MDRV_NVRAM_HANDLER(xmen) |
| 539 | 536 | |
| 540 | 537 | /* video hardware */ |
| 541 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS) | |
| 538 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 539 | ||
| 540 | MDRV_SCREEN_ADD("main", RASTER) | |
| 541 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 542 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 542 | 543 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 543 | 544 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 544 | 545 | MDRV_SCREEN_VISIBLE_AREA(14*8, (64-14)*8-1, 2*8, 30*8-1 ) |
| 546 | ||
| 545 | 547 | MDRV_PALETTE_LENGTH(2048) |
| 546 | 548 | |
| 547 | 549 | MDRV_VIDEO_START(xmen) |
| r1711 | r1712 | |
| 602 | 604 | MDRV_MACHINE_RESET(xmen6p) |
| 603 | 605 | |
| 604 | 606 | /* video hardware */ |
| 605 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 607 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 606 | 608 | MDRV_PALETTE_LENGTH(2048) |
| 607 | 609 | MDRV_DEFAULT_LAYOUT(layout_dualhsxs) |
| 608 | 610 | |
| 609 | MDRV_SCREEN_ADD("left", | |
| 611 | MDRV_SCREEN_ADD("left", RASTER) | |
| 610 | 612 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 611 | 613 | MDRV_SCREEN_REFRESH_RATE(60) |
| 612 | MDRV_SCREEN_VBLANK_TIME( | |
| 614 | MDRV_SCREEN_VBLANK_TIME( | |
| 613 | 615 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 614 | 616 | MDRV_SCREEN_VISIBLE_AREA(12*8, 48*8-1, 2*8, 30*8-1) |
| 615 | 617 | |
| 616 | MDRV_SCREEN_ADD("right", | |
| 618 | MDRV_SCREEN_ADD("right", RASTER) | |
| 617 | 619 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 618 | 620 | MDRV_SCREEN_REFRESH_RATE(60) |
| 619 | MDRV_SCREEN_VBLANK_TIME( | |
| 621 | MDRV_SCREEN_VBLANK_TIME( | |
| 620 | 622 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 621 | 623 | MDRV_SCREEN_VISIBLE_AREA(16*8, 52*8-1, 2*8, 30*8-1) |
| 622 | 624 |
| r1711 | r1712 | |
|---|---|---|
| 571 | 571 | MDRV_CPU_PROGRAM_MAP(atarifb_map,0) |
| 572 | 572 | MDRV_CPU_VBLANK_INT(irq0_line_hold,4) |
| 573 | 573 | |
| 574 | /* video hardware */ | |
| 575 | MDRV_SCREEN_ADD("main", RASTER) | |
| 574 | 576 | MDRV_SCREEN_REFRESH_RATE(60) |
| 575 | 577 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2037) /* 16.3ms * 1/8 = 2037.5. Is it 1/8th or 3/32nds? (1528?) */) |
| 576 | ||
| 577 | /* video hardware */ | |
| 578 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 579 | 578 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 580 | 579 | MDRV_SCREEN_SIZE(38*8, 32*8) |
| 581 | 580 | MDRV_SCREEN_VISIBLE_AREA(0*8, 38*8-1, 1*8, 31*8-1) |
| r1711 | r1712 | |
| 628 | 627 | MDRV_CPU_PROGRAM_MAP(soccer_map,0) |
| 629 | 628 | |
| 630 | 629 | /* video hardware */ |
| 630 | MDRV_SCREEN_MODIFY("main") | |
| 631 | 631 | MDRV_SCREEN_VISIBLE_AREA(0*8, 38*8-1, 2*8, 32*8-1) |
| 632 | 632 | MDRV_GFXDECODE(soccer) |
| 633 | 633 | MDRV_VIDEO_UPDATE(soccer) |
| r1711 | r1712 | |
|---|---|---|
| 375 | 375 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 376 | 376 | MDRV_CPU_VBLANK_INT(irq4_line_hold,1) |
| 377 | 377 | |
| 378 | /* video hardware */ | |
| 379 | MDRV_SCREEN_ADD("main", RASTER) | |
| 378 | 380 | MDRV_SCREEN_REFRESH_RATE(60) |
| 379 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 380 | ||
| 381 | /* video hardware */ | |
| 382 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 381 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 383 | 382 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 384 | 383 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 385 | 384 | MDRV_SCREEN_VISIBLE_AREA(6*8+2, 64*8-1-(10*8)-2, 2*8, 32*8-1-(2*8)) |
| 385 | ||
| 386 | 386 | MDRV_GFXDECODE(silkroad) |
| 387 | 387 | MDRV_PALETTE_LENGTH(0x2000) |
| 388 | 388 |
| r1711 | r1712 | |
|---|---|---|
| 327 | 327 | MDRV_CPU_IO_MAP(wink_sound_io,0) |
| 328 | 328 | MDRV_CPU_PERIODIC_INT(wink_sound, 15625) |
| 329 | 329 | |
| 330 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 331 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 332 | ||
| 333 | 330 | MDRV_NVRAM_HANDLER(generic_1fill) |
| 334 | 331 | MDRV_MACHINE_RESET(wink) |
| 335 | 332 | |
| 336 | 333 | /* video hardware */ |
| 337 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 334 | MDRV_SCREEN_ADD("main", RASTER) | |
| 335 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 336 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 338 | 337 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 339 | 338 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 340 | 339 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 32*8-1) |
| 340 | ||
| 341 | 341 | MDRV_GFXDECODE(wink) |
| 342 | 342 | MDRV_PALETTE_LENGTH(32) |
| 343 | 343 |
| r1711 | r1712 | |
|---|---|---|
| 661 | 661 | MDRV_CPU_ADD_TAG("sound", Z80, 8000000) |
| 662 | 662 | MDRV_CPU_PROGRAM_MAP(le_sound, 0) |
| 663 | 663 | |
| 664 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 665 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 666 | ||
| 667 | 664 | MDRV_MACHINE_START(lethalen) |
| 668 | 665 | MDRV_MACHINE_RESET(lethalen) |
| 669 | 666 | |
| r1711 | r1712 | |
| 672 | 669 | MDRV_GFXDECODE(lethal) |
| 673 | 670 | |
| 674 | 671 | /* video hardware */ |
| 675 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS) | |
| 672 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 673 | ||
| 674 | MDRV_SCREEN_ADD("main", RASTER) | |
| 675 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 676 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 676 | 677 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 677 | 678 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 678 | 679 | MDRV_SCREEN_VISIBLE_AREA(216, 504-1, 16, 240-1) |
| r1711 | r1712 | |
| 694 | 695 | static MACHINE_DRIVER_START( lethalej ) |
| 695 | 696 | MDRV_IMPORT_FROM(lethalen) |
| 696 | 697 | |
| 698 | MDRV_SCREEN_MODIFY("main") | |
| 697 | 699 | MDRV_SCREEN_VISIBLE_AREA(224, 512-1, 16, 240-1) |
| 698 | 700 | MACHINE_DRIVER_END |
| 699 | 701 |
| r1711 | r1712 | |
|---|---|---|
| 335 | 335 | MDRV_CPU_ADD(M6502, 12096000 / 16) |
| 336 | 336 | MDRV_CPU_PROGRAM_MAP(videopin_readmem, videopin_writemem) |
| 337 | 337 | |
| 338 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 339 | 338 | MDRV_MACHINE_RESET(videopin) |
| 340 | 339 | |
| 341 | 340 | /* video hardware */ |
| 342 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 341 | MDRV_SCREEN_ADD("main", RASTER) | |
| 342 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 343 | 343 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 344 | 344 | MDRV_SCREEN_SIZE(304, 263) |
| 345 | 345 | MDRV_SCREEN_VISIBLE_AREA(0, 303, 0, 255) |
| 346 | ||
| 346 | 347 | MDRV_GFXDECODE(videopin) |
| 347 | 348 | MDRV_PALETTE_LENGTH(2) |
| 348 | 349 |
| r1711 | r1712 | |
|---|---|---|
| 312 | 312 | MDRV_CPU_ADD(M6809, 2000000) /* 2 MHz ??? */ |
| 313 | 313 | MDRV_CPU_PROGRAM_MAP(slave_map, 0) |
| 314 | 314 | /* IRQs are caused by the YM3526 */ |
| 315 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 316 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 317 | 315 | |
| 318 | 316 | /* video hardware */ |
| 319 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 317 | MDRV_SCREEN_ADD("main", RASTER) | |
| 318 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 319 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 320 | 320 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 321 | 321 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 322 | 322 | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 1*8, 31*8-1) |
| 323 | ||
| 323 | 324 | MDRV_GFXDECODE(exprraid) |
| 324 | 325 | MDRV_PALETTE_LENGTH(256) |
| 325 | 326 |
| r1711 | r1712 | |
|---|---|---|
| 449 | 449 | /* audio CPU */ /* 4MHz */ |
| 450 | 450 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 451 | 451 | /* NMIs are triggered by the main CPU */ |
| 452 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 453 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 454 | 452 | MDRV_INTERLEAVE(10) |
| 455 | 453 | |
| 456 | 454 | /* video hardware */ |
| 457 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 455 | MDRV_SCREEN_ADD("main", RASTER) | |
| 456 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 457 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 458 | 458 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 459 | 459 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 460 | 460 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 461 | ||
| 461 | 462 | MDRV_GFXDECODE(tecmo16) |
| 462 | 463 | MDRV_PALETTE_LENGTH(4096) |
| 463 | 464 | |
| r1711 | r1712 | |
| 489 | 490 | /* audio CPU */ /* 4MHz */ |
| 490 | 491 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 491 | 492 | /* NMIs are triggered by the main CPU */ |
| 492 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 493 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 494 | 493 | MDRV_INTERLEAVE(10) |
| 495 | 494 | |
| 496 | 495 | /* video hardware */ |
| 497 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 496 | MDRV_SCREEN_ADD("main", RASTER) | |
| 497 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 498 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 498 | 499 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 499 | 500 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 500 | 501 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 502 | ||
| 501 | 503 | MDRV_GFXDECODE(tecmo16) |
| 502 | 504 | MDRV_PALETTE_LENGTH(4096) |
| 503 | 505 |
| r1711 | r1712 | |
|---|---|---|
| 196 | 196 | MDRV_CPU_ADD_TAG("main", M68000, 16000000 ) |
| 197 | 197 | MDRV_CPU_PROGRAM_MAP(drill_map,0) |
| 198 | 198 | MDRV_CPU_VBLANK_INT(drill_interrupt,1) |
| 199 | MDRV_GFXDECODE(2mindril) | |
| 200 | ||
| 201 | MDRV_SCREEN_ADD("main", RASTER) | |
| 199 | 202 | MDRV_SCREEN_REFRESH_RATE(60) |
| 200 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 201 | MDRV_GFXDECODE(2mindril) | |
| 202 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 203 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 203 | 204 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 204 | 205 | MDRV_SCREEN_SIZE(128*16, 64*8) |
| 205 | 206 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 239-16) |
| r1711 | r1712 | |
|---|---|---|
| 99 | 99 | Timing: |
| 100 | 100 | |
| 101 | 101 | Game is synchronized with VBLANK. It uses IRQ & NMI interrupts. |
| 102 | During a frame, there must be | |
| 102 | During a frame, there must be 4 IRQs and 4 NMIs in order to play | |
| 103 | 103 | to the correct speed. |
| 104 | 104 | |
| 105 | 105 | --- |
| r1711 | r1712 | |
| 138 | 138 | |
| 139 | 139 | |
| 140 | 140 | MACHINE_RESET (cpk); |
| 141 | INTERRUPT_GEN( cpoker_interrupt ); | |
| 141 | 142 | INTERRUPT_GEN( cska_interrupt ); |
| 142 | 143 | VIDEO_UPDATE( cska ); |
| 143 | 144 | VIDEO_START( cska ); |
| r1711 | r1712 | |
| 159 | 160 | { |
| 160 | 161 | switch (data) |
| 161 | 162 | { |
| 163 | case 0x00: protection_res = readinputport(7); break; | |
| 162 | 164 | case 0x20: protection_res = 0x49; break; |
| 163 | 165 | case 0x21: protection_res = 0x47; break; |
| 164 | 166 | case 0x22: protection_res = 0x53; break; |
| r1711 | r1712 | |
| 188 | 190 | AM_RANGE(0xf000, 0xffff) AM_RAM AM_REGION(REGION_CPU1, 0xf000) |
| 189 | 191 | ADDRESS_MAP_END |
| 190 | 192 | |
| 193 | static ADDRESS_MAP_START( cpoker_map, ADDRESS_SPACE_IO, 8 ) | |
| 194 | AM_RANGE(0x2000, 0x27ff) AM_WRITE(cpk_palette_w) | |
| 195 | AM_RANGE(0x2800, 0x2fff) AM_WRITE(cpk_palette2_w) | |
| 196 | AM_RANGE(0x4000, 0x4000) AM_READ(input_port_0_r) /* DSW1 */ | |
| 197 | AM_RANGE(0x4001, 0x4001) AM_READ(input_port_1_r) /* DSW2 */ | |
| 198 | AM_RANGE(0x4002, 0x4002) AM_READ(input_port_2_r) /* DSW3 */ | |
| 199 | AM_RANGE(0x4003, 0x4003) AM_READ(input_port_3_r) /* DSW4 */ | |
| 200 | AM_RANGE(0x4004, 0x4004) AM_READ(input_port_4_r) /* DSW5 */ | |
| 201 | AM_RANGE(0x5081, 0x5081) AM_READ(input_port_5_r) /* Services */ | |
| 202 | AM_RANGE(0x5082, 0x5082) AM_READ(input_port_6_r) /* Coing & Kbd */ | |
| 203 | AM_RANGE(0x5090, 0x5090) AM_WRITE(custom_io_w) | |
| 204 | AM_RANGE(0x5091, 0x5091) AM_READ(custom_io_r) /* Keyboard */ | |
| 205 | AM_RANGE(0x50a0, 0x50a0) AM_READ(input_port_8_r) /* Not connected */ | |
| 206 | AM_RANGE(0x50b0, 0x50b0) AM_WRITE(YM2413_register_port_0_w) | |
| 207 | AM_RANGE(0x50b1, 0x50b1) AM_WRITE(YM2413_data_port_0_w) | |
| 208 | AM_RANGE(0x6800, 0x6fff) AM_WRITE(MWA8_RAM) AM_BASE(&cpk_expram) | |
| 209 | AM_RANGE(0x7000, 0x77ff) AM_RAM AM_BASE(&cpk_videoram) | |
| 210 | AM_RANGE(0x7800, 0x7fff) AM_RAM AM_BASE(&cpk_colorram) | |
| 211 | AM_RANGE(0x8000, 0xffff) AM_READ(cpk_expansion_r) | |
| 212 | ADDRESS_MAP_END | |
| 213 | ||
| 191 | 214 | static ADDRESS_MAP_START( csk227_map, ADDRESS_SPACE_IO, 8 ) |
| 192 | 215 | AM_RANGE(0x2000, 0x27ff) AM_WRITE(cpk_palette_w) |
| 193 | 216 | AM_RANGE(0x2800, 0x2fff) AM_WRITE(cpk_palette2_w) |
| r1711 | r1712 | |
| 235 | 258 | static INPUT_PORTS_START( csk227 ) |
| 236 | 259 | |
| 237 | 260 | PORT_START_TAG("DSW1") |
| 238 | PORT_DIPNAME( 0x01, 0x01, "Demo Music" ) | |
| 261 | PORT_DIPNAME( 0x01, 0x01, "Demo Music" ) PORT_DIPLOCATION("SWA:8") | |
| 239 | 262 | PORT_DIPSETTING( 0x01, DEF_STR( No ) ) |
| 240 | 263 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) |
| 241 | PORT_DIPNAME( 0x06, 0x06, "Min Bet to Start" ) | |
| 264 | PORT_DIPNAME( 0x06, 0x06, "Min Bet to Start" ) PORT_DIPLOCATION("SWA:6,7") | |
| 242 | 265 | PORT_DIPSETTING( 0x06, "1" ) |
| 243 | 266 | PORT_DIPSETTING( 0x04, "3" ) |
| 244 | 267 | PORT_DIPSETTING( 0x02, "5" ) |
| 245 | 268 | PORT_DIPSETTING( 0x00, "10" ) |
| 246 | PORT_DIPNAME( 0x18, 0x18, "Max Bet" ) | |
| 269 | PORT_DIPNAME( 0x18, 0x18, "Max Bet" ) PORT_DIPLOCATION("SWA:4,5") | |
| 247 | 270 | PORT_DIPSETTING( 0x18, "10" ) |
| 248 | 271 | PORT_DIPSETTING( 0x10, "20" ) |
| 249 | 272 | PORT_DIPSETTING( 0x08, "50" ) |
| 250 | 273 | PORT_DIPSETTING( 0x00, "100" ) |
| 251 | PORT_DIPNAME( 0x60, 0x60, "Min Bet to play Fever" ) | |
| 274 | PORT_DIPNAME( 0x60, 0x60, "Min Bet to play Fever" ) PORT_DIPLOCATION("SWA:2,3") | |
| 252 | 275 | PORT_DIPSETTING( 0x60, "1" ) |
| 253 | 276 | PORT_DIPSETTING( 0x40, "5" ) |
| 254 | 277 | PORT_DIPSETTING( 0x20, "10" ) |
| 255 | 278 | PORT_DIPSETTING( 0x00, "20" ) |
| 256 | PORT_DIPNAME( 0x80, 0x00, "Credit Limit" ) | |
| 279 | PORT_DIPNAME( 0x80, 0x00, "Credit Limit" ) PORT_DIPLOCATION("SWA:1") | |
| 257 | 280 | PORT_DIPSETTING( 0x80, "100000" ) |
| 258 | 281 | PORT_DIPSETTING( 0x00, "Unlimited" ) |
| 259 | 282 | |
| 260 | 283 | PORT_START_TAG("DSW2") |
| 261 | PORT_DIPNAME( 0x07, 0x07, "Coin In Rate" ) | |
| 284 | PORT_DIPNAME( 0x07, 0x07, "Coin In Rate" ) PORT_DIPLOCATION("SWB:8,7,6") | |
| 262 | 285 | PORT_DIPSETTING( 0x07, "1" ) |
| 263 | 286 | PORT_DIPSETTING( 0x06, "2" ) |
| 264 | 287 | PORT_DIPSETTING( 0x05, "5" ) |
| r1711 | r1712 | |
| 267 | 290 | PORT_DIPSETTING( 0x02, "40" ) |
| 268 | 291 | PORT_DIPSETTING( 0x01, "50" ) |
| 269 | 292 | PORT_DIPSETTING( 0x00, "100" ) |
| 270 | PORT_DIPNAME( 0x18, 0x18, "Key In Rate" ) | |
| 293 | PORT_DIPNAME( 0x18, 0x18, "Key In Rate" ) PORT_DIPLOCATION("SWB:5,4") | |
| 271 | 294 | PORT_DIPSETTING( 0x18, "10" ) |
| 272 | 295 | PORT_DIPSETTING( 0x10, "20" ) |
| 273 | 296 | PORT_DIPSETTING( 0x08, "50" ) |
| 274 | 297 | PORT_DIPSETTING( 0x00, "100" ) |
| 275 | PORT_DIPNAME( 0x60, 0x60, "W-UP Bonus Target" ) | |
| 298 | PORT_DIPNAME( 0x60, 0x60, "W-UP Bonus Target" ) PORT_DIPLOCATION("SWB:3,2") | |
| 276 | 299 | PORT_DIPSETTING( 0x60, "1500" ) |
| 277 | 300 | PORT_DIPSETTING( 0x40, "3000" ) |
| 278 | 301 | PORT_DIPSETTING( 0x20, "5000" ) |
| 279 | 302 | PORT_DIPSETTING( 0x00, "7500" ) |
| 280 | PORT_DIPNAME( 0x80, 0x80, "Payout" ) | |
| 303 | PORT_DIPNAME( 0x80, 0x80, "Payout" ) PORT_DIPLOCATION("SWB:1") | |
| 281 | 304 | PORT_DIPSETTING( 0x80, "Manual" ) |
| 282 | 305 | PORT_DIPSETTING( 0x00, "Auto" ) |
| 283 | 306 | |
| 284 | 307 | PORT_START_TAG("DSW3") |
| 285 | PORT_DIPNAME( 0x03, 0x03, "W-UP Bonus Rate" ) | |
| 308 | PORT_DIPNAME( 0x03, 0x03, "W-UP Bonus Rate" ) PORT_DIPLOCATION("SWC:8,7") | |
| 286 | 309 | PORT_DIPSETTING( 0x03, "200" ) |
| 287 | 310 | PORT_DIPSETTING( 0x02, "300" ) |
| 288 | 311 | PORT_DIPSETTING( 0x01, "500" ) |
| 289 | 312 | PORT_DIPSETTING( 0x00, "800" ) |
| 290 | PORT_DIPNAME( 0x0c, 0x0c, "W-UP Chance" ) | |
| 313 | PORT_DIPNAME( 0x0c, 0x0c, "W-UP Chance" ) PORT_DIPLOCATION("SWC:6,5") | |
| 291 | 314 | PORT_DIPSETTING( 0x0c, "94%" ) |
| 292 | 315 | PORT_DIPSETTING( 0x08, "96%" ) |
| 293 | 316 | PORT_DIPSETTING( 0x04, "98%" ) |
| 294 | 317 | PORT_DIPSETTING( 0x00, "100%" ) |
| 295 | PORT_DIPNAME( 0x30, 0x20, "W-UP Type" ) | |
| 318 | PORT_DIPNAME( 0x30, 0x20, "W-UP Type" ) PORT_DIPLOCATION("SWC:4,3") | |
| 296 | 319 | PORT_DIPSETTING( 0x30, DEF_STR( None ) ) |
| 297 | 320 | PORT_DIPSETTING( 0x20, "High-Low" ) |
| 298 | 321 | PORT_DIPSETTING( 0x10, "Red-Black" ) /* Bit 4 is equal for ON/OFF */ |
| 299 | PORT_DIPNAME( 0x40, 0x00, "Strip Girl" ) | |
| 322 | PORT_DIPNAME( 0x40, 0x00, "Strip Girl" ) PORT_DIPLOCATION("SWC:2") | |
| 300 | 323 | PORT_DIPSETTING( 0x40, DEF_STR( No ) ) |
| 301 | 324 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) |
| 302 | PORT_DIPNAME( 0x80, 0x00, "Ability" ) | |
| 325 | PORT_DIPNAME( 0x80, 0x00, "Ability" ) PORT_DIPLOCATION("SWC:1") | |
| 303 | 326 | PORT_DIPSETTING( 0x80, DEF_STR( No ) ) |
| 304 | 327 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) |
| 305 | 328 | |
| 306 | 329 | PORT_START_TAG("DSW4") |
| 307 | PORT_DIPNAME( 0x0f, 0x07, "Main Game Chance" ) | |
| 330 | PORT_DIPNAME( 0x0f, 0x07, "Main Game Chance" ) PORT_DIPLOCATION("SWD:8,7,6,5") | |
| 308 | 331 | PORT_DIPSETTING( 0x0f, "69%" ) |
| 309 | 332 | PORT_DIPSETTING( 0x0e, "72%" ) |
| 310 | 333 | PORT_DIPSETTING( 0x0d, "75%" ) |
| r1711 | r1712 | |
| 321 | 344 | PORT_DIPSETTING( 0x02, "99%" ) |
| 322 | 345 | PORT_DIPSETTING( 0x01, "101%" ) |
| 323 | 346 | PORT_DIPSETTING( 0x00, "103%" ) |
| 324 | PORT_DIPNAME( 0x10, 0x00, "Five Jokers" ) | |
| 347 | PORT_DIPNAME( 0x10, 0x00, "Five Jokers" ) PORT_DIPLOCATION("SWD:4") | |
| 325 | 348 | PORT_DIPSETTING( 0x10, DEF_STR( No ) ) |
| 326 | 349 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) |
| 327 | PORT_DIPNAME( 0x20, 0x00, "Royal Flush" ) | |
| 350 | PORT_DIPNAME( 0x20, 0x00, "Royal Flush" ) PORT_DIPLOCATION("SWD:3") | |
| 328 | 351 | PORT_DIPSETTING( 0x20, DEF_STR( No ) ) |
| 329 | 352 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) |
| 330 | PORT_DIPNAME( 0x40, 0x00, "Auto Hold" ) | |
| 353 | PORT_DIPNAME( 0x40, 0x00, "Auto Hold" ) PORT_DIPLOCATION("SWD:2") | |
| 331 | 354 | PORT_DIPSETTING( 0x40, DEF_STR( No ) ) |
| 332 | 355 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) |
| 333 | PORT_DIPNAME( 0x80, 0x80, "Payout Select" ) | |
| 356 | PORT_DIPNAME( 0x80, 0x80, "Payout Select" ) PORT_DIPLOCATION("SWD:1") | |
| 334 | 357 | PORT_DIPSETTING( 0x80, "Ticket" ) |
| 335 | 358 | PORT_DIPSETTING( 0x00, "Hopper" ) |
| 336 | 359 | |
| 337 | 360 | PORT_START_TAG("DSW5") |
| 338 | PORT_DIPNAME( 0x07, 0x07, "Key Out Rate" ) | |
| 361 | PORT_DIPNAME( 0x07, 0x07, "Key Out Rate" ) PORT_DIPLOCATION("SWE:8,7,6") | |
| 339 | 362 | PORT_DIPSETTING( 0x07, "1:1" ) |
| 340 | 363 | PORT_DIPSETTING( 0x06, "10:1" ) |
| 341 | 364 | PORT_DIPSETTING( 0x05, "20:1" ) |
| 342 | 365 | PORT_DIPSETTING( 0x04, "50:1" ) |
| 343 | 366 | PORT_DIPSETTING( 0x03, "100:1" ) /* Bits 1-0 are all equivalents */ |
| 344 | PORT_DIPNAME( 0x08, 0x00, "Card Select" ) | |
| 367 | PORT_DIPNAME( 0x08, 0x00, "Card Select" ) PORT_DIPLOCATION("SWE:5") | |
| 345 | 368 | PORT_DIPSETTING( 0x08, "Poker" ) |
| 346 | 369 | PORT_DIPSETTING( 0x00, "Tetris" ) |
| 347 | PORT_DIPNAME( 0x70, 0x70, "Ticket Rate" ) | |
| 370 | PORT_DIPNAME( 0x70, 0x70, "Ticket Rate" ) PORT_DIPLOCATION("SWE:4,3,2") | |
| 348 | 371 | PORT_DIPSETTING( 0x70, "1:1" ) |
| 349 | 372 | PORT_DIPSETTING( 0x60, "5:1" ) |
| 350 | 373 | PORT_DIPSETTING( 0x50, "10:1" ) |
| r1711 | r1712 | |
| 353 | 376 | PORT_DIPSETTING( 0x20, "50:1" ) |
| 354 | 377 | PORT_DIPSETTING( 0x10, "100:1" ) |
| 355 | 378 | PORT_DIPSETTING( 0x00, "200:1" ) |
| 356 | PORT_DIPNAME( 0x80, 0x80, "Win Table" ) | |
| 379 | PORT_DIPNAME( 0x80, 0x80, "Win Table" ) PORT_DIPLOCATION("SWE:1") | |
| 357 | 380 | PORT_DIPSETTING( 0x80, "Change" ) |
| 358 | 381 | PORT_DIPSETTING( 0x00, "Fixed" ) |
| 359 | 382 | |
| r1711 | r1712 | |
| 395 | 418 | static INPUT_PORTS_START( csk234 ) |
| 396 | 419 | |
| 397 | 420 | PORT_START_TAG("DSW1") |
| 398 | PORT_DIPNAME( 0x01, 0x01, "Demo Music" ) | |
| 421 | PORT_DIPNAME( 0x01, 0x01, "Demo Music" ) PORT_DIPLOCATION("SWA:8") | |
| 399 | 422 | PORT_DIPSETTING( 0x01, DEF_STR( No ) ) |
| 400 | 423 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) |
| 401 | PORT_DIPNAME( 0x06, 0x06, "Min Bet to Start" ) | |
| 424 | PORT_DIPNAME( 0x06, 0x06, "Min Bet to Start" ) PORT_DIPLOCATION("SWA:7,6") | |
| 402 | 425 | PORT_DIPSETTING( 0x06, "1" ) |
| 403 | 426 | PORT_DIPSETTING( 0x04, "3" ) |
| 404 | 427 | PORT_DIPSETTING( 0x02, "5" ) |
| 405 | 428 | PORT_DIPSETTING( 0x00, "10" ) |
| 406 | PORT_DIPNAME( 0x18, 0x10, "Max Bet" ) | |
| 429 | PORT_DIPNAME( 0x18, 0x10, "Max Bet" ) PORT_DIPLOCATION("SWA:5,4") | |
| 407 | 430 | PORT_DIPSETTING( 0x18, "3" ) |
| 408 | 431 | PORT_DIPSETTING( 0x10, "5" ) |
| 409 | 432 | PORT_DIPSETTING( 0x08, "20" ) |
| 410 | 433 | PORT_DIPSETTING( 0x00, "40" ) |
| 411 | PORT_DIPNAME( 0x60, 0x60, "Min Bet to play Fever" ) | |
| 434 | PORT_DIPNAME( 0x60, 0x60, "Min Bet to play Fever" ) PORT_DIPLOCATION("SWA:3,2") | |
| 412 | 435 | PORT_DIPSETTING( 0x60, "1" ) |
| 413 | 436 | PORT_DIPSETTING( 0x40, "5" ) |
| 414 | 437 | PORT_DIPSETTING( 0x20, "10" ) |
| 415 | 438 | PORT_DIPSETTING( 0x00, "20" ) |
| 416 | PORT_DIPNAME( 0x80, 0x00, "Credit Limit" ) | |
| 439 | PORT_DIPNAME( 0x80, 0x00, "Credit Limit" ) PORT_DIPLOCATION("SWA:1") | |
| 417 | 440 | PORT_DIPSETTING( 0x80, "5000" ) |
| 418 | 441 | PORT_DIPSETTING( 0x00, "10000" ) |
| 419 | 442 | |
| 420 | 443 | PORT_START_TAG("DSW2") |
| 421 | PORT_DIPNAME( 0x07, 0x07, "Coin In Rate" ) | |
| 444 | PORT_DIPNAME( 0x07, 0x07, "Coin In Rate" ) PORT_DIPLOCATION("SWB:8,7,6") | |
| 422 | 445 | PORT_DIPSETTING( 0x07, "1" ) |
| 423 | 446 | PORT_DIPSETTING( 0x06, "2" ) |
| 424 | 447 | PORT_DIPSETTING( 0x05, "5" ) |
| r1711 | r1712 | |
| 427 | 450 | PORT_DIPSETTING( 0x02, "40" ) |
| 428 | 451 | PORT_DIPSETTING( 0x01, "50" ) |
| 429 | 452 | PORT_DIPSETTING( 0x00, "100" ) |
| 430 | PORT_DIPNAME( 0x18, 0x18, "Key In Rate" ) | |
| 453 | PORT_DIPNAME( 0x18, 0x18, "Key In Rate" ) PORT_DIPLOCATION("SWB:5,4") | |
| 431 | 454 | PORT_DIPSETTING( 0x18, "10" ) |
| 432 | 455 | PORT_DIPSETTING( 0x10, "20" ) |
| 433 | 456 | PORT_DIPSETTING( 0x08, "50" ) |
| 434 | 457 | PORT_DIPSETTING( 0x00, "100" ) |
| 435 | PORT_DIPNAME( 0x60, 0x60, "Key Out Rate" ) | |
| 458 | PORT_DIPNAME( 0x60, 0x60, "Key Out Rate" ) PORT_DIPLOCATION("SWB:3,2") | |
| 436 | 459 | PORT_DIPSETTING( 0x60, "1:1" ) |
| 437 | 460 | PORT_DIPSETTING( 0x40, "10:1" ) |
| 438 | 461 | PORT_DIPSETTING( 0x20, "100:1" ) |
| 439 | 462 | PORT_DIPSETTING( 0x00, "100:1" ) |
| 440 | PORT_DIPNAME( 0x80, 0x80, "Payout" ) | |
| 463 | PORT_DIPNAME( 0x80, 0x80, "Payout" ) PORT_DIPLOCATION("SWB:1") | |
| 441 | 464 | PORT_DIPSETTING( 0x80, "Manual" ) |
| 442 | 465 | PORT_DIPSETTING( 0x00, "Auto" ) |
| 443 | 466 | |
| 444 | 467 | PORT_START_TAG("DSW3") |
| 445 | PORT_DIPNAME( 0x01, 0x01, "W-UP Bonus Target" ) | |
| 468 | PORT_DIPNAME( 0x01, 0x01, "W-UP Bonus Target" ) PORT_DIPLOCATION("SWC:8") | |
| 446 | 469 | PORT_DIPSETTING( 0x01, "3000" ) |
| 447 | 470 | PORT_DIPSETTING( 0x00, "5000" ) |
| 448 | PORT_DIPNAME( 0x02, 0x02, "W-UP Bonus Rate" ) | |
| 471 | PORT_DIPNAME( 0x02, 0x02, "W-UP Bonus Rate" ) PORT_DIPLOCATION("SWC:7") | |
| 449 | 472 | PORT_DIPSETTING( 0x02, "300" ) |
| 450 | 473 | PORT_DIPSETTING( 0x00, "500" ) |
| 451 | PORT_DIPNAME( 0x0c, 0x0c, "W-UP Chance" ) | |
| 474 | PORT_DIPNAME( 0x0c, 0x0c, "W-UP Chance" ) PORT_DIPLOCATION("SWC:6,5") | |
| 452 | 475 | PORT_DIPSETTING( 0x0c, "94%" ) |
| 453 | 476 | PORT_DIPSETTING( 0x08, "96%" ) |
| 454 | 477 | PORT_DIPSETTING( 0x04, "98%" ) |
| 455 | 478 | PORT_DIPSETTING( 0x00, "100%" ) |
| 456 | PORT_DIPNAME( 0x30, 0x20, "W-UP Type" ) | |
| 479 | PORT_DIPNAME( 0x30, 0x20, "W-UP Type" ) PORT_DIPLOCATION("SWC:4,3") | |
| 457 | 480 | PORT_DIPSETTING( 0x30, DEF_STR( None ) ) |
| 458 | 481 | PORT_DIPSETTING( 0x20, "High-Low" ) |
| 459 | 482 | PORT_DIPSETTING( 0x10, "Red-Black" ) /* Bit 4 is equal for ON/OFF */ |
| 460 | PORT_DIPNAME( 0x40, 0x40, "Card Select" ) | |
| 483 | PORT_DIPNAME( 0x40, 0x40, "Card Select" ) PORT_DIPLOCATION("SWC:2") | |
| 461 | 484 | PORT_DIPSETTING( 0x40, "Poker" ) |
| 462 | 485 | PORT_DIPSETTING( 0x00, "Symbols" ) |
| 463 | 486 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 464 | 487 | |
| 465 | 488 | PORT_START_TAG("DSW4") |
| 466 | PORT_DIPNAME( 0x0f, 0x07, "Main Game Chance" ) | |
| 489 | PORT_DIPNAME( 0x0f, 0x07, "Main Game Chance" ) PORT_DIPLOCATION("SWD:8,7,6,5") | |
| 467 | 490 | PORT_DIPSETTING( 0x0f, "69%" ) |
| 468 | 491 | PORT_DIPSETTING( 0x0e, "72%" ) |
| 469 | 492 | PORT_DIPSETTING( 0x0d, "75%" ) |
| r1711 | r1712 | |
| 480 | 503 | PORT_DIPSETTING( 0x02, "99%" ) |
| 481 | 504 | PORT_DIPSETTING( 0x01, "101%" ) |
| 482 | 505 | PORT_DIPSETTING( 0x00, "103%" ) |
| 483 | PORT_DIPNAME( 0x10, 0x00, "Auto Hold" ) | |
| 506 | PORT_DIPNAME( 0x10, 0x00, "Auto Hold" ) PORT_DIPLOCATION("SWD:4") | |
| 484 | 507 | PORT_DIPSETTING( 0x10, DEF_STR( No ) ) |
| 485 | 508 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) |
| 486 | PORT_DIPNAME( 0x20, 0x00, "Anytime Key-in" ) | |
| 509 | PORT_DIPNAME( 0x20, 0x00, "Anytime Key-in" ) PORT_DIPLOCATION("SWD:3") | |
| 487 | 510 | PORT_DIPSETTING( 0x20, DEF_STR( No ) ) |
| 488 | 511 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) |
| 489 | 512 | PORT_BIT( 0xC0, IP_ACTIVE_LOW, IPT_UNUSED ) /* Joker and Royal Flush are always enabled */ |
| 490 | 513 | |
| 491 | 514 | PORT_START_TAG("DSW5") |
| 492 | PORT_DIPNAME( 0x01, 0x00, "Hopper" ) | |
| 515 | PORT_DIPNAME( 0x01, 0x00, "Hopper" ) PORT_DIPLOCATION("SWE:8") | |
| 493 | 516 | PORT_DIPSETTING( 0x01, DEF_STR( No ) ) |
| 494 | 517 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) |
| 495 | PORT_DIPNAME( 0x02, 0x00, "Payout Select" ) | |
| 518 | PORT_DIPNAME( 0x02, 0x00, "Payout Select" ) PORT_DIPLOCATION("SWE:7") | |
| 496 | 519 | PORT_DIPSETTING( 0x02, "Hopper" ) |
| 497 | 520 | PORT_DIPSETTING( 0x00, "Ticket" ) |
| 498 | PORT_DIPNAME( 0x0c, 0x0c, "Ticket Rate" ) | |
| 521 | PORT_DIPNAME( 0x0c, 0x0c, "Ticket Rate" ) PORT_DIPLOCATION("SWE:6,5") | |
| 499 | 522 | PORT_DIPSETTING( 0x0c, "10:1" ) |
| 500 | 523 | PORT_DIPSETTING( 0x08, "20:1" ) |
| 501 | 524 | PORT_DIPSETTING( 0x04, "50:1" ) |
| 502 | 525 | PORT_DIPSETTING( 0x00, "100:1" ) |
| 503 | PORT_DIPNAME( 0x10, 0x00, "Ability" ) | |
| 526 | PORT_DIPNAME( 0x10, 0x00, "Ability" ) PORT_DIPLOCATION("SWE:4") | |
| 504 | 527 | PORT_DIPSETTING( 0x10, DEF_STR( No ) ) |
| 505 | 528 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) |
| 506 | 529 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r1711 | r1712 | |
| 533 | 556 | |
| 534 | 557 | INPUT_PORTS_END |
| 535 | 558 | |
| 559 | static INPUT_PORTS_START( cpoker ) | |
| 536 | 560 | |
| 561 | PORT_START_TAG("DSW1") | |
| 562 | PORT_DIPNAME( 0x01, 0x01, "Demo Music" ) PORT_DIPLOCATION("SWA:8") | |
| 563 | PORT_DIPSETTING( 0x01, DEF_STR( No ) ) | |
| 564 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 565 | PORT_DIPNAME( 0x06, 0x06, "Min Bet to Start" ) PORT_DIPLOCATION("SWA:7,6") | |
| 566 | PORT_DIPSETTING( 0x06, "1" ) | |
| 567 | PORT_DIPSETTING( 0x04, "3" ) | |
| 568 | PORT_DIPSETTING( 0x02, "5" ) | |
| 569 | PORT_DIPSETTING( 0x00, "10" ) | |
| 570 | PORT_DIPNAME( 0x18, 0x10, "Max Bet" ) PORT_DIPLOCATION("SWA:5,4") | |
| 571 | PORT_DIPSETTING( 0x18, "3" ) | |
| 572 | PORT_DIPSETTING( 0x10, "5" ) | |
| 573 | PORT_DIPSETTING( 0x08, "20" ) | |
| 574 | PORT_DIPSETTING( 0x00, "40" ) | |
| 575 | PORT_DIPNAME( 0x60, 0x60, "Min Bet to play Fever" ) PORT_DIPLOCATION("SWA:3,2") | |
| 576 | PORT_DIPSETTING( 0x60, "1" ) | |
| 577 | PORT_DIPSETTING( 0x40, "5" ) | |
| 578 | PORT_DIPSETTING( 0x20, "10" ) | |
| 579 | PORT_DIPSETTING( 0x00, "20" ) | |
| 580 | PORT_DIPNAME( 0x80, 0x00, "Credit Limit" ) PORT_DIPLOCATION("SWA:1") | |
| 581 | PORT_DIPSETTING( 0x80, "5000" ) | |
| 582 | PORT_DIPSETTING( 0x00, "10000" ) | |
| 537 | 583 | |
| 584 | PORT_START_TAG("DSW2") | |
| 585 | PORT_DIPNAME( 0x07, 0x07, "Coin In Rate" ) PORT_DIPLOCATION("SWB:8,7,6") | |
| 586 | PORT_DIPSETTING( 0x07, "1" ) | |
| 587 | PORT_DIPSETTING( 0x06, "2" ) | |
| 588 | PORT_DIPSETTING( 0x05, "5" ) | |
| 589 | PORT_DIPSETTING( 0x04, "10" ) | |
| 590 | PORT_DIPSETTING( 0x03, "20" ) | |
| 591 | PORT_DIPSETTING( 0x02, "40" ) | |
| 592 | PORT_DIPSETTING( 0x01, "50" ) | |
| 593 | PORT_DIPSETTING( 0x00, "100" ) | |
| 594 | PORT_DIPNAME( 0x18, 0x18, "Key In Rate" ) PORT_DIPLOCATION("SWB:5,4") | |
| 595 | PORT_DIPSETTING( 0x18, "10" ) | |
| 596 | PORT_DIPSETTING( 0x10, "20" ) | |
| 597 | PORT_DIPSETTING( 0x08, "50" ) | |
| 598 | PORT_DIPSETTING( 0x00, "100" ) | |
| 599 | PORT_DIPNAME( 0x60, 0x60, "Key Out Rate" ) PORT_DIPLOCATION("SWB:3,2") | |
| 600 | PORT_DIPSETTING( 0x60, "1:1" ) | |
| 601 | PORT_DIPSETTING( 0x40, "10:1" ) | |
| 602 | PORT_DIPSETTING( 0x20, "100:1" ) | |
| 603 | PORT_DIPSETTING( 0x00, "100:1" ) | |
| 604 | PORT_DIPNAME( 0x80, 0x80, "Payout" ) PORT_DIPLOCATION("SWB:1") | |
| 605 | PORT_DIPSETTING( 0x80, "Manual" ) | |
| 606 | PORT_DIPSETTING( 0x00, "Auto" ) | |
| 607 | ||
| 608 | PORT_START_TAG("DSW3") | |
| 609 | PORT_DIPNAME( 0x01, 0x01, "W-UP Bonus Target" ) PORT_DIPLOCATION("SWC:8") | |
| 610 | PORT_DIPSETTING( 0x01, "3000" ) | |
| 611 | PORT_DIPSETTING( 0x00, "5000" ) | |
| 612 | PORT_DIPNAME( 0x02, 0x02, "W-UP Bonus Rate" ) PORT_DIPLOCATION("SWC:7") | |
| 613 | PORT_DIPSETTING( 0x02, "300" ) | |
| 614 | PORT_DIPSETTING( 0x00, "500" ) | |
| 615 | PORT_DIPNAME( 0x0c, 0x0c, "W-UP Chance" ) PORT_DIPLOCATION("SWC:6,5") | |
| 616 | PORT_DIPSETTING( 0x0c, "94%" ) | |
| 617 | PORT_DIPSETTING( 0x08, "96%" ) | |
| 618 | PORT_DIPSETTING( 0x04, "98%" ) | |
| 619 | PORT_DIPSETTING( 0x00, "100%" ) | |
| 620 | PORT_DIPNAME( 0x30, 0x20, "W-UP Type" ) PORT_DIPLOCATION("SWC:4,3") | |
| 621 | PORT_DIPSETTING( 0x30, DEF_STR( None ) ) | |
| 622 | PORT_DIPSETTING( 0x20, "High-Low" ) | |
| 623 | PORT_DIPSETTING( 0x10, "Red-Black" ) /* Bit 4 is equal for ON/OFF */ | |
| 624 | PORT_DIPNAME( 0x40, 0x00, "Strip Girl" ) PORT_DIPLOCATION("SWC:2") | |
| 625 | PORT_DIPSETTING( 0x40, DEF_STR( No ) ) | |
| 626 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 627 | PORT_DIPNAME( 0x80, 0x00, "Anytime Key-in" ) PORT_DIPLOCATION("SWC:1") | |
| 628 | PORT_DIPSETTING( 0x80, DEF_STR( No ) ) | |
| 629 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 630 | ||
| 631 | PORT_START_TAG("DSW4") | |
| 632 | PORT_DIPNAME( 0x0f, 0x07, "Main Game Chance" ) PORT_DIPLOCATION("SWD:8,7,6,5") | |
| 633 | PORT_DIPSETTING( 0x0f, "69%" ) | |
| 634 | PORT_DIPSETTING( 0x0e, "72%" ) | |
| 635 | PORT_DIPSETTING( 0x0d, "75%" ) | |
| 636 | PORT_DIPSETTING( 0x0c, "78%" ) | |
| 637 | PORT_DIPSETTING( 0x0b, "81%" ) | |
| 638 | PORT_DIPSETTING( 0x0a, "83%" ) | |
| 639 | PORT_DIPSETTING( 0x09, "85%" ) | |
| 640 | PORT_DIPSETTING( 0x08, "87%" ) | |
| 641 | PORT_DIPSETTING( 0x07, "89%" ) | |
| 642 | PORT_DIPSETTING( 0x06, "91%" ) | |
| 643 | PORT_DIPSETTING( 0x05, "93%" ) | |
| 644 | PORT_DIPSETTING( 0x04, "95%" ) | |
| 645 | PORT_DIPSETTING( 0x03, "97%" ) | |
| 646 | PORT_DIPSETTING( 0x02, "99%" ) | |
| 647 | PORT_DIPSETTING( 0x01, "101%" ) | |
| 648 | PORT_DIPSETTING( 0x00, "103%" ) | |
| 649 | PORT_DIPNAME( 0x10, 0x00, "Five Jokers" ) PORT_DIPLOCATION("SWD:4") | |
| 650 | PORT_DIPSETTING( 0x10, DEF_STR( No ) ) | |
| 651 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 652 | PORT_DIPNAME( 0x20, 0x00, "Royal Flush" ) PORT_DIPLOCATION("SWD:3") | |
| 653 | PORT_DIPSETTING( 0x20, DEF_STR( No ) ) | |
| 654 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 655 | PORT_DIPNAME( 0x40, 0x00, "Auto Hold" ) PORT_DIPLOCATION("SWD:2") | |
| 656 | PORT_DIPSETTING( 0x40, DEF_STR( No ) ) | |
| 657 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 658 | PORT_DIPNAME( 0x80, 0x00, "Hopper" ) PORT_DIPLOCATION("SWD:1") | |
| 659 | PORT_DIPSETTING( 0x80, DEF_STR( No ) ) | |
| 660 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 661 | ||
| 662 | PORT_START_TAG("DSW5") | |
| 663 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 664 | ||
| 665 | PORT_START_TAG("5081") | |
| 666 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_CODE(KEYCODE_E) PORT_NAME("HPSW") | |
| 667 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_4) PORT_NAME("Payout") | |
| 668 | PORT_SERVICE_NO_TOGGLE( 0x20, IP_ACTIVE_LOW ) | |
| 669 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_F1) PORT_NAME("Statistics") | |
| 670 | ||
| 671 | PORT_START_TAG("5082") | |
| 672 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 673 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 674 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 675 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_CODE(KEYCODE_Q) PORT_NAME("Key In") | |
| 676 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_CODE(KEYCODE_W) PORT_NAME("Key Down") | |
| 677 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 678 | ||
| 679 | PORT_START_TAG("5091") /* Custom IO */ | |
| 680 | PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 681 | ||
| 682 | PORT_START_TAG("50A0") | |
| 683 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_START1 ) | |
| 684 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Hold1/High/Low") | |
| 685 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("Hold5/Bet") | |
| 686 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Hold4/Take") | |
| 687 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Hold3/W-Up") | |
| 688 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Hold2/Red/Black") | |
| 689 | PORT_BIT(0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 690 | ||
| 691 | INPUT_PORTS_END | |
| 692 | ||
| 693 | ||
| 694 | ||
| 538 | 695 | static const gfx_layout charlayout = |
| 539 | 696 | { |
| 540 | 697 | 8,8, /* 8*8 characters */ |
| r1711 | r1712 | |
| 562 | 719 | 4*16*8 /* every char takes 32 consecutive bytes */ |
| 563 | 720 | }; |
| 564 | 721 | |
| 722 | static GFXDECODE_START( cpoker ) | |
| 723 | GFXDECODE_ENTRY( REGION_GFX1, 0x00000, charlayout, 0, 16 ) | |
| 724 | GFXDECODE_END | |
| 725 | ||
| 565 | 726 | static GFXDECODE_START( csk ) |
| 566 | 727 | GFXDECODE_ENTRY( REGION_GFX1, 0x00000, charlayout, 0, 16 ) |
| 567 | 728 | GFXDECODE_ENTRY( REGION_GFX2, 0x04000, charlayout2, 0, 16 ) |
| r1711 | r1712 | |
| 570 | 731 | GFXDECODE_ENTRY( REGION_GFX2, 0x00000, charlayout2, 0, 16 ) |
| 571 | 732 | GFXDECODE_END |
| 572 | 733 | |
| 573 | static MACHINE_DRIVER_START( c | |
| 734 | static MACHINE_DRIVER_START( cpoker | |
| 574 | 735 | |
| 575 | 736 | /* basic machine hardware */ |
| 576 | 737 | MDRV_CPU_ADD_TAG("main",Z80, 3579545) |
| 577 | 738 | MDRV_CPU_PROGRAM_MAP(map,0) |
| 578 | MDRV_CPU_IO_MAP(csk227_map,0) | |
| 579 | MDRV_CPU_VBLANK_INT(cska_interrupt,8) | |
| 739 | MDRV_CPU_IO_MAP(cpoker_map,0) | |
| 740 | MDRV_CPU_VBLANK_INT(cpoker_interrupt,8) | |
| 580 | 741 | |
| 581 | MDRV_SCREEN_REFRESH_RATE(57) | |
| 582 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 583 | 742 | MDRV_MACHINE_RESET(cpk) |
| 584 | 743 | |
| 585 | 744 | /* video hardware */ |
| 586 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 745 | MDRV_SCREEN_ADD("main", RASTER) | |
| 746 | MDRV_SCREEN_REFRESH_RATE(57) | |
| 747 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 587 | 748 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 588 | 749 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 589 | 750 | MDRV_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 0, 32*8-1) |
| 590 | MDRV_GFXDECODE(csk) | |
| 751 | ||
| 752 | MDRV_GFXDECODE(cpoker) | |
| 591 | 753 | MDRV_PALETTE_LENGTH(2048) |
| 592 | 754 | |
| 593 | 755 | MDRV_VIDEO_START(cska) |
| r1711 | r1712 | |
| 595 | 757 | |
| 596 | 758 | /* sound hardware */ |
| 597 | 759 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 598 | ||
| 599 | 760 | MDRV_SOUND_ADD(YM2413, 3579545) |
| 600 | 761 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 601 | 762 | |
| 602 | 763 | MACHINE_DRIVER_END |
| 603 | 764 | |
| 765 | static MACHINE_DRIVER_START( csk227it ) | |
| 766 | ||
| 767 | MDRV_IMPORT_FROM(cpoker) | |
| 768 | MDRV_CPU_MODIFY("main") | |
| 769 | /* basic machine hardware */ | |
| 770 | MDRV_CPU_IO_MAP(csk227_map,0) | |
| 771 | MDRV_CPU_VBLANK_INT(cska_interrupt,8) | |
| 772 | MDRV_GFXDECODE(csk) | |
| 773 | ||
| 774 | MACHINE_DRIVER_END | |
| 775 | ||
| 604 | 776 | static MACHINE_DRIVER_START( csk234it ) |
| 605 | 777 | |
| 606 | MDRV_IMPORT_FROM(c | |
| 778 | MDRV_IMPORT_FROM(cpoker | |
| 607 | 779 | MDRV_CPU_MODIFY("main") |
| 608 | 780 | /* basic machine hardware */ |
| 609 | 781 | MDRV_CPU_IO_MAP(csk234_map,0) |
| 782 | MDRV_CPU_VBLANK_INT(cska_interrupt,8) | |
| 783 | MDRV_GFXDECODE(csk) | |
| 610 | 784 | |
| 611 | 785 | MACHINE_DRIVER_END |
| 612 | 786 | |
| 613 | 787 | /* ROM Regions definition |
| 614 | 788 | */ |
| 615 | 789 | |
| 790 | ROM_START( cpoker ) | |
| 791 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 792 | ROM_LOAD( "v220i1.bin", 0x0000, 0x8000, CRC(b7cae556) SHA1(bb43ee48634879029ed1a7cd4133d7f12413e2ac) ) | |
| 793 | ROM_LOAD( "v220i2.bin", 0x8000, 0x8000, CRC(8245e42c) SHA1(b7e7b9f643e6dc2f4d5aaf7d50d0a9154ed9a4e7) ) | |
| 794 | ||
| 795 | ROM_REGION( 0x60000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 796 | ROM_LOAD( "220i1.bin", 0x40000, 0x20000, CRC(9c4c0af1) SHA1(7a9808b3093b23bde7ecc7405689b2a28ae34e61) ) | |
| 797 | ROM_LOAD( "220i2.bin", 0x20000, 0x20000, CRC(331fa4b8) SHA1(ddac57251fa5dfecc0988a2ca01eec016ef47f20) ) | |
| 798 | ROM_LOAD( "220i3.bin", 0x00000, 0x20000, CRC(bd2f797c) SHA1(5ca5adae44490dd109f630213a09a68c12f9bd1a) ) | |
| 799 | ||
| 800 | ROM_REGION( 0x10000, REGION_GFX3, 0 ) /* expansion rom - contains backgrounds and pictures charmaps */ | |
| 801 | ROM_LOAD( "220i7.bin", 0x0000, 0x8000, CRC(8a2ff310) SHA1(a415a99dbb1448b4b2b94e17a3973e6347e3be18) ) | |
| 802 | ROM_END | |
| 803 | ||
| 616 | 804 | ROM_START( csk227it ) |
| 617 | 805 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) |
| 618 | 806 | ROM_LOAD( "v227i.bin", 0x0000, 0x10000, CRC(df1ebf49) SHA1(829c7575d3d3780557405b3a61859901df6dbe4f) ) |
| r1711 | r1712 | |
| 694 | 882 | /* Decode a simple PAL encryption |
| 695 | 883 | */ |
| 696 | 884 | |
| 885 | static DRIVER_INIT( cpoker ) | |
| 886 | { | |
| 887 | int A; | |
| 888 | UINT8 *rom = memory_region(REGION_CPU1); | |
| 889 | ||
| 890 | ||
| 891 | for (A = 0;A < 0x10000;A++) | |
| 892 | { | |
| 893 | rom[A] ^= 0x21; | |
| 894 | if ((A & 0x0030) == 0x0010) rom[A] ^= 0x20; | |
| 895 | if ((A & 0x0282) == 0x0282) rom[A] ^= 0x01; | |
| 896 | if ((A & 0x0940) == 0x0940) rom[A] ^= 0x02; | |
| 897 | } | |
| 898 | } | |
| 899 | ||
| 697 | 900 | static DRIVER_INIT( cska ) |
| 698 | 901 | { |
| 699 | 902 | int A; |
| r1711 | r1712 | |
| 710 | 913 | } |
| 711 | 914 | } |
| 712 | 915 | |
| 713 | GAME( 198?, csk227it, 0, csk227it, csk227, cska, ROT0, "IGS", "Champion Skill (with Ability)", 0 ) /* SU 062 */ | |
| 714 | GAME( 198?, csk234it, csk227it, csk234it, csk234, cska, ROT0, "IGS", "Champion Skill (Ability, Poker & Symbols)", 0 ) /* SU 062 */ | |
| 916 | GAME( 198?, cpoker, 0, cpoker, cpoker, cpoker, ROT0, "IGS", "Champion Poker", 0 ) | |
| 917 | GAME( 198?, csk227it, 0, csk227it, csk227, cska, ROT0, "IGS", "Champion Skill (with Ability)", 0 ) /* SU 062 */ | |
| 918 | GAME( 198?, csk234it, csk227it, csk234it, csk234, cska, ROT0, "IGS", "Champion Skill (Ability, Poker & Symbols)", 0 ) /* SU 062 */ | |
| 715 | 919 | |
| 716 | GAME( 1998, stellecu, 0, csk234it, csk234, 0, ROT0, "Sure", "Stelle e Cubi (Italy)", GAME_NOT_WORKING ) | |
| 920 | GAME( 1998, stellecu, 0, csk234it, csk234, 0, ROT0, "Sure", "Stelle e Cubi (Italy)", GAME_NOT_WORKING ) |
| r1711 | r1712 | |
|---|---|---|
| 383 | 383 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 384 | 384 | MDRV_CPU_VBLANK_INT(naughtyb_interrupt,1) |
| 385 | 385 | |
| 386 | /* video hardware */ | |
| 387 | MDRV_SCREEN_ADD("main", RASTER) | |
| 386 | 388 | MDRV_SCREEN_REFRESH_RATE(60) |
| 387 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 388 | ||
| 389 | /* video hardware */ | |
| 390 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 389 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 391 | 390 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 392 | 391 | MDRV_SCREEN_SIZE(36*8, 28*8) |
| 393 | 392 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 0*8, 28*8-1) |
| 393 | ||
| 394 | 394 | MDRV_GFXDECODE(naughtyb) |
| 395 | 395 | MDRV_PALETTE_LENGTH(256) |
| 396 | 396 | |
| r1711 | r1712 | |
| 420 | 420 | MDRV_CPU_PROGRAM_MAP(readmem,popflame_writemem) |
| 421 | 421 | MDRV_CPU_VBLANK_INT(naughtyb_interrupt,1) |
| 422 | 422 | |
| 423 | /* video hardware */ | |
| 424 | MDRV_SCREEN_ADD("main", RASTER) | |
| 423 | 425 | MDRV_SCREEN_REFRESH_RATE(60) |
| 424 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 425 | ||
| 426 | /* video hardware */ | |
| 427 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 426 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 428 | 427 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 429 | 428 | MDRV_SCREEN_SIZE(36*8, 28*8) |
| 430 | 429 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 0*8, 28*8-1) |
| 430 | ||
| 431 | 431 | MDRV_GFXDECODE(naughtyb) |
| 432 | 432 | MDRV_PALETTE_LENGTH(256) |
| 433 | 433 |
| r1711 | r1712 | |
|---|---|---|
| 358 | 358 | MDRV_CPU_ADD(M6502, 12096000 / 8) /* ? */ |
| 359 | 359 | MDRV_CPU_PROGRAM_MAP(readmem, writemem) |
| 360 | 360 | |
| 361 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 362 | ||
| 363 | 361 | MDRV_MACHINE_RESET(runaway) |
| 364 | 362 | MDRV_NVRAM_HANDLER(atari_vg) |
| 365 | 363 | |
| 366 | 364 | /* video hardware */ |
| 367 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 365 | MDRV_SCREEN_ADD("main", RASTER) | |
| 366 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 368 | 367 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 369 | 368 | MDRV_SCREEN_SIZE(256, 263) |
| 370 | 369 | MDRV_SCREEN_VISIBLE_AREA(0, 255, 0, 239) |
| 370 | ||
| 371 | 371 | MDRV_GFXDECODE(runaway) |
| 372 | 372 | MDRV_PALETTE_LENGTH(16) |
| 373 | 373 |
| r1711 | r1712 | |
|---|---|---|
| 414 | 414 | MDRV_CPU_PROGRAM_MAP(taitowlf_map, 0) |
| 415 | 415 | MDRV_CPU_IO_MAP(taitowlf_io, 0) |
| 416 | 416 | |
| 417 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 418 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 419 | ||
| 420 | 417 | MDRV_MACHINE_RESET(taitowlf) |
| 421 | 418 | |
| 422 | 419 | MDRV_NVRAM_HANDLER( mc146818 ) |
| 423 | 420 | |
| 424 | 421 | /* video hardware */ |
| 425 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 422 | MDRV_SCREEN_ADD("main", RASTER) | |
| 423 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 424 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 426 | 425 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) |
| 427 | 426 | MDRV_SCREEN_SIZE(640, 480) |
| 428 | 427 | MDRV_SCREEN_VISIBLE_AREA(0, 639, 0, 199) |
| 428 | ||
| 429 | 429 | MDRV_GFXDECODE(CGA) |
| 430 | 430 | MDRV_PALETTE_LENGTH(16) |
| 431 | 431 |
| r1711 | r1712 | |
|---|---|---|
| 582 | 582 | MDRV_CPU_PROGRAM_MAP(readmem_68k,writemem_68k) |
| 583 | 583 | MDRV_CPU_VBLANK_INT(toypop_m68000_interrupt,1) |
| 584 | 584 | |
| 585 | MDRV_SCREEN_REFRESH_RATE(60.606060) | |
| 586 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 587 | 585 | MDRV_INTERLEAVE(100) /* 100 CPU slices per frame - an high value to ensure proper */ |
| 588 | 586 | /* synchronization of the CPUs */ |
| 589 | 587 | MDRV_MACHINE_RESET(toypop) |
| 590 | 588 | |
| 591 | 589 | /* video hardware */ |
| 592 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 590 | MDRV_SCREEN_ADD("main", RASTER) | |
| 591 | MDRV_SCREEN_REFRESH_RATE(60.606060) | |
| 592 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 593 | 593 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 594 | 594 | MDRV_SCREEN_SIZE(36*8, 28*8) |
| 595 | 595 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 0*8, 28*8-1) |
| 596 | ||
| 596 | 597 | MDRV_GFXDECODE(toypop) |
| 597 | 598 | MDRV_PALETTE_LENGTH(128*4+64*4+16*2) |
| 598 | 599 |
| r1711 | r1712 | |
|---|---|---|
| 2034 | 2034 | MDRV_CPU_PROGRAM_MAP(tumblepopb_readmem,tumblepopb_writemem) |
| 2035 | 2035 | MDRV_CPU_VBLANK_INT(irq6_line_hold,1) |
| 2036 | 2036 | |
| 2037 | /* video hardware */ | |
| 2038 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2037 | 2039 | MDRV_SCREEN_REFRESH_RATE(58) |
| 2038 | 2040 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529)) |
| 2039 | ||
| 2040 | /* video hardware */ | |
| 2041 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2042 | 2041 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2043 | 2042 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 2044 | 2043 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 2044 | ||
| 2045 | 2045 | MDRV_GFXDECODE(tumbleb) |
| 2046 | 2046 | MDRV_PALETTE_LENGTH(1024) |
| 2047 | 2047 | |
| r1711 | r1712 | |
| 2064 | 2064 | MDRV_CPU_PROGRAM_MAP(tumblepopb_readmem,tumblepopb_writemem) |
| 2065 | 2065 | MDRV_CPU_VBLANK_INT(tumbleb2_interrupt,1) |
| 2066 | 2066 | |
| 2067 | /* video hardware */ | |
| 2068 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2067 | 2069 | MDRV_SCREEN_REFRESH_RATE(58) |
| 2068 | 2070 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529)) |
| 2069 | ||
| 2070 | /* video hardware */ | |
| 2071 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2072 | 2071 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2073 | 2072 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 2074 | 2073 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 2074 | ||
| 2075 | 2075 | MDRV_GFXDECODE(tumbleb) |
| 2076 | 2076 | MDRV_PALETTE_LENGTH(1024) |
| 2077 | 2077 | |
| r1711 | r1712 | |
| 2097 | 2097 | MDRV_CPU_ADD( Z80, 8000000/2) |
| 2098 | 2098 | MDRV_CPU_PROGRAM_MAP(jumpkids_sound_map,0) |
| 2099 | 2099 | |
| 2100 | /* video hardware */ | |
| 2101 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2100 | 2102 | MDRV_SCREEN_REFRESH_RATE(60) |
| 2101 | 2103 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529)) |
| 2102 | ||
| 2103 | /* video hardware */ | |
| 2104 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2105 | 2104 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2106 | 2105 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 2107 | 2106 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 2107 | ||
| 2108 | 2108 | MDRV_GFXDECODE(tumbleb) |
| 2109 | 2109 | MDRV_PALETTE_LENGTH(1024) |
| 2110 | 2110 | |
| r1711 | r1712 | |
| 2125 | 2125 | MDRV_CPU_PROGRAM_MAP(fncywld_readmem,fncywld_writemem) |
| 2126 | 2126 | MDRV_CPU_VBLANK_INT(irq6_line_hold,1) |
| 2127 | 2127 | |
| 2128 | /* video hardware */ | |
| 2129 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2128 | 2130 | MDRV_SCREEN_REFRESH_RATE(60) |
| 2129 | 2131 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529)) |
| 2130 | ||
| 2131 | /* video hardware */ | |
| 2132 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2133 | 2132 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2134 | 2133 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 2135 | 2134 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 2135 | ||
| 2136 | 2136 | MDRV_GFXDECODE(fncywld) |
| 2137 | 2137 | MDRV_PALETTE_LENGTH(0x800) |
| 2138 | 2138 | |
| r1711 | r1712 | |
| 2188 | 2188 | /* audio CPU */ |
| 2189 | 2189 | MDRV_CPU_PROGRAM_MAP(semicom_sound_readmem,semicom_sound_writemem) |
| 2190 | 2190 | |
| 2191 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2192 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2400)) // ?? cookbib needs it above ~2400 or the Joystick on the How to Play screen is the wrong colour?! | |
| 2193 | ||
| 2194 | 2191 | MDRV_MACHINE_RESET ( htchctch ) |
| 2195 | 2192 | |
| 2196 | 2193 | /* video hardware */ |
| 2197 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2194 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2195 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2196 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2400)) // ?? cookbib needs it above ~2400 or the Joystick on the How to Play screen is the wrong colour?! | |
| 2198 | 2197 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2199 | 2198 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 2200 | 2199 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 2200 | ||
| 2201 | 2201 | MDRV_GFXDECODE(tumbleb) |
| 2202 | 2202 | MDRV_PALETTE_LENGTH(1024) |
| 2203 | 2203 | |
| r1711 | r1712 | |
| 2266 | 2266 | MDRV_CPU_IO_MAP(jumppop_sound_io_map, 0) |
| 2267 | 2267 | MDRV_CPU_PERIODIC_INT(nmi_line_pulse, 1953) /* measured */ |
| 2268 | 2268 | |
| 2269 | /* video hardware */ | |
| 2270 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2269 | 2271 | MDRV_SCREEN_REFRESH_RATE(60) |
| 2270 | 2272 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529)) |
| 2271 | ||
| 2272 | /* video hardware */ | |
| 2273 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2274 | 2273 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2275 | 2274 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 2276 | 2275 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 2276 | ||
| 2277 | 2277 | MDRV_GFXDECODE(jumppop) |
| 2278 | 2278 | MDRV_PALETTE_LENGTH(1024) |
| 2279 | 2279 | |
| r1711 | r1712 | |
| 2303 | 2303 | /* audio CPU */ |
| 2304 | 2304 | MDRV_CPU_PROGRAM_MAP(semicom_sound_readmem,semicom_sound_writemem) |
| 2305 | 2305 | |
| 2306 | /* video hardware */ | |
| 2307 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2306 | 2308 | MDRV_SCREEN_REFRESH_RATE(60) |
| 2307 | 2309 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529)) |
| 2308 | ||
| 2309 | /* video hardware */ | |
| 2310 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2311 | 2310 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2312 | 2311 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 2313 | 2312 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8-1, 31*8-2) |
| 2313 | ||
| 2314 | 2314 | MDRV_GFXDECODE(suprtrio) |
| 2315 | 2315 | MDRV_PALETTE_LENGTH(1024) |
| 2316 | 2316 | |
| r1711 | r1712 | |
| 2333 | 2333 | MDRV_CPU_PROGRAM_MAP(pangpang_readmem,pangpang_writemem) |
| 2334 | 2334 | MDRV_CPU_VBLANK_INT(tumbleb2_interrupt,1) |
| 2335 | 2335 | |
| 2336 | /* video hardware */ | |
| 2337 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2336 | 2338 | MDRV_SCREEN_REFRESH_RATE(58) |
| 2337 | 2339 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(1529)) |
| 2338 | ||
| 2339 | /* video hardware */ | |
| 2340 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2341 | 2340 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2342 | 2341 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 2343 | 2342 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 2343 | ||
| 2344 | 2344 | MDRV_GFXDECODE(tumbleb) |
| 2345 | 2345 | MDRV_PALETTE_LENGTH(1024) |
| 2346 | 2346 |
| r1711 | r1712 | |
|---|---|---|
| 875 | 875 | MDRV_MACHINE_RESET(micro3d) |
| 876 | 876 | MDRV_INTERLEAVE(50) |
| 877 | 877 | |
| 878 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 879 | 878 | MDRV_PALETTE_LENGTH(32768) |
| 880 | 879 | |
| 881 | MDRV_SCREEN_ADD("main", | |
| 880 | MDRV_SCREEN_ADD("main", RASTER) | |
| 882 | 881 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 883 | 882 | MDRV_SCREEN_RAW_PARAMS(40000000/8*4, 192*4, 0, 144*4, 434, 0, 400) |
| 884 | 883 |
| r1711 | r1712 | |
|---|---|---|
| 259 | 259 | /* audio CPU */ /* 2.5MHz */ |
| 260 | 260 | MDRV_CPU_PROGRAM_MAP(readmem_sound,writemem_sound) |
| 261 | 261 | |
| 262 | /* video hardware */ | |
| 263 | MDRV_SCREEN_ADD("main", RASTER) | |
| 262 | 264 | MDRV_SCREEN_REFRESH_RATE(60) |
| 263 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 264 | ||
| 265 | /* video hardware */ | |
| 266 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 265 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 267 | 266 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 268 | 267 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 269 | 268 | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 2*8, 29*8-1) |
| 269 | ||
| 270 | 270 | MDRV_GFXDECODE(momoko) |
| 271 | 271 | MDRV_PALETTE_LENGTH(512) |
| 272 | 272 |
| r1711 | r1712 | |
|---|---|---|
| 452 | 452 | MDRV_CPU_IO_MAP(sound_readport,sound_writeport) |
| 453 | 453 | /* irq's triggered from main cpu */ |
| 454 | 454 | /* nmi's from msm5205 */ |
| 455 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 456 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 457 | 455 | |
| 458 | 456 | /* video hardware */ |
| 459 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 457 | MDRV_SCREEN_ADD("main", RASTER) | |
| 458 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 459 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 460 | 460 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 461 | 461 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 462 | 462 | MDRV_SCREEN_VISIBLE_AREA(0, 32*8-1, 2*8, 30*8-1) |
| 463 | ||
| 463 | 464 | MDRV_GFXDECODE(kchamp) |
| 464 | 465 | MDRV_PALETTE_LENGTH(256) |
| 465 | 466 | |
| r1711 | r1712 | |
| 500 | 501 | MDRV_CPU_PERIODIC_INT(sound_int, 125) /* Hz */ |
| 501 | 502 | /* irq's triggered from main cpu */ |
| 502 | 503 | /* nmi's from 125 Hz clock */ |
| 503 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 504 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 505 | 504 | |
| 506 | 505 | /* video hardware */ |
| 507 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 506 | MDRV_SCREEN_ADD("main", RASTER) | |
| 507 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 508 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 508 | 509 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 509 | 510 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 510 | 511 | MDRV_SCREEN_VISIBLE_AREA(0, 32*8-1, 2*8, 30*8-1) |
| 512 | ||
| 511 | 513 | MDRV_GFXDECODE(kchamp) |
| 512 | 514 | MDRV_PALETTE_LENGTH(256) |
| 513 | 515 |
| r1711 | r1712 | |
|---|---|---|
| 20 | 20 | { |
| 21 | 21 | int i; |
| 22 | 22 | |
| 23 | for (i = 0; i < machine-> | |
| 23 | for (i = 0; i < machine->config->total_colors; i++) | |
| 24 | 24 | { |
| 25 | 25 | UINT8 pen; |
| 26 | 26 | int bit0, bit1, bit2, r, g, b; |
| r1711 | r1712 | |
| 375 | 375 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 376 | 376 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 377 | 377 | |
| 378 | /* video hardware */ | |
| 379 | MDRV_SCREEN_ADD("main", RASTER) | |
| 378 | 380 | MDRV_SCREEN_REFRESH_RATE(60) |
| 379 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 380 | ||
| 381 | /* video hardware */ | |
| 382 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 381 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 383 | 382 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 384 | 383 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 385 | 384 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 385 | ||
| 386 | 386 | MDRV_GFXDECODE(olibochu) |
| 387 | 387 | MDRV_PALETTE_LENGTH(512) |
| 388 | 388 |
| r1711 | r1712 | |
|---|---|---|
| 301 | 301 | MDRV_MACHINE_RESET(ultratnk) |
| 302 | 302 | |
| 303 | 303 | /* video hardware */ |
| 304 | MDRV_ | |
| 304 | MDRV_SC | |
| 305 | 305 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 306 | 306 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, 0, 256, VTOTAL, 0, 224) |
| 307 | ||
| 307 | 308 | MDRV_GFXDECODE(ultratnk) |
| 308 | MDRV_PALETTE_LENGTH(4) | |
| 309 | MDRV_COLORTABLE_LENGTH(10) | |
| 309 | MDRV_PALETTE_LENGTH(10) | |
| 310 | 310 | |
| 311 | 311 | MDRV_PALETTE_INIT(ultratnk) |
| 312 | 312 | MDRV_VIDEO_START(ultratnk) |
| r1711 | r1712 | |
|---|---|---|
| 22 | 22 | selection moves too fast with the clock set at 16 MHz. It's still fast at |
| 23 | 23 | 8 MHz, but at least it's usable. |
| 24 | 24 | |
| 25 | - Probably all games use a nec V35+ cpu: for gussun and risky challenge | |
| 26 | we need a proper V35+ core for the use of the 0x63 instruction (brkn, to call a unencrypted | |
| 27 | routine from encrypted code); for simulate the instruction there's an hack (m90_game_kludge). | |
| 28 | ||
| 29 | 25 | *****************************************************************************/ |
| 30 | 26 | |
| 31 | 27 | #include "driver.h" |
| r1711 | r1712 | |
| 34 | 30 | #include "audio/m72.h" |
| 35 | 31 | #include "sound/dac.h" |
| 36 | 32 | #include "sound/2151intf.h" |
| 33 | #include "cpu/nec/nec.h" | |
| 37 | 34 | |
| 38 | 35 | static UINT32 bankaddress; |
| 39 | 36 | |
| 40 | 37 | extern UINT16 *m90_video_data; |
| 41 | 38 | |
| 42 | extern int m90_game_kludge; | |
| 43 | ||
| 44 | 39 | VIDEO_UPDATE( m90 ); |
| 45 | 40 | VIDEO_UPDATE( m90_bootleg ); |
| 46 | 41 | WRITE16_HANDLER( m90_video_control_w ); |
| r1711 | r1712 | |
| 654 | 649 | } |
| 655 | 650 | |
| 656 | 651 | |
| 657 | ||
| 652 | /* Basic hardware -- no decryption table is setup for CPU */ | |
| 658 | 653 | static MACHINE_DRIVER_START( m90 ) |
| 659 | ||
| 660 | 654 | /* basic machine hardware */ |
| 661 | MDRV_CPU_ADD(V30,32000000/4) | |
| 655 | MDRV_CPU_ADD_TAG("main", V30,32000000/4) | |
| 662 | 656 | MDRV_CPU_PROGRAM_MAP(main_cpu,0) |
| 663 | 657 | MDRV_CPU_IO_MAP(main_cpu_io,0) |
| 664 | 658 | MDRV_CPU_VBLANK_INT(m90_interrupt,1) |
| r1711 | r1712 | |
| 669 | 663 | MDRV_CPU_IO_MAP(sound_readport,sound_writeport) |
| 670 | 664 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,128) /* clocked by V1? (Vigilante) */ |
| 671 | 665 | /* IRQs are generated by main Z80 and YM2151 */ |
| 672 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 673 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 674 | 666 | |
| 675 | 667 | MDRV_MACHINE_RESET(m72_sound) |
| 676 | 668 | |
| 677 | 669 | /* video hardware */ |
| 678 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 670 | MDRV_SCREEN_ADD("main", RASTER) | |
| 671 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 672 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 679 | 673 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 680 | 674 | MDRV_SCREEN_SIZE(64*8, 64*8) |
| 681 | 675 | MDRV_SCREEN_VISIBLE_AREA(6*8, 54*8-1, 17*8, 47*8-1) |
| 676 | ||
| 682 | 677 | MDRV_GFXDECODE(m90) |
| 683 | 678 | MDRV_PALETTE_LENGTH(512) |
| 684 | 679 | |
| r1711 | r1712 | |
| 697 | 692 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.60) |
| 698 | 693 | MACHINE_DRIVER_END |
| 699 | 694 | |
| 695 | ||
| 696 | static const nec_config hasamu_config ={ gunforce_decryption_table, }; | |
| 697 | static MACHINE_DRIVER_START( hasamu ) | |
| 698 | MDRV_IMPORT_FROM( m90 ) | |
| 699 | MDRV_CPU_MODIFY("main") | |
| 700 | MDRV_CPU_CONFIG(hasamu_config) | |
| 701 | MACHINE_DRIVER_END | |
| 702 | ||
| 703 | static const nec_config quizf1_config ={ lethalth_decryption_table, }; | |
| 700 | 704 | static MACHINE_DRIVER_START( quizf1 ) |
| 705 | MDRV_IMPORT_FROM( m90 ) | |
| 706 | MDRV_CPU_MODIFY("main") | |
| 707 | MDRV_CPU_CONFIG(quizf1_config) | |
| 708 | MDRV_SCREEN_MODIFY("main") | |
| 709 | MDRV_SCREEN_VISIBLE_AREA(6*8, 54*8-1, 17*8-8, 47*8-1+8) | |
| 710 | MACHINE_DRIVER_END | |
| 701 | 711 | |
| 712 | static const nec_config matchit2_config ={ matchit2_decryption_table, }; | |
| 713 | static MACHINE_DRIVER_START( matchit2 ) | |
| 702 | 714 | MDRV_IMPORT_FROM( m90 ) |
| 715 | MDRV_CPU_MODIFY("main") | |
| 716 | MDRV_CPU_CONFIG(matchit2_config) | |
| 717 | MDRV_SCREEN_MODIFY("main") | |
| 703 | 718 | MDRV_SCREEN_VISIBLE_AREA(6*8, 54*8-1, 17*8-8, 47*8-1+8) |
| 719 | MACHINE_DRIVER_END | |
| 704 | 720 | |
| 721 | ||
| 722 | static const nec_config riskchal_config ={ gussun_decryption_table, }; | |
| 723 | static MACHINE_DRIVER_START( riskchal ) | |
| 724 | MDRV_IMPORT_FROM( m90 ) | |
| 725 | MDRV_CPU_MODIFY("main") | |
| 726 | MDRV_CPU_CONFIG(riskchal_config) | |
| 727 | MDRV_SCREEN_MODIFY("main") | |
| 728 | MDRV_SCREEN_VISIBLE_AREA(10*8, 50*8-1, 17*8, 47*8-1) | |
| 705 | 729 | MACHINE_DRIVER_END |
| 706 | 730 | |
| 707 | 731 | |
| 732 | static const nec_config bomberman_config ={ bomberman_decryption_table, }; | |
| 708 | 733 | static MACHINE_DRIVER_START( bombrman ) |
| 709 | 734 | |
| 710 | 735 | /* basic machine hardware */ |
| 711 | MDRV_CPU_ADD(V30,32000000/4) /* 8 MHz ??????? */ | |
| 736 | MDRV_CPU_ADD_TAG("main", V30,32000000/4) | |
| 737 | MDRV_CPU_CONFIG(bomberman_config) | |
| 738 | ||
| 712 | 739 | MDRV_CPU_PROGRAM_MAP(main_cpu,0) |
| 713 | 740 | MDRV_CPU_IO_MAP(main_cpu_io,0) |
| 714 | 741 | MDRV_CPU_VBLANK_INT(m90_interrupt,1) |
| r1711 | r1712 | |
| 719 | 746 | MDRV_CPU_IO_MAP(sound_readport,sound_writeport) |
| 720 | 747 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,128) /* clocked by V1? (Vigilante) */ |
| 721 | 748 | /* IRQs are generated by main Z80 and YM2151 */ |
| 722 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 723 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 724 | 749 | MDRV_MACHINE_RESET(m72_sound) |
| 725 | 750 | |
| 726 | 751 | /* video hardware */ |
| 727 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 752 | MDRV_SCREEN_ADD("main", RASTER) | |
| 753 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 754 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 728 | 755 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 729 | 756 | MDRV_SCREEN_SIZE(64*8, 64*8) |
| 730 | 757 | MDRV_SCREEN_VISIBLE_AREA(10*8, 50*8-1, 17*8, 47*8-1) |
| 758 | ||
| 731 | 759 | MDRV_GFXDECODE(m90) |
| 732 | 760 | MDRV_PALETTE_LENGTH(512) |
| 733 | 761 | |
| r1711 | r1712 | |
| 746 | 774 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.60) |
| 747 | 775 | MACHINE_DRIVER_END |
| 748 | 776 | |
| 777 | static const nec_config dynablaster_config ={ dynablaster_decryption_table, }; | |
| 749 | 778 | |
| 750 | 779 | static MACHINE_DRIVER_START( bbmanw ) |
| 751 | 780 | |
| 752 | 781 | /* basic machine hardware */ |
| 753 | MDRV_CPU_ADD_TAG("main",V30,32000000/4) /* 8 MHz ??????? */ | |
| 782 | MDRV_CPU_ADD_TAG("main", V30,32000000/4) | |
| 783 | MDRV_CPU_CONFIG(dynablaster_config) | |
| 784 | ||
| 754 | 785 | MDRV_CPU_PROGRAM_MAP(main_cpu,0) |
| 755 | 786 | MDRV_CPU_IO_MAP(main_cpu_io,0) |
| 756 | 787 | MDRV_CPU_VBLANK_INT(m90_interrupt,1) |
| r1711 | r1712 | |
| 761 | 792 | MDRV_CPU_IO_MAP(bbmanw_sound_readport,bbmanw_sound_writeport) |
| 762 | 793 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,128) /* clocked by V1? (Vigilante) */ |
| 763 | 794 | /* IRQs are generated by main Z80 and YM2151 */ |
| 764 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 765 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 766 | 795 | MDRV_MACHINE_RESET(m72_sound) |
| 767 | 796 | |
| 768 | 797 | /* video hardware */ |
| 769 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 798 | MDRV_SCREEN_ADD("main", RASTER) | |
| 799 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 800 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 770 | 801 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 771 | 802 | MDRV_SCREEN_SIZE(64*8, 64*8) |
| 772 | 803 | MDRV_SCREEN_VISIBLE_AREA(10*8, 50*8-1, 17*8, 47*8-1) |
| 804 | ||
| 773 | 805 | MDRV_GFXDECODE(m90) |
| 774 | 806 | MDRV_PALETTE_LENGTH(512) |
| 775 | 807 | |
| r1711 | r1712 | |
| 788 | 820 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.60) |
| 789 | 821 | MACHINE_DRIVER_END |
| 790 | 822 | |
| 823 | static const nec_config no_table ={ NULL, }; | |
| 824 | ||
| 825 | ||
| 791 | 826 | static MACHINE_DRIVER_START( bomblord ) |
| 792 | 827 | |
| 793 | 828 | MDRV_IMPORT_FROM( bbmanw ) |
| 794 | 829 | MDRV_CPU_MODIFY("main") |
| 830 | MDRV_CPU_CONFIG(no_table) | |
| 831 | ||
| 795 | 832 | MDRV_CPU_VBLANK_INT(bomblord_interrupt,1) |
| 796 | 833 | |
| 797 | 834 | MACHINE_DRIVER_END |
| 798 | 835 | |
| 836 | ||
| 837 | ||
| 799 | 838 | static MACHINE_DRIVER_START( bootleg ) |
| 800 | 839 | |
| 801 | 840 | /* basic machine hardware */ |
| 802 | MDRV_CPU_ADD(V30,32000000/4) | |
| 841 | MDRV_CPU_ADD_TAG("main", V30,32000000/4) | |
| 803 | 842 | MDRV_CPU_PROGRAM_MAP(bootleg_main_cpu,0) |
| 804 | 843 | MDRV_CPU_IO_MAP(main_cpu_io,0) |
| 805 | 844 | MDRV_CPU_VBLANK_INT(m90_interrupt,1) |
| r1711 | r1712 | |
| 810 | 849 | MDRV_CPU_IO_MAP(sound_readport,sound_writeport) |
| 811 | 850 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,128) /* clocked by V1? (Vigilante) */ |
| 812 | 851 | /* IRQs are generated by main Z80 and YM2151 */ |
| 813 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 814 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 815 | 852 | MDRV_MACHINE_RESET(m72_sound) |
| 816 | 853 | |
| 817 | 854 | /* video hardware */ |
| 818 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 855 | MDRV_SCREEN_ADD("main", RASTER) | |
| 856 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 857 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 819 | 858 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 820 | 859 | MDRV_SCREEN_SIZE(320, 240) |
| 821 | 860 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 239) |
| 861 | ||
| 822 | 862 | MDRV_GFXDECODE(m90) |
| 823 | 863 | MDRV_PALETTE_LENGTH(512) |
| 824 | 864 | |
| r1711 | r1712 | |
| 1113 | 1153 | |
| 1114 | 1154 | |
| 1115 | 1155 | |
| 1116 | static DRIVER_INIT( hasamu ) | |
| 1117 | { | |
| 1118 | m90_game_kludge=0; | |
| 1119 | irem_cpu_decrypt(0,gunforce_decryption_table); | |
| 1120 | } | |
| 1121 | 1156 | |
| 1122 | static DRIVER_INIT( bombrman ) | |
| 1123 | { | |
| 1124 | m90_game_kludge=0; | |
| 1125 | irem_cpu_decrypt(0,bomberman_decryption_table); | |
| 1126 | } | |
| 1127 | 1157 | |
| 1128 | /* Bomberman World executes encrypted code from RAM! */ | |
| 1129 | static UINT16 *bbmanw_ram_base; | |
| 1130 | extern UINT8 *irem_cpu_decrypted; | |
| 1131 | ||
| 1132 | static WRITE16_HANDLER( bbmanw_ram_write ) | |
| 1133 | { | |
| 1134 | COMBINE_DATA(&bbmanw_ram_base[offset]); | |
| 1135 | if (ACCESSING_LSB) | |
| 1136 | irem_cpu_decrypted[0xa0c00+offset*2]=dynablaster_decryption_table[data & 0xff]; | |
| 1137 | if (ACCESSING_MSB) | |
| 1138 | irem_cpu_decrypted[0xa0c00+offset*2+1]=dynablaster_decryption_table[(data >> 8) & 0xff]; | |
| 1139 | } | |
| 1140 | ||
| 1141 | static READ16_HANDLER( bbmanw_ram_read ) | |
| 1142 | { | |
| 1143 | return bbmanw_ram_base[offset]; | |
| 1144 | } | |
| 1145 | ||
| 1146 | static DRIVER_INIT( bbmanw ) | |
| 1147 | { | |
| 1148 | m90_game_kludge=0; | |
| 1149 | irem_cpu_decrypt(0,dynablaster_decryption_table); | |
| 1150 | ||
| 1151 | bbmanw_ram_base = memory_install_write16_handler(0, ADDRESS_SPACE_PROGRAM, 0xa0c00, 0xa0cff, 0, 0, bbmanw_ram_write); | |
| 1152 | memory_install_read16_handler(0, ADDRESS_SPACE_PROGRAM, 0xa0c00, 0xa0cff, 0, 0, bbmanw_ram_read); | |
| 1153 | } | |
| 1154 | ||
| 1155 | 1158 | static DRIVER_INIT( quizf1 ) |
| 1156 | 1159 | { |
| 1157 | m90_game_kludge=0; | |
| 1158 | irem_cpu_decrypt(0,lethalth_decryption_table); | |
| 1159 | 1160 | bankaddress = 0; |
| 1160 | 1161 | set_m90_bank(); |
| 1161 | 1162 | |
| r1711 | r1712 | |
| 1163 | 1164 | state_save_register_func_postload(set_m90_bank); |
| 1164 | 1165 | } |
| 1165 | 1166 | |
| 1166 | static DRIVER_INIT( riskchal ) | |
| 1167 | { | |
| 1168 | m90_game_kludge=1; | |
| 1169 | irem_cpu_decrypt(0,gussun_decryption_table); | |
| 1170 | } | |
| 1171 | 1167 | |
| 1172 | static DRIVER_INIT( gussun ) | |
| 1173 | { | |
| 1174 | m90_game_kludge=2; | |
| 1175 | irem_cpu_decrypt(0,gussun_decryption_table); | |
| 1176 | } | |
| 1177 | 1168 | |
| 1178 | static DRIVER_INIT( matchit2 ) | |
| 1179 | { | |
| 1180 | m90_game_kludge=0; | |
| 1181 | irem_cpu_decrypt(0,matchit2_decryption_table); | |
| 1182 | } | |
| 1183 | ||
| 1184 | 1169 | static DRIVER_INIT( bomblord ) |
| 1185 | 1170 | { |
| 1186 | 1171 | UINT8 *RAM = memory_region(REGION_CPU1); |
| 1187 | 1172 | |
| 1188 | 1173 | int i; |
| 1189 | m90_game_kludge=0; | |
| 1190 | 1174 | for (i=0; i<0x100000; i+=8) |
| 1191 | 1175 | { |
| 1192 | 1176 | RAM[i+0]=BITSWAP8(RAM[i+0], 6, 4, 7, 3, 1, 2, 0, 5); |
| r1711 | r1712 | |
| 1202 | 1186 | |
| 1203 | 1187 | |
| 1204 | 1188 | |
| 1205 | GAME( 1991, hasamu, 0, m90, hasamu, hasamu, ROT0, "Irem", "Hasamu (Japan)", GAME_NO_COCKTAIL ) | |
| 1206 | GAME( 1991, dynablst, 0, bombrman, dynablst, bombrman, ROT0, "Irem (licensed from Hudson Soft)", "Dynablaster / Bomber Man", GAME_NO_COCKTAIL ) | |
| 1207 | GAME( 1991, bombrman, dynablst, bombrman, bombrman, bombrman, ROT0, "Irem (licensed from Hudson Soft)", "Bomber Man (Japan)", GAME_NO_COCKTAIL ) | |
| 1208 | GAME( 1991, atompunk, dynablst, bombrman, atompunk, bombrman, ROT0, "Irem America (licensed from Hudson Soft)", "Atomic Punk (US)", GAME_NO_COCKTAIL ) | |
| 1189 | GAME( 1991, hasamu, 0, hasamu, hasamu, 0, ROT0, "Irem", "Hasamu (Japan)", GAME_NO_COCKTAIL ) | |
| 1190 | GAME( 1991, dynablst, 0, bombrman, dynablst, 0, ROT0, "Irem (licensed from Hudson Soft)", "Dynablaster / Bomber Man", GAME_NO_COCKTAIL ) | |
| 1191 | GAME( 1991, bombrman, dynablst, bombrman, bombrman, 0, ROT0, "Irem (licensed from Hudson Soft)", "Bomber Man (Japan)", GAME_NO_COCKTAIL ) | |
| 1192 | GAME( 1991, atompunk, dynablst, bombrman, atompunk, 0, ROT0, "Irem America (licensed from Hudson Soft)", "Atomic Punk (US)", GAME_NO_COCKTAIL ) | |
| 1209 | 1193 | GAME( 1991, dynablsb, dynablst, bootleg, bombrman, 0, ROT0, "bootleg", "Dynablaster (bootleg)", GAME_NOT_WORKING | GAME_NO_COCKTAIL ) |
| 1210 | GAME( 1992, bbmanw, 0, bbmanw, bbmanw, bbmanw, ROT0, "Irem", "Bomber Man World / New Dyna Blaster - Global Quest", GAME_IMPERFECT_SOUND | GAME_NO_COCKTAIL ) | |
| 1211 | GAME( 1992, bbmanwj, bbmanw, bombrman, bbmanwj, bbmanw, ROT0, "Irem", "Bomber Man World (Japan)", GAME_NO_COCKTAIL ) | |
| 1212 | GAME( 1992, newapunk, bbmanw, bbmanw, bbmanwj, bbmanw, ROT0, "Irem America", "New Atomic Punk - Global Quest (US)", GAME_IMPERFECT_SOUND | GAME_NO_COCKTAIL ) | |
| 1194 | GAME( 1992, bbmanw, 0, bbmanw, bbmanw, 0, ROT0, "Irem", "Bomber Man World / New Dyna Blaster - Global Quest", GAME_IMPERFECT_SOUND | GAME_NO_COCKTAIL ) | |
| 1195 | GAME( 1992, bbmanwj, bbmanw, bbmanw, bbmanwj, 0, ROT0, "Irem", "Bomber Man World (Japan)", GAME_NO_COCKTAIL ) | |
| 1196 | GAME( 1992, newapunk, bbmanw, bbmanw, bbmanwj, 0, ROT0, "Irem America", "New Atomic Punk - Global Quest (US)", GAME_IMPERFECT_SOUND | GAME_NO_COCKTAIL ) | |
| 1213 | 1197 | GAME( 1992, bomblord, bbmanw, bomblord, bbmanw, bomblord, ROT0, "bootleg", "Bomber Lord (bootleg)", GAME_IMPERFECT_SOUND | GAME_NO_COCKTAIL | GAME_NOT_WORKING ) |
| 1214 | 1198 | GAME( 1992, quizf1, 0, quizf1, quizf1, quizf1, ROT0, "Irem", "Quiz F-1 1,2finish", GAME_UNEMULATED_PROTECTION | GAME_IMPERFECT_GRAPHICS | GAME_NO_COCKTAIL ) |
| 1215 | GAME( 1993, riskchal, 0, m90, riskchal, riskchal, ROT0, "Irem", "Risky Challenge", GAME_NOT_WORKING | GAME_NO_COCKTAIL ) | |
| 1216 | GAME( 1993, gussun, riskchal, m90, riskchal, gussun, ROT0, "Irem", "Gussun Oyoyo (Japan)", GAME_NOT_WORKING | GAME_NO_COCKTAIL ) | |
| 1217 | GAME( 1993, matchit2, 0, quizf1, matchit2, matchit2, ROT0, "Tamtex", "Match It II", GAME_NO_COCKTAIL ) | |
| 1218 | GAME( 1993, shisen2, matchit2, quizf1, shisen2, matchit2, ROT0, "Tamtex", "Shisensho II", GAME_NO_COCKTAIL ) | |
| 1199 | GAME( 1993, riskchal, 0, riskchal, riskchal, 0, ROT0, "Irem", "Risky Challenge", GAME_IMPERFECT_GRAPHICS ) | |
| 1200 | GAME( 1993, gussun, riskchal, riskchal, riskchal, 0, ROT0, "Irem", "Gussun Oyoyo (Japan)", GAME_IMPERFECT_GRAPHICS ) | |
| 1201 | GAME( 1993, matchit2, 0, matchit2, matchit2, 0, ROT0, "Tamtex", "Match It II", GAME_NO_COCKTAIL ) | |
| 1202 | GAME( 1993, shisen2, matchit2, matchit2, shisen2, 0, ROT0, "Tamtex", "Shisensho II", GAME_NO_COCKTAIL ) |
| r1711 | r1712 | |
|---|---|---|
| 40 | 40 | int i; |
| 41 | 41 | |
| 42 | 42 | |
| 43 | for (i = 0;i < machine-> | |
| 43 | for (i = 0;i < machine->config->total_colors;i++) | |
| 44 | 44 | { |
| 45 | 45 | int r,g,b,brt; |
| 46 | 46 | |
| r1711 | r1712 | |
| 376 | 376 | MDRV_CPU_PROGRAM_MAP(tugboat_readmem,tugboat_writemem) |
| 377 | 377 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,1) |
| 378 | 378 | |
| 379 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 380 | ||
| 381 | 379 | MDRV_MACHINE_START(tugboat) |
| 382 | 380 | MDRV_MACHINE_RESET(tugboat) |
| 383 | 381 | |
| 384 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 382 | ||
| 383 | MDRV_SCREEN_ADD("main", RASTER) | |
| 384 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 385 | 385 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 386 | 386 | MDRV_SCREEN_SIZE(32*8,32*8) |
| 387 | 387 | MDRV_SCREEN_VISIBLE_AREA(1*8,31*8-1,2*8,30*8-1) |
| 388 | ||
| 388 | 389 | MDRV_GFXDECODE(tugboat) |
| 389 | 390 | MDRV_PALETTE_LENGTH(256) |
| 390 | 391 |
| r1711 | r1712 | |
|---|---|---|
| 381 | 381 | |
| 382 | 382 | TAITO_F3_SOUND_SYSTEM_CPU(16000000) |
| 383 | 383 | |
| 384 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 385 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 386 | ||
| 387 | 384 | MDRV_MACHINE_RESET(gunbustr) |
| 388 | 385 | MDRV_NVRAM_HANDLER(gunbustr) |
| 389 | 386 | |
| 390 | 387 | /* video hardware */ |
| 391 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 388 | MDRV_SCREEN_ADD("main", RASTER) | |
| 389 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 390 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 392 | 391 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 393 | 392 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 394 | 393 | MDRV_SCREEN_VISIBLE_AREA(0, 40*8-1, 2*8, 32*8-1) |
| 394 | ||
| 395 | 395 | MDRV_GFXDECODE(gunbustr) |
| 396 | 396 | MDRV_PALETTE_LENGTH(8192) |
| 397 | 397 |
| r1711 | r1712 | |
|---|---|---|
| 233 | 233 | MDRV_CPU_PROGRAM_MAP(scotrsht_sound_map,0) |
| 234 | 234 | MDRV_CPU_IO_MAP(scotrsht_sound_port,0) |
| 235 | 235 | |
| 236 | /* video hardware */ | |
| 237 | MDRV_SCREEN_ADD("main", RASTER) | |
| 236 | 238 | MDRV_SCREEN_REFRESH_RATE(60) |
| 237 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 238 | ||
| 239 | /* video hardware */ | |
| 240 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 239 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 241 | 240 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 242 | 241 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 243 | 242 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 243 | ||
| 244 | 244 | MDRV_GFXDECODE(scotrsht) |
| 245 | 245 | MDRV_PALETTE_LENGTH(16*8*16+16*8*16) |
| 246 | 246 |
| r1711 | r1712 | |
|---|---|---|
| 2847 | 2847 | |
| 2848 | 2848 | MDRV_MACHINE_START(taitoz) |
| 2849 | 2849 | |
| 2850 | /* video hardware */ | |
| 2851 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2850 | 2852 | MDRV_SCREEN_REFRESH_RATE(60) |
| 2851 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 2852 | ||
| 2853 | /* video hardware */ | |
| 2854 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2853 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2855 | 2854 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2856 | 2855 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 2857 | 2856 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 3*8, 31*8-1) |
| 2857 | ||
| 2858 | 2858 | MDRV_GFXDECODE(taitoz) |
| 2859 | 2859 | MDRV_PALETTE_LENGTH(4096) |
| 2860 | 2860 | |
| r1711 | r1712 | |
| 2892 | 2892 | |
| 2893 | 2893 | MDRV_MACHINE_START(taitoz) |
| 2894 | 2894 | |
| 2895 | /* video hardware */ | |
| 2896 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2895 | 2897 | MDRV_SCREEN_REFRESH_RATE(60) |
| 2896 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 2897 | ||
| 2898 | /* video hardware */ | |
| 2899 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2898 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2900 | 2899 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2901 | 2900 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 2902 | 2901 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 32*8-1) |
| 2902 | ||
| 2903 | 2903 | MDRV_GFXDECODE(chasehq) |
| 2904 | 2904 | MDRV_PALETTE_LENGTH(4096) |
| 2905 | 2905 | |
| r1711 | r1712 | |
| 2936 | 2936 | |
| 2937 | 2937 | MDRV_MACHINE_START(taitoz) |
| 2938 | 2938 | |
| 2939 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2940 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 2941 | 2939 | MDRV_INTERLEAVE(10) |
| 2942 | 2940 | |
| 2943 | 2941 | /* video hardware */ |
| 2944 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2942 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2943 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2944 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2945 | 2945 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2946 | 2946 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 2947 | 2947 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 31*8-1) |
| 2948 | ||
| 2948 | 2949 | MDRV_GFXDECODE(taitoz) |
| 2949 | 2950 | MDRV_PALETTE_LENGTH(4096) |
| 2950 | 2951 | |
| r1711 | r1712 | |
| 2978 | 2979 | |
| 2979 | 2980 | MDRV_MACHINE_START(taitoz) |
| 2980 | 2981 | |
| 2981 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2982 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 2983 | 2982 | MDRV_INTERLEAVE(100) |
| 2984 | 2983 | |
| 2985 | 2984 | /* video hardware */ |
| 2986 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2985 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2986 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2987 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2987 | 2988 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2988 | 2989 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 2989 | 2990 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 32*8-1) |
| 2991 | ||
| 2990 | 2992 | MDRV_GFXDECODE(taitoz) |
| 2991 | 2993 | MDRV_PALETTE_LENGTH(4096) |
| 2992 | 2994 | |
| r1711 | r1712 | |
| 3022 | 3024 | |
| 3023 | 3025 | MDRV_MACHINE_START(taitoz) |
| 3024 | 3026 | |
| 3025 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3026 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 3027 | 3027 | MDRV_INTERLEAVE(50) |
| 3028 | 3028 | |
| 3029 | 3029 | /* video hardware */ |
| 3030 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 3030 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3031 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3032 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 3031 | 3033 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3032 | 3034 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 3033 | 3035 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 32*8-1) |
| 3036 | ||
| 3034 | 3037 | MDRV_GFXDECODE(taitoz) |
| 3035 | 3038 | MDRV_PALETTE_LENGTH(4096) |
| 3036 | 3039 | |
| r1711 | r1712 | |
| 3066 | 3069 | |
| 3067 | 3070 | MDRV_MACHINE_START(taitoz) |
| 3068 | 3071 | |
| 3069 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3070 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 3071 | 3072 | MDRV_INTERLEAVE(100) |
| 3072 | 3073 | |
| 3073 | 3074 | /* video hardware */ |
| 3074 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 3075 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3076 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3077 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 3075 | 3078 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3076 | 3079 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 3077 | 3080 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 32*8-1) |
| 3081 | ||
| 3078 | 3082 | MDRV_GFXDECODE(chasehq) |
| 3079 | 3083 | MDRV_PALETTE_LENGTH(4096) |
| 3080 | 3084 | |
| r1711 | r1712 | |
| 3111 | 3115 | |
| 3112 | 3116 | MDRV_MACHINE_START(taitoz) |
| 3113 | 3117 | |
| 3114 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3115 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 3116 | 3118 | MDRV_INTERLEAVE(500) |
| 3117 | 3119 | |
| 3118 | 3120 | /* video hardware */ |
| 3119 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 3121 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3122 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3123 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 3120 | 3124 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3121 | 3125 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 3122 | 3126 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 32*8-1) |
| 3127 | ||
| 3123 | 3128 | MDRV_GFXDECODE(taitoz) |
| 3124 | 3129 | MDRV_PALETTE_LENGTH(4096) |
| 3125 | 3130 | |
| r1711 | r1712 | |
| 3151 | 3156 | |
| 3152 | 3157 | MDRV_MACHINE_START(taitoz) |
| 3153 | 3158 | |
| 3154 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3155 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 3156 | ||
| 3157 | 3159 | MDRV_NVRAM_HANDLER(spacegun) |
| 3158 | 3160 | |
| 3159 | 3161 | /* video hardware */ |
| 3160 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 3162 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3163 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3164 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 3161 | 3165 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3162 | 3166 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 3163 | 3167 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 32*8-1) |
| 3168 | ||
| 3164 | 3169 | MDRV_GFXDECODE(taitoz) |
| 3165 | 3170 | MDRV_PALETTE_LENGTH(4096) |
| 3166 | 3171 | |
| r1711 | r1712 | |
| 3196 | 3201 | |
| 3197 | 3202 | MDRV_MACHINE_START(taitoz) |
| 3198 | 3203 | |
| 3199 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3200 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 3201 | 3204 | MDRV_INTERLEAVE(10) |
| 3202 | 3205 | |
| 3203 | 3206 | /* video hardware */ |
| 3204 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 3207 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3208 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3209 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 3205 | 3210 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3206 | 3211 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 3207 | 3212 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 32*8-1) |
| 3213 | ||
| 3208 | 3214 | MDRV_GFXDECODE(dblaxle) |
| 3209 | 3215 | MDRV_PALETTE_LENGTH(4096) |
| 3210 | 3216 | |
| r1711 | r1712 | |
| 3239 | 3245 | MDRV_CPU_VBLANK_INT(dblaxle_cpub_interrupt,1) |
| 3240 | 3246 | |
| 3241 | 3247 | MDRV_MACHINE_START(taitoz) |
| 3242 | ||
| 3243 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3244 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 3245 | 3248 | MDRV_INTERLEAVE(100) |
| 3246 | 3249 | |
| 3247 | 3250 | /* video hardware */ |
| 3248 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 3251 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3252 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3253 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 3249 | 3254 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3250 | 3255 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 3251 | 3256 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 32*8-1) |
| 3257 | ||
| 3252 | 3258 | MDRV_GFXDECODE(dblaxle) |
| 3253 | 3259 | MDRV_PALETTE_LENGTH(4096) |
| 3254 | 3260 |
| r1711 | r1712 | |
|---|---|---|
| 423 | 423 | MDRV_CPU_ADD_TAG("main", 8085A, CPU_CLOCK) /* 2.75 MHz */ |
| 424 | 424 | MDRV_CPU_PROGRAM_MAP(phoenix_memory_map, 0) |
| 425 | 425 | |
| 426 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART) | |
| 427 | ||
| 428 | 426 | MDRV_MACHINE_RESET(phoenix) |
| 429 | 427 | |
| 430 | 428 | /* video hardware */ |
| 431 | MDRV_ | |
| 429 | MDRV_SC | |
| 432 | 430 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 431 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART) | |
| 432 | ||
| 433 | 433 | MDRV_GFXDECODE(phoenix) |
| 434 | 434 | MDRV_PALETTE_LENGTH(256) |
| 435 | 435 | |
| r1711 | r1712 | |
| 489 | 489 | MDRV_CPU_ADD_TAG("main", 8085A, CPU_CLOCK) /* 5.50 MHz */ |
| 490 | 490 | MDRV_CPU_PROGRAM_MAP(survival_memory_map, 0) |
| 491 | 491 | |
| 492 | MDRV_MACHINE_RESET(phoenix) | |
| 493 | ||
| 494 | /* video hardware */ | |
| 495 | ||
| 492 | 496 | /* schematics fairly identical to phoenix, however the interesting |
| 493 | 497 | * page is missing |
| 494 | 498 | */ |
| 499 | MDRV_SCREEN_ADD("main", RASTER) | |
| 500 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 495 | 501 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART) |
| 496 | 502 | |
| 497 | MDRV_MACHINE_RESET(phoenix) | |
| 498 | ||
| 499 | /* video hardware */ | |
| 500 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 501 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 502 | 503 | MDRV_GFXDECODE(phoenix) |
| 503 | 504 | MDRV_PALETTE_LENGTH(256) |
| 504 | 505 |
| r1711 | r1712 | |
|---|---|---|
| 468 | 468 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 469 | 469 | |
| 470 | 470 | /* video hardware */ |
| 471 | MDRV_VIDEO_ATTRIBUTES( VIDEO_TYPE_RASTER ) | |
| 471 | MDRV_PALETTE_LENGTH( 256 ) | |
| 472 | ||
| 473 | MDRV_SCREEN_ADD("main", RASTER) | |
| 472 | 474 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 473 | 475 | MDRV_SCREEN_SIZE( 512, 256 ) |
| 474 | 476 | MDRV_SCREEN_VISIBLE_AREA( 0, 512-1, 0, 256-16-1 ) |
| 475 | MDRV_PALETTE_LENGTH( 256 ) | |
| 476 | 477 | MDRV_SCREEN_REFRESH_RATE( 60 ) |
| 477 | 478 | |
| 478 | 479 | MDRV_VIDEO_START( lastfght ) |
| r1711 | r1712 | |
|---|---|---|
| 237 | 237 | MDRV_MACHINE_START(embargo) |
| 238 | 238 | |
| 239 | 239 | /* video hardware */ |
| 240 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 241 | 240 | MDRV_VIDEO_UPDATE(embargo) |
| 242 | 241 | |
| 243 | MDRV_SCREEN_ADD("main", | |
| 242 | MDRV_SCREEN_ADD("main", RASTER) | |
| 244 | 243 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 245 | 244 | MDRV_SCREEN_SIZE(256, 256) |
| 246 | 245 | MDRV_SCREEN_VISIBLE_AREA(0, 255, 0, 239) |
| r1711 | r1712 | |
|---|---|---|
| 206 | 206 | MDRV_CPU_PROGRAM_MAP(readmem2,writemem2) |
| 207 | 207 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 208 | 208 | |
| 209 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 210 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 211 | 209 | MDRV_INTERLEAVE(100) |
| 212 | 210 | |
| 213 | 211 | /* video hardware */ |
| 214 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 212 | MDRV_SCREEN_ADD("main", RASTER) | |
| 213 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 214 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 215 | 215 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 216 | 216 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 217 | 217 | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 2*8, 30*8-1) |
| 218 | ||
| 218 | 219 | MDRV_GFXDECODE(markham) |
| 219 | 220 | MDRV_PALETTE_LENGTH(1024) |
| 220 | 221 |
| r1711 | r1712 | |
|---|---|---|
| 542 | 542 | MDRV_CPU_PROGRAM_MAP(mcu_readmem,mcu_writemem) |
| 543 | 543 | #endif |
| 544 | 544 | |
| 545 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 546 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 547 | ||
| 548 | 545 | MDRV_MACHINE_RESET(ta7630) |
| 549 | 546 | |
| 550 | 547 | /* video hardware */ |
| 551 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 548 | MDRV_SCREEN_ADD("main", RASTER) | |
| 549 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 550 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 552 | 551 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 553 | 552 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 554 | 553 | MDRV_SCREEN_VISIBLE_AREA(0, 32*8-1, 1*8, 31*8-1) |
| 554 | ||
| 555 | 555 | MDRV_GFXDECODE(msisaac) |
| 556 | 556 | MDRV_PALETTE_LENGTH(1024) |
| 557 | 557 |
| r1711 | r1712 | |
|---|---|---|
| 932 | 932 | MDRV_CPU_IO_MAP(pbillian_port_map,0) |
| 933 | 933 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,1) |
| 934 | 934 | |
| 935 | /* video hardware */ | |
| 936 | MDRV_SCREEN_ADD("main", RASTER) | |
| 935 | 937 | MDRV_SCREEN_REFRESH_RATE(60) |
| 936 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 937 | ||
| 938 | /* video hardware */ | |
| 939 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 938 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 940 | 939 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 941 | 940 | MDRV_SCREEN_SIZE(256, 256) |
| 942 | 941 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 942 | ||
| 943 | 943 | MDRV_GFXDECODE(pbillian) |
| 944 | 944 | MDRV_PALETTE_LENGTH(512) |
| 945 | 945 | |
| r1711 | r1712 | |
| 966 | 966 | MDRV_CPU_ADD(M68705, 4000000) /* ???? */ |
| 967 | 967 | MDRV_CPU_PROGRAM_MAP(m68705_map,0) |
| 968 | 968 | |
| 969 | /* video hardware */ | |
| 970 | MDRV_SCREEN_ADD("main", RASTER) | |
| 969 | 971 | MDRV_SCREEN_REFRESH_RATE(60) |
| 970 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 971 | ||
| 972 | /* video hardware */ | |
| 973 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 972 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 974 | 973 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 975 | 974 | MDRV_SCREEN_SIZE(256, 256) |
| 976 | 975 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 976 | ||
| 977 | 977 | MDRV_GFXDECODE(pbillian) |
| 978 | 978 | MDRV_PALETTE_LENGTH(512) |
| 979 | 979 | |
| r1711 | r1712 | |
| 1003 | 1003 | MDRV_CPU_PROGRAM_MAP(mcu_map,0) |
| 1004 | 1004 | MDRV_CPU_IO_MAP(mcu_io_map,0) |
| 1005 | 1005 | |
| 1006 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1007 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 1008 | 1006 | MDRV_INTERLEAVE(500) |
| 1009 | 1007 | |
| 1010 | 1008 | /* video hardware */ |
| 1011 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1009 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1010 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1011 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 1012 | 1012 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1013 | 1013 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 1014 | 1014 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 1015 | ||
| 1015 | 1016 | MDRV_GFXDECODE(sqix) |
| 1016 | 1017 | MDRV_PALETTE_LENGTH(256) |
| 1017 | 1018 | |
| r1711 | r1712 | |
| 1039 | 1040 | MDRV_CPU_IO_MAP(bootleg_port_map,0) |
| 1040 | 1041 | MDRV_CPU_VBLANK_INT(bootleg_interrupt,6) /* ??? */ |
| 1041 | 1042 | |
| 1043 | /* video hardware */ | |
| 1044 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1042 | 1045 | MDRV_SCREEN_REFRESH_RATE(60) |
| 1043 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 1044 | ||
| 1045 | /* video hardware */ | |
| 1046 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1046 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 1047 | 1047 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1048 | 1048 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 1049 | 1049 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 1050 | ||
| 1050 | 1051 | MDRV_GFXDECODE(sqix) |
| 1051 | 1052 | MDRV_PALETTE_LENGTH(256) |
| 1052 | 1053 |
| r1711 | r1712 | |
|---|---|---|
| 261 | 261 | MDRV_CPU_ADD(Z80, 2000000) /* 2 MHz ? */ |
| 262 | 262 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 263 | 263 | |
| 264 | /* video hardware */ | |
| 265 | MDRV_SCREEN_ADD("main", RASTER) | |
| 266 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 264 | 267 | MDRV_SCREEN_REFRESH_RATE(60) |
| 265 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 266 | ||
| 267 | /* video hardware */ | |
| 268 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 268 | 269 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 269 | 270 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 28*8-1) |
| 271 | ||
| 270 | 272 | MDRV_GFXDECODE(dday) |
| 271 | 273 | MDRV_PALETTE_LENGTH(256) |
| 272 | 274 | MDRV_PALETTE_INIT(dday) |
| 273 | 275 | |
| 274 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS) | |
| 275 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 276 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 276 | 277 | MDRV_VIDEO_START(dday) |
| 277 | 278 | MDRV_VIDEO_UPDATE(dday) |
| 278 | 279 |
| r1711 | r1712 | |
|---|---|---|
| 743 | 743 | MDRV_MACHINE_RESET(pc10) |
| 744 | 744 | |
| 745 | 745 | // video hardware |
| 746 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 747 | 746 | MDRV_GFXDECODE(playch10) |
| 748 | 747 | MDRV_PALETTE_LENGTH(256+8*4*16) |
| 749 | 748 | MDRV_DEFAULT_LAYOUT(layout_dualhuov) |
| 750 | 749 | |
| 751 | MDRV_SCREEN_ADD("top", | |
| 750 | MDRV_SCREEN_ADD("top", RASTER) | |
| 752 | 751 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 753 | 752 | MDRV_SCREEN_REFRESH_RATE(60) |
| 754 | 753 | MDRV_SCREEN_SIZE(32*8, 262) |
| 755 | 754 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 30*8-1) |
| 756 | 755 | |
| 757 | MDRV_SCREEN_ADD("bottom", | |
| 756 | MDRV_SCREEN_ADD("bottom", RASTER) | |
| 758 | 757 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 759 | 758 | MDRV_SCREEN_REFRESH_RATE(60) |
| 760 | 759 | MDRV_SCREEN_SIZE(32*8, 262) |
| r1711 | r1712 | |
|---|---|---|
| 1008 | 1008 | MDRV_NVRAM_HANDLER(generic_1fill) |
| 1009 | 1009 | |
| 1010 | 1010 | /* video hardware */ |
| 1011 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 1011 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 1012 | 1012 | |
| 1013 | MDRV_SCREEN_ADD("main", | |
| 1013 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1014 | 1014 | MDRV_SCREEN_RAW_PARAMS(COJAG_PIXEL_CLOCK/2, 456, 42, 402, 262, 17, 257) |
| 1015 | 1015 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 1016 | 1016 | |
| r1711 | r1712 | |
| 1387 | 1387 | static void cojag_common_init(running_machine *machine, UINT16 gpu_jump_offs, UINT16 spin_pc) |
| 1388 | 1388 | { |
| 1389 | 1389 | /* copy over the ROM */ |
| 1390 | cojag_is_r3000 = (machine-> | |
| 1390 | cojag_is_r3000 = (machine->config->cpu[0].type == CPU_R3041BE); | |
| 1391 | 1391 | |
| 1392 | 1392 | /* install synchronization hooks for GPU */ |
| 1393 | 1393 | if (cojag_is_r3000) |
| r1711 | r1712 | |
|---|---|---|
| 466 | 466 | MDRV_NVRAM_HANDLER(atarigen) |
| 467 | 467 | |
| 468 | 468 | /* video hardware */ |
| 469 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 469 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 470 | 470 | MDRV_GFXDECODE(interleaved) |
| 471 | 471 | MDRV_PALETTE_LENGTH(4096) |
| 472 | 472 | |
| 473 | MDRV_SCREEN_ADD("left", | |
| 473 | MDRV_SCREEN_ADD("left", RASTER) | |
| 474 | 474 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 475 | 475 | /* note: these parameters are from published specs, not derived */ |
| 476 | 476 | /* the board uses an SOS-2 chip to generate video signals */ |
| 477 | 477 | MDRV_SCREEN_RAW_PARAMS(ATARI_CLOCK_14MHz, 456*2, 0, 336*2, 262, 0, 240) |
| 478 | 478 | |
| 479 | MDRV_SCREEN_ADD("right", | |
| 479 | MDRV_SCREEN_ADD("right", RASTER) | |
| 480 | 480 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 481 | 481 | /* note: these parameters are from published specs, not derived */ |
| 482 | 482 | /* the board uses an SOS-2 chip to generate video signals */ |
| r1711 | r1712 | |
| 512 | 512 | MDRV_NVRAM_HANDLER(atarigen) |
| 513 | 513 | |
| 514 | 514 | /* video hardware */ |
| 515 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 515 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 516 | 516 | MDRV_GFXDECODE(cyberbal) |
| 517 | 517 | MDRV_PALETTE_LENGTH(2048) |
| 518 | 518 | |
| 519 | MDRV_SCREEN_ADD("main", | |
| 519 | MDRV_SCREEN_ADD("main", RASTER) | |
| 520 | 520 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 521 | 521 | /* note: these parameters are from published specs, not derived */ |
| 522 | 522 | /* the board uses an SOS-2 chip to generate video signals */ |
| r1711 | r1712 | |
|---|---|---|
| 489 | 489 | MDRV_WATCHDOG_TIME_INIT(attotime_mul(PERIOD_OF_555_ASTABLE(10000, 4700, 10000e-12), 4096)) |
| 490 | 490 | MDRV_INTERLEAVE(10) |
| 491 | 491 | |
| 492 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_AFTER_VBLANK) | |
| 492 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_AFTER_VBLANK) | |
| 493 | ||
| 494 | MDRV_SCREEN_ADD("main", RASTER) | |
| 493 | 495 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 494 | 496 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART) |
| 495 | 497 |
| r1711 | r1712 | |
|---|---|---|
| 1585 | 1585 | MDRV_MACHINE_RESET(superpac) |
| 1586 | 1586 | |
| 1587 | 1587 | /* video hardware */ |
| 1588 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1589 | 1588 | MDRV_GFXDECODE(superpac) |
| 1590 | 1589 | MDRV_PALETTE_LENGTH(64*4+64*4) |
| 1591 | 1590 | |
| 1592 | MDRV_SCREEN_ADD("main", | |
| 1591 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1593 | 1592 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1594 | 1593 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART) |
| 1595 | 1594 | |
| r1711 | r1712 | |
| 1637 | 1636 | MDRV_MACHINE_RESET(phozon) |
| 1638 | 1637 | |
| 1639 | 1638 | /* video hardware */ |
| 1640 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1641 | 1639 | MDRV_GFXDECODE(phozon) |
| 1642 | 1640 | MDRV_PALETTE_LENGTH(64*4+64*4) |
| 1643 | 1641 | |
| 1644 | MDRV_SCREEN_ADD("main", | |
| 1642 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1645 | 1643 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1646 | 1644 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART) |
| 1647 | 1645 | |
| r1711 | r1712 | |
| 1675 | 1673 | MDRV_MACHINE_RESET(mappy) |
| 1676 | 1674 | |
| 1677 | 1675 | /* video hardware */ |
| 1678 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1679 | 1676 | MDRV_GFXDECODE(mappy) |
| 1680 | 1677 | MDRV_PALETTE_LENGTH(64*4+16*16) |
| 1681 | 1678 | |
| 1682 | MDRV_SCREEN_ADD("main", | |
| 1679 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1683 | 1680 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1684 | 1681 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART) |
| 1685 | 1682 |
| r1711 | r1712 | |
|---|---|---|
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | |
| 89 | ||
| 89 | 90 | /************************************* |
| 90 | 91 | * |
| 91 | 92 | * Video system |
| r1711 | r1712 | |
| 114 | 115 | { |
| 115 | 116 | int i; |
| 116 | 117 | |
| 117 | for (i = 0; i < machine-> | |
| 118 | for (i = 0; i < machine->config->total_colors / 2; i++) | |
| 118 | 119 | { |
| 119 | palette_set_color_rgb(machine, i, pal1bit(i >> 2), pal1bit(i >> 1), pal1bit(i >> 0)); | |
| 120 | ||
| 121 | colortable[(i * 2) + 0] = 0; | |
| 122 | colortable[(i * 2) + 1] = i; | |
| 120 | palette_set_color(machine, (i * 2) + 0, RGB_BLACK); | |
| 121 | palette_set_color(machine, (i * 2) + 1, MAKE_RGB(pal1bit(i >> 2), pal1bit(i >> 1), pal1bit(i >> 0))); | |
| 123 | 122 | } |
| 124 | 123 | } |
| 125 | 124 | |
| r1711 | r1712 | |
| 269 | 268 | MDRV_MACHINE_START(safarir) |
| 270 | 269 | |
| 271 | 270 | /* video hardware */ |
| 272 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 273 | 271 | MDRV_VIDEO_START(safarir) |
| 274 | 272 | MDRV_VIDEO_UPDATE(safarir) |
| 275 | MDRV_PALETTE_LENGTH(8) | |
| 276 | 273 | MDRV_PALETTE_INIT(safarir) |
| 277 | MDRV_ | |
| 274 | MDRV_P | |
| 278 | 275 | MDRV_GFXDECODE(safarir) |
| 279 | 276 | |
| 280 | MDRV_SCREEN_ADD("main", | |
| 277 | MDRV_SCREEN_ADD("main", RASTER) | |
| 281 | 278 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 282 | 279 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 283 | 280 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 26*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 388 | 388 | MDRV_CPU_ADD(Z80, 4000000) /* 4 MHz */ |
| 389 | 389 | MDRV_CPU_PROGRAM_MAP(rastan_s_map,0) |
| 390 | 390 | |
| 391 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 392 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 393 | 391 | MDRV_INTERLEAVE(10) /* 10 CPU slices per frame - enough for the sound CPU to read all commands */ |
| 394 | 392 | |
| 395 | 393 | /* video hardware */ |
| 396 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 394 | MDRV_SCREEN_ADD("main", RASTER) | |
| 395 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 396 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 397 | 397 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 398 | 398 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 399 | 399 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 400 | ||
| 400 | 401 | MDRV_GFXDECODE(rastan) |
| 401 | 402 | MDRV_PALETTE_LENGTH(8192) |
| 402 | 403 |
| r1711 | r1712 | |
|---|---|---|
| 457 | 457 | MDRV_CPU_PROGRAM_MAP(pntnpuzl_map,0) |
| 458 | 458 | MDRV_CPU_VBLANK_INT(pntnpuzl_irq,1) // irq1 = coin irq2 = service irq4 = coin |
| 459 | 459 | |
| 460 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 461 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 462 | ||
| 463 | 460 | MDRV_NVRAM_HANDLER(pntnpuzl) |
| 464 | 461 | |
| 465 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 462 | ||
| 463 | MDRV_SCREEN_ADD("main", RASTER) | |
| 464 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 465 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 466 | 466 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 467 | 467 | MDRV_SCREEN_SIZE(64*8, 64*8) |
| 468 | 468 | MDRV_SCREEN_VISIBLE_AREA(0*8, 50*8-1, 0*8, 30*8-1) |
| 469 | ||
| 469 | 470 | MDRV_PALETTE_LENGTH(256) |
| 470 | 471 | |
| 471 | 472 | MDRV_VIDEO_START(pntnpuzl) |
| r1711 | r1712 | |
|---|---|---|
| 350 | 350 | /* audio CPU */ /* Amuse & confirmed. z80e */ |
| 351 | 351 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 352 | 352 | |
| 353 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 354 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 355 | ||
| 356 | 353 | MDRV_MACHINE_START(gijoe) |
| 357 | 354 | MDRV_NVRAM_HANDLER(gijoe) |
| 358 | 355 | |
| 359 | 356 | /* video hardware */ |
| 360 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 357 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 358 | ||
| 359 | MDRV_SCREEN_ADD("main", RASTER) | |
| 360 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 361 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 361 | 362 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 362 | 363 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 363 | 364 | MDRV_SCREEN_VISIBLE_AREA(24, 24+288-1, 16, 16+224-1) |
| 365 | ||
| 364 | 366 | MDRV_PALETTE_LENGTH(2048) |
| 365 | 367 | |
| 366 | 368 | MDRV_VIDEO_START(gijoe) |
| r1711 | r1712 | |
|---|---|---|
| 187 | 187 | MDRV_CPU_ADD(Z80, 1400000) |
| 188 | 188 | MDRV_CPU_PROGRAM_MAP(z80_map, 0) |
| 189 | 189 | |
| 190 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 191 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 192 | 190 | MDRV_INTERLEAVE(1) |
| 193 | 191 | |
| 194 | 192 | MDRV_MACHINE_RESET( uapce ) |
| 195 | 193 | |
| 196 | 194 | /* video hardware */ |
| 197 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 195 | ||
| 196 | MDRV_SCREEN_ADD("main", RASTER) | |
| 198 | 197 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 199 | MDRV_SCREEN_ADD("main",0) | |
| 200 | 198 | MDRV_SCREEN_RAW_PARAMS(PCE_MAIN_CLOCK/2, VDC_WPF, 70, 70 + 512 + 32, VDC_LPF, 14, 14+242) |
| 199 | ||
| 201 | 200 | /* MDRV_GFXDECODE( pce_gfxdecodeinfo ) */ |
| 202 | 201 | MDRV_PALETTE_LENGTH(1024) |
| 203 | 202 | MDRV_PALETTE_INIT( vce ) |
| 204 | MDRV_COLORTABLE_LENGTH(1024) | |
| 205 | 203 | |
| 206 | 204 | MDRV_VIDEO_START( pce ) |
| 207 | 205 | MDRV_VIDEO_UPDATE( pce ) |
| r1711 | r1712 | |
|---|---|---|
| 556 | 556 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 557 | 557 | MDRV_CPU_IO_MAP(0,sound_writeport) |
| 558 | 558 | /* IRQs are triggered by the YM2203 */ |
| 559 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 560 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 561 | 559 | |
| 562 | 560 | /* video hardware */ |
| 563 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 561 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 562 | ||
| 563 | MDRV_SCREEN_ADD("main", RASTER) | |
| 564 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 565 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 564 | 566 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 565 | 567 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 566 | 568 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 569 | ||
| 567 | 570 | MDRV_GFXDECODE(tigeroad) |
| 568 | 571 | MDRV_PALETTE_LENGTH(576) |
| 569 | 572 |
| r1711 | r1712 | |
|---|---|---|
| 522 | 522 | MDRV_CPU_PROGRAM_MAP(i8039_readmem,i8039_writemem) |
| 523 | 523 | MDRV_CPU_IO_MAP(i8039_readport,i8039_writeport) |
| 524 | 524 | |
| 525 | /* video hardware */ | |
| 526 | MDRV_SCREEN_ADD("main", RASTER) | |
| 525 | 527 | MDRV_SCREEN_REFRESH_RATE(60) |
| 526 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 527 | ||
| 528 | /* video hardware */ | |
| 529 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 528 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 530 | 529 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 531 | 530 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 532 | 531 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 532 | ||
| 533 | 533 | MDRV_GFXDECODE(wilytowr) |
| 534 | 534 | MDRV_PALETTE_LENGTH(256+4) |
| 535 | 535 | |
| r1711 | r1712 | |
| 559 | 559 | MDRV_CPU_PROGRAM_MAP(i8039_readmem,i8039_writemem) |
| 560 | 560 | MDRV_CPU_IO_MAP(i8039_readport,i8039_writeport) |
| 561 | 561 | |
| 562 | /* video hardware */ | |
| 563 | MDRV_SCREEN_ADD("main", RASTER) | |
| 562 | 564 | MDRV_SCREEN_REFRESH_RATE(60) |
| 563 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 564 | ||
| 565 | /* video hardware */ | |
| 566 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 565 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 567 | 566 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 568 | 567 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 569 | 568 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 569 | ||
| 570 | 570 | MDRV_GFXDECODE(fghtbskt) |
| 571 | 571 | MDRV_PALETTE_LENGTH(256) |
| 572 | 572 |
| r1711 | r1712 | |
|---|---|---|
| 244 | 244 | for (i = 0; i < 8; i++) |
| 245 | 245 | { |
| 246 | 246 | if (x >= 0 && y < tmpbitmap->width) |
| 247 | *BITMAP_ADDR16(tmpbitmap, y, x) = (data&1)? | |
| 247 | *BITMAP_ADDR16(tmpbitmap, y, x) = (data&1)? | |
| 248 | 248 | x++; |
| 249 | 249 | data >>= 1; |
| 250 | 250 | } |
| r1711 | r1712 | |
| 310 | 310 | for (i = 0; i < 8; i++) |
| 311 | 311 | { |
| 312 | 312 | if (x >= 0 && x < tmpbitmap->width) |
| 313 | *BITMAP_ADDR16(tmpbitmap, y, x) = (data&1)? | |
| 313 | *BITMAP_ADDR16(tmpbitmap, y, x) = (data&1)? | |
| 314 | 314 | x++; |
| 315 | 315 | data >>= 1; |
| 316 | 316 | } |
| r1711 | r1712 | |
| 416 | 416 | MDRV_CPU_PROGRAM_MAP(readwritemem,0) |
| 417 | 417 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,1) /* 60 Hz NMIs (verified) */ |
| 418 | 418 | |
| 419 | /* video hardware */ | |
| 420 | MDRV_SCREEN_ADD("main", RASTER) | |
| 419 | 421 | MDRV_SCREEN_REFRESH_RATE(60) |
| 420 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 421 | ||
| 422 | /* video hardware */ | |
| 423 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 422 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 424 | 423 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 425 | 424 | MDRV_SCREEN_SIZE(256, 256) |
| 426 | 425 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0, 256-1-3*8) |
| 426 | ||
| 427 | 427 | MDRV_PALETTE_LENGTH(16+128-16) |
| 428 | 428 | MDRV_PALETTE_INIT( spaceg ) |
| 429 | 429 | MDRV_VIDEO_START(generic_bitmapped) |
| r1711 | r1712 | |
|---|---|---|
| 594 | 594 | MDRV_MACHINE_START(looping) |
| 595 | 595 | |
| 596 | 596 | /* video hardware */ |
| 597 | MDRV_ | |
| 597 | MDRV_SC | |
| 598 | 598 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 599 | 599 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART) |
| 600 | ||
| 600 | 601 | MDRV_GFXDECODE(looping) |
| 601 | 602 | MDRV_PALETTE_LENGTH(32) |
| 602 | 603 |
| r1711 | r1712 | |
|---|---|---|
| 2202 | 2202 | MDRV_NVRAM_HANDLER(system32) |
| 2203 | 2203 | |
| 2204 | 2204 | /* video hardware */ |
| 2205 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 2206 | 2205 | MDRV_GFXDECODE(segas32) |
| 2207 | 2206 | MDRV_PALETTE_LENGTH(0x4000) |
| 2208 | 2207 | |
| 2209 | MDRV_SCREEN_ADD("main", | |
| 2208 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2210 | 2209 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 2211 | 2210 | MDRV_SCREEN_REFRESH_RATE(60) |
| 2212 | 2211 | MDRV_SCREEN_SIZE(52*8, 262) |
| r1711 | r1712 | |
| 2257 | 2256 | MDRV_NVRAM_HANDLER(system32) |
| 2258 | 2257 | |
| 2259 | 2258 | /* video hardware */ |
| 2260 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 2261 | 2259 | MDRV_GFXDECODE(segas32) |
| 2262 | 2260 | MDRV_PALETTE_LENGTH(0x8000) |
| 2263 | 2261 | MDRV_DEFAULT_LAYOUT(layout_dualhsxs) |
| 2264 | 2262 | |
| 2265 | MDRV_SCREEN_ADD("left", | |
| 2263 | MDRV_SCREEN_ADD("left", RASTER) | |
| 2266 | 2264 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 2267 | 2265 | MDRV_SCREEN_REFRESH_RATE(60) |
| 2268 | 2266 | MDRV_SCREEN_SIZE(52*8, 262) |
| 2269 | 2267 | MDRV_SCREEN_VISIBLE_AREA(0*8, 52*8-1, 0*8, 28*8-1) |
| 2270 | 2268 | |
| 2271 | MDRV_SCREEN_ADD("right", | |
| 2269 | MDRV_SCREEN_ADD("right", RASTER) | |
| 2272 | 2270 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 2273 | 2271 | MDRV_SCREEN_REFRESH_RATE(60) |
| 2274 | 2272 | MDRV_SCREEN_SIZE(52*8, 262) |
| r1711 | r1712 | |
|---|---|---|
| 260 | 260 | MDRV_CPU_PROGRAM_MAP(k3_readmem,k3_writemem) |
| 261 | 261 | MDRV_CPU_VBLANK_INT(irq4_line_hold,1) |
| 262 | 262 | |
| 263 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 264 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 265 | ||
| 266 | 263 | MDRV_GFXDECODE(1945kiii) |
| 267 | 264 | |
| 268 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 265 | ||
| 266 | MDRV_SCREEN_ADD("main", RASTER) | |
| 267 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 268 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 269 | 269 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 270 | 270 | MDRV_SCREEN_SIZE(64*8, 64*8) |
| 271 | 271 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 28*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 449 | 449 | MDRV_NVRAM_HANDLER(atarigen) |
| 450 | 450 | |
| 451 | 451 | /* video hardware */ |
| 452 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 452 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 453 | 453 | MDRV_GFXDECODE(badlands) |
| 454 | 454 | MDRV_PALETTE_LENGTH(256) |
| 455 | 455 | |
| 456 | MDRV_SCREEN_ADD("main", | |
| 456 | MDRV_SCREEN_ADD("main", RASTER) | |
| 457 | 457 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 458 | 458 | /* note: these parameters are from published specs, not derived */ |
| 459 | 459 | /* the board uses an SOS-2 chip to generate video signals */ |
| r1711 | r1712 | |
|---|---|---|
| 848 | 848 | MDRV_CPU_PROGRAM_MAP(perfrman_sound_readmem,perfrman_sound_writemem) |
| 849 | 849 | MDRV_CPU_VBLANK_INT(getstar_interrupt,4) /* music speed, verified */ |
| 850 | 850 | |
| 851 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 852 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 853 | 851 | MDRV_INTERLEAVE(10) /* 10 CPU slices per frame - enough for the sound CPU to read all commands */ |
| 854 | 852 | |
| 855 | 853 | MDRV_MACHINE_RESET(slapfight) |
| 856 | 854 | |
| 857 | 855 | /* video hardware */ |
| 858 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 856 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 857 | ||
| 858 | MDRV_SCREEN_ADD("main", RASTER) | |
| 859 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 860 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 859 | 861 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 860 | 862 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 861 | 863 | MDRV_SCREEN_VISIBLE_AREA(1*8, 34*8-1, 2*8, 32*8-1) |
| 864 | ||
| 862 | 865 | MDRV_GFXDECODE(perfrman) |
| 863 | 866 | MDRV_PALETTE_LENGTH(256) |
| 864 | 867 | |
| r1711 | r1712 | |
| 892 | 895 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 893 | 896 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,6) /* ??? */ |
| 894 | 897 | |
| 895 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 896 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 897 | 898 | MDRV_INTERLEAVE(10) /* 10 CPU slices per frame - enough for the sound CPU to read all commands */ |
| 898 | 899 | |
| 899 | 900 | MDRV_MACHINE_RESET(slapfight) |
| 900 | 901 | |
| 901 | 902 | /* video hardware */ |
| 902 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 903 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 904 | ||
| 905 | MDRV_SCREEN_ADD("main", RASTER) | |
| 906 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 907 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 903 | 908 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 904 | 909 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 905 | 910 | MDRV_SCREEN_VISIBLE_AREA(1*8, 36*8-1, 2*8, 32*8-1) |
| 911 | ||
| 906 | 912 | MDRV_GFXDECODE(slapfght) |
| 907 | 913 | MDRV_PALETTE_LENGTH(256) |
| 908 | 914 | |
| r1711 | r1712 | |
| 938 | 944 | MDRV_CPU_ADD(M68705,XTAL_36MHz/12) /* verified on pcb */ |
| 939 | 945 | MDRV_CPU_PROGRAM_MAP(m68705_readmem,m68705_writemem) |
| 940 | 946 | |
| 941 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 942 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 943 | 947 | MDRV_INTERLEAVE(10) /* 10 CPU slices per frame - enough for the sound CPU to read all commands */ |
| 944 | 948 | |
| 945 | 949 | MDRV_MACHINE_RESET(slapfight) |
| 946 | 950 | |
| 947 | 951 | /* video hardware */ |
| 948 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 952 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 953 | ||
| 954 | MDRV_SCREEN_ADD("main", RASTER) | |
| 955 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 956 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 949 | 957 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 950 | 958 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 951 | 959 | MDRV_SCREEN_VISIBLE_AREA(1*8, 36*8-1, 2*8, 32*8-1) |
| 960 | ||
| 952 | 961 | MDRV_GFXDECODE(slapfght) |
| 953 | 962 | MDRV_PALETTE_LENGTH(256) |
| 954 | 963 | |
| r1711 | r1712 | |
| 981 | 990 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 982 | 991 | MDRV_CPU_VBLANK_INT(getstar_interrupt, 3) |
| 983 | 992 | |
| 984 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 985 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 986 | 993 | MDRV_INTERLEAVE(10) /* 10 CPU slices per frame - enough for the sound CPU to read all commands */ |
| 987 | 994 | |
| 988 | 995 | MDRV_MACHINE_RESET(slapfight) |
| 989 | 996 | |
| 990 | 997 | /* video hardware */ |
| 991 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 998 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 999 | ||
| 1000 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1001 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1002 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 992 | 1003 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 993 | 1004 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 994 | 1005 | MDRV_SCREEN_VISIBLE_AREA(1*8, 36*8-1, 2*8, 32*8-1) |
| 1006 | ||
| 995 | 1007 | MDRV_GFXDECODE(slapfght) |
| 996 | 1008 | MDRV_PALETTE_LENGTH(256) |
| 997 | 1009 |
| r1711 | r1712 | |
|---|---|---|
| 505 | 505 | MDRV_MACHINE_START(kamikaze) |
| 506 | 506 | |
| 507 | 507 | /* video hardware */ |
| 508 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 509 | 508 | MDRV_VIDEO_UPDATE(astinvad) |
| 510 | 509 | |
| 511 | MDRV_SCREEN_ADD("main", | |
| 510 | MDRV_SCREEN_ADD("main", RASTER) | |
| 512 | 511 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 513 | 512 | MDRV_SCREEN_RAW_PARAMS(VIDEO_CLOCK, 320, 0, 256, 256, 32, 256) |
| 514 | 513 | |
| r1711 | r1712 | |
| 539 | 538 | MDRV_CPU_VBLANK_INT(spaceint_interrupt,1) |
| 540 | 539 | |
| 541 | 540 | /* video hardware */ |
| 542 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 543 | 541 | MDRV_VIDEO_START(spaceint) |
| 544 | 542 | MDRV_VIDEO_UPDATE(spaceint) |
| 545 | 543 | |
| 546 | MDRV_SCREEN_ADD("main", | |
| 544 | MDRV_SCREEN_ADD("main", RASTER) | |
| 547 | 545 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 548 | 546 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 549 | 547 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 600 | 600 | MDRV_CPU_PROGRAM_MAP(ps3v1_readmem,ps3v1_writemem) |
| 601 | 601 | MDRV_CPU_VBLANK_INT(psikyosh_interrupt,1) |
| 602 | 602 | |
| 603 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 604 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 605 | ||
| 606 | 603 | MDRV_NVRAM_HANDLER(93C56) |
| 607 | 604 | |
| 608 | 605 | /* video hardware */ |
| 609 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM ) /* If using alpha */ | |
| 606 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM ) /* If using alpha */ | |
| 607 | ||
| 608 | MDRV_SCREEN_ADD("main", RASTER) | |
| 609 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 610 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 610 | 611 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 611 | 612 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 612 | 613 | MDRV_SCREEN_VISIBLE_AREA(0, 40*8-1, 0, 28*8-1) |
| 614 | ||
| 613 | 615 | MDRV_GFXDECODE(psikyosh) |
| 614 | 616 | MDRV_PALETTE_LENGTH(0x5000/4) |
| 615 | 617 | |
| r1711 | r1712 | |
| 643 | 645 | MDRV_CPU_PROGRAM_MAP(ps5_readmem,ps5_writemem) |
| 644 | 646 | |
| 645 | 647 | /* It probably has a register to change visarea */ |
| 648 | MDRV_SCREEN_MODIFY("main") | |
| 646 | 649 | MDRV_SCREEN_VISIBLE_AREA(0, 40*8-1, 0, 30*8-1) |
| 647 | 650 | MACHINE_DRIVER_END |
| 648 | 651 | #endif |
| r1711 | r1712 | |
|---|---|---|
| 310 | 310 | MDRV_CPU_ADD(H6280,32220000/4) |
| 311 | 311 | MDRV_CPU_PROGRAM_MAP(sound_readmem, sound_writemem) |
| 312 | 312 | |
| 313 | /* video hardware */ | |
| 314 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM ) | |
| 315 | ||
| 316 | MDRV_SCREEN_ADD("main", RASTER) | |
| 313 | 317 | MDRV_SCREEN_REFRESH_RATE(58) |
| 314 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 315 | ||
| 316 | /* video hardware */ | |
| 317 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM ) | |
| 318 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 318 | 319 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 319 | 320 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 320 | 321 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 458 | 458 | MDRV_CPU_IO_MAP(quizdna_readport,quizdna_writeport) |
| 459 | 459 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 460 | 460 | |
| 461 | /* video hardware */ | |
| 462 | MDRV_SCREEN_ADD("main", RASTER) | |
| 461 | 463 | MDRV_SCREEN_REFRESH_RATE(60) |
| 462 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 463 | ||
| 464 | /* video hardware */ | |
| 465 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 464 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 466 | 465 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 467 | 466 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 468 | 467 | MDRV_SCREEN_VISIBLE_AREA(8*8, 56*8-1, 2*8, 30*8-1) |
| 468 | ||
| 469 | 469 | MDRV_GFXDECODE(quizdna) |
| 470 | 470 | MDRV_PALETTE_LENGTH(2048) |
| 471 | 471 |
| r1711 | r1712 | |
|---|---|---|
| 418 | 418 | MDRV_MACHINE_RESET(supertnk) |
| 419 | 419 | |
| 420 | 420 | /* video hardware */ |
| 421 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 422 | 421 | MDRV_VIDEO_START(supertnk) |
| 423 | 422 | MDRV_VIDEO_UPDATE(supertnk) |
| 424 | 423 | |
| 425 | MDRV_SCREEN_ADD("main", | |
| 424 | MDRV_SCREEN_ADD("main", RASTER) | |
| 426 | 425 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 427 | 426 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 428 | 427 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 32*8-1) |
| 429 | 428 | MDRV_SCREEN_REFRESH_RATE(60) |
| 430 | MDRV_SCREEN_VBLANK_TIME( | |
| 429 | MDRV_SCREEN_VBLANK_TIME( | |
| 431 | 430 | |
| 432 | 431 | /* audio hardware */ |
| 433 | 432 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| r1711 | r1712 | |
|---|---|---|
| 602 | 602 | MDRV_CPU_PROGRAM_MAP(darkhors_readmem,darkhors_writemem) |
| 603 | 603 | MDRV_CPU_VBLANK_INT(darkhors,3) |
| 604 | 604 | |
| 605 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 606 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 607 | ||
| 608 | 605 | MDRV_NVRAM_HANDLER(darkhors) |
| 609 | 606 | |
| 610 | 607 | /* video hardware */ |
| 611 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 608 | MDRV_SCREEN_ADD("main", RASTER) | |
| 609 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 610 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 612 | 611 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 613 | 612 | MDRV_SCREEN_SIZE(0x190, 0x100) |
| 614 | 613 | MDRV_SCREEN_VISIBLE_AREA(0, 0x190-1, 8, 0x100-8-1) |
| 614 | ||
| 615 | 615 | MDRV_GFXDECODE(darkhors) |
| 616 | 616 | MDRV_PALETTE_LENGTH(0x10000) |
| 617 | 617 |
| r1711 | r1712 | |
|---|---|---|
| 447 | 447 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 448 | 448 | |
| 449 | 449 | /* video hardware */ |
| 450 | MDRV_ | |
| 450 | MDRV_SCREEN_ADD | |
| 451 | 451 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 452 | 452 | MDRV_SCREEN_SIZE( 512, 256 ) |
| 453 | 453 | MDRV_SCREEN_VISIBLE_AREA( 0, 512-1, 0, 256-16-1 ) |
| 454 | MDRV_SCREEN_REFRESH_RATE( 60 ) | |
| 455 | ||
| 454 | 456 | MDRV_GFXDECODE(bishjan) |
| 455 | 457 | MDRV_PALETTE_LENGTH( 256 ) |
| 456 | MDRV_SCREEN_REFRESH_RATE( 60 ) | |
| 457 | 458 | |
| 458 | 459 | MDRV_VIDEO_START( bishjan ) |
| 459 | 460 | MDRV_VIDEO_UPDATE( bishjan ) |
| r1711 | r1712 | |
|---|---|---|
| 397 | 397 | MDRV_NVRAM_HANDLER(atarigen) |
| 398 | 398 | |
| 399 | 399 | /* video hardware */ |
| 400 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 400 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 401 | 401 | MDRV_GFXDECODE(offtwall) |
| 402 | 402 | MDRV_PALETTE_LENGTH(2048) |
| 403 | 403 | |
| 404 | MDRV_SCREEN_ADD("main", | |
| 404 | MDRV_SCREEN_ADD("main", RASTER) | |
| 405 | 405 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 406 | 406 | /* note: these parameters are from published specs, not derived */ |
| 407 | 407 | /* the board uses a VAD chip to generate video signals */ |
| r1711 | r1712 | |
|---|---|---|
| 292 | 292 | MDRV_CPU_PROGRAM_MAP(main_map,0) |
| 293 | 293 | MDRV_CPU_VBLANK_INT(amiga_scanline_callback, 262) |
| 294 | 294 | |
| 295 | MDRV_SCREEN_REFRESH_RATE(59.997) | |
| 296 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 297 | ||
| 298 | 295 | MDRV_MACHINE_RESET(amiga) |
| 299 | 296 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 300 | 297 | |
| 301 | 298 | /* video hardware */ |
| 302 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 299 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 300 | ||
| 301 | MDRV_SCREEN_ADD("main", RASTER) | |
| 302 | MDRV_SCREEN_REFRESH_RATE(59.997) | |
| 303 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 303 | 304 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 304 | 305 | MDRV_SCREEN_SIZE(512*2, 262) |
| 305 | 306 | MDRV_SCREEN_VISIBLE_AREA((129-8)*2, (449+8-1)*2, 44-8, 244+8-1) |
| 307 | ||
| 306 | 308 | MDRV_PALETTE_LENGTH(4096) |
| 307 | 309 | MDRV_PALETTE_INIT(amiga) |
| 308 | 310 |
| r1711 | r1712 | |
|---|---|---|
| 668 | 668 | MDRV_CPU_PROGRAM_MAP(equites_map,0) |
| 669 | 669 | MDRV_CPU_VBLANK_INT(equites_interrupt, 2) |
| 670 | 670 | |
| 671 | /* video hardware */ | |
| 672 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_AFTER_VBLANK) | |
| 673 | ||
| 674 | MDRV_SCREEN_ADD("main", RASTER) | |
| 671 | 675 | MDRV_SCREEN_REFRESH_RATE(60) |
| 672 | 676 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(600)) |
| 673 | ||
| 674 | /* video hardware */ | |
| 675 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_AFTER_VBLANK) | |
| 676 | 677 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 677 | 678 | MDRV_SCREEN_SIZE(256 +BMPAD*2, 256 +BMPAD*2) |
| 678 | 679 | MDRV_SCREEN_VISIBLE_AREA(0 +BMPAD, 256-1 +BMPAD, 24 +BMPAD, 232-1 +BMPAD) |
| 680 | ||
| 679 | 681 | MDRV_PALETTE_LENGTH(384) |
| 680 | 682 | MDRV_GFXDECODE(equites) |
| 681 | 683 | |
| r1711 | r1712 | |
| 695 | 697 | MDRV_CPU_PROGRAM_MAP(splndrbt_map, 0) |
| 696 | 698 | MDRV_CPU_VBLANK_INT(splndrbt_interrupt, 2) |
| 697 | 699 | |
| 698 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 699 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(600)) | |
| 700 | 700 | MDRV_MACHINE_RESET(splndrbt) |
| 701 | 701 | |
| 702 | 702 | /* video hardware */ |
| 703 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_AFTER_VBLANK) | |
| 703 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_AFTER_VBLANK) | |
| 704 | ||
| 705 | MDRV_SCREEN_ADD("main", RASTER) | |
| 706 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 707 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(600)) | |
| 704 | 708 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 705 | 709 | MDRV_SCREEN_SIZE(256, 256) |
| 706 | 710 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 64, 256-1) |
| 711 | ||
| 707 | 712 | MDRV_PALETTE_LENGTH(1536) |
| 708 | 713 | MDRV_GFXDECODE(splndrbt) |
| 709 | 714 |
| r1711 | r1712 | |
|---|---|---|
| 215 | 215 | int i; |
| 216 | 216 | |
| 217 | 217 | /* Oddly enough, the top 4 bits of each byte is 0 */ |
| 218 | for (i = 0; i < machine-> | |
| 218 | for (i = 0; i < machine->config->total_colors; i++) | |
| 219 | 219 | { |
| 220 | 220 | int r,g,b; |
| 221 | 221 | int bit0,bit1,bit2; |
| r1711 | r1712 | |
| 292 | 292 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 293 | 293 | |
| 294 | 294 | /* video */ |
| 295 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 296 | 295 | |
| 296 | MDRV_SCREEN_ADD("main", RASTER) | |
| 297 | 297 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 298 | 298 | MDRV_SCREEN_REFRESH_RATE(60) |
| 299 | MDRV_SCREEN_VBLANK_TIME( | |
| 299 | MDRV_SCREEN_VBLANK_TIME( | |
| 300 | 300 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 301 | 301 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 32*8-1) |
| 302 | 302 |
| r1711 | r1712 | |
|---|---|---|
| 181 | 181 | MDRV_CPU_IO_MAP(io_map,0) |
| 182 | 182 | MDRV_CPU_VBLANK_INT(irq0_line_hold, 2) |
| 183 | 183 | |
| 184 | ||
| 185 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 186 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 187 | ||
| 188 | 184 | /* video hardware */ |
| 189 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 185 | MDRV_SCREEN_ADD("main", RASTER) | |
| 186 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 187 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 190 | 188 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 191 | 189 | MDRV_SCREEN_SIZE(256, 256) |
| 192 | 190 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 32*8-1) |
| 191 | ||
| 193 | 192 | MDRV_PALETTE_LENGTH(256) |
| 194 | 193 | MDRV_GFXDECODE(mirax) |
| 195 | 194 | MDRV_VIDEO_START(mirax) |
| r1711 | r1712 | |
|---|---|---|
| 349 | 349 | MDRV_CPU_ADD(Z80, 3579545) |
| 350 | 350 | MDRV_CPU_PROGRAM_MAP(gradius3_s_map,0) |
| 351 | 351 | |
| 352 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 353 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 354 | 352 | MDRV_INTERLEAVE(100) |
| 355 | 353 | |
| 356 | 354 | MDRV_MACHINE_RESET(gradius3) |
| 357 | 355 | |
| 358 | 356 | /* video hardware */ |
| 359 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS) | |
| 357 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 358 | ||
| 359 | MDRV_SCREEN_ADD("main", RASTER) | |
| 360 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 361 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 360 | 362 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 361 | 363 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 362 | 364 | MDRV_SCREEN_VISIBLE_AREA(12*8, (64-12)*8-1, 2*8, 30*8-1 ) |
| 365 | ||
| 363 | 366 | MDRV_PALETTE_LENGTH(2048) |
| 364 | 367 | |
| 365 | 368 | MDRV_VIDEO_START(gradius3) |
| r1711 | r1712 | |
|---|---|---|
| 35 | 35 | static VIDEO_UPDATE( cardline ) |
| 36 | 36 | { |
| 37 | 37 | int x,y; |
| 38 | fillbitmap(bitmap, | |
| 38 | fillbitmap(bitmap, | |
| 39 | 39 | for(y=0;y<32;y++) |
| 40 | 40 | { |
| 41 | 41 | for(x=0;x<64;x++) |
| r1711 | r1712 | |
| 169 | 169 | { |
| 170 | 170 | int i,r,g,b,data; |
| 171 | 171 | int bit0,bit1,bit2; |
| 172 | for (i = 0;i < machine-> | |
| 172 | for (i = 0;i < machine->config->total_colors;i++) | |
| 173 | 173 | { |
| 174 | 174 | data=color_prom[i]; |
| 175 | 175 | |
| r1711 | r1712 | |
| 199 | 199 | MDRV_CPU_DATA_MAP(mem_data,0) |
| 200 | 200 | MDRV_CPU_IO_MAP(mem_io,0) |
| 201 | 201 | |
| 202 | /* video hardware */ | |
| 203 | MDRV_SCREEN_ADD("main", RASTER) | |
| 202 | 204 | MDRV_SCREEN_REFRESH_RATE(60) |
| 203 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 204 | ||
| 205 | /* video hardware */ | |
| 206 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 205 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 207 | 206 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 208 | 207 | MDRV_SCREEN_SIZE(64*8, 35*8) |
| 209 | 208 | MDRV_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 0*8, 32*8-1) |
| 209 | ||
| 210 | 210 | MDRV_GFXDECODE(cardline) |
| 211 | 211 | MDRV_PALETTE_LENGTH(512) |
| 212 | 212 | MDRV_PALETTE_INIT(cardline) |
| r1711 | r1712 | |
|---|---|---|
| 494 | 494 | MDRV_CPU_IO_MAP(sound_port, 0) |
| 495 | 495 | MDRV_CPU_PERIODIC_INT(nmi_line_pulse,250) |
| 496 | 496 | |
| 497 | MDRV_SCREEN_REFRESH_RATE(40) | |
| 498 | MDRV_SCREEN_VBLANK_TIME(0) | |
| 499 | ||
| 500 | 497 | MDRV_MACHINE_RESET(omegrace) |
| 501 | 498 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 502 | 499 | |
| 503 | 500 | /* video hardware */ |
| 504 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_VECTOR ) | |
| 505 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) | |
| 501 | MDRV_SCREEN_ADD("main", VECTOR) | |
| 502 | MDRV_SCREEN_REFRESH_RATE(40) | |
| 506 | 503 | MDRV_SCREEN_SIZE(400, 300) |
| 507 | 504 | MDRV_SCREEN_VISIBLE_AREA(522, 1566, 522, 1566) |
| 505 | ||
| 508 | 506 | MDRV_PALETTE_LENGTH(32768) |
| 509 | 507 | |
| 510 | 508 | MDRV_VIDEO_START(dvg) |
| r1711 | r1712 | |
|---|---|---|
| 393 | 393 | MDRV_CPU_PROGRAM_MAP(decocass_mcu_map,0) |
| 394 | 394 | MDRV_CPU_IO_MAP(decocass_mcu_portmap,0) |
| 395 | 395 | |
| 396 | MDRV_SCREEN_REFRESH_RATE(57) | |
| 397 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(3072) /* frames per second, vblank duration */) | |
| 398 | 396 | MDRV_INTERLEAVE(7) /* interleave CPUs */ |
| 399 | 397 | |
| 400 | 398 | MDRV_MACHINE_RESET(decocass) |
| 401 | 399 | |
| 402 | 400 | /* video hardware */ |
| 403 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 401 | MDRV_SCREEN_ADD("main", RASTER) | |
| 402 | MDRV_SCREEN_REFRESH_RATE(57) | |
| 403 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(3072) /* frames per second, vblank duration */) | |
| 404 | 404 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 405 | 405 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 406 | 406 | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 1*8, 31*8-1) |
| 407 | ||
| 407 | 408 | MDRV_GFXDECODE(decocass) |
| 408 | 409 | MDRV_PALETTE_LENGTH(32+2*8+2*4) |
| 409 | 410 | |
| r1711 | r1712 | |
| 651 | 652 | /* basic machine hardware */ |
| 652 | 653 | MDRV_IMPORT_FROM(decocass) |
| 653 | 654 | MDRV_MACHINE_RESET(czeroize) |
| 655 | MDRV_SCREEN_MODIFY("main") | |
| 654 | 656 | MDRV_SCREEN_VISIBLE_AREA(1*8, 32*8-1, 1*8, 31*8-1) |
| 655 | 657 | MACHINE_DRIVER_END |
| 656 | 658 |
| r1711 | r1712 | |
|---|---|---|
| 939 | 939 | MDRV_CPU_PERIODIC_INT(nmi_line_pulse, 480) |
| 940 | 940 | |
| 941 | 941 | MDRV_INTERLEAVE(32) |
| 942 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 943 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(600)) | |
| 944 | 942 | |
| 945 | 943 | MDRV_NVRAM_HANDLER(mystwarr) |
| 946 | 944 | MDRV_MACHINE_START(mystwarr) |
| 947 | 945 | MDRV_MACHINE_RESET(mystwarr) |
| 948 | 946 | |
| 949 | 947 | /* video hardware */ |
| 950 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS | VIDEO_UPDATE_AFTER_VBLANK) | |
| 948 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS | VIDEO_UPDATE_AFTER_VBLANK) | |
| 949 | ||
| 950 | MDRV_SCREEN_ADD("main", RASTER) | |
| 951 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 952 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(600)) | |
| 951 | 953 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 952 | 954 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 953 | 955 | MDRV_SCREEN_VISIBLE_AREA(24, 24+288-1, 16, 16+224-1) |
| 956 | ||
| 954 | 957 | MDRV_PALETTE_LENGTH(2048) |
| 955 | 958 | |
| 956 | 959 | MDRV_VIDEO_START(mystwarr) |
| r1711 | r1712 | |
| 979 | 982 | MDRV_CPU_MODIFY("main") |
| 980 | 983 | MDRV_CPU_PROGRAM_MAP(vsreadmem,vswritemem) |
| 981 | 984 | MDRV_CPU_VBLANK_INT(metamrph_interrupt, 40) |
| 982 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(900)) | |
| 983 | 985 | |
| 984 | 986 | /* video hardware */ |
| 985 | 987 | MDRV_VIDEO_START(viostorm) |
| 986 | 988 | MDRV_VIDEO_UPDATE(metamrph) |
| 989 | ||
| 990 | MDRV_SCREEN_MODIFY("main") | |
| 991 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(900)) | |
| 987 | 992 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 988 | 993 | MDRV_SCREEN_VISIBLE_AREA(40, 40+384-1, 16, 16+224-1) |
| 989 | 994 | MACHINE_DRIVER_END |
| r1711 | r1712 | |
| 997 | 1002 | MDRV_CPU_MODIFY("main") |
| 998 | 1003 | MDRV_CPU_PROGRAM_MAP(mmreadmem,mmwritemem) |
| 999 | 1004 | MDRV_CPU_VBLANK_INT(metamrph_interrupt, 40) |
| 1000 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(900)) | |
| 1001 | 1005 | |
| 1002 | 1006 | /* video hardware */ |
| 1003 | 1007 | MDRV_VIDEO_START(metamrph) |
| 1004 | 1008 | MDRV_VIDEO_UPDATE(metamrph) |
| 1009 | ||
| 1010 | MDRV_SCREEN_MODIFY("main") | |
| 1011 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(900)) | |
| 1005 | 1012 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 1006 | 1013 | MDRV_SCREEN_VISIBLE_AREA(24, 24+288-1, 17, 17+224-1) |
| 1007 | 1014 | MACHINE_DRIVER_END |
| r1711 | r1712 | |
| 1015 | 1022 | MDRV_CPU_MODIFY("main") |
| 1016 | 1023 | MDRV_CPU_PROGRAM_MAP(dddreadmem, dddwritemem) |
| 1017 | 1024 | MDRV_CPU_VBLANK_INT(ddd_interrupt, 1) |
| 1018 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(600)) | |
| 1019 | 1025 | |
| 1020 | 1026 | MDRV_GFXDECODE(dadandrn) |
| 1021 | 1027 | |
| 1022 | 1028 | /* video hardware */ |
| 1023 | 1029 | MDRV_VIDEO_START(dadandrn) |
| 1024 | 1030 | MDRV_VIDEO_UPDATE(dadandrn) |
| 1031 | ||
| 1032 | MDRV_SCREEN_MODIFY("main") | |
| 1033 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(600)) | |
| 1025 | 1034 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 1026 | 1035 | MDRV_SCREEN_VISIBLE_AREA(24, 24+288-1, 17, 17+224-1) |
| 1027 | 1036 | MACHINE_DRIVER_END |
| r1711 | r1712 | |
| 1035 | 1044 | MDRV_CPU_MODIFY("main") |
| 1036 | 1045 | MDRV_CPU_PROGRAM_MAP(gaiareadmem,gaiawritemem) |
| 1037 | 1046 | MDRV_CPU_VBLANK_INT(ddd_interrupt, 1) |
| 1038 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(600)) | |
| 1039 | 1047 | |
| 1040 | 1048 | MDRV_GFXDECODE(gaiapols) |
| 1041 | 1049 | |
| r1711 | r1712 | |
| 1044 | 1052 | /* video hardware */ |
| 1045 | 1053 | MDRV_VIDEO_START(gaiapols) |
| 1046 | 1054 | MDRV_VIDEO_UPDATE(dadandrn) |
| 1055 | ||
| 1056 | MDRV_SCREEN_MODIFY("main") | |
| 1057 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(600)) | |
| 1047 | 1058 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 1048 | 1059 | MDRV_SCREEN_VISIBLE_AREA(40, 40+376-1, 16, 16+224-1) |
| 1049 | 1060 | MACHINE_DRIVER_END |
| r1711 | r1712 | |
| 1057 | 1068 | MDRV_CPU_MODIFY("main") |
| 1058 | 1069 | MDRV_CPU_PROGRAM_MAP(mcreadmem,mcwritemem) |
| 1059 | 1070 | MDRV_CPU_VBLANK_INT(mchamp_interrupt, 2) |
| 1060 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1061 | 1071 | |
| 1062 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 1063 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) | |
| 1072 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 1064 | 1073 | |
| 1065 | 1074 | MDRV_VIDEO_START(martchmp) |
| 1066 | 1075 | MDRV_VIDEO_UPDATE(martchmp) |
| 1076 | ||
| 1077 | MDRV_SCREEN_MODIFY("main") | |
| 1078 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) | |
| 1079 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1067 | 1080 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 1068 | 1081 | MDRV_SCREEN_VISIBLE_AREA(32, 32+384-1, 16, 16+224-1) |
| 1069 | 1082 | MACHINE_DRIVER_END |
| r1711 | r1712 | |
|---|---|---|
| 1066 | 1066 | MDRV_CPU_PROGRAM_MAP(nekkyoku_readmem_sub,nekkyoku_writemem_sub) |
| 1067 | 1067 | MDRV_CPU_IO_MAP(nekkyoku_readport_sub,nekkyoku_writeport_sub) |
| 1068 | 1068 | |
| 1069 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1070 | ||
| 1071 | 1069 | MDRV_MACHINE_RESET(fromance) |
| 1072 | 1070 | |
| 1073 | 1071 | /* video hardware */ |
| 1074 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1072 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1073 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1075 | 1074 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1076 | 1075 | MDRV_SCREEN_SIZE(512, 256) |
| 1077 | 1076 | MDRV_SCREEN_VISIBLE_AREA(0, 352-1, 0, 240-1) |
| 1077 | ||
| 1078 | 1078 | MDRV_GFXDECODE(fromance) |
| 1079 | 1079 | MDRV_PALETTE_LENGTH(1024) |
| 1080 | 1080 | |
| r1711 | r1712 | |
| 1104 | 1104 | MDRV_CPU_PROGRAM_MAP(fromance_readmem_sub,fromance_writemem_sub) |
| 1105 | 1105 | MDRV_CPU_IO_MAP(fromance_readport_sub,idolmj_writeport_sub) |
| 1106 | 1106 | |
| 1107 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1108 | ||
| 1109 | 1107 | MDRV_MACHINE_RESET(fromance) |
| 1110 | 1108 | |
| 1111 | 1109 | /* video hardware */ |
| 1112 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1110 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1111 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1113 | 1112 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1114 | 1113 | MDRV_SCREEN_SIZE(512, 256) |
| 1115 | 1114 | MDRV_SCREEN_VISIBLE_AREA(0, 352-1, 0, 240-1) |
| 1115 | ||
| 1116 | 1116 | MDRV_GFXDECODE(fromance) |
| 1117 | 1117 | MDRV_PALETTE_LENGTH(2048) |
| 1118 | 1118 | |
| r1711 | r1712 | |
| 1142 | 1142 | MDRV_CPU_PROGRAM_MAP(fromance_readmem_sub,fromance_writemem_sub) |
| 1143 | 1143 | MDRV_CPU_IO_MAP(fromance_readport_sub,fromance_writeport_sub) |
| 1144 | 1144 | |
| 1145 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1146 | ||
| 1147 | 1145 | MDRV_MACHINE_RESET(fromance) |
| 1148 | 1146 | |
| 1149 | 1147 | /* video hardware */ |
| 1150 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1148 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1149 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1151 | 1150 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1152 | 1151 | MDRV_SCREEN_SIZE(512, 256) |
| 1153 | 1152 | MDRV_SCREEN_VISIBLE_AREA(0, 352-1, 0, 240-1) |
| 1153 | ||
| 1154 | 1154 | MDRV_GFXDECODE(fromance) |
| 1155 | 1155 | MDRV_PALETTE_LENGTH(2048) |
| 1156 | 1156 |
| r1711 | r1712 | |
|---|---|---|
| 810 | 810 | MDRV_MACHINE_RESET(dlair) |
| 811 | 811 | |
| 812 | 812 | /* video hardware */ |
| 813 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_SELF_RENDER) | |
| 813 | MDRV_VIDEO_ATTRIBUTES(VIDEO_SELF_RENDER) | |
| 814 | ||
| 815 | MDRV_SCREEN_ADD("main", RASTER) | |
| 814 | 816 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 815 | 817 | MDRV_SCREEN_REFRESH_RATE(59.94) |
| 816 | MDRV_SCREEN_VBLANK_TIME( | |
| 818 | MDRV_SCREEN_VBLANK_TIME( | |
| 817 | 819 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 818 | 820 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 32*8-1) |
| 819 | 821 | |
| r1711 | r1712 | |
| 849 | 851 | MDRV_MACHINE_RESET(dlair) |
| 850 | 852 | |
| 851 | 853 | /* video hardware */ |
| 852 | MDRV_ | |
| 854 | MDRV_SC | |
| 853 | 855 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 854 | 856 | MDRV_SCREEN_REFRESH_RATE(50) |
| 855 | MDRV_SCREEN_VBLANK_TIME( | |
| 857 | MDRV_SCREEN_VBLANK_TIME( | |
| 856 | 858 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 857 | 859 | MDRV_SCREEN_VISIBLE_AREA(0, 199, 0, 239) |
| 858 | 860 |
| r1711 | r1712 | |
|---|---|---|
| 279 | 279 | tilemap_set_scroll_cols(bg_tilemap, 32); |
| 280 | 280 | } |
| 281 | 281 | |
| 282 | static void draw_bitmap( | |
| 282 | static void draw_bitmap( | |
| 283 | 283 | { |
| 284 | 284 | int x,y,count; |
| 285 | 285 | int i, bit0, bit1, bit2; |
| r1711 | r1712 | |
| 300 | 300 | if(color) |
| 301 | 301 | { |
| 302 | 302 | if(jullyjgr_flip_screen_x && jullyjgr_flip_screen_y) |
| 303 | *BITMAP_ADDR16(bitmap, y, x*8 + i) = | |
| 303 | *BITMAP_ADDR16(bitmap, y, x*8 + i) = | |
| 304 | 304 | else if(jullyjgr_flip_screen_x && !jullyjgr_flip_screen_y) |
| 305 | *BITMAP_ADDR16(bitmap, 255 - y, x*8 + i) = | |
| 305 | *BITMAP_ADDR16(bitmap, 255 - y, x*8 + i) = | |
| 306 | 306 | else if(!jullyjgr_flip_screen_x && jullyjgr_flip_screen_y) |
| 307 | *BITMAP_ADDR16(bitmap, y, 255 - x*8 - i) = | |
| 307 | *BITMAP_ADDR16(bitmap, y, 255 - x*8 - i) = | |
| 308 | 308 | else |
| 309 | *BITMAP_ADDR16(bitmap, 255 - y, 255 - x*8 - i) = | |
| 309 | *BITMAP_ADDR16(bitmap, 255 - y, 255 - x*8 - i) = | |
| 310 | 310 | } |
| 311 | 311 | } |
| 312 | 312 | |
| r1711 | r1712 | |
| 319 | 319 | { |
| 320 | 320 | int offs; |
| 321 | 321 | |
| 322 | fillbitmap(bitmap, | |
| 322 | fillbitmap(bitmap, | |
| 323 | 323 | |
| 324 | 324 | tilemap_draw(bitmap,cliprect,bg_tilemap,0,0); |
| 325 | 325 | |
| 326 | draw_bitmap( | |
| 326 | draw_bitmap( | |
| 327 | 327 | |
| 328 | 328 | /* Sprites are the same as in Galaxian */ |
| 329 | 329 | for(offs = 0; offs < 0x40; offs += 4) |
| r1711 | r1712 | |
| 402 | 402 | MDRV_CPU_PROGRAM_MAP(jollyjgr_map,0) |
| 403 | 403 | MDRV_CPU_VBLANK_INT(jollyjgr_interrupt,1) |
| 404 | 404 | |
| 405 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 406 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 407 | ||
| 408 | 405 | /* video hardware */ |
| 409 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 406 | MDRV_SCREEN_ADD("main", RASTER) | |
| 407 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 408 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 410 | 409 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 411 | 410 | MDRV_SCREEN_SIZE(256, 256) |
| 412 | 411 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 301 | 301 | MDRV_CPU_ADD(M6809,1500000) |
| 302 | 302 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 303 | 303 | |
| 304 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 305 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 306 | ||
| 307 | 304 | MDRV_MACHINE_RESET(irobot) |
| 308 | 305 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 309 | 306 | |
| 310 | 307 | /* video hardware */ |
| 311 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 308 | MDRV_SCREEN_ADD("main", RASTER) | |
| 309 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 310 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 312 | 311 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 313 | 312 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 314 | 313 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 29*8-1) |
| 314 | ||
| 315 | 315 | MDRV_GFXDECODE(irobot) |
| 316 | 316 | MDRV_PALETTE_LENGTH(64 + 32) /* 64 for polygons, 32 for text */ |
| 317 | 317 |
| r1711 | r1712 | |
|---|---|---|
| 461 | 461 | MDRV_CPU_IO_MAP(mcu_port_map,0) |
| 462 | 462 | MDRV_CPU_VBLANK_INT(irq0_line_assert,1) |
| 463 | 463 | |
| 464 | MDRV_SCREEN_REFRESH_RATE(60.606060) | |
| 465 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 466 | 464 | MDRV_INTERLEAVE(100) /* we need heavy synch */ |
| 467 | 465 | |
| 468 | 466 | MDRV_MACHINE_START(skykid) |
| 469 | 467 | |
| 470 | 468 | /* video hardware */ |
| 471 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 469 | MDRV_SCREEN_ADD("main", RASTER) | |
| 470 | MDRV_SCREEN_REFRESH_RATE(60.606060) | |
| 471 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 472 | 472 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 473 | 473 | MDRV_SCREEN_SIZE(36*8, 28*8) |
| 474 | 474 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 0*8, 28*8-1) |
| 475 | ||
| 475 | 476 | MDRV_GFXDECODE(skykid) |
| 476 | 477 | MDRV_PALETTE_LENGTH(64*4+128*4+64*8) |
| 477 | 478 |
| r1711 | r1712 | |
|---|---|---|
| 204 | 204 | MDRV_NVRAM_HANDLER(atarigen) |
| 205 | 205 | |
| 206 | 206 | /* video hardware */ |
| 207 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 207 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 208 | 208 | MDRV_GFXDECODE(klax) |
| 209 | 209 | MDRV_PALETTE_LENGTH(512) |
| 210 | 210 | |
| 211 | MDRV_SCREEN_ADD("main", | |
| 211 | MDRV_SCREEN_ADD("main", RASTER) | |
| 212 | 212 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 213 | 213 | /* note: these parameters are from published specs, not derived */ |
| 214 | 214 | /* the board uses an SOS-2 chip to generate video signals */ |
| r1711 | r1712 | |
|---|---|---|
| 93 | 93 | MDRV_CPU_ADD(Z80,8000000) /* ? */ |
| 94 | 94 | MDRV_CPU_PROGRAM_MAP(tarzan_map,0) |
| 95 | 95 | |
| 96 | /* video hardware */ | |
| 97 | MDRV_SCREEN_ADD("main", RASTER) | |
| 96 | 98 | MDRV_SCREEN_REFRESH_RATE(60) |
| 97 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 98 | ||
| 99 | /* video hardware */ | |
| 100 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 99 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 101 | 100 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 102 | 101 | MDRV_SCREEN_SIZE(256, 256) |
| 103 | 102 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0, 256-1) |
| 103 | ||
| 104 | 104 | MDRV_PALETTE_LENGTH(0x100) |
| 105 | 105 | |
| 106 | 106 | MDRV_VIDEO_START(tarzan) |
| r1711 | r1712 | |
|---|---|---|
| 254 | 254 | |
| 255 | 255 | MDRV_MACHINE_RESET( quizpani ) |
| 256 | 256 | |
| 257 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 258 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 259 | ||
| 260 | 257 | MDRV_GFXDECODE(quizpani) |
| 261 | 258 | MDRV_PALETTE_LENGTH(0x200) |
| 262 | 259 | |
| 263 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 260 | ||
| 261 | MDRV_SCREEN_ADD("main", RASTER) | |
| 262 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 263 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 264 | 264 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 265 | 265 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 266 | 266 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 0*8, 28*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 1957 | 1957 | MDRV_CPU_PROGRAM_MAP(sound_readmem, sound_writemem) |
| 1958 | 1958 | MDRV_CPU_PERIODIC_INT(irq0_line_hold, (double)6000000/(4*16*16*10*16)) |
| 1959 | 1959 | |
| 1960 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1961 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1962 | 1960 | MDRV_MACHINE_RESET(halleys) |
| 1963 | 1961 | |
| 1964 | 1962 | // video hardware |
| 1965 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1963 | ||
| 1964 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1965 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1966 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1966 | 1967 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1967 | 1968 | MDRV_SCREEN_SIZE(SCREEN_WIDTH, SCREEN_HEIGHT) |
| 1968 | 1969 | MDRV_SCREEN_VISIBLE_AREA(VIS_MINX, VIS_MAXX, VIS_MINY, VIS_MAXY) |
| r1711 | r1712 | |
|---|---|---|
| 171 | 171 | MDRV_CPU_PROGRAM_MAP(readmem_gomoku, writemem_gomoku) |
| 172 | 172 | MDRV_CPU_VBLANK_INT(irq0_line_hold, 1) |
| 173 | 173 | |
| 174 | /* video hardware */ | |
| 175 | MDRV_SCREEN_ADD("main", RASTER) | |
| 174 | 176 | MDRV_SCREEN_REFRESH_RATE(60) |
| 175 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 176 | ||
| 177 | /* video hardware */ | |
| 178 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 177 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 179 | 178 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 180 | 179 | MDRV_SCREEN_SIZE(256, 256) |
| 181 | 180 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 16, 256-16-1) |
| 181 | ||
| 182 | 182 | MDRV_GFXDECODE(gomoku) |
| 183 | 183 | MDRV_PALETTE_LENGTH(64) |
| 184 | 184 |
| r1711 | r1712 | |
|---|---|---|
| 1225 | 1225 | MDRV_CPU_PROGRAM_MAP(memory_map, 0) |
| 1226 | 1226 | MDRV_CPU_VBLANK_INT(vb_interrupt, 1) |
| 1227 | 1227 | |
| 1228 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 1229 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1230 | ||
| 1231 | 1228 | MDRV_MACHINE_START(djmain) |
| 1232 | 1229 | MDRV_MACHINE_RESET(djmain) |
| 1233 | 1230 | |
| 1234 | 1231 | /* video hardware */ |
| 1235 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 1232 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1233 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 1234 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1236 | 1235 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 1237 | 1236 | MDRV_SCREEN_SIZE(64*8, 64*8) |
| 1238 | 1237 | MDRV_SCREEN_VISIBLE_AREA(12, 512-12-1, 0, 384-1) |
| 1238 | ||
| 1239 | 1239 | MDRV_PALETTE_LENGTH(0x4440/4) |
| 1240 | 1240 | MDRV_GFXDECODE(djmain) |
| 1241 | 1241 | MDRV_VIDEO_START(djmain) |
| r1711 | r1712 | |
|---|---|---|
| 613 | 613 | MDRV_CPU_ADD(ARM7, 54000000) // guess... |
| 614 | 614 | MDRV_CPU_PROGRAM_MAP(ssfindo_map,0) |
| 615 | 615 | |
| 616 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 617 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 618 | ||
| 619 | 616 | MDRV_CPU_VBLANK_INT(ssfindo_interrupt,1) |
| 620 | 617 | MDRV_MACHINE_RESET(ssfindo) |
| 621 | 618 | |
| 622 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 619 | ||
| 620 | MDRV_SCREEN_ADD("main", RASTER) | |
| 621 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 622 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 623 | 623 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 624 | 624 | MDRV_SCREEN_SIZE(320, 256) |
| 625 | 625 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 239) |
| 626 | ||
| 626 | 627 | MDRV_PALETTE_LENGTH(256) |
| 627 | 628 | |
| 628 | 629 | MDRV_VIDEO_UPDATE(ssfindo) |
| r1711 | r1712 | |
| 635 | 636 | MDRV_CPU_ADD(ARM7, 54000000) // guess... |
| 636 | 637 | MDRV_CPU_PROGRAM_MAP(ppcar_map,0) |
| 637 | 638 | |
| 638 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 639 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 640 | ||
| 641 | 639 | MDRV_CPU_VBLANK_INT(ssfindo_interrupt,1) |
| 642 | 640 | MDRV_MACHINE_RESET(ssfindo) |
| 643 | 641 | |
| 644 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 642 | ||
| 643 | MDRV_SCREEN_ADD("main", RASTER) | |
| 644 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 645 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 645 | 646 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 646 | 647 | MDRV_SCREEN_SIZE(320, 256) |
| 647 | 648 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 239) |
| 649 | ||
| 648 | 650 | MDRV_PALETTE_LENGTH(256) |
| 649 | 651 | |
| 650 | 652 | MDRV_VIDEO_UPDATE(ssfindo) |
| r1711 | r1712 | |
|---|---|---|
| 1054 | 1054 | MDRV_CPU_VBLANK_INT(firetrk_interrupt, 1) |
| 1055 | 1055 | MDRV_WATCHDOG_VBLANK_INIT(5) |
| 1056 | 1056 | |
| 1057 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1058 | ||
| 1059 | 1057 | MDRV_MACHINE_RESET(firetrk) |
| 1060 | 1058 | |
| 1061 | 1059 | /* video hardware */ |
| 1062 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1060 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1061 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1063 | 1062 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1064 | 1063 | MDRV_SCREEN_SIZE(320, 262) |
| 1065 | 1064 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 239) |
| 1065 | ||
| 1066 | 1066 | MDRV_GFXDECODE(firetrk) |
| 1067 | 1067 | |
| 1068 | 1068 | MDRV_PALETTE_INIT(firetrk) |
| r1711 | r1712 | |
|---|---|---|
| 41 | 41 | The "new" roms have hand written labels, while those that match the current |
| 42 | 42 | Tropical Angel set look to be factory labeled chips. |
| 43 | 43 | |
| 44 | ***************************************************************************** | |
| 45 | ||
| 46 | Locations based on m58.c driver | |
| 47 | ||
| 44 | 48 | ****************************************************************************/ |
| 45 | 49 | |
| 46 | 50 | #include "driver.h" |
| 51 | #include "iremipt.h" | |
| 47 | 52 | #include "m57.h" |
| 48 | 53 | #include "audio/irem.h" |
| 49 | 54 | |
| r1711 | r1712 | |
| 77 | 82 | |
| 78 | 83 | /************************************* |
| 79 | 84 | * |
| 80 | * | |
| 85 | * Generic port definitions | |
| 81 | 86 | * |
| 82 | 87 | *************************************/ |
| 83 | 88 | |
| 84 | static INPUT_PORTS_START( troangel ) | |
| 89 | /* Same as m52, m58 and m62 (IREM Z80 hardware) */ | |
| 90 | static INPUT_PORTS_START( m57 ) | |
| 85 | 91 | PORT_START_TAG("IN0") |
| 92 | /* Start 1 & 2 also restarts and freezes the game with stop mode on | |
| 93 | and are used in test mode to enter and esc the various tests */ | |
| 86 | 94 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 87 | 95 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| 88 | 96 | /* coin input must be active for 19 frames to be consistently recognized */ |
| 89 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_ | |
| 97 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) PORT_IMPULSE(19) | |
| 90 | 98 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 91 | 99 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 92 | 100 | |
| 93 | 101 | PORT_START_TAG("IN1") |
| 94 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY | |
| 95 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY | |
| 96 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 97 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 98 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 102 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 103 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 104 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 105 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 106 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 99 | 107 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| 100 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UN | |
| 108 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED | |
| 101 | 109 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 102 | 110 | |
| 103 | 111 | PORT_START_TAG("IN2") |
| 104 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_COCKTAIL | |
| 105 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_COCKTAIL | |
| 106 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 107 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 112 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 113 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 114 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 115 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 108 | 116 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 109 | 117 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL |
| 110 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UN | |
| 118 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED | |
| 111 | 119 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL |
| 112 | 120 | |
| 113 | PORT_START_TAG("DSW1") | |
| 114 | PORT_DIPNAME( 0x03, 0x03, "Time" ) | |
| 115 | PORT_DIPSETTING( 0x03, "180 160 140" ) | |
| 116 | PORT_DIPSETTING( 0x02, "160 140 120" ) | |
| 117 | PORT_DIPSETTING( 0x01, "140 120 100" ) | |
| 118 | PORT_DIPSETTING( 0x00, "120 100 100" ) | |
| 119 | PORT_DIPNAME( 0x04, 0x04, "Crash Loss Time" ) | |
| 120 | PORT_DIPSETTING( 0x04, "5" ) | |
| 121 | PORT_DIPSETTING( 0x00, "10" ) | |
| 122 | PORT_DIPNAME( 0x08, 0x08, "Background Sound" ) | |
| 123 | PORT_DIPSETTING( 0x08, "Boat Motor" ) | |
| 124 | PORT_DIPSETTING( 0x00, "Music" ) | |
| 125 | /* TODO: support the different settings which happen in Coin Mode 2 */ | |
| 126 | PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coinage ) ) /* mapped on coin mode 1 */ | |
| 127 | PORT_DIPSETTING( 0xa0, DEF_STR( 6C_1C ) ) | |
| 128 | PORT_DIPSETTING( 0xb0, DEF_STR( 5C_1C ) ) | |
| 129 | PORT_DIPSETTING( 0xc0, DEF_STR( 4C_1C ) ) | |
| 130 | PORT_DIPSETTING( 0xd0, DEF_STR( 3C_1C ) ) | |
| 131 | PORT_DIPSETTING( 0xe0, DEF_STR( 2C_1C ) ) | |
| 132 | PORT_DIPSETTING( 0xf0, DEF_STR( 1C_1C ) ) | |
| 133 | PORT_DIPSETTING( 0x70, DEF_STR( 1C_2C ) ) | |
| 134 | PORT_DIPSETTING( 0x60, DEF_STR( 1C_3C ) ) | |
| 135 | PORT_DIPSETTING( 0x50, DEF_STR( 1C_4C ) ) | |
| 136 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_5C ) ) | |
| 137 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_6C ) ) | |
| 138 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) | |
| 139 | /* settings 0x10, 0x20, 0x80, 0x90 all give 1 Coin/1 Credit */ | |
| 121 | /* DSW1 is so different from game to game that it isn't included here */ | |
| 140 | 122 | |
| 141 | 123 | PORT_START_TAG("DSW2") |
| 142 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) | |
| 124 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW2:1") | |
| 143 | 125 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 144 | 126 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 145 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Cabinet ) ) | |
| 127 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW2:2") | |
| 146 | 128 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 147 | 129 | PORT_DIPSETTING( 0x02, DEF_STR( Cocktail ) ) |
| 148 | /* This activates a different coin mode. Look at the dip switch setting schematic */ | |
| 149 | PORT_DIPNAME( 0x04, 0x04, "Coin Mode" ) | |
| 130 | PORT_DIPNAME( 0x04, 0x04, "Coin Mode" ) PORT_DIPLOCATION("SW2:3") | |
| 150 | 131 | PORT_DIPSETTING( 0x04, "Mode 1" ) |
| 151 | 132 | PORT_DIPSETTING( 0x00, "Mode 2" ) |
| 152 | /* TODO: the following enables an analog accelerator input read from 0xd003 */ | |
| 153 | /* however that is the DSW1 input so it must be multiplexed some way */ | |
| 154 | PORT_DIPNAME( 0x08, 0x08, "Analog Accelarator" ) | |
| 133 | PORT_DIPUNKNOWN_DIPLOC( 0x08, IP_ACTIVE_LOW, "SW2:4" ) | |
| 134 | PORT_DIPUNKNOWN_DIPLOC( 0x10, IP_ACTIVE_LOW, "SW2:5" ) | |
| 135 | PORT_DIPUNKNOWN_DIPLOC( 0x20, IP_ACTIVE_LOW, "SW2:6" ) | |
| 136 | PORT_DIPNAME( 0x40, 0x40, "Invulnerability (Cheat)") PORT_DIPLOCATION("SW2:7") | |
| 137 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 138 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 139 | PORT_SERVICE_DIPLOC( 0x80, IP_ACTIVE_LOW, "SW2:8" ) | |
| 140 | INPUT_PORTS_END | |
| 141 | ||
| 142 | /************************************* | |
| 143 | * | |
| 144 | * Games port definitions | |
| 145 | * | |
| 146 | *************************************/ | |
| 147 | ||
| 148 | static INPUT_PORTS_START( troangel ) | |
| 149 | PORT_INCLUDE(m57) | |
| 150 | ||
| 151 | PORT_MODIFY("IN1") | |
| 152 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY | |
| 153 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY | |
| 154 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) /* IPT_JOYSTICK_DOWN */ | |
| 155 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED ) /* IPT_JOYSTICK_UP */ | |
| 156 | ||
| 157 | PORT_MODIFY("IN2") | |
| 158 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_COCKTAIL | |
| 159 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_COCKTAIL | |
| 160 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) /* IPT_JOYSTICK_DOWN PORT_COCKTAIL */ | |
| 161 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED ) /* IPT_JOYSTICK_UP PORT_COCKTAIL */ | |
| 162 | ||
| 163 | PORT_MODIFY("DSW2") | |
| 164 | /* TODO: the following enables an analog accelerator input read from 0xd003 */ | |
| 165 | /* however that is the DSW1 input so it must be multiplexed some way */ | |
| 166 | PORT_DIPNAME( 0x08, 0x08, "Analog Accelarator" ) PORT_DIPLOCATION("SW2:4") | |
| 155 | 167 | PORT_DIPSETTING( 0x08, DEF_STR( No ) ) |
| 156 | 168 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) |
| 157 | 169 | /* In stop mode, press 2 to stop and 1 to restart */ |
| 158 | PORT_DIPNAME( 0x10, 0x10, "Stop Mode (Cheat)") | |
| 170 | PORT_DIPNAME( 0x10, 0x10, "Stop Mode (Cheat)") PORT_DIPLOCATION("SW2:5") | |
| 159 | 171 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| 160 | 172 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 161 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) | |
| 162 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 163 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 164 | PORT_DIPNAME( 0x40, 0x40, "Invulnerability (Cheat)") | |
| 165 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 166 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 167 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) | |
| 173 | PORT_DIPUNUSED_DIPLOC( 0x20, IP_ACTIVE_LOW, "SW2:6" ) | |
| 174 | ||
| 175 | PORT_START_TAG("DSW1") | |
| 176 | PORT_DIPNAME( 0x03, 0x03, "Time" ) PORT_DIPLOCATION("SW1:1,2") /* table at 0x6110 - 4 * 8 bytes (B1 B2 bonus A1 A2 bonus M1 M2) */ | |
| 177 | PORT_DIPSETTING( 0x03, "B:180/A:160/M:140/BG:120" ) | |
| 178 | PORT_DIPSETTING( 0x02, "B:160/A:140/M:120/BG:100" ) | |
| 179 | PORT_DIPSETTING( 0x01, "B:140/A:120/M:100/BG:80" ) | |
| 180 | PORT_DIPSETTING( 0x00, "B:120/A:100/M:100/BG:80" ) | |
| 181 | PORT_DIPNAME( 0x04, 0x04, "Crash Loss Time" ) PORT_DIPLOCATION("SW1:3") | |
| 182 | PORT_DIPSETTING( 0x04, "5" ) | |
| 183 | PORT_DIPSETTING( 0x00, "10" ) | |
| 184 | PORT_DIPNAME( 0x08, 0x08, "Background Sound" ) PORT_DIPLOCATION("SW1:4") | |
| 185 | PORT_DIPSETTING( 0x08, "Boat Motor" ) | |
| 186 | PORT_DIPSETTING( 0x00, "Music" ) | |
| 187 | IREM_Z80_COINAGE_TYPE_2_LOC(SW1) | |
| 168 | 188 | INPUT_PORTS_END |
| 169 | 189 | |
| 170 | 190 | |
| r1711 | r1712 | |
| 206 | 226 | MDRV_CPU_PROGRAM_MAP(main_map,0) |
| 207 | 227 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 208 | 228 | |
| 229 | /* video hardware */ | |
| 230 | MDRV_SCREEN_ADD("main", RASTER) | |
| 209 | 231 | MDRV_SCREEN_REFRESH_RATE(57) |
| 210 | 232 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(1790) /* accurate frequency, measured on a Moon Patrol board, is 56.75Hz. */) |
| 211 | 233 | /* the Lode Runner manual (similar but different hardware) */ |
| 212 | 234 | /* talks about 55Hz and 1790ms vblank duration. */ |
| 213 | ||
| 214 | /* video hardware */ | |
| 215 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 216 | 235 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 217 | 236 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 218 | 237 | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 1*8, 31*8-1) |
| 238 | ||
| 219 | 239 | MDRV_GFXDECODE(m57) |
| 220 | 240 | MDRV_PALETTE_LENGTH(32*8+32*8) |
| 221 | 241 | |
| r1711 | r1712 | |
| 303 | 323 | * |
| 304 | 324 | *************************************/ |
| 305 | 325 | |
| 306 | GAME( 1983, troangel, 0, m57, troangel, 0, ROT0, "Irem", "Tropical Angel", 0 ) | |
| 307 | GAME( 1983, newtangl, troangel, m57, troangel, 0, ROT0, "Irem", "New Tropical Angel", 0 ) | |
| 326 | GAME( 1983, troangel, 0, m57, troangel, 0, ROT0, "Irem", "Tropical Angel", 0 ) | |
| 327 | GAME( 1983, newtangl, troangel, m57, troangel, 0, ROT0, "Irem", "New Tropical Angel", 0 ) |
| r1711 | r1712 | |
|---|---|---|
| 645 | 645 | */ |
| 646 | 646 | int i; |
| 647 | 647 | |
| 648 | for (i = 0;i < machine-> | |
| 648 | for (i = 0;i < machine->config->total_colors;i++) | |
| 649 | 649 | { |
| 650 | 650 | int bit0, bit1, bit2, r, g, b; |
| 651 | 651 | |
| r1711 | r1712 | |
| 980 | 980 | MDRV_CPU_IO_MAP(peplus_iomap, 0) |
| 981 | 981 | MDRV_CPU_VBLANK_INT(irq0_line_hold, 1) |
| 982 | 982 | |
| 983 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 984 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 985 | ||
| 986 | 983 | MDRV_MACHINE_RESET(peplus) |
| 987 | 984 | MDRV_NVRAM_HANDLER(peplus) |
| 988 | 985 | |
| 989 | 986 | // video hardware |
| 990 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 987 | ||
| 988 | MDRV_SCREEN_ADD("main", RASTER) | |
| 989 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 990 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 991 | 991 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 992 | 992 | MDRV_SCREEN_SIZE((52+1)*8, (31+1)*8) |
| 993 | 993 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 25*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 1913 | 1913 | MDRV_CPU_ADD(M68000, 10000000) |
| 1914 | 1914 | MDRV_CPU_PROGRAM_MAP(system24_cpu2_map, 0) |
| 1915 | 1915 | |
| 1916 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 1917 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(100)) | |
| 1918 | 1916 | MDRV_INTERLEAVE(4) |
| 1919 | 1917 | |
| 1920 | 1918 | MDRV_MACHINE_START(system24) |
| 1921 | 1919 | MDRV_MACHINE_RESET(system24) |
| 1922 | 1920 | MDRV_NVRAM_HANDLER(system24) |
| 1923 | 1921 | |
| 1924 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_AFTER_VBLANK) | |
| 1922 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_AFTER_VBLANK) | |
| 1923 | ||
| 1924 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1925 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 1926 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(100)) | |
| 1925 | 1927 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1926 | 1928 | MDRV_SCREEN_SIZE(62*8, 48*8) |
| 1927 | 1929 | MDRV_SCREEN_VISIBLE_AREA(0*8, 62*8-1, 0*8, 48*8-1) |
| 1930 | ||
| 1928 | 1931 | MDRV_PALETTE_LENGTH(8192*2) |
| 1929 | 1932 | |
| 1930 | 1933 | MDRV_VIDEO_START(system24) |
| r1711 | r1712 | |
|---|---|---|
| 212 | 212 | MDRV_CPU_PROGRAM_MAP(t5182_map, 0) |
| 213 | 213 | MDRV_CPU_IO_MAP(t5182_io, 0) |
| 214 | 214 | |
| 215 | /* video hardware */ | |
| 216 | MDRV_SCREEN_ADD("main", RASTER) | |
| 215 | 217 | MDRV_SCREEN_REFRESH_RATE(56.747) |
| 216 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 217 | ||
| 218 | /* video hardware */ | |
| 219 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 218 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 220 | 219 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 221 | 220 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 222 | 221 | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 0, 31*8-1) |
| 222 | ||
| 223 | 223 | MDRV_GFXDECODE(mustache) |
| 224 | 224 | MDRV_PALETTE_LENGTH(8*16+16*8) |
| 225 | 225 |
| r1711 | r1712 | |
|---|---|---|
| 276 | 276 | { |
| 277 | 277 | if( gfx ) |
| 278 | 278 | { |
| 279 | int shadow_offset = (machine-> | |
| 279 | int shadow_offset = (machine->config->video_attributes&VIDEO_HAS_SHADOWS)?machine->config->total_colors:0; | |
| 280 | 280 | const pen_t *pal = &machine->pens[gfx->color_base + gfx->color_granularity * (color % gfx->total_colors)]; |
| 281 | 281 | UINT8 *source_base = gfx->gfxdata + (code % gfx->total_elements) * gfx->char_modulo; |
| 282 | 282 | int sprite_screen_height = (scaley*gfx->height+0x8000)>>16; |
| r1711 | r1712 | |
|---|---|---|
| 408 | 408 | |
| 409 | 409 | MDRV_INTERLEAVE(100) |
| 410 | 410 | |
| 411 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 412 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 413 | ||
| 414 | 411 | /* video hardware */ |
| 415 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 412 | MDRV_SCREEN_ADD("main", RASTER) | |
| 413 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 414 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 416 | 415 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 417 | 416 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 418 | 417 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 1790 | 1790 | MDRV_CPU_PROGRAM_MAP(n7751_map,0) |
| 1791 | 1791 | MDRV_CPU_IO_MAP(n7751_portmap,0) |
| 1792 | 1792 | |
| 1793 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1794 | ||
| 1795 | 1793 | MDRV_MACHINE_RESET(system16a) |
| 1796 | 1794 | MDRV_NVRAM_HANDLER(system16a) |
| 1797 | 1795 | |
| 1798 | 1796 | /* video hardware */ |
| 1799 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1797 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1798 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1800 | 1799 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1801 | 1800 | MDRV_SCREEN_SIZE(342,262) /* to be verified */ |
| 1802 | 1801 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 28*8-1) |
| 1802 | ||
| 1803 | 1803 | MDRV_GFXDECODE(segas16a) |
| 1804 | 1804 | MDRV_PALETTE_LENGTH(2048*3) |
| 1805 | 1805 |
| r1711 | r1712 | |
|---|---|---|
| 1241 | 1241 | MDRV_MEMCARD_HANDLER(neogeo) |
| 1242 | 1242 | |
| 1243 | 1243 | /* video hardware */ |
| 1244 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1245 | 1244 | MDRV_VIDEO_START(neogeo) |
| 1246 | 1245 | MDRV_VIDEO_RESET(neogeo) |
| 1247 | 1246 | MDRV_VIDEO_UPDATE(neogeo) |
| 1248 | 1247 | MDRV_DEFAULT_LAYOUT(layout_neogeo) |
| 1249 | 1248 | |
| 1250 | MDRV_SCREEN_ADD("main", | |
| 1249 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1251 | 1250 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 1252 | 1251 | MDRV_SCREEN_RAW_PARAMS(NEOGEO_PIXEL_CLOCK, NEOGEO_HTOTAL, NEOGEO_HBEND, NEOGEO_HBSTART, NEOGEO_VTOTAL, NEOGEO_VBEND, NEOGEO_VBSTART) |
| 1253 | 1252 |
| r1711 | r1712 | |
|---|---|---|
| 1324 | 1324 | MDRV_CPU_PERIODIC_INT(irq2_line_hold, 480) |
| 1325 | 1325 | |
| 1326 | 1326 | MDRV_INTERLEAVE(32) |
| 1327 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1328 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(600)) | |
| 1329 | 1327 | |
| 1330 | 1328 | MDRV_MACHINE_START(konamigx) |
| 1331 | 1329 | MDRV_MACHINE_RESET(konamigx) |
| 1332 | 1330 | MDRV_NVRAM_HANDLER(konamigx_93C46) |
| 1333 | 1331 | |
| 1334 | 1332 | /* video hardware */ |
| 1335 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS | VIDEO_UPDATE_AFTER_VBLANK) | |
| 1333 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS | VIDEO_UPDATE_AFTER_VBLANK) | |
| 1334 | ||
| 1335 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1336 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1337 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(600)) | |
| 1336 | 1338 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 1337 | 1339 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 1338 | 1340 | MDRV_SCREEN_VISIBLE_AREA(24, 24+288-1, 16, 16+224-1) |
| 1341 | ||
| 1339 | 1342 | MDRV_PALETTE_LENGTH(8192) |
| 1340 | 1343 | |
| 1341 | 1344 | MDRV_VIDEO_START(konamigx_5bpp) |
| r1711 | r1712 | |
| 1358 | 1361 | static MACHINE_DRIVER_START( dragoonj ) |
| 1359 | 1362 | MDRV_IMPORT_FROM(konamigx) |
| 1360 | 1363 | MDRV_CPU_REPLACE("main", M68EC020, 26400000) // needs higher clock to stop sprite flickerings |
| 1364 | MDRV_SCREEN_MODIFY("main") | |
| 1361 | 1365 | MDRV_SCREEN_VISIBLE_AREA(40, 40+384-1, 16, 16+224-1) |
| 1362 | 1366 | MDRV_VIDEO_START(dragoonj) |
| 1363 | 1367 | MACHINE_DRIVER_END |
| r1711 | r1712 | |
| 1379 | 1383 | |
| 1380 | 1384 | static MACHINE_DRIVER_START( opengolf ) |
| 1381 | 1385 | MDRV_IMPORT_FROM(konamigx) |
| 1386 | MDRV_SCREEN_MODIFY("main") | |
| 1382 | 1387 | MDRV_SCREEN_VISIBLE_AREA(40, 40+384-1, 16, 16+224-1) |
| 1383 | 1388 | MDRV_GFXDECODE(opengolf) |
| 1384 | 1389 | MDRV_VIDEO_START(opengolf) |
| r1711 | r1712 | |
| 1389 | 1394 | |
| 1390 | 1395 | static MACHINE_DRIVER_START( racinfrc ) |
| 1391 | 1396 | MDRV_IMPORT_FROM(konamigx) |
| 1397 | MDRV_SCREEN_MODIFY("main") | |
| 1392 | 1398 | MDRV_SCREEN_VISIBLE_AREA(32, 32+384-1, 16, 16+224-1) |
| 1393 | 1399 | MDRV_GFXDECODE(racinfrc) |
| 1394 | 1400 | MDRV_VIDEO_START(racinfrc) |
| r1711 | r1712 | |
| 1406 | 1412 | |
| 1407 | 1413 | MDRV_VIDEO_START(konamigx_type3) |
| 1408 | 1414 | MDRV_PALETTE_LENGTH(16384) |
| 1415 | MDRV_SCREEN_MODIFY("main") | |
| 1409 | 1416 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 1410 | 1417 | MDRV_SCREEN_VISIBLE_AREA(0, 64*8-1, 0, 32*8-1) |
| 1411 | 1418 | MDRV_GFXDECODE(type34) |
| r1711 | r1712 | |
| 1418 | 1425 | MDRV_CPU_PROGRAM_MAP(gx_base_memmap, gx_type4_map) |
| 1419 | 1426 | MDRV_CPU_VBLANK_INT(konamigx_hbinterrupt, 262) |
| 1420 | 1427 | |
| 1428 | MDRV_SCREEN_MODIFY("main") | |
| 1421 | 1429 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 1422 | 1430 | MDRV_SCREEN_VISIBLE_AREA(0, 64*8-1, 0, 32*8-1) |
| 1423 | 1431 | MDRV_PALETTE_LENGTH(16384) |
| r1711 | r1712 | |
| 1428 | 1436 | static MACHINE_DRIVER_START( winspike ) |
| 1429 | 1437 | MDRV_IMPORT_FROM(konamigx) |
| 1430 | 1438 | |
| 1439 | MDRV_SCREEN_MODIFY("main") | |
| 1431 | 1440 | MDRV_SCREEN_VISIBLE_AREA(38, 38+384-1, 16, 16+224-1) |
| 1432 | 1441 | MDRV_VIDEO_START(winspike) |
| 1433 | 1442 | MACHINE_DRIVER_END |
| r1711 | r1712 | |
|---|---|---|
| 850 | 850 | MDRV_CPU_ADD_TAG("sub", M68000, MASTER_CLOCK_25MHz/4) |
| 851 | 851 | MDRV_CPU_PROGRAM_MAP(sub_map,0) |
| 852 | 852 | |
| 853 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 854 | ||
| 855 | 853 | MDRV_MACHINE_RESET(hangon) |
| 856 | 854 | MDRV_INTERLEAVE(100) |
| 857 | 855 | |
| 858 | 856 | /* video hardware */ |
| 859 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 860 | 857 | MDRV_GFXDECODE(segahang) |
| 861 | 858 | MDRV_PALETTE_LENGTH(2048*3) |
| 862 | 859 | |
| 863 | MDRV_SCREEN_ADD("main", | |
| 860 | MDRV_SCREEN_ADD("main", RASTER) | |
| 864 | 861 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 865 | 862 | MDRV_SCREEN_RAW_PARAMS(MASTER_CLOCK_25MHz/4, 400, 0, 320, 262, 0, 224) |
| 866 | 863 |
| r1711 | r1712 | |
|---|---|---|
| 311 | 311 | MDRV_CPU_IO_MAP(0,sprcros2_s_writeport) |
| 312 | 312 | MDRV_CPU_VBLANK_INT(sprcros2_s_interrupt,2) //2 nmis |
| 313 | 313 | |
| 314 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 315 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 316 | ||
| 317 | 314 | MDRV_MACHINE_START(sprcros2) |
| 318 | 315 | |
| 319 | 316 | /* video hardware */ |
| 320 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 317 | MDRV_SCREEN_ADD("main", RASTER) | |
| 318 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 319 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 321 | 320 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 322 | 321 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 323 | 322 | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 2*8, 30*8-1) |
| 323 | ||
| 324 | 324 | MDRV_GFXDECODE(sprcros2) |
| 325 | 325 | MDRV_PALETTE_LENGTH(768) |
| 326 | 326 |
| r1711 | r1712 | |
|---|---|---|
| 139 | 139 | { |
| 140 | 140 | int i; |
| 141 | 141 | |
| 142 | for (i = 0; i < 8; i++) | |
| 143 | palette_set_color_rgb(machine,i,pal1bit(i >> 2),pal1bit(i >> 0),pal1bit(i >> 1)); | |
| 144 | ||
| 145 | 142 | for (i = 0; i < 64; i++) |
| 146 | 143 | { |
| 147 | colortable[2*i+0] = i % 8; | |
| 148 | colortable[2*i+1] = i / 8; | |
| 144 | palette_set_color_rgb(machine,2*i+0,pal1bit(i >> 2),pal1bit(i >> 0),pal1bit(i >> 1)); | |
| 145 | palette_set_color_rgb(machine,2*i+1,pal1bit(i >> 5),pal1bit(i >> 4),pal1bit(i >> 3)); | |
| 149 | 146 | } |
| 150 | 147 | } |
| 151 | 148 | |
| r1711 | r1712 | |
| 612 | 609 | MDRV_CPU_IO_MAP(statriv2_readport,statriv2_writeport) |
| 613 | 610 | MDRV_CPU_VBLANK_INT(statriv2_interrupt,1) |
| 614 | 611 | |
| 615 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 616 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 617 | ||
| 618 | 612 | MDRV_NVRAM_HANDLER(statriv2) |
| 619 | 613 | |
| 620 | 614 | /* video hardware */ |
| 621 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 615 | MDRV_SCREEN_ADD("main", RASTER) | |
| 616 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 617 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 622 | 618 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 623 | 619 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 624 | 620 | MDRV_SCREEN_VISIBLE_AREA(4*8, 38*8-1, 0, 32*8-1) |
| 621 | ||
| 625 | 622 | MDRV_GFXDECODE(statriv2) |
| 626 | MDRV_PALETTE_LENGTH(8) | |
| 627 | MDRV_COLORTABLE_LENGTH(2*64) | |
| 623 | MDRV_PALETTE_LENGTH(2*64) | |
| 628 | 624 | |
| 629 | 625 | MDRV_PALETTE_INIT(statriv2) |
| 630 | 626 | MDRV_VIDEO_START(statriv2) |
| r1711 | r1712 | |
| 644 | 640 | MDRV_CPU_MODIFY("main") |
| 645 | 641 | MDRV_CPU_IO_MAP(statriv4_readport,statriv4_writeport) |
| 646 | 642 | |
| 643 | MDRV_SCREEN_MODIFY("main") | |
| 647 | 644 | MDRV_SCREEN_VISIBLE_AREA(2*8, 36*8-1, 0, 32*8-1) |
| 648 | 645 | MACHINE_DRIVER_END |
| 649 | 646 | |
| r1711 | r1712 | |
| 662 | 659 | MDRV_CPU_MODIFY("main") |
| 663 | 660 | MDRV_CPU_IO_MAP(trivquiz_readport,trivquiz_writeport) |
| 664 | 661 | |
| 662 | MDRV_SCREEN_MODIFY("main") | |
| 665 | 663 | MDRV_SCREEN_VISIBLE_AREA(2*8, 36*8-1, 0, 32*8-1) |
| 666 | 664 | MACHINE_DRIVER_END |
| 667 | 665 | |
| r1711 | r1712 | |
| 675 | 673 | |
| 676 | 674 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 677 | 675 | |
| 676 | MDRV_SCREEN_MODIFY("main") | |
| 678 | 677 | MDRV_SCREEN_VISIBLE_AREA(2*8, 36*8-1, 0, 32*8-1) |
| 679 | 678 | MACHINE_DRIVER_END |
| 680 | 679 | |
| r1711 | r1712 | |
| 688 | 687 | |
| 689 | 688 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 690 | 689 | |
| 690 | MDRV_SCREEN_MODIFY("main") | |
| 691 | 691 | MDRV_SCREEN_VISIBLE_AREA(2*8, 36*8-1, 0, 32*8-1) |
| 692 | 692 | MACHINE_DRIVER_END |
| 693 | 693 | |
| r1711 | r1712 | |
| 697 | 697 | |
| 698 | 698 | MDRV_NVRAM_HANDLER(quaquiz2) |
| 699 | 699 | |
| 700 | MDRV_SCREEN_MODIFY("main") | |
| 700 | 701 | MDRV_SCREEN_VISIBLE_AREA(4*8, 38*8-1, 0, 32*8-1) |
| 701 | 702 | MACHINE_DRIVER_END |
| 702 | 703 | |
| r1711 | r1712 | |
| 707 | 708 | MDRV_CPU_REPLACE("main",8085A,12400000/4) |
| 708 | 709 | MDRV_CPU_IO_MAP(hangman_readport,supertr2_writeport) |
| 709 | 710 | |
| 711 | MDRV_SCREEN_MODIFY("main") | |
| 710 | 712 | MDRV_SCREEN_VISIBLE_AREA(1*8, 35*8-1, 0, 32*8-1) |
| 711 | 713 | MACHINE_DRIVER_END |
| 712 | 714 |
| r1711 | r1712 | |
|---|---|---|
| 259 | 259 | |
| 260 | 260 | static VIDEO_START(carrera) |
| 261 | 261 | { |
| 262 | mc6845 = mc6845 | |
| 262 | mc6845 = devtag_get_token(machine, MC6845, "crtc" | |
| 263 | 263 | } |
| 264 | 264 | |
| 265 | 265 | static VIDEO_UPDATE(carrera) |
| r1711 | r1712 | |
| 309 | 309 | MDRV_CPU_IO_MAP(readport,writeport) |
| 310 | 310 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,1) |
| 311 | 311 | |
| 312 | /* video hardware */ | |
| 313 | MDRV_SCREEN_ADD("main", RASTER) | |
| 312 | 314 | MDRV_SCREEN_REFRESH_RATE(60) |
| 313 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 314 | ||
| 315 | /* video hardware */ | |
| 316 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 315 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 317 | 316 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 318 | 317 | MDRV_SCREEN_SIZE(512, 256) |
| 319 | 318 | MDRV_SCREEN_VISIBLE_AREA(0, 512-1, 0, 256-1) |
| 319 | ||
| 320 | 320 | MDRV_GFXDECODE(carrera) |
| 321 | 321 | MDRV_PALETTE_LENGTH(32) |
| 322 | 322 | MDRV_PALETTE_INIT(carrera) |
| 323 | 323 | MDRV_VIDEO_START(carrera) |
| 324 | 324 | MDRV_VIDEO_UPDATE(carrera) |
| 325 | 325 | |
| 326 | MDRV_DEVICE_ADD("crtc", MC6845) | |
| 327 | ||
| 326 | 328 | /* sound hardware */ |
| 327 | 329 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 328 | 330 |
| r1711 | r1712 | |
|---|---|---|
| 216 | 216 | MDRV_CPU_VBLANK_INT(irq0_line_hold,2) |
| 217 | 217 | |
| 218 | 218 | /* video hardware */ |
| 219 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 220 | 219 | MDRV_VIDEO_UPDATE(dorachan) |
| 221 | 220 | |
| 222 | MDRV_SCREEN_ADD("main", | |
| 221 | MDRV_SCREEN_ADD("main", RASTER) | |
| 223 | 222 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 224 | 223 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 225 | 224 | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 1*8, 31*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 340 | 340 | MDRV_INTERLEAVE(100) |
| 341 | 341 | |
| 342 | 342 | /* video hardware */ |
| 343 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 343 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 344 | 344 | MDRV_GFXDECODE(thunderj) |
| 345 | 345 | MDRV_PALETTE_LENGTH(2048) |
| 346 | 346 | |
| 347 | MDRV_SCREEN_ADD("main", | |
| 347 | MDRV_SCREEN_ADD("main", RASTER) | |
| 348 | 348 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 349 | 349 | /* note: these parameters are from published specs, not derived */ |
| 350 | 350 | /* the board uses a VAD chip to generate video signals */ |
| r1711 | r1712 | |
|---|---|---|
| 274 | 274 | MDRV_CPU_PROGRAM_MAP(ultraman_readmem_sound,ultraman_writemem_sound) |
| 275 | 275 | MDRV_CPU_IO_MAP(0,ultraman_writeport_sound) |
| 276 | 276 | |
| 277 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 278 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 279 | 277 | MDRV_INTERLEAVE(10) |
| 280 | 278 | |
| 281 | 279 | /* video hardware */ |
| 282 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS) | |
| 280 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 281 | ||
| 282 | MDRV_SCREEN_ADD("main", RASTER) | |
| 283 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 284 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 283 | 285 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 284 | 286 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 285 | 287 | MDRV_SCREEN_VISIBLE_AREA(14*8, (64-14)*8-1, 2*8, 30*8-1 ) |
| 288 | ||
| 286 | 289 | MDRV_PALETTE_LENGTH(8192) |
| 287 | 290 | |
| 288 | 291 | MDRV_VIDEO_START(ultraman) |
| r1711 | r1712 | |
|---|---|---|
| 305 | 305 | /* audio CPU */ |
| 306 | 306 | MDRV_CPU_PROGRAM_MAP(parodius_readmem_sound,parodius_writemem_sound) |
| 307 | 307 | /* NMIs are triggered by the 053260 */ |
| 308 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 309 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 310 | 308 | |
| 311 | 309 | MDRV_MACHINE_RESET(parodius) |
| 312 | 310 | |
| 313 | 311 | /* video hardware */ |
| 314 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS) | |
| 312 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 313 | ||
| 314 | MDRV_SCREEN_ADD("main", RASTER) | |
| 315 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 316 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 315 | 317 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 316 | 318 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 317 | 319 | MDRV_SCREEN_VISIBLE_AREA(14*8, (64-14)*8-1, 2*8, 30*8-1 ) |
| 320 | ||
| 318 | 321 | MDRV_PALETTE_LENGTH(2048) |
| 319 | 322 | |
| 320 | 323 | MDRV_VIDEO_START(parodius) |
| r1711 | r1712 | |
|---|---|---|
| 51 | 51 | #include "sound/sn76496.h" |
| 52 | 52 | |
| 53 | 53 | |
| 54 | extern UINT8 *sraider_grid_data; | |
| 55 | ||
| 54 | 56 | WRITE8_HANDLER( ladybug_videoram_w ); |
| 55 | 57 | WRITE8_HANDLER( ladybug_colorram_w ); |
| 56 | 58 | WRITE8_HANDLER( ladybug_flipscreen_w ); |
| r1711 | r1712 | |
| 631 | 633 | { |
| 632 | 634 | 8,8, /* 8*8 characters */ |
| 633 | 635 | 512, /* 512 characters */ |
| 634 | 1, /* | |
| 636 | 1, /* 1 bit | |
| 635 | 637 | { 0 }, |
| 636 | 638 | { 7, 6, 5, 4, 3, 2, 1, 0 }, |
| 637 | 639 | { 7*8, 6*8, 5*8, 4*8, 3*8, 2*8, 1*8, 0*8 }, |
| r1711 | r1712 | |
| 645 | 647 | GFXDECODE_END |
| 646 | 648 | |
| 647 | 649 | static GFXDECODE_START( sraider ) |
| 648 | GFXDECODE_ENTRY( REGION_GFX1, 0, charlayout, 0, 8 ) | |
| 649 | GFXDECODE_ENTRY( REGION_GFX2, 0, spritelayout, 4*8, 16 ) | |
| 650 | GFXDECODE_ENTRY( REGION_GFX2, 0, spritelayout2, 4*8, 16 ) | |
| 651 | GFXDECODE_ENTRY( REGION_USER1, 0, gridlayout, 32+64, 1 ) | |
| 652 | GFXDECODE_ENTRY( REGION_USER1, 0, gridlayout2, 32+64, 1 ) | |
| 650 | GFXDECODE_ENTRY( REGION_GFX1, 0, charlayout, 0, 8 ) | |
| 651 | GFXDECODE_ENTRY( REGION_GFX2, 0, spritelayout, 4*8, 16 ) | |
| 652 | GFXDECODE_ENTRY( REGION_GFX2, 0, spritelayout2, 4*8, 16 ) | |
| 653 | GFXDECODE_ENTRY( REGION_GFX3, 0, gridlayout, 4*8+4*16+32, 1 ) | |
| 654 | GFXDECODE_ENTRY( REGION_GFX3, 0, gridlayout2, 4*8+4*16+32, 1 ) | |
| 653 | 655 | GFXDECODE_END |
| 654 | 656 | |
| 655 | 657 | |
| r1711 | r1712 | |
| 660 | 662 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 661 | 663 | MDRV_CPU_VBLANK_INT(ladybug_interrupt,1) |
| 662 | 664 | |
| 663 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 664 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 665 | ||
| 666 | 665 | /* video hardware */ |
| 667 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 666 | MDRV_SCREEN_ADD("main", RASTER) | |
| 667 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 668 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 668 | 669 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 669 | 670 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 670 | 671 | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 4*8, 28*8-1) |
| 672 | ||
| 671 | 673 | MDRV_GFXDECODE(ladybug) |
| 672 | MDRV_PALETTE_LENGTH(32) | |
| 673 | MDRV_COLORTABLE_LENGTH(4*24) | |
| 674 | MDRV_PALETTE_LENGTH(4*8+4*16) | |
| 674 | 675 | |
| 675 | 676 | MDRV_PALETTE_INIT(ladybug) |
| 676 | 677 | MDRV_VIDEO_START(ladybug) |
| r1711 | r1712 | |
| 710 | 711 | AM_RANGE(0x8000, 0x8000) AM_READ(sraider_sound_low_r) |
| 711 | 712 | AM_RANGE(0xa000, 0xa000) AM_READ(sraider_sound_high_r) |
| 712 | 713 | AM_RANGE(0xc000, 0xc000) AM_READ(MRA8_NOP) //some kind of sync |
| 713 | AM_RANGE(0xe000, 0xe0ff) AM_WRITE(sraider_grid_data | |
| 714 | AM_RANGE(0xe000, 0xe0ff) AM_WRITE(MWA8_RAM) AM_BASE(&sraider_grid_data | |
| 714 | 715 | AM_RANGE(0xe800, 0xe800) AM_WRITE(sraider_io_w) |
| 715 | 716 | ADDRESS_MAP_END |
| 716 | 717 | |
| r1711 | r1712 | |
| 737 | 738 | MDRV_CPU_IO_MAP(sraider_cpu2_io,0) |
| 738 | 739 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 739 | 740 | |
| 740 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 741 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 742 | ||
| 743 | 741 | /* video hardware */ |
| 744 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 742 | MDRV_SCREEN_ADD("main", RASTER) | |
| 743 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 744 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 745 | 745 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 746 | 746 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 747 | 747 | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 4*8, 28*8-1) |
| 748 | ||
| 748 | 749 | MDRV_GFXDECODE(sraider) |
| 749 | MDRV_PALETTE_LENGTH(65) | |
| 750 | MDRV_COLORTABLE_LENGTH(32+64+2) | |
| 750 | MDRV_PALETTE_LENGTH(4*8+4*16+32+2) | |
| 751 | 751 | |
| 752 | 752 | MDRV_PALETTE_INIT(sraider) |
| 753 | 753 | MDRV_VIDEO_START(sraider) |
| r1711 | r1712 | |
| 969 | 969 | ROM_LOAD( "sraid-s7.m2", 0x0000, 0x1000, CRC(299f8e07) SHA1(1de71f251286088487da7285d6f8070147002af5) ) |
| 970 | 970 | ROM_LOAD( "sraid-s8.n2", 0x1000, 0x1000, CRC(57ba8888) SHA1(2aa1a5f682d146a55a96e471bb78e5c60da02bf9) ) |
| 971 | 971 | |
| 972 | ROM_REGION( 0x1000, REGION_GFX3, ROMREGION_DISPOSE ) /* fixed portion of the grid */ | |
| 973 | ROM_LOAD( "sraid-s9.f6", 0x0000, 0x1000, CRC(2380b90f) SHA1(0310554e3f2ec973c2bb6e816d04e5c0c1e0a0b9) ) | |
| 974 | ||
| 972 | 975 | ROM_REGION( 0x0060, REGION_PROMS, 0 ) |
| 973 | 976 | ROM_LOAD( "srpr10-1.a2", 0x0000, 0x0020, CRC(121fdb99) SHA1(3bc092da40beb129a4df3db2f55d22bbbcf7bad8) ) |
| 974 | 977 | ROM_LOAD( "srpr10-2.l3", 0x0020, 0x0020, CRC(88b67e70) SHA1(e21ee2939e96dffee101bd92c62ed975b6b64001) ) |
| 975 | 978 | ROM_LOAD( "srpr10-3.c1", 0x0040, 0x0020, CRC(27fa3a50) SHA1(7cf59b7a37c156640d6ea91554d1c4276c1780e0) ) /* ?? */ |
| 976 | ||
| 977 | /* fixed portion of the grid */ | |
| 978 | ROM_REGION( 0x1000, REGION_USER1, 0 ) | |
| 979 | ROM_LOAD( "sraid-s9.f6", 0x0000, 0x1000, CRC(2380b90f) SHA1(0310554e3f2ec973c2bb6e816d04e5c0c1e0a0b9) ) | |
| 980 | 979 | ROM_END |
| 981 | 980 | |
| 982 | 981 |
| r1711 | r1712 | |
|---|---|---|
| 241 | 241 | MDRV_CPU_PROGRAM_MAP(main_map, 0) |
| 242 | 242 | MDRV_CPU_PERIODIC_INT(irq1_line_hold, (double)MASTER_CLOCK / 4096 / 12) |
| 243 | 243 | |
| 244 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 245 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 246 | ||
| 247 | 244 | MDRV_NVRAM_HANDLER(generic_1fill) |
| 248 | 245 | |
| 249 | 246 | /* video hardware */ |
| 250 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_VECTOR ) | |
| 251 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) | |
| 247 | MDRV_SCREEN_ADD("main", VECTOR) | |
| 248 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 252 | 249 | MDRV_SCREEN_SIZE(400, 300) |
| 253 | 250 | MDRV_SCREEN_VISIBLE_AREA(0, 900, 0, 600) |
| 251 | ||
| 254 | 252 | MDRV_PALETTE_LENGTH(32768) |
| 255 | 253 | |
| 256 | 254 | MDRV_VIDEO_START(avg_quantum) |
| r1711 | r1712 | |
|---|---|---|
| 516 | 516 | MDRV_CPU_PROGRAM_MAP(yamato_sound_readmem,yamato_sound_writemem) |
| 517 | 517 | MDRV_CPU_IO_MAP(yamato_sound_readport,yamato_sound_writeport) |
| 518 | 518 | |
| 519 | /* video hardware */ | |
| 520 | MDRV_SCREEN_ADD("main", RASTER) | |
| 519 | 521 | MDRV_SCREEN_REFRESH_RATE(60) |
| 520 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 521 | ||
| 522 | /* video hardware */ | |
| 523 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 522 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 524 | 523 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 525 | 524 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 526 | 525 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 526 | ||
| 527 | 527 | MDRV_GFXDECODE(yamato) |
| 528 | 528 | MDRV_PALETTE_LENGTH(96+256) |
| 529 | 529 | |
| r1711 | r1712 | |
| 549 | 549 | MDRV_CPU_IO_MAP(toprollr_io_map,0) |
| 550 | 550 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,1) |
| 551 | 551 | |
| 552 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 553 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 554 | ||
| 555 | 552 | /* video hardware */ |
| 556 | 553 | |
| 557 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 554 | ||
| 555 | MDRV_SCREEN_ADD("main", RASTER) | |
| 556 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 557 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 558 | 558 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 559 | 559 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 560 | 560 | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 2*8, 30*8-1) |
| 561 | ||
| 561 | 562 | MDRV_GFXDECODE(toprollr) |
| 562 | 563 | MDRV_PALETTE_LENGTH(32*5) |
| 563 | 564 | MDRV_PALETTE_INIT(toprollr) |
| r1711 | r1712 | |
|---|---|---|
| 303 | 303 | MDRV_CPU_PROGRAM_MAP(sound_map, 0) |
| 304 | 304 | MDRV_CPU_VBLANK_INT(irq0_line_hold, 4) // IRQs connected to 32V |
| 305 | 305 | // NMIs are caused by the main CPU |
| 306 | // video hardware | |
| 307 | ||
| 308 | MDRV_SCREEN_ADD("main", RASTER) | |
| 306 | 309 | MDRV_SCREEN_REFRESH_RATE(60) |
| 307 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 308 | ||
| 309 | // video hardware | |
| 310 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 310 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 311 | 311 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 312 | 312 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 313 | 313 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 314 | ||
| 314 | 315 | MDRV_GFXDECODE(blueprnt) |
| 315 | 316 | MDRV_PALETTE_LENGTH(128*4+8) |
| 316 | 317 |
| r1711 | r1712 | |
|---|---|---|
| 668 | 668 | /* audio CPU */ |
| 669 | 669 | MDRV_CPU_PROGRAM_MAP(combasc_readmem_sound,combasc_writemem_sound) |
| 670 | 670 | |
| 671 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 672 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 673 | 671 | MDRV_INTERLEAVE(20) |
| 674 | 672 | |
| 675 | 673 | MDRV_MACHINE_RESET(combasc) |
| 676 | 674 | |
| 677 | 675 | /* video hardware */ |
| 678 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 676 | MDRV_SCREEN_ADD("main", RASTER) | |
| 677 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 678 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 679 | 679 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 680 | 680 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 681 | 681 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 682 | ||
| 682 | 683 | MDRV_GFXDECODE(combasc) |
| 683 | 684 | MDRV_PALETTE_LENGTH(8*16*16) |
| 684 | 685 | |
| r1711 | r1712 | |
| 710 | 711 | /* audio CPU */ |
| 711 | 712 | MDRV_CPU_PROGRAM_MAP(combasc_readmem_sound,combasc_writemem_sound) /* FAKE */ |
| 712 | 713 | |
| 713 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 714 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 715 | 714 | MDRV_INTERLEAVE(20) |
| 716 | 715 | |
| 717 | 716 | MDRV_MACHINE_RESET(combasc) |
| 718 | 717 | |
| 719 | 718 | /* video hardware */ |
| 720 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 719 | MDRV_SCREEN_ADD("main", RASTER) | |
| 720 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 721 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 721 | 722 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 722 | 723 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 723 | 724 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 725 | ||
| 724 | 726 | MDRV_GFXDECODE(combascb) |
| 725 | 727 | MDRV_PALETTE_LENGTH(8*16*16) |
| 726 | 728 |
| r1711 | r1712 | |
|---|---|---|
| 120 | 120 | AM_RANGE(0x0000, 0x1fff) AM_WRITE(K007342_w) /* Color RAM + Video RAM */ |
| 121 | 121 | AM_RANGE(0x2000, 0x21ff) AM_WRITE(K007420_w) /* Sprite RAM */ |
| 122 | 122 | AM_RANGE(0x2200, 0x23ff) AM_WRITE(K007342_scroll_w) /* Scroll RAM */ |
| 123 | AM_RANGE(0x2400, 0x247f) AM_WRITE( | |
| 123 | AM_RANGE(0x2400, 0x247f) AM_WRITE(MWA8 | |
| 124 | 124 | AM_RANGE(0x2600, 0x2607) AM_WRITE(K007342_vreg_w) /* Video Registers */ |
| 125 | 125 | AM_RANGE(0x2e80, 0x2e80) AM_WRITE(rockrage_sh_irqtrigger_w)/* cause interrupt on audio CPU */ |
| 126 | 126 | AM_RANGE(0x2ec0, 0x2ec0) AM_WRITE(watchdog_reset_w) /* watchdog reset */ |
| r1711 | r1712 | |
| 301 | 301 | /* audio CPU */ |
| 302 | 302 | MDRV_CPU_PROGRAM_MAP(rockrage_readmem_sound,rockrage_writemem_sound) |
| 303 | 303 | |
| 304 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 305 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 306 | ||
| 307 | 304 | /* video hardware */ |
| 308 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 305 | MDRV_SCREEN_ADD("main", RASTER) | |
| 306 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 307 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 309 | 308 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 310 | 309 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 311 | 310 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 311 | ||
| 312 | 312 | MDRV_GFXDECODE(rockrage) |
| 313 | MDRV_PALETTE_LENGTH(64) | |
| 314 | MDRV_COLORTABLE_LENGTH(64 + 2*16*16) | |
| 313 | MDRV_PALETTE_LENGTH(64 + 2*16*16) | |
| 315 | 314 | |
| 316 | 315 | MDRV_PALETTE_INIT(rockrage) |
| 317 | 316 | MDRV_VIDEO_START(rockrage) |
| r1711 | r1712 | |
|---|---|---|
| 229 | 229 | MDRV_CPU_IO_MAP(ttchamp_io,0) |
| 230 | 230 | MDRV_CPU_VBLANK_INT(ttchamp_irq,1) |
| 231 | 231 | |
| 232 | /* video hardware */ | |
| 233 | MDRV_SCREEN_ADD("main", RASTER) | |
| 232 | 234 | MDRV_SCREEN_REFRESH_RATE(60) |
| 233 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 234 | ||
| 235 | /* video hardware */ | |
| 236 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 235 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 237 | 236 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 238 | 237 | MDRV_SCREEN_SIZE(1024,1024) |
| 239 | 238 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 0, 200-1) |
| 239 | ||
| 240 | 240 | MDRV_PALETTE_LENGTH(0x8000) |
| 241 | 241 | |
| 242 | 242 | MDRV_VIDEO_START(ttchamp) |
| r1711 | r1712 | |
|---|---|---|
| 200 | 200 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 201 | 201 | |
| 202 | 202 | /* video hardware */ |
| 203 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 204 | 203 | MDRV_PALETTE_LENGTH(32768) |
| 205 | 204 | |
| 206 | MDRV_SCREEN_ADD("main", | |
| 205 | MDRV_SCREEN_ADD("main", RASTER) | |
| 207 | 206 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 208 | 207 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, 505, 0, 399, 289, 0, 253) |
| 209 | 208 |
| r1711 | r1712 | |
|---|---|---|
| 394 | 394 | MDRV_CPU_ADD(Z80,12000000/2) /* 6 MHz ?*/ |
| 395 | 395 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 396 | 396 | |
| 397 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 398 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 399 | ||
| 400 | 397 | MDRV_MACHINE_RESET(egghunt) |
| 401 | 398 | |
| 402 | 399 | /* video hardware */ |
| 403 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 400 | MDRV_SCREEN_ADD("main", RASTER) | |
| 401 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 402 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 404 | 403 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 405 | 404 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 406 | 405 | MDRV_SCREEN_VISIBLE_AREA(8*8, 56*8-1, 1*8, 31*8-1) |
| 406 | ||
| 407 | 407 | MDRV_GFXDECODE(egghunt) |
| 408 | 408 | MDRV_PALETTE_LENGTH(0x800) |
| 409 | 409 |
| r1711 | r1712 | |
|---|---|---|
| 443 | 443 | MDRV_CPU_ADD(M68705,8000000/2) /* 4 MHz */ |
| 444 | 444 | MDRV_CPU_PROGRAM_MAP(mcu_readmem,mcu_writemem) |
| 445 | 445 | |
| 446 | /* video hardware */ | |
| 447 | MDRV_SCREEN_ADD("main", RASTER) | |
| 446 | 448 | MDRV_SCREEN_REFRESH_RATE(60) |
| 447 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 448 | ||
| 449 | /* video hardware */ | |
| 450 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 449 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 451 | 450 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 452 | 451 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 453 | 452 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 453 | ||
| 454 | 454 | MDRV_GFXDECODE(buggychl) |
| 455 | 455 | MDRV_PALETTE_LENGTH(128+128) |
| 456 | 456 |
| r1711 | r1712 | |
|---|---|---|
| 1263 | 1263 | INPUT_PORTS_END |
| 1264 | 1264 | |
| 1265 | 1265 | |
| 1266 | static INPUT_PORTS_START( pclubjv2 ) | |
| 1267 | PORT_INCLUDE( systemc_generic ) | |
| 1266 | 1268 | |
| 1269 | PORT_MODIFY("P1") | |
| 1270 | PORT_BIT( 0x0f, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* Probably Unused */ | |
| 1271 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Ok") | |
| 1272 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Cancel") | |
| 1273 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY | |
| 1274 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY | |
| 1275 | ||
| 1276 | PORT_MODIFY("P2") | |
| 1277 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* Probably Unused */ | |
| 1278 | ||
| 1279 | PORT_MODIFY("SERVICE") | |
| 1280 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* Probably Unused */ | |
| 1281 | ||
| 1282 | PORT_MODIFY("COINAGE") | |
| 1283 | PORT_DIPNAME( 0x07, 0x07, "Coins per Credit (Normal / Alternate)" ) | |
| 1284 | PORT_DIPSETTING( 0x00, "25 / 30" ) //7C1C | |
| 1285 | PORT_DIPSETTING( 0x01, "6 / 7" ) //6C1C | |
| 1286 | PORT_DIPSETTING( 0x02, "10 / 12" ) //5C1C | |
| 1287 | PORT_DIPSETTING( 0x03, "1 / 2" ) //4C1C | |
| 1288 | PORT_DIPSETTING( 0x07, "3 / Free Play" ) //3C1C | |
| 1289 | PORT_DIPSETTING( 0x04, "15 / 20" ) //2C1C | |
| 1290 | PORT_DIPSETTING( 0x05, "4 / 5" ) //1C1C | |
| 1291 | PORT_DIPSETTING( 0x06, "8 / 9" ) //FP | |
| 1292 | PORT_DIPNAME( 0x08, 0x08, "Alternate Coinage" ) | |
| 1293 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 1294 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1295 | PORT_DIPNAME( 0x10, 0x10, "Unknown 4-5" ) | |
| 1296 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 1297 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1298 | PORT_DIPNAME( 0x20, 0x20, "Unknown 4-6" ) | |
| 1299 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 1300 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1301 | PORT_DIPNAME( 0x40, 0x40, "Unknown 4-7" ) | |
| 1302 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 1303 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1304 | PORT_DIPNAME( 0x80, 0x80, "Unknown 4-8" ) | |
| 1305 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 1306 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1307 | ||
| 1308 | PORT_MODIFY("DSW") | |
| 1309 | PORT_DIPNAME( 0x01, 0x01, "Unknown 5-1" ) | |
| 1310 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 1311 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1312 | PORT_DIPNAME( 0x02, 0x02, "Unknown 5-2" ) | |
| 1313 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 1314 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1315 | PORT_DIPNAME( 0x04, 0x04, "Unknown 5-3" ) | |
| 1316 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 1317 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1318 | PORT_DIPNAME( 0x08, 0x08, "Unknown 5-4" ) | |
| 1319 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 1320 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1321 | PORT_DIPNAME( 0x10, 0x10, "Unknown 5-5" ) | |
| 1322 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 1323 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1324 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Demo_Sounds )) | |
| 1325 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1326 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 1327 | PORT_DIPNAME( 0x40, 0x40, "Unknown 5-7" ) | |
| 1328 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 1329 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1330 | PORT_DIPNAME( 0x80, 0x80, "Unknown 5-8" ) | |
| 1331 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 1332 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1333 | INPUT_PORTS_END | |
| 1334 | ||
| 1267 | 1335 | /****************************************************************************** |
| 1268 | 1336 | Sound interfaces |
| 1269 | 1337 | ******************************************************************************/ |
| r1711 | r1712 | |
| 1299 | 1367 | MDRV_CPU_PROGRAM_MAP(main_map,0) |
| 1300 | 1368 | MDRV_CPU_VBLANK_INT(genesis_vblank_interrupt,1) |
| 1301 | 1369 | |
| 1302 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1303 | ||
| 1304 | 1370 | MDRV_MACHINE_START(segac2) |
| 1305 | 1371 | MDRV_MACHINE_RESET(segac2) |
| 1306 | 1372 | MDRV_NVRAM_HANDLER(generic_randfill) |
| 1307 | 1373 | |
| 1308 | 1374 | /* video hardware */ |
| 1309 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS) | |
| 1375 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS) | |
| 1376 | ||
| 1377 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1378 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1310 | 1379 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1311 | 1380 | MDRV_SCREEN_SIZE(342,262) |
| 1312 | 1381 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 223) |
| 1382 | ||
| 1313 | 1383 | MDRV_PALETTE_LENGTH(2048) |
| 1314 | 1384 | |
| 1315 | 1385 | MDRV_VIDEO_START(segac2) |
| r1711 | r1712 | |
| 2191 | 2261 | |
| 2192 | 2262 | /* Atlus Print Club 'Games' (C-2 Hardware, might not be possible to support them because they use camera + printer, really just put here for reference) */ |
| 2193 | 2263 | GAME( 1995, pclubj, 0, segac2, pclub, pclub, ROT0, "Atlus", "Print Club (Japan Vol.1)", GAME_NOT_WORKING ) |
| 2194 | GAME( 1995, pclubjv2, pclubj, segac2, pclub, pclubjv2, ROT0, "Atlus", "Print Club (Japan Vol.2)", GAME_NOT_WORKING ) | |
| 2195 | GAME( 1996, pclubjv4, pclubj, segac2, pclub, pclubjv4, ROT0, "Atlus", "Print Club (Japan Vol.4)", GAME_NOT_WORKING ) | |
| 2196 | GAME( 1996, pclubjv5, pclubj, segac2, pclub, pclubjv5, ROT0, "Atlus", "Print Club (Japan Vol.5)", GAME_NOT_WORKING ) | |
| 2264 | GAME( 1995, pclubjv2, pclubj, segac2, pclubjv2, pclubjv2, ROT0, "Atlus", "Print Club (Japan Vol.2)", GAME_NOT_WORKING ) | |
| 2265 | GAME( 1996, pclubjv4, pclubj, segac2, pclubjv2, pclubjv4, ROT0, "Atlus", "Print Club (Japan Vol.4)", GAME_NOT_WORKING ) | |
| 2266 | GAME( 1996, pclubjv5, pclubj, segac2, pclubjv2, pclubjv5, ROT0, "Atlus", "Print Club (Japan Vol.5)", GAME_NOT_WORKING ) |
| r1711 | r1712 | |
|---|---|---|
| 284 | 284 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 285 | 285 | // MDRV_CPU_VBLANK_INT(nmi_line_pulse,1) |
| 286 | 286 | |
| 287 | /* video hardware */ | |
| 288 | MDRV_SCREEN_ADD("main", RASTER) | |
| 287 | 289 | MDRV_SCREEN_REFRESH_RATE(55) |
| 288 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 289 | ||
| 290 | /* video hardware */ | |
| 291 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 290 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 292 | 291 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 293 | 292 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 294 | 293 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 294 | ||
| 295 | 295 | MDRV_GFXDECODE(gotcha) |
| 296 | 296 | MDRV_PALETTE_LENGTH(768) |
| 297 | 297 |
| r1711 | r1712 | |
|---|---|---|
| 8 | 8 | ***************************************************************************/ |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 12 | 11 | #include "includes/starshp1.h" |
| 13 | 12 | |
| 14 | 13 | int starshp1_attract; |
| r1711 | r1712 | |
| 23 | 22 | } |
| 24 | 23 | |
| 25 | 24 | |
| 26 | static void starshp1_write_palette(running_machine *machine, int inverse) | |
| 27 | { | |
| 28 | palette_set_color(machine, inverse ? 7 : 0, MAKE_RGB(0x00, 0x00, 0x00)); | |
| 29 | palette_set_color(machine, inverse ? 6 : 1, MAKE_RGB(0x1e, 0x1e, 0x1e)); | |
| 30 | palette_set_color(machine, inverse ? 5 : 2, MAKE_RGB(0x4e, 0x4e, 0x4e)); | |
| 31 | palette_set_color(machine, inverse ? 4 : 3, MAKE_RGB(0x6c, 0x6c, 0x6c)); | |
| 32 | palette_set_color(machine, inverse ? 3 : 4, MAKE_RGB(0x93, 0x93, 0x93)); | |
| 33 | palette_set_color(machine, inverse ? 2 : 5, MAKE_RGB(0xb1, 0xb1, 0xb1)); | |
| 34 | palette_set_color(machine, inverse ? 1 : 6, MAKE_RGB(0xe1, 0xe1, 0xe1)); | |
| 35 | palette_set_color(machine, inverse ? 0 : 7, MAKE_RGB(0xff, 0xff, 0xff)); | |
| 36 | } | |
| 37 | ||
| 38 | ||
| 39 | static PALETTE_INIT( starshp1 ) | |
| 40 | { | |
| 41 | static const UINT16 colortable_source[] = | |
| 42 | { | |
| 43 | 0, 3, /* for the alpha numerics */ | |
| 44 | 0, 2, /* for the sprites (Z=0) */ | |
| 45 | 0, 5, /* for the sprites (Z=1) */ | |
| 46 | 0, 2, 4, 6, /* for the spaceship (EXPLODE=0) */ | |
| 47 | 0, 6, 6, 7 /* for the spaceship (EXPLODE=1) */ | |
| 48 | }; | |
| 49 | ||
| 50 | starshp1_write_palette(machine, 0); | |
| 51 | ||
| 52 | memcpy(colortable, colortable_source, sizeof(colortable_source)); | |
| 53 | } | |
| 54 | ||
| 55 | ||
| 56 | 25 | static WRITE8_HANDLER( starshp1_audio_w ) |
| 57 | 26 | { |
| 58 | 27 | data &= 1; |
| r1711 | r1712 | |
| 177 | 146 | starshp1_starfield_kill = data; |
| 178 | 147 | break; |
| 179 | 148 | case 4: |
| 180 | starshp1_ | |
| 149 | starshp1_ | |
| 181 | 150 | break; |
| 182 | 151 | case 5: |
| 183 | 152 | /* BLACK HOLE, not used */ |
| r1711 | r1712 | |
| 337 | 306 | |
| 338 | 307 | /* video hardware */ |
| 339 | 308 | |
| 340 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 309 | ||
| 310 | MDRV_SCREEN_ADD("main", RASTER) | |
| 341 | 311 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 342 | 312 | MDRV_SCREEN_RAW_PARAMS(STARSHP1_PIXEL_CLOCK, STARSHP1_HTOTAL, STARSHP1_HBEND, STARSHP1_HBSTART, STARSHP1_VTOTAL, STARSHP1_VBEND, STARSHP1_VBSTART) |
| 313 | ||
| 343 | 314 | MDRV_GFXDECODE(starshp1) |
| 344 | MDRV_PALETTE_LENGTH(8) | |
| 345 | MDRV_COLORTABLE_LENGTH(14) | |
| 315 | MDRV_PALETTE_LENGTH(19) | |
| 346 | 316 | MDRV_PALETTE_INIT(starshp1) |
| 347 | 317 | |
| 348 | 318 | MDRV_VIDEO_START(starshp1) |
| r1711 | r1712 | |
|---|---|---|
| 226 | 226 | MDRV_CPU_PROGRAM_MAP(bigstrkb_readmem,bigstrkb_writemem) |
| 227 | 227 | MDRV_CPU_VBLANK_INT(irq6_line_hold,1) |
| 228 | 228 | |
| 229 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 230 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 231 | ||
| 232 | 229 | MDRV_GFXDECODE(bigstrkb) |
| 233 | 230 | |
| 234 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 231 | MDRV_SCREEN_ADD("main", RASTER) | |
| 232 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 233 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 235 | 234 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 236 | 235 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 237 | 236 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 394 | 394 | MDRV_CPU_PROGRAM_MAP(i8039_readmem,i8039_writemem) |
| 395 | 395 | MDRV_CPU_IO_MAP(i8039_readport,i8039_writeport) |
| 396 | 396 | |
| 397 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 398 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 399 | 397 | MDRV_INTERLEAVE(50) /* slices per frame */ |
| 400 | 398 | |
| 401 | 399 | MDRV_MACHINE_RESET(pandoras) |
| 402 | 400 | |
| 403 | 401 | /* video hardware */ |
| 404 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 402 | MDRV_SCREEN_ADD("main", RASTER) | |
| 403 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 404 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 405 | 405 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 406 | 406 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 407 | 407 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 408 | ||
| 408 | 409 | MDRV_GFXDECODE(pandoras) |
| 409 | 410 | MDRV_PALETTE_LENGTH(16*16+16*16) |
| 410 | 411 |
| r1711 | r1712 | |
|---|---|---|
| 3876 | 3876 | |
| 3877 | 3877 | MDRV_MACHINE_START(f2) |
| 3878 | 3878 | |
| 3879 | /* video hardware */ | |
| 3880 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3879 | 3881 | MDRV_SCREEN_REFRESH_RATE(60) |
| 3880 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION /* frames per second, vblank duration */) | |
| 3881 | ||
| 3882 | /* video hardware */ | |
| 3883 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 3882 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0) /* frames per second, vblank duration */) | |
| 3884 | 3883 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3885 | 3884 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 3886 | 3885 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 30*8-1) |
| 3886 | ||
| 3887 | 3887 | MDRV_GFXDECODE(taitof2) |
| 3888 | 3888 | MDRV_PALETTE_LENGTH(4096) |
| 3889 | 3889 | |
| r1711 | r1712 | |
| 4328 | 4328 | /* audio CPU */ |
| 4329 | 4329 | MDRV_CPU_PROGRAM_MAP(camltrya_sound_readmem,camltrya_sound_writemem) |
| 4330 | 4330 | |
| 4331 | /* video hardware */ | |
| 4332 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4331 | 4333 | MDRV_SCREEN_REFRESH_RATE(60) |
| 4332 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 4333 | ||
| 4334 | /* video hardware */ | |
| 4335 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 4334 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 4336 | 4335 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 4337 | 4336 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 4338 | 4337 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 30*8-1) |
| 4338 | ||
| 4339 | 4339 | MDRV_GFXDECODE(pivot) |
| 4340 | 4340 | MDRV_PALETTE_LENGTH(4096) |
| 4341 | 4341 | |
| r1711 | r1712 | |
| 4370 | 4370 | /* audio CPU */ |
| 4371 | 4371 | MDRV_CPU_PROGRAM_MAP(driveout_sound_readmem,driveout_sound_writemem) |
| 4372 | 4372 | |
| 4373 | /* video hardware */ | |
| 4374 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4373 | 4375 | MDRV_SCREEN_REFRESH_RATE(60) |
| 4374 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 4375 | ||
| 4376 | /* video hardware */ | |
| 4377 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 4376 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 4378 | 4377 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 4379 | 4378 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 4380 | 4379 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 30*8-1) |
| 4380 | ||
| 4381 | 4381 | MDRV_GFXDECODE(pivot) |
| 4382 | 4382 | MDRV_PALETTE_LENGTH(4096) |
| 4383 | 4383 |
| r1711 | r1712 | |
|---|---|---|
| 554 | 554 | MDRV_CPU_PROGRAM_MAP(gberet_map, 0) |
| 555 | 555 | MDRV_CPU_VBLANK_INT(gberet_interrupt, 32) // 1 IRQ + 16 NMI (generated by a custom IC) |
| 556 | 556 | |
| 557 | // video hardware | |
| 558 | ||
| 559 | MDRV_SCREEN_ADD("main", RASTER) | |
| 557 | 560 | MDRV_SCREEN_REFRESH_RATE(30) |
| 558 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_30HZ_VBLANK_DURATION) | |
| 559 | ||
| 560 | // video hardware | |
| 561 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 561 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 562 | 562 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 563 | 563 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 564 | 564 | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 2*8, 30*8-1) |
| 565 | ||
| 565 | 566 | MDRV_GFXDECODE(gberet) |
| 566 | 567 | MDRV_PALETTE_LENGTH(2*16*16) |
| 567 | 568 | |
| r1711 | r1712 | |
| 584 | 585 | MDRV_CPU_PROGRAM_MAP(gberetb_map, 0) |
| 585 | 586 | MDRV_CPU_VBLANK_INT(gberet_interrupt, 16) // 1 IRQ + 8 NMI |
| 586 | 587 | |
| 588 | MDRV_SCREEN_MODIFY("main") | |
| 587 | 589 | MDRV_SCREEN_REFRESH_RATE(60) |
| 588 | MDRV_SCREEN_VBLANK_TIME( | |
| 590 | MDRV_SCREEN_VBLANK_TIME( | |
| 589 | 591 | |
| 590 | 592 | // video hardware |
| 591 | 593 | MDRV_GFXDECODE(gberetb) |
| r1711 | r1712 | |
| 601 | 603 | MDRV_CPU_PROGRAM_MAP(mrgoemon_map, 0) |
| 602 | 604 | MDRV_CPU_VBLANK_INT(gberet_interrupt, 16) // 1 IRQ + 8 NMI |
| 603 | 605 | |
| 606 | MDRV_SCREEN_MODIFY("main") | |
| 604 | 607 | MDRV_SCREEN_REFRESH_RATE(60) |
| 605 | MDRV_SCREEN_VBLANK_TIME( | |
| 608 | MDRV_SCREEN_VBLANK_TIME( | |
| 606 | 609 | MACHINE_DRIVER_END |
| 607 | 610 | |
| 608 | 611 | /* ROMs */ |
| r1711 | r1712 | |
|---|---|---|
| 494 | 494 | MDRV_CPU_PROGRAM_MAP(readmem_cpu2,writemem_cpu2) |
| 495 | 495 | MDRV_CPU_PERIODIC_INT(irq0_line_hold,120) |
| 496 | 496 | |
| 497 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 498 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 499 | 497 | MDRV_INTERLEAVE(10) |
| 500 | 498 | |
| 501 | 499 | MDRV_MACHINE_RESET(stfight) |
| 502 | 500 | |
| 503 | 501 | /* video hardware */ |
| 504 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 502 | MDRV_SCREEN_ADD("main", RASTER) | |
| 503 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 504 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 505 | 505 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 506 | 506 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 507 | 507 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 508 | ||
| 508 | 509 | MDRV_GFXDECODE(stfight) |
| 509 | 510 | MDRV_PALETTE_LENGTH(16*4+16*16+16*16+16*16) |
| 510 | 511 |
| r1711 | r1712 | |
|---|---|---|
| 1529 | 1529 | MDRV_CPU_ADD_TAG("sound", M6502, 3579545/4) /* the board can be set to /2 as well */ |
| 1530 | 1530 | MDRV_CPU_PROGRAM_MAP(gottlieb_sound_map,0) |
| 1531 | 1531 | /* NMIs are triggered by the Votrax SC-01 */ |
| 1532 | MDRV_SCREEN_REFRESH_RATE(61) | |
| 1533 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(1018) /* frames per second, vblank duration */) | |
| 1534 | 1532 | |
| 1535 | 1533 | MDRV_MACHINE_RESET(gottlieb) |
| 1536 | 1534 | MDRV_NVRAM_HANDLER(generic_1fill) |
| 1537 | 1535 | |
| 1538 | 1536 | /* video hardware */ |
| 1539 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1537 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1538 | MDRV_SCREEN_REFRESH_RATE(61) | |
| 1539 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(1018) /* frames per second, vblank duration */) | |
| 1540 | 1540 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1541 | 1541 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 1542 | 1542 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 30*8-1) |
| 1543 | ||
| 1543 | 1544 | MDRV_GFXDECODE(charROM) |
| 1544 | 1545 | MDRV_PALETTE_LENGTH(16) |
| 1545 | 1546 | |
| r1711 | r1712 | |
| 1610 | 1611 | /* audio CPU */ |
| 1611 | 1612 | MDRV_CPU_PROGRAM_MAP(stooges_sound2_map,0) |
| 1612 | 1613 | |
| 1613 | MDRV_SCREEN_REFRESH_RATE(61) | |
| 1614 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(1018) /* frames per second, vblank duration */) | |
| 1615 | ||
| 1616 | 1614 | MDRV_MACHINE_RESET(gottlieb) |
| 1617 | 1615 | MDRV_NVRAM_HANDLER(generic_1fill) |
| 1618 | 1616 | |
| 1619 | 1617 | /* video hardware */ |
| 1620 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1618 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1619 | MDRV_SCREEN_REFRESH_RATE(61) | |
| 1620 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(1018) /* frames per second, vblank duration */) | |
| 1621 | 1621 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1622 | 1622 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 1623 | 1623 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 30*8-1) |
| 1624 | ||
| 1624 | 1625 | MDRV_GFXDECODE(charROM) |
| 1625 | 1626 | MDRV_PALETTE_LENGTH(16) |
| 1626 | 1627 |
| r1711 | r1712 | |
|---|---|---|
| 441 | 441 | MDRV_CPU_PROGRAM_MAP(sandscrp_soundmem,0) |
| 442 | 442 | MDRV_CPU_IO_MAP(sandscrp_soundport,0) |
| 443 | 443 | |
| 444 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 445 | MDRV_SCREEN_VBLANK_TIME( DEFAULT_REAL_60HZ_VBLANK_DURATION ) | |
| 446 | MDRV_WATCHDOG_VBLANK_INIT(DEFAULT_60HZ_3S_VBLANK_WATCHDOG) | |
| 444 | MDRV_WATCHDOG_TIME_INIT(ATTOTIME_IN_SEC(3)) /* a guess, and certainly wrong */ | |
| 447 | 445 | |
| 448 | 446 | MDRV_MACHINE_RESET(sandscrp) |
| 449 | 447 | |
| 450 | 448 | /* video hardware */ |
| 451 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 449 | MDRV_SCREEN_ADD("main", RASTER) | |
| 450 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 451 | MDRV_SCREEN_VBLANK_TIME( ATTOSECONDS_IN_USEC(2500) /* not accurate */ ) | |
| 452 | 452 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 453 | 453 | MDRV_SCREEN_SIZE(256, 256) |
| 454 | 454 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0+16, 256-16-1) |
| 455 | ||
| 455 | 456 | MDRV_GFXDECODE(sandscrp) |
| 456 | 457 | MDRV_PALETTE_LENGTH(2048) |
| 457 | 458 |
| r1711 | r1712 | |
|---|---|---|
| 439 | 439 | MDRV_MACHINE_START(gpworld) |
| 440 | 440 | |
| 441 | 441 | /* video */ |
| 442 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 443 | 442 | |
| 443 | MDRV_SCREEN_ADD("main", RASTER) | |
| 444 | 444 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 445 | 445 | MDRV_SCREEN_REFRESH_RATE(60) |
| 446 | MDRV_SCREEN_VBLANK_TIME( | |
| 446 | MDRV_SCREEN_VBLANK_TIME( | |
| 447 | 447 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 448 | 448 | MDRV_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 0*8, 32*8-1) |
| 449 | 449 |
| r1711 | r1712 | |
|---|---|---|
| 983 | 983 | MDRV_MACHINE_RESET(ddragon) |
| 984 | 984 | |
| 985 | 985 | /* video hardware */ |
| 986 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 987 | 986 | MDRV_GFXDECODE(ddragon) |
| 988 | 987 | MDRV_PALETTE_LENGTH(384) |
| 989 | 988 | |
| 990 | MDRV_SCREEN_ADD("main", | |
| 989 | MDRV_SCREEN_ADD("main", RASTER) | |
| 991 | 990 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 992 | 991 | MDRV_SCREEN_RAW_PARAMS(MAIN_CLOCK/2, 384, 0, 256, 272, 0, 240) |
| 993 | 992 | |
| r1711 | r1712 | |
| 1049 | 1048 | MDRV_MACHINE_RESET(ddragon) |
| 1050 | 1049 | |
| 1051 | 1050 | /* video hardware */ |
| 1052 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1053 | 1051 | MDRV_GFXDECODE(ddragon) |
| 1054 | 1052 | MDRV_PALETTE_LENGTH(384) |
| 1055 | 1053 | |
| 1056 | MDRV_SCREEN_ADD("main", | |
| 1054 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1057 | 1055 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1058 | 1056 | MDRV_SCREEN_RAW_PARAMS(MAIN_CLOCK/2, 384, 0, 256, 272, 0, 240) |
| 1059 | 1057 |
| r1711 | r1712 | |
|---|---|---|
| 521 | 521 | MDRV_CPU_PROGRAM_MAP(acommand,0) |
| 522 | 522 | MDRV_CPU_VBLANK_INT(acommand_irq,2) |
| 523 | 523 | |
| 524 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 525 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 526 | ||
| 527 | 524 | /* video hardware */ |
| 528 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 525 | MDRV_SCREEN_ADD("main", RASTER) | |
| 526 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 527 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 529 | 528 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 530 | 529 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 531 | 530 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 283 | 283 | /* audio CPU */ |
| 284 | 284 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 285 | 285 | |
| 286 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 287 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 288 | ||
| 289 | 286 | MDRV_NVRAM_HANDLER(asterix) |
| 290 | 287 | |
| 291 | 288 | /* video hardware */ |
| 292 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS) | |
| 289 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 290 | ||
| 291 | MDRV_SCREEN_ADD("main", RASTER) | |
| 292 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 293 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 293 | 294 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 294 | 295 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 295 | 296 | MDRV_SCREEN_VISIBLE_AREA(14*8, (64-14)*8-1, 2*8, 30*8-1 ) |
| r1711 | r1712 | |
|---|---|---|
| 852 | 852 | |
| 853 | 853 | /************************************* |
| 854 | 854 | * |
| 855 | * Graphics definitions | |
| 856 | * | |
| 857 | *************************************/ | |
| 858 | ||
| 859 | static const gfx_layout charlayout = | |
| 860 | { | |
| 861 | 8, 8, /* 8*8 characters */ | |
| 862 | 512, /* 512 characters */ | |
| 863 | 1, /* 1 bit per pixel */ | |
| 864 | { 0 }, | |
| 865 | { 0, 1, 2, 3, 4, 5, 6, 7 }, | |
| 866 | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 }, | |
| 867 | 8*8 /* every char takes 8 consecutive bytes */ | |
| 868 | }; | |
| 869 | ||
| 870 | static GFXDECODE_START( tubep ) | |
| 871 | GFXDECODE_ENTRY( REGION_GFX1, 0, charlayout, 0, 32 ) /* 32 color codes */ | |
| 872 | GFXDECODE_END | |
| 873 | ||
| 874 | static GFXDECODE_START( rjammer ) | |
| 875 | GFXDECODE_ENTRY( REGION_GFX1, 0, charlayout, 0, 16 ) /* 16 color codes */ | |
| 876 | GFXDECODE_END | |
| 877 | ||
| 878 | ||
| 879 | ||
| 880 | /************************************* | |
| 881 | * | |
| 882 | 855 | * Sound definitions |
| 883 | 856 | * |
| 884 | 857 | *************************************/ |
| r1711 | r1712 | |
| 940 | 913 | MDRV_CPU_ADD_TAG("nsc",NSC8105,6000000) /* 6 MHz Xtal - divided internally ??? */ |
| 941 | 914 | MDRV_CPU_PROGRAM_MAP(nsc_map,0) |
| 942 | 915 | |
| 943 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 944 | 916 | MDRV_INTERLEAVE(100) |
| 945 | 917 | |
| 946 | 918 | MDRV_MACHINE_START(tubep) |
| 947 | 919 | MDRV_MACHINE_RESET(tubep) |
| 948 | 920 | |
| 949 | 921 | /* video hardware */ |
| 950 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 922 | MDRV_SCREEN_ADD("main", RASTER) | |
| 923 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 951 | 924 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 952 | 925 | MDRV_SCREEN_SIZE(256, 264) |
| 953 | 926 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 954 | ||
| 927 | ||
| 955 | 928 | MDRV_PALETTE_LENGTH(32 + 256*64) |
| 956 | MDRV_COLORTABLE_LENGTH(32*2) | |
| 957 | 929 | |
| 958 | 930 | MDRV_PALETTE_INIT(tubep) |
| 959 | 931 | MDRV_VIDEO_START(tubep) |
| r1711 | r1712 | |
| 1006 | 978 | MDRV_CPU_ADD_TAG("nsc",NSC8105,6000000) /* 6 MHz Xtal - divided internally ??? */ |
| 1007 | 979 | MDRV_CPU_PROGRAM_MAP(nsc_map,0) |
| 1008 | 980 | |
| 1009 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1010 | ||
| 1011 | 981 | MDRV_MACHINE_START(rjammer) |
| 1012 | 982 | MDRV_MACHINE_RESET(rjammer) |
| 1013 | 983 | |
| 1014 | 984 | |
| 1015 | 985 | /* video hardware */ |
| 1016 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 986 | MDRV_SCREEN_ADD("main", RASTER) | |
| 987 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1017 | 988 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1018 | 989 | MDRV_SCREEN_SIZE(256, 264) |
| 1019 | 990 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 1020 | ||
| 991 | ||
| 1021 | 992 | MDRV_PALETTE_LENGTH(64) |
| 1022 | MDRV_COLORTABLE_LENGTH(2*16 + 16*2) | |
| 1023 | 993 | |
| 1024 | 994 | MDRV_PALETTE_INIT(rjammer) |
| 1025 | 995 | MDRV_VIDEO_START(tubep) |
| r1711 | r1712 | |
|---|---|---|
| 354 | 354 | MDRV_CPU_IO_MAP(ppmast93_cpu2_io,0) |
| 355 | 355 | MDRV_CPU_PERIODIC_INT(irq0_line_hold,8000) |
| 356 | 356 | |
| 357 | /* video hardware */ | |
| 358 | MDRV_SCREEN_ADD("main", RASTER) | |
| 357 | 359 | MDRV_SCREEN_REFRESH_RATE(55) |
| 358 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 359 | ||
| 360 | /* video hardware */ | |
| 361 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 360 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 362 | 361 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 363 | 362 | MDRV_SCREEN_SIZE(256, 256) |
| 364 | 363 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0, 256-1) |
| 364 | ||
| 365 | 365 | MDRV_GFXDECODE(ppmast93) |
| 366 | 366 | |
| 367 | 367 | MDRV_PALETTE_INIT(RRRR_GGGG_BBBB) |
| r1711 | r1712 | |
|---|---|---|
| 1269 | 1269 | MDRV_CPU_PROGRAM_MAP(mrokumei_sound_readmem,mrokumei_sound_writemem) |
| 1270 | 1270 | MDRV_CPU_IO_MAP(mrokumei_sound_readport,mrokumei_sound_writeport) |
| 1271 | 1271 | |
| 1272 | /* video hardware */ | |
| 1273 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1272 | 1274 | MDRV_SCREEN_REFRESH_RATE(59) |
| 1273 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1274 | ||
| 1275 | /* video hardware */ | |
| 1276 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1275 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1277 | 1276 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1278 | 1277 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 1279 | 1278 | // visible area can be changed at runtime |
| 1280 | 1279 | MDRV_SCREEN_VISIBLE_AREA(0*8, 54*8-1, 2*8, 30*8-1) |
| 1280 | ||
| 1281 | 1281 | MDRV_GFXDECODE(mrokumei) |
| 1282 | 1282 | MDRV_PALETTE_LENGTH(0x8000) |
| 1283 | 1283 | |
| r1711 | r1712 | |
| 1329 | 1329 | |
| 1330 | 1330 | MDRV_INTERLEAVE(500) // very high interleave required to sync for startup tests |
| 1331 | 1331 | |
| 1332 | MDRV_SCREEN_REFRESH_RATE(59) | |
| 1333 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1334 | ||
| 1335 | 1332 | MDRV_MACHINE_RESET(reikaids_upd7807) |
| 1336 | 1333 | |
| 1337 | 1334 | /* video hardware */ |
| 1338 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1335 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1336 | MDRV_SCREEN_REFRESH_RATE(59) | |
| 1337 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1339 | 1338 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1340 | 1339 | MDRV_SCREEN_SIZE(256, 256) |
| 1341 | 1340 | MDRV_SCREEN_VISIBLE_AREA(0, 255, 16, 256-1-16) |
| 1341 | ||
| 1342 | 1342 | MDRV_GFXDECODE(reikaids) |
| 1343 | 1343 | MDRV_PALETTE_LENGTH(0x8000) |
| 1344 | 1344 | |
| r1711 | r1712 | |
| 1379 | 1379 | |
| 1380 | 1380 | MDRV_INTERLEAVE(100) // should be enough |
| 1381 | 1381 | |
| 1382 | MDRV_SCREEN_REFRESH_RATE(59) | |
| 1383 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1384 | ||
| 1385 | 1382 | MDRV_MACHINE_RESET(pteacher_upd7807) |
| 1386 | 1383 | |
| 1387 | 1384 | /* video hardware */ |
| 1388 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1385 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1386 | MDRV_SCREEN_REFRESH_RATE(59) | |
| 1387 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1389 | 1388 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1390 | 1389 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 1391 | 1390 | // visible area can be changed at runtime |
| 1392 | 1391 | MDRV_SCREEN_VISIBLE_AREA(0*8, 54*8-1, 2*8, 30*8-1) |
| 1392 | ||
| 1393 | 1393 | MDRV_GFXDECODE(pteacher) |
| 1394 | 1394 | MDRV_PALETTE_LENGTH(0x8000) |
| 1395 | 1395 |
| r1711 | r1712 | |
|---|---|---|
| 785 | 785 | MDRV_CPU_VBLANK_INT(exidy_vblank_interrupt,1) |
| 786 | 786 | |
| 787 | 787 | /* video hardware */ |
| 788 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 788 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 789 | 789 | MDRV_VIDEO_START(exidy) |
| 790 | 790 | MDRV_VIDEO_UPDATE(exidy) |
| 791 | 791 | MDRV_GFXDECODE(exidy) |
| 792 | 792 | MDRV_PALETTE_LENGTH(8) |
| 793 | 793 | |
| 794 | MDRV_SCREEN_ADD("main", RASTER) | |
| 794 | 795 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 795 | 796 | MDRV_SCREEN_RAW_PARAMS(EXIDY_PIXEL_CLOCK, EXIDY_HTOTAL, EXIDY_HBEND, EXIDY_HBSTART, EXIDY_VTOTAL, EXIDY_VBEND, EXIDY_VBSTART) |
| 796 | 797 |
| r1711 | r1712 | |
|---|---|---|
| 295 | 295 | MDRV_CPU_PROGRAM_MAP(map2,0) |
| 296 | 296 | MDRV_CPU_VBLANK_INT(xxmissio_interrupt_s,2) |
| 297 | 297 | |
| 298 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 299 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 300 | 298 | MDRV_INTERLEAVE(100) |
| 301 | 299 | |
| 302 | 300 | MDRV_MACHINE_START(xxmissio) |
| 303 | 301 | |
| 304 | 302 | /* video hardware */ |
| 305 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 303 | MDRV_SCREEN_ADD("main", RASTER) | |
| 304 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 305 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 306 | 306 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 307 | 307 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 308 | 308 | MDRV_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 4*8, 28*8-1) |
| 309 | ||
| 309 | 310 | MDRV_GFXDECODE(xxmissio) |
| 310 | 311 | MDRV_PALETTE_LENGTH(768) |
| 311 | 312 |
| r1711 | r1712 | |
|---|---|---|
| 436 | 436 | /* audio CPU */ /* Guess */ |
| 437 | 437 | MDRV_CPU_PROGRAM_MAP(snd_readmem,snd_writemem) |
| 438 | 438 | |
| 439 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 440 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 441 | ||
| 442 | 439 | MDRV_GFXDECODE(mugsmash) |
| 443 | 440 | |
| 444 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 441 | ||
| 442 | MDRV_SCREEN_ADD("main", RASTER) | |
| 443 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 444 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 445 | 445 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 446 | 446 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 447 | 447 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 448 | ||
| 448 | 449 | MDRV_PALETTE_LENGTH(0x300) |
| 449 | 450 | |
| 450 | 451 | MDRV_VIDEO_START(mugsmash) |
| r1711 | r1712 | |
|---|---|---|
| 246 | 246 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 247 | 247 | /* IRQs are caused by the ADPCM chip */ |
| 248 | 248 | /* NMIs are caused by the main CPU */ |
| 249 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 250 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 251 | 249 | |
| 252 | 250 | /* video hardware */ |
| 253 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 251 | MDRV_SCREEN_ADD("main", RASTER) | |
| 252 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 253 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 254 | 254 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 255 | 255 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 256 | 256 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 257 | ||
| 257 | 258 | MDRV_GFXDECODE(pcktgal) |
| 258 | 259 | MDRV_PALETTE_LENGTH(512) |
| 259 | 260 |
| r1711 | r1712 | |
|---|---|---|
| 270 | 270 | MDRV_CPU_IO_MAP(readport_hyhoo, writeport_hyhoo) |
| 271 | 271 | MDRV_CPU_VBLANK_INT(nb1413m3_interrupt, 1) |
| 272 | 272 | |
| 273 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 274 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 275 | ||
| 276 | 273 | MDRV_MACHINE_RESET(nb1413m3) |
| 277 | 274 | MDRV_NVRAM_HANDLER(nb1413m3) |
| 278 | 275 | |
| 279 | 276 | /* video hardware */ |
| 280 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 277 | MDRV_SCREEN_ADD("main", RASTER) | |
| 278 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 279 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 281 | 280 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 282 | 281 | MDRV_SCREEN_SIZE(512, 256) |
| 283 | 282 | MDRV_SCREEN_VISIBLE_AREA(0, 512-1, 16, 240-1) |
| 283 | ||
| 284 | 284 | MDRV_VIDEO_START(hyhoo) |
| 285 | 285 | MDRV_VIDEO_UPDATE(hyhoo) |
| 286 | 286 |
| r1711 | r1712 | |
|---|---|---|
| 1527 | 1527 | MDRV_CPU_PROGRAM_MAP(hng_comm_map,0) |
| 1528 | 1528 | MDRV_CPU_IO_MAP(hng_comm_io_map, 0) |
| 1529 | 1529 | |
| 1530 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1531 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1532 | ||
| 1533 | 1530 | MDRV_GFXDECODE(hng64) |
| 1534 | 1531 | MDRV_MACHINE_RESET(hyperneo) |
| 1535 | 1532 | |
| 1536 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 1533 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1534 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1535 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1537 | 1536 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 1538 | 1537 | MDRV_SCREEN_SIZE(1024, 1024) |
| 1539 | 1538 | MDRV_SCREEN_VISIBLE_AREA(0, 511, 16, 447) |
| 1539 | ||
| 1540 | 1540 | MDRV_PALETTE_LENGTH(0x1000) |
| 1541 | 1541 | |
| 1542 | 1542 | MDRV_VIDEO_START(hng64) |
| r1711 | r1712 | |
|---|---|---|
| 213 | 213 | MDRV_CPU_IO_MAP(sound_portmap,0) |
| 214 | 214 | MDRV_CPU_VBLANK_INT(irq0_line_hold,2) /* ??? */ |
| 215 | 215 | /* NMIs are caused by the main CPU */ |
| 216 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 217 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 218 | 216 | |
| 219 | 217 | /* video hardware */ |
| 220 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 218 | MDRV_SCREEN_ADD("main", RASTER) | |
| 219 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 220 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 221 | 221 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 222 | 222 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 223 | 223 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 224 | ||
| 224 | 225 | MDRV_GFXDECODE(solomon) |
| 225 | 226 | MDRV_PALETTE_LENGTH(256) |
| 226 | 227 |
| r1711 | r1712 | |
|---|---|---|
| 540 | 540 | /* audio CPU */ |
| 541 | 541 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 542 | 542 | |
| 543 | /* video hardware */ | |
| 544 | MDRV_SCREEN_ADD("main", RASTER) | |
| 543 | 545 | MDRV_SCREEN_REFRESH_RATE(60) |
| 544 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 545 | ||
| 546 | /* video hardware */ | |
| 547 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) /* only needs 6 bits because of alpha blending */ | |
| 546 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 548 | 547 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 549 | 548 | MDRV_SCREEN_SIZE(32*16, 16*16) |
| 550 | 549 | MDRV_SCREEN_VISIBLE_AREA(0*16, 24*16-1, 0*16, 15*16-1) |
| 550 | ||
| 551 | 551 | MDRV_GFXDECODE(macrossp) |
| 552 | 552 | MDRV_PALETTE_LENGTH(0x1000) |
| 553 | 553 | |
| r1711 | r1712 | |
| 567 | 567 | static MACHINE_DRIVER_START( quizmoon ) |
| 568 | 568 | MDRV_IMPORT_FROM(macrossp) |
| 569 | 569 | |
| 570 | MDRV_SCREEN_MODIFY("main") | |
| 570 | 571 | MDRV_SCREEN_VISIBLE_AREA(0, 24*16-1, 0*8, 14*16-1) |
| 571 | 572 | MACHINE_DRIVER_END |
| 572 | 573 |
| r1711 | r1712 | |
|---|---|---|
| 694 | 694 | /* audio CPU */ |
| 695 | 695 | MDRV_CPU_PROGRAM_MAP(ppking_cpu3_map,0) |
| 696 | 696 | |
| 697 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 698 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 699 | 697 | MDRV_INTERLEAVE(100) |
| 700 | 698 | |
| 701 | 699 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 702 | 700 | |
| 703 | 701 | /* video hardware */ |
| 704 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 702 | MDRV_SCREEN_ADD("main", RASTER) | |
| 703 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 704 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 705 | 705 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 706 | 706 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 707 | 707 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 708 | ||
| 708 | 709 | MDRV_GFXDECODE(ppking) |
| 709 | 710 | MDRV_PALETTE_LENGTH(1024) |
| 710 | 711 | |
| r1711 | r1712 | |
| 742 | 743 | /* audio CPU */ |
| 743 | 744 | MDRV_CPU_PROGRAM_MAP(gladiatr_cpu3_map,0) |
| 744 | 745 | |
| 745 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 746 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 747 | 746 | MDRV_INTERLEAVE(10) |
| 748 | 747 | |
| 749 | 748 | MDRV_MACHINE_RESET(gladiator) |
| 750 | 749 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 751 | 750 | |
| 752 | 751 | /* video hardware */ |
| 753 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 752 | MDRV_SCREEN_ADD("main", RASTER) | |
| 753 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 754 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 754 | 755 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 755 | 756 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 756 | 757 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 758 | ||
| 757 | 759 | MDRV_GFXDECODE(gladiatr) |
| 758 | 760 | MDRV_PALETTE_LENGTH(1024) |
| 759 | 761 |
| r1711 | r1712 | |
|---|---|---|
| 403 | 403 | MDRV_CPU_IO_MAP(readport_slave,0) |
| 404 | 404 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 405 | 405 | |
| 406 | MDRV_INTERLEAVE(100) | |
| 407 | ||
| 408 | MDRV_SCREEN_ADD("main", RASTER) | |
| 406 | 409 | MDRV_SCREEN_REFRESH_RATE(60) |
| 407 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 408 | MDRV_INTERLEAVE(100) | |
| 409 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 410 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 410 | 411 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 411 | 412 | MDRV_SCREEN_SIZE(256,256) |
| 412 | 413 | MDRV_SCREEN_VISIBLE_AREA(0+64-16,255,0+16,255) |
| 414 | ||
| 413 | 415 | MDRV_PALETTE_LENGTH(0x20) |
| 414 | 416 | MDRV_VIDEO_START(imolagp) |
| 415 | 417 | MDRV_VIDEO_UPDATE(imolagp) |
| r1711 | r1712 | |
|---|---|---|
| 160 | 160 | MDRV_CPU_PROGRAM_MAP(puckpkmn_readmem,puckpkmn_writemem) |
| 161 | 161 | MDRV_CPU_VBLANK_INT(genesis_vblank_interrupt,1) |
| 162 | 162 | |
| 163 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 164 | ||
| 165 | 163 | MDRV_MACHINE_START(genesis) |
| 166 | 164 | MDRV_MACHINE_RESET(genesis) |
| 167 | 165 | |
| 168 | 166 | /* video hardware */ |
| 169 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS) | |
| 167 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS) | |
| 168 | ||
| 169 | MDRV_SCREEN_ADD("main", RASTER) | |
| 170 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 170 | 171 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 171 | 172 | MDRV_SCREEN_SIZE(342,262) |
| 172 | 173 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 223) |
| r1711 | r1712 | |
|---|---|---|
| 206 | 206 | static const struct CustomSound_interface snes_sound_interface = |
| 207 | 207 | { snes_sh_start }; |
| 208 | 208 | |
| 209 | static GFXDECODE_START( kinstb ) | |
| 210 | GFXDECODE_END | |
| 211 | ||
| 212 | static PALETTE_INIT( snes ) | |
| 213 | { | |
| 214 | int i; | |
| 215 | ||
| 216 | for( i = 0; i < 32768; i++ ) | |
| 217 | palette_set_color_rgb( machine, i, pal5bit(i >> 0), pal5bit(i >> 5), pal5bit(i >> 10) ); | |
| 218 | ||
| 219 | /* The colortable can be black */ | |
| 220 | for( i = 0; i < 256; i++ ) | |
| 221 | colortable[i] = 0; | |
| 222 | } | |
| 223 | ||
| 224 | 209 | static MACHINE_DRIVER_START( kinstb ) |
| 225 | 210 | /* basic machine hardware */ |
| 226 | 211 | MDRV_CPU_ADD_TAG("main", G65816, 3580000) /* 2.68Mhz, also 3.58Mhz */ |
| r1711 | r1712 | |
| 239 | 224 | /* video hardware */ |
| 240 | 225 | MDRV_VIDEO_UPDATE( snes ) |
| 241 | 226 | |
| 242 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 243 | MDRV_GFXDECODE(kinstb) | |
| 244 | MDRV_PALETTE_LENGTH(32768) | |
| 245 | MDRV_COLORTABLE_LENGTH(257) | |
| 246 | MDRV_PALETTE_INIT( snes ) | |
| 247 | 227 | |
| 248 | MDRV_SCREEN_ADD("main", 0) | |
| 249 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 228 | MDRV_SCREEN_ADD("main", RASTER) | |
| 229 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) | |
| 250 | 230 | MDRV_SCREEN_RAW_PARAMS(DOTCLK_NTSC, SNES_HTOTAL, 0, SNES_SCR_WIDTH, SNES_VTOTAL_NTSC, 0, SNES_SCR_HEIGHT_NTSC) |
| 251 | 231 | |
| 252 | 232 | /* sound hardware */ |
| r1711 | r1712 | |
|---|---|---|
| 635 | 635 | /* audio CPU */ |
| 636 | 636 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 637 | 637 | |
| 638 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 639 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(1200)) // should give IRQ4 sufficient time to update scroll registers | |
| 640 | ||
| 641 | 638 | MDRV_MACHINE_START(moo) |
| 642 | 639 | MDRV_MACHINE_RESET(moo) |
| 643 | 640 | |
| 644 | 641 | MDRV_NVRAM_HANDLER(moo) |
| 645 | 642 | |
| 646 | 643 | /* video hardware */ |
| 647 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS | VIDEO_UPDATE_AFTER_VBLANK) | |
| 644 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS | VIDEO_UPDATE_AFTER_VBLANK) | |
| 645 | ||
| 646 | MDRV_SCREEN_ADD("main", RASTER) | |
| 647 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 648 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(1200)) // should give IRQ4 sufficient time to update scroll registers | |
| 648 | 649 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 649 | 650 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 650 | 651 | MDRV_SCREEN_VISIBLE_AREA(40, 40+384-1, 16, 16+224-1) |
| r1711 | r1712 | |
| 674 | 675 | MDRV_CPU_PROGRAM_MAP(readmembl,writemembl) |
| 675 | 676 | MDRV_CPU_VBLANK_INT(moobl_interrupt, 1) |
| 676 | 677 | |
| 677 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 678 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(1200)) // should give IRQ4 sufficient time to update scroll registers | |
| 679 | ||
| 680 | 678 | MDRV_MACHINE_START(moo) |
| 681 | 679 | MDRV_MACHINE_RESET(moo) |
| 682 | 680 | MDRV_NVRAM_HANDLER(moo) |
| 683 | 681 | |
| 684 | 682 | /* video hardware */ |
| 685 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS | VIDEO_UPDATE_AFTER_VBLANK) | |
| 683 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS | VIDEO_UPDATE_AFTER_VBLANK) | |
| 684 | ||
| 685 | MDRV_SCREEN_ADD("main", RASTER) | |
| 686 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 687 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(1200)) // should give IRQ4 sufficient time to update scroll registers | |
| 686 | 688 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 687 | 689 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 688 | 690 | MDRV_SCREEN_VISIBLE_AREA(40, 40+384-1, 16, 16+224-1) |
| r1711 | r1712 | |
|---|---|---|
| 128 | 128 | MDRV_CPU_ADD(M68000, 16000000 ) //?? |
| 129 | 129 | MDRV_CPU_PROGRAM_MAP(stepstag_sub_readmem,stepstag_sub_writemem) |
| 130 | 130 | |
| 131 | ||
| 132 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 133 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 134 | ||
| 135 | 131 | /* video hardware */ |
| 136 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 132 | MDRV_SCREEN_ADD("main", RASTER) | |
| 133 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 134 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 137 | 135 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 138 | 136 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 139 | 137 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 32*8-1) |
| 138 | ||
| 140 | 139 | MDRV_PALETTE_LENGTH(0x200) |
| 141 | 140 | MDRV_GFXDECODE(stepstag) |
| 142 | 141 |
| r1711 | r1712 | |
|---|---|---|
| 279 | 279 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 280 | 280 | MDRV_CPU_VBLANK_INT(irq0_line_hold,4) |
| 281 | 281 | |
| 282 | /* video hardware */ | |
| 283 | MDRV_SCREEN_ADD("main", RASTER) | |
| 282 | 284 | MDRV_SCREEN_REFRESH_RATE(60) |
| 283 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 284 | ||
| 285 | /* video hardware */ | |
| 286 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 285 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 287 | 286 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 288 | 287 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 289 | 288 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 289 | ||
| 290 | 290 | MDRV_GFXDECODE(goindol) |
| 291 | 291 | MDRV_PALETTE_LENGTH(256) |
| 292 | 292 |
| r1711 | r1712 | |
|---|---|---|
| 114 | 114 | for (x=0;x < 320/2;x++) |
| 115 | 115 | { |
| 116 | 116 | color = vram[count + (0x10000/2) * (vbuffer ^ 1)] & 0xff; |
| 117 | *BITMAP_ADDR16(bitmap, y, x*2 + 0) = | |
| 117 | *BITMAP_ADDR16(bitmap, y, x*2 + 0) = | |
| 118 | 118 | |
| 119 | 119 | color = (vram[count + (0x10000/2) * (vbuffer ^ 1)] & 0xff00) >> 8; |
| 120 | *BITMAP_ADDR16(bitmap, y, x*2 + 1) = | |
| 120 | *BITMAP_ADDR16(bitmap, y, x*2 + 1) = | |
| 121 | 121 | |
| 122 | 122 | count++; |
| 123 | 123 | } |
| r1711 | r1712 | |
| 167 | 167 | MDRV_CPU_PROGRAM_MAP(eolith16_map,0) |
| 168 | 168 | MDRV_CPU_VBLANK_INT(eolith_speedup,262) |
| 169 | 169 | |
| 170 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 171 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 172 | ||
| 173 | 170 | MDRV_NVRAM_HANDLER(eolith16_eeprom) |
| 174 | 171 | |
| 175 | 172 | /* video hardware */ |
| 176 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 173 | MDRV_SCREEN_ADD("main", RASTER) | |
| 174 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 175 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 177 | 176 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 178 | 177 | MDRV_SCREEN_SIZE(512, 512) |
| 179 | 178 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 199) |
| 179 | ||
| 180 | 180 | MDRV_PALETTE_LENGTH(256) |
| 181 | 181 | |
| 182 | 182 | MDRV_PALETTE_INIT(eolith16) |
| r1711 | r1712 | |
|---|---|---|
| 2295 | 2295 | MDRV_CPU_PROGRAM_MAP(fhawk_2_readmem,fhawk_2_writemem) |
| 2296 | 2296 | MDRV_CPU_VBLANK_INT(irq0_line_hold,3) /* fixes slow down problems */ |
| 2297 | 2297 | |
| 2298 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2299 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 2300 | 2298 | MDRV_INTERLEAVE(100) |
| 2301 | 2299 | |
| 2302 | 2300 | MDRV_MACHINE_RESET(fhawk) |
| 2303 | 2301 | |
| 2304 | 2302 | /* video hardware */ |
| 2305 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2303 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2304 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2305 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2306 | 2306 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2307 | 2307 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 2308 | 2308 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 30*8-1) |
| 2309 | ||
| 2309 | 2310 | MDRV_GFXDECODE(2) |
| 2310 | 2311 | MDRV_PALETTE_LENGTH(256) |
| 2311 | 2312 | |
| r1711 | r1712 | |
| 2390 | 2391 | MDRV_CPU_PROGRAM_MAP(kurikint_2_readmem,kurikint_2_writemem) |
| 2391 | 2392 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 2392 | 2393 | |
| 2393 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2394 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 2395 | 2394 | MDRV_INTERLEAVE(100) |
| 2396 | 2395 | |
| 2397 | 2396 | MDRV_MACHINE_RESET(kurikint) |
| 2398 | 2397 | |
| 2399 | 2398 | /* video hardware */ |
| 2400 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2399 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2400 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2401 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2401 | 2402 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2402 | 2403 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 2403 | 2404 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 30*8-1) |
| 2405 | ||
| 2404 | 2406 | MDRV_GFXDECODE(2) |
| 2405 | 2407 | MDRV_PALETTE_LENGTH(256) |
| 2406 | 2408 | |
| r1711 | r1712 | |
| 2436 | 2438 | MDRV_CPU_PROGRAM_MAP(plotting_readmem,plotting_writemem) |
| 2437 | 2439 | MDRV_CPU_VBLANK_INT(vbl_interrupt,3) |
| 2438 | 2440 | |
| 2439 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2440 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 2441 | ||
| 2442 | 2441 | MDRV_MACHINE_RESET(plotting) |
| 2443 | 2442 | |
| 2444 | 2443 | /* video hardware */ |
| 2445 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2444 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2445 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2446 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2446 | 2447 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2447 | 2448 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 2448 | 2449 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 30*8-1) |
| 2450 | ||
| 2449 | 2451 | MDRV_GFXDECODE(1) |
| 2450 | 2452 | MDRV_PALETTE_LENGTH(256) |
| 2451 | 2453 | |
| r1711 | r1712 | |
| 2519 | 2521 | MDRV_CPU_PROGRAM_MAP(evilston_2_readmem,evilston_2_writemem) |
| 2520 | 2522 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 2521 | 2523 | |
| 2522 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2523 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 2524 | 2524 | MDRV_INTERLEAVE(100) |
| 2525 | 2525 | |
| 2526 | 2526 | MDRV_MACHINE_RESET(evilston) |
| 2527 | 2527 | |
| 2528 | 2528 | /* video hardware */ |
| 2529 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2529 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2530 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 2531 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2530 | 2532 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2531 | 2533 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 2532 | 2534 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 30*8-1) |
| 2535 | ||
| 2533 | 2536 | MDRV_GFXDECODE(2) |
| 2534 | 2537 | MDRV_PALETTE_LENGTH(256) |
| 2535 | 2538 |
| r1711 | r1712 | |
|---|---|---|
| 382 | 382 | MDRV_CPU_PROGRAM_MAP(i8039_readmem,i8039_writemem) |
| 383 | 383 | MDRV_CPU_IO_MAP(i8039_readport,i8039_writeport) |
| 384 | 384 | |
| 385 | /* video hardware */ | |
| 386 | MDRV_SCREEN_ADD("main", RASTER) | |
| 385 | 387 | MDRV_SCREEN_REFRESH_RATE(60) |
| 386 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 387 | ||
| 388 | /* video hardware */ | |
| 389 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 388 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 390 | 389 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 391 | 390 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 392 | 391 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 392 | ||
| 393 | 393 | MDRV_GFXDECODE(gyruss) |
| 394 | 394 | MDRV_PALETTE_LENGTH(16*4+16*16) |
| 395 | 395 |
| r1711 | r1712 | |
|---|---|---|
| 413 | 413 | |
| 414 | 414 | TAITO_F3_SOUND_SYSTEM_CPU(16000000) |
| 415 | 415 | |
| 416 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 417 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 418 | ||
| 419 | 416 | MDRV_MACHINE_RESET(groundfx) |
| 420 | 417 | MDRV_NVRAM_HANDLER(groundfx) |
| 421 | 418 | |
| 422 | 419 | /* video hardware */ |
| 423 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 420 | MDRV_SCREEN_ADD("main", RASTER) | |
| 421 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 422 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 424 | 423 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 425 | 424 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 426 | 425 | MDRV_SCREEN_VISIBLE_AREA(0, 40*8-1, 3*8, 32*8-1) |
| 426 | ||
| 427 | 427 | MDRV_GFXDECODE(groundfx) |
| 428 | 428 | MDRV_PALETTE_LENGTH(16384) |
| 429 | 429 |
| r1711 | r1712 | |
|---|---|---|
| 281 | 281 | MDRV_CPU_PROGRAM_MAP(fastlane_readmem,fastlane_writemem) |
| 282 | 282 | MDRV_CPU_VBLANK_INT(fastlane_interrupt,16) /* 1 IRQ + ??? NMI (generated by the 007121) */ |
| 283 | 283 | |
| 284 | /* video hardware */ | |
| 285 | MDRV_SCREEN_ADD("main", RASTER) | |
| 284 | 286 | MDRV_SCREEN_REFRESH_RATE(60) |
| 285 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 286 | ||
| 287 | /* video hardware */ | |
| 288 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 287 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 289 | 288 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 290 | 289 | MDRV_SCREEN_SIZE(37*8, 32*8) |
| 291 | 290 | MDRV_SCREEN_VISIBLE_AREA(0*8, 35*8-1, 2*8, 30*8-1) |
| 291 | ||
| 292 | 292 | MDRV_GFXDECODE(fastlane) |
| 293 | 293 | MDRV_PALETTE_LENGTH(1024*16) |
| 294 | 294 |
| r1711 | r1712 | |
|---|---|---|
| 448 | 448 | MDRV_CPU_PROGRAM_MAP(gamecstl_map, 0) |
| 449 | 449 | MDRV_CPU_IO_MAP(gamecstl_io, 0) |
| 450 | 450 | |
| 451 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 452 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 453 | ||
| 454 | 451 | MDRV_MACHINE_RESET(gamecstl) |
| 455 | 452 | |
| 456 | 453 | MDRV_NVRAM_HANDLER( mc146818 ) |
| 457 | 454 | |
| 458 | 455 | /* video hardware */ |
| 459 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 456 | MDRV_SCREEN_ADD("main", RASTER) | |
| 457 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 458 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 460 | 459 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) |
| 461 | 460 | MDRV_SCREEN_SIZE(640, 480) |
| 462 | 461 | MDRV_SCREEN_VISIBLE_AREA(0, 639, 0, 199) |
| 462 | ||
| 463 | 463 | MDRV_GFXDECODE(CGA) |
| 464 | 464 | MDRV_PALETTE_LENGTH(16) |
| 465 | 465 |
| r1711 | r1712 | |
|---|---|---|
| 352 | 352 | MDRV_MACHINE_START(astron) |
| 353 | 353 | |
| 354 | 354 | /* video */ |
| 355 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 356 | 355 | |
| 356 | MDRV_SCREEN_ADD("main", RASTER) | |
| 357 | 357 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 358 | 358 | MDRV_SCREEN_REFRESH_RATE(60) |
| 359 | MDRV_SCREEN_VBLANK_TIME( | |
| 359 | MDRV_SCREEN_VBLANK_TIME( | |
| 360 | 360 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 361 | 361 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 32*8-1) |
| 362 | 362 |
| r1711 | r1712 | |
|---|---|---|
| 383 | 383 | MDRV_MACHINE_RESET(kangaroo) |
| 384 | 384 | |
| 385 | 385 | /* video hardware */ |
| 386 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_SCANLINE) | |
| 386 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_SCANLINE) | |
| 387 | ||
| 388 | MDRV_SCREEN_ADD("main", RASTER) | |
| 387 | 389 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 388 | ||
| 389 | MDRV_SCREEN_ADD("main", 0) | |
| 390 | 390 | MDRV_SCREEN_RAW_PARAMS(MASTER_CLOCK, 320*2, 0*2, 256*2, 260, 8, 248) |
| 391 | 391 | |
| 392 | 392 | MDRV_VIDEO_START(kangaroo) |
| r1711 | r1712 | |
|---|---|---|
| 350 | 350 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 351 | 351 | |
| 352 | 352 | /* video hardware */ |
| 353 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 354 | 353 | MDRV_VIDEO_UPDATE(wldarrow) |
| 355 | 354 | |
| 356 | MDRV_SCREEN_ADD("main", | |
| 355 | MDRV_SCREEN_ADD("main", RASTER) | |
| 357 | 356 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 358 | 357 | MDRV_SCREEN_SIZE(256, 256) |
| 359 | 358 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 4*8, 32*8-1) |
| 360 | 359 | MDRV_SCREEN_REFRESH_RATE(60) |
| 361 | MDRV_SCREEN_VBLANK_TIME( | |
| 360 | MDRV_SCREEN_VBLANK_TIME( | |
| 362 | 361 | |
| 363 | 362 | /* audio hardware */ |
| 364 | 363 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| r1711 | r1712 | |
|---|---|---|
| 546 | 546 | /* audio CPU */ |
| 547 | 547 | MDRV_CPU_PROGRAM_MAP(readmem_sound,writemem_sound) |
| 548 | 548 | |
| 549 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 550 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 551 | ||
| 552 | 549 | MDRV_MACHINE_RESET(seibu_sound_1) |
| 553 | 550 | |
| 554 | 551 | /* video hardware */ |
| 555 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 552 | MDRV_SCREEN_ADD("main", RASTER) | |
| 553 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 554 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 556 | 555 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 557 | 556 | MDRV_SCREEN_SIZE(256, 256) |
| 558 | 557 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 558 | ||
| 559 | 559 | MDRV_GFXDECODE(cabal) |
| 560 | 560 | MDRV_PALETTE_LENGTH(1024) |
| 561 | 561 | |
| r1711 | r1712 | |
| 601 | 601 | MDRV_CPU_IO_MAP(cabalbl_talk2_portmap,0) |
| 602 | 602 | MDRV_CPU_PERIODIC_INT(irq0_line_hold,8000) |
| 603 | 603 | |
| 604 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 605 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 606 | 604 | MDRV_INTERLEAVE(10) |
| 607 | 605 | |
| 608 | 606 | MDRV_MACHINE_RESET(cabalbl) |
| 609 | 607 | |
| 610 | 608 | /* video hardware */ |
| 611 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 609 | MDRV_SCREEN_ADD("main", RASTER) | |
| 610 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 611 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 612 | 612 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 613 | 613 | MDRV_SCREEN_SIZE(256, 256) |
| 614 | 614 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 615 | ||
| 615 | 616 | MDRV_GFXDECODE(cabal) |
| 616 | 617 | MDRV_PALETTE_LENGTH(1024) |
| 617 | 618 |
| r1711 | r1712 | |
|---|---|---|
| 524 | 524 | |
| 525 | 525 | // video hardware |
| 526 | 526 | |
| 527 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 528 | 527 | MDRV_PALETTE_LENGTH(8+64) |
| 529 | 528 | MDRV_PALETTE_INIT(cdp1869) |
| 530 | 529 | MDRV_VIDEO_START(cdp1869) |
| 531 | 530 | MDRV_VIDEO_UPDATE(cdp1869) |
| 532 | 531 | |
| 533 | MDRV_SCREEN_ADD("main", | |
| 532 | MDRV_SCREEN_ADD("main", RASTER) | |
| 534 | 533 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 535 | 534 | MDRV_SCREEN_RAW_PARAMS(DESTRYER_CHR2, CDP1869_SCREEN_WIDTH, CDP1869_HBLANK_END, CDP1869_HBLANK_START, CDP1869_TOTAL_SCANLINES_PAL, CDP1869_SCANLINE_VBLANK_END_PAL, CDP1869_SCANLINE_VBLANK_START_PAL) |
| 536 | 535 | MDRV_SCREEN_DEFAULT_POSITION(1.226, 0.012, 1.4, 0.044) |
| r1711 | r1712 | |
| 558 | 557 | |
| 559 | 558 | // video hardware |
| 560 | 559 | |
| 561 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 562 | 560 | MDRV_PALETTE_LENGTH(8+64) |
| 563 | 561 | MDRV_PALETTE_INIT(cdp1869) |
| 564 | 562 | MDRV_VIDEO_START(cdp1869) |
| 565 | 563 | MDRV_VIDEO_UPDATE(cdp1869) |
| 566 | 564 | |
| 567 | MDRV_SCREEN_ADD("main", | |
| 565 | MDRV_SCREEN_ADD("main", RASTER) | |
| 568 | 566 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 569 | 567 | MDRV_SCREEN_RAW_PARAMS(DESTRYER_CHR2, CDP1869_SCREEN_WIDTH, CDP1869_HBLANK_END, CDP1869_HBLANK_START, CDP1869_TOTAL_SCANLINES_PAL, CDP1869_SCANLINE_VBLANK_END_PAL, CDP1869_SCANLINE_VBLANK_START_PAL) |
| 570 | 568 | MDRV_SCREEN_DEFAULT_POSITION(1.226, 0.012, 1.4, 0.044) |
| r1711 | r1712 | |
| 591 | 589 | |
| 592 | 590 | // video hardware |
| 593 | 591 | |
| 594 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 595 | 592 | MDRV_PALETTE_LENGTH(8+64) |
| 596 | 593 | MDRV_PALETTE_INIT(cdp1869) |
| 597 | 594 | MDRV_VIDEO_START(cdp1869) |
| 598 | 595 | MDRV_VIDEO_UPDATE(cdp1869) |
| 599 | 596 | |
| 600 | MDRV_SCREEN_ADD("main", | |
| 597 | MDRV_SCREEN_ADD("main", RASTER) | |
| 601 | 598 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 602 | 599 | MDRV_SCREEN_RAW_PARAMS(ALTAIR_CHR2, CDP1869_SCREEN_WIDTH, CDP1869_HBLANK_END, CDP1869_HBLANK_START, CDP1869_TOTAL_SCANLINES_PAL, CDP1869_SCANLINE_VBLANK_END_PAL, CDP1869_SCANLINE_VBLANK_START_PAL) |
| 603 | 600 | MDRV_SCREEN_DEFAULT_POSITION(1.226, 0.012, 1.4, 0.044) |
| r1711 | r1712 | |
| 629 | 626 | |
| 630 | 627 | // video hardware |
| 631 | 628 | |
| 632 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 633 | 629 | MDRV_PALETTE_LENGTH(8+64) |
| 634 | 630 | MDRV_PALETTE_INIT(cdp1869) |
| 635 | 631 | MDRV_VIDEO_START(cdp1869) |
| 636 | 632 | MDRV_VIDEO_UPDATE(cdp1869) |
| 637 | 633 | |
| 638 | MDRV_SCREEN_ADD("main", | |
| 634 | MDRV_SCREEN_ADD("main", RASTER) | |
| 639 | 635 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 640 | 636 | MDRV_SCREEN_RAW_PARAMS(DRACO_CHR2, CDP1869_SCREEN_WIDTH, CDP1869_HBLANK_END, CDP1869_HBLANK_START, CDP1869_TOTAL_SCANLINES_PAL, CDP1869_SCANLINE_VBLANK_END_PAL, CDP1869_SCANLINE_VBLANK_START_PAL) |
| 641 | 637 | MDRV_SCREEN_DEFAULT_POSITION(1.226, 0.012, 1.360, 0.024) |
| r1711 | r1712 | |
|---|---|---|
| 423 | 423 | MDRV_NVRAM_HANDLER(generic_1fill) |
| 424 | 424 | |
| 425 | 425 | /* video hardware */ |
| 426 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 427 | 426 | MDRV_VIDEO_START(tickee) |
| 428 | 427 | MDRV_VIDEO_UPDATE(tms340x0) |
| 429 | 428 | |
| 430 | MDRV_SCREEN_ADD("main", | |
| 429 | MDRV_SCREEN_ADD("main", RASTER) | |
| 431 | 430 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 432 | 431 | MDRV_SCREEN_RAW_PARAMS(VIDEO_CLOCK/2, 444, 0, 320, 233, 0, 200) |
| 433 | 432 |
| r1711 | r1712 | |
|---|---|---|
| 190 | 190 | MDRV_CPU_IO_MAP(hotblock_io,0) |
| 191 | 191 | MDRV_CPU_VBLANK_INT(hotblocks_irq,1) |
| 192 | 192 | |
| 193 | /* video hardware */ | |
| 194 | MDRV_SCREEN_ADD("main", RASTER) | |
| 193 | 195 | MDRV_SCREEN_REFRESH_RATE(60) |
| 194 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 195 | ||
| 196 | /* video hardware */ | |
| 197 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 196 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 198 | 197 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 199 | 198 | MDRV_SCREEN_SIZE(1024,1024) |
| 200 | 199 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 0, 200-1) |
| 200 | ||
| 201 | 201 | MDRV_PALETTE_LENGTH(256) |
| 202 | 202 | |
| 203 | 203 | MDRV_VIDEO_START(hotblock) |
| r1711 | r1712 | |
|---|---|---|
| 631 | 631 | MDRV_CPU_VBLANK_INT(irq4_line_hold,2) |
| 632 | 632 | MDRV_CPU_PROGRAM_MAP(srmp5_mem,0) |
| 633 | 633 | |
| 634 | ||
| 635 | MDRV_SCREEN_ADD("main", RASTER) | |
| 634 | 636 | MDRV_SCREEN_REFRESH_RATE(60) |
| 635 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 636 | ||
| 637 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 637 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 638 | 638 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 639 | 639 | MDRV_SCREEN_SIZE(64*8, 64*8) |
| 640 | 640 | MDRV_SCREEN_VISIBLE_AREA(0*8, 350, 30, 280) |
| 641 | ||
| 641 | 642 | MDRV_PALETTE_LENGTH(16*16*4+1) |
| 642 | 643 | |
| 643 | 644 | MDRV_VIDEO_START(st0016) |
| r1711 | r1712 | |
|---|---|---|
| 177 | 177 | MDRV_CPU_PROGRAM_MAP(sound_map,0) |
| 178 | 178 | MDRV_CPU_VBLANK_INT(irq0_line_hold,4) /* NMIs are caused by the main CPU */ |
| 179 | 179 | |
| 180 | /* video hardware */ | |
| 181 | MDRV_SCREEN_ADD("main", RASTER) | |
| 180 | 182 | MDRV_SCREEN_REFRESH_RATE(60) |
| 181 | 183 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(5000)) |
| 182 | ||
| 183 | /* video hardware */ | |
| 184 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 185 | 184 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 186 | 185 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 187 | 186 | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 0*8, 28*8-1) |
| 187 | ||
| 188 | 188 | MDRV_GFXDECODE(suprloco) |
| 189 | 189 | MDRV_PALETTE_LENGTH(512+256) |
| 190 | 190 |
| r1711 | r1712 | |
|---|---|---|
| 195 | 195 | #include "machine/irem_cpu.h" |
| 196 | 196 | #include "sound/2151intf.h" |
| 197 | 197 | #include "sound/iremga20.h" |
| 198 | #include "cpu/nec/nec.h" | |
| 198 | 199 | |
| 199 | 200 | static UINT8 irqvector; |
| 200 | 201 | static UINT16 sound_status; |
| r1711 | r1712 | |
| 958 | 959 | MDRV_CPU_PROGRAM_MAP(m92_map,0) |
| 959 | 960 | MDRV_CPU_IO_MAP(m92_portmap,0) |
| 960 | 961 | |
| 961 | MDRV_CPU_ADD(V30, 14318180/2) /* 14.31818 MHz */ | |
| 962 | MDRV_CPU_ADD_TAG("sound" ,V30, 14318180/2) /* 14.31818 MHz */ | |
| 962 | 963 | MDRV_CPU_PROGRAM_MAP(sound_map,0) |
| 963 | 964 | |
| 964 | 965 | MDRV_MACHINE_START(m92) |
| 965 | 966 | MDRV_MACHINE_RESET(m92) |
| 966 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 967 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 968 | 967 | |
| 969 | 968 | /* video hardware */ |
| 970 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 969 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 970 | ||
| 971 | MDRV_SCREEN_ADD("main", RASTER) | |
| 972 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 973 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 971 | 974 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 972 | 975 | MDRV_SCREEN_SIZE(512, 256) |
| 973 | 976 | MDRV_SCREEN_VISIBLE_AREA(80, 511-112, 8, 247) /* 320 x 240 */ |
| 977 | ||
| 974 | 978 | MDRV_GFXDECODE(m92) |
| 975 | 979 | MDRV_PALETTE_LENGTH(2048) |
| 976 | 980 | |
| r1711 | r1712 | |
| 991 | 995 | MACHINE_DRIVER_END |
| 992 | 996 | |
| 993 | 997 | |
| 998 | static const nec_config gunforce_config ={ gunforce_decryption_table, }; | |
| 999 | static MACHINE_DRIVER_START( gunforce ) | |
| 1000 | MDRV_IMPORT_FROM( m92 ) | |
| 1001 | MDRV_CPU_MODIFY("sound") | |
| 1002 | MDRV_CPU_CONFIG(gunforce_config) | |
| 1003 | MACHINE_DRIVER_END | |
| 1004 | ||
| 1005 | static const nec_config bmaster_config ={ bomberman_decryption_table, }; | |
| 1006 | static MACHINE_DRIVER_START( bmaster ) | |
| 1007 | MDRV_IMPORT_FROM( m92 ) | |
| 1008 | MDRV_CPU_MODIFY("sound") | |
| 1009 | MDRV_CPU_CONFIG(bmaster_config) | |
| 1010 | MACHINE_DRIVER_END | |
| 1011 | ||
| 1012 | static const nec_config lethalth_config ={ lethalth_decryption_table, }; | |
| 994 | 1013 | static MACHINE_DRIVER_START( lethalth ) |
| 995 | 1014 | MDRV_IMPORT_FROM(m92) |
| 996 | ||
| 997 | /* basic machine hardware */ | |
| 998 | 1015 | MDRV_CPU_MODIFY("main") |
| 999 | 1016 | MDRV_CPU_PROGRAM_MAP(lethalth_map,0) |
| 1017 | MDRV_CPU_MODIFY("sound") | |
| 1018 | MDRV_CPU_CONFIG(lethalth_config) | |
| 1000 | 1019 | MACHINE_DRIVER_END |
| 1001 | 1020 | |
| 1021 | static const nec_config uccops_config ={ dynablaster_decryption_table, }; | |
| 1022 | static MACHINE_DRIVER_START( uccops ) | |
| 1023 | MDRV_IMPORT_FROM(m92) | |
| 1024 | MDRV_CPU_MODIFY("sound") | |
| 1025 | MDRV_CPU_CONFIG(uccops_config) | |
| 1026 | MACHINE_DRIVER_END | |
| 1002 | 1027 | |
| 1028 | static const nec_config mysticri_config ={ mysticri_decryption_table, }; | |
| 1029 | static MACHINE_DRIVER_START( mysticri ) | |
| 1030 | MDRV_IMPORT_FROM(m92) | |
| 1031 | MDRV_CPU_MODIFY("sound") | |
| 1032 | MDRV_CPU_CONFIG(mysticri_config) | |
| 1033 | MACHINE_DRIVER_END | |
| 1034 | ||
| 1035 | static const nec_config majtitl2_config ={ majtitl2_decryption_table, }; | |
| 1036 | static MACHINE_DRIVER_START( majtitl2 ) | |
| 1037 | MDRV_IMPORT_FROM(m92) | |
| 1038 | MDRV_CPU_MODIFY("sound") | |
| 1039 | MDRV_CPU_CONFIG(majtitl2_config) | |
| 1040 | MACHINE_DRIVER_END | |
| 1041 | ||
| 1042 | static const nec_config hook_config ={ hook_decryption_table, }; | |
| 1043 | static MACHINE_DRIVER_START( hook ) | |
| 1044 | MDRV_IMPORT_FROM(m92) | |
| 1045 | MDRV_CPU_MODIFY("sound") | |
| 1046 | MDRV_CPU_CONFIG(hook_config) | |
| 1047 | MACHINE_DRIVER_END | |
| 1048 | ||
| 1049 | static const nec_config rtypeleo_config ={ rtypeleo_decryption_table, }; | |
| 1050 | static MACHINE_DRIVER_START( rtypeleo ) | |
| 1051 | MDRV_IMPORT_FROM(m92) | |
| 1052 | MDRV_CPU_MODIFY("sound") | |
| 1053 | MDRV_CPU_CONFIG(rtypeleo_config) | |
| 1054 | MACHINE_DRIVER_END | |
| 1055 | ||
| 1056 | ||
| 1057 | static const nec_config inthunt_config ={ inthunt_decryption_table, }; | |
| 1058 | static MACHINE_DRIVER_START( inthunt ) | |
| 1059 | MDRV_IMPORT_FROM(m92) | |
| 1060 | MDRV_CPU_MODIFY("sound") | |
| 1061 | MDRV_CPU_CONFIG(inthunt_config) | |
| 1062 | MACHINE_DRIVER_END | |
| 1063 | ||
| 1064 | ||
| 1065 | static const nec_config nbbatman_config ={ leagueman_decryption_table, }; | |
| 1066 | static MACHINE_DRIVER_START( nbbatman ) | |
| 1067 | MDRV_IMPORT_FROM(m92) | |
| 1068 | MDRV_CPU_MODIFY("sound") | |
| 1069 | MDRV_CPU_CONFIG(nbbatman_config) | |
| 1070 | MACHINE_DRIVER_END | |
| 1071 | ||
| 1072 | ||
| 1073 | static const nec_config psoldier_config ={ psoldier_decryption_table, }; | |
| 1003 | 1074 | static MACHINE_DRIVER_START( psoldier ) |
| 1004 | 1075 | MDRV_IMPORT_FROM(m92) |
| 1076 | MDRV_CPU_MODIFY("sound") | |
| 1077 | MDRV_CPU_CONFIG(psoldier_config) | |
| 1078 | /* video hardware */ | |
| 1079 | MDRV_GFXDECODE(2) | |
| 1080 | MACHINE_DRIVER_END | |
| 1005 | 1081 | |
| 1082 | static const nec_config dsoccr94_config ={ dsoccr94_decryption_table, }; | |
| 1083 | static MACHINE_DRIVER_START( dsccr94j ) | |
| 1084 | MDRV_IMPORT_FROM(m92) | |
| 1085 | MDRV_CPU_MODIFY("sound") | |
| 1086 | MDRV_CPU_CONFIG(dsoccr94_config) | |
| 1006 | 1087 | /* video hardware */ |
| 1007 | 1088 | MDRV_GFXDECODE(2) |
| 1008 | 1089 | MACHINE_DRIVER_END |
| 1009 | 1090 | |
| 1091 | static const nec_config gunforc2_config ={ lethalth_decryption_table, }; | |
| 1092 | static MACHINE_DRIVER_START( gunforc2 ) | |
| 1093 | MDRV_IMPORT_FROM(m92) | |
| 1094 | MDRV_CPU_MODIFY("sound") | |
| 1095 | MDRV_CPU_CONFIG(gunforc2_config) | |
| 1096 | MACHINE_DRIVER_END | |
| 1097 | ||
| 1098 | ||
| 1010 | 1099 | /***************************************************************************/ |
| 1011 | 1100 | |
| 1012 | 1101 | ROM_START( bmaster ) /* M92-B-B PCB used for program rom locations */ |
| r1711 | r1712 | |
| 1899 | 1988 | ROM_END |
| 1900 | 1989 | |
| 1901 | 1990 | |
| 1902 | static void init_m92(running_machine *machine, | |
| 1991 | static void init_m92(running_machine *machine, | |
| 1903 | 1992 | { |
| 1904 | 1993 | UINT8 *RAM = memory_region(REGION_CPU1); |
| 1905 | 1994 | |
| r1711 | r1712 | |
| 1922 | 2011 | m92_sprite_buffer_busy=1; |
| 1923 | 2012 | |
| 1924 | 2013 | setvector_callback(machine, NULL, VECTOR_INIT); |
| 1925 | irem_cpu_decrypt(1,decryption_table); | |
| 1926 | 2014 | } |
| 1927 | 2015 | |
| 1928 | 2016 | static DRIVER_INIT( bmaster ) |
| 1929 | 2017 | { |
| 1930 | init_m92(machine, | |
| 2018 | init_m92(machine, | |
| 1931 | 2019 | } |
| 1932 | 2020 | |
| 1933 | 2021 | static DRIVER_INIT( gunforce ) |
| 1934 | 2022 | { |
| 1935 | init_m92(machine, | |
| 2023 | init_m92(machine, | |
| 1936 | 2024 | } |
| 1937 | 2025 | |
| 1938 | 2026 | static DRIVER_INIT( hook ) |
| 1939 | 2027 | { |
| 1940 | init_m92(machine, | |
| 2028 | init_m92(machine, | |
| 1941 | 2029 | } |
| 1942 | 2030 | |
| 1943 | 2031 | static DRIVER_INIT( mysticri ) |
| 1944 | 2032 | { |
| 1945 | init_m92(machine, | |
| 2033 | init_m92(machine, | |
| 1946 | 2034 | } |
| 1947 | 2035 | |
| 1948 | 2036 | static DRIVER_INIT( uccops ) |
| 1949 | 2037 | { |
| 1950 | init_m92(machine, | |
| 2038 | init_m92(machine, | |
| 1951 | 2039 | } |
| 1952 | 2040 | |
| 1953 | 2041 | static DRIVER_INIT( rtypeleo ) |
| 1954 | 2042 | { |
| 1955 | init_m92(machine, | |
| 2043 | init_m92(machine, | |
| 1956 | 2044 | m92_irq_vectorbase=0x20; |
| 1957 | 2045 | } |
| 1958 | 2046 | |
| 1959 | 2047 | static DRIVER_INIT( rtypelej ) |
| 1960 | 2048 | { |
| 1961 | init_m92(machine, | |
| 2049 | init_m92(machine, | |
| 1962 | 2050 | m92_irq_vectorbase=0x20; |
| 1963 | 2051 | } |
| 1964 | 2052 | |
| 1965 | 2053 | static DRIVER_INIT( majtitl2 ) |
| 1966 | 2054 | { |
| 1967 | init_m92(machine, | |
| 2055 | init_m92(machine, | |
| 1968 | 2056 | |
| 1969 | 2057 | /* This game has an eprom on the game board */ |
| 1970 | 2058 | memory_install_read16_handler(0, ADDRESS_SPACE_PROGRAM, 0xf0000, 0xf3fff, 0, 0, m92_eeprom_r); |
| r1711 | r1712 | |
| 1975 | 2063 | |
| 1976 | 2064 | static DRIVER_INIT( kaiteids ) |
| 1977 | 2065 | { |
| 1978 | init_m92(machine, | |
| 2066 | init_m92(machine, | |
| 1979 | 2067 | } |
| 1980 | 2068 | |
| 1981 | 2069 | static DRIVER_INIT( inthunt ) |
| 1982 | 2070 | { |
| 1983 | init_m92(machine, | |
| 2071 | init_m92(machine, | |
| 1984 | 2072 | } |
| 1985 | 2073 | |
| 1986 | 2074 | |
| 1987 | 2075 | static DRIVER_INIT( lethalth ) |
| 1988 | 2076 | { |
| 1989 | init_m92(machine, | |
| 2077 | init_m92(machine, | |
| 1990 | 2078 | m92_irq_vectorbase=0x20; |
| 1991 | 2079 | |
| 1992 | 2080 | /* NOP out the bankswitcher */ |
| r1711 | r1712 | |
| 1997 | 2085 | { |
| 1998 | 2086 | UINT8 *RAM = memory_region(REGION_CPU1); |
| 1999 | 2087 | |
| 2000 | init_m92(machine, | |
| 2088 | init_m92(machine, | |
| 2001 | 2089 | |
| 2002 | 2090 | memcpy(RAM+0x80000,RAM+0x100000,0x20000); |
| 2003 | 2091 | } |
| 2004 | 2092 | |
| 2005 | 2093 | static DRIVER_INIT( ssoldier ) |
| 2006 | 2094 | { |
| 2007 | init_m92(machine, | |
| 2095 | init_m92(machine, | |
| 2008 | 2096 | m92_irq_vectorbase=0x20; |
| 2009 | 2097 | /* main CPU expects an answer even before writing the first command */ |
| 2010 | 2098 | sound_status = 0x80; |
| r1711 | r1712 | |
| 2012 | 2100 | |
| 2013 | 2101 | static DRIVER_INIT( psoldier ) |
| 2014 | 2102 | { |
| 2015 | init_m92(machine, | |
| 2103 | init_m92(machine, | |
| 2016 | 2104 | m92_irq_vectorbase=0x20; |
| 2017 | 2105 | /* main CPU expects an answer even before writing the first command */ |
| 2018 | 2106 | sound_status = 0x80; |
| r1711 | r1712 | |
| 2020 | 2108 | |
| 2021 | 2109 | static DRIVER_INIT( dsccr94j ) |
| 2022 | 2110 | { |
| 2023 | init_m92(machine, | |
| 2111 | init_m92(machine, | |
| 2024 | 2112 | } |
| 2025 | 2113 | |
| 2026 | 2114 | static DRIVER_INIT( gunforc2 ) |
| 2027 | 2115 | { |
| 2028 | 2116 | UINT8 *RAM = memory_region(REGION_CPU1); |
| 2029 | init_m92(machine, | |
| 2117 | init_m92(machine, | |
| 2030 | 2118 | memcpy(RAM+0x80000,RAM+0x100000,0x20000); |
| 2031 | 2119 | } |
| 2032 | 2120 | |
| 2033 | 2121 | /***************************************************************************/ |
| 2034 | 2122 | |
| 2035 | GAME( 1991, gunforce, 0, m92, gunforce, gunforce, ROT0, "Irem", "Gunforce - Battle Fire Engulfed Terror Island (World)", 0 ) | |
| 2036 | GAME( 1991, gunforcj, gunforce, m92, gunforce, gunforce, ROT0, "Irem", "Gunforce - Battle Fire Engulfed Terror Island (Japan)", 0 ) | |
| 2037 | GAME( 1991, gunforcu, gunforce, m92, gunforce, gunforce, ROT0, "Irem America", "Gunforce - Battle Fire Engulfed Terror Island (US)", 0 ) | |
| 2038 | GAME( 1991, bmaster, 0, m92, bmaster, bmaster, ROT0, "Irem", "Blade Master (World)", 0 ) | |
| 2039 | GAME( 1991, crossbld, bmaster, m92, bmaster, bmaster, ROT0, "Irem", "Cross Blades! (Japan)", 0 ) | |
| 2040 | GAME( 1991, lethalth, 0, lethalth, lethalth, lethalth, ROT270, "Irem", "Lethal Thunder (World)", 0 ) | |
| 2041 | GAME( 1991, thndblst, lethalth, lethalth, lethalth, lethalth, ROT270, "Irem", "Thunder Blaster (Japan)", 0 ) | |
| 2042 | GAME( 1992, uccops, 0, m92, uccops, uccops, ROT0, "Irem", "Undercover Cops (World)", 0 ) | |
| 2043 | GAME( 1992, uccopsar, uccops, m92, uccops, uccops, ROT0, "Irem", "Undercover Cops (Alpha Renewal Version)", 0 ) | |
| 2044 | GAME( 1992, uccopsj, uccops, m92, uccops, uccops, ROT0, "Irem", "Undercover Cops (Japan)", 0 ) | |
| 2045 | GAME( 1992, mysticri, 0, m92, mysticri, mysticri, ROT0, "Irem", "Mystic Riders (World)", 0 ) | |
| 2046 | GAME( 1992, gunhohki, mysticri, m92, mysticri, mysticri, ROT0, "Irem", "Gun Hohki (Japan)", 0 ) | |
| 2047 | GAME( 1992, majtitl2, 0, m92, majtitl2, majtitl2, ROT0, "Irem", "Major Title 2 (World)", 0 ) | |
| 2048 | GAME( 1992, majtit2j, majtitl2, m92, majtitl2, majtitl2, ROT0, "Irem", "Major Title 2 (Japan)", 0 ) | |
| 2049 | GAME( 1992, skingame, majtitl2, m92, majtitl2, majtitl2, ROT0, "Irem America", "The Irem Skins Game (US set 1)", 0 ) | |
| 2050 | GAME( 1992, skingam2, majtitl2, m92, majtitl2, majtitl2, ROT0, "Irem America", "The Irem Skins Game (US set 2)", 0 ) | |
| 2051 | GAME( 1992, hook, 0, m92, hook, hook, ROT0, "Irem", "Hook (World)", 0 ) | |
| 2052 | GAME( 1992, hooku, hook, m92, hook, hook, ROT0, "Irem America", "Hook (US)", 0 ) | |
| 2053 | GAME( 1992, hookj, hook, m92, hook, hook, ROT0, "Irem", "Hook (Japan)", 0 ) | |
| 2054 | GAME( 1992, rtypeleo, 0, m92, rtypeleo, rtypeleo, ROT0, "Irem", "R-Type Leo (World)", 0 ) | |
| 2055 | GAME( 1992, rtypelej, rtypeleo, m92, rtypeleo, rtypelej, ROT0, "Irem", "R-Type Leo (Japan)", 0 ) | |
| 2056 | GAME( 1993, inthunt, 0, m92, inthunt, inthunt, ROT0, "Irem", "In The Hunt (World)", 0 ) | |
| 2057 | GAME( 1993, inthuntu, inthunt, m92, inthunt, inthunt, ROT0, "Irem America", "In The Hunt (US)", 0 ) | |
| 2058 | GAME( 1993, kaiteids, inthunt, m92, inthunt, kaiteids, ROT0, "Irem", "Kaitei Daisensou (Japan)", 0 ) | |
| 2059 | GAME( 1993, nbbatman, 0, m92, nbbatman, nbbatman, ROT0, "Irem America", "Ninja Baseball Batman (US)", GAME_IMPERFECT_GRAPHICS ) | |
| 2060 | GAME( 1993, leaguemn, nbbatman, m92, nbbatman, nbbatman, ROT0, "Irem", "Yakyuu Kakutou League-Man (Japan)", GAME_IMPERFECT_GRAPHICS ) | |
| 2061 | GAME( 1993, ssoldier, 0, psoldier, psoldier, ssoldier, ROT0, "Irem America", "Superior Soldiers (US)", GAME_IMPERFECT_SOUND ) | |
| 2062 | GAME( 1993, psoldier, ssoldier, psoldier, psoldier, psoldier, ROT0, "Irem", "Perfect Soldiers (Japan)", GAME_IMPERFECT_SOUND ) | |
| 2063 | GAME( 1994, dsccr94j, dsoccr94, psoldier, dsccr94j, dsccr94j, ROT0, "Irem", "Dream Soccer '94 (Japan)", 0 ) | |
| 2064 | GAME( 1994, gunforc2, 0, m92, gunforc2, gunforc2, ROT0, "Irem", "Gunforce 2 (US)", 0 ) | |
| 2065 | GAME( 1994, geostorm, gunforc2, m92, gunforc2, gunforc2, ROT0, "Irem", "Geostorm (Japan)", 0 ) | |
| 2123 | GAME( 1991, gunforce, 0, gunforce, gunforce, gunforce, ROT0, "Irem", "Gunforce - Battle Fire Engulfed Terror Island (World)", 0 ) | |
| 2124 | GAME( 1991, gunforcj, gunforce, gunforce, gunforce, gunforce, ROT0, "Irem", "Gunforce - Battle Fire Engulfed Terror Island (Japan)", 0 ) | |
| 2125 | GAME( 1991, gunforcu, gunforce, gunforce, gunforce, gunforce, ROT0, "Irem America", "Gunforce - Battle Fire Engulfed Terror Island (US)", 0 ) | |
| 2126 | GAME( 1991, bmaster, 0, bmaster, bmaster, bmaster, ROT0, "Irem", "Blade Master (World)", 0 ) | |
| 2127 | GAME( 1991, crossbld, bmaster, bmaster, bmaster, bmaster, ROT0, "Irem", "Cross Blades! (Japan)", 0 ) | |
| 2128 | GAME( 1991, lethalth, 0, lethalth, lethalth, lethalth, ROT270, "Irem", "Lethal Thunder (World)", 0 ) | |
| 2129 | GAME( 1991, thndblst, lethalth, lethalth, lethalth, lethalth, ROT270, "Irem", "Thunder Blaster (Japan)", 0 ) | |
| 2130 | GAME( 1992, uccops, 0, uccops, uccops, uccops, ROT0, "Irem", "Undercover Cops (World)", 0 ) | |
| 2131 | GAME( 1992, uccopsar, uccops, uccops, uccops, uccops, ROT0, "Irem", "Undercover Cops (Alpha Renewal Version)", 0 ) | |
| 2132 | GAME( 1992, uccopsj, uccops, uccops, uccops, uccops, ROT0, "Irem", "Undercover Cops (Japan)", 0 ) | |
| 2133 | GAME( 1992, mysticri, 0, mysticri, mysticri, mysticri, ROT0, "Irem", "Mystic Riders (World)", 0 ) | |
| 2134 | GAME( 1992, gunhohki, mysticri, mysticri, mysticri, mysticri, ROT0, "Irem", "Gun Hohki (Japan)", 0 ) | |
| 2135 | GAME( 1992, majtitl2, 0, majtitl2, majtitl2, majtitl2, ROT0, "Irem", "Major Title 2 (World)", 0 ) | |
| 2136 | GAME( 1992, majtit2j, majtitl2, majtitl2, majtitl2, majtitl2, ROT0, "Irem", "Major Title 2 (Japan)", 0 ) | |
| 2137 | GAME( 1992, skingame, majtitl2, majtitl2, majtitl2, majtitl2, ROT0, "Irem America", "The Irem Skins Game (US set 1)", 0 ) | |
| 2138 | GAME( 1992, skingam2, majtitl2, majtitl2, majtitl2, majtitl2, ROT0, "Irem America", "The Irem Skins Game (US set 2)", 0 ) | |
| 2139 | GAME( 1992, hook, 0, hook, hook, hook, ROT0, "Irem", "Hook (World)", 0 ) | |
| 2140 | GAME( 1992, hooku, hook, hook, hook, hook, ROT0, "Irem America", "Hook (US)", 0 ) | |
| 2141 | GAME( 1992, hookj, hook, hook, hook, hook, ROT0, "Irem", "Hook (Japan)", 0 ) | |
| 2142 | GAME( 1992, rtypeleo, 0, rtypeleo, rtypeleo, rtypeleo, ROT0, "Irem", "R-Type Leo (World)", 0 ) | |
| 2143 | GAME( 1992, rtypelej, rtypeleo, rtypeleo, rtypeleo, rtypelej, ROT0, "Irem", "R-Type Leo (Japan)", 0 ) | |
| 2144 | GAME( 1993, inthunt, 0, inthunt, inthunt, inthunt, ROT0, "Irem", "In The Hunt (World)", 0 ) | |
| 2145 | GAME( 1993, inthuntu, inthunt, inthunt, inthunt, inthunt, ROT0, "Irem America", "In The Hunt (US)", 0 ) | |
| 2146 | GAME( 1993, kaiteids, inthunt, inthunt, inthunt, kaiteids, ROT0, "Irem", "Kaitei Daisensou (Japan)", 0 ) | |
| 2147 | GAME( 1993, nbbatman, 0, nbbatman, nbbatman, nbbatman, ROT0, "Irem America", "Ninja Baseball Batman (US)", GAME_IMPERFECT_GRAPHICS ) | |
| 2148 | GAME( 1993, leaguemn, nbbatman, nbbatman, nbbatman, nbbatman, ROT0, "Irem", "Yakyuu Kakutou League-Man (Japan)", GAME_IMPERFECT_GRAPHICS ) | |
| 2149 | GAME( 1993, ssoldier, 0, psoldier, psoldier, ssoldier, ROT0, "Irem America", "Superior Soldiers (US)", GAME_IMPERFECT_SOUND ) | |
| 2150 | GAME( 1993, psoldier, ssoldier, psoldier, psoldier, psoldier, ROT0, "Irem", "Perfect Soldiers (Japan)", GAME_IMPERFECT_SOUND ) | |
| 2151 | GAME( 1994, dsccr94j, dsoccr94, dsccr94j, dsccr94j, dsccr94j, ROT0, "Irem", "Dream Soccer '94 (Japan)", 0 ) | |
| 2152 | GAME( 1994, gunforc2, 0, gunforc2, gunforc2, gunforc2, ROT0, "Irem", "Gunforce 2 (US)", 0 ) | |
| 2153 | GAME( 1994, geostorm, gunforc2, gunforc2, gunforc2, gunforc2, ROT0, "Irem", "Geostorm (Japan)", 0 ) |
| r1711 | r1712 | |
|---|---|---|
| 188 | 188 | |
| 189 | 189 | bankbase = attrs<<3 & 0x100; |
| 190 | 190 | c = attrs & 0x0f; |
| 191 | if (c > 11) { fillbitmap(bitmap, | |
| 191 | if (c > 11) { fillbitmap(bitmap, | |
| 192 | 192 | if (c<8 || color[0]<14 || bankbase) |
| 193 | 193 | { |
| 194 | 194 | c ^= 0x08; |
| r1711 | r1712 | |
| 711 | 711 | MDRV_CPU_PROGRAM_MAP(aso_sound_map,0) |
| 712 | 712 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 713 | 713 | |
| 714 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 715 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 716 | 714 | MDRV_INTERLEAVE(100) |
| 717 | 715 | |
| 718 | 716 | /* video hardware */ |
| 719 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS) | |
| 717 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 718 | ||
| 719 | MDRV_SCREEN_ADD("main", RASTER) | |
| 720 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 721 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 720 | 722 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 721 | 723 | MDRV_SCREEN_SIZE(36*8, 28*8) |
| 722 | 724 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 1*8, 28*8-1) |
| 725 | ||
| 723 | 726 | MDRV_GFXDECODE(aso) |
| 724 | 727 | MDRV_PALETTE_LENGTH(1024) |
| 725 | 728 | |
| r1711 | r1712 | |
| 754 | 757 | MDRV_CPU_VBLANK_INT(hal21_sound_interrupt,1) |
| 755 | 758 | MDRV_CPU_PERIODIC_INT(irq0_line_hold, 220) // music tempo, hand tuned |
| 756 | 759 | |
| 757 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 758 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 759 | 760 | MDRV_INTERLEAVE(100) |
| 760 | 761 | |
| 761 | 762 | /* video hardware */ |
| 762 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_HIGHLIGHTS) | |
| 763 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_HIGHLIGHTS) | |
| 764 | ||
| 765 | MDRV_SCREEN_ADD("main", RASTER) | |
| 766 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 767 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 763 | 768 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 764 | 769 | MDRV_SCREEN_SIZE(36*8, 28*8) |
| 765 | 770 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 1*8, 28*8-1) |
| 771 | ||
| 766 | 772 | MDRV_GFXDECODE(aso) |
| 767 | 773 | MDRV_PALETTE_LENGTH(1024) |
| 768 | 774 |
| r1711 | r1712 | |
|---|---|---|
| 10 | 10 | ****************************************************************************/ |
| 11 | 11 | |
| 12 | 12 | #include "driver.h" |
| 13 | #include "iremipt.h" | |
| 13 | 14 | #include "m58.h" |
| 14 | 15 | #include "audio/irem.h" |
| 15 | 16 | |
| 16 | 17 | #define MASTER_CLOCK XTAL_18_432MHz |
| 17 | 18 | |
| 18 | 19 | |
| 19 | ||
| 20 | 20 | /************************************* |
| 21 | 21 | * |
| 22 | * Outputs | |
| 23 | * | |
| 24 | *************************************/ | |
| 25 | ||
| 26 | static WRITE8_HANDLER( yard_flipscreen_w ) | |
| 27 | { | |
| 28 | flip_screen_set((data & 0x01) ^ (~readinputport(4) & 0x01)); | |
| 29 | ||
| 30 | coin_counter_w(0, data & 0x02); | |
| 31 | coin_counter_w(1, data & 0x20); | |
| 32 | } | |
| 33 | ||
| 34 | ||
| 35 | ||
| 36 | /************************************* | |
| 37 | * | |
| 38 | 22 | * Memory maps |
| 39 | 23 | * |
| 40 | 24 | *************************************/ |
| r1711 | r1712 | |
| 48 | 32 | AM_RANGE(0xa200, 0xa200) AM_RAM AM_BASE(&yard_scroll_x_high) |
| 49 | 33 | AM_RANGE(0xa400, 0xa400) AM_RAM AM_BASE(&yard_scroll_y_low) |
| 50 | 34 | AM_RANGE(0xa800, 0xa800) AM_RAM AM_BASE(&yard_score_panel_disabled) |
| 51 | AM_RANGE(0xd000, 0xd000) AM_READWRITE(input_port_0_r, irem_sound_cmd_w) | |
| 52 | AM_RANGE(0xd001, 0xd001) AM_READWRITE(input_port_1_r, yard_flipscreen_w) | |
| 53 | AM_RANGE(0xd002, 0xd002) AM_READ(input_port_2_r) | |
| 54 | AM_RANGE(0xd003, 0xd003) AM_READ(input_port_3_r) | |
| 55 | AM_RANGE(0xd004, 0xd004) AM_READ(input_port_4_r) | |
| 35 | AM_RANGE(0xd000, 0xd000) AM_WRITE(irem_sound_cmd_w) | |
| 36 | AM_RANGE(0xd001, 0xd001) AM_WRITE(yard_flipscreen_w) /* + coin counters */ | |
| 37 | AM_RANGE(0xd000, 0xd000) AM_READ_PORT("IN0") | |
| 38 | AM_RANGE(0xd001, 0xd001) AM_READ_PORT("IN1") | |
| 39 | AM_RANGE(0xd002, 0xd002) AM_READ_PORT("IN2") | |
| 40 | AM_RANGE(0xd003, 0xd003) AM_READ_PORT("DSW1") | |
| 41 | AM_RANGE(0xd004, 0xd004) AM_READ_PORT("DSW2") | |
| 56 | 42 | AM_RANGE(0xe000, 0xefff) AM_RAM |
| 57 | 43 | ADDRESS_MAP_END |
| 58 | 44 | |
| r1711 | r1712 | |
| 60 | 46 | |
| 61 | 47 | /************************************* |
| 62 | 48 | * |
| 63 | * | |
| 49 | * Generic port definitions | |
| 64 | 50 | * |
| 65 | 51 | *************************************/ |
| 66 | 52 | |
| 67 | static INPUT_PORTS_START( yard ) | |
| 53 | /* Same as m52, m57 and m62 (IREM Z80 hardware) */ | |
| 54 | static INPUT_PORTS_START( m58 ) | |
| 68 | 55 | PORT_START_TAG("IN0") |
| 56 | /* Start 1 & 2 also restarts and freezes the game with stop mode on | |
| 57 | and are used in test mode to enter and esc the various tests */ | |
| 69 | 58 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 70 | 59 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| 71 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) PORT_IMPULSE(19) // coin input must be active for 19 frames to be consistently recognized | |
| 60 | /* coin input must be active for 19 frames to be consistently recognized */ | |
| 61 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) PORT_IMPULSE(19) | |
| 72 | 62 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 73 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 74 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 75 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 76 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 63 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 77 | 64 | |
| 78 | 65 | PORT_START_TAG("IN1") |
| 79 | 66 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 80 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 81 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 82 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 83 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 84 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 85 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 86 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 67 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 68 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 69 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 70 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 71 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 72 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 73 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 87 | 74 | |
| 88 | 75 | PORT_START_TAG("IN2") |
| 89 | 76 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL |
| 90 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 91 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 92 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 77 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 78 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 79 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 93 | 80 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 94 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 95 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 96 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 81 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 82 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 83 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 97 | 84 | |
| 98 | PORT_START_TAG("DSW1") | |
| 99 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW1:1") /* Listed as "Unused" */ | |
| 100 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 101 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 102 | PORT_DIPNAME( 0x02, 0x02, "Defensive Man Pause" ) PORT_DIPLOCATION("SW1:2") /* Listed as "Unused" */ | |
| 103 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 104 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 105 | PORT_DIPNAME( 0x0c, 0x0c, "Time Reduced by Ball Dead" ) PORT_DIPLOCATION("SW1:3,4") | |
| 106 | PORT_DIPSETTING( 0x0c, DEF_STR( Normal ) ) | |
| 107 | PORT_DIPSETTING( 0x08, "x1.3" ) | |
| 108 | PORT_DIPSETTING( 0x04, "x1.5" ) | |
| 109 | PORT_DIPSETTING( 0x00, "x1.8" ) | |
| 110 | // coin mode 1 | |
| 111 | PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coinage ) ) PORT_CONDITION("DSW2", 0x04, PORTCOND_NOTEQUALS, 0x00) PORT_DIPLOCATION("SW1:5,6,7,8") | |
| 112 | PORT_DIPSETTING( 0xa0, DEF_STR( 6C_1C ) ) | |
| 113 | PORT_DIPSETTING( 0xb0, DEF_STR( 5C_1C ) ) | |
| 114 | PORT_DIPSETTING( 0xc0, DEF_STR( 4C_1C ) ) | |
| 115 | PORT_DIPSETTING( 0xd0, DEF_STR( 3C_1C ) ) | |
| 116 | PORT_DIPSETTING( 0xe0, DEF_STR( 2C_1C ) ) | |
| 117 | PORT_DIPSETTING( 0xf0, DEF_STR( 1C_1C ) ) | |
| 118 | PORT_DIPSETTING( 0x70, DEF_STR( 1C_2C ) ) | |
| 119 | PORT_DIPSETTING( 0x60, DEF_STR( 1C_3C ) ) | |
| 120 | PORT_DIPSETTING( 0x50, DEF_STR( 1C_4C ) ) | |
| 121 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_5C ) ) | |
| 122 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_6C ) ) | |
| 123 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) | |
| 124 | // coin mode 2 | |
| 125 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) PORT_CONDITION("DSW2", 0x04, PORTCOND_EQUALS, 0x00) PORT_DIPLOCATION("SW1:5,6") | |
| 126 | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) | |
| 127 | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) | |
| 128 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) | |
| 129 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) | |
| 130 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Coin_B ) ) PORT_CONDITION("DSW2", 0x04, PORTCOND_EQUALS, 0x00) PORT_DIPLOCATION("SW1:7,8") | |
| 131 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_2C ) ) | |
| 132 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_3C ) ) | |
| 133 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_5C ) ) | |
| 134 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_6C ) ) | |
| 85 | /* DSW1 is so different from game to game that it isn't included here */ | |
| 135 | 86 | |
| 136 | 87 | PORT_START_TAG("DSW2") |
| 137 | 88 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW2:1") |
| r1711 | r1712 | |
| 143 | 94 | PORT_DIPNAME( 0x04, 0x04, "Coin Mode" ) PORT_DIPLOCATION("SW2:3") |
| 144 | 95 | PORT_DIPSETTING( 0x04, "Mode 1" ) |
| 145 | 96 | PORT_DIPSETTING( 0x00, "Mode 2" ) |
| 146 | PORT_DIPNAME( 0x08, 0x08, "Slow Motion" ) PORT_DIPLOCATION("SW2:4") /* Listed as "Unused" */ | |
| 97 | PORT_DIPUNKNOWN_DIPLOC( 0x08, IP_ACTIVE_LOW, "SW2:4" ) | |
| 98 | PORT_DIPUNKNOWN_DIPLOC( 0x10, IP_ACTIVE_LOW, "SW2:5" ) | |
| 99 | PORT_DIPUNKNOWN_DIPLOC( 0x20, IP_ACTIVE_LOW, "SW2:6" ) | |
| 100 | PORT_DIPNAME( 0x40, 0x40, "Invulnerability (Cheat)") PORT_DIPLOCATION("SW2:7") | |
| 101 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 102 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 103 | PORT_SERVICE_DIPLOC( 0x80, IP_ACTIVE_LOW, "SW2:8" ) | |
| 104 | INPUT_PORTS_END | |
| 105 | ||
| 106 | /************************************* | |
| 107 | * | |
| 108 | * Games port definitions | |
| 109 | * | |
| 110 | *************************************/ | |
| 111 | ||
| 112 | static INPUT_PORTS_START( yard ) | |
| 113 | PORT_INCLUDE(m58) | |
| 114 | ||
| 115 | PORT_MODIFY("DSW2") | |
| 116 | PORT_DIPNAME( 0x08, 0x08, "Slow Motion (Cheat)" ) PORT_DIPLOCATION("SW2:4") /* Listed as "Unused" */ | |
| 147 | 117 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) |
| 148 | 118 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 149 | PORT_DIPNAME( 0x10, 0x10, "Freeze Picture" ) PORT_DIPLOCATION("SW2:5") /* 2P Start stops gameplay, 1P Start continues */ | |
| 119 | /* In stop mode, press 2 to stop and 1 to restart */ | |
| 120 | PORT_DIPNAME( 0x10, 0x10, "Stop Mode (Cheat)") PORT_DIPLOCATION("SW2:5") /* Listed as "Unused" */ | |
| 150 | 121 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| 151 | 122 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 152 | PORT_DIPNAME( 0x20, 0x20, | |
| 123 | PORT_DIPNAME( 0x20, 0x20, " | |
| 153 | 124 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 154 | 125 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 155 | PORT_DIPNAME( 0x40, 0x40, "Invulnerability" ) PORT_DIPLOCATION("SW2:7") | |
| 156 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 157 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 158 | PORT_SERVICE_DIPLOC(0x80, IP_ACTIVE_LOW, "SW2:8" ) | |
| 126 | ||
| 127 | PORT_START_TAG("DSW1") | |
| 128 | PORT_DIPUNUSED_DIPLOC( 0x01, IP_ACTIVE_LOW, "SW1:1" ) | |
| 129 | PORT_DIPUNUSED_DIPLOC( 0x02, IP_ACTIVE_LOW, "SW1:2" ) | |
| 130 | PORT_DIPNAME( 0x0c, 0x0c, "Time Reduced by Ball Dead" ) PORT_DIPLOCATION("SW1:3,4") | |
| 131 | PORT_DIPSETTING( 0x0c, DEF_STR( Normal ) ) | |
| 132 | PORT_DIPSETTING( 0x08, "x1.3" ) | |
| 133 | PORT_DIPSETTING( 0x04, "x1.5" ) | |
| 134 | PORT_DIPSETTING( 0x00, "x1.8" ) | |
| 135 | IREM_Z80_COINAGE_TYPE_1_LOC(SW1) | |
| 159 | 136 | INPUT_PORTS_END |
| 160 | 137 | |
| 161 | static INPUT_PORTS_START( vsyar | |
| 138 | static INPUT_PORTS_START( vs10yarj ) | |
| 162 | 139 | PORT_INCLUDE(yard) |
| 163 | 140 | |
| 164 | 141 | PORT_MODIFY("DSW1") |
| 165 | 142 | PORT_DIPNAME( 0x01, 0x01, "Allow Continue (Vs. Mode)" ) PORT_DIPLOCATION("SW1:1") |
| 166 | 143 | PORT_DIPSETTING( 0x01, DEF_STR( No ) ) |
| 167 | 144 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) |
| 145 | PORT_DIPNAME( 0x02, 0x02, "Defensive Man Pause" ) PORT_DIPLOCATION("SW1:2") /* Listed as "Unused" */ | |
| 146 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 147 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 168 | 148 | INPUT_PORTS_END |
| 169 | 149 | |
| 150 | static INPUT_PORTS_START( vs10yard ) | |
| 151 | PORT_INCLUDE(vs10yarj) | |
| 170 | 152 | |
| 153 | PORT_MODIFY("IN1") | |
| 154 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* additional test at 0x46e0 on interruption - must be 0 */ | |
| 155 | INPUT_PORTS_END | |
| 171 | 156 | |
| 157 | ||
| 158 | ||
| 172 | 159 | /************************************* |
| 173 | 160 | * |
| 174 | 161 | * Graphics layouts |
| r1711 | r1712 | |
| 208 | 195 | MDRV_CPU_VBLANK_INT(irq0_line_hold, 1) |
| 209 | 196 | |
| 210 | 197 | /* video hardware */ |
| 211 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 212 | 198 | MDRV_GFXDECODE(yard) |
| 213 | 199 | MDRV_PALETTE_LENGTH(256+256+256) |
| 214 | 200 | |
| 215 | MDRV_SCREEN_ADD("main", | |
| 201 | MDRV_SCREEN_ADD("main", RASTER) | |
| 216 | 202 | MDRV_SCREEN_RAW_PARAMS(MASTER_CLOCK/3, 384, 0, 256, 282, 42, 266) |
| 217 | 203 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 218 | 204 | |
| r1711 | r1712 | |
| 376 | 362 | * |
| 377 | 363 | *************************************/ |
| 378 | 364 | |
| 379 | GAME( 1983, 10yard, 0, yard, yard, 0, ROT0, "Irem", "10-Yard Fight (World)", 0 ) | |
| 380 | GAME( 1983, 10yardj, 10yard, yard, yard, 0, ROT0, "Irem", "10-Yard Fight (Japan)", 0 ) | |
| 381 | GAME( 1984, vs10yard, 10yard, yard, vsyard, 0, ROT0, "Irem", "Vs 10-Yard Fight (World, 11/05/84)", 0 ) | |
| 382 | GAME( 1984, vs10yarj, 10yard, yard, vsyard, 0, ROT0, "Irem", "Vs 10-Yard Fight (Japan)", 0 ) | |
| 365 | GAME( 1983, 10yard, 0, yard, yard, 0, ROT0, "Irem", "10-Yard Fight (World)", 0 ) | |
| 366 | GAME( 1983, 10yardj, 10yard, yard, yard, 0, ROT0, "Irem", "10-Yard Fight (Japan)", 0 ) | |
| 367 | GAME( 1984, vs10yard, 10yard, yard, vs10yard, 0, ROT0, "Irem", "Vs 10-Yard Fight (World, 11/05/84)", 0 ) | |
| 368 | GAME( 1984, vs10yarj, 10yard, yard, vs10yarj, 0, ROT0, "Irem", "Vs 10-Yard Fight (Japan)", 0 ) |
| r1711 | r1712 | |
|---|---|---|
| 587 | 587 | /* audio CPU */ |
| 588 | 588 | MDRV_CPU_PROGRAM_MAP(readmem_sound,writemem_sound) |
| 589 | 589 | /* interrupts are triggered by the main CPU */ |
| 590 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 591 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 592 | 590 | |
| 593 | 591 | MDRV_MACHINE_RESET(vendetta) |
| 594 | 592 | MDRV_NVRAM_HANDLER(vendetta) |
| 595 | 593 | |
| 596 | 594 | /* video hardware */ |
| 597 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS) | |
| 595 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 596 | ||
| 597 | MDRV_SCREEN_ADD("main", RASTER) | |
| 598 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 599 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 598 | 600 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 599 | 601 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 600 | 602 | MDRV_SCREEN_VISIBLE_AREA(13*8, (64-13)*8-1, 2*8, 30*8-1 ) |
| 603 | ||
| 601 | 604 | MDRV_PALETTE_LENGTH(2048) |
| 602 | 605 | |
| 603 | 606 | MDRV_VIDEO_START(vendetta) |
| r1711 | r1712 | |
| 624 | 627 | MDRV_CPU_MODIFY("main") |
| 625 | 628 | MDRV_CPU_PROGRAM_MAP(esckids_readmem,esckids_writemem) |
| 626 | 629 | |
| 630 | MDRV_SCREEN_MODIFY("main") | |
| 627 | 631 | //MDRV_SCREEN_VISIBLE_AREA(13*8, (64-13)*8-1, 2*8, 30*8-1 ) /* black areas on the edges */ |
| 628 | 632 | MDRV_SCREEN_VISIBLE_AREA(14*8, (64-14)*8-1, 2*8, 30*8-1 ) |
| 629 | 633 |
| r1711 | r1712 | |
|---|---|---|
| 318 | 318 | MDRV_CPU_PROGRAM_MAP(fcombat_readmem2,fcombat_writemem2) |
| 319 | 319 | |
| 320 | 320 | /* video hardware */ |
| 321 | MDRV_ | |
| 321 | MDRV_SC | |
| 322 | 322 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 323 | 323 | MDRV_SCREEN_RAW_PARAMS(FCOMBAT_PIXEL_CLOCK, FCOMBAT_HTOTAL, FCOMBAT_HBEND, FCOMBAT_HBSTART, FCOMBAT_VTOTAL, FCOMBAT_VBEND, FCOMBAT_VBSTART) |
| 324 | ||
| 324 | 325 | MDRV_GFXDECODE(fcombat) |
| 325 | 326 | MDRV_PALETTE_LENGTH(256*3) |
| 326 | 327 |
| r1711 | r1712 | |
|---|---|---|
| 343 | 343 | MDRV_CPU_PROGRAM_MAP(destroyr_map, 0) |
| 344 | 344 | MDRV_CPU_VBLANK_INT(irq0_line_assert, 4) |
| 345 | 345 | |
| 346 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 347 | ||
| 348 | 346 | MDRV_MACHINE_RESET(destroyr) |
| 349 | 347 | |
| 350 | 348 | /* video hardware */ |
| 351 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 349 | MDRV_SCREEN_ADD("main", RASTER) | |
| 350 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 352 | 351 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 353 | 352 | MDRV_SCREEN_SIZE(256, 262) |
| 354 | 353 | MDRV_SCREEN_VISIBLE_AREA(0, 255, 0, 239) |
| 354 | ||
| 355 | 355 | MDRV_GFXDECODE(destroyr) |
| 356 | 356 | MDRV_PALETTE_LENGTH(8) |
| 357 | 357 | MDRV_PALETTE_INIT(destroyr) |
| r1711 | r1712 | |
|---|---|---|
| 3223 | 3223 | MDRV_CPU_PROGRAM_MAP(sound_map,0) |
| 3224 | 3224 | MDRV_CPU_IO_MAP(sound_portmap,0) |
| 3225 | 3225 | |
| 3226 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 3227 | ||
| 3228 | 3226 | MDRV_MACHINE_RESET(system16b) |
| 3229 | 3227 | MDRV_NVRAM_HANDLER(system16b) |
| 3230 | 3228 | |
| 3231 | 3229 | /* video hardware */ |
| 3232 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 3233 | 3230 | MDRV_GFXDECODE(segas16b) |
| 3234 | 3231 | MDRV_PALETTE_LENGTH(2048*3) |
| 3235 | 3232 | |
| 3236 | MDRV_SCREEN_ADD("main", | |
| 3233 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3237 | 3234 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3238 | 3235 | MDRV_SCREEN_RAW_PARAMS(MASTER_CLOCK_25MHz/4, 400, 0, 320, 262, 0, 224) |
| 3239 | 3236 |
| r1711 | r1712 | |
|---|---|---|
| 200 | 200 | MDRV_CPU_PROGRAM_MAP(thoop2_readmem,thoop2_writemem) |
| 201 | 201 | MDRV_CPU_VBLANK_INT(irq6_line_hold,1) |
| 202 | 202 | |
| 203 | /* video hardware */ | |
| 204 | MDRV_SCREEN_ADD("main", RASTER) | |
| 203 | 205 | MDRV_SCREEN_REFRESH_RATE(60) |
| 204 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 205 | ||
| 206 | /* video hardware */ | |
| 207 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 206 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 208 | 207 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 209 | 208 | MDRV_SCREEN_SIZE(32*16, 32*16) |
| 210 | 209 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 16, 256-1) |
| 210 | ||
| 211 | 211 | MDRV_GFXDECODE(thoop2) |
| 212 | 212 | MDRV_PALETTE_LENGTH(1024) |
| 213 | 213 |
| r1711 | r1712 | |
|---|---|---|
| 411 | 411 | /* audio CPU */ |
| 412 | 412 | MDRV_CPU_PROGRAM_MAP(readmem_sound,writemem_sound) |
| 413 | 413 | |
| 414 | /* video hardware */ | |
| 415 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 416 | ||
| 417 | MDRV_SCREEN_ADD("main", RASTER) | |
| 414 | 418 | MDRV_SCREEN_REFRESH_RATE(60) |
| 415 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 416 | ||
| 417 | /* video hardware */ | |
| 418 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 419 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 419 | 420 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 420 | 421 | MDRV_SCREEN_SIZE(320, 256) |
| 421 | 422 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 1*8, 31*8-1) |
| 423 | ||
| 422 | 424 | MDRV_GFXDECODE(wwfwfest) |
| 423 | 425 | MDRV_PALETTE_LENGTH(8192) |
| 424 | 426 |
| r1711 | r1712 | |
|---|---|---|
| 513 | 513 | MDRV_CPU_IO_MAP(marineb_io_map,0) |
| 514 | 514 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,1) |
| 515 | 515 | |
| 516 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 517 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(5000) /* frames per second, vblank duration */) | |
| 518 | ||
| 519 | 516 | MDRV_MACHINE_RESET(marineb) |
| 520 | 517 | |
| 521 | 518 | /* video hardware */ |
| 522 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 519 | MDRV_SCREEN_ADD("main", RASTER) | |
| 520 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 521 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(5000) /* frames per second, vblank duration */) | |
| 523 | 522 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 524 | 523 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 525 | 524 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 525 | ||
| 526 | 526 | MDRV_GFXDECODE(marineb) |
| 527 | 527 | MDRV_PALETTE_LENGTH(256) |
| 528 | 528 |
| r1711 | r1712 | |
|---|---|---|
| 349 | 349 | MDRV_CPU_PROGRAM_MAP(pktgaldx_map,0) |
| 350 | 350 | MDRV_CPU_VBLANK_INT(irq6_line_hold,1) |
| 351 | 351 | |
| 352 | /* video hardware */ | |
| 353 | MDRV_SCREEN_ADD("main", RASTER) | |
| 352 | 354 | MDRV_SCREEN_REFRESH_RATE(58) |
| 353 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 354 | ||
| 355 | /* video hardware */ | |
| 356 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 355 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 357 | 356 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 358 | 357 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 359 | 358 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 359 | ||
| 360 | 360 | MDRV_PALETTE_LENGTH(4096) |
| 361 | 361 | MDRV_GFXDECODE(pktgaldx) |
| 362 | 362 | |
| r1711 | r1712 | |
| 384 | 384 | MDRV_CPU_PROGRAM_MAP(pktgaldb_readmem,pktgaldb_writemem) |
| 385 | 385 | MDRV_CPU_VBLANK_INT(irq6_line_hold,1) |
| 386 | 386 | |
| 387 | /* video hardware */ | |
| 388 | MDRV_SCREEN_ADD("main", RASTER) | |
| 387 | 389 | MDRV_SCREEN_REFRESH_RATE(58) |
| 388 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 389 | ||
| 390 | /* video hardware */ | |
| 391 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 390 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 392 | 391 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 393 | 392 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 394 | 393 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 394 | ||
| 395 | 395 | MDRV_PALETTE_LENGTH(4096) |
| 396 | 396 | MDRV_GFXDECODE(bootleg) |
| 397 | 397 |
| r1711 | r1712 | |
|---|---|---|
| 325 | 325 | MDRV_CPU_PROGRAM_MAP(main_map,0) |
| 326 | 326 | MDRV_CPU_VBLANK_INT(timeplt_interrupt,1) |
| 327 | 327 | |
| 328 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 329 | ||
| 330 | 328 | MDRV_MACHINE_START(timeplt) |
| 331 | 329 | |
| 332 | 330 | /* video hardware */ |
| 333 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_SCANLINE) | |
| 331 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_SCANLINE) | |
| 332 | ||
| 333 | MDRV_SCREEN_ADD("main", RASTER) | |
| 334 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 334 | 335 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 335 | 336 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 336 | 337 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 338 | ||
| 337 | 339 | MDRV_GFXDECODE(timeplt) |
| 338 | 340 | MDRV_PALETTE_LENGTH(32*4+64*4) |
| 339 | 341 |
| r1711 | r1712 | |
|---|---|---|
| 266 | 266 | MDRV_CPU_ADD_TAG("main", N2A03, N2A03_DEFAULTCLOCK) |
| 267 | 267 | MDRV_CPU_PROGRAM_MAP(multigam_map, 0) |
| 268 | 268 | |
| 269 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 270 | ||
| 271 | 269 | MDRV_MACHINE_RESET( multigam ) |
| 272 | 270 | |
| 273 | 271 | /* video hardware */ |
| 274 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 272 | MDRV_SCREEN_ADD("main", RASTER) | |
| 273 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 275 | 274 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 276 | 275 | MDRV_SCREEN_SIZE(32*8, 262) |
| 277 | 276 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 30*8-1) |
| 277 | ||
| 278 | 278 | MDRV_GFXDECODE(multigam) |
| 279 | 279 | MDRV_PALETTE_LENGTH(8*4*16) |
| 280 | 280 |
| r1711 | r1712 | |
|---|---|---|
| 1439 | 1439 | MDRV_NVRAM_HANDLER(atarigen) |
| 1440 | 1440 | |
| 1441 | 1441 | /* video hardware */ |
| 1442 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 1442 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 1443 | 1443 | MDRV_GFXDECODE(atarigx2) |
| 1444 | 1444 | MDRV_PALETTE_LENGTH(2048) |
| 1445 | 1445 | |
| 1446 | MDRV_SCREEN_ADD("main", | |
| 1446 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1447 | 1447 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1448 | 1448 | /* note: these parameters are from published specs, not derived */ |
| 1449 | 1449 | /* the board uses a pair of GALs to determine H and V parameters */ |
| r1711 | r1712 | |
|---|---|---|
| 567 | 567 | MDRV_CPU_PROGRAM_MAP(fuuki16_sound_readmem,fuuki16_sound_writemem) |
| 568 | 568 | MDRV_CPU_IO_MAP(fuuki16_sound_readport,fuuki16_sound_writeport) |
| 569 | 569 | |
| 570 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 571 | ||
| 572 | 570 | MDRV_MACHINE_START(fuuki16) |
| 573 | 571 | MDRV_MACHINE_RESET(fuuki16) |
| 574 | 572 | |
| 575 | 573 | /* video hardware */ |
| 576 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 574 | MDRV_SCREEN_ADD("main", RASTER) | |
| 575 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 577 | 576 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 578 | 577 | MDRV_SCREEN_SIZE(320, 256) |
| 579 | 578 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 0, 256-16-1) |
| 579 | ||
| 580 | 580 | MDRV_GFXDECODE(fuuki16) |
| 581 | 581 | MDRV_PALETTE_LENGTH(0x800*4) |
| 582 | 582 |
| r1711 | r1712 | |
|---|---|---|
| 279 | 279 | machine->gfx[K001604_gfx_index[chip][1]] = allocgfx(&K001604_char_layout_layer_16x16); |
| 280 | 280 | decodegfx(machine->gfx[K001604_gfx_index[chip][1]], (UINT8*)&K001604_char_ram[chip][0], 0, machine->gfx[K001604_gfx_index[chip][1]]->total_elements); |
| 281 | 281 | |
| 282 | if (machine->drv->color_table_len) | |
| 283 | { | |
| 284 | machine->gfx[K001604_gfx_index[chip][0]]->total_colors = machine->drv->color_table_len / 16; | |
| 285 | machine->gfx[K001604_gfx_index[chip][1]]->total_colors = machine->drv->color_table_len / 16; | |
| 286 | } | |
| 287 | else | |
| 288 | { | |
| 289 | machine->gfx[K001604_gfx_index[chip][0]]->total_colors = machine->drv->total_colors / 16; | |
| 290 | machine->gfx[K001604_gfx_index[chip][1]]->total_colors = machine->drv->total_colors / 16; | |
| 291 | } | |
| 282 | machine->gfx[K001604_gfx_index[chip][0]]->total_colors = machine->config->total_colors / 16; | |
| 283 | machine->gfx[K001604_gfx_index[chip][1]]->total_colors = machine->config->total_colors / 16; | |
| 292 | 284 | |
| 293 | 285 | return 0; |
| 294 | 286 | } |
| r1711 | r1712 | |
| 918 | 910 | MDRV_CPU_CONFIG(sharc_cfg) |
| 919 | 911 | MDRV_CPU_DATA_MAP(sharc_map, 0) |
| 920 | 912 | |
| 921 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 922 | 913 | MDRV_INTERLEAVE(100) |
| 923 | 914 | |
| 924 | 915 | MDRV_MACHINE_RESET(nwktr) |
| 925 | 916 | MDRV_NVRAM_HANDLER( timekeeper_0 ) |
| 926 | 917 | |
| 927 | 918 | /* video hardware */ |
| 928 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 919 | MDRV_SCREEN_ADD("main", RASTER) | |
| 920 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 929 | 921 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 930 | 922 | MDRV_SCREEN_SIZE(512, 384) |
| 931 | 923 | MDRV_SCREEN_VISIBLE_AREA(0, 511, 0, 383) |
| 924 | ||
| 932 | 925 | MDRV_PALETTE_LENGTH(65536) |
| 933 | 926 | |
| 934 | 927 | MDRV_VIDEO_START(nwktr) |
| r1711 | r1712 | |
|---|---|---|
| 255 | 255 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 256 | 256 | MDRV_CPU_VBLANK_INT(irq0_line_hold,8) |
| 257 | 257 | |
| 258 | /* video hardware */ | |
| 259 | MDRV_SCREEN_ADD("main", RASTER) | |
| 258 | 260 | MDRV_SCREEN_REFRESH_RATE(60) |
| 259 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 260 | ||
| 261 | /* video hardware */ | |
| 262 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 261 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 263 | 262 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 264 | 263 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 265 | 264 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 265 | ||
| 266 | 266 | MDRV_GFXDECODE(vulgus) |
| 267 | 267 | MDRV_PALETTE_LENGTH(64*4+16*16+4*32*8) |
| 268 | 268 |
| r1711 | r1712 | |
|---|---|---|
| 274 | 274 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 275 | 275 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 276 | 276 | |
| 277 | /* video hardware */ | |
| 278 | MDRV_SCREEN_ADD("main", RASTER) | |
| 277 | 279 | MDRV_SCREEN_REFRESH_RATE(57) |
| 278 | 280 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(3500) /* frames per second, vblank duration (complete guess) */) |
| 279 | ||
| 280 | /* video hardware */ | |
| 281 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 282 | 281 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 283 | 282 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 284 | 283 | MDRV_SCREEN_VISIBLE_AREA(0*8, 31*8-1, 0*8, 32*8-1) |
| 284 | ||
| 285 | 285 | MDRV_GFXDECODE(circus) |
| 286 | 286 | MDRV_PALETTE_LENGTH(2) |
| 287 | 287 | |
| r1711 | r1712 | |
| 309 | 309 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 310 | 310 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 311 | 311 | |
| 312 | /* video hardware */ | |
| 313 | MDRV_SCREEN_ADD("main", RASTER) | |
| 312 | 314 | MDRV_SCREEN_REFRESH_RATE(57) |
| 313 | 315 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(3500) /* frames per second, vblank duration (complete guess) */) |
| 314 | ||
| 315 | /* video hardware */ | |
| 316 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 317 | 316 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 318 | 317 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 319 | 318 | MDRV_SCREEN_VISIBLE_AREA(0*8, 31*8-1, 0*8, 32*8-1) |
| 319 | ||
| 320 | 320 | MDRV_GFXDECODE(robotbwl) |
| 321 | 321 | MDRV_PALETTE_LENGTH(2) |
| 322 | 322 | |
| r1711 | r1712 | |
| 343 | 343 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 344 | 344 | MDRV_CPU_VBLANK_INT(irq0_line_hold,2) |
| 345 | 345 | |
| 346 | /* video hardware */ | |
| 347 | MDRV_SCREEN_ADD("main", RASTER) | |
| 346 | 348 | MDRV_SCREEN_REFRESH_RATE(57) |
| 347 | 349 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(3500) /* frames per second, vblank duration (complete guess) */) |
| 348 | ||
| 349 | /* video hardware */ | |
| 350 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 351 | 350 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 352 | 351 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 353 | 352 | MDRV_SCREEN_VISIBLE_AREA(0*8, 31*8-1, 0*8, 32*8-1) |
| 353 | ||
| 354 | 354 | MDRV_GFXDECODE(circus) |
| 355 | 355 | MDRV_PALETTE_LENGTH(2) |
| 356 | 356 | |
| r1711 | r1712 | |
| 377 | 377 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 378 | 378 | //MDRV_CPU_VBLANK_INT(ripcord_interrupt,1) //AT |
| 379 | 379 | |
| 380 | /* video hardware */ | |
| 381 | MDRV_SCREEN_ADD("main", RASTER) | |
| 380 | 382 | MDRV_SCREEN_REFRESH_RATE(57) |
| 381 | 383 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(3500) /* frames per second, vblank duration (complete guess) */) |
| 382 | ||
| 383 | /* video hardware */ | |
| 384 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 385 | 384 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 386 | 385 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 387 | 386 | MDRV_SCREEN_VISIBLE_AREA(0*8, 31*8-1, 0*8, 32*8-1) |
| 387 | ||
| 388 | 388 | MDRV_GFXDECODE(circus) |
| 389 | 389 | MDRV_PALETTE_LENGTH(2) |
| 390 | 390 |
| r1711 | r1712 | |
|---|---|---|
| 255 | 255 | MDRV_CPU_PROGRAM_MAP(sderby_readmem,sderby_writemem) |
| 256 | 256 | MDRV_CPU_VBLANK_INT(irq2_line_hold,1) |
| 257 | 257 | |
| 258 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 259 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 260 | ||
| 261 | 258 | MDRV_GFXDECODE(sderby) |
| 262 | 259 | |
| 263 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 260 | ||
| 261 | MDRV_SCREEN_ADD("main", RASTER) | |
| 262 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 263 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 264 | 264 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 265 | 265 | MDRV_SCREEN_SIZE(64*8, 64*8) |
| 266 | 266 | MDRV_SCREEN_VISIBLE_AREA(4*8, 44*8-1, 3*8, 33*8-1) |
| 267 | ||
| 267 | 268 | MDRV_PALETTE_LENGTH(0x1000) |
| 268 | 269 | |
| 269 | 270 | MDRV_VIDEO_START(sderby) |
| r1711 | r1712 | |
| 282 | 283 | MDRV_CPU_PROGRAM_MAP(roulette_map,0) |
| 283 | 284 | MDRV_CPU_VBLANK_INT(irq2_line_hold,1) |
| 284 | 285 | |
| 285 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 286 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 287 | ||
| 288 | 286 | MDRV_GFXDECODE(sderby) |
| 289 | 287 | |
| 290 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 288 | ||
| 289 | MDRV_SCREEN_ADD("main", RASTER) | |
| 290 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 291 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 291 | 292 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 292 | 293 | MDRV_SCREEN_SIZE(64*8, 64*8) |
| 293 | 294 | MDRV_SCREEN_VISIBLE_AREA(4*8, 44*8-1, 3*8, 33*8-1) |
| 295 | ||
| 294 | 296 | MDRV_PALETTE_LENGTH(0x1000) |
| 295 | 297 | |
| 296 | 298 | MDRV_VIDEO_START(sderby) |
| r1711 | r1712 | |
|---|---|---|
| 323 | 323 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 324 | 324 | MDRV_CPU_IO_MAP(readport,0) |
| 325 | 325 | |
| 326 | /* video hardware */ | |
| 327 | MDRV_SCREEN_ADD("main", RASTER) | |
| 326 | 328 | MDRV_SCREEN_REFRESH_RATE(55) |
| 327 | 329 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(1041)) |
| 328 | ||
| 329 | /* video hardware */ | |
| 330 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 331 | 330 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 332 | 331 | MDRV_SCREEN_SIZE(30*24, 32*24) |
| 333 | 332 | MDRV_SCREEN_VISIBLE_AREA(0, 719, 0, 767) |
| 333 | ||
| 334 | 334 | MDRV_GFXDECODE(tinvader) |
| 335 | 335 | MDRV_PALETTE_LENGTH(4) |
| 336 | 336 |
| r1711 | r1712 | |
|---|---|---|
| 100 | 100 | MDRV_CPU_ADD_TAG("video", i860, XTAL_20MHz) |
| 101 | 101 | MDRV_CPU_PROGRAM_MAP(video_map,0) |
| 102 | 102 | */ |
| 103 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 103 | ||
| 104 | MDRV_SCREEN_ADD("main", RASTER) | |
| 104 | 105 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 105 | ||
| 106 | 106 | MDRV_SCREEN_REFRESH_RATE(60) |
| 107 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 108 | ||
| 107 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 109 | 108 | MDRV_SCREEN_SIZE(640, 480) |
| 110 | 109 | MDRV_SCREEN_VISIBLE_AREA(0, 640-1, 0, 480-1) |
| 110 | ||
| 111 | 111 | MDRV_PALETTE_LENGTH(0x100) |
| 112 | 112 | |
| 113 | 113 | MDRV_VIDEO_START(generic_bitmapped) |
| r1711 | r1712 | |
|---|---|---|
| 501 | 501 | MDRV_CPU_PROGRAM_MAP(shangha3_readmem,shangha3_writemem) |
| 502 | 502 | MDRV_CPU_VBLANK_INT(irq4_line_hold,1) |
| 503 | 503 | |
| 504 | /* video hardware */ | |
| 505 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS ) | |
| 506 | ||
| 507 | MDRV_SCREEN_ADD("main", RASTER) | |
| 504 | 508 | MDRV_SCREEN_REFRESH_RATE(60) |
| 505 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 506 | ||
| 507 | /* video hardware */ | |
| 508 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS ) | |
| 509 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 509 | 510 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 510 | 511 | MDRV_SCREEN_SIZE(24*16, 16*16) |
| 511 | 512 | MDRV_SCREEN_VISIBLE_AREA(0*16, 24*16-1, 1*16, 15*16-1) |
| 513 | ||
| 512 | 514 | MDRV_GFXDECODE(shangha3) |
| 513 | 515 | MDRV_PALETTE_LENGTH(2048) |
| 514 | 516 | |
| r1711 | r1712 | |
| 539 | 541 | MDRV_CPU_PROGRAM_MAP(heberpop_sound_readmem,heberpop_sound_writemem) |
| 540 | 542 | MDRV_CPU_IO_MAP(heberpop_sound_readport,heberpop_sound_writeport) |
| 541 | 543 | /* NMI triggered by YM3438 */ |
| 542 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 543 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 544 | 544 | |
| 545 | 545 | /* video hardware */ |
| 546 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS ) | |
| 546 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS ) | |
| 547 | ||
| 548 | MDRV_SCREEN_ADD("main", RASTER) | |
| 549 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 550 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 547 | 551 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 548 | 552 | MDRV_SCREEN_SIZE(24*16, 16*16) |
| 549 | 553 | MDRV_SCREEN_VISIBLE_AREA(0*16, 24*16-1, 1*16, 15*16-1) |
| 554 | ||
| 550 | 555 | MDRV_GFXDECODE(shangha3) |
| 551 | 556 | MDRV_PALETTE_LENGTH(2048) |
| 552 | 557 | |
| r1711 | r1712 | |
| 578 | 583 | MDRV_CPU_PROGRAM_MAP(heberpop_sound_readmem,heberpop_sound_writemem) |
| 579 | 584 | MDRV_CPU_IO_MAP(heberpop_sound_readport,heberpop_sound_writeport) |
| 580 | 585 | /* NMI triggered by YM3438 */ |
| 581 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 582 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 583 | 586 | |
| 584 | 587 | /* video hardware */ |
| 585 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS) | |
| 588 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 589 | ||
| 590 | MDRV_SCREEN_ADD("main", RASTER) | |
| 591 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 592 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 586 | 593 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 587 | 594 | MDRV_SCREEN_SIZE(24*16, 16*16) |
| 588 | 595 | MDRV_SCREEN_VISIBLE_AREA(0*16, 24*16-1, 1*16, 15*16-1) |
| 596 | ||
| 589 | 597 | MDRV_GFXDECODE(shangha3) |
| 590 | 598 | MDRV_PALETTE_LENGTH(2048) |
| 591 | 599 |
| r1711 | r1712 | |
|---|---|---|
| 287 | 287 | MDRV_CPU_PROGRAM_MAP(pkscramble_map,0) |
| 288 | 288 | //MDRV_CPU_VBLANK_INT(irq1_line_hold,1) /* only valid irq */ |
| 289 | 289 | |
| 290 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 291 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 292 | ||
| 293 | 290 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 294 | 291 | |
| 295 | 292 | MDRV_MACHINE_RESET(pkscramble) |
| 296 | 293 | |
| 297 | 294 | /* video hardware */ |
| 298 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 295 | MDRV_SCREEN_ADD("main", RASTER) | |
| 296 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 297 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 299 | 298 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 300 | 299 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 301 | 300 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 24*8-1) |
| 301 | ||
| 302 | 302 | MDRV_PALETTE_LENGTH(0x800) |
| 303 | 303 | MDRV_GFXDECODE(pkscram) |
| 304 | 304 |
| r1711 | r1712 | |
|---|---|---|
| 334 | 334 | MDRV_CPU_IO_MAP(cpu2_readport,cpu2_writeport) |
| 335 | 335 | MDRV_CPU_VBLANK_INT(irq0_line_hold,4) /* ??? */ |
| 336 | 336 | |
| 337 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 338 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 339 | 337 | MDRV_INTERLEAVE(10) /* 10 CPU slices per frame - seems enough to ensure proper */ |
| 340 | 338 | /* synchronization of the CPUs */ |
| 341 | 339 | MDRV_MACHINE_RESET(vastar) |
| 342 | 340 | |
| 343 | 341 | /* video hardware */ |
| 344 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 342 | MDRV_SCREEN_ADD("main", RASTER) | |
| 343 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 344 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 345 | 345 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 346 | 346 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 347 | 347 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 348 | ||
| 348 | 349 | MDRV_GFXDECODE(vastar) |
| 349 | 350 | MDRV_PALETTE_LENGTH(256) |
| 350 | 351 |
| r1711 | r1712 | |
|---|---|---|
| 32 | 32 | MDRV_CPU_ADD(ARM7, 200000000) // actually Xscale PXA255, but ARM7 is a compatible subset |
| 33 | 33 | MDRV_CPU_PROGRAM_MAP(39in1_map,0) |
| 34 | 34 | |
| 35 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 36 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 37 | 35 | MDRV_PALETTE_LENGTH(32768) |
| 38 | 36 | |
| 39 | MDRV_SCREEN_ADD("main", 0) // htot hst vwid vtot vst vis | |
| 37 | MDRV_SCREEN_ADD("main", RASTER) | |
| 38 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 40 | 39 | MDRV_SCREEN_RAW_PARAMS(16777216/4, 308, 0, 240, 228, 0, 160) // completely bogus for this h/w |
| 41 | 40 | |
| 42 | 41 | MDRV_VIDEO_START(generic_bitmapped) |
| r1711 | r1712 | |
|---|---|---|
| 368 | 368 | MDRV_CPU_IO_MAP(taotaido_sound_readport,taotaido_sound_writeport) |
| 369 | 369 | /* IRQs are triggered by the YM2610 */ |
| 370 | 370 | |
| 371 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 372 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 373 | ||
| 374 | 371 | MDRV_GFXDECODE(taotaido) |
| 375 | 372 | |
| 376 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 373 | MDRV_SCREEN_ADD("main", RASTER) | |
| 374 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 375 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 377 | 376 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 378 | 377 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 379 | 378 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 28*8-1) |
| 379 | ||
| 380 | 380 | MDRV_PALETTE_LENGTH(0x800) |
| 381 | 381 | |
| 382 | 382 | MDRV_VIDEO_START(taotaido) |
| r1711 | r1712 | |
|---|---|---|
| 123 | 123 | { |
| 124 | 124 | int x,y,count; |
| 125 | 125 | count = 0; |
| 126 | fillbitmap(bitmap, | |
| 126 | fillbitmap(bitmap, | |
| 127 | 127 | for (y=0;y<32;y++) |
| 128 | 128 | { |
| 129 | 129 | for(x=0;x<64;x++) |
| r1711 | r1712 | |
| 149 | 149 | |
| 150 | 150 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,1) |
| 151 | 151 | |
| 152 | /* video hardware */ | |
| 153 | MDRV_SCREEN_ADD("main", RASTER) | |
| 152 | 154 | MDRV_SCREEN_REFRESH_RATE(60) |
| 153 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 154 | ||
| 155 | /* video hardware */ | |
| 156 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 155 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 157 | 156 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 158 | 157 | MDRV_SCREEN_SIZE(512, 256) |
| 159 | 158 | MDRV_SCREEN_VISIBLE_AREA(0, 512-1, 0, 256-1) |
| 159 | ||
| 160 | 160 | MDRV_GFXDECODE(fortecar) |
| 161 | 161 | MDRV_PALETTE_LENGTH(0x100) |
| 162 | 162 |
| r1711 | r1712 | |
|---|---|---|
| 330 | 330 | MDRV_NVRAM_HANDLER(atarigen) |
| 331 | 331 | |
| 332 | 332 | /* video hardware */ |
| 333 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 333 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 334 | 334 | MDRV_GFXDECODE(relief) |
| 335 | 335 | MDRV_PALETTE_LENGTH(2048) |
| 336 | 336 | |
| 337 | MDRV_SCREEN_ADD("main", | |
| 337 | MDRV_SCREEN_ADD("main", RASTER) | |
| 338 | 338 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 339 | 339 | /* note: these parameters are from published specs, not derived */ |
| 340 | 340 | /* the board uses a VAD chip to generate video signals */ |
| r1711 | r1712 | |
|---|---|---|
| 126 | 126 | MDRV_CPU_IO_MAP(io_map,0) |
| 127 | 127 | MDRV_CPU_VBLANK_INT(gunpey_interrupt,1) |
| 128 | 128 | |
| 129 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 130 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 131 | ||
| 132 | 129 | /* video hardware */ |
| 133 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 130 | MDRV_SCREEN_ADD("main", RASTER) | |
| 131 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 132 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 134 | 133 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 135 | 134 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 136 | 135 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 32*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 446 | 446 | |
| 447 | 447 | TAITO_F3_SOUND_SYSTEM_CPU(16000000) |
| 448 | 448 | |
| 449 | MDRV_SCREEN_REFRESH_RATE(58.97) | |
| 450 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(624) /* 58.97 Hz, 624us vblank time */) | |
| 451 | ||
| 452 | 449 | MDRV_MACHINE_START(f3) |
| 453 | 450 | MDRV_MACHINE_RESET(f3) |
| 454 | 451 | MDRV_NVRAM_HANDLER(taito_f3) |
| 455 | 452 | |
| 456 | 453 | /* video hardware */ |
| 457 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 454 | MDRV_SCREEN_ADD("main", RASTER) | |
| 455 | MDRV_SCREEN_REFRESH_RATE(58.97) | |
| 456 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(624) /* 58.97 Hz, 624us vblank time */) | |
| 458 | 457 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 459 | 458 | MDRV_SCREEN_SIZE(40*8+48*2, 32*8) |
| 460 | 459 | MDRV_SCREEN_VISIBLE_AREA(46, 40*8-1 + 46, 24, 24+232-1) |
| 460 | ||
| 461 | 461 | MDRV_GFXDECODE(taito_f3) |
| 462 | 462 | MDRV_PALETTE_LENGTH(8192) |
| 463 | 463 | |
| r1711 | r1712 | |
| 476 | 476 | */ |
| 477 | 477 | static MACHINE_DRIVER_START( f3_224a ) |
| 478 | 478 | MDRV_IMPORT_FROM(f3) |
| 479 | MDRV_SCREEN_MODIFY("main") | |
| 479 | 480 | MDRV_SCREEN_VISIBLE_AREA(46, 40*8-1 + 46, 31, 31+224-1) |
| 480 | 481 | MACHINE_DRIVER_END |
| 481 | 482 | |
| 482 | 483 | static MACHINE_DRIVER_START( f3_224b ) |
| 483 | 484 | MDRV_IMPORT_FROM(f3) |
| 485 | MDRV_SCREEN_MODIFY("main") | |
| 484 | 486 | MDRV_SCREEN_VISIBLE_AREA(46, 40*8-1 + 46, 32, 32+224-1) |
| 485 | 487 | MACHINE_DRIVER_END |
| 486 | 488 | |
| 487 | 489 | static MACHINE_DRIVER_START( f3_224c ) |
| 488 | 490 | MDRV_IMPORT_FROM(f3) |
| 491 | MDRV_SCREEN_MODIFY("main") | |
| 489 | 492 | MDRV_SCREEN_VISIBLE_AREA(46, 40*8-1 + 46, 24, 24+224-1) |
| 490 | 493 | MACHINE_DRIVER_END |
| 491 | 494 |
| r1711 | r1712 | |
|---|---|---|
| 195 | 195 | MDRV_CPU_PROGRAM_MAP(maniacsq_readmem, maniacsq_writemem) |
| 196 | 196 | MDRV_CPU_VBLANK_INT(irq6_line_hold, 1) |
| 197 | 197 | |
| 198 | /* video hardware */ | |
| 199 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 200 | ||
| 201 | MDRV_SCREEN_ADD("main", RASTER) | |
| 198 | 202 | MDRV_SCREEN_REFRESH_RATE(59.1) |
| 199 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 200 | ||
| 201 | /* video hardware */ | |
| 202 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 203 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 203 | 204 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 204 | 205 | MDRV_SCREEN_SIZE(64*16, 32*16) |
| 205 | 206 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 16, 256-1) |
| 207 | ||
| 206 | 208 | MDRV_GFXDECODE(0x0080000) |
| 207 | 209 | MDRV_PALETTE_LENGTH(4096*16 - 16) /* game's palette is 4096 but we allocate 15 more for shadows & highlights */ |
| 208 | 210 | |
| r1711 | r1712 | |
| 346 | 348 | MDRV_CPU_PROGRAM_MAP(bang_readmem, bang_writemem) |
| 347 | 349 | MDRV_CPU_VBLANK_INT(bang_interrupt, 6) |
| 348 | 350 | |
| 349 | MDRV_SCREEN_REFRESH_RATE(59.1) | |
| 350 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 351 | ||
| 352 | 351 | MDRV_NVRAM_HANDLER(gaelco2) |
| 353 | 352 | |
| 354 | 353 | /* video hardware */ |
| 355 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 354 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 355 | ||
| 356 | MDRV_SCREEN_ADD("main", RASTER) | |
| 357 | MDRV_SCREEN_REFRESH_RATE(59.1) | |
| 358 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 356 | 359 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 357 | 360 | MDRV_SCREEN_SIZE(64*16, 32*16) |
| 358 | 361 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 16, 256-1) |
| 362 | ||
| 359 | 363 | MDRV_GFXDECODE(0x0200000) |
| 360 | 364 | MDRV_PALETTE_LENGTH(4096*16 - 16) /* game's palette is 4096 but we allocate 15 more for shadows & highlights */ |
| 361 | 365 | |
| r1711 | r1712 | |
| 549 | 553 | MDRV_CPU_PROGRAM_MAP(alighunt_readmem, alighunt_writemem) |
| 550 | 554 | MDRV_CPU_VBLANK_INT(irq6_line_hold, 1) |
| 551 | 555 | |
| 556 | /* video hardware */ | |
| 557 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 558 | ||
| 559 | MDRV_SCREEN_ADD("main", RASTER) | |
| 552 | 560 | MDRV_SCREEN_REFRESH_RATE(59.1) |
| 553 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 554 | ||
| 555 | /* video hardware */ | |
| 556 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 561 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 557 | 562 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 558 | 563 | MDRV_SCREEN_SIZE(64*16, 32*16) |
| 559 | 564 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 16, 256-1) |
| 565 | ||
| 560 | 566 | MDRV_GFXDECODE(0x0400000) |
| 561 | 567 | MDRV_PALETTE_LENGTH(4096*16 - 16) /* game's palette is 4096 but we allocate 15 more for shadows & highlights */ |
| 562 | 568 | |
| r1711 | r1712 | |
| 811 | 817 | MDRV_CPU_VBLANK_INT(irq6_line_hold, 1) |
| 812 | 818 | |
| 813 | 819 | /* video hardware */ |
| 814 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 820 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 815 | 821 | MDRV_GFXDECODE(0x0400000) |
| 816 | 822 | MDRV_PALETTE_LENGTH(4096*16 - 16) /* game's palette is 4096 but we allocate 15 more for shadows & highlights */ |
| 817 | 823 | MDRV_DEFAULT_LAYOUT(layout_dualhsxs) |
| 818 | 824 | |
| 819 | MDRV_SCREEN_ADD("left", | |
| 825 | MDRV_SCREEN_ADD("left", RASTER) | |
| 820 | 826 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 821 | 827 | MDRV_SCREEN_REFRESH_RATE(59.1) |
| 822 | MDRV_SCREEN_VBLANK_TIME( | |
| 828 | MDRV_SCREEN_VBLANK_TIME( | |
| 823 | 829 | MDRV_SCREEN_SIZE(64*16, 32*16) |
| 824 | 830 | MDRV_SCREEN_VISIBLE_AREA(0, 480-1, 16, 256-1) |
| 825 | 831 | |
| 826 | MDRV_SCREEN_ADD("right", | |
| 832 | MDRV_SCREEN_ADD("right", RASTER) | |
| 827 | 833 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 828 | 834 | MDRV_SCREEN_REFRESH_RATE(59.1) |
| 829 | MDRV_SCREEN_VBLANK_TIME( | |
| 835 | MDRV_SCREEN_VBLANK_TIME( | |
| 830 | 836 | MDRV_SCREEN_SIZE(64*16, 32*16) |
| 831 | 837 | MDRV_SCREEN_VISIBLE_AREA(0, 480-1, 16, 256-1) |
| 832 | 838 | |
| r1711 | r1712 | |
| 1013 | 1019 | MDRV_CPU_PROGRAM_MAP(snowboar_readmem, snowboar_writemem) |
| 1014 | 1020 | MDRV_CPU_VBLANK_INT(irq6_line_hold, 1) |
| 1015 | 1021 | |
| 1016 | MDRV_SCREEN_REFRESH_RATE(59.1) | |
| 1017 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 1018 | ||
| 1019 | 1022 | MDRV_NVRAM_HANDLER(gaelco2) |
| 1020 | 1023 | |
| 1021 | 1024 | /* video hardware */ |
| 1022 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 1025 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 1026 | ||
| 1027 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1028 | MDRV_SCREEN_REFRESH_RATE(59.1) | |
| 1029 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 1023 | 1030 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1024 | 1031 | MDRV_SCREEN_SIZE(64*16, 32*16) |
| 1025 | 1032 | MDRV_SCREEN_VISIBLE_AREA(0, 384-1, 16, 256-1) |
| 1033 | ||
| 1026 | 1034 | MDRV_GFXDECODE(0x0400000) |
| 1027 | 1035 | MDRV_PALETTE_LENGTH(4096*16 - 16) /* game's palette is 4096 but we allocate 15 more for shadows & highlights */ |
| 1028 | 1036 | |
| r1711 | r1712 | |
| 1259 | 1267 | MDRV_NVRAM_HANDLER(gaelco2) |
| 1260 | 1268 | |
| 1261 | 1269 | /* video hardware */ |
| 1262 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 1270 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 1263 | 1271 | MDRV_GFXDECODE(0x0200000) |
| 1264 | 1272 | MDRV_PALETTE_LENGTH(4096*16 - 16) /* game's palette is 4096 but we allocate 15 more for shadows & highlights */ |
| 1265 | 1273 | MDRV_DEFAULT_LAYOUT(layout_dualhsxs) |
| 1266 | 1274 | |
| 1267 | MDRV_SCREEN_ADD("left", | |
| 1275 | MDRV_SCREEN_ADD("left", RASTER) | |
| 1268 | 1276 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1269 | 1277 | MDRV_SCREEN_REFRESH_RATE(59.1) |
| 1270 | MDRV_SCREEN_VBLANK_TIME( | |
| 1278 | MDRV_SCREEN_VBLANK_TIME( | |
| 1271 | 1279 | MDRV_SCREEN_SIZE(384, 32*16) |
| 1272 | 1280 | MDRV_SCREEN_VISIBLE_AREA(0, 384-1, 16, 256-1) |
| 1273 | 1281 | |
| 1274 | MDRV_SCREEN_ADD("right", | |
| 1282 | MDRV_SCREEN_ADD("right", RASTER) | |
| 1275 | 1283 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1276 | 1284 | MDRV_SCREEN_REFRESH_RATE(59.1) |
| 1277 | MDRV_SCREEN_VBLANK_TIME( | |
| 1285 | MDRV_SCREEN_VBLANK_TIME( | |
| 1278 | 1286 | MDRV_SCREEN_SIZE(384, 32*16) |
| 1279 | 1287 | MDRV_SCREEN_VISIBLE_AREA(0, 384-1, 16, 256-1) |
| 1280 | 1288 |
| r1711 | r1712 | |
|---|---|---|
| 194 | 194 | MDRV_MACHINE_RESET(homerun) |
| 195 | 195 | |
| 196 | 196 | /* video hardware */ |
| 197 | MDRV_SCREEN_ADD("main", RASTER) | |
| 197 | 198 | MDRV_SCREEN_REFRESH_RATE(60) |
| 198 | ||
| 199 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 200 | 199 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 201 | 200 | MDRV_SCREEN_SIZE(256, 256) |
| 202 | 201 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0, 256-25) |
| 202 | ||
| 203 | 203 | MDRV_GFXDECODE(homerun) |
| 204 | 204 | MDRV_PALETTE_LENGTH(16*4) |
| 205 | 205 |
| r1711 | r1712 | |
|---|---|---|
| 445 | 445 | MDRV_CPU_IO_MAP(mcu_port_map,0) |
| 446 | 446 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 447 | 447 | |
| 448 | MDRV_SCREEN_REFRESH_RATE(60.606060) | |
| 449 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 450 | 448 | MDRV_INTERLEAVE(100) /* we need heavy synch */ |
| 451 | 449 | |
| 452 | 450 | /* video hardware */ |
| 453 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 451 | MDRV_SCREEN_ADD("main", RASTER) | |
| 452 | MDRV_SCREEN_REFRESH_RATE(60.606060) | |
| 453 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 454 | 454 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 455 | 455 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 456 | 456 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 2*8, 30*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 274 | 274 | MDRV_CPU_ADD(Z80, 18432000/6) |
| 275 | 275 | MDRV_CPU_PROGRAM_MAP(sub_map,0) |
| 276 | 276 | |
| 277 | /* video hardware */ | |
| 278 | MDRV_SCREEN_ADD("main", RASTER) | |
| 277 | 279 | MDRV_SCREEN_REFRESH_RATE(60) |
| 278 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 279 | ||
| 280 | /* video hardware */ | |
| 281 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 280 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 282 | 281 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 283 | 282 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 284 | 283 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 284 | ||
| 285 | 285 | MDRV_GFXDECODE(champbas) |
| 286 | 286 | MDRV_PALETTE_LENGTH(128*4) |
| 287 | 287 |
| r1711 | r1712 | |
|---|---|---|
| 242 | 242 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 243 | 243 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,16) /* IRQs are triggered by the main CPU */ |
| 244 | 244 | |
| 245 | /* video hardware */ | |
| 246 | MDRV_SCREEN_ADD("main", RASTER) | |
| 245 | 247 | MDRV_SCREEN_REFRESH_RATE(60) |
| 246 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 247 | ||
| 248 | /* video hardware */ | |
| 249 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 248 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 250 | 249 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 251 | 250 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 252 | 251 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8 - 1, 1*8, 31*8 - 1) |
| 252 | ||
| 253 | 253 | MDRV_GFXDECODE(ssozumo) |
| 254 | 254 | MDRV_PALETTE_LENGTH(64 + 16) |
| 255 | 255 |
| r1711 | r1712 | |
|---|---|---|
| 1509 | 1509 | MDRV_CPU_IO_MAP(cpu_90009_portmap,0) |
| 1510 | 1510 | MDRV_CPU_VBLANK_INT(mcr_interrupt,2) |
| 1511 | 1511 | |
| 1512 | MDRV_SCREEN_REFRESH_RATE(30) | |
| 1513 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_30HZ_VBLANK_DURATION) | |
| 1514 | 1512 | MDRV_WATCHDOG_VBLANK_INIT(16) |
| 1515 | 1513 | MDRV_MACHINE_START(mcr) |
| 1516 | 1514 | MDRV_MACHINE_RESET(mcr) |
| 1517 | 1515 | MDRV_NVRAM_HANDLER(generic_1fill) |
| 1518 | 1516 | |
| 1519 | 1517 | /* video hardware */ |
| 1520 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 1518 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 1519 | ||
| 1520 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1521 | MDRV_SCREEN_REFRESH_RATE(30) | |
| 1522 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 1521 | 1523 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1522 | 1524 | MDRV_SCREEN_SIZE(32*16, 30*16) |
| 1523 | 1525 | MDRV_SCREEN_VISIBLE_AREA(0*16, 32*16-1, 0*16, 30*16-1) |
| 1526 | ||
| 1524 | 1527 | MDRV_GFXDECODE(mcr) |
| 1525 | 1528 | MDRV_PALETTE_LENGTH(32) |
| 1526 | 1529 |
| r1711 | r1712 | |
|---|---|---|
| 324 | 324 | MDRV_MACHINE_RESET(beaminv) |
| 325 | 325 | |
| 326 | 326 | /* video hardware */ |
| 327 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 328 | 327 | MDRV_VIDEO_UPDATE(beaminv) |
| 329 | 328 | |
| 330 | MDRV_SCREEN_ADD("main", | |
| 329 | MDRV_SCREEN_ADD("main", RASTER) | |
| 331 | 330 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 332 | 331 | MDRV_SCREEN_SIZE(256, 256) |
| 333 | 332 | MDRV_SCREEN_VISIBLE_AREA(0, 247, 16, 231) |
| r1711 | r1712 | |
|---|---|---|
| 19 | 19 | #include "machine/irem_cpu.h" |
| 20 | 20 | #include "sound/2151intf.h" |
| 21 | 21 | #include "sound/iremga20.h" |
| 22 | #include "cpu/nec/nec.h" | |
| 22 | 23 | |
| 23 | 24 | |
| 24 | 25 | #define M107_IRQ_0 ((m107_irq_vectorbase+0)/4) /* VBL interrupt*/ |
| r1711 | r1712 | |
| 475 | 476 | |
| 476 | 477 | /***************************************************************************/ |
| 477 | 478 | |
| 479 | static const nec_config firebarr_config ={ rtypeleo_decryption_table, }; | |
| 480 | ||
| 478 | 481 | static MACHINE_DRIVER_START( firebarr ) |
| 479 | 482 | |
| 480 | 483 | /* basic machine hardware */ |
| r1711 | r1712 | |
| 482 | 485 | MDRV_CPU_PROGRAM_MAP(main_map,0) |
| 483 | 486 | MDRV_CPU_IO_MAP(main_portmap,0) |
| 484 | 487 | |
| 485 | MDRV_CPU_ADD(V30, 14318000/2) | |
| 486 | /* audio CPU */ /* 14.318 MHz */ | |
| 488 | MDRV_CPU_ADD_TAG("sound", V30, 14318000/2) | |
| 487 | 489 | MDRV_CPU_PROGRAM_MAP(sound_map,0) |
| 490 | MDRV_CPU_CONFIG(firebarr_config) | |
| 488 | 491 | |
| 489 | 492 | MDRV_MACHINE_START(m107) |
| 490 | 493 | MDRV_MACHINE_RESET(m107) |
| 491 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 492 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 493 | 494 | |
| 494 | 495 | /* video hardware */ |
| 495 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 496 | MDRV_SCREEN_ADD("main", RASTER) | |
| 497 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 498 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 496 | 499 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 497 | 500 | MDRV_SCREEN_SIZE(512, 256) |
| 498 | 501 | MDRV_SCREEN_VISIBLE_AREA(80, 511-112, 8, 247) /* 320 x 240 */ |
| 502 | ||
| 499 | 503 | MDRV_GFXDECODE(firebarr) |
| 500 | 504 | MDRV_PALETTE_LENGTH(2048) |
| 501 | 505 | |
| r1711 | r1712 | |
| 516 | 520 | MDRV_SOUND_ROUTE(1, "right", 1.0) |
| 517 | 521 | MACHINE_DRIVER_END |
| 518 | 522 | |
| 519 | ||
| 523 | static const nec_config dsoccr94_config ={ dsoccr94_decryption_table, }; | |
| 520 | 524 | static MACHINE_DRIVER_START( dsoccr94 ) |
| 521 | 525 | MDRV_IMPORT_FROM(firebarr) |
| 522 | 526 | |
| 523 | 527 | /* basic machine hardware */ |
| 524 | 528 | MDRV_CPU_REPLACE("main", V33, 20000000/2) /* NEC V33, Could be 28MHz clock? */ |
| 525 | 529 | |
| 530 | MDRV_CPU_MODIFY("sound") | |
| 531 | MDRV_CPU_CONFIG(dsoccr94_config) | |
| 532 | ||
| 526 | 533 | /* video hardware */ |
| 527 | 534 | MDRV_GFXDECODE(m107) |
| 528 | 535 | MACHINE_DRIVER_END |
| 529 | 536 | |
| 537 | ||
| 538 | static const nec_config wpksoc_config ={ leagueman_decryption_table, }; | |
| 539 | static MACHINE_DRIVER_START( wpksoc ) | |
| 540 | MDRV_IMPORT_FROM(firebarr) | |
| 541 | MDRV_CPU_MODIFY("sound") | |
| 542 | MDRV_CPU_CONFIG(wpksoc_config) | |
| 543 | MACHINE_DRIVER_END | |
| 544 | ||
| 530 | 545 | /***************************************************************************/ |
| 531 | 546 | |
| 532 | 547 | ROM_START( firebarr ) |
| r1711 | r1712 | |
| 632 | 647 | RAM = memory_region(REGION_CPU2); |
| 633 | 648 | memcpy(RAM+0xffff0,RAM+0x1fff0,0x10); /* Sound cpu Start vector */ |
| 634 | 649 | |
| 635 | irem_cpu_decrypt(1,rtypeleo_decryption_table); | |
| 636 | ||
| 637 | 650 | m107_irq_vectorbase=0x20; |
| 638 | 651 | m107_spritesystem = 1; |
| 639 | 652 | } |
| r1711 | r1712 | |
| 648 | 661 | RAM = memory_region(REGION_CPU2); |
| 649 | 662 | memcpy(RAM+0xffff0,RAM+0x1fff0,0x10); /* Sound cpu Start vector */ |
| 650 | 663 | |
| 651 | irem_cpu_decrypt(1,dsoccr94_decryption_table); | |
| 652 | ||
| 653 | 664 | m107_irq_vectorbase=0x80; |
| 654 | 665 | m107_spritesystem = 0; |
| 655 | 666 | } |
| r1711 | r1712 | |
| 664 | 675 | RAM = memory_region(REGION_CPU2); |
| 665 | 676 | memcpy(RAM+0xffff0,RAM+0x1fff0,0x10); /* Sound cpu Start vector */ |
| 666 | 677 | |
| 667 | irem_cpu_decrypt(1,leagueman_decryption_table); | |
| 668 | 678 | |
| 669 | 679 | m107_irq_vectorbase=0x80; |
| 670 | 680 | m107_spritesystem = 0; |
| r1711 | r1712 | |
| 672 | 682 | |
| 673 | 683 | /***************************************************************************/ |
| 674 | 684 | |
| 675 | GAME( 1993, firebarr, 0, firebarr, firebarr, firebarr, ROT270, "Irem", "Fire Barrel (Japan)", GAME_ | |
| 685 | GAME( 1993, firebarr, 0, firebarr, firebarr, firebarr, ROT270, "Irem", "Fire Barrel (Japan)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 676 | 686 | GAME( 1994, dsoccr94, 0, dsoccr94, dsoccr94, dsoccr94, ROT0, "Irem (Data East Corporation license)", "Dream Soccer '94", 0 ) |
| 677 | GAME( 1995, wpksoc, 0, | |
| 687 | GAME( 1995, wpksoc, 0, wpksoc |
| r1711 | r1712 | |
|---|---|---|
| 641 | 641 | MDRV_MACHINE_RESET(ninjaw) |
| 642 | 642 | |
| 643 | 643 | /* video hardware */ |
| 644 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 645 | 644 | MDRV_GFXDECODE(ninjaw) |
| 646 | 645 | MDRV_PALETTE_LENGTH(4096*3) |
| 647 | 646 | MDRV_DEFAULT_LAYOUT(layout_darius) |
| 648 | 647 | |
| 649 | MDRV_SCREEN_ADD("left", | |
| 648 | MDRV_SCREEN_ADD("left", RASTER) | |
| 650 | 649 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 651 | 650 | MDRV_SCREEN_REFRESH_RATE(60) |
| 652 | MDRV_SCREEN_VBLANK_TIME( | |
| 651 | MDRV_SCREEN_VBLANK_TIME( | |
| 653 | 652 | MDRV_SCREEN_SIZE(36*8, 32*8) |
| 654 | 653 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 3*8, 31*8-1) |
| 655 | 654 | |
| 656 | MDRV_SCREEN_ADD("middle", | |
| 655 | MDRV_SCREEN_ADD("middle", RASTER) | |
| 657 | 656 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 658 | 657 | MDRV_SCREEN_REFRESH_RATE(60) |
| 659 | MDRV_SCREEN_VBLANK_TIME( | |
| 658 | MDRV_SCREEN_VBLANK_TIME( | |
| 660 | 659 | MDRV_SCREEN_SIZE(36*8, 32*8) |
| 661 | 660 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 3*8, 31*8-1) |
| 662 | 661 | |
| 663 | MDRV_SCREEN_ADD("right", | |
| 662 | MDRV_SCREEN_ADD("right", RASTER) | |
| 664 | 663 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 665 | 664 | MDRV_SCREEN_REFRESH_RATE(60) |
| 666 | MDRV_SCREEN_VBLANK_TIME( | |
| 665 | MDRV_SCREEN_VBLANK_TIME( | |
| 667 | 666 | MDRV_SCREEN_SIZE(36*8, 32*8) |
| 668 | 667 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 3*8, 31*8-1) |
| 669 | 668 | |
| r1711 | r1712 | |
| 716 | 715 | MDRV_MACHINE_RESET(ninjaw) |
| 717 | 716 | |
| 718 | 717 | /* video hardware */ |
| 719 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 720 | 718 | MDRV_GFXDECODE(ninjaw) |
| 721 | 719 | MDRV_PALETTE_LENGTH(4096*3) |
| 722 | 720 | MDRV_DEFAULT_LAYOUT(layout_darius) |
| 723 | 721 | |
| 724 | MDRV_SCREEN_ADD("left", | |
| 722 | MDRV_SCREEN_ADD("left", RASTER) | |
| 725 | 723 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 726 | 724 | MDRV_SCREEN_REFRESH_RATE(60) |
| 727 | MDRV_SCREEN_VBLANK_TIME( | |
| 725 | MDRV_SCREEN_VBLANK_TIME( | |
| 728 | 726 | MDRV_SCREEN_SIZE(36*8, 32*8) |
| 729 | 727 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 3*8, 31*8-1) |
| 730 | 728 | |
| 731 | MDRV_SCREEN_ADD("middle", | |
| 729 | MDRV_SCREEN_ADD("middle", RASTER) | |
| 732 | 730 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 733 | 731 | MDRV_SCREEN_REFRESH_RATE(60) |
| 734 | MDRV_SCREEN_VBLANK_TIME( | |
| 732 | MDRV_SCREEN_VBLANK_TIME( | |
| 735 | 733 | MDRV_SCREEN_SIZE(36*8, 32*8) |
| 736 | 734 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 3*8, 31*8-1) |
| 737 | 735 | |
| 738 | MDRV_SCREEN_ADD("right", | |
| 736 | MDRV_SCREEN_ADD("right", RASTER) | |
| 739 | 737 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 740 | 738 | MDRV_SCREEN_REFRESH_RATE(60) |
| 741 | MDRV_SCREEN_VBLANK_TIME( | |
| 739 | MDRV_SCREEN_VBLANK_TIME( | |
| 742 | 740 | MDRV_SCREEN_SIZE(36*8, 32*8) |
| 743 | 741 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 3*8, 31*8-1) |
| 744 | 742 |
| r1711 | r1712 | |
|---|---|---|
| 345 | 345 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 346 | 346 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,15) /* ???? */ |
| 347 | 347 | /* IRQs are caused by the main CPU */ |
| 348 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 349 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 350 | 348 | MDRV_INTERLEAVE(10) |
| 351 | 349 | |
| 352 | 350 | /* video hardware */ |
| 353 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 351 | MDRV_SCREEN_ADD("main", RASTER) | |
| 352 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 353 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 354 | 354 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 355 | 355 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 356 | 356 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 357 | ||
| 357 | 358 | MDRV_GFXDECODE(matmania) |
| 358 | 359 | MDRV_PALETTE_LENGTH(64+16) |
| 359 | 360 | |
| r1711 | r1712 | |
| 402 | 403 | MDRV_CPU_ADD(M68705, 1500000*2) /* (don't know really how fast, but it doesn't need to even be this fast) */ |
| 403 | 404 | MDRV_CPU_PROGRAM_MAP(mcu_readmem,mcu_writemem) |
| 404 | 405 | |
| 405 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 406 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 407 | 406 | MDRV_INTERLEAVE(100) /* 100 CPU slice per frame - high interleaving to sync main and mcu */ |
| 408 | 407 | |
| 409 | 408 | /* video hardware */ |
| 410 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 409 | MDRV_SCREEN_ADD("main", RASTER) | |
| 410 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 411 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 411 | 412 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 412 | 413 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 413 | 414 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 415 | ||
| 414 | 416 | MDRV_GFXDECODE(maniach) |
| 415 | 417 | MDRV_PALETTE_LENGTH(64+16) |
| 416 | 418 |
| r1711 | r1712 | |
|---|---|---|
| 460 | 460 | - Known bugs : |
| 461 | 461 | * Coins "buttons" don't work - we need to use fake BUTTON2 for each player |
| 462 | 462 | |
| 463 | *************************************************************************** | |
| 464 | ||
| 465 | DIP locations verified for: | |
| 466 | - arknoidj | |
| 467 | - arkanoid | |
| 468 | ||
| 463 | 469 | ***************************************************************************/ |
| 464 | 470 | |
| 465 | 471 | #include "driver.h" |
| r1711 | r1712 | |
| 521 | 527 | |
| 522 | 528 | /* Input Ports */ |
| 523 | 529 | |
| 524 | #define ARKNOI_IN0\ | |
| 525 | PORT_START_TAG("IN0")\ | |
| 526 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )\ | |
| 527 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )\ | |
| 528 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 )\ | |
| 529 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_TILT )\ | |
| 530 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_COIN1 )\ | |
| 531 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_COIN2 )\ | |
| 532 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SPECIAL ) /* input from the 68705, some bootlegs need it to be 1 */\ | |
| 530 | static INPUT_PORTS_START( arkanoid ) | |
| 531 | PORT_START_TAG("IN0") | |
| 532 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) | |
| 533 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) | |
| 534 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 535 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_TILT ) | |
| 536 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 537 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 538 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SPECIAL ) /* input from the 68705, some bootlegs need it to be 1 */ | |
| 533 | 539 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* input from the 68705 */ |
| 534 | 540 | |
| 535 | #define ARKNOI_IN1\ | |
| 536 | PORT_START_TAG("IN1")\ | |
| 537 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )\ | |
| 538 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )\ | |
| 539 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL\ | |
| 541 | PORT_START_TAG("IN1") | |
| 542 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 543 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 544 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 540 | 545 | PORT_BIT( 0xf8, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 541 | 546 | |
| 542 | #define ARKNOI_SPINNERS\ | |
| 543 | PORT_START_TAG("IN2") /* Spinner Player 1 */\ | |
| 544 | PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(30) PORT_KEYDELTA(15)\ | |
| 545 | PORT_START_TAG("IN3") /* Spinner Player 2 */\ | |
| 547 | PORT_START_TAG("IN2") /* Spinner Player 1 */ | |
| 548 | PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(30) PORT_KEYDELTA(15) | |
| 549 | PORT_START_TAG("IN3") /* Spinner Player 2 */ | |
| 546 | 550 | PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(30) PORT_KEYDELTA(15) PORT_COCKTAIL |
| 547 | 551 | |
| 548 | static INPUT_PORTS_START( arkanoid ) | |
| 549 | ARKNOI_IN0 | |
| 550 | ARKNOI_IN1 | |
| 551 | ARKNOI_SPINNERS | |
| 552 | ||
| 553 | 552 | PORT_START_TAG("DSW") |
| 554 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Allow_Continue ) ) | |
| 553 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW1:8") | |
| 555 | 554 | PORT_DIPSETTING( 0x01, DEF_STR( No ) ) |
| 556 | 555 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) |
| 557 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Flip_Screen ) ) | |
| 556 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:7") | |
| 558 | 557 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 559 | 558 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 560 | PORT_SERVICE( 0x04, IP_ACTIVE_LOW ) | |
| 561 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Difficulty ) ) | |
| 559 | PORT_SERVICE_DIPLOC(0x04, IP_ACTIVE_LOW, "SW1:6" ) | |
| 560 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:5") | |
| 562 | 561 | PORT_DIPSETTING( 0x08, DEF_STR( Easy ) ) |
| 563 | 562 | PORT_DIPSETTING( 0x00, DEF_STR( Hard ) ) |
| 564 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Bonus_Life ) ) | |
| 563 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:4") | |
| 565 | 564 | PORT_DIPSETTING( 0x10, "20K 60K 60K+" ) |
| 566 | 565 | PORT_DIPSETTING( 0x00, "20K" ) |
| 567 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Lives ) ) | |
| 566 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:3") /* Table at 0x9a28 */ | |
| 568 | 567 | PORT_DIPSETTING( 0x20, "3" ) |
| 569 | 568 | PORT_DIPSETTING( 0x00, "5" ) |
| 570 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Coinage ) ) | |
| 569 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:1,2") /* Table at 0x0328 */ | |
| 571 | 570 | PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) ) |
| 572 | 571 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_1C ) ) |
| 573 | 572 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_2C ) ) |
| r1711 | r1712 | |
| 576 | 575 | |
| 577 | 576 | /* Different coinage and additionnal "Cabinet" Dip Switch */ |
| 578 | 577 | static INPUT_PORTS_START( arknoidj ) |
| 579 | ARKNOI_IN0 | |
| 580 | ARKNOI_IN1 | |
| 581 | ARKNOI_SPINNERS | |
| 578 | PORT_INCLUDE( arkanoid ) | |
| 582 | 579 | |
| 583 | PORT_START_TAG("DSW") | |
| 584 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Allow_Continue ) ) | |
| 585 | PORT_DIPSETTING( 0x01, DEF_STR( No ) ) | |
| 586 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 587 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Flip_Screen ) ) | |
| 588 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 589 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 590 | PORT_SERVICE( 0x04, IP_ACTIVE_LOW ) | |
| 591 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Difficulty ) ) | |
| 592 | PORT_DIPSETTING( 0x08, DEF_STR( Easy ) ) | |
| 593 | PORT_DIPSETTING( 0x00, DEF_STR( Hard ) ) | |
| 594 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Bonus_Life ) ) | |
| 595 | PORT_DIPSETTING( 0x10, "20K 60K 60K+" ) | |
| 596 | PORT_DIPSETTING( 0x00, "20K" ) | |
| 597 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Lives ) ) /* Table at 0x9a28 */ | |
| 598 | PORT_DIPSETTING( 0x20, "3" ) | |
| 599 | PORT_DIPSETTING( 0x00, "5" ) | |
| 600 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Coinage ) ) /* table at 0x0320 */ | |
| 580 | PORT_MODIFY("DSW") | |
| 581 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:2") /* table at 0x0320 */ | |
| 601 | 582 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_1C ) ) |
| 602 | 583 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_2C ) ) |
| 603 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Cabinet ) ) | |
| 584 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW1:1") | |
| 604 | 585 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 605 | 586 | PORT_DIPSETTING( 0x80, DEF_STR( Cocktail ) ) |
| 606 | 587 | INPUT_PORTS_END |
| r1711 | r1712 | |
| 609 | 590 | PORT_INCLUDE(arknoidj) |
| 610 | 591 | |
| 611 | 592 | PORT_MODIFY("DSW") |
| 612 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Bonus_Life ) ) | |
| 593 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:4") /* "ld a,$60" at 0x93bd and "ld a,$60" at 0x9c7f and 0x9c9b */ | |
| 613 | 594 | PORT_DIPSETTING( 0x10, "60K 100K 60K+" ) |
| 614 | 595 | PORT_DIPSETTING( 0x00, "60K" ) |
| 615 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Lives ) ) | |
| 596 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:3") /* Table at 0x9a28 */ | |
| 616 | 597 | PORT_DIPSETTING( 0x20, "1" ) |
| 617 | 598 | PORT_DIPSETTING( 0x00, "2" ) |
| 618 | 599 | INPUT_PORTS_END |
| r1711 | r1712 | |
| 621 | 602 | PORT_INCLUDE(arknoidj) |
| 622 | 603 | |
| 623 | 604 | PORT_MODIFY("DSW") |
| 624 | PORT_DIPNAME( 0x01, 0x01, "Ball Speed" ) | |
| 605 | PORT_DIPNAME( 0x01, 0x01, "Ball Speed" ) PORT_DIPLOCATION("SW1:8") /* Speed at 0xc462 (code at 0x18aa) - Also affects level 2 (code at 0x7b82) */ | |
| 625 | 606 | PORT_DIPSETTING( 0x01, DEF_STR( Normal ) ) /* 0xc462 = 0x06 - Normal level 2 */ |
| 626 | 607 | PORT_DIPSETTING( 0x00, "Faster" ) /* 0xc462 = 0x08 - Level 2 same as level 30 */ |
| 627 | 608 | INPUT_PORTS_END |
| r1711 | r1712 | |
| 630 | 611 | PORT_INCLUDE(arknoidj) |
| 631 | 612 | |
| 632 | 613 | PORT_MODIFY("DSW") |
| 633 | PORT_DIPNAME( 0x01, 0x01, "Ball Speed" ) | |
| 614 | PORT_DIPNAME( 0x01, 0x01, "Ball Speed" ) PORT_DIPLOCATION("SW1:8") /* Speed at 0xc462 (code at 0x18aa) - Also affects level 2 (code at 0x7b82) */ | |
| 634 | 615 | PORT_DIPSETTING( 0x01, "Slower" ) /* 0xc462 = 0x04 - Normal level 2 */ |
| 635 | 616 | PORT_DIPSETTING( 0x00, DEF_STR ( Normal ) ) /* 0xc462 = 0x06 - Level 2 same as level 30 */ |
| 636 | 617 | INPUT_PORTS_END |
| r1711 | r1712 | |
| 639 | 620 | PORT_INCLUDE(arknoidj) |
| 640 | 621 | |
| 641 | 622 | PORT_MODIFY("DSW") |
| 642 | PORT_DIPNAME( 0x01, 0x00, "Round Select" ) | |
| 623 | PORT_DIPNAME( 0x01, 0x00, "Round Select" ) PORT_DIPLOCATION("SW1:8") /* Check code at 0x7bc2 - Speed at 0xc462 (code at 0x18aa) */ | |
| 643 | 624 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) /* 0xc462 = 0x06 */ |
| 644 | 625 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) /* 0xc462 = 0x06 */ |
| 645 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Bonus_Life ) ) | |
| 626 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:4") /* "ld a,$60" at 0x93bd and "ld a,$20" at 0x9c7f and 0x9c9b */ | |
| 646 | 627 | PORT_DIPSETTING( 0x10, "60K 100K 60K+" ) /* But "20K 60K 60K+" when continue */ |
| 647 | 628 | PORT_DIPSETTING( 0x00, "60K" ) /* But "20K" when continue */ |
| 648 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Lives ) ) | |
| 629 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:3") | |
| 649 | 630 | PORT_DIPSETTING( 0x00, "2" ) |
| 650 | 631 | PORT_DIPSETTING( 0x20, "3" ) |
| 651 | PORT_DIPUNUSED( 0x40, | |
| 632 | PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "S | |
| 652 | 633 | INPUT_PORTS_END |
| 653 | 634 | |
| 654 | 635 | static INPUT_PORTS_START( paddle2 ) |
| 655 | 636 | PORT_INCLUDE(arknoidj) |
| 656 | 637 | |
| 657 | 638 | PORT_MODIFY("DSW") |
| 658 | PORT_DIPNAME( 0x01, 0x00, "Round Select" ) /* Check code at 0x7bc2 - Speed at 0xc462 (code at 0x18aa) */ | |
| 639 | PORT_DIPNAME( 0x01, 0x00, "Round Select" ) PORT_DIPLOCATION("SW1:8") /* Check code at 0x7bc2 - Speed at 0xc462 (code at 0x18aa) */ | |
| 659 | 640 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) /* 0xc462 = 0x06 */ |
| 660 | 641 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) /* 0xc462 = 0x06 */ |
| 661 | PORT_DIPNAME( 0x04, 0x04, "Controls ?" ) | |
| 642 | PORT_DIPNAME( 0x04, 0x04, "Controls ?" ) PORT_DIPLOCATION("SW1:6") /* Check code at 0x96a1 and read notes */ | |
| 662 | 643 | PORT_DIPSETTING( 0x04, DEF_STR( Normal ) ) |
| 663 | 644 | PORT_DIPSETTING( 0x00, DEF_STR( Alternate ) ) |
| 664 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Bonus_Life ) ) | |
| 645 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:4") /* "ld a,$60" at 0x93bd and "ld a,$20" at 0x9c7f and 0x9c9b */ | |
| 665 | 646 | PORT_DIPSETTING( 0x10, "60K 100K 60K+" ) /* But "20K 60K 60K+" when continue */ |
| 666 | 647 | PORT_DIPSETTING( 0x00, "60K" ) /* But "20K" when continue */ |
| 667 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Lives ) ) | |
| 648 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:3") /* Table at 0x9a28 */ | |
| 668 | 649 | PORT_DIPSETTING( 0x00, "2" ) |
| 669 | 650 | PORT_DIPSETTING( 0x20, "3" ) |
| 670 | 651 | INPUT_PORTS_END |
| r1711 | r1712 | |
| 673 | 654 | PORT_INCLUDE(arknoidj) |
| 674 | 655 | |
| 675 | 656 | PORT_MODIFY("DSW") |
| 676 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Bonus_Life ) ) | |
| 657 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:4") /* "ld a,$60" at 0x93bd and "ld a,$60" at 0x9c7f and 0x9c9b */ | |
| 677 | 658 | PORT_DIPSETTING( 0x10, "60K 100K 60K+" ) |
| 678 | 659 | PORT_DIPSETTING( 0x00, "60K" ) |
| 679 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Lives ) ) | |
| 660 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:3") /* Table at 0x9a28 */ | |
| 680 | 661 | PORT_DIPSETTING( 0x20, "2" ) |
| 681 | 662 | PORT_DIPSETTING( 0x00, "3" ) |
| 682 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Coinage ) ) | |
| 663 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:2") /* Table at 0x0320 */ | |
| 683 | 664 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) |
| 684 | 665 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_1C ) ) |
| 685 | 666 | INPUT_PORTS_END |
| r1711 | r1712 | |
| 770 | 751 | MDRV_CPU_ADD_TAG("mcu", M68705, 3000000) /* 3 Mhz */ |
| 771 | 752 | MDRV_CPU_PROGRAM_MAP(mcu_map, 0) |
| 772 | 753 | |
| 773 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 774 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 775 | 754 | MDRV_INTERLEAVE(100) // 100 CPU slices per second to synchronize between the MCU and the main CPU |
| 776 | 755 | |
| 777 | 756 | MDRV_MACHINE_START(arkanoid) |
| 778 | 757 | MDRV_MACHINE_RESET(arkanoid) |
| 779 | 758 | |
| 780 | 759 | // video hardware |
| 781 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 760 | ||
| 761 | MDRV_SCREEN_ADD("main", RASTER) | |
| 762 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 763 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 782 | 764 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 783 | 765 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 784 | 766 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 966 | 966 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 967 | 967 | MDRV_CPU_VBLANK_INT(CPUA_interrupt,1) |
| 968 | 968 | |
| 969 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 970 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 971 | 969 | MDRV_INTERLEAVE(100) |
| 972 | 970 | |
| 973 | 971 | // video hardware |
| 974 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 972 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 973 | ||
| 974 | MDRV_SCREEN_ADD("main", RASTER) | |
| 975 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 976 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 975 | 977 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 976 | 978 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 977 | 979 | MDRV_SCREEN_VISIBLE_AREA(0, 40*8-1, 2*8, 30*8-1) |
| 980 | ||
| 978 | 981 | MDRV_GFXDECODE(twin16) |
| 979 | 982 | MDRV_PALETTE_LENGTH(0x400) |
| 980 | 983 | |
| r1711 | r1712 | |
| 1017 | 1020 | MDRV_CPU_PROGRAM_MAP(fround_readmem,fround_writemem) |
| 1018 | 1021 | MDRV_CPU_VBLANK_INT(CPUA_interrupt,1) |
| 1019 | 1022 | |
| 1020 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1021 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 1022 | 1023 | MDRV_INTERLEAVE(100) |
| 1023 | 1024 | |
| 1024 | 1025 | /* video hardware */ |
| 1025 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 1026 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 1027 | ||
| 1028 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1029 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1030 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 1026 | 1031 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1027 | 1032 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 1028 | 1033 | MDRV_SCREEN_VISIBLE_AREA(0, 40*8-1, 2*8, 30*8-1) |
| 1034 | ||
| 1029 | 1035 | MDRV_GFXDECODE(twin16) |
| 1030 | 1036 | MDRV_PALETTE_LENGTH(0x400) |
| 1031 | 1037 | |
| r1711 | r1712 | |
| 1060 | 1066 | |
| 1061 | 1067 | static MACHINE_DRIVER_START( mia ) |
| 1062 | 1068 | MDRV_IMPORT_FROM(twin16) |
| 1069 | MDRV_SCREEN_MODIFY("main") | |
| 1063 | 1070 | MDRV_SCREEN_VISIBLE_AREA(1*8, 39*8-1, 2*8, 30*8-1) |
| 1064 | 1071 | MDRV_VIDEO_START(fround) |
| 1065 | 1072 | MACHINE_DRIVER_END |
| r1711 | r1712 | |
| 1071 | 1078 | |
| 1072 | 1079 | static MACHINE_DRIVER_START( cuebrckj ) |
| 1073 | 1080 | MDRV_IMPORT_FROM(twin16) |
| 1081 | MDRV_SCREEN_MODIFY("main") | |
| 1074 | 1082 | MDRV_SCREEN_VISIBLE_AREA(1*8, 39*8-1, 2*8, 30*8-1) |
| 1075 | 1083 | MDRV_VIDEO_START(fround) |
| 1076 | 1084 | MDRV_NVRAM_HANDLER(generic_0fill) |
| r1711 | r1712 | |
|---|---|---|
| 656 | 656 | /* audio CPU */ |
| 657 | 657 | MDRV_CPU_PROGRAM_MAP(sound_readmem_A,sound_writemem_A) |
| 658 | 658 | |
| 659 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 660 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 661 | ||
| 662 | 659 | MDRV_INTERLEAVE(2000) |
| 663 | 660 | |
| 664 | 661 | MDRV_MACHINE_RESET(megasys1) |
| 665 | 662 | |
| 666 | 663 | /* video hardware */ |
| 667 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 664 | MDRV_SCREEN_ADD("main", RASTER) | |
| 665 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 666 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 668 | 667 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 669 | 668 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 670 | 669 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 670 | ||
| 671 | 671 | MDRV_GFXDECODE(ABC) |
| 672 | 672 | MDRV_PALETTE_LENGTH(1024) |
| 673 | 673 | |
| r1711 | r1712 | |
| 768 | 768 | MDRV_CPU_PROGRAM_MAP(readmem_D,writemem_D) |
| 769 | 769 | MDRV_CPU_VBLANK_INT(interrupt_D,INTERRUPT_NUM_D) |
| 770 | 770 | |
| 771 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 772 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 773 | ||
| 774 | 771 | MDRV_MACHINE_RESET(megasys1) |
| 775 | 772 | |
| 776 | 773 | /* video hardware */ |
| 777 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 774 | MDRV_SCREEN_ADD("main", RASTER) | |
| 775 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 776 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 778 | 777 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 779 | 778 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 780 | 779 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 780 | ||
| 781 | 781 | MDRV_GFXDECODE(ABC) |
| 782 | 782 | MDRV_PALETTE_LENGTH(1024) |
| 783 | 783 | |
| r1711 | r1712 | |
| 834 | 834 | MDRV_CPU_PROGRAM_MAP(sound_readmem_z80,sound_writemem_z80) |
| 835 | 835 | MDRV_CPU_IO_MAP(sound_readport,sound_writeport) |
| 836 | 836 | |
| 837 | /* video hardware */ | |
| 838 | MDRV_SCREEN_ADD("main", RASTER) | |
| 837 | 839 | MDRV_SCREEN_REFRESH_RATE(60) |
| 838 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 839 | ||
| 840 | /* video hardware */ | |
| 841 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 840 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 842 | 841 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 843 | 842 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 844 | 843 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 844 | ||
| 845 | 845 | MDRV_GFXDECODE(Z) |
| 846 | 846 | MDRV_PALETTE_LENGTH(768) |
| 847 | 847 |
| r1711 | r1712 | |
|---|---|---|
| 632 | 632 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 633 | 633 | MDRV_CPU_IO_MAP(sound_readport,sound_writeport) |
| 634 | 634 | |
| 635 | /* video hardware */ | |
| 636 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 637 | ||
| 638 | MDRV_SCREEN_ADD("main", RASTER) | |
| 635 | 639 | MDRV_SCREEN_REFRESH_RATE(60) |
| 636 | ||
| 637 | /* video hardware */ | |
| 638 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 639 | 640 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 640 | 641 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 641 | 642 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 28*8-1) |
| 643 | ||
| 642 | 644 | MDRV_GFXDECODE(crshrace) |
| 643 | 645 | MDRV_PALETTE_LENGTH(2048) |
| 644 | 646 |
| r1711 | r1712 | |
|---|---|---|
| 611 | 611 | MDRV_CPU_IO_MAP(sound_io_map, 0) |
| 612 | 612 | MDRV_CPU_VBLANK_INT(irq0_line_hold, 1) // nmi are caused by sub cpu writing a sound command |
| 613 | 613 | |
| 614 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 615 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 616 | 614 | MDRV_INTERLEAVE(100) // Palette RAM is filled by sub cpu with data supplied by main cpu |
| 617 | 615 | // Maybe a high value is safer in order to avoid glitches |
| 618 | 616 | MDRV_MACHINE_RESET(airbustr) |
| 619 | MDRV_WATCHDOG_ | |
| 617 | MDRV_WATCHDOG_TIME | |
| 620 | 618 | |
| 621 | 619 | // video hardware |
| 622 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 620 | ||
| 621 | MDRV_SCREEN_ADD("main", RASTER) | |
| 622 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 623 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 623 | 624 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 624 | 625 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 625 | 626 | MDRV_SCREEN_VISIBLE_AREA(0, 32*8-1, 2*8, 30*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 313 | 313 | MDRV_CPU_PROGRAM_MAP(clshroad_sound_readmem,clshroad_sound_writemem) |
| 314 | 314 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) /* IRQ, no NMI */ |
| 315 | 315 | |
| 316 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 317 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 318 | ||
| 319 | 316 | MDRV_MACHINE_RESET(clshroad) |
| 320 | 317 | |
| 321 | 318 | /* video hardware */ |
| 322 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 319 | MDRV_SCREEN_ADD("main", RASTER) | |
| 320 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 321 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 323 | 322 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 324 | 323 | MDRV_SCREEN_SIZE(0x120, 0x100) |
| 325 | 324 | MDRV_SCREEN_VISIBLE_AREA(0, 0x120-1, 0x0+16, 0x100-16-1) |
| 325 | ||
| 326 | 326 | MDRV_GFXDECODE(firebatl) |
| 327 | 327 | MDRV_PALETTE_LENGTH(512+64*4) |
| 328 | 328 | |
| r1711 | r1712 | |
| 350 | 350 | MDRV_CPU_PROGRAM_MAP(clshroad_sound_readmem,clshroad_sound_writemem) |
| 351 | 351 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) /* IRQ, no NMI */ |
| 352 | 352 | |
| 353 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 354 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 355 | ||
| 356 | 353 | MDRV_MACHINE_RESET(clshroad) |
| 357 | 354 | |
| 358 | 355 | /* video hardware */ |
| 359 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 356 | MDRV_SCREEN_ADD("main", RASTER) | |
| 357 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 358 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 360 | 359 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 361 | 360 | MDRV_SCREEN_SIZE(0x120, 0x100) |
| 362 | 361 | MDRV_SCREEN_VISIBLE_AREA(0, 0x120-1, 0x0+16, 0x100-16-1) |
| 362 | ||
| 363 | 363 | MDRV_GFXDECODE(clshroad) |
| 364 | 364 | MDRV_PALETTE_LENGTH(256) |
| 365 | 365 |
| r1711 | r1712 | |
|---|---|---|
| 3079 | 3079 | MDRV_WATCHDOG_VBLANK_INIT(16) |
| 3080 | 3080 | |
| 3081 | 3081 | /* video hardware */ |
| 3082 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 3083 | 3082 | MDRV_GFXDECODE(pacman) |
| 3084 | 3083 | MDRV_PALETTE_LENGTH(128*4) |
| 3085 | 3084 | |
| 3086 | MDRV_SCREEN_ADD("main", | |
| 3085 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3087 | 3086 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3088 | 3087 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART) |
| 3089 | 3088 | |
| r1711 | r1712 | |
| 3207 | 3206 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,1) |
| 3208 | 3207 | |
| 3209 | 3208 | /* video hardware */ |
| 3209 | MDRV_SCREEN_MODIFY("main") | |
| 3210 | 3210 | MDRV_SCREEN_VISIBLE_AREA(2*8, 34*8-1, 0*8, 28*8-1) |
| 3211 | 3211 | |
| 3212 | 3212 | /* sound hardware */ |
| r1711 | r1712 | |
| 3227 | 3227 | MDRV_CPU_IO_MAP(bigbucks_readport,0) |
| 3228 | 3228 | MDRV_CPU_VBLANK_INT(irq0_line_hold,20) |
| 3229 | 3229 | |
| 3230 | MDRV_SCREEN_MODIFY("main") | |
| 3230 | 3231 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 0*8, 28*8-1) |
| 3231 | 3232 | MACHINE_DRIVER_END |
| 3232 | 3233 | |
| r1711 | r1712 | |
| 3241 | 3242 | MDRV_CPU_PROGRAM_MAP(s2650games_map,0) |
| 3242 | 3243 | MDRV_CPU_VBLANK_INT(s2650_interrupt,1) |
| 3243 | 3244 | |
| 3245 | MDRV_GFXDECODE(s2650games) | |
| 3246 | ||
| 3247 | MDRV_SCREEN_MODIFY("main") | |
| 3244 | 3248 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 3245 | 3249 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 3246 | MDRV_ | |
| 3250 | MDRV_SCR | |
| 3247 | 3251 | |
| 3248 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 3249 | ||
| 3250 | 3252 | MDRV_VIDEO_START(s2650games) |
| 3251 | 3253 | MDRV_VIDEO_UPDATE(s2650games) |
| 3252 | 3254 | |
| r1711 | r1712 | |
| 3295 | 3297 | MDRV_CPU_PROGRAM_MAP(rocktrv2_map,0) |
| 3296 | 3298 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 3297 | 3299 | |
| 3300 | MDRV_SCREEN_MODIFY("main") | |
| 3298 | 3301 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 0*8, 28*8-1) |
| 3299 | 3302 | MACHINE_DRIVER_END |
| 3300 | 3303 |
| r1711 | r1712 | |
|---|---|---|
| 411 | 411 | MDRV_CPU_PERIODIC_INT(irq1_line_hold, 480) /* accurate for fredmem */ |
| 412 | 412 | |
| 413 | 413 | MDRV_MACHINE_START(dcheese) |
| 414 | ||
| 414 | ||
| 415 | 415 | MDRV_NVRAM_HANDLER(93C46) |
| 416 | 416 | |
| 417 | 417 | /* video hardware */ |
| 418 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 418 | MDRV_SCREEN_ADD("main", RASTER) | |
| 419 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 419 | 420 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 420 | 421 | MDRV_SCREEN_SIZE(360, 262) /* guess, need to see what the games write to the vid registers */ |
| 421 | 422 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 239) |
| r1711 | r1712 | |
| 438 | 439 | |
| 439 | 440 | static MACHINE_DRIVER_START( fredmem ) |
| 440 | 441 | MDRV_IMPORT_FROM(dcheese) |
| 442 | MDRV_SCREEN_MODIFY("main") | |
| 441 | 443 | MDRV_SCREEN_VISIBLE_AREA(0, 359, 0, 239) |
| 442 | 444 | MACHINE_DRIVER_END |
| 443 | 445 |
| r1711 | r1712 | |
|---|---|---|
| 369 | 369 | /* audio CPU */ /* ? */ |
| 370 | 370 | MDRV_CPU_PROGRAM_MAP(chqflag_readmem_sound,chqflag_writemem_sound) |
| 371 | 371 | |
| 372 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 373 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 374 | 372 | MDRV_INTERLEAVE(10) |
| 375 | 373 | |
| 376 | 374 | /* video hardware */ |
| 377 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS) | |
| 375 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 376 | ||
| 377 | MDRV_SCREEN_ADD("main", RASTER) | |
| 378 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 379 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 378 | 380 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 379 | 381 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 380 | 382 | MDRV_SCREEN_VISIBLE_AREA(12*8, (64-14)*8-1, 2*8, 30*8-1 ) |
| 383 | ||
| 381 | 384 | MDRV_PALETTE_LENGTH(1024) |
| 382 | 385 | |
| 383 | 386 | MDRV_VIDEO_START(chqflag) |
| r1711 | r1712 | |
|---|---|---|
| 404 | 404 | MDRV_CPU_IO_MAP(bwp3_readport, bwp3_writeport) |
| 405 | 405 | MDRV_CPU_PERIODIC_INT(bwp3_interrupt, 1000) |
| 406 | 406 | |
| 407 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 408 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(600)) // must be long enough for polling | |
| 409 | 407 | MDRV_INTERLEAVE(300) // high enough? |
| 410 | 408 | |
| 411 | 409 | MDRV_MACHINE_RESET(bwing) |
| 412 | 410 | |
| 413 | 411 | // video hardware |
| 414 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 412 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 413 | ||
| 414 | MDRV_SCREEN_ADD("main", RASTER) | |
| 415 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 416 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(600)) // must be long enough for polling | |
| 415 | 417 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 416 | MDRV_GFXDECODE(bwing) | |
| 417 | 418 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 418 | 419 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 420 | ||
| 421 | MDRV_GFXDECODE(bwing) | |
| 419 | 422 | MDRV_PALETTE_LENGTH(64) |
| 420 | 423 | |
| 421 | 424 | MDRV_VIDEO_START(bwing) |
| r1711 | r1712 | |
|---|---|---|
| 127 | 127 | { |
| 128 | 128 | /* create the char set (gfx will then be updated dynamically from RAM) */ |
| 129 | 129 | machine->gfx[0] = allocgfx(&tiles8x8_layout); |
| 130 | machine->gfx[0]->total_colors = machine-> | |
| 130 | machine->gfx[0]->total_colors = machine->config->total_colors / 256; | |
| 131 | 131 | machine->gfx[0]->color_granularity=256; |
| 132 | 132 | |
| 133 | 133 | tileram = auto_malloc(0x100000*16); |
| r1711 | r1712 | |
| 711 | 711 | MDRV_CPU_PROGRAM_MAP(srmp6,0) |
| 712 | 712 | MDRV_CPU_VBLANK_INT(srmp6_interrupt,2) |
| 713 | 713 | |
| 714 | ||
| 715 | MDRV_SCREEN_ADD("main", RASTER) | |
| 714 | 716 | MDRV_SCREEN_REFRESH_RATE(60) |
| 715 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 716 | ||
| 717 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 717 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 718 | 718 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 719 | 719 | MDRV_SCREEN_SIZE(64*8, 64*8) |
| 720 | 720 | MDRV_SCREEN_VISIBLE_AREA(0*8, 42*8-1, 0*8, 30*8-1) |
| 721 | ||
| 721 | 722 | MDRV_PALETTE_LENGTH(0x800) |
| 722 | 723 | |
| 723 | 724 | MDRV_VIDEO_START(srmp6) |
| r1711 | r1712 | |
|---|---|---|
| 832 | 832 | MDRV_CPU_IO_MAP(sound2_readport,sound2_writeport) |
| 833 | 833 | MDRV_CPU_PERIODIC_INT(irq0_line_hold,8000) |
| 834 | 834 | |
| 835 | /* video hardware */ | |
| 836 | MDRV_SCREEN_ADD("main", RASTER) | |
| 835 | 837 | MDRV_SCREEN_REFRESH_RATE(60) |
| 836 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 837 | ||
| 838 | /* video hardware */ | |
| 839 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 838 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 840 | 839 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 841 | 840 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 842 | 841 | MDRV_SCREEN_VISIBLE_AREA(8*8, (64-8)*8-1, 2*8, 30*8-1 ) |
| 842 | ||
| 843 | 843 | MDRV_GFXDECODE(sf) |
| 844 | 844 | MDRV_PALETTE_LENGTH(1024) |
| 845 | 845 |
| r1711 | r1712 | |
|---|---|---|
| 600 | 600 | MDRV_CPU_ADD(M68705,4000000) /* ? */ |
| 601 | 601 | MDRV_CPU_PROGRAM_MAP(m68705_readmem,m68705_writemem) |
| 602 | 602 | |
| 603 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 604 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 605 | 603 | MDRV_INTERLEAVE(500) /* 500 CPU slices per frame - an high value to ensure proper */ |
| 606 | 604 | /* synchronization of the CPUs */ |
| 607 | 605 | /* main<->sound synchronization depends on this */ |
| 608 | 606 | |
| 609 | 607 | /* video hardware */ |
| 610 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 608 | MDRV_SCREEN_ADD("main", RASTER) | |
| 609 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 610 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 611 | 611 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 612 | 612 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 613 | 613 | MDRV_SCREEN_VISIBLE_AREA(0, 32*8-1, 2*8, 30*8-1) |
| 614 | ||
| 614 | 615 | MDRV_GFXDECODE(lsasquad) |
| 615 | 616 | MDRV_PALETTE_LENGTH(512) |
| 616 | 617 | |
| r1711 | r1712 | |
| 643 | 644 | MDRV_CPU_PROGRAM_MAP(sound_mem_daikaiju, 0) |
| 644 | 645 | /* IRQs are triggered by the YM2203 */ |
| 645 | 646 | |
| 646 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 647 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 648 | 647 | MDRV_INTERLEAVE(500) /* 500 CPU slices per frame - an high value to ensure proper */ |
| 649 | 648 | /* synchronization of the CPUs */ |
| 650 | 649 | /* main<->sound synchronization depends on this */ |
| r1711 | r1712 | |
| 652 | 651 | MDRV_MACHINE_RESET(daikaiju) |
| 653 | 652 | |
| 654 | 653 | /* video hardware */ |
| 655 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 654 | MDRV_SCREEN_ADD("main", RASTER) | |
| 655 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 656 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 656 | 657 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 657 | 658 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 658 | 659 | MDRV_SCREEN_VISIBLE_AREA(0, 32*8-1, 2*8, 30*8-1) |
| 660 | ||
| 659 | 661 | MDRV_GFXDECODE(lsasquad) |
| 660 | 662 | MDRV_PALETTE_LENGTH(512) |
| 661 | 663 |
| r1711 | r1712 | |
|---|---|---|
| 1054 | 1054 | MDRV_CPU_CONFIG(ppc602_config) |
| 1055 | 1055 | MDRV_CPU_PROGRAM_MAP(m2_main, 0) |
| 1056 | 1056 | |
| 1057 | /* video hardware */ | |
| 1058 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1057 | 1059 | MDRV_SCREEN_REFRESH_RATE(60) |
| 1058 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1059 | ||
| 1060 | /* video hardware */ | |
| 1061 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 1060 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1062 | 1061 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) |
| 1063 | 1062 | MDRV_SCREEN_SIZE(640, 480) |
| 1064 | 1063 | MDRV_SCREEN_VISIBLE_AREA(0, 511, 0, 383) |
| 1064 | ||
| 1065 | 1065 | MDRV_PALETTE_LENGTH(65536) |
| 1066 | 1066 | |
| 1067 | 1067 | MDRV_VIDEO_START(m2) |
| r1711 | r1712 | |
|---|---|---|
| 205 | 205 | MDRV_CPU_ADD(M6800, 12096000 / 16) /* ? */ |
| 206 | 206 | MDRV_CPU_PROGRAM_MAP(cpu_map, 0) |
| 207 | 207 | |
| 208 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 209 | 208 | MDRV_MACHINE_RESET(cball) |
| 210 | 209 | |
| 211 | 210 | /* video hardware */ |
| 212 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 211 | MDRV_SCREEN_ADD("main", RASTER) | |
| 212 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 213 | 213 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 214 | 214 | MDRV_SCREEN_SIZE(256, 262) |
| 215 | 215 | MDRV_SCREEN_VISIBLE_AREA(0, 255, 0, 223) |
| 216 | ||
| 216 | 217 | MDRV_GFXDECODE(cball) |
| 217 | 218 | MDRV_PALETTE_LENGTH(6) |
| 218 | 219 |
| r1711 | r1712 | |
|---|---|---|
| 293 | 293 | |
| 294 | 294 | SEIBU_SOUND_SYSTEM_CPU(14318180/4) |
| 295 | 295 | |
| 296 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 297 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 298 | ||
| 299 | 296 | MDRV_MACHINE_RESET(seibu_sound_1) |
| 300 | 297 | |
| 301 | 298 | /* video hardware */ |
| 302 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 299 | MDRV_SCREEN_ADD("main", RASTER) | |
| 300 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 301 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 303 | 302 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 304 | 303 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 305 | 304 | MDRV_SCREEN_VISIBLE_AREA(16*8, 56*8-1, 2*8, 32*8-1) |
| 305 | ||
| 306 | 306 | MDRV_GFXDECODE(sengokmj) |
| 307 | 307 | MDRV_PALETTE_LENGTH(0x800) |
| 308 | 308 |
| r1711 | r1712 | |
|---|---|---|
| 255 | 255 | MDRV_CPU_ADD_TAG("main", N2A03, N2A03_DEFAULTCLOCK) |
| 256 | 256 | MDRV_CPU_PROGRAM_MAP(cham24_map, 0) |
| 257 | 257 | |
| 258 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 259 | ||
| 260 | 258 | MDRV_MACHINE_RESET( cham24 ) |
| 261 | 259 | |
| 262 | 260 | /* video hardware */ |
| 263 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 261 | MDRV_SCREEN_ADD("main", RASTER) | |
| 262 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 264 | 263 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 265 | 264 | MDRV_SCREEN_SIZE(32*8, 262) |
| 266 | 265 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 30*8-1) |
| 266 | ||
| 267 | 267 | MDRV_GFXDECODE(cham24) |
| 268 | 268 | MDRV_PALETTE_LENGTH(8*4*16) |
| 269 | 269 |
| r1711 | r1712 | |
|---|---|---|
| 518 | 518 | AM_RANGE(0x408000, 0x40ffff) AM_WRITE(MWA16_RAM ) // Sprites? |
| 519 | 519 | AM_RANGE(0x500000, 0x507fff) AM_WRITE(cave_vram_0_w) AM_BASE(&cave_vram_0 ) // Layer 0 |
| 520 | 520 | AM_RANGE(0x600000, 0x607fff) AM_WRITE(cave_vram_1_w) AM_BASE(&cave_vram_1 ) // Layer 1 |
| 521 | AM_RANGE(0x708000, 0x708fff) AM_WRITE(paletteram16 | |
| 521 | AM_RANGE(0x708000, 0x708fff) AM_WRITE(MWA16_RAM) AM_BASE(&paletteram16 | |
| 522 | 522 | AM_RANGE(0x710c00, 0x710fff) AM_WRITE(MWA16_RAM ) // ? |
| 523 | 523 | AM_RANGE(0x800000, 0x80007f) AM_WRITE(MWA16_RAM) AM_BASE(&cave_videoregs ) // Video Regs |
| 524 | 524 | AM_RANGE(0x900000, 0x900005) AM_WRITE(MWA16_RAM) AM_BASE(&cave_vctrl_0 ) // Layer 0 Control |
| r1711 | r1712 | |
| 562 | 562 | AM_RANGE(0x900000, 0x900005) AM_WRITE(MWA16_RAM) AM_BASE(&cave_vctrl_0 ) // Layer 0 Control |
| 563 | 563 | AM_RANGE(0xa00000, 0xa00005) AM_WRITE(MWA16_RAM) AM_BASE(&cave_vctrl_1 ) // Layer 1 Control |
| 564 | 564 | AM_RANGE(0xb00000, 0xb00005) AM_WRITE(MWA16_RAM) AM_BASE(&cave_vctrl_2 ) // Layer 2 Control |
| 565 | AM_RANGE(0xc00000, 0xc0ffff) AM_WRITE(paletteram16 | |
| 565 | AM_RANGE(0xc00000, 0xc0ffff) AM_WRITE(MWA16_RAM) AM_BASE(&paletteram16 | |
| 566 | 566 | AM_RANGE(0xe00000, 0xe00001) AM_WRITE(cave_eeprom_msb_w ) // EEPROM |
| 567 | 567 | ADDRESS_MAP_END |
| 568 | 568 | |
| r1711 | r1712 | |
| 627 | 627 | AM_RANGE(0x700000, 0x700005) AM_WRITE(MWA16_RAM) AM_BASE(&cave_vctrl_0 ) // Layer 0 Control |
| 628 | 628 | AM_RANGE(0x800000, 0x800005) AM_WRITE(MWA16_RAM) AM_BASE(&cave_vctrl_2 ) // Layer 2 Control |
| 629 | 629 | AM_RANGE(0x900000, 0x90007f) AM_WRITE(MWA16_RAM) AM_BASE(&cave_videoregs ) // Video Regs |
| 630 | AM_RANGE(0xa08000, 0xa08fff) AM_WRITE(paletteram16 | |
| 630 | AM_RANGE(0xa08000, 0xa08fff) AM_WRITE(MWA16_RAM) AM_BASE(&paletteram16 | |
| 631 | 631 | AM_RANGE(0xb00000, 0xb00003) AM_WRITE(OKIM6295_data_0_lsb_w ) // M6295 |
| 632 | 632 | AM_RANGE(0xb00010, 0xb00013) AM_WRITE(OKIM6295_data_1_lsb_w ) // |
| 633 | 633 | AM_RANGE(0xb00020, 0xb0002f) AM_WRITE(NMK112_okibank_lsb_w ) // |
| r1711 | r1712 | |
| 670 | 670 | AM_RANGE(0x900000, 0x900005) AM_WRITE(MWA16_RAM) AM_BASE(&cave_vctrl_0 ) // Layer 0 Control |
| 671 | 671 | AM_RANGE(0xa00000, 0xa00005) AM_WRITE(MWA16_RAM) AM_BASE(&cave_vctrl_1 ) // Layer 1 Control |
| 672 | 672 | AM_RANGE(0xb00000, 0xb00005) AM_WRITE(MWA16_RAM) AM_BASE(&cave_vctrl_2 ) // Layer 2 Control |
| 673 | AM_RANGE(0xc00000, 0xc0ffff) AM_WRITE(paletteram16 | |
| 673 | AM_RANGE(0xc00000, 0xc0ffff) AM_WRITE(MWA16_RAM) AM_BASE(&paletteram16 | |
| 674 | 674 | AM_RANGE(0xe00000, 0xe00001) AM_WRITE(cave_eeprom_msb_w ) // EEPROM |
| 675 | 675 | ADDRESS_MAP_END |
| 676 | 676 | |
| r1711 | r1712 | |
| 717 | 717 | AM_RANGE(0x900000, 0x900005) AM_WRITE(MWA16_RAM) AM_BASE(&cave_vctrl_0 ) // Layer 0 Control |
| 718 | 718 | AM_RANGE(0xa00000, 0xa00005) AM_WRITE(MWA16_RAM) AM_BASE(&cave_vctrl_1 ) // Layer 1 Control |
| 719 | 719 | AM_RANGE(0xb00000, 0xb00005) AM_WRITE(MWA16_RAM) AM_BASE(&cave_vctrl_2 ) // Layer 2 Control |
| 720 | AM_RANGE(0xc00000, 0xc0ffff) AM_WRITE(paletteram16 | |
| 720 | AM_RANGE(0xc00000, 0xc0ffff) AM_WRITE(MWA16_RAM) AM_BASE(&paletteram16 | |
| 721 | 721 | AM_RANGE(0xd00010, 0xd00011) AM_WRITE(gaia_coin_lsb_w ) // Coin counter only |
| 722 | 722 | AM_RANGE(0xd00014, 0xd00015) AM_WRITE(watchdog_reset16_w ) // Watchdog? |
| 723 | 723 | ADDRESS_MAP_END |
| r1711 | r1712 | |
| 758 | 758 | AM_RANGE(0x900000, 0x900005) AM_WRITE(MWA16_RAM) AM_BASE(&cave_vctrl_0 ) // Layer 0 Control |
| 759 | 759 | AM_RANGE(0xa00000, 0xa00005) AM_WRITE(MWA16_RAM) AM_BASE(&cave_vctrl_1 ) // Layer 1 Control |
| 760 | 760 | AM_RANGE(0xb00000, 0xb00005) AM_WRITE(MWA16_RAM) AM_BASE(&cave_vctrl_2 ) // Layer 2 Control |
| 761 | AM_RANGE(0xc00000, 0xc0ffff) AM_WRITE(paletteram16 | |
| 761 | AM_RANGE(0xc00000, 0xc0ffff) AM_WRITE(MWA16_RAM) AM_BASE(&paletteram16 | |
| 762 | 762 | AM_RANGE(0xd00010, 0xd00011) AM_WRITE(cave_eeprom_lsb_w ) // EEPROM |
| 763 | 763 | // AM_RANGE(0xd00012, 0xd00013) AM_WRITE(MWA16_NOP ) // ? |
| 764 | 764 | // AM_RANGE(0xd00014, 0xd00015) AM_WRITE(MWA16_NOP ) // ? $800068 in dfeveron ? probably Watchdog |
| r1711 | r1712 | |
| 790 | 790 | static ADDRESS_MAP_START( hotdogst_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 791 | 791 | AM_RANGE(0x000000, 0x0fffff) AM_WRITE(MWA16_ROM ) // ROM |
| 792 | 792 | AM_RANGE(0x300000, 0x30ffff) AM_WRITE(MWA16_RAM ) // RAM |
| 793 | AM_RANGE(0x408000, 0x408fff) AM_WRITE(paletteram16 | |
| 793 | AM_RANGE(0x408000, 0x408fff) AM_WRITE(MWA16_RAM) AM_BASE(&paletteram16 | |
| 794 | 794 | AM_RANGE(0x880000, 0x887fff) AM_WRITE(cave_vram_0_w) AM_BASE(&cave_vram_0 ) // Layer 0 |
| 795 | 795 | AM_RANGE(0x900000, 0x907fff) AM_WRITE(cave_vram_1_w) AM_BASE(&cave_vram_1 ) // Layer 1 |
| 796 | 796 | AM_RANGE(0x980000, 0x987fff) AM_WRITE(cave_vram_2_w) AM_BASE(&cave_vram_2 ) // Layer 2 |
| r1711 | r1712 | |
| 897 | 897 | AM_RANGE(0x140000, 0x140005) AM_WRITE( MWA16_RAM ) AM_BASE( &cave_vctrl_0 ) // Layer 0 Control |
| 898 | 898 | AM_RANGE(0x180000, 0x187fff) AM_WRITE( MWA16_RAM ) AM_BASE( &spriteram16 ) AM_SIZE(&spriteram_size ) // Sprites |
| 899 | 899 | AM_RANGE(0x1c0000, 0x1c007f) AM_WRITE( MWA16_RAM ) AM_BASE( &cave_videoregs ) // Video Regs |
| 900 | AM_RANGE(0x200000, 0x207fff) AM_WRITE( paletteram16 | |
| 900 | AM_RANGE(0x200000, 0x207fff) AM_WRITE( MWA16_RAM ) AM_BASE(&paletteram16 | |
| 901 | 901 | AM_RANGE(0x240000, 0x240003) AM_WRITE( cave_sound_w ) // YMZ280 |
| 902 | 902 | AM_RANGE(0x280008, 0x280009) AM_WRITE( korokoro_leds_w ) |
| 903 | 903 | AM_RANGE(0x28000a, 0x28000b) AM_WRITE( korokoro_eeprom_msb_w ) // EEPROM |
| r1711 | r1712 | |
| 940 | 940 | AM_RANGE(0x600000, 0x600005) AM_WRITE(MWA16_RAM) AM_BASE(&cave_vctrl_1 ) // Layer 1 Control |
| 941 | 941 | AM_RANGE(0x700000, 0x700005) AM_WRITE(MWA16_RAM) AM_BASE(&cave_vctrl_0 ) // Layer 0 Control |
| 942 | 942 | AM_RANGE(0x900000, 0x900001) AM_WRITE(cave_eeprom_msb_w ) // EEPROM |
| 943 | AM_RANGE(0xc08000, 0xc0ffff) AM_WRITE(paletteram16 | |
| 943 | AM_RANGE(0xc08000, 0xc0ffff) AM_WRITE(MWA16_RAM) AM_BASE(&paletteram16 | |
| 944 | 944 | AM_RANGE(0xd00000, 0xd7ffff) AM_WRITE(MWA16_ROM ) // ROM |
| 945 | 945 | ADDRESS_MAP_END |
| 946 | 946 | |
| r1711 | r1712 | |
| 977 | 977 | AM_RANGE(0x000000, 0x07ffff) AM_WRITE(MWA16_ROM ) // ROM |
| 978 | 978 | AM_RANGE(0x100000, 0x17ffff) AM_WRITE(MWA16_ROM ) // ROM |
| 979 | 979 | AM_RANGE(0x200000, 0x27ffff) AM_WRITE(MWA16_ROM ) // ROM |
| 980 | AM_RANGE(0x408000, 0x408fff) AM_WRITE(paletteram16 | |
| 980 | AM_RANGE(0x408000, 0x408fff) AM_WRITE(MWA16_RAM) AM_BASE(&paletteram16 | |
| 981 | 981 | AM_RANGE(0x880000, 0x887fff) AM_WRITE(cave_vram_2_w) AM_BASE(&cave_vram_2 ) // Layer 2 |
| 982 | 982 | AM_RANGE(0x888000, 0x88ffff) AM_WRITE(MWA16_RAM ) // |
| 983 | 983 | AM_RANGE(0x900000, 0x907fff) AM_WRITE(cave_vram_1_w) AM_BASE(&cave_vram_1 ) // Layer 1 |
| r1711 | r1712 | |
| 1066 | 1066 | AM_RANGE(0xc00000, 0xc00005) AM_WRITE(pwrinst2_vctrl_1_w) AM_BASE(&cave_vctrl_1 ) // Layer 1 Control |
| 1067 | 1067 | AM_RANGE(0xc80000, 0xc80005) AM_WRITE(pwrinst2_vctrl_3_w) AM_BASE(&cave_vctrl_3 ) // Layer 3 Control |
| 1068 | 1068 | AM_RANGE(0xe00000, 0xe00001) AM_WRITE(sound_cmd_w ) // To Sound CPU |
| 1069 | AM_RANGE(0xf00000, 0xf04fff) AM_WRITE(paletteram16 | |
| 1069 | AM_RANGE(0xf00000, 0xf04fff) AM_WRITE(MWA16_RAM) AM_BASE(&paletteram16 | |
| 1070 | 1070 | ADDRESS_MAP_END |
| 1071 | 1071 | |
| 1072 | 1072 | |
| r1711 | r1712 | |
| 1126 | 1126 | AM_RANGE(0x110000, 0x110001) AM_WRITE(MWA16_RAM ) // (agallet) |
| 1127 | 1127 | AM_RANGE(0x200000, 0x3fffff) AM_WRITE(MWA16_ROM ) // ROM |
| 1128 | 1128 | AM_RANGE(0x400000, 0x407fff) AM_WRITE(MWA16_RAM ) // (agallet) |
| 1129 | AM_RANGE(0x408000, 0x40bfff) AM_WRITE(paletteram16 | |
| 1129 | AM_RANGE(0x408000, 0x40bfff) AM_WRITE(MWA16_RAM) AM_BASE(&paletteram16 | |
| 1130 | 1130 | AM_RANGE(0x40c000, 0x40ffff) AM_WRITE(MWA16_RAM ) // (agallet) |
| 1131 | 1131 | AM_RANGE(0x410000, 0x410001) AM_WRITE(MWA16_RAM ) // (agallet) |
| 1132 | 1132 | AM_RANGE(0x500000, 0x507fff) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size ) // Sprites |
| r1711 | r1712 | |
| 1172 | 1172 | AM_RANGE(0x500000, 0x507fff) AM_WRITE(cave_vram_0_w) AM_BASE(&cave_vram_0 ) // Layer 0 |
| 1173 | 1173 | AM_RANGE(0x600000, 0x60007f) AM_WRITE(MWA16_RAM) AM_BASE(&cave_videoregs ) // Video Regs |
| 1174 | 1174 | AM_RANGE(0x700000, 0x700005) AM_WRITE(MWA16_RAM) AM_BASE(&cave_vctrl_0 ) // Layer 0 Control |
| 1175 | AM_RANGE(0x800000, 0x80ffff) AM_WRITE(paletteram16 | |
| 1175 | AM_RANGE(0x800000, 0x80ffff) AM_WRITE(MWA16_RAM) AM_BASE(&paletteram16 | |
| 1176 | 1176 | AM_RANGE(0xa00000, 0xa00001) AM_WRITE(cave_eeprom_msb_w ) // EEPROM |
| 1177 | 1177 | ADDRESS_MAP_END |
| 1178 | 1178 | |
| r1711 | r1712 | |
| 2020 | 2020 | MDRV_CPU_PROGRAM_MAP(dfeveron_readmem,dfeveron_writemem) |
| 2021 | 2021 | MDRV_CPU_VBLANK_INT(cave_interrupt,1) |
| 2022 | 2022 | |
| 2023 | MDRV_SCREEN_REFRESH_RATE(15625/271.5) | |
| 2024 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 2025 | ||
| 2026 | 2023 | MDRV_MACHINE_RESET(cave) |
| 2027 | 2024 | MDRV_NVRAM_HANDLER(cave) |
| 2028 | 2025 | |
| 2029 | 2026 | /* video hardware */ |
| 2030 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2027 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2028 | MDRV_SCREEN_REFRESH_RATE(15625/271.5) | |
| 2029 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2031 | 2030 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2032 | 2031 | MDRV_SCREEN_SIZE(320, 240) |
| 2033 | 2032 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 0, 240-1) |
| 2033 | ||
| 2034 | 2034 | MDRV_GFXDECODE(dfeveron) |
| 2035 | MDRV_PALETTE_LENGTH(0x800) | |
| 2036 | MDRV_COLORTABLE_LENGTH(0x8000) /* $8000 palette entries for consistency with the other games */ | |
| 2035 | MDRV_PALETTE_LENGTH(0x8000) /* $8000 palette entries for consistency with the other games */ | |
| 2037 | 2036 | |
| 2038 | 2037 | MDRV_PALETTE_INIT(dfeveron) |
| 2039 | 2038 | MDRV_VIDEO_START(cave_2_layers) |
| r1711 | r1712 | |
| 2060 | 2059 | MDRV_CPU_PROGRAM_MAP(ddonpach_readmem,ddonpach_writemem) |
| 2061 | 2060 | MDRV_CPU_VBLANK_INT(cave_interrupt,1) |
| 2062 | 2061 | |
| 2063 | MDRV_SCREEN_REFRESH_RATE(15625/271.5) | |
| 2064 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 2065 | ||
| 2066 | 2062 | MDRV_MACHINE_RESET(cave) |
| 2067 | 2063 | MDRV_NVRAM_HANDLER(cave) |
| 2068 | 2064 | |
| 2069 | 2065 | /* video hardware */ |
| 2070 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2066 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2067 | MDRV_SCREEN_REFRESH_RATE(15625/271.5) | |
| 2068 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2071 | 2069 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2072 | 2070 | MDRV_SCREEN_SIZE(320, 240) |
| 2073 | 2071 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 0, 240-1) |
| 2072 | ||
| 2074 | 2073 | MDRV_GFXDECODE(ddonpach) |
| 2075 | MDRV_PALETTE_LENGTH(0x8000) | |
| 2076 | MDRV_COLORTABLE_LENGTH(0x8000 + 0x40*16) // $400 extra entries for layers 1&2 | |
| 2074 | MDRV_PALETTE_LENGTH(0x8000 + 0x40*16) // $400 extra entries for layers 1&2 | |
| 2077 | 2075 | |
| 2078 | 2076 | MDRV_PALETTE_INIT(ddonpach) |
| 2079 | 2077 | MDRV_VIDEO_START(cave_3_layers) |
| r1711 | r1712 | |
| 2100 | 2098 | MDRV_CPU_PROGRAM_MAP(donpachi_readmem,donpachi_writemem) |
| 2101 | 2099 | MDRV_CPU_VBLANK_INT(cave_interrupt,1) |
| 2102 | 2100 | |
| 2103 | MDRV_SCREEN_REFRESH_RATE(15625/271.5) | |
| 2104 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 2105 | ||
| 2106 | 2101 | MDRV_MACHINE_RESET(cave) |
| 2107 | 2102 | MDRV_NVRAM_HANDLER(cave) |
| 2108 | 2103 | |
| 2109 | 2104 | /* video hardware */ |
| 2110 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2105 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2106 | MDRV_SCREEN_REFRESH_RATE(15625/271.5) | |
| 2107 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2111 | 2108 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2112 | 2109 | MDRV_SCREEN_SIZE(320, 240) |
| 2113 | 2110 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 0, 240-1) |
| 2111 | ||
| 2114 | 2112 | MDRV_GFXDECODE(donpachi) |
| 2115 | MDRV_PALETTE_LENGTH(0x800) | |
| 2116 | MDRV_COLORTABLE_LENGTH(0x8000) /* $8000 palette entries for consistency with the other games */ | |
| 2113 | MDRV_PALETTE_LENGTH(0x8000) /* $8000 palette entries for consistency with the other games */ | |
| 2117 | 2114 | |
| 2118 | 2115 | MDRV_PALETTE_INIT(dfeveron) |
| 2119 | 2116 | MDRV_VIDEO_START(cave_3_layers) |
| r1711 | r1712 | |
| 2145 | 2142 | MDRV_CPU_PROGRAM_MAP(esprade_readmem,esprade_writemem) |
| 2146 | 2143 | MDRV_CPU_VBLANK_INT(cave_interrupt,1) |
| 2147 | 2144 | |
| 2148 | MDRV_SCREEN_REFRESH_RATE(15625/271.5) | |
| 2149 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 2150 | ||
| 2151 | 2145 | MDRV_MACHINE_RESET(cave) |
| 2152 | 2146 | MDRV_NVRAM_HANDLER(cave) |
| 2153 | 2147 | |
| 2154 | 2148 | /* video hardware */ |
| 2155 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2149 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2150 | MDRV_SCREEN_REFRESH_RATE(15625/271.5) | |
| 2151 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2156 | 2152 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2157 | 2153 | MDRV_SCREEN_SIZE(320, 240) |
| 2158 | 2154 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 0, 240-1) |
| 2155 | ||
| 2159 | 2156 | MDRV_GFXDECODE(esprade) |
| 2160 | 2157 | MDRV_PALETTE_LENGTH(0x8000) |
| 2161 | 2158 | |
| r1711 | r1712 | |
| 2183 | 2180 | MDRV_CPU_PROGRAM_MAP(gaia_readmem,gaia_writemem) |
| 2184 | 2181 | MDRV_CPU_VBLANK_INT(cave_interrupt,1) |
| 2185 | 2182 | |
| 2186 | MDRV_SCREEN_REFRESH_RATE(15625/271.5) | |
| 2187 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 2188 | ||
| 2189 | 2183 | MDRV_MACHINE_RESET(cave) |
| 2190 | 2184 | |
| 2191 | 2185 | /* video hardware */ |
| 2192 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2186 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2187 | MDRV_SCREEN_REFRESH_RATE(15625/271.5) | |
| 2188 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2193 | 2189 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2194 | 2190 | MDRV_SCREEN_SIZE(320, 240) |
| 2195 | 2191 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 0, 224-1) |
| 2192 | ||
| 2196 | 2193 | MDRV_GFXDECODE(esprade) |
| 2197 | 2194 | MDRV_PALETTE_LENGTH(0x8000) |
| 2198 | 2195 | |
| r1711 | r1712 | |
| 2220 | 2217 | MDRV_CPU_PROGRAM_MAP(guwange_readmem,guwange_writemem) |
| 2221 | 2218 | MDRV_CPU_VBLANK_INT(cave_interrupt,1) |
| 2222 | 2219 | |
| 2223 | MDRV_SCREEN_REFRESH_RATE(15625/271.5) | |
| 2224 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 2225 | ||
| 2226 | 2220 | MDRV_MACHINE_RESET(cave) |
| 2227 | 2221 | MDRV_NVRAM_HANDLER(cave) |
| 2228 | 2222 | |
| 2229 | 2223 | /* video hardware */ |
| 2230 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2224 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2225 | MDRV_SCREEN_REFRESH_RATE(15625/271.5) | |
| 2226 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2231 | 2227 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2232 | 2228 | MDRV_SCREEN_SIZE(320, 240) |
| 2233 | 2229 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 0, 240-1) |
| 2230 | ||
| 2234 | 2231 | MDRV_GFXDECODE(esprade) |
| 2235 | 2232 | MDRV_PALETTE_LENGTH(0x8000) |
| 2236 | 2233 | |
| r1711 | r1712 | |
| 2262 | 2259 | MDRV_CPU_PROGRAM_MAP(hotdogst_sound_readmem,hotdogst_sound_writemem) |
| 2263 | 2260 | MDRV_CPU_IO_MAP(hotdogst_sound_readport,hotdogst_sound_writeport) |
| 2264 | 2261 | |
| 2265 | MDRV_SCREEN_REFRESH_RATE(15625/271.5) | |
| 2266 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 2267 | ||
| 2268 | 2262 | MDRV_MACHINE_RESET(cave) |
| 2269 | 2263 | MDRV_NVRAM_HANDLER(cave) |
| 2270 | 2264 | |
| 2271 | 2265 | /* video hardware */ |
| 2272 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2266 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2267 | MDRV_SCREEN_REFRESH_RATE(15625/271.5) | |
| 2268 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2273 | 2269 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2274 | 2270 | MDRV_SCREEN_SIZE(384, 240) |
| 2275 | 2271 | MDRV_SCREEN_VISIBLE_AREA(0, 384-1, 0, 240-1) |
| 2272 | ||
| 2276 | 2273 | MDRV_GFXDECODE(hotdogst) |
| 2277 | MDRV_PALETTE_LENGTH(0x800) | |
| 2278 | MDRV_COLORTABLE_LENGTH(0x8000) /* $8000 palette entries for consistency with the other games */ | |
| 2274 | MDRV_PALETTE_LENGTH(0x8000) /* $8000 palette entries for consistency with the other games */ | |
| 2279 | 2275 | |
| 2280 | 2276 | MDRV_PALETTE_INIT(dfeveron) |
| 2281 | 2277 | MDRV_VIDEO_START(cave_3_layers) |
| r1711 | r1712 | |
| 2313 | 2309 | MDRV_CPU_PROGRAM_MAP(korokoro_readmem,korokoro_writemem) |
| 2314 | 2310 | MDRV_CPU_VBLANK_INT(cave_interrupt,1) |
| 2315 | 2311 | |
| 2316 | MDRV_SCREEN_REFRESH_RATE(15625/271.5) | |
| 2317 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 2318 | ||
| 2319 | 2312 | MDRV_MACHINE_RESET(cave) |
| 2320 | 2313 | MDRV_NVRAM_HANDLER(korokoro) |
| 2321 | 2314 | |
| 2322 | 2315 | /* video hardware */ |
| 2323 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2316 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2317 | MDRV_SCREEN_REFRESH_RATE(15625/271.5) | |
| 2318 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2324 | 2319 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2325 | 2320 | MDRV_SCREEN_SIZE(320, 240) |
| 2326 | 2321 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1-2, 0, 240-1-1) |
| 2322 | ||
| 2327 | 2323 | MDRV_GFXDECODE(korokoro) |
| 2328 | MDRV_PALETTE_LENGTH(0x4000) | |
| 2329 | MDRV_COLORTABLE_LENGTH(0x8000) /* $8000 palette entries for consistency with the other games */ | |
| 2324 | MDRV_PALETTE_LENGTH(0x8000) /* $8000 palette entries for consistency with the other games */ | |
| 2330 | 2325 | |
| 2331 | 2326 | MDRV_PALETTE_INIT(korokoro) |
| 2332 | 2327 | MDRV_VIDEO_START(cave_1_layer) |
| r1711 | r1712 | |
| 2358 | 2353 | MDRV_CPU_PROGRAM_MAP(mazinger_sound_readmem,mazinger_sound_writemem) |
| 2359 | 2354 | MDRV_CPU_IO_MAP(mazinger_sound_readport,mazinger_sound_writeport) |
| 2360 | 2355 | |
| 2361 | MDRV_SCREEN_REFRESH_RATE(15625/271.5) | |
| 2362 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 2363 | MDRV_WATCHDOG_VBLANK_INIT(DEFAULT_60HZ_3S_VBLANK_WATCHDOG) | |
| 2356 | MDRV_WATCHDOG_TIME_INIT(ATTOTIME_IN_SEC(3)) /* a guess, and certainly wrong */ | |
| 2364 | 2357 | |
| 2365 | 2358 | MDRV_MACHINE_RESET(cave) |
| 2366 | 2359 | MDRV_NVRAM_HANDLER(cave) |
| 2367 | 2360 | |
| 2368 | 2361 | /* video hardware */ |
| 2369 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2362 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2363 | MDRV_SCREEN_REFRESH_RATE(15625/271.5) | |
| 2364 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2370 | 2365 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2371 | 2366 | MDRV_SCREEN_SIZE(384, 240) |
| 2372 | 2367 | MDRV_SCREEN_VISIBLE_AREA(0, 384-1, 0, 240-1) |
| 2368 | ||
| 2373 | 2369 | MDRV_GFXDECODE(mazinger) |
| 2374 | MDRV_PALETTE_LENGTH(0x4000) | |
| 2375 | MDRV_COLORTABLE_LENGTH(0x8000) /* $8000 palette entries for consistency with the other games */ | |
| 2370 | MDRV_PALETTE_LENGTH(0x8000) /* $8000 palette entries for consistency with the other games */ | |
| 2376 | 2371 | |
| 2377 | 2372 | MDRV_PALETTE_INIT(mazinger) |
| 2378 | 2373 | MDRV_VIDEO_START(cave_2_layers) |
| r1711 | r1712 | |
| 2415 | 2410 | MDRV_CPU_PROGRAM_MAP(metmqstr_sound_readmem,metmqstr_sound_writemem) |
| 2416 | 2411 | MDRV_CPU_IO_MAP(metmqstr_sound_readport,metmqstr_sound_writeport) |
| 2417 | 2412 | |
| 2418 | MDRV_SCREEN_REFRESH_RATE(15625/271.5) | |
| 2419 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 2420 | MDRV_WATCHDOG_VBLANK_INIT(DEFAULT_60HZ_3S_VBLANK_WATCHDOG) | |
| 2413 | MDRV_WATCHDOG_TIME_INIT(ATTOTIME_IN_SEC(3)) /* a guess, and certainly wrong */ | |
| 2421 | 2414 | |
| 2422 | 2415 | MDRV_MACHINE_RESET(cave) /* start with the watchdog armed */ |
| 2423 | 2416 | MDRV_NVRAM_HANDLER(cave) |
| 2424 | 2417 | |
| 2425 | 2418 | /* video hardware */ |
| 2426 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2419 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2420 | MDRV_SCREEN_REFRESH_RATE(15625/271.5) | |
| 2421 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2427 | 2422 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2428 | 2423 | MDRV_SCREEN_SIZE(0x200, 240) |
| 2429 | 2424 | MDRV_SCREEN_VISIBLE_AREA(0x7d, 0x7d + 0x180-1, 0, 240-1) |
| 2425 | ||
| 2430 | 2426 | MDRV_GFXDECODE(donpachi) |
| 2431 | MDRV_PALETTE_LENGTH(0x800) | |
| 2432 | MDRV_COLORTABLE_LENGTH(0x8000) /* $8000 palette entries for consistency with the other games */ | |
| 2427 | MDRV_PALETTE_LENGTH(0x8000) /* $8000 palette entries for consistency with the other games */ | |
| 2433 | 2428 | |
| 2434 | 2429 | MDRV_PALETTE_INIT(dfeveron) |
| 2435 | 2430 | MDRV_VIDEO_START(cave_3_layers) |
| r1711 | r1712 | |
| 2473 | 2468 | MDRV_CPU_PROGRAM_MAP(pwrinst2_sound_readmem,pwrinst2_sound_writemem) |
| 2474 | 2469 | MDRV_CPU_IO_MAP(pwrinst2_sound_readport,pwrinst2_sound_writeport) |
| 2475 | 2470 | |
| 2476 | MDRV_SCREEN_REFRESH_RATE(15625/271.5) | |
| 2477 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 2478 | ||
| 2479 | 2471 | MDRV_MACHINE_RESET(cave) |
| 2480 | 2472 | MDRV_NVRAM_HANDLER(cave) |
| 2481 | 2473 | |
| 2482 | 2474 | /* video hardware */ |
| 2483 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2475 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2476 | MDRV_SCREEN_REFRESH_RATE(15625/271.5) | |
| 2477 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2484 | 2478 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2485 | 2479 | MDRV_SCREEN_SIZE(0x200, 240) |
| 2486 | 2480 | MDRV_SCREEN_VISIBLE_AREA(0x70, 0x70 + 0x140-1, 0, 240-1) |
| 2481 | ||
| 2487 | 2482 | MDRV_GFXDECODE(pwrinst2) |
| 2488 | MDRV_PALETTE_LENGTH(0x5000/2) | |
| 2489 | MDRV_COLORTABLE_LENGTH(0x8000+0x2800) | |
| 2483 | MDRV_PALETTE_LENGTH(0x8000+0x2800) | |
| 2490 | 2484 | |
| 2491 | 2485 | MDRV_PALETTE_INIT(pwrinst2) |
| 2492 | 2486 | MDRV_VIDEO_START(cave_4_layers) |
| r1711 | r1712 | |
| 2534 | 2528 | MDRV_CPU_PROGRAM_MAP(sailormn_sound_readmem,sailormn_sound_writemem) |
| 2535 | 2529 | MDRV_CPU_IO_MAP(sailormn_sound_readport,sailormn_sound_writeport) |
| 2536 | 2530 | |
| 2537 | MDRV_SCREEN_REFRESH_RATE(15625/271.5) | |
| 2538 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 2539 | 2531 | // MDRV_INTERLEAVE(10) |
| 2540 | 2532 | |
| 2541 | 2533 | MDRV_MACHINE_RESET(cave) |
| 2542 | 2534 | MDRV_NVRAM_HANDLER(cave) |
| 2543 | 2535 | |
| 2544 | 2536 | /* video hardware */ |
| 2545 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2537 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2538 | MDRV_SCREEN_REFRESH_RATE(15625/271.5) | |
| 2539 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2546 | 2540 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2547 | 2541 | MDRV_SCREEN_SIZE(320+1, 240) |
| 2548 | 2542 | MDRV_SCREEN_VISIBLE_AREA(0+1, 320+1-1, 0, 240-1) |
| 2543 | ||
| 2549 | 2544 | MDRV_GFXDECODE(sailormn) |
| 2550 | MDRV_PALETTE_LENGTH(0x2000) | |
| 2551 | MDRV_COLORTABLE_LENGTH(0x8000) /* $8000 palette entries for consistency with the other games */ | |
| 2545 | MDRV_PALETTE_LENGTH(0x8000) /* $8000 palette entries for consistency with the other games */ | |
| 2552 | 2546 | |
| 2553 | 2547 | MDRV_PALETTE_INIT(sailormn) // 4 bit sprites, 6 bit tiles |
| 2554 | 2548 | MDRV_VIDEO_START(sailormn_3_layers) /* Layer 2 has 1 banked ROM */ |
| r1711 | r1712 | |
| 2584 | 2578 | MDRV_CPU_PROGRAM_MAP(uopoko_readmem,uopoko_writemem) |
| 2585 | 2579 | MDRV_CPU_VBLANK_INT(cave_interrupt,1) |
| 2586 | 2580 | |
| 2587 | MDRV_SCREEN_REFRESH_RATE(15625/271.5) | |
| 2588 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 2589 | ||
| 2590 | 2581 | MDRV_NVRAM_HANDLER(cave) |
| 2591 | 2582 | |
| 2592 | 2583 | /* video hardware */ |
| 2593 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2584 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2585 | MDRV_SCREEN_REFRESH_RATE(15625/271.5) | |
| 2586 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 2594 | 2587 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2595 | 2588 | MDRV_SCREEN_SIZE(320, 240) |
| 2596 | 2589 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 0, 240-1) |
| 2590 | ||
| 2597 | 2591 | MDRV_GFXDECODE(uopoko) |
| 2598 | 2592 | MDRV_PALETTE_LENGTH(0x8000) |
| 2599 | 2593 |
| r1711 | r1712 | |
|---|---|---|
| 983 | 983 | /* audio CPU */ /* ??? */ |
| 984 | 984 | MDRV_CPU_PROGRAM_MAP(lastday_sound_readmem,lastday_sound_writemem) |
| 985 | 985 | |
| 986 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 987 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 988 | ||
| 989 | 986 | MDRV_MACHINE_START(lastday) |
| 990 | 987 | |
| 991 | 988 | /* video hardware */ |
| 992 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 989 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 990 | ||
| 991 | MDRV_SCREEN_ADD("main", RASTER) | |
| 992 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 993 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 993 | 994 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 994 | 995 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 995 | 996 | MDRV_SCREEN_VISIBLE_AREA(8*8, (64-8)*8-1, 1*8, 31*8-1 ) |
| 997 | ||
| 996 | 998 | MDRV_GFXDECODE(lastday) |
| 997 | 999 | MDRV_PALETTE_LENGTH(1024) |
| 998 | 1000 | |
| r1711 | r1712 | |
| 1015 | 1017 | /* audio CPU */ /* ??? */ |
| 1016 | 1018 | MDRV_CPU_PROGRAM_MAP(lastday_sound_readmem,lastday_sound_writemem) |
| 1017 | 1019 | |
| 1018 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1019 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 1020 | ||
| 1021 | 1020 | MDRV_MACHINE_START(lastday) |
| 1022 | 1021 | |
| 1023 | 1022 | /* video hardware */ |
| 1024 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 1023 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 1024 | ||
| 1025 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1026 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1027 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 1025 | 1028 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1026 | 1029 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 1027 | 1030 | MDRV_SCREEN_VISIBLE_AREA(8*8, (64-8)*8-1, 1*8, 31*8-1 ) |
| 1031 | ||
| 1028 | 1032 | MDRV_GFXDECODE(lastday) |
| 1029 | 1033 | MDRV_PALETTE_LENGTH(1024) |
| 1030 | 1034 | |
| r1711 | r1712 | |
| 1047 | 1051 | /* audio CPU */ /* ??? */ |
| 1048 | 1052 | MDRV_CPU_PROGRAM_MAP(pollux_sound_readmem,pollux_sound_writemem) |
| 1049 | 1053 | |
| 1050 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1051 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1052 | ||
| 1053 | 1054 | MDRV_MACHINE_START(lastday) |
| 1054 | 1055 | |
| 1055 | 1056 | /* video hardware */ |
| 1056 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 1057 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 1058 | ||
| 1059 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1060 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1061 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1057 | 1062 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1058 | 1063 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 1059 | 1064 | MDRV_SCREEN_VISIBLE_AREA(8*8, (64-8)*8-1, 1*8, 31*8-1 ) |
| 1065 | ||
| 1060 | 1066 | MDRV_GFXDECODE(lastday) |
| 1061 | 1067 | MDRV_PALETTE_LENGTH(1024) |
| 1062 | 1068 | |
| r1711 | r1712 | |
| 1079 | 1085 | /* audio CPU */ /* ??? */ |
| 1080 | 1086 | MDRV_CPU_PROGRAM_MAP(bluehawk_sound_readmem,bluehawk_sound_writemem) |
| 1081 | 1087 | |
| 1082 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1083 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1084 | ||
| 1085 | 1088 | MDRV_MACHINE_START(lastday) |
| 1086 | 1089 | |
| 1087 | 1090 | /* video hardware */ |
| 1088 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 1091 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 1092 | ||
| 1093 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1094 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1095 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1089 | 1096 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1090 | 1097 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 1091 | 1098 | MDRV_SCREEN_VISIBLE_AREA(8*8, (64-8)*8-1, 1*8, 31*8-1 ) |
| 1099 | ||
| 1092 | 1100 | MDRV_GFXDECODE(bluehawk) |
| 1093 | 1101 | MDRV_PALETTE_LENGTH(1024) |
| 1094 | 1102 | |
| r1711 | r1712 | |
| 1111 | 1119 | /* audio CPU */ /* ??? */ |
| 1112 | 1120 | MDRV_CPU_PROGRAM_MAP(bluehawk_sound_readmem,bluehawk_sound_writemem) |
| 1113 | 1121 | |
| 1114 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1115 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1116 | ||
| 1117 | 1122 | MDRV_MACHINE_START(lastday) |
| 1118 | 1123 | |
| 1119 | 1124 | /* video hardware */ |
| 1120 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 1125 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 1126 | ||
| 1127 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1128 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1129 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1121 | 1130 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1122 | 1131 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 1123 | 1132 | MDRV_SCREEN_VISIBLE_AREA(8*8, (64-8)*8-1, 1*8, 31*8-1 ) |
| 1133 | ||
| 1124 | 1134 | MDRV_GFXDECODE(flytiger) |
| 1125 | 1135 | MDRV_PALETTE_LENGTH(1024) |
| 1126 | 1136 | |
| r1711 | r1712 | |
| 1143 | 1153 | /* audio CPU */ /* ??? */ |
| 1144 | 1154 | MDRV_CPU_PROGRAM_MAP(bluehawk_sound_readmem,bluehawk_sound_writemem) |
| 1145 | 1155 | |
| 1156 | /* video hardware */ | |
| 1157 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1146 | 1158 | MDRV_SCREEN_REFRESH_RATE(60) |
| 1147 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1148 | ||
| 1149 | /* video hardware */ | |
| 1150 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1159 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1151 | 1160 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1152 | 1161 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 1153 | 1162 | MDRV_SCREEN_VISIBLE_AREA(8*8, (64-8)*8-1, 0*8, 32*8-1 ) |
| 1163 | ||
| 1154 | 1164 | MDRV_GFXDECODE(primella) |
| 1155 | 1165 | MDRV_PALETTE_LENGTH(1024) |
| 1156 | 1166 | |
| r1711 | r1712 | |
| 1181 | 1191 | /* audio CPU */ /* measured on super-x */ |
| 1182 | 1192 | MDRV_CPU_PROGRAM_MAP(bluehawk_sound_readmem,bluehawk_sound_writemem) |
| 1183 | 1193 | |
| 1194 | /* video hardware */ | |
| 1195 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 1196 | ||
| 1197 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1184 | 1198 | MDRV_SCREEN_REFRESH_RATE(60) |
| 1185 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1186 | ||
| 1187 | /* video hardware */ | |
| 1188 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 1199 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1189 | 1200 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1190 | 1201 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 1191 | 1202 | MDRV_SCREEN_VISIBLE_AREA(8*8, (64-8)*8-1, 1*8, 31*8-1 ) |
| 1203 | ||
| 1192 | 1204 | MDRV_GFXDECODE(rshark) |
| 1193 | 1205 | MDRV_PALETTE_LENGTH(2048) |
| 1194 | 1206 | |
| r1711 | r1712 | |
| 1211 | 1223 | /* audio CPU */ /* measured on super-x */ |
| 1212 | 1224 | MDRV_CPU_PROGRAM_MAP(bluehawk_sound_readmem,bluehawk_sound_writemem) |
| 1213 | 1225 | |
| 1226 | /* video hardware */ | |
| 1227 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 1228 | ||
| 1229 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1214 | 1230 | MDRV_SCREEN_REFRESH_RATE(60) |
| 1215 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1216 | ||
| 1217 | /* video hardware */ | |
| 1218 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 1231 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1219 | 1232 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1220 | 1233 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 1221 | 1234 | MDRV_SCREEN_VISIBLE_AREA(8*8, (64-8)*8-1, 1*8, 31*8-1 ) |
| 1235 | ||
| 1222 | 1236 | MDRV_GFXDECODE(rshark) |
| 1223 | 1237 | MDRV_PALETTE_LENGTH(2048) |
| 1224 | 1238 | |
| r1711 | r1712 | |
| 1241 | 1255 | /* audio CPU */ /* measured on super-x */ |
| 1242 | 1256 | MDRV_CPU_PROGRAM_MAP(bluehawk_sound_readmem,bluehawk_sound_writemem) |
| 1243 | 1257 | |
| 1258 | /* video hardware */ | |
| 1259 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 1260 | ||
| 1261 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1244 | 1262 | MDRV_SCREEN_REFRESH_RATE(60) |
| 1245 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1246 | ||
| 1247 | /* video hardware */ | |
| 1248 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 1263 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1249 | 1264 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1250 | 1265 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 1251 | 1266 | MDRV_SCREEN_VISIBLE_AREA(8*8, (64-8)*8-1, 1*8, 31*8-1 ) |
| 1267 | ||
| 1252 | 1268 | MDRV_GFXDECODE(popbingo) |
| 1253 | 1269 | MDRV_PALETTE_LENGTH(2048) |
| 1254 | 1270 |
| r1711 | r1712 | |
|---|---|---|
| 408 | 408 | MDRV_CPU_PROGRAM_MAP(sound_map,0) |
| 409 | 409 | |
| 410 | 410 | /* video hardware */ |
| 411 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 412 | 411 | MDRV_GFXDECODE(brkthru) |
| 413 | 412 | MDRV_PALETTE_LENGTH(256) |
| 414 | 413 | |
| 415 | 414 | /* not sure; assuming to be the same as darwin */ |
| 416 | MDRV_SCREEN_ADD("main", | |
| 415 | MDRV_SCREEN_ADD("main", RASTER) | |
| 417 | 416 | MDRV_SCREEN_RAW_PARAMS(MASTER_CLOCK/2, 384, 8, 248, 272, 8, 248) |
| 418 | 417 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 419 | 418 | |
| r1711 | r1712 | |
| 447 | 446 | MDRV_CPU_PROGRAM_MAP(sound_map,0) |
| 448 | 447 | |
| 449 | 448 | /* video hardware */ |
| 450 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 451 | 449 | MDRV_GFXDECODE(brkthru) |
| 452 | 450 | MDRV_PALETTE_LENGTH(256) |
| 453 | 451 | |
| 454 | MDRV_SCREEN_ADD("main", | |
| 452 | MDRV_SCREEN_ADD("main", RASTER) | |
| 455 | 453 | MDRV_SCREEN_RAW_PARAMS(MASTER_CLOCK/2, 384, 8, 248, 272, 8, 248) |
| 456 | 454 | /* frames per second, vblank duration |
| 457 | 455 | Horizontal video frequency: |
| r1711 | r1712 | |
|---|---|---|
| 81 | 81 | MDRV_CPU_PROGRAM_MAP(comebaby_map, 0) |
| 82 | 82 | |
| 83 | 83 | /* video hardware */ |
| 84 | MDRV_ | |
| 84 | MDRV_SC | |
| 85 | 85 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 86 | 86 | MDRV_SCREEN_REFRESH_RATE(60) |
| 87 | MDRV_SCREEN_VBLANK_TIME( | |
| 87 | MDRV_SCREEN_VBLANK_TIME( | |
| 88 | 88 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 89 | 89 | MDRV_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 0*8, 32*8-1) |
| 90 | ||
| 90 | 91 | MDRV_PALETTE_LENGTH(0x100) |
| 91 | 92 | |
| 92 | 93 | MDRV_VIDEO_START(comebaby) |
| r1711 | r1712 | |
|---|---|---|
| 1414 | 1414 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 1415 | 1415 | |
| 1416 | 1416 | /* video hardware */ |
| 1417 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 1417 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 1418 | 1418 | |
| 1419 | MDRV_SCREEN_ADD("main", | |
| 1419 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1420 | 1420 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 1421 | 1421 | MDRV_SCREEN_RAW_PARAMS(MASTER_CLOCK*2/3, 512, 10, 304, 260, 7, 245) |
| 1422 | 1422 | |
| r1711 | r1712 | |
| 1434 | 1434 | static MACHINE_DRIVER_START( jin ) // needs a different screen size or the credit text is clipped |
| 1435 | 1435 | /* basic machine hardware */ |
| 1436 | 1436 | MDRV_IMPORT_FROM(defender) |
| 1437 | MDRV_SCREEN_MODIFY("main") | |
| 1437 | 1438 | MDRV_SCREEN_VISIBLE_AREA(0, 315, 7, 245) |
| 1438 | 1439 | MACHINE_DRIVER_END |
| 1439 | 1440 | |
| r1711 | r1712 | |
| 1450 | 1451 | MDRV_CPU_PROGRAM_MAP(sound_map,0) |
| 1451 | 1452 | |
| 1452 | 1453 | MDRV_MACHINE_RESET(williams) |
| 1454 | MDRV_SCREEN_MODIFY("main") | |
| 1453 | 1455 | MDRV_SCREEN_VISIBLE_AREA(6, 298-1, 7, 247-1) |
| 1454 | 1456 | MACHINE_DRIVER_END |
| 1455 | 1457 | |
| r1711 | r1712 | |
| 1473 | 1475 | MDRV_CPU_PROGRAM_MAP(williams_map,0) |
| 1474 | 1476 | |
| 1475 | 1477 | MDRV_MACHINE_RESET(williams) |
| 1478 | MDRV_SCREEN_MODIFY("main") | |
| 1476 | 1479 | MDRV_SCREEN_VISIBLE_AREA(6, 298-1, 7, 247-1) |
| 1477 | 1480 | MACHINE_DRIVER_END |
| 1478 | 1481 | |
| r1711 | r1712 | |
| 1494 | 1497 | MDRV_IMPORT_FROM(williams) |
| 1495 | 1498 | |
| 1496 | 1499 | /* video hardware */ |
| 1500 | MDRV_SCREEN_MODIFY("main") | |
| 1497 | 1501 | MDRV_SCREEN_VISIBLE_AREA(6, 298-1, 8, 239-1) |
| 1498 | 1502 | |
| 1499 | 1503 | /* sound hardware */ |
| r1711 | r1712 | |
| 1531 | 1535 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 1532 | 1536 | |
| 1533 | 1537 | /* video hardware */ |
| 1534 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 1538 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 1535 | 1539 | MDRV_PALETTE_LENGTH(1024) |
| 1536 | 1540 | MDRV_GFXDECODE(williams2) |
| 1537 | 1541 | |
| 1538 | MDRV_SCREEN_ADD("main", | |
| 1542 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1539 | 1543 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 1540 | 1544 | MDRV_SCREEN_RAW_PARAMS(MASTER_CLOCK*2/3, 512, 8, 284, 260, 8, 248) |
| 1541 | 1545 |
| r1711 | r1712 | |
|---|---|---|
| 607 | 607 | MDRV_CPU_PROGRAM_MAP(fuuki32_sound_readmem,fuuki32_sound_writemem) |
| 608 | 608 | MDRV_CPU_IO_MAP(fuuki32_sound_readport,fuuki32_sound_writeport) |
| 609 | 609 | |
| 610 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 611 | ||
| 612 | 610 | MDRV_MACHINE_START(fuuki32) |
| 613 | 611 | MDRV_MACHINE_RESET(fuuki32) |
| 614 | 612 | |
| 615 | 613 | /* video hardware */ |
| 616 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) // | VIDEO_BUFFERS_SPRITERAM ) // Buffered by 2 frames | |
| 614 | //MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) // Buffered by 2 frames | |
| 615 | ||
| 616 | MDRV_SCREEN_ADD("main", RASTER) | |
| 617 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 617 | 618 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 618 | 619 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 619 | 620 | MDRV_SCREEN_VISIBLE_AREA(0, 40*8-1, 0, 30*8-1) |
| 621 | ||
| 620 | 622 | MDRV_GFXDECODE(fuuki32) |
| 621 | 623 | MDRV_PALETTE_LENGTH(0x4000/2) |
| 622 | 624 |
| r1711 | r1712 | |
|---|---|---|
| 2093 | 2093 | /* audio CPU */ |
| 2094 | 2094 | MDRV_CPU_PROGRAM_MAP(dec8_s_readmem,dec8_s_writemem) |
| 2095 | 2095 | /* NMIs are caused by the main CPU */ |
| 2096 | ||
| 2097 | /* video hardware */ | |
| 2098 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 2099 | ||
| 2100 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2096 | 2101 | MDRV_SCREEN_REFRESH_RATE(58) |
| 2097 | 2102 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529) /* 58Hz, 529ms Vblank duration */) |
| 2098 | ||
| 2099 | /* video hardware */ | |
| 2100 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 2101 | 2103 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2102 | 2104 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 2103 | 2105 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 2106 | ||
| 2104 | 2107 | MDRV_GFXDECODE(cobracom) |
| 2105 | 2108 | MDRV_PALETTE_LENGTH(256) |
| 2106 | 2109 | |
| r1711 | r1712 | |
| 2132 | 2135 | /* audio CPU */ |
| 2133 | 2136 | MDRV_CPU_PROGRAM_MAP(dec8_s_readmem,dec8_s_writemem) |
| 2134 | 2137 | /* NMIs are caused by the main CPU */ |
| 2138 | ||
| 2139 | /* video hardware */ | |
| 2140 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 2141 | ||
| 2142 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2135 | 2143 | MDRV_SCREEN_REFRESH_RATE(58) |
| 2136 | 2144 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* 58Hz, 529ms Vblank duration */) |
| 2137 | ||
| 2138 | /* video hardware */ | |
| 2139 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 2140 | 2145 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2141 | 2146 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 2142 | 2147 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 2148 | ||
| 2143 | 2149 | MDRV_GFXDECODE(ghostb) |
| 2144 | 2150 | MDRV_PALETTE_LENGTH(1024) |
| 2145 | 2151 | |
| r1711 | r1712 | |
| 2173 | 2179 | /* audio CPU */ |
| 2174 | 2180 | MDRV_CPU_PROGRAM_MAP(dec8_s_readmem,dec8_s_writemem) |
| 2175 | 2181 | /* NMIs are caused by the main CPU */ |
| 2182 | ||
| 2183 | /* video hardware */ | |
| 2184 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 2185 | ||
| 2186 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2176 | 2187 | MDRV_SCREEN_REFRESH_RATE(58) |
| 2177 | 2188 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529) /* 58Hz, 529ms Vblank duration */) |
| 2178 | ||
| 2179 | /* video hardware */ | |
| 2180 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 2181 | 2189 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2182 | 2190 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 2183 | 2191 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 2192 | ||
| 2184 | 2193 | MDRV_GFXDECODE(srdarwin) |
| 2185 | 2194 | MDRV_PALETTE_LENGTH(144) |
| 2186 | 2195 | |
| r1711 | r1712 | |
| 2212 | 2221 | /* audio CPU */ |
| 2213 | 2222 | MDRV_CPU_PROGRAM_MAP(dec8_s_readmem,oscar_s_writemem) |
| 2214 | 2223 | /* NMIs are caused by the main CPU */ |
| 2224 | ||
| 2225 | /* video hardware */ | |
| 2226 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 2227 | ||
| 2228 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2215 | 2229 | MDRV_SCREEN_REFRESH_RATE(58) |
| 2216 | 2230 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529) /* 58Hz, 529ms Vblank duration */) |
| 2217 | ||
| 2218 | /* video hardware */ | |
| 2219 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 2220 | 2231 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2221 | 2232 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 2222 | 2233 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 2234 | ||
| 2223 | 2235 | MDRV_GFXDECODE(gondo) |
| 2224 | 2236 | MDRV_PALETTE_LENGTH(1024) |
| 2225 | 2237 | |
| r1711 | r1712 | |
| 2255 | 2267 | /* audio CPU */ |
| 2256 | 2268 | MDRV_CPU_PROGRAM_MAP(dec8_s_readmem,oscar_s_writemem) |
| 2257 | 2269 | /* NMIs are caused by the main CPU */ |
| 2258 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 2259 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* 58Hz, 529ms Vblank duration */) | |
| 2260 | 2270 | MDRV_INTERLEAVE(40) /* 40 CPU slices per frame */ |
| 2261 | 2271 | |
| 2262 | 2272 | /* video hardware */ |
| 2263 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 2273 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 2274 | ||
| 2275 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2276 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 2277 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* 58Hz, 529ms Vblank duration */) | |
| 2264 | 2278 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2265 | 2279 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 2266 | 2280 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 2281 | ||
| 2267 | 2282 | MDRV_GFXDECODE(oscar) |
| 2268 | 2283 | MDRV_PALETTE_LENGTH(512) |
| 2269 | 2284 | |
| r1711 | r1712 | |
| 2297 | 2312 | /* audio CPU */ |
| 2298 | 2313 | MDRV_CPU_PROGRAM_MAP(ym3526_s_readmem,ym3526_s_writemem) |
| 2299 | 2314 | /* NMIs are caused by the main CPU */ |
| 2300 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 2301 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* 58Hz, 529ms Vblank duration */) | |
| 2302 | 2315 | MDRV_INTERLEAVE(200) |
| 2303 | 2316 | |
| 2304 | 2317 | /* video hardware */ |
| 2305 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 2318 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 2319 | ||
| 2320 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2321 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 2322 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* 58Hz, 529ms Vblank duration */) | |
| 2306 | 2323 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2307 | 2324 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 2308 | 2325 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 2326 | ||
| 2309 | 2327 | MDRV_GFXDECODE(shackled) |
| 2310 | 2328 | MDRV_PALETTE_LENGTH(1024) |
| 2311 | 2329 | |
| r1711 | r1712 | |
| 2339 | 2357 | /* audio CPU */ |
| 2340 | 2358 | MDRV_CPU_PROGRAM_MAP(ym3526_s_readmem,ym3526_s_writemem) |
| 2341 | 2359 | /* NMIs are caused by the main CPU */ |
| 2342 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 2343 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* 58Hz, 529ms Vblank duration */) | |
| 2344 | 2360 | MDRV_INTERLEAVE(80) |
| 2345 | 2361 | |
| 2346 | 2362 | /* video hardware */ |
| 2347 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 2363 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 2364 | ||
| 2365 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2366 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 2367 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* 58Hz, 529ms Vblank duration */) | |
| 2348 | 2368 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2349 | 2369 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 2350 | 2370 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 2371 | ||
| 2351 | 2372 | MDRV_GFXDECODE(shackled) |
| 2352 | 2373 | MDRV_PALETTE_LENGTH(1024) |
| 2353 | 2374 | |
| r1711 | r1712 | |
| 2382 | 2403 | /* audio CPU */ |
| 2383 | 2404 | MDRV_CPU_PROGRAM_MAP(csilver_s_readmem,csilver_s_writemem) |
| 2384 | 2405 | /* NMIs are caused by the main CPU */ |
| 2385 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 2386 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529) /* 58Hz, 529ms Vblank duration */) | |
| 2387 | 2406 | MDRV_INTERLEAVE(100) |
| 2388 | 2407 | |
| 2389 | 2408 | /* video hardware */ |
| 2390 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 2409 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 2410 | ||
| 2411 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2412 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 2413 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529) /* 58Hz, 529ms Vblank duration */) | |
| 2391 | 2414 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2392 | 2415 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 2393 | 2416 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 2417 | ||
| 2394 | 2418 | MDRV_GFXDECODE(shackled) |
| 2395 | 2419 | MDRV_PALETTE_LENGTH(1024) |
| 2396 | 2420 | |
| r1711 | r1712 | |
| 2426 | 2450 | /* audio CPU */ |
| 2427 | 2451 | MDRV_CPU_PROGRAM_MAP(dec8_s_readmem,oscar_s_writemem) |
| 2428 | 2452 | /* NMIs are caused by the main CPU */ |
| 2453 | ||
| 2454 | /* video hardware */ | |
| 2455 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 2456 | ||
| 2457 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2429 | 2458 | MDRV_SCREEN_REFRESH_RATE(58) |
| 2430 | 2459 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529) /* 58Hz, 529ms Vblank duration */) |
| 2431 | ||
| 2432 | /* video hardware */ | |
| 2433 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 2434 | 2460 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2435 | 2461 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 2436 | 2462 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 2463 | ||
| 2437 | 2464 | MDRV_GFXDECODE(gondo) |
| 2438 | 2465 | MDRV_PALETTE_LENGTH(1024) |
| 2439 | 2466 | |
| r1711 | r1712 | |
| 3387 | 3414 | |
| 3388 | 3415 | sound_cpu = 1; |
| 3389 | 3416 | /* Oscar has three CPUs */ |
| 3390 | if (machine-> | |
| 3417 | if (machine->config->cpu[2].type != CPU_DUMMY) sound_cpu = 2; | |
| 3391 | 3418 | |
| 3392 | 3419 | /* bits 5 and 6 of the opcodes are swapped */ |
| 3393 | 3420 | rom = memory_region(REGION_CPU1+sound_cpu); |
| r1711 | r1712 | |
|---|---|---|
| 123 | 123 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 124 | 124 | // MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 125 | 125 | |
| 126 | MDRV_SCREEN_ADD("main", RASTER) | |
| 126 | 127 | MDRV_SCREEN_REFRESH_RATE(60) |
| 127 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 128 | ||
| 129 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 128 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 130 | 129 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 131 | 130 | MDRV_SCREEN_SIZE(256, 256) |
| 132 | 131 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0, 256-1) |
| 132 | ||
| 133 | 133 | MDRV_GFXDECODE(rcorsair) |
| 134 | 134 | MDRV_PALETTE_LENGTH(0x100) |
| 135 | 135 |
| r1711 | r1712 | |
|---|---|---|
| 604 | 604 | MDRV_INTERLEAVE(100) |
| 605 | 605 | |
| 606 | 606 | /* video hardware */ |
| 607 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 608 | 607 | MDRV_GFXDECODE(tbowl) |
| 609 | 608 | MDRV_PALETTE_LENGTH(1024*2) |
| 610 | 609 | MDRV_DEFAULT_LAYOUT(layout_dualhsxs) |
| 611 | 610 | |
| 612 | MDRV_SCREEN_ADD("left", | |
| 611 | MDRV_SCREEN_ADD("left", RASTER) | |
| 613 | 612 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 614 | 613 | MDRV_SCREEN_REFRESH_RATE(60) |
| 615 | MDRV_SCREEN_VBLANK_TIME( | |
| 614 | MDRV_SCREEN_VBLANK_TIME( | |
| 616 | 615 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 617 | 616 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 618 | 617 | |
| 619 | MDRV_SCREEN_ADD("right", | |
| 618 | MDRV_SCREEN_ADD("right", RASTER) | |
| 620 | 619 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 621 | 620 | MDRV_SCREEN_REFRESH_RATE(60) |
| 622 | MDRV_SCREEN_VBLANK_TIME( | |
| 621 | MDRV_SCREEN_VBLANK_TIME( | |
| 623 | 622 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 624 | 623 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 625 | 624 |
| r1711 | r1712 | |
|---|---|---|
| 263 | 263 | MDRV_CPU_ADD(M6809, 1250000) /* 1.25 MHz ? */ |
| 264 | 264 | MDRV_CPU_PROGRAM_MAP(battlane_map, 0) |
| 265 | 265 | |
| 266 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 267 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 268 | 266 | MDRV_INTERLEAVE(100) |
| 269 | 267 | |
| 270 | 268 | /* video hardware */ |
| 271 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 269 | MDRV_SCREEN_ADD("main", RASTER) | |
| 270 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 271 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 272 | 272 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 273 | 273 | MDRV_SCREEN_SIZE(32 * 8, 32 * 8) |
| 274 | 274 | MDRV_SCREEN_VISIBLE_AREA(1 * 8, 31 * 8 - 1, 0 * 8, 32 * 8 - 1) |
| r1711 | r1712 | |
|---|---|---|
| 814 | 814 | MDRV_NVRAM_HANDLER(atarigen) |
| 815 | 815 | |
| 816 | 816 | /* video hardware */ |
| 817 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 817 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 818 | 818 | MDRV_GFXDECODE(atarigt) |
| 819 | 819 | MDRV_PALETTE_LENGTH(32768) |
| 820 | 820 | |
| 821 | MDRV_SCREEN_ADD("main", | |
| 821 | MDRV_SCREEN_ADD("main", RASTER) | |
| 822 | 822 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 823 | 823 | /* note: these parameters are from published specs, not derived */ |
| 824 | 824 | /* the board uses a pair of GALs to determine H and V parameters */ |
| r1711 | r1712 | |
|---|---|---|
| 356 | 356 | MDRV_CPU_IO_MAP(cm_io_map, 0) |
| 357 | 357 | MDRV_CPU_VBLANK_INT(irq0_line_hold, 1) |
| 358 | 358 | |
| 359 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 360 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 361 | ||
| 362 | 359 | //MDRV_NVRAM_HANDLER(cmv801) |
| 363 | 360 | |
| 364 | 361 | // video hardware |
| 365 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 362 | ||
| 363 | MDRV_SCREEN_ADD("main", RASTER) | |
| 364 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 365 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 366 | 366 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 367 | 367 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 368 | 368 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 502 | 502 | MDRV_CPU_ADD_TAG("main", M68000, 22000000 /2) |
| 503 | 503 | MDRV_CPU_PROGRAM_MAP(rbmk_mem,0) |
| 504 | 504 | MDRV_CPU_VBLANK_INT(irq1_line_hold,1) |
| 505 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 506 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 507 | 505 | |
| 508 | 506 | MDRV_GFXDECODE(rbmk) |
| 509 | 507 | |
| 510 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 508 | ||
| 509 | MDRV_SCREEN_ADD("main", RASTER) | |
| 510 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 511 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 511 | 512 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 512 | 513 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 513 | 514 | MDRV_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 0*8, 32*8-1) |
| 515 | ||
| 514 | 516 | MDRV_PALETTE_LENGTH(0x800) |
| 515 | 517 | |
| 516 | 518 | MDRV_VIDEO_START(rbmk) |
| r1711 | r1712 | |
|---|---|---|
| 429 | 429 | MDRV_CPU_IO_MAP(soundport,0) |
| 430 | 430 | MDRV_CPU_VBLANK_INT(irq0_line_hold,128) |
| 431 | 431 | |
| 432 | /* video hardware */ | |
| 433 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) | |
| 434 | ||
| 435 | MDRV_SCREEN_ADD("main", RASTER) | |
| 432 | 436 | MDRV_SCREEN_REFRESH_RATE(57) |
| 433 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 434 | ||
| 435 | /* video hardware */ | |
| 436 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_BUFFERS_SPRITERAM) | |
| 437 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 437 | 438 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 438 | 439 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 439 | 440 | MDRV_SCREEN_VISIBLE_AREA(12*8, (64-12)*8-1, 1*8, 31*8-1 ) |
| r1711 | r1712 | |
|---|---|---|
| 211 | 211 | MDRV_MACHINE_START(tourtabl) |
| 212 | 212 | |
| 213 | 213 | /* video hardware */ |
| 214 | MDRV_ | |
| 214 | MDRV_SC | |
| 215 | 215 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 216 | MDRV_SCREEN_ADD("main",0) | |
| 217 | 216 | MDRV_SCREEN_RAW_PARAMS( MASTER_CLOCK, 228, 34, 34 + 160, 262, 46, 46 + 200 ) |
| 217 | ||
| 218 | 218 | MDRV_PALETTE_LENGTH(TIA_PALETTE_LENGTH) |
| 219 | 219 | MDRV_PALETTE_INIT(tia_NTSC) |
| 220 | 220 |
| r1711 | r1712 | |
|---|---|---|
| 158 | 158 | MACHINE_RESET( genesis ) |
| 159 | 159 | { |
| 160 | 160 | /* C2 doesn't have a Z80, so we can't just assume */ |
| 161 | if (machine-> | |
| 161 | if (machine->config->cpu[1].type == CPU_Z80) | |
| 162 | 162 | { |
| 163 | 163 | /* the following ensures that the Z80 begins without running away from 0 */ |
| 164 | 164 | /* 0x76 is just a forced 'halt' as soon as the CPU is initially run */ |
| r1711 | r1712 | |
| 788 | 788 | MDRV_CPU_PROGRAM_MAP(genesis_z80_readmem, genesis_z80_writemem) |
| 789 | 789 | MDRV_CPU_VBLANK_INT(irq0_line_hold, 1) /* from vdp at scanline 0xe0 */ |
| 790 | 790 | |
| 791 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 792 | ||
| 793 | 791 | MDRV_INTERLEAVE(100) |
| 794 | 792 | |
| 795 | 793 | MDRV_MACHINE_START(genesis) |
| 796 | 794 | MDRV_MACHINE_RESET(genesis) |
| 797 | 795 | |
| 798 | 796 | /* video hardware */ |
| 799 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS) | |
| 797 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS | VIDEO_HAS_HIGHLIGHTS) | |
| 798 | ||
| 799 | MDRV_SCREEN_ADD("main", RASTER) | |
| 800 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 800 | 801 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 801 | 802 | MDRV_SCREEN_SIZE(342,262) |
| 802 | 803 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 223) |
| 804 | ||
| 803 | 805 | MDRV_PALETTE_LENGTH(2048) |
| 804 | 806 | |
| 805 | 807 | MDRV_VIDEO_START(genesis) |
| r1711 | r1712 | |
|---|---|---|
| 140 | 140 | PORT_START_TAG("IN0") \ |
| 141 | 141 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL\ |
| 142 | 142 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably space for button 2 */\ |
| 143 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_ | |
| 143 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 )\ | |
| 144 | 144 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 )\ |
| 145 | 145 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY\ |
| 146 | 146 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY\ |
| r1711 | r1712 | |
| 204 | 204 | |
| 205 | 205 | AMIDAR_IN1 |
| 206 | 206 | |
| 207 | ||
| 208 | 207 | PORT_START_TAG("IN2") |
| 209 | 208 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL |
| 210 | 209 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) |
| r1711 | r1712 | |
| 212 | 211 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 213 | 212 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Bonus_Life ) ) |
| 214 | 213 | PORT_DIPSETTING( 0x00, "30000 50000" ) |
| 215 | PORT_DIPSETTING( 0x04, " | |
| 214 | PORT_DIPSETTING( 0x04, "Every 50000" ) | |
| 216 | 215 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) ) |
| 217 | 216 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 218 | 217 | PORT_DIPSETTING( 0x08, DEF_STR( Cocktail ) ) |
| r1711 | r1712 | |
| 230 | 229 | INPUT_PORTS_END |
| 231 | 230 | |
| 232 | 231 | /* absolutely identical to amidar, the only difference is the BONUS dip switch */ |
| 233 | /* Cannot find a port 'replace' macro, which would be all that's needed here */ | |
| 234 | /* So instead, I'll use the old definition system */ | |
| 235 | 232 | static INPUT_PORTS_START( amidaru ) |
| 236 | ||
| 233 | PO | |
| 237 | 234 | |
| 238 | AMIDAR_IN1 | |
| 239 | ||
| 240 | PORT_START_TAG("IN2") | |
| 241 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL | |
| 242 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 243 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 244 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 235 | PORT_MODIFY("IN2") | |
| 245 | 236 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Bonus_Life ) ) |
| 246 | 237 | PORT_DIPSETTING( 0x00, "30000 70000" ) |
| 247 | 238 | PORT_DIPSETTING( 0x04, "50000 80000" ) |
| 248 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) ) | |
| 249 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 250 | PORT_DIPSETTING( 0x08, DEF_STR( Cocktail ) ) | |
| 251 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY | |
| 252 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) | |
| 253 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 254 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 255 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY | |
| 256 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) | |
| 257 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 258 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 259 | ||
| 260 | AMIDAR_DSW | |
| 261 | ||
| 262 | 239 | INPUT_PORTS_END |
| 263 | 240 | |
| 264 | 241 | static INPUT_PORTS_START( amidaro ) |
| 265 | ||
| 242 | PO | |
| 266 | 243 | |
| 267 | PORT_ | |
| 244 | PORT_MODIFY | |
| 268 | 245 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Lives ) ) |
| 269 | 246 | PORT_DIPSETTING( 0x03, "1" ) |
| 270 | 247 | PORT_DIPSETTING( 0x02, "2" ) |
| 271 | 248 | PORT_DIPSETTING( 0x01, "3" ) |
| 272 | 249 | PORT_DIPSETTING( 0x00, "4" ) |
| 273 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably space for player 2 button 2 */ | |
| 274 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 275 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL | |
| 276 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL | |
| 277 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) | |
| 278 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 279 | 250 | |
| 280 | PORT_START_TAG("IN2") | |
| 281 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL | |
| 251 | PORT_MODIFY("IN2") | |
| 282 | 252 | PORT_DIPNAME( 0x02, 0x00, "Level Progression" ) |
| 283 | 253 | PORT_DIPSETTING( 0x00, "Slow" ) |
| 284 | 254 | PORT_DIPSETTING( 0x02, "Fast" ) |
| 285 | 255 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Bonus_Life ) ) |
| 286 | 256 | PORT_DIPSETTING( 0x00, "30000 70000" ) |
| 287 | 257 | PORT_DIPSETTING( 0x04, "50000 80000" ) |
| 288 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) ) | |
| 289 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 290 | PORT_DIPSETTING( 0x08, DEF_STR( Cocktail ) ) | |
| 291 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY | |
| 292 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) | |
| 293 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 294 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 295 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY | |
| 296 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) | |
| 297 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 298 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 299 | ||
| 300 | AMIDAR_DSW | |
| 301 | 258 | INPUT_PORTS_END |
| 302 | 259 | |
| 303 | 260 | /* similar to Amidar, dip switches are different and port 3, which in Amidar */ |
| r1711 | r1712 | |
| 306 | 263 | PORT_START_TAG("IN0") |
| 307 | 264 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL |
| 308 | 265 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably space for button 2 */ |
| 309 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_ | |
| 266 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 310 | 267 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 311 | 268 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 312 | 269 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r1711 | r1712 | |
| 349 | 306 | /* same as Turtles, but dip switches are different. */ |
| 350 | 307 | static INPUT_PORTS_START( turpin ) |
| 351 | 308 | PORT_START_TAG("IN0") |
| 352 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL | |
| 353 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably space for button 2 */ | |
| 354 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN3 ) | |
| 355 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 356 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY | |
| 357 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY | |
| 358 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 359 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 309 | PORT_INCLUDE( turtles ) | |
| 360 | 310 | |
| 361 | PORT_ | |
| 311 | PORT_MODIFY | |
| 362 | 312 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) |
| 363 | 313 | PORT_DIPSETTING( 0x00, "3" ) |
| 364 | 314 | PORT_DIPSETTING( 0x01, "5" ) |
| 365 | 315 | PORT_DIPSETTING( 0x02, "7" ) |
| 366 | 316 | PORT_DIPSETTING( 0x03, "126 (Cheat)") |
| 367 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably space for player 2 button 2 */ | |
| 368 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 369 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL | |
| 370 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL | |
| 371 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) | |
| 372 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 373 | 317 | |
| 374 | PORT_START_TAG("IN2") | |
| 375 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL | |
| 318 | PORT_MODIFY("IN2") | |
| 376 | 319 | PORT_DIPNAME( 0x06, 0x00, DEF_STR( Coinage ) ) |
| 377 | 320 | PORT_DIPSETTING( 0x06, DEF_STR( 4C_1C ) ) |
| 378 | 321 | PORT_DIPSETTING( 0x02, DEF_STR( 2C_1C ) ) |
| 379 | 322 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) |
| 380 | 323 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_2C ) ) |
| 381 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) ) | |
| 382 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 383 | PORT_DIPSETTING( 0x08, DEF_STR( Cocktail ) ) | |
| 384 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY | |
| 385 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) | |
| 386 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 387 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 388 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY | |
| 389 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) | |
| 390 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 391 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 392 | 324 | INPUT_PORTS_END |
| 393 | 325 | |
| 394 | 326 | |
| r1711 | r1712 | |
| 399 | 331 | MDRV_CPU_ADD_TAG("main", Z80, 18432000/6) /* 3.072 MHz */ |
| 400 | 332 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 401 | 333 | |
| 402 | MDRV_SCREEN_REFRESH_RATE(16000.0/132/2) | |
| 403 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 404 | ||
| 405 | 334 | MDRV_CPU_ADD(Z80,14318000/8) |
| 406 | 335 | /* audio CPU */ /* 1.78975 MHz */ |
| 407 | 336 | MDRV_CPU_PROGRAM_MAP(amidar_sound_readmem,amidar_sound_writemem) |
| r1711 | r1712 | |
| 410 | 339 | MDRV_MACHINE_RESET(scramble) |
| 411 | 340 | |
| 412 | 341 | /* video hardware */ |
| 413 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 342 | MDRV_SCREEN_ADD("main", RASTER) | |
| 343 | MDRV_SCREEN_REFRESH_RATE(16000.0/132/2) | |
| 344 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 414 | 345 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 415 | 346 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 416 | 347 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 652 | 652 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 653 | 653 | |
| 654 | 654 | /* video hardware */ |
| 655 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 656 | 655 | MDRV_GFXDECODE(thepit) |
| 657 | 656 | MDRV_PALETTE_LENGTH(32+8) |
| 658 | 657 | |
| 659 | MDRV_SCREEN_ADD("main", | |
| 658 | MDRV_SCREEN_ADD("main", RASTER) | |
| 660 | 659 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 661 | 660 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART) |
| 662 | 661 |
| r1711 | r1712 | |
|---|---|---|
| 271 | 271 | |
| 272 | 272 | static VIDEO_UPDATE( trvmadns ) |
| 273 | 273 | { |
| 274 | fillbitmap(bitmap, | |
| 274 | fillbitmap(bitmap, | |
| 275 | 275 | |
| 276 | 276 | tilemap_draw(bitmap,cliprect,bg_tilemap,0,0); |
| 277 | 277 | |
| r1711 | r1712 | |
| 284 | 284 | MDRV_CPU_IO_MAP(io_map,0) |
| 285 | 285 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,1) |
| 286 | 286 | |
| 287 | /* video hardware */ | |
| 288 | MDRV_SCREEN_ADD("main", RASTER) | |
| 287 | 289 | MDRV_SCREEN_REFRESH_RATE(60) |
| 288 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 289 | ||
| 290 | /* video hardware */ | |
| 291 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 290 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 292 | 291 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 293 | 292 | MDRV_SCREEN_SIZE(256, 256) |
| 294 | 293 | MDRV_SCREEN_VISIBLE_AREA(0*8, 31*8-1, 0*8, 30*8-1) |
| 294 | ||
| 295 | 295 | MDRV_GFXDECODE(trvmadns) |
| 296 | 296 | MDRV_PALETTE_LENGTH(16) |
| 297 | 297 |
| r1711 | r1712 | |
|---|---|---|
| 467 | 467 | MDRV_WATCHDOG_VBLANK_INIT(8) |
| 468 | 468 | |
| 469 | 469 | /* video hardware */ |
| 470 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 471 | 470 | MDRV_GFXDECODE(cloud9) |
| 472 | 471 | MDRV_PALETTE_LENGTH(64) |
| 473 | 472 | |
| 474 | MDRV_SCREEN_ADD("main", | |
| 473 | MDRV_SCREEN_ADD("main", RASTER) | |
| 475 | 474 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 476 | 475 | MDRV_SCREEN_REFRESH_RATE((float)PIXEL_CLOCK / (float)VTOTAL / (float)HTOTAL) |
| 477 | 476 | MDRV_SCREEN_SIZE(HTOTAL, VTOTAL) |
| r1711 | r1712 | |
|---|---|---|
| 509 | 509 | MDRV_CPU_ADD(Z80, MASTER_CLOCK/4) |
| 510 | 510 | MDRV_CPU_PROGRAM_MAP(readmem_sound,writemem_sound) |
| 511 | 511 | |
| 512 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 513 | ||
| 514 | 512 | MDRV_MACHINE_RESET(rpunch) |
| 515 | 513 | |
| 516 | 514 | /* video hardware */ |
| 517 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 515 | MDRV_SCREEN_ADD("main", RASTER) | |
| 516 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 518 | 517 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 519 | 518 | MDRV_SCREEN_SIZE(304, 224) |
| 520 | 519 | MDRV_SCREEN_VISIBLE_AREA(8, 303-8, 0, 223-8) |
| 520 | ||
| 521 | 521 | MDRV_GFXDECODE(rpunch) |
| 522 | 522 | MDRV_PALETTE_LENGTH(1024) |
| 523 | 523 |
| r1711 | r1712 | |
|---|---|---|
| 484 | 484 | MDRV_CPU_ADD(M68705,2500000) |
| 485 | 485 | MDRV_CPU_PROGRAM_MAP(mcu_readmem,mcu_writemem) |
| 486 | 486 | |
| 487 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 488 | ||
| 489 | 487 | MDRV_MACHINE_RESET(changela) |
| 490 | 488 | |
| 491 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 489 | ||
| 490 | MDRV_SCREEN_ADD("main", RASTER) | |
| 491 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 492 | 492 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 493 | 493 | MDRV_SCREEN_SIZE(32*8, 262) /* vert size is a guess */ |
| 494 | 494 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 4*8, 32*8-1) |
| 495 | ||
| 495 | 496 | MDRV_PALETTE_LENGTH(0x40) |
| 496 | 497 | |
| 497 | 498 | MDRV_VIDEO_START(changela) |
| r1711 | r1712 | |
|---|---|---|
| 373 | 373 | /* audio CPU */ |
| 374 | 374 | MDRV_CPU_PROGRAM_MAP(crimfght_readmem_sound,crimfght_writemem_sound) |
| 375 | 375 | |
| 376 | MDRV_SCREEN_REFRESH_RATE(54) /* adjusted - compared with PCB speed */ | |
| 377 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 378 | ||
| 379 | 376 | MDRV_MACHINE_RESET(crimfght) |
| 380 | 377 | |
| 381 | 378 | /* video hardware */ |
| 382 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS) | |
| 379 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 380 | ||
| 381 | MDRV_SCREEN_ADD("main", RASTER) | |
| 382 | MDRV_SCREEN_REFRESH_RATE(54) /* adjusted - compared with PCB speed */ | |
| 383 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 383 | 384 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 384 | 385 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 385 | 386 | MDRV_SCREEN_VISIBLE_AREA(13*8, (64-13)*8-1, 2*8, 30*8-1 ) |
| 387 | ||
| 386 | 388 | MDRV_PALETTE_LENGTH(512) |
| 387 | 389 | |
| 388 | 390 | MDRV_VIDEO_START(crimfght) |
| r1711 | r1712 | |
|---|---|---|
| 1078 | 1078 | lev 6 : 0x78 : 0000 0204 - |
| 1079 | 1079 | lev 7 : 0x7c : 0000 3106 - unused? |
| 1080 | 1080 | */ |
| 1081 | ||
| 1082 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1083 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1084 | 1081 | MDRV_NVRAM_HANDLER(93C46) |
| 1085 | 1082 | |
| 1086 | 1083 | MDRV_GFXDECODE(rabbit) |
| 1087 | 1084 | |
| 1088 | 1085 | |
| 1089 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1086 | ||
| 1087 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1088 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1089 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1090 | 1090 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1091 | 1091 | MDRV_SCREEN_SIZE(64*16, 64*16) |
| 1092 | 1092 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 28*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 186 | 186 | MDRV_CPU_VBLANK_INT(irq0_line_hold,2) |
| 187 | 187 | |
| 188 | 188 | /* video hardware */ |
| 189 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 190 | 189 | MDRV_VIDEO_UPDATE(sstrangr) |
| 191 | 190 | |
| 192 | MDRV_SCREEN_ADD("main", | |
| 191 | MDRV_SCREEN_ADD("main", RASTER) | |
| 193 | 192 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 194 | 193 | MDRV_SCREEN_SIZE(32*8, 262) /* vert size is a guess, taken from mw8080bw */ |
| 195 | 194 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 4*8, 32*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 857 | 857 | MDRV_CPU_ADD(Z80,4000000) /* sound CPU, also required for test mode */ |
| 858 | 858 | MDRV_CPU_PROGRAM_MAP(bonzeadv_z80_readmem,bonzeadv_z80_writemem) |
| 859 | 859 | |
| 860 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 861 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 862 | 860 | MDRV_INTERLEAVE(10) |
| 863 | 861 | |
| 864 | 862 | /* video hardware */ |
| 865 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 863 | MDRV_SCREEN_ADD("main", RASTER) | |
| 864 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 865 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 866 | 866 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 867 | 867 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 868 | 868 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 3*8, 31*8-1) |
| r1711 | r1712 | |
| 893 | 893 | MDRV_CPU_ADD(Z80, XTAL_16MHz/4) /* verified on pcb */ |
| 894 | 894 | MDRV_CPU_PROGRAM_MAP(z80_readmem,z80_writemem) |
| 895 | 895 | |
| 896 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 897 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 898 | 896 | MDRV_INTERLEAVE(10) |
| 899 | 897 | |
| 900 | 898 | /* video hardware */ |
| 901 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 899 | MDRV_SCREEN_ADD("main", RASTER) | |
| 900 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 901 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 902 | 902 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 903 | 903 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 904 | 904 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 32*8-1) |
| r1711 | r1712 | |
| 932 | 932 | MDRV_CPU_ADD(Z80, XTAL_8MHz/2) /* verified on pcb */ |
| 933 | 933 | MDRV_CPU_PROGRAM_MAP(z80_readmem,cadash_z80_writemem) |
| 934 | 934 | |
| 935 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 936 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 937 | 935 | MDRV_INTERLEAVE(10) |
| 938 | 936 | |
| 939 | 937 | /* video hardware */ |
| 940 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 938 | MDRV_SCREEN_ADD("main", RASTER) | |
| 939 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 940 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 941 | 941 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 942 | 942 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 943 | 943 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 32*8-1) |
| r1711 | r1712 | |
| 967 | 967 | MDRV_CPU_ADD(Z80, 4000000) /* 4 MHz ??? */ |
| 968 | 968 | MDRV_CPU_PROGRAM_MAP(z80_readmem,z80_writemem) |
| 969 | 969 | |
| 970 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 971 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 972 | 970 | MDRV_INTERLEAVE(10) |
| 973 | 971 | |
| 974 | 972 | /* video hardware */ |
| 975 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 973 | MDRV_SCREEN_ADD("main", RASTER) | |
| 974 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 975 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 976 | 976 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 977 | 977 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 978 | 978 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 32*8-1) |
| r1711 | r1712 | |
| 1006 | 1006 | MDRV_CPU_ADD(Z80, 4000000) /* 4 MHz ??? */ |
| 1007 | 1007 | MDRV_CPU_PROGRAM_MAP(z80_readmem,cadash_z80_writemem) |
| 1008 | 1008 | |
| 1009 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1010 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1011 | 1009 | MDRV_INTERLEAVE(10) |
| 1012 | 1010 | |
| 1013 | 1011 | /* video hardware */ |
| 1014 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1012 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1013 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1014 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1015 | 1015 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1016 | 1016 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 1017 | 1017 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 32*8-1) |
| r1711 | r1712 | |
| 1041 | 1041 | MDRV_CPU_ADD(Z80, 4000000) /* 4 MHz ??? */ |
| 1042 | 1042 | MDRV_CPU_PROGRAM_MAP(z80_readmem,cadash_z80_writemem) |
| 1043 | 1043 | |
| 1044 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1045 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 1046 | 1044 | MDRV_INTERLEAVE(10) |
| 1047 | 1045 | |
| 1048 | 1046 | /* video hardware */ |
| 1049 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1047 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1048 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1049 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1050 | 1050 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1051 | 1051 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 1052 | 1052 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 32*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 323 | 323 | MDRV_CPU_PROGRAM_MAP(triplhnt_readmem, triplhnt_writemem) |
| 324 | 324 | MDRV_CPU_VBLANK_INT(irq0_line_hold, 1) |
| 325 | 325 | |
| 326 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 327 | ||
| 328 | 326 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 329 | 327 | |
| 330 | 328 | /* video hardware */ |
| 331 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 329 | MDRV_SCREEN_ADD("main", RASTER) | |
| 330 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 332 | 331 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 333 | 332 | MDRV_SCREEN_SIZE(256, 262) |
| 334 | 333 | MDRV_SCREEN_VISIBLE_AREA(0, 255, 0, 239) |
| 334 | ||
| 335 | 335 | MDRV_GFXDECODE(triplhnt) |
| 336 | 336 | MDRV_PALETTE_LENGTH(8) |
| 337 | 337 | MDRV_PALETTE_INIT(triplhnt) |
| r1711 | r1712 | |
|---|---|---|
| 218 | 218 | MDRV_CPU_PROGRAM_MAP(main_map,0) |
| 219 | 219 | MDRV_CPU_VBLANK_INT(pooyan_interrupt,1) |
| 220 | 220 | |
| 221 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 222 | ||
| 223 | 221 | MDRV_MACHINE_START(pooyan) |
| 224 | 222 | |
| 225 | 223 | /* video hardware */ |
| 226 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 224 | MDRV_SCREEN_ADD("main", RASTER) | |
| 225 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 227 | 226 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 228 | 227 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 229 | 228 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 229 | ||
| 230 | 230 | MDRV_GFXDECODE(pooyan) |
| 231 | 231 | MDRV_PALETTE_LENGTH(16*16+16*16) |
| 232 | 232 |
| r1711 | r1712 | |
|---|---|---|
| 182 | 182 | { |
| 183 | 183 | |
| 184 | 184 | fillbitmap(priority_bitmap,0,NULL); |
| 185 | fillbitmap(bitmap, | |
| 185 | fillbitmap(bitmap, | |
| 186 | 186 | |
| 187 | 187 | if (backfire_left_priority[0] == 0) |
| 188 | 188 | { |
| r1711 | r1712 | |
| 204 | 204 | else if (screen==1) |
| 205 | 205 | { |
| 206 | 206 | fillbitmap(priority_bitmap,0,NULL); |
| 207 | fillbitmap(bitmap, | |
| 207 | fillbitmap(bitmap, | |
| 208 | 208 | |
| 209 | 209 | if (backfire_right_priority[0] == 0) |
| 210 | 210 | { |
| r1711 | r1712 | |
| 491 | 491 | MDRV_CPU_PROGRAM_MAP(backfire_map,0) |
| 492 | 492 | MDRV_CPU_VBLANK_INT(deco32_vbl_interrupt,1) |
| 493 | 493 | |
| 494 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 495 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529)) | |
| 496 | 494 | MDRV_NVRAM_HANDLER(93C46) |
| 497 | 495 | |
| 498 | 496 | /* video hardware */ |
| 499 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 500 | 497 | MDRV_PALETTE_LENGTH(2048) |
| 501 | 498 | MDRV_GFXDECODE(backfire) |
| 502 | 499 | MDRV_DEFAULT_LAYOUT(layout_dualhsxs) |
| 503 | 500 | |
| 504 | MDRV_SCREEN_ADD("left", | |
| 501 | MDRV_SCREEN_ADD("left", RASTER) | |
| 505 | 502 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 506 | 503 | MDRV_SCREEN_REFRESH_RATE(60) |
| 507 | MDRV_SCREEN_VBLANK_TIME( | |
| 504 | MDRV_SCREEN_VBLANK_TIME( | |
| 508 | 505 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 509 | 506 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 510 | 507 | |
| 511 | MDRV_SCREEN_ADD("right", | |
| 508 | MDRV_SCREEN_ADD("right", RASTER) | |
| 512 | 509 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 513 | 510 | MDRV_SCREEN_REFRESH_RATE(60) |
| 514 | MDRV_SCREEN_VBLANK_TIME( | |
| 511 | MDRV_SCREEN_VBLANK_TIME( | |
| 515 | 512 | MDRV_SCREEN_SIZE(40*8, 32*8) |
| 516 | 513 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 517 | 514 |
| r1711 | r1712 | |
|---|---|---|
| 253 | 253 | /* audio CPU */ |
| 254 | 254 | MDRV_CPU_PROGRAM_MAP(readmem_sound,writemem_sound) |
| 255 | 255 | /* NMIs are generated by the 053260 */ |
| 256 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 257 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 258 | 256 | MDRV_MACHINE_RESET(rollerg) |
| 259 | 257 | |
| 260 | 258 | /* video hardware */ |
| 261 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS) | |
| 259 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 260 | ||
| 261 | MDRV_SCREEN_ADD("main", RASTER) | |
| 262 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 263 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 262 | 264 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 263 | 265 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 264 | 266 | MDRV_SCREEN_VISIBLE_AREA(14*8, (64-14)*8-1, 2*8, 30*8-1 ) |
| 267 | ||
| 265 | 268 | MDRV_PALETTE_LENGTH(1024) |
| 266 | 269 | |
| 267 | 270 | MDRV_VIDEO_START(rollerg) |
| r1711 | r1712 | |
|---|---|---|
| 301 | 301 | /* audio CPU */ /* 1.5 MHz */ |
| 302 | 302 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 303 | 303 | /* NMIs are triggered by the main cpu */ |
| 304 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 305 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION /* VERIFY: May be 55 or 56 */) | |
| 306 | 304 | |
| 307 | 305 | /* video hardware */ |
| 308 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 306 | MDRV_SCREEN_ADD("main", RASTER) | |
| 307 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 308 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */ /* VERIFY: May be 55 or 56 */) | |
| 309 | 309 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 310 | 310 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 311 | 311 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 312 | ||
| 312 | 313 | MDRV_GFXDECODE(sidepckt) |
| 313 | 314 | MDRV_PALETTE_LENGTH(256) |
| 314 | 315 | |
| r1711 | r1712 | |
| 339 | 340 | /* audio CPU */ /* 1.5 MHz */ |
| 340 | 341 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 341 | 342 | /* NMIs are triggered by the main cpu */ |
| 342 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 343 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION /* VERIFY: May be 55 or 56 */) | |
| 344 | 343 | |
| 345 | 344 | /* video hardware */ |
| 346 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 345 | MDRV_SCREEN_ADD("main", RASTER) | |
| 346 | MDRV_SCREEN_REFRESH_RATE(58) | |
| 347 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */ /* VERIFY: May be 55 or 56 */) | |
| 347 | 348 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 348 | 349 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 349 | 350 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 351 | ||
| 350 | 352 | MDRV_GFXDECODE(sidepckt) |
| 351 | 353 | MDRV_PALETTE_LENGTH(256) |
| 352 | 354 |
| r1711 | r1712 | |
|---|---|---|
| 389 | 389 | /* audio CPU */ |
| 390 | 390 | MDRV_CPU_PROGRAM_MAP(sound_map,0) |
| 391 | 391 | |
| 392 | MDRV_SCREEN_REFRESH_RATE(40) | |
| 393 | MDRV_SCREEN_VBLANK_TIME(0) | |
| 394 | 392 | MDRV_MACHINE_RESET(starwars) |
| 395 | 393 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 396 | 394 | |
| 397 | 395 | /* video hardware */ |
| 398 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_VECTOR ) | |
| 399 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) | |
| 396 | MDRV_SCREEN_ADD("main", VECTOR) | |
| 397 | MDRV_SCREEN_REFRESH_RATE(40) | |
| 400 | 398 | MDRV_SCREEN_SIZE(400, 300) |
| 401 | 399 | MDRV_SCREEN_VISIBLE_AREA(0, 250, 0, 280) |
| 400 | ||
| 402 | 401 | MDRV_PALETTE_LENGTH(32768) |
| 403 | 402 | |
| 404 | 403 | MDRV_VIDEO_START(avg_starwars) |
| r1711 | r1712 | |
|---|---|---|
| 16 | 16 | |
| 17 | 17 | extern UINT8* wolfpack_alpha_num_ram; |
| 18 | 18 | |
| 19 | extern VIDEO_UPDATE( wolfpack ); | |
| 20 | extern VIDEO_START( wolfpack ); | |
| 21 | extern VIDEO_EOF( wolfpack ); | |
| 19 | PALETTE_INIT( wolfpack ); | |
| 20 | VIDEO_UPDATE( wolfpack ); | |
| 21 | VIDEO_START( wolfpack ); | |
| 22 | VIDEO_EOF( wolfpack ); | |
| 22 | 23 | |
| 23 | extern WRITE8_HANDLER( wolfpack_video_invert_w ); | |
| 24 | extern WRITE8_HANDLER( wolfpack_ship_reflect_w ); | |
| 25 | extern WRITE8_HANDLER( wolfpack_pt_pos_select_w ); | |
| 26 | extern WRITE8_HANDLER( wolfpack_pt_horz_w ); | |
| 27 | extern WRITE8_HANDLER( wolfpack_pt_pic_w ); | |
| 28 | extern WRITE8_HANDLER( wolfpack_ship_h_w ); | |
| 29 | extern WRITE8_HANDLER( wolfpack_torpedo_pic_w ); | |
| 30 | extern WRITE8_HANDLER( wolfpack_ship_size_w ); | |
| 31 | extern WRITE8_HANDLER( wolfpack_ship_h_precess_w ); | |
| 32 | extern WRITE8_HANDLER( wolfpack_ship_pic_w ); | |
| 33 | extern WRITE8_HANDLER( wolfpack_torpedo_h_w ); | |
| 34 | extern WRITE8_HANDLER( wolfpack_torpedo_v_w ); | |
| 24 | WRITE8_HANDLER( wolfpack_video_invert_w ); | |
| 25 | WRITE8_HANDLER( wolfpack_ship_reflect_w ); | |
| 26 | WRITE8_HANDLER( wolfpack_pt_pos_select_w ); | |
| 27 | WRITE8_HANDLER( wolfpack_pt_horz_w ); | |
| 28 | WRITE8_HANDLER( wolfpack_pt_pic_w ); | |
| 29 | WRITE8_HANDLER( wolfpack_ship_h_w ); | |
| 30 | WRITE8_HANDLER( wolfpack_torpedo_pic_w ); | |
| 31 | WRITE8_HANDLER( wolfpack_ship_size_w ); | |
| 32 | WRITE8_HANDLER( wolfpack_ship_h_precess_w ); | |
| 33 | WRITE8_HANDLER( wolfpack_ship_pic_w ); | |
| 34 | WRITE8_HANDLER( wolfpack_torpedo_h_w ); | |
| 35 | WRITE8_HANDLER( wolfpack_torpedo_v_w ); | |
| 35 | 36 | |
| 36 | 37 | |
| 37 | 38 | static TIMER_CALLBACK( periodic_callback ) |
| r1711 | r1712 | |
| 57 | 58 | } |
| 58 | 59 | |
| 59 | 60 | |
| 60 | static PALETTE_INIT( wolfpack ) | |
| 61 | { | |
| 62 | int i; | |
| 63 | ||
| 64 | palette_set_color(machine, 0, MAKE_RGB(0x00, 0x00, 0x00)); | |
| 65 | palette_set_color(machine, 1, MAKE_RGB(0xc1, 0xc1, 0xc1)); | |
| 66 | palette_set_color(machine, 2, MAKE_RGB(0x81, 0x81, 0x81)); | |
| 67 | palette_set_color(machine, 3, MAKE_RGB(0x48, 0x48, 0x48)); | |
| 68 | ||
| 69 | for (i = 0; i < 4; i++) | |
| 70 | { | |
| 71 | rgb_t color = palette_get_color(machine, i); | |
| 72 | ||
| 73 | palette_set_color_rgb(machine, 4 + i, | |
| 74 | RGB_RED(color) < 0xb8 ? RGB_RED(color) + 0x48 : 0xff, | |
| 75 | RGB_GREEN(color) < 0xb8 ? RGB_GREEN(color) + 0x48 : 0xff, | |
| 76 | RGB_BLUE(color) < 0xb8 ? RGB_BLUE(color) + 0x48 : 0xff); | |
| 77 | } | |
| 78 | ||
| 79 | colortable[0] = 0; | |
| 80 | colortable[1] = 1; | |
| 81 | colortable[2] = 1; | |
| 82 | colortable[3] = 0; | |
| 83 | colortable[4] = 0; | |
| 84 | colortable[5] = 2; | |
| 85 | colortable[6] = 0; | |
| 86 | colortable[7] = 3; | |
| 87 | } | |
| 88 | ||
| 89 | ||
| 90 | 61 | static READ8_HANDLER( wolfpack_input_r ) |
| 91 | 62 | { |
| 92 | 63 | UINT8 val = readinputport(0); |
| r1711 | r1712 | |
| 368 | 339 | MDRV_CPU_ADD(M6502, 12096000 / 16) |
| 369 | 340 | MDRV_CPU_PROGRAM_MAP(wolfpack_readmem, wolfpack_writemem) |
| 370 | 341 | |
| 371 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 372 | ||
| 373 | 342 | /* video hardware */ |
| 374 | 343 | MDRV_MACHINE_RESET(wolfpack) |
| 375 | 344 | |
| 376 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 345 | ||
| 346 | MDRV_SCREEN_ADD("main", RASTER) | |
| 347 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 377 | 348 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 378 | 349 | MDRV_SCREEN_SIZE(512, 262) |
| 379 | 350 | MDRV_SCREEN_VISIBLE_AREA(0, 511, 16, 239) |
| 351 | ||
| 380 | 352 | MDRV_GFXDECODE(wolfpack) |
| 381 | MDRV_PALETTE_LENGTH(8) | |
| 382 | MDRV_COLORTABLE_LENGTH(8) | |
| 353 | MDRV_PALETTE_LENGTH(12) | |
| 383 | 354 | MDRV_PALETTE_INIT(wolfpack) |
| 384 | 355 | MDRV_VIDEO_START(wolfpack) |
| 385 | 356 | MDRV_VIDEO_UPDATE(wolfpack) |
| r1711 | r1712 | |
|---|---|---|
| 289 | 289 | MDRV_CPU_PROGRAM_MAP(pirates_readmem,pirates_writemem) |
| 290 | 290 | MDRV_CPU_VBLANK_INT(irq1_line_hold,1) |
| 291 | 291 | |
| 292 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 293 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 294 | ||
| 295 | 292 | MDRV_NVRAM_HANDLER(pirates) |
| 296 | 293 | |
| 297 | 294 | MDRV_GFXDECODE(pirates) |
| 298 | 295 | |
| 299 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 296 | ||
| 297 | MDRV_SCREEN_ADD("main", RASTER) | |
| 298 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 299 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 300 | 300 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 301 | 301 | MDRV_SCREEN_SIZE(36*8, 32*8) |
| 302 | 302 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 2*8, 30*8-1) |
| 303 | ||
| 303 | 304 | MDRV_PALETTE_LENGTH(0x2000) |
| 304 | 305 | |
| 305 | 306 | MDRV_VIDEO_START(pirates) |
| r1711 | r1712 | |
|---|---|---|
| 252 | 252 | |
| 253 | 253 | |
| 254 | 254 | static GFXDECODE_START( tankbatt ) |
| 255 | GFXDECODE_ENTRY( REGION_GFX1, 0, charlayout, 0, 64 ) | |
| 256 | GFXDECODE_ENTRY( REGION_GFX1, 0, bulletlayout, 0, 64 ) | |
| 255 | GFXDECODE_ENTRY( REGION_GFX1, 0, charlayout, 0, 256 ) | |
| 256 | GFXDECODE_ENTRY( REGION_GFX1, 0, bulletlayout, 0, 256 ) | |
| 257 | 257 | GFXDECODE_END |
| 258 | 258 | |
| 259 | 259 | |
| r1711 | r1712 | |
| 283 | 283 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 284 | 284 | MDRV_CPU_VBLANK_INT(tankbatt_interrupt,1) |
| 285 | 285 | |
| 286 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 287 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 288 | ||
| 289 | 286 | /* video hardware */ |
| 290 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 287 | MDRV_SCREEN_ADD("main", RASTER) | |
| 288 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 289 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 291 | 290 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 292 | 291 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 293 | 292 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 293 | ||
| 294 | 294 | MDRV_GFXDECODE(tankbatt) |
| 295 | MDRV_PALETTE_LENGTH(65) | |
| 296 | MDRV_COLORTABLE_LENGTH(128) | |
| 295 | MDRV_PALETTE_LENGTH(256*2) | |
| 297 | 296 | |
| 298 | 297 | MDRV_PALETTE_INIT(tankbatt) |
| 299 | 298 | MDRV_VIDEO_START(tankbatt) |
| r1711 | r1712 | |
|---|---|---|
| 18 | 18 | { |
| 19 | 19 | int i; |
| 20 | 20 | |
| 21 | for ( i = 0; i < machine-> | |
| 21 | for ( i = 0; i < machine->config->total_colors; i++ ) | |
| 22 | 22 | { |
| 23 | 23 | int bit0,bit1,bit2,bit3,r,g,b; |
| 24 | 24 | |
| r1711 | r1712 | |
| 30 | 30 | r = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; |
| 31 | 31 | |
| 32 | 32 | // green component |
| 33 | bit0 = (color_prom[machine->drv->total_colors] >> 3) & 0x01; | |
| 34 | bit1 = (color_prom[machine->drv->total_colors] >> 2) & 0x01; | |
| 35 | bit2 = (color_prom[machine->drv->total_colors] >> 1) & 0x01; | |
| 36 | bit3 = (color_prom[machine->drv->total_colors] >> 0) & 0x01; | |
| 33 | bit0 = (color_prom[machine->config->total_colors] >> 3) & 0x01; | |
| 34 | bit1 = (color_prom[machine->config->total_colors] >> 2) & 0x01; | |
| 35 | bit2 = (color_prom[machine->config->total_colors] >> 1) & 0x01; | |
| 36 | bit3 = (color_prom[machine->config->total_colors] >> 0) & 0x01; | |
| 37 | 37 | g = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; |
| 38 | 38 | |
| 39 | 39 | // blue component |
| 40 | bit0 = (color_prom[2*machine->drv->total_colors] >> 3) & 0x01; | |
| 41 | bit1 = (color_prom[2*machine->drv->total_colors] >> 2) & 0x01; | |
| 42 | bit2 = (color_prom[2*machine->drv->total_colors] >> 1) & 0x01; | |
| 43 | bit3 = (color_prom[2*machine->drv->total_colors] >> 0) & 0x01; | |
| 40 | bit0 = (color_prom[2*machine->config->total_colors] >> 3) & 0x01; | |
| 41 | bit1 = (color_prom[2*machine->config->total_colors] >> 2) & 0x01; | |
| 42 | bit2 = (color_prom[2*machine->config->total_colors] >> 1) & 0x01; | |
| 43 | bit3 = (color_prom[2*machine->config->total_colors] >> 0) & 0x01; | |
| 44 | 44 | b = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; |
| 45 | 45 | |
| 46 | 46 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); |
| r1711 | r1712 | |
| 376 | 376 | MDRV_CPU_IO_MAP(cm_io_map, 0) |
| 377 | 377 | MDRV_CPU_VBLANK_INT(irq0_line_hold, 1) |
| 378 | 378 | |
| 379 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 380 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 381 | ||
| 382 | 379 | //MDRV_NVRAM_HANDLER(cmv801) |
| 383 | 380 | |
| 384 | 381 | // video hardware |
| 385 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 382 | ||
| 383 | MDRV_SCREEN_ADD("main", RASTER) | |
| 384 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 385 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 386 | 386 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 387 | 387 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 388 | 388 | MDRV_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 2*8, 30*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 287 | 287 | MDRV_CPU_PROGRAM_MAP(sub_map,0) |
| 288 | 288 | |
| 289 | 289 | /* video hardware */ |
| 290 | MDRV_ | |
| 290 | MDRV_SC | |
| 291 | 291 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 292 | 292 | MDRV_SCREEN_RAW_PARAMS(EXERION_PIXEL_CLOCK, EXERION_HTOTAL, EXERION_HBEND, EXERION_HBSTART, EXERION_VTOTAL, EXERION_VBEND, EXERION_VBSTART) |
| 293 | ||
| 293 | 294 | MDRV_GFXDECODE(exerion) |
| 294 | 295 | MDRV_PALETTE_LENGTH(256*3) |
| 295 | 296 |
| r1711 | r1712 | |
|---|---|---|
| 233 | 233 | MDRV_CPU_PROGRAM_MAP(wrally_readmem,wrally_writemem) |
| 234 | 234 | MDRV_CPU_VBLANK_INT(irq6_line_hold,1) |
| 235 | 235 | |
| 236 | /* video hardware */ | |
| 237 | MDRV_SCREEN_ADD("main", RASTER) | |
| 236 | 238 | MDRV_SCREEN_REFRESH_RATE(60) |
| 237 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 238 | ||
| 239 | /* video hardware */ | |
| 240 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 239 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 241 | 240 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 242 | 241 | MDRV_SCREEN_SIZE(64*16, 32*16) |
| 243 | 242 | MDRV_SCREEN_VISIBLE_AREA(0, 64*16-1, 0, 32*16-1) |
| 244 | 243 | // MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 16, 256-1) |
| 244 | ||
| 245 | 245 | MDRV_GFXDECODE(wrally) |
| 246 | 246 | MDRV_PALETTE_LENGTH(1024*8) |
| 247 | 247 |
| r1711 | r1712 | |
|---|---|---|
| 287 | 287 | MDRV_CPU_IO_MAP(readport,writeport) |
| 288 | 288 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 289 | 289 | |
| 290 | /* video hardware */ | |
| 291 | MDRV_SCREEN_ADD("main", RASTER) | |
| 290 | 292 | MDRV_SCREEN_REFRESH_RATE(60) |
| 291 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 292 | ||
| 293 | /* video hardware */ | |
| 294 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 293 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 295 | 294 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 296 | 295 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 297 | 296 | MDRV_SCREEN_VISIBLE_AREA(8*8, 48*8-1, 2*8, 30*8-1) |
| 297 | ||
| 298 | 298 | MDRV_GFXDECODE(mosaic) |
| 299 | 299 | MDRV_PALETTE_LENGTH(256) |
| 300 | 300 |
| r1711 | r1712 | |
|---|---|---|
| 204 | 204 | fd1094_machine_init(); |
| 205 | 205 | |
| 206 | 206 | /* if we are running with a real live 8751, we need to boost the interleave at startup */ |
| 207 | if (machine-> | |
| 207 | if (machine->config->cpu[2].type == CPU_I8751) | |
| 208 | 208 | timer_call_after_resynch(NULL, 0, boost_interleave); |
| 209 | 209 | } |
| 210 | 210 | |
| r1711 | r1712 | |
| 1265 | 1265 | MDRV_CPU_PROGRAM_MAP(sound_map,0) |
| 1266 | 1266 | MDRV_CPU_IO_MAP(sound_portmap,0) |
| 1267 | 1267 | |
| 1268 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1269 | ||
| 1270 | 1268 | MDRV_MACHINE_RESET(system18) |
| 1271 | 1269 | MDRV_NVRAM_HANDLER(system18) |
| 1272 | 1270 | |
| 1273 | 1271 | /* video hardware */ |
| 1274 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1272 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1273 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1275 | 1274 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1276 | 1275 | MDRV_SCREEN_SIZE(342,262) |
| 1277 | 1276 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 28*8-1) |
| 1277 | ||
| 1278 | 1278 | MDRV_GFXDECODE(segas18) |
| 1279 | 1279 | MDRV_PALETTE_LENGTH(2048*3+2048) |
| 1280 | 1280 |
| r1711 | r1712 | |
|---|---|---|
| 230 | 230 | 3, resistances_rg, weights_g, 0, 1000+1000, |
| 231 | 231 | 2, resistances_b, weights_b, 0, 1000+1000); |
| 232 | 232 | |
| 233 | for (i = 0;i < machine-> | |
| 233 | for (i = 0;i < machine->config->total_colors;i++) | |
| 234 | 234 | { |
| 235 | 235 | int bit0,bit1,bit2,r,g,b; |
| 236 | 236 | |
| r1711 | r1712 | |
| 312 | 312 | MDRV_CPU_IO_MAP(meijinsn_sound_io_map,0) |
| 313 | 313 | MDRV_CPU_VBLANK_INT(irq0_line_hold, 160) |
| 314 | 314 | |
| 315 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 316 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 317 | ||
| 318 | 315 | MDRV_MACHINE_RESET(meijinsn) |
| 319 | 316 | |
| 320 | 317 | /* video hardware */ |
| 321 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 318 | MDRV_SCREEN_ADD("main", RASTER) | |
| 319 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 320 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 322 | 321 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 323 | 322 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 324 | 323 | MDRV_SCREEN_VISIBLE_AREA(12, 243, 2*8, 30*8-1) |
| 324 | ||
| 325 | 325 | MDRV_PALETTE_LENGTH(32) |
| 326 | 326 | MDRV_PALETTE_INIT(meijinsn) |
| 327 | 327 |
| r1711 | r1712 | |
|---|---|---|
| 651 | 651 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 652 | 652 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 653 | 653 | |
| 654 | /* video hardware */ | |
| 655 | MDRV_SCREEN_ADD("main", RASTER) | |
| 654 | 656 | MDRV_SCREEN_REFRESH_RATE(60) |
| 655 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 656 | ||
| 657 | /* video hardware */ | |
| 658 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 657 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 659 | 658 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 660 | 659 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 661 | 660 | MDRV_SCREEN_VISIBLE_AREA(6*8, 58*8-1, 0, 32*8-1) |
| 661 | ||
| 662 | 662 | MDRV_GFXDECODE(ltcasino) |
| 663 | 663 | MDRV_PALETTE_LENGTH(0x100) |
| 664 | 664 |
| r1711 | r1712 | |
|---|---|---|
| 413 | 413 | MDRV_CPU_PROGRAM_MAP(crospang_sound_readmem,crospang_sound_writemem) |
| 414 | 414 | MDRV_CPU_IO_MAP(crospang_sound_readport,crospang_sound_writeport) |
| 415 | 415 | |
| 416 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 417 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 418 | ||
| 419 | 416 | /* video hardware */ |
| 420 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 417 | MDRV_SCREEN_ADD("main", RASTER) | |
| 418 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 419 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 421 | 420 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) |
| 422 | 421 | MDRV_SCREEN_SIZE(64*8, 64*8) |
| 423 | 422 | MDRV_SCREEN_VISIBLE_AREA(0, 40*8-1, 0, 30*8-1) |
| r1711 | r1712 | |
| 452 | 451 | MDRV_CPU_PROGRAM_MAP(crospang_sound_readmem,crospang_sound_writemem) |
| 453 | 452 | MDRV_CPU_IO_MAP(crospang_sound_readport,crospang_sound_writeport) |
| 454 | 453 | |
| 455 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 456 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 457 | ||
| 458 | 454 | /* video hardware */ |
| 459 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 455 | MDRV_SCREEN_ADD("main", RASTER) | |
| 456 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 457 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 460 | 458 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) |
| 461 | 459 | MDRV_SCREEN_SIZE(64*8, 64*8) |
| 462 | 460 | MDRV_SCREEN_VISIBLE_AREA(0, 40*8-1, 0, 30*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 3320 | 3320 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 3321 | 3321 | |
| 3322 | 3322 | /* video hardware */ |
| 3323 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 3324 | 3323 | MDRV_VIDEO_UPDATE(royalmah) |
| 3325 | 3324 | MDRV_PALETTE_LENGTH(16*2) |
| 3326 | 3325 | MDRV_PALETTE_INIT(royalmah) |
| 3327 | 3326 | |
| 3328 | MDRV_SCREEN_ADD("main", | |
| 3327 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3329 | 3328 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3330 | 3329 | MDRV_SCREEN_SIZE(256, 256) |
| 3331 | 3330 | MDRV_SCREEN_VISIBLE_AREA(0, 255, 0, 255) |
| 3332 | 3331 | MDRV_SCREEN_REFRESH_RATE(60) |
| 3333 | MDRV_SCREEN_VBLANK_TIME( | |
| 3332 | MDRV_SCREEN_VBLANK_TIME( | |
| 3334 | 3333 | |
| 3335 | 3334 | /* sound hardware */ |
| 3336 | 3335 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| r1711 | r1712 | |
| 3418 | 3417 | MDRV_CPU_IO_MAP(janptr96_iomap,0) |
| 3419 | 3418 | MDRV_CPU_VBLANK_INT(janptr96_interrupt,3) /* IM 2 needs a vector on the data bus */ |
| 3420 | 3419 | |
| 3420 | MDRV_SCREEN_MODIFY("main") | |
| 3421 | 3421 | MDRV_SCREEN_VISIBLE_AREA(0, 255, 9, 255-8) |
| 3422 | 3422 | MACHINE_DRIVER_END |
| 3423 | 3423 | |
| r1711 | r1712 | |
| 3429 | 3429 | MDRV_CPU_IO_MAP(mjifb_iomap,0) |
| 3430 | 3430 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 3431 | 3431 | |
| 3432 | MDRV_SCREEN_MODIFY("main") | |
| 3432 | 3433 | MDRV_SCREEN_VISIBLE_AREA(0, 255, 8, 255-8) |
| 3433 | 3434 | MACHINE_DRIVER_END |
| 3434 | 3435 | |
| r1711 | r1712 | |
| 3440 | 3441 | MDRV_CPU_IO_MAP(mjifb_iomap,0) |
| 3441 | 3442 | MDRV_CPU_VBLANK_INT(irq0_line_hold,1) |
| 3442 | 3443 | |
| 3444 | MDRV_SCREEN_MODIFY("main") | |
| 3443 | 3445 | MDRV_SCREEN_VISIBLE_AREA(0, 255, 8, 255-8) |
| 3444 | 3446 | MACHINE_DRIVER_END |
| 3445 | 3447 | |
| r1711 | r1712 | |
| 3460 | 3462 | MDRV_CPU_IO_MAP(mjtensin_iomap,0) |
| 3461 | 3463 | MDRV_CPU_VBLANK_INT( mjtensin_interrupt,2 ) |
| 3462 | 3464 | |
| 3465 | MDRV_SCREEN_MODIFY("main") | |
| 3463 | 3466 | MDRV_SCREEN_VISIBLE_AREA(0, 255, 8, 255-8) |
| 3464 | 3467 | MACHINE_DRIVER_END |
| 3465 | 3468 | |
| r1711 | r1712 | |
| 3470 | 3473 | MDRV_CPU_IO_MAP(cafetime_iomap,0) |
| 3471 | 3474 | MDRV_CPU_VBLANK_INT(mjtensin_interrupt,2) |
| 3472 | 3475 | |
| 3476 | MDRV_SCREEN_MODIFY("main") | |
| 3473 | 3477 | MDRV_SCREEN_VISIBLE_AREA(0, 255, 8, 255-8) |
| 3474 | 3478 | MACHINE_DRIVER_END |
| 3475 | 3479 |
| r1711 | r1712 | |
|---|---|---|
| 187 | 187 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 188 | 188 | MDRV_CPU_VBLANK_INT(subs_interrupt,4) |
| 189 | 189 | |
| 190 | MDRV_SCREEN_REFRESH_RATE(57) | |
| 191 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 192 | ||
| 193 | 190 | MDRV_MACHINE_RESET(subs) |
| 194 | 191 | |
| 195 | 192 | /* video hardware */ |
| 196 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 197 | 193 | MDRV_GFXDECODE(subs) |
| 198 | 194 | MDRV_PALETTE_LENGTH(4) |
| 199 | 195 | MDRV_DEFAULT_LAYOUT(layout_dualhsxs) |
| 200 | 196 | |
| 201 | MDRV_SCREEN_ADD("left", | |
| 197 | MDRV_SCREEN_ADD("left", RASTER) | |
| 202 | 198 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 203 | 199 | MDRV_SCREEN_REFRESH_RATE(57) |
| 204 | MDRV_SCREEN_VBLANK_TIME( | |
| 200 | MDRV_SCREEN_VBLANK_TIME( | |
| 205 | 201 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 206 | 202 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 28*8-1) |
| 207 | 203 | |
| 208 | MDRV_SCREEN_ADD("right", | |
| 204 | MDRV_SCREEN_ADD("right", RASTER) | |
| 209 | 205 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 210 | 206 | MDRV_SCREEN_REFRESH_RATE(57) |
| 211 | MDRV_SCREEN_VBLANK_TIME( | |
| 207 | MDRV_SCREEN_VBLANK_TIME( | |
| 212 | 208 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 213 | 209 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 28*8-1) |
| 214 | 210 |
| r1711 | r1712 | |
|---|---|---|
| 190 | 190 | MDRV_GFXDECODE(coolridr) |
| 191 | 191 | |
| 192 | 192 | |
| 193 | MDRV_SCREEN_ADD("main", RASTER) | |
| 193 | 194 | MDRV_SCREEN_REFRESH_RATE(60) |
| 194 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 195 | ||
| 196 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 195 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 197 | 196 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 198 | 197 | MDRV_SCREEN_SIZE(64*8, 64*8) |
| 199 | 198 | MDRV_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 0*8, 64*8-1) |
| 199 | ||
| 200 | 200 | MDRV_PALETTE_LENGTH(0x2000) |
| 201 | 201 | MDRV_MACHINE_RESET(coolridr) |
| 202 | 202 |
| r1711 | r1712 | |
|---|---|---|
| 255 | 255 | MDRV_CPU_PROGRAM_MAP(t5182_map, 0) |
| 256 | 256 | MDRV_CPU_IO_MAP(t5182_io, 0) |
| 257 | 257 | |
| 258 | /* video hardware */ | |
| 259 | MDRV_SCREEN_ADD("main", RASTER) | |
| 258 | 260 | MDRV_SCREEN_REFRESH_RATE(60) |
| 259 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 260 | ||
| 261 | /* video hardware */ | |
| 262 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 261 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 263 | 262 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 264 | 263 | MDRV_SCREEN_SIZE(256, 256) |
| 265 | 264 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 16, 256-16-1) |
| 265 | ||
| 266 | 266 | MDRV_GFXDECODE(darkmist) |
| 267 | 267 | MDRV_PALETTE_INIT(darkmist) |
| 268 | 268 | MDRV_PALETTE_LENGTH(0x100*4) |
| r1711 | r1712 | |
|---|---|---|
| 397 | 397 | MDRV_CPU_PROGRAM_MAP(mcu_map,0) |
| 398 | 398 | #endif |
| 399 | 399 | |
| 400 | /* video hardware */ | |
| 401 | MDRV_SCREEN_ADD("main", RASTER) | |
| 400 | 402 | MDRV_SCREEN_REFRESH_RATE(60) |
| 401 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 402 | ||
| 403 | /* video hardware */ | |
| 404 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 403 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 405 | 404 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 406 | 405 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 407 | 406 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 407 | ||
| 408 | 408 | MDRV_GFXDECODE(exctsccr) |
| 409 | 409 | MDRV_PALETTE_LENGTH(48*8) |
| 410 | 410 | |
| r1711 | r1712 | |
| 445 | 445 | MDRV_CPU_ADD(Z80, 3072000) /* 3.072 MHz ? */ |
| 446 | 446 | MDRV_CPU_PROGRAM_MAP(bl_sound_readmem,bl_sound_writemem) |
| 447 | 447 | |
| 448 | /* video hardware */ | |
| 449 | MDRV_SCREEN_ADD("main", RASTER) | |
| 448 | 450 | MDRV_SCREEN_REFRESH_RATE(60) |
| 449 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 450 | ||
| 451 | /* video hardware */ | |
| 452 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 451 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 453 | 452 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 454 | 453 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 455 | 454 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 455 | ||
| 456 | 456 | MDRV_GFXDECODE(exctsccr) |
| 457 | 457 | MDRV_PALETTE_LENGTH(48*8) |
| 458 | 458 |
| r1711 | r1712 | |
|---|---|---|
| 279 | 279 | MDRV_CPU_ADD(Z80, 3579545) /* 3.58 MHz */ |
| 280 | 280 | MDRV_CPU_PROGRAM_MAP(ajax_readmem_sound,ajax_writemem_sound) |
| 281 | 281 | |
| 282 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 283 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 284 | 282 | MDRV_INTERLEAVE(10) |
| 285 | 283 | |
| 286 | 284 | MDRV_MACHINE_RESET(ajax) |
| 287 | 285 | |
| 288 | 286 | /* video hardware */ |
| 289 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_HAS_SHADOWS) | |
| 287 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 288 | ||
| 289 | MDRV_SCREEN_ADD("main", RASTER) | |
| 290 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 291 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 290 | 292 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 291 | 293 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 292 | 294 | MDRV_SCREEN_VISIBLE_AREA(14*8, (64-14)*8-1, 2*8, 30*8-1 ) |
| r1711 | r1712 | |
|---|---|---|
| 354 | 354 | MDRV_CPU_PROGRAM_MAP(main_map,0) |
| 355 | 355 | MDRV_CPU_VBLANK_INT(amiga_scanline_callback, 262) |
| 356 | 356 | |
| 357 | MDRV_SCREEN_REFRESH_RATE(59.997) | |
| 358 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 359 | ||
| 360 | 357 | MDRV_MACHINE_RESET(mquake) |
| 361 | 358 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 362 | 359 | |
| 363 | 360 | /* video hardware */ |
| 364 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 361 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 362 | ||
| 363 | MDRV_SCREEN_ADD("main", RASTER) | |
| 364 | MDRV_SCREEN_REFRESH_RATE(59.997) | |
| 365 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 365 | 366 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 366 | 367 | MDRV_SCREEN_SIZE(512*2, 262) |
| 367 | 368 | MDRV_SCREEN_VISIBLE_AREA((129-8)*2, (449+8-1)*2, 44-8, 244+8-1) |
| 369 | ||
| 368 | 370 | MDRV_PALETTE_LENGTH(4096) |
| 369 | 371 | MDRV_PALETTE_INIT(amiga) |
| 370 | 372 |
| r1711 | r1712 | |
|---|---|---|
| 253 | 253 | MDRV_CPU_ADD(Z80,8000000/2) /* 4 MHz?? */ |
| 254 | 254 | MDRV_CPU_PROGRAM_MAP(soundreadmem,soundwritemem) |
| 255 | 255 | |
| 256 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 257 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 258 | ||
| 259 | 256 | /* video hardware */ |
| 260 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER ) | |
| 257 | MDRV_SCREEN_ADD("main", RASTER) | |
| 258 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 259 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 261 | 260 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 262 | 261 | MDRV_SCREEN_SIZE(512, 256) |
| 263 | 262 | MDRV_SCREEN_VISIBLE_AREA(12*8, 512-12*8-1, 16, 256-16-1) |
| r1711 | r1712 | |
|---|---|---|
| 152 | 152 | MDRV_CPU_PROGRAM_MAP(rotaryf_map,0) |
| 153 | 153 | MDRV_CPU_IO_MAP(rotaryf_io_map,0) |
| 154 | 154 | MDRV_CPU_VBLANK_INT(rotaryf_interrupt,5) |
| 155 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 156 | 155 | |
| 157 | 156 | /* video hardware */ |
| 158 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 159 | 157 | MDRV_VIDEO_UPDATE(rotaryf) |
| 160 | 158 | |
| 161 | MDRV_SCREEN_ADD("main", | |
| 159 | MDRV_SCREEN_ADD("main", RASTER) | |
| 162 | 160 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 163 | 161 | MDRV_SCREEN_SIZE(32*8, 262) /* vert size is a guess, taken from mw8080bw */ |
| 164 | 162 | MDRV_SCREEN_VISIBLE_AREA(1*8, 30*8-1, 0*8, 32*8-1) |
| r1711 | r1712 | |
|---|---|---|
| 251 | 251 | MDRV_CPU_IO_MAP(sound_readport,sound_writeport) |
| 252 | 252 | MDRV_CPU_VBLANK_INT(nmi_line_pulse,128) /* clocked by V1? (Vigilante) */ |
| 253 | 253 | /* IRQs are generated by main Z80 and YM2151 */ |
| 254 | MDRV_SCREEN_REFRESH_RATE(55) | |
| 255 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 256 | 254 | |
| 257 | 255 | MDRV_MACHINE_RESET(m72_sound) |
| 258 | 256 | |
| 259 | 257 | /* video hardware */ |
| 260 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 258 | MDRV_SCREEN_ADD("main", RASTER) | |
| 259 | MDRV_SCREEN_REFRESH_RATE(55) | |
| 260 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 261 | 261 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 262 | 262 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 263 | 263 | MDRV_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 0*8, 32*8-1) |
| 264 | ||
| 264 | 265 | MDRV_GFXDECODE(shisen) |
| 265 | 266 | MDRV_PALETTE_LENGTH(256) |
| 266 | 267 |
| r1711 | r1712 | |
|---|---|---|
| 236 | 236 | |
| 237 | 237 | MDRV_MACHINE_START(tutankhm) |
| 238 | 238 | |
| 239 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 240 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 241 | ||
| 242 | 239 | /* video hardware */ |
| 243 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 240 | MDRV_SCREEN_ADD("main", RASTER) | |
| 241 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 242 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 244 | 243 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 245 | 244 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 246 | 245 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) /* not sure about the visible area */ |
| r1711 | r1712 | |
|---|---|---|
| 141 | 141 | 01 Fire Hawk By ESD with different sound hardware: 2 M6295, |
| 142 | 142 | this doesn't have the glitches present in spec2k |
| 143 | 143 | |
| 144 | Afega stands for "Art-Fiction Electronic Game" | |
| 144 | 145 | |
| 146 | ||
| 145 | 147 | ********************************************************************/ |
| 146 | 148 | |
| 147 | 149 | #include "driver.h" |
| r1711 | r1712 | |
| 246 | 248 | WRITE16_HANDLER( afega_vram_1_w ); |
| 247 | 249 | //WRITE16_HANDLER( afega_palette_w ); |
| 248 | 250 | |
| 249 | PALETTE_INIT( grdnstrm ); | |
| 250 | ||
| 251 | 251 | VIDEO_START( afega ); |
| 252 | VIDEO_START( grdnstrm ); | |
| 252 | 253 | VIDEO_START( firehawk ); |
| 253 | 254 | VIDEO_UPDATE( afega ); |
| 254 | 255 | VIDEO_UPDATE( redhawkb ); |
| r1711 | r1712 | |
| 3707 | 3708 | |
| 3708 | 3709 | |
| 3709 | 3710 | /* video hardware */ |
| 3710 | MDRV_ | |
| 3711 | MDRV_SC | |
| 3711 | 3712 | MDRV_SCREEN_REFRESH_RATE(56) |
| 3712 | MDRV_SCREEN_VBLANK_TIME( | |
| 3713 | MDRV_SCREEN_VBLANK_TIME( | |
| 3713 | 3714 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3714 | 3715 | MDRV_SCREEN_SIZE(256, 256) |
| 3715 | 3716 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| r1711 | r1712 | |
| 3753 | 3754 | MDRV_CPU_PROGRAM_MAP(tharrier_sound_readmem,tharrier_sound_writemem) |
| 3754 | 3755 | MDRV_CPU_IO_MAP(tharrier_sound_readport,tharrier_sound_writeport) |
| 3755 | 3756 | |
| 3757 | /* video hardware */ | |
| 3758 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3756 | 3759 | MDRV_SCREEN_REFRESH_RATE(56) |
| 3757 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 3758 | ||
| 3759 | /* video hardware */ | |
| 3760 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 3760 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 3761 | 3761 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3762 | 3762 | MDRV_SCREEN_SIZE(256, 256) |
| 3763 | 3763 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1) |
| 3764 | ||
| 3764 | 3765 | MDRV_GFXDECODE(tharrier) |
| 3765 | 3766 | MDRV_PALETTE_LENGTH(512) |
| 3766 | 3767 | |
| r1711 | r1712 | |
| 3795 | 3796 | MDRV_CPU_VBLANK_INT(nmk_interrupt,2) |
| 3796 | 3797 | MDRV_CPU_PERIODIC_INT(irq1_line_hold,112)/* ???????? */ |
| 3797 | 3798 | |
| 3798 | MDRV_SCREEN_REFRESH_RATE(56) | |
| 3799 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 3800 | 3799 | MDRV_MACHINE_RESET(NMK004) |
| 3801 | 3800 | |
| 3802 | 3801 | /* video hardware */ |
| 3803 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 3802 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3803 | MDRV_SCREEN_REFRESH_RATE(56) | |
| 3804 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 3804 | 3805 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3805 | 3806 | MDRV_SCREEN_SIZE(256, 256) |
| 3806 | 3807 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 3808 | ||
| 3807 | 3809 | MDRV_GFXDECODE(macross) |
| 3808 | 3810 | MDRV_PALETTE_LENGTH(1024) |
| 3809 | 3811 | |
| r1711 | r1712 | |
| 3841 | 3843 | |
| 3842 | 3844 | SEIBU_SOUND_SYSTEM_CPU(14318180/4) |
| 3843 | 3845 | |
| 3844 | MDRV_SCREEN_REFRESH_RATE(56) | |
| 3845 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 3846 | 3846 | MDRV_MACHINE_RESET(mustang_sound) |
| 3847 | 3847 | |
| 3848 | 3848 | /* video hardware */ |
| 3849 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 3849 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3850 | MDRV_SCREEN_REFRESH_RATE(56) | |
| 3851 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 3850 | 3852 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3851 | 3853 | MDRV_SCREEN_SIZE(256, 256) |
| 3852 | 3854 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 3855 | ||
| 3853 | 3856 | MDRV_GFXDECODE(macross) |
| 3854 | 3857 | MDRV_PALETTE_LENGTH(1024) |
| 3855 | 3858 | |
| r1711 | r1712 | |
| 3920 | 3923 | MDRV_CPU_VBLANK_INT(nmk_interrupt,2) |
| 3921 | 3924 | MDRV_CPU_PERIODIC_INT(irq1_line_hold,112)/* ???????? */ |
| 3922 | 3925 | |
| 3923 | MDRV_SCREEN_REFRESH_RATE(56) | |
| 3924 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 3925 | 3926 | MDRV_MACHINE_RESET(NMK004) |
| 3926 | 3927 | |
| 3927 | 3928 | /* video hardware */ |
| 3928 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 3929 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3930 | MDRV_SCREEN_REFRESH_RATE(56) | |
| 3931 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 3929 | 3932 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3930 | 3933 | MDRV_SCREEN_SIZE(256, 256) |
| 3931 | 3934 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 3935 | ||
| 3932 | 3936 | MDRV_GFXDECODE(bioship) |
| 3933 | 3937 | MDRV_PALETTE_LENGTH(1024) |
| 3934 | 3938 | |
| r1711 | r1712 | |
| 3963 | 3967 | MDRV_CPU_VBLANK_INT(nmk_interrupt,2) |
| 3964 | 3968 | MDRV_CPU_PERIODIC_INT(irq1_line_hold,112)/* ???????? */ |
| 3965 | 3969 | |
| 3966 | MDRV_SCREEN_REFRESH_RATE(56) | |
| 3967 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 3968 | 3970 | MDRV_MACHINE_RESET(NMK004) |
| 3969 | 3971 | |
| 3970 | 3972 | /* video hardware */ |
| 3971 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 3973 | MDRV_SCREEN_ADD("main", RASTER) | |
| 3974 | MDRV_SCREEN_REFRESH_RATE(56) | |
| 3975 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 3972 | 3976 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 3973 | 3977 | MDRV_SCREEN_SIZE(256, 256) |
| 3974 | 3978 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 3979 | ||
| 3975 | 3980 | MDRV_GFXDECODE(macross) |
| 3976 | 3981 | MDRV_PALETTE_LENGTH(1024) |
| 3977 | 3982 | |
| r1711 | r1712 | |
| 4009 | 4014 | MDRV_CPU_ADD(PIC16C57, 12000000) /* 3MHz */ |
| 4010 | 4015 | MDRV_CPU_FLAGS(CPU_DISABLE) |
| 4011 | 4016 | |
| 4012 | MDRV_SCREEN_REFRESH_RATE(56) | |
| 4013 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 4014 | 4017 | //MDRV_MACHINE_RESET(NMK004) // no NMK004 |
| 4015 | 4018 | |
| 4016 | 4019 | /* video hardware */ |
| 4017 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 4020 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4021 | MDRV_SCREEN_REFRESH_RATE(56) | |
| 4022 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 4018 | 4023 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 4019 | 4024 | MDRV_SCREEN_SIZE(256, 256) |
| 4020 | 4025 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 4026 | ||
| 4021 | 4027 | MDRV_GFXDECODE(macross) |
| 4022 | 4028 | MDRV_PALETTE_LENGTH(1024) |
| 4023 | 4029 | |
| r1711 | r1712 | |
| 4041 | 4047 | MDRV_CPU_VBLANK_INT(nmk_interrupt,2) |
| 4042 | 4048 | MDRV_CPU_PERIODIC_INT(irq1_line_hold,112)/* ???????? */ |
| 4043 | 4049 | |
| 4044 | MDRV_SCREEN_REFRESH_RATE(56) | |
| 4045 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 4046 | 4050 | MDRV_MACHINE_RESET(NMK004) |
| 4047 | 4051 | |
| 4048 | 4052 | /* video hardware */ |
| 4049 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 4053 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4054 | MDRV_SCREEN_REFRESH_RATE(56) | |
| 4055 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 4050 | 4056 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 4051 | 4057 | MDRV_SCREEN_SIZE(256, 256) |
| 4052 | 4058 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 4059 | ||
| 4053 | 4060 | MDRV_GFXDECODE(macross) |
| 4054 | 4061 | MDRV_PALETTE_LENGTH(1024) |
| 4055 | 4062 | |
| r1711 | r1712 | |
| 4089 | 4096 | |
| 4090 | 4097 | SEIBU_SOUND_SYSTEM_CPU(14318180/4) |
| 4091 | 4098 | |
| 4092 | MDRV_SCREEN_REFRESH_RATE(56) | |
| 4093 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 4094 | 4099 | MDRV_MACHINE_RESET(mustang_sound) |
| 4095 | 4100 | |
| 4096 | 4101 | /* video hardware */ |
| 4097 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 4102 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4103 | MDRV_SCREEN_REFRESH_RATE(56) | |
| 4104 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 4098 | 4105 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 4099 | 4106 | MDRV_SCREEN_SIZE(256, 256) |
| 4100 | 4107 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 4108 | ||
| 4101 | 4109 | MDRV_GFXDECODE(macross) |
| 4102 | 4110 | MDRV_PALETTE_LENGTH(1024) |
| 4103 | 4111 | |
| r1711 | r1712 | |
| 4118 | 4126 | //MDRV_CPU_VBLANK_INT(irq4_line_hold,1) |
| 4119 | 4127 | MDRV_CPU_PERIODIC_INT(irq1_line_hold,112)/* ?? drives music */ |
| 4120 | 4128 | |
| 4121 | MDRV_SCREEN_REFRESH_RATE(56) | |
| 4122 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 4123 | 4129 | MDRV_MACHINE_RESET(NMK004) |
| 4124 | 4130 | |
| 4125 | 4131 | /* video hardware */ |
| 4126 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 4132 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4133 | MDRV_SCREEN_REFRESH_RATE(56) | |
| 4134 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 4127 | 4135 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 4128 | 4136 | MDRV_SCREEN_SIZE(256, 256) |
| 4129 | 4137 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 4138 | ||
| 4130 | 4139 | MDRV_GFXDECODE(macross) |
| 4131 | 4140 | MDRV_PALETTE_LENGTH(1024) |
| 4132 | 4141 | |
| r1711 | r1712 | |
| 4164 | 4173 | MDRV_CPU_ADD(Z80, 8000000/2) /* 4 Mhz */ |
| 4165 | 4174 | MDRV_CPU_PROGRAM_MAP(ssmissin_sound_readmem,ssmissin_sound_writemem) |
| 4166 | 4175 | |
| 4167 | MDRV_SCREEN_REFRESH_RATE(56) | |
| 4168 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 4169 | 4176 | MDRV_MACHINE_RESET(nmk16) |
| 4170 | 4177 | |
| 4171 | 4178 | /* video hardware */ |
| 4172 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 4179 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4180 | MDRV_SCREEN_REFRESH_RATE(56) | |
| 4181 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 4173 | 4182 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 4174 | 4183 | MDRV_SCREEN_SIZE(256, 256) |
| 4175 | 4184 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 4185 | ||
| 4176 | 4186 | MDRV_GFXDECODE(macross) |
| 4177 | 4187 | MDRV_PALETTE_LENGTH(1024) |
| 4178 | 4188 | |
| r1711 | r1712 | |
| 4197 | 4207 | MDRV_CPU_VBLANK_INT(nmk_interrupt,2) |
| 4198 | 4208 | MDRV_CPU_PERIODIC_INT(irq1_line_hold,112)/* ???????? */ |
| 4199 | 4209 | |
| 4200 | MDRV_SCREEN_REFRESH_RATE(56) | |
| 4201 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 4202 | 4210 | MDRV_MACHINE_RESET(NMK004) |
| 4203 | 4211 | |
| 4204 | 4212 | /* video hardware */ |
| 4205 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 4213 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4214 | MDRV_SCREEN_REFRESH_RATE(56) | |
| 4215 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 4206 | 4216 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 4207 | 4217 | MDRV_SCREEN_SIZE(256, 256) |
| 4208 | 4218 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 4219 | ||
| 4209 | 4220 | MDRV_GFXDECODE(strahl) |
| 4210 | 4221 | MDRV_PALETTE_LENGTH(1024) |
| 4211 | 4222 | |
| r1711 | r1712 | |
| 4241 | 4252 | MDRV_CPU_VBLANK_INT(irq4_line_hold,1) |
| 4242 | 4253 | MDRV_CPU_PERIODIC_INT(irq1_line_hold,112)/* ???????? */ |
| 4243 | 4254 | |
| 4244 | MDRV_SCREEN_REFRESH_RATE(56) | |
| 4245 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 4246 | 4255 | MDRV_MACHINE_RESET(NMK004) |
| 4247 | 4256 | |
| 4248 | 4257 | /* video hardware */ |
| 4249 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 4258 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4259 | MDRV_SCREEN_REFRESH_RATE(56) | |
| 4260 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 4250 | 4261 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 4251 | 4262 | MDRV_SCREEN_SIZE(256, 256) |
| 4252 | 4263 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 4264 | ||
| 4253 | 4265 | MDRV_GFXDECODE(macross) |
| 4254 | 4266 | MDRV_PALETTE_LENGTH(1024) |
| 4255 | 4267 | |
| r1711 | r1712 | |
| 4285 | 4297 | MDRV_CPU_VBLANK_INT(irq4_line_hold,1) |
| 4286 | 4298 | MDRV_CPU_PERIODIC_INT(irq1_line_hold,112)/* ???????? */ |
| 4287 | 4299 | |
| 4288 | MDRV_SCREEN_REFRESH_RATE(56) | |
| 4289 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 4290 | 4300 | MDRV_MACHINE_RESET(NMK004) |
| 4291 | 4301 | |
| 4292 | 4302 | /* video hardware */ |
| 4293 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 4303 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4304 | MDRV_SCREEN_REFRESH_RATE(56) | |
| 4305 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 4294 | 4306 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 4295 | 4307 | MDRV_SCREEN_SIZE(256, 256) |
| 4296 | 4308 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 4309 | ||
| 4297 | 4310 | MDRV_GFXDECODE(macross) |
| 4298 | 4311 | MDRV_PALETTE_LENGTH(1024) |
| 4299 | 4312 | |
| r1711 | r1712 | |
| 4329 | 4342 | MDRV_CPU_VBLANK_INT(irq4_line_hold,1) |
| 4330 | 4343 | MDRV_CPU_PERIODIC_INT(irq1_line_hold,112) |
| 4331 | 4344 | |
| 4332 | MDRV_SCREEN_REFRESH_RATE(56) | |
| 4333 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 4334 | 4345 | MDRV_MACHINE_RESET(NMK004) |
| 4335 | 4346 | |
| 4336 | 4347 | /* video hardware */ |
| 4337 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 4348 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4349 | MDRV_SCREEN_REFRESH_RATE(56) | |
| 4350 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 4338 | 4351 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 4339 | 4352 | MDRV_SCREEN_SIZE(512, 256) |
| 4340 | 4353 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 2*8, 30*8-1) |
| 4354 | ||
| 4341 | 4355 | MDRV_GFXDECODE(macross) |
| 4342 | 4356 | MDRV_PALETTE_LENGTH(1024) |
| 4343 | 4357 | |
| r1711 | r1712 | |
| 4378 | 4392 | MDRV_CPU_PROGRAM_MAP(macross2_sound_readmem,macross2_sound_writemem) |
| 4379 | 4393 | MDRV_CPU_IO_MAP(macross2_sound_readport,macross2_sound_writeport) |
| 4380 | 4394 | |
| 4381 | MDRV_SCREEN_REFRESH_RATE(56) | |
| 4382 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 4383 | 4395 | MDRV_MACHINE_RESET(nmk16) |
| 4384 | 4396 | |
| 4385 | 4397 | /* video hardware */ |
| 4386 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 4398 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4399 | MDRV_SCREEN_REFRESH_RATE(56) | |
| 4400 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 4387 | 4401 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 4388 | 4402 | MDRV_SCREEN_SIZE(512, 256) |
| 4389 | 4403 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 2*8, 30*8-1) |
| 4404 | ||
| 4390 | 4405 | MDRV_GFXDECODE(macross2) |
| 4391 | 4406 | MDRV_PALETTE_LENGTH(1024) |
| 4392 | 4407 | |
| r1711 | r1712 | |
| 4423 | 4438 | MDRV_CPU_PROGRAM_MAP(macross2_sound_readmem,macross2_sound_writemem) |
| 4424 | 4439 | MDRV_CPU_IO_MAP(macross2_sound_readport,macross2_sound_writeport) |
| 4425 | 4440 | |
| 4426 | MDRV_SCREEN_REFRESH_RATE(56) | |
| 4427 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 4428 | 4441 | MDRV_MACHINE_RESET(nmk16) |
| 4429 | 4442 | |
| 4430 | 4443 | /* video hardware */ |
| 4431 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 4444 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4445 | MDRV_SCREEN_REFRESH_RATE(56) | |
| 4446 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 4432 | 4447 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 4433 | 4448 | MDRV_SCREEN_SIZE(512, 256) |
| 4434 | 4449 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 2*8, 30*8-1) |
| 4450 | ||
| 4435 | 4451 | MDRV_GFXDECODE(macross2) |
| 4436 | 4452 | MDRV_PALETTE_LENGTH(1024) |
| 4437 | 4453 | |
| r1711 | r1712 | |
| 4466 | 4482 | MDRV_CPU_ADD_TAG("sound",TMP90841, 8000000) |
| 4467 | 4483 | MDRV_CPU_PROGRAM_MAP(raphero_sound_mem_map,0) |
| 4468 | 4484 | |
| 4469 | MDRV_SCREEN_REFRESH_RATE(56) // measured | |
| 4470 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 4471 | 4485 | MDRV_MACHINE_RESET(nmk16) |
| 4472 | 4486 | |
| 4473 | 4487 | /* video hardware */ |
| 4474 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 4488 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4489 | MDRV_SCREEN_REFRESH_RATE(56) // measured | |
| 4490 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 4475 | 4491 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 4476 | 4492 | MDRV_SCREEN_SIZE(512, 256) |
| 4477 | 4493 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 2*8, 30*8-1) |
| 4494 | ||
| 4478 | 4495 | MDRV_GFXDECODE(macross2) |
| 4479 | 4496 | MDRV_PALETTE_LENGTH(1024) |
| 4480 | 4497 | |
| r1711 | r1712 | |
| 4506 | 4523 | MDRV_CPU_VBLANK_INT(irq4_line_hold,1) |
| 4507 | 4524 | MDRV_CPU_PERIODIC_INT(irq1_line_hold,112)/* ?? drives music */ |
| 4508 | 4525 | |
| 4509 | MDRV_SCREEN_REFRESH_RATE(56) | |
| 4510 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 4511 | 4526 | MDRV_MACHINE_RESET(nmk16) |
| 4512 | 4527 | |
| 4513 | 4528 | /* video hardware */ |
| 4514 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 4529 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4530 | MDRV_SCREEN_REFRESH_RATE(56) | |
| 4531 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 4515 | 4532 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 4516 | 4533 | MDRV_SCREEN_SIZE(512, 256) |
| 4517 | 4534 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 2*8, 30*8-1) |
| 4535 | ||
| 4518 | 4536 | MDRV_GFXDECODE(bjtwin) |
| 4519 | 4537 | MDRV_PALETTE_LENGTH(1024) |
| 4520 | 4538 | |
| r1711 | r1712 | |
| 4962 | 4980 | }; |
| 4963 | 4981 | |
| 4964 | 4982 | static GFXDECODE_START( grdnstrm ) |
| 4965 | GFXDECODE_ENTRY( REGION_GFX2, 0, layout_16x16x8, 256* | |
| 4983 | GFXDECODE_ENTRY( REGION_GFX2, 0, layout_16x16x8, 256*0, 1 | |
| 4966 | 4984 | GFXDECODE_ENTRY( REGION_GFX3, 0, layout_8x8x4, 256*2, 16 ) // [2] Layer 1 |
| 4967 | 4985 | GFXDECODE_ENTRY( REGION_GFX1, 0, layout_16x16x4, 256*1, 16 ) // [0] Sprites |
| 4968 | 4986 | GFXDECODE_END |
| r1711 | r1712 | |
| 5012 | 5030 | MDRV_CPU_PROGRAM_MAP(afega_sound_cpu,0) |
| 5013 | 5031 | |
| 5014 | 5032 | /* video hardware */ |
| 5015 | MDRV_ | |
| 5033 | MDRV_SC | |
| 5016 | 5034 | MDRV_SCREEN_REFRESH_RATE(56) |
| 5017 | MDRV_SCREEN_VBLANK_TIME( | |
| 5035 | MDRV_SCREEN_VBLANK_TIME( | |
| 5018 | 5036 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 5019 | 5037 | MDRV_SCREEN_SIZE(256, 256) |
| 5020 | 5038 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| r1711 | r1712 | |
| 5055 | 5073 | |
| 5056 | 5074 | /* video hardware */ |
| 5057 | 5075 | MDRV_GFXDECODE(grdnstrm) |
| 5058 | MDRV_PALETTE_LENGTH(768) | |
| 5059 | MDRV_COLORTABLE_LENGTH(768 + 16*256) | |
| 5060 | ||
| 5061 | MDRV_PALETTE_INIT(grdnstrm) | |
| 5076 | MDRV_VIDEO_START(grdnstrm) | |
| 5062 | 5077 | MACHINE_DRIVER_END |
| 5063 | 5078 | |
| 5064 | 5079 | static MACHINE_DRIVER_START( popspops ) |
| 5065 | 5080 | |
| 5066 | 5081 | /* basic machine hardware */ |
| 5067 | MDRV_IMPORT_FROM(st | |
| 5082 | MDRV_IMPORT_FROM(grdnst | |
| 5068 | 5083 | |
| 5069 | 5084 | /* video hardware */ |
| 5070 | MDRV_GFXDECODE(grdnstrm) | |
| 5071 | MDRV_PALETTE_LENGTH(768) | |
| 5072 | MDRV_COLORTABLE_LENGTH(768 + 16*256) | |
| 5073 | ||
| 5074 | MDRV_PALETTE_INIT(grdnstrm) | |
| 5075 | ||
| 5076 | 5085 | MDRV_VIDEO_UPDATE(bubl2000) |
| 5077 | 5086 | MACHINE_DRIVER_END |
| 5078 | 5087 | |
| 5079 | 5088 | |
| 5080 | static MACHINE_DRIVER_START( bubl2000 ) | |
| 5081 | ||
| 5082 | /* basic machine hardware */ | |
| 5083 | MDRV_IMPORT_FROM(grdnstrm) | |
| 5084 | ||
| 5085 | /* video hardware */ | |
| 5086 | MDRV_VIDEO_UPDATE(bubl2000) | |
| 5087 | MACHINE_DRIVER_END | |
| 5088 | ||
| 5089 | 5089 | static MACHINE_DRIVER_START( firehawk ) |
| 5090 | 5090 | |
| 5091 | 5091 | /* basic machine hardware */ |
| r1711 | r1712 | |
| 5098 | 5098 | MDRV_CPU_PROGRAM_MAP(firehawk_sound_cpu,0) |
| 5099 | 5099 | |
| 5100 | 5100 | /* video hardware */ |
| 5101 | MDRV_ | |
| 5101 | MDRV_SC | |
| 5102 | 5102 | MDRV_SCREEN_REFRESH_RATE(56) |
| 5103 | MDRV_SCREEN_VBLANK_TIME( | |
| 5103 | MDRV_SCREEN_VBLANK_TIME( | |
| 5104 | 5104 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 5105 | 5105 | MDRV_SCREEN_SIZE(256, 256) |
| 5106 | 5106 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 5107 | 5107 | |
| 5108 | 5108 | MDRV_GFXDECODE(grdnstrm) |
| 5109 | 5109 | MDRV_PALETTE_LENGTH(768) |
| 5110 | MDRV_COLORTABLE_LENGTH(768 + 16*256) | |
| 5111 | 5110 | |
| 5112 | MDRV_PALETTE_INIT(grdnstrm) | |
| 5113 | 5111 | MDRV_VIDEO_START(firehawk) |
| 5114 | 5112 | MDRV_VIDEO_UPDATE(firehawk) |
| 5115 | 5113 | MDRV_VIDEO_EOF(nmk) |
| r1711 | r1712 | |
| 5139 | 5137 | MDRV_CPU_ADD(Z80, 4000000) |
| 5140 | 5138 | MDRV_CPU_PROGRAM_MAP(twinactn_sound_cpu,0) |
| 5141 | 5139 | |
| 5140 | /* video hardware */ | |
| 5141 | MDRV_SCREEN_ADD("main", RASTER) | |
| 5142 | 5142 | MDRV_SCREEN_REFRESH_RATE(56) |
| 5143 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 5144 | ||
| 5145 | /* video hardware */ | |
| 5146 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 5143 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 5147 | 5144 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 5148 | 5145 | MDRV_SCREEN_SIZE(256, 256) |
| 5149 | 5146 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 5147 | ||
| 5150 | 5148 | MDRV_GFXDECODE(macross) |
| 5151 | 5149 | MDRV_PALETTE_LENGTH(1024) |
| 5152 | 5150 | |
| r1711 | r1712 | |
| 6312 | 6310 | |
| 6313 | 6311 | ***************************************************************************/ |
| 6314 | 6312 | |
| 6315 | ROM_START( stagger1 ) | |
| 6313 | ROM_START( stagger1 ) /* Japan only, with later (c) year of 1998 */ | |
| 6316 | 6314 | ROM_REGION( 0x80000, REGION_CPU1, 0 ) /* 68000 Code */ |
| 6317 | 6315 | ROM_LOAD16_BYTE( "2.bin", 0x000000, 0x020000, CRC(8555929b) SHA1(b405d81c2a45191111b1a4458ac6b5c0a129b8f1) ) |
| 6318 | 6316 | ROM_LOAD16_BYTE( "3.bin", 0x000001, 0x020000, CRC(5b0b63ac) SHA1(239f793b6845a88d1630da790a2762da730a450d) ) |
| r1711 | r1712 | |
| 6358 | 6356 | |
| 6359 | 6357 | ***************************************************************************/ |
| 6360 | 6358 | |
| 6361 | ROM_START( redhawk ) | |
| 6359 | ROM_START( redhawk ) /* U.S.A., Canada & South America, (c) 1997 */ | |
| 6362 | 6360 | ROM_REGION( 0x80000, REGION_CPU1, 0 ) /* 68000 Code */ |
| 6363 | 6361 | ROM_LOAD16_BYTE( "2", 0x000000, 0x020000, CRC(3ef5f326) SHA1(e89c7c24a05886a14995d7c399958dc00ad35d63) ) |
| 6364 | 6362 | ROM_LOAD16_BYTE( "3", 0x000001, 0x020000, CRC(9b3a10ef) SHA1(d03480329b23474e5a9e42a75b09d2140eed4443) ) |
| r1711 | r1712 | |
| 6380 | 6378 | ROM_LOAD( "5", 0x00000, 0x40000, CRC(e911ce33) SHA1(a29c4dea98a22235122303325c63c15fadd3431d) ) |
| 6381 | 6379 | ROM_END |
| 6382 | 6380 | |
| 6381 | ROM_START( redhawke ) /* Excellent Co., Ldt license (no code scramble), (c) 1997 */ | |
| 6382 | ROM_REGION( 0x80000, REGION_CPU1, 0 ) /* 68000 Code */ | |
| 6383 | ROM_LOAD16_BYTE( "rhawk2.bin", 0x000000, 0x020000, CRC(6d2e23b4) SHA1(54579d460844e022ab61f32bfec28f00f2d27140) ) | |
| 6384 | ROM_LOAD16_BYTE( "rhawk3.bin", 0x000001, 0x020000, CRC(5e0d6188) SHA1(c6ce8a3adf940893fcb6281348fdb0cdd65fe654) ) | |
| 6385 | ||
| 6386 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) /* Z80 Code */ | |
| 6387 | ROM_LOAD( "1.bin", 0x00000, 0x10000, CRC(5d8cf28e) SHA1(2a440bf5136f95af137b6688e566a14e65be94b1) ) | |
| 6388 | ||
| 6389 | ROM_REGION( 0x100000, REGION_GFX1, ROMREGION_DISPOSE ) /* Sprites, 16x16x4 */ | |
| 6390 | ROM_LOAD16_BYTE( "rhawk6.bin", 0x000001, 0x080000, CRC(3f980ab6) SHA1(2b9202555f09d99e3575123dfed415bfd815bb2e) ) | |
| 6391 | ROM_LOAD16_BYTE( "rhawk7.bin", 0x000000, 0x080000, CRC(0264ef54) SHA1(1124007538161dfc582f9c7692a20cdee459720c) ) | |
| 6392 | ||
| 6393 | ROM_REGION( 0x080000, REGION_GFX2, ROMREGION_DISPOSE ) /* Layer 0, 16x16x8 */ | |
| 6394 | ROM_LOAD( "rhawk4.bin", 0x000000, 0x080000, CRC(d79aa288) SHA1(b8598ab77d2019e5943b22f551e0a38eee5e52b6) ) | |
| 6395 | ||
| 6396 | ROM_REGION( 0x00100, REGION_GFX3, ROMREGION_DISPOSE | ROMREGION_ERASEFF ) /* Layer 1, 8x8x4 */ | |
| 6397 | // Unused | |
| 6398 | ||
| 6399 | ROM_REGION( 0x40000, REGION_SOUND1, 0 ) /* Samples */ | |
| 6400 | ROM_LOAD( "5", 0x00000, 0x40000, CRC(e911ce33) SHA1(a29c4dea98a22235122303325c63c15fadd3431d) ) | |
| 6401 | ROM_END | |
| 6402 | ||
| 6383 | 6403 | static DRIVER_INIT( redhawk ) |
| 6384 | 6404 | { |
| 6385 | 6405 | decryptcode( 23, 22, 21, 20, 19, 18, 16, 15, 14, 17, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 ); |
| r1711 | r1712 | |
| 6900 | 6920 | ***************************************************************************/ |
| 6901 | 6921 | |
| 6902 | 6922 | |
| 6903 | GAME( 1989, tharrier, 0, tharrier, tharrier, 0, ROT270, "UPL (American Sammy license)", "Task Force Harrier", 0 ) | |
| 6904 | GAME( 1989, tharierj, tharrier,tharrier, tharrier, 0, ROT270, "UPL", "Task Force Harrier (Japan)", 0 ) | |
| 6905 | GAME( 1990, mustang, 0, mustang, mustang, 0, ROT0, "UPL", "US AAF Mustang (Japan)", GAME_IMPERFECT_SOUND) | |
| 6906 | GAME( 1990, mustangs, mustang, mustang, mustang, 0, ROT0, "UPL (Seoul Trading license)", "US AAF Mustang (Seoul Trading)", GAME_IMPERFECT_SOUND ) | |
| 6907 | GAME( 1990, bioship, 0, bioship, bioship, 0, ROT0, "UPL (American Sammy license)", "Bio-ship Paladin", GAME_IMPERFECT_SOUND ) | |
| 6908 | GAME( 1990, sbsgomo, bioship, bioship, bioship, 0, ROT0, "UPL", "Space Battle Ship Gomorrah", GAME_IMPERFECT_SOUND ) | |
| 6909 | GAME( 1990, vandyke, 0, vandyke, vandyke, 0, ROT270, "UPL", "Vandyke (Japan)", GAME_IMPERFECT_SOUND ) | |
| 6910 | GAME( 1990, vandyjal, vandyke, vandyke, vandyke, 0, ROT270, "UPL (Jaleco license)", "Vandyke (Jaleco, Set 1)", GAME_IMPERFECT_SOUND ) | |
| 6911 | GAME( 1990, vandyja2, vandyke, vandyke, vandyke, 0, ROT270, "UPL (Jaleco license)", "Vandyke (Jaleco, Set 2)", GAME_IMPERFECT_SOUND ) | |
| 6912 | GAME( 1990, vandykeb, vandyke, vandykeb, vandyke, vandykeb, ROT270, "[UPL] (bootleg)", "Vandyke (bootleg with PIC16c57)", GAME_NOT_WORKING ) | |
| 6913 | GAME( 1991, blkheart, 0, macross, blkheart, 0, ROT0, "UPL", "Black Heart", GAME_IMPERFECT_SOUND ) | |
| 6914 | GAME( 1991, blkhearj, blkheart,macross, blkheart, 0, ROT0, "UPL", "Black Heart (Japan)", GAME_IMPERFECT_SOUND ) | |
| 6915 | GAME( 1991, acrobatm, 0, acrobatm, acrobatm, 0, ROT270, "UPL (Taito license)", "Acrobat Mission", GAME_IMPERFECT_SOUND ) | |
| 6916 | GAME( 1992, strahl, 0, strahl, strahl, 0, ROT0, "UPL", "Koutetsu Yousai Strahl (Japan set 1)", GAME_IMPERFECT_SOUND ) | |
| 6917 | GAME( 1992, strahla, strahl, strahl, strahl, 0, ROT0, "UPL", "Koutetsu Yousai Strahl (Japan set 2)", GAME_IMPERFECT_SOUND ) | |
| 6918 | GAME( 1991, tdragon, 0, tdragon, tdragon, tdragon, ROT270, "NMK (Tecmo license)", "Thunder Dragon", GAME_IMPERFECT_SOUND ) | |
| 6923 | GAME( 1989, tharrier, 0, tharrier, tharrier, 0, ROT270, "UPL (American Sammy license)", "Task Force Harrier", 0 ) | |
| 6924 | GAME( 1989, tharierj, tharrier, tharrier, tharrier, 0, ROT270, "UPL", "Task Force Harrier (Japan)", 0 ) | |
| 6925 | GAME( 1990, mustang, 0, mustang, mustang, 0, ROT0, "UPL", "US AAF Mustang (Japan)", GAME_IMPERFECT_SOUND) | |
| 6926 | GAME( 1990, mustangs, mustang, mustang, mustang, 0, ROT0, "UPL (Seoul Trading license)", "US AAF Mustang (Seoul Trading)", GAME_IMPERFECT_SOUND ) | |
| 6927 | GAME( 1990, bioship, 0, bioship, bioship, 0, ROT0, "UPL (American Sammy license)", "Bio-ship Paladin", GAME_IMPERFECT_SOUND ) | |
| 6928 | GAME( 1990, sbsgomo, bioship, bioship, bioship, 0, ROT0, "UPL", "Space Battle Ship Gomorrah", GAME_IMPERFECT_SOUND ) | |
| 6929 | GAME( 1990, vandyke, 0, vandyke, vandyke, 0, ROT270, "UPL", "Vandyke (Japan)", GAME_IMPERFECT_SOUND ) | |
| 6930 | GAME( 1990, vandyjal, vandyke, vandyke, vandyke, 0, ROT270, "UPL (Jaleco license)", "Vandyke (Jaleco, Set 1)", GAME_IMPERFECT_SOUND ) | |
| 6931 | GAME( 1990, vandyja2, vandyke, vandyke, vandyke, 0, ROT270, "UPL (Jaleco license)", "Vandyke (Jaleco, Set 2)", GAME_IMPERFECT_SOUND ) | |
| 6932 | GAME( 1990, vandykeb, vandyke, vandykeb, vandyke, vandykeb, ROT270, "[UPL] (bootleg)", "Vandyke (bootleg with PIC16c57)", GAME_NOT_WORKING ) | |
| 6933 | GAME( 1991, blkheart, 0, macross, blkheart, 0, ROT0, "UPL", "Black Heart", GAME_IMPERFECT_SOUND ) | |
| 6934 | GAME( 1991, blkhearj, blkheart, macross, blkheart, 0, ROT0, "UPL", "Black Heart (Japan)", GAME_IMPERFECT_SOUND ) | |
| 6935 | GAME( 1991, acrobatm, 0, acrobatm, acrobatm, 0, ROT270, "UPL (Taito license)", "Acrobat Mission", GAME_IMPERFECT_SOUND ) | |
| 6936 | GAME( 1992, strahl, 0, strahl, strahl, 0, ROT0, "UPL", "Koutetsu Yousai Strahl (Japan set 1)", GAME_IMPERFECT_SOUND ) | |
| 6937 | GAME( 1992, strahla, strahl, strahl, strahl, 0, ROT0, "UPL", "Koutetsu Yousai Strahl (Japan set 2)", GAME_IMPERFECT_SOUND ) | |
| 6938 | GAME( 1991, tdragon, 0, tdragon, tdragon, tdragon, ROT270, "NMK (Tecmo license)", "Thunder Dragon", GAME_IMPERFECT_SOUND ) | |
| 6919 | 6939 | |
| 6920 | GAME( 1991, hachamf, 0, hachamf, hachamf, hachamf, ROT0, "NMK", "Hacha Mecha Fighter", GAME_UNEMULATED_PROTECTION | GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 6921 | GAME( 1992, macross, 0, macross, macross, nmk, ROT270, "Banpresto", "Super Spacefortress Macross / Chou-Jikuu Yousai Macross", GAME_IMPERFECT_SOUND ) | |
| 6922 | GAME( 1993, gunnail, 0, gunnail, gunnail, nmk, ROT270, "NMK / Tecmo", "GunNail", GAME_IMPERFECT_SOUND ) | |
| 6923 | GAME( 1993, macross2, 0, macross2, macross2, 0, ROT0, "Banpresto", "Super Spacefortress Macross II / Chou-Jikuu Yousai Macross II", GAME_NO_COCKTAIL ) | |
| 6924 | GAME( 1993, tdragon2, 0, tdragon2, tdragon2, 0, ROT270, "NMK", "Thunder Dragon 2 (9th Nov. 1993)", GAME_NO_COCKTAIL ) | |
| 6925 | GAME( 1993, tdragn2a, tdragon2,tdragon2, tdragon2, 0, ROT270, "NMK", "Thunder Dragon 2 (1st Oct. 1993)", GAME_NO_COCKTAIL ) | |
| 6926 | GAME( 1993, bigbang, tdragon2,tdragon2, tdragon2, 0, ROT270, "NMK", "Big Bang (9th Nov. 1993)", GAME_NO_COCKTAIL ) | |
| 6927 | GAME( 1994, raphero, 0, raphero, raphero, 0, ROT270, "Media Trading Corp", "Rapid Hero (Japan?)", GAME_IMPERFECT_SOUND ) // 23rd July 1993 in test mode, (c)1994 on title screen | |
| 6940 | GAME( 1991, hachamf, 0, hachamf, hachamf, hachamf, ROT0, "NMK", "Hacha Mecha Fighter", GAME_UNEMULATED_PROTECTION | GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 6941 | GAME( 1992, macross, 0, macross, macross, nmk, ROT270, "Banpresto", "Super Spacefortress Macross / Chou-Jikuu Yousai Macross", GAME_IMPERFECT_SOUND ) | |
| 6942 | GAME( 1993, gunnail, 0, gunnail, gunnail, nmk, ROT270, "NMK / Tecmo", "GunNail", GAME_IMPERFECT_SOUND ) | |
| 6943 | GAME( 1993, macross2, 0, macross2, macross2, 0, ROT0, "Banpresto", "Super Spacefortress Macross II / Chou-Jikuu Yousai Macross II", GAME_NO_COCKTAIL ) | |
| 6944 | GAME( 1993, tdragon2, 0, tdragon2, tdragon2, 0, ROT270, "NMK", "Thunder Dragon 2 (9th Nov. 1993)", GAME_NO_COCKTAIL ) | |
| 6945 | GAME( 1993, tdragn2a, tdragon2, tdragon2, tdragon2, 0, ROT270, "NMK", "Thunder Dragon 2 (1st Oct. 1993)", GAME_NO_COCKTAIL ) | |
| 6946 | GAME( 1993, bigbang, tdragon2, tdragon2, tdragon2, 0, ROT270, "NMK", "Big Bang (9th Nov. 1993)", GAME_NO_COCKTAIL ) | |
| 6947 | GAME( 1994, raphero, 0, raphero, raphero, 0, ROT270, "Media Trading Corp", "Rapid Hero (Japan?)", GAME_IMPERFECT_SOUND ) // 23rd July 1993 in test mode, (c)1994 on title screen | |
| 6928 | 6948 | |
| 6929 | GAME( 1992, sabotenb, 0, bjtwin, sabotenb, nmk, ROT0, "NMK / Tecmo", "Saboten Bombers (set 1)", GAME_NO_COCKTAIL ) | |
| 6930 | GAME( 1992, sabotnba, sabotenb,bjtwin, sabotenb, nmk, ROT0, "NMK / Tecmo", "Saboten Bombers (set 2)", GAME_NO_COCKTAIL ) | |
| 6931 | GAME( 1993, bjtwin, 0, bjtwin, bjtwin, bjtwin, ROT270, "NMK", "Bombjack Twin", GAME_NO_COCKTAIL ) | |
| 6932 | GAME( 1995, nouryoku, 0, bjtwin, nouryoku, nmk, ROT0, "Tecmo", "Nouryoku Koujou Iinkai", GAME_NO_COCKTAIL ) | |
| 6949 | GAME( 1992, sabotenb, 0, bjtwin, sabotenb, nmk, ROT0, "NMK / Tecmo", "Saboten Bombers (set 1)", GAME_NO_COCKTAIL ) | |
| 6950 | GAME( 1992, sabotnba, sabotenb, bjtwin, sabotenb, nmk, ROT0, "NMK / Tecmo", "Saboten Bombers (set 2)", GAME_NO_COCKTAIL ) | |
| 6951 | GAME( 1993, bjtwin, 0, bjtwin, bjtwin, bjtwin, ROT270, "NMK", "Bombjack Twin", GAME_NO_COCKTAIL ) | |
| 6952 | GAME( 1995, nouryoku, 0, bjtwin, nouryoku, nmk, ROT0, "Tecmo", "Nouryoku Koujou Iinkai", GAME_NO_COCKTAIL ) | |
| 6933 | 6953 | |
| 6934 | 6954 | /* Non NMK boards */ |
| 6935 | 6955 | |
| 6936 | 6956 | // these use the seibu sound system (sound / music stolen from Raiden) rather than the bootleggers copying the nmk004 |
| 6937 | GAME( 1990, mustangb, mustang, mustangb, mustang, 0, ROT0, "bootleg", "US AAF Mustang (bootleg)", GAME_UNEMULATED_PROTECTION ) // Playable but there are Still Protection Problems | |
| 6938 | GAME( 1991, tdragonb, tdragon, tdragonb, tdragonb, tdragonb, ROT270, "NMK / Tecmo", "Thunder Dragon (Bootleg)", 0 ) | |
| 6957 | GAME( 1990, mustangb, mustang, mustangb, mustang, 0, ROT0, "bootleg", "US AAF Mustang (bootleg)", GAME_UNEMULATED_PROTECTION ) // Playable but there are Still Protection Problems | |
| 6958 | GAME( 1991, tdragonb, tdragon, tdragonb, tdragonb, tdragonb, ROT270, "NMK / Tecmo", "Thunder Dragon (Bootleg)", 0 ) | |
| 6939 | 6959 | |
| 6940 | 6960 | // these are from Comad, based on the Thunder Dragon code? |
| 6941 | GAME( 1992, ssmissin, 0, ssmissin, ssmissin, ssmissin, ROT270, "Comad", "S.S. Mission", GAME_NO_COCKTAIL ) | |
| 6942 | GAME( 1996, airattck, 0, ssmissin, airattck, ssmissin, ROT270, "Comad", "Air Attack (set 1)", GAME_NO_COCKTAIL ) | |
| 6943 | GAME( 1996, airattca, airattck,ssmissin, airattck, ssmissin, ROT270, "Comad", "Air Attack (set 2)", GAME_NO_COCKTAIL ) | |
| 6961 | GAME( 1992, ssmissin, 0, ssmissin, ssmissin, ssmissin, ROT270, "Comad", "S.S. Mission", GAME_NO_COCKTAIL ) | |
| 6962 | GAME( 1996, airattck, 0, ssmissin, airattck, ssmissin, ROT270, "Comad", "Air Attack (set 1)", GAME_NO_COCKTAIL ) | |
| 6963 | GAME( 1996, airattca, airattck, ssmissin, airattck, ssmissin, ROT270, "Comad", "Air Attack (set 2)", GAME_NO_COCKTAIL ) | |
| 6944 | 6964 | |
| 6945 | 6965 | // afega & clones |
| 6946 | GAME( 1995, twinactn, 0, twinactn, twinactn, 0, ROT0, "Afega", "Twin Action", 0 ) | |
| 6947 | GAME( 1997, redhawk, stagger1, stagger1, stagger1, redhawk, ROT270, "Afega", "Red Hawk (US)", 0 ) | |
| 6948 | GAME( 1997, redhawkb, stagger1, redhawkb, redhawkb, 0, ROT0, "bootleg", "Red Hawk (bootleg)", 0 ) | |
| 6949 | GAME( 1998, stagger1, 0, stagger1, stagger1, 0, ROT270, "Afega", "Stagger I (Japan)", 0 ) | |
| 6950 | GAME( 1998, grdnstrm, 0, grdnstrm, grdnstrm, grdnstrm, ROT270, "Afega", "Sen Jin - Guardian Storm (Korea)", 0 ) | |
| 6951 | GAME( 1998, bubl2000, 0, bubl2000, bubl2000, bubl2000, ROT0, "Tuning", "Bubble 2000", 0 ) // on a tuning board (bootleg?) | |
| 6952 | GAME( 1998, hotbubl, bubl2000, bubl2000, bubl2000, bubl2000, ROT0, "Pandora", "Hot Bubble" , 0 ) // on an afega board .. | |
| 6953 | GAME( 1999, popspops, 0, popspops, popspops, grdnstrm, ROT0, "Afega", "Pop's Pop's", 0 ) | |
| 6954 | GAME( 2000, mangchi, 0, bubl2000, mangchi, bubl2000, ROT0, "Afega", "Mang-Chi", 0 ) | |
| 6955 | GAME( 2000, spec2k, 0, firehawk, spec2k, spec2k, ORIENTATION_FLIP_Y, "Yonatech", "Spectrum 2000 (Euro)", 0 ) | |
| 6956 | GAME( 2001, firehawk, 0, firehawk, firehawk, 0, ORIENTATION_FLIP_Y, "ESD", "Fire Hawk", 0 ) | |
| 6966 | GAME( 1995, twinactn, 0, twinactn, twinactn, 0, ROT0, "Afega", "Twin Action", 0 ) | |
| 6967 | GAME( 1998, stagger1, 0, stagger1, stagger1, 0, ROT270, "Afega", "Stagger I (Japan)", 0 ) | |
| 6968 | GAME( 1997, redhawk, stagger1, stagger1, stagger1, redhawk, ROT270, "Afega", "Red Hawk (US)", 0 ) | |
| 6969 | GAME( 1997, redhawke, stagger1, stagger1, stagger1, 0, ROT270, "Afega (Excellent Co. license)", "Red Hawk (Excellent Co., Ltd)", 0 ) | |
| 6970 | GAME( 1997, redhawkb, stagger1, redhawkb, redhawkb, 0, ROT0, "bootleg", "Red Hawk (bootleg)", 0 ) | |
| 6971 | GAME( 1998, grdnstrm, 0, grdnstrm, grdnstrm, grdnstrm, ROT270, "Afega", "Sen Jin - Guardian Storm (Korea)", 0 ) | |
| 6972 | GAME( 1998, bubl2000, 0, popspops, bubl2000, bubl2000, ROT0, "Tuning", "Bubble 2000", 0 ) // on a tuning board (bootleg?) | |
| 6973 | GAME( 1998, hotbubl, bubl2000, popspops, bubl2000, bubl2000, ROT0, "Pandora", "Hot Bubble" , 0 ) // on an afega board .. | |
| 6974 | GAME( 1999, popspops, 0, popspops, popspops, grdnstrm, ROT0, "Afega", "Pop's Pop's", 0 ) | |
| 6975 | GAME( 2000, mangchi, 0, popspops, mangchi, bubl2000, ROT0, "Afega", "Mang-Chi", 0 ) | |
| 6976 | GAME( 2000, spec2k, 0, firehawk, spec2k, spec2k, ORIENTATION_FLIP_Y, "Yonatech", "Spectrum 2000 (Euro)", 0 ) | |
| 6977 | GAME( 2001, firehawk, 0, firehawk, firehawk, 0, ORIENTATION_FLIP_Y, "ESD", "Fire Hawk", 0 ) | |
| 6957 | 6978 | |
| 6958 | 6979 | // bee-oh board - different display / interrupt timing to others? |
| 6959 | GAME( 1991, manybloc, 0, manybloc, manybloc, 0, ROT270, | |
| 6980 | GAME( 1991, manybloc, 0, manybloc, manybloc, 0, ROT270, | |
| 6960 | 6981 |
| r1711 | r1712 | |
|---|---|---|
| 182 | 182 | |
| 183 | 183 | static VIDEO_START( miniboy7 ) |
| 184 | 184 | { |
| 185 | mc6845 = mc6845 | |
| 185 | mc6845 = devtag_get_token(machine, MC6845, "crtc" | |
| 186 | 186 | bg_tilemap = tilemap_create(get_bg_tile_info, tilemap_scan_rows, 8, 8, 37, 37); |
| 187 | 187 | } |
| 188 | 188 | |
| r1711 | r1712 | |
| 275 | 275 | MDRV_CPU_PROGRAM_MAP(miniboy7_map, 0) |
| 276 | 276 | MDRV_CPU_VBLANK_INT(nmi_line_pulse, 1) |
| 277 | 277 | |
| 278 | /* video hardware */ | |
| 279 | MDRV_SCREEN_ADD("main", RASTER) | |
| 278 | 280 | MDRV_SCREEN_REFRESH_RATE(60) |
| 279 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) | |
| 280 | ||
| 281 | /* video hardware */ | |
| 282 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 281 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 283 | 282 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 284 | 283 | MDRV_SCREEN_SIZE((47+1)*8, (39+1)*8) /* Taken from MC6845, registers 00 & 04. Normally programmed with (value-1) */ |
| 285 | 284 | MDRV_SCREEN_VISIBLE_AREA(0*8, 37*8-1, 0*8, 37*8-1) /* Taken from MC6845, registers 01 & 06 */ |
| r1711 | r1712 | |
| 287 | 286 | MDRV_GFXDECODE(miniboy7) |
| 288 | 287 | |
| 289 | 288 | MDRV_PALETTE_LENGTH(256) |
| 290 | MDRV_COLORTABLE_LENGTH(1024) | |
| 291 | 289 | |
| 292 | 290 | MDRV_VIDEO_START(miniboy7) |
| 293 | 291 | MDRV_VIDEO_UPDATE(miniboy7) |
| 292 | ||
| 293 | MDRV_DEVICE_ADD("crtc", MC6845) | |
| 294 | 294 | MACHINE_DRIVER_END |
| 295 | 295 | |
| 296 | 296 |
| r1711 | r1712 | |
|---|---|---|
| 723 | 723 | * |
| 724 | 724 | *************************************/ |
| 725 | 725 | |
| 726 | static const char *m10_sample_names[] = | |
| 726 | static const char *const m10_sample_names[] = | |
| 727 | 727 | { |
| 728 | 728 | "*ipminvad", |
| 729 | 729 | "1.wav", /* shot/missle */ |
| r1711 | r1712 | |
| 740 | 740 | }; |
| 741 | 741 | |
| 742 | 742 | |
| 743 | static struct Samplesinterface m10_samples_interface = | |
| 743 | static const struct Samplesinterface m10_samples_interface = | |
| 744 | 744 | { |
| 745 | 745 | 6, /* 6 channels */ |
| 746 | 746 | m10_sample_names |
| r1711 | r1712 | |
| 764 | 764 | |
| 765 | 765 | MDRV_CPU_VBLANK_INT(m10_interrupt,1) |
| 766 | 766 | |
| 767 | /* video hardware */ | |
| 768 | MDRV_SCREEN_ADD("main", RASTER) | |
| 769 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 767 | 770 | MDRV_SCREEN_RAW_PARAMS(IREMM10_PIXEL_CLOCK, IREMM10_HTOTAL, IREMM10_HBEND, IREMM10_HBSTART, IREMM10_VTOTAL, IREMM10_VBEND, IREMM10_VBSTART) |
| 768 | 771 | |
| 769 | /* video hardware */ | |
| 770 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 771 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 772 | 772 | MDRV_GFXDECODE(m10) |
| 773 | 773 | MDRV_PALETTE_LENGTH(2*8) |
| 774 | 774 | |
| r1711 | r1712 | |
| 811 | 811 | |
| 812 | 812 | MDRV_CPU_VBLANK_INT(m15_interrupt,1) |
| 813 | 813 | |
| 814 | /* video hardware */ | |
| 815 | MDRV_SCREEN_ADD("main", RASTER) | |
| 816 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 814 | 817 | MDRV_SCREEN_RAW_PARAMS(IREMM15_PIXEL_CLOCK, IREMM15_HTOTAL, IREMM15_HBEND, IREMM15_HBSTART, IREMM15_VTOTAL, IREMM15_VBEND, IREMM15_VBSTART) |
| 815 | 818 | |
| 816 | /* video hardware */ | |
| 817 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 818 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 819 | 819 | MDRV_PALETTE_LENGTH(2*8) |
| 820 | 820 | |
| 821 | 821 | MDRV_PALETTE_INIT(m10) |
| r1711 | r1712 | |
|---|---|---|
| 167 | 167 | MDRV_CPU_VBLANK_INT(irq0_line_hold, 1) |
| 168 | 168 | MDRV_WATCHDOG_VBLANK_INIT(3) |
| 169 | 169 | |
| 170 | MDRV_SCREEN_REFRESH_RATE(57) // how is this derived? | |
| 171 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) | |
| 172 | ||
| 173 | 170 | MDRV_MACHINE_RESET(nitedrvr) |
| 174 | 171 | |
| 175 | 172 | // video hardware |
| 176 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 173 | ||
| 174 | MDRV_SCREEN_ADD("main", RASTER) | |
| 175 | MDRV_SCREEN_REFRESH_RATE(57) // how is this derived? | |
| 176 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 177 | 177 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 178 | 178 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 179 | 179 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 32*8-1) |
| 180 | ||
| 180 | 181 | MDRV_GFXDECODE(nitedrvr) |
| 181 | 182 | MDRV_PALETTE_LENGTH(2) |
| 182 | 183 |
| r1711 | r1712 | |
|---|---|---|
| 1 | 1 | //============================================================ |
| 2 | 2 | // |
| 3 | // d3d | |
| 3 | // d3d8intf.c - Direct3D 8.1 abstraction layer | |
| 4 | 4 | // |
| 5 | 5 | // Copyright Nicola Salmoria and the MAME Team. |
| 6 | 6 | // Visit http://mamedev.org for licensing and usage restrictions. |
| r1711 | r1712 | |
| 252 | 252 | // Direct3DDevice interfaces |
| 253 | 253 | //============================================================ |
| 254 | 254 | |
| 255 | static HRESULT device_begin_scene(d3d_device *dev) | |
| 255 | static HRESULT d3d_device_begin_scene(d3d_device *dev) | |
| 256 | 256 | { |
| 257 | 257 | IDirect3DDevice8 *device = (IDirect3DDevice8 *)dev; |
| 258 | 258 | return IDirect3DDevice8_BeginScene(device); |
| 259 | 259 | } |
| 260 | 260 | |
| 261 | 261 | |
| 262 | static HRESULT device_clear(d3d_device *dev, DWORD count, const D3DRECT *rects, DWORD flags, D3DCOLOR color, float z, DWORD stencil) | |
| 262 | static HRESULT d3d_device_clear(d3d_device *dev, DWORD count, const D3DRECT *rects, DWORD flags, D3DCOLOR color, float z, DWORD stencil) | |
| 263 | 263 | { |
| 264 | 264 | IDirect3DDevice8 *device = (IDirect3DDevice8 *)dev; |
| 265 | 265 | return IDirect3DDevice8_Clear(device, count, rects, flags, color, z, stencil); |
| 266 | 266 | } |
| 267 | 267 | |
| 268 | 268 | |
| 269 | static HRESULT device_create_offscreen_plain_surface(d3d_device *dev, UINT width, UINT height, D3DFORMAT format, D3DPOOL pool, d3d_surface **surface) | |
| 269 | static HRESULT d3d_device_create_offscreen_plain_surface(d3d_device *dev, UINT width, UINT height, D3DFORMAT format, D3DPOOL pool, d3d_surface **surface) | |
| 270 | 270 | { |
| 271 | 271 | assert(FALSE); |
| 272 | 272 | return D3D_OK; |
| 273 | 273 | } |
| 274 | 274 | |
| 275 | 275 | |
| 276 | static HRESULT device_create_texture(d3d_device *dev, UINT width, UINT height, UINT levels, DWORD usage, D3DFORMAT format, D3DPOOL pool, d3d_texture **texture) | |
| 276 | static HRESULT d3d_device_create_texture(d3d_device *dev, UINT width, UINT height, UINT levels, DWORD usage, D3DFORMAT format, D3DPOOL pool, d3d_texture **texture) | |
| 277 | 277 | { |
| 278 | 278 | IDirect3DDevice8 *device = (IDirect3DDevice8 *)dev; |
| 279 | 279 | return IDirect3DDevice8_CreateTexture(device, width, height, levels, usage, format, pool, (IDirect3DTexture8 **)texture); |
| 280 | 280 | } |
| 281 | 281 | |
| 282 | 282 | |
| 283 | static HRESULT device_create_vertex_buffer(d3d_device *dev, UINT length, DWORD usage, DWORD fvf, D3DPOOL pool, d3d_vertex_buffer **buf) | |
| 283 | static HRESULT d3d_device_create_vertex_buffer(d3d_device *dev, UINT length, DWORD usage, DWORD fvf, D3DPOOL pool, d3d_vertex_buffer **buf) | |
| 284 | 284 | { |
| 285 | 285 | IDirect3DDevice8 *device = (IDirect3DDevice8 *)dev; |
| 286 | 286 | return IDirect3DDevice8_CreateVertexBuffer(device, length, usage, fvf, pool, (IDirect3DVertexBuffer8 **)buf); |
| 287 | 287 | } |
| 288 | 288 | |
| 289 | 289 | |
| 290 | static HRESULT device_draw_primitive(d3d_device *dev, D3DPRIMITIVETYPE type, UINT start, UINT count) | |
| 290 | static HRESULT d3d_device_draw_primitive(d3d_device *dev, D3DPRIMITIVETYPE type, UINT start, UINT count) | |
| 291 | 291 | { |
| 292 | 292 | IDirect3DDevice8 *device = (IDirect3DDevice8 *)dev; |
| 293 | 293 | return IDirect3DDevice8_DrawPrimitive(device, type, start, count); |
| 294 | 294 | } |
| 295 | 295 | |
| 296 | 296 | |
| 297 | static HRESULT device_end_scene(d3d_device *dev) | |
| 297 | static HRESULT d3d_device_end_scene(d3d_device *dev) | |
| 298 | 298 | { |
| 299 | 299 | IDirect3DDevice8 *device = (IDirect3DDevice8 *)dev; |
| 300 | 300 | return IDirect3DDevice8_EndScene(device); |
| 301 | 301 | } |
| 302 | 302 | |
| 303 | 303 | |
| 304 | static HRESULT device_get_raster_status(d3d_device *dev, D3DRASTER_STATUS *status) | |
| 304 | static HRESULT d3d_device_get_raster_status(d3d_device *dev, D3DRASTER_STATUS *status) | |
| 305 | 305 | { |
| 306 | 306 | IDirect3DDevice8 *device = (IDirect3DDevice8 *)dev; |
| 307 | 307 | return IDirect3DDevice8_GetRasterStatus(device, status); |
| 308 | 308 | } |
| 309 | 309 | |
| 310 | 310 | |
| 311 | static HRESULT device_get_render_target(d3d_device *dev, DWORD index, d3d_surface **surface) | |
| 311 | static HRESULT d3d_device_get_render_target(d3d_device *dev, DWORD index, d3d_surface **surface) | |
| 312 | 312 | { |
| 313 | 313 | IDirect3DDevice8 *device = (IDirect3DDevice8 *)dev; |
| 314 | 314 | assert(index == 0); |
| r1711 | r1712 | |
| 316 | 316 | } |
| 317 | 317 | |
| 318 | 318 | |
| 319 | static HRESULT device_present(d3d_device *dev, const RECT *source, const RECT *dest, HWND override, RGNDATA *dirty, DWORD flags) | |
| 319 | static HRESULT d3d_device_present(d3d_device *dev, const RECT *source, const RECT *dest, HWND override, RGNDATA *dirty, DWORD flags) | |
| 320 | 320 | { |
| 321 | 321 | IDirect3DDevice8 *device = (IDirect3DDevice8 *)dev; |
| 322 | 322 | return IDirect3DDevice8_Present(device, source, dest, override, dirty); |
| 323 | 323 | } |
| 324 | 324 | |
| 325 | 325 | |
| 326 | static ULONG device_release(d3d_device *dev) | |
| 326 | static ULONG d3d_device_release(d3d_device *dev) | |
| 327 | 327 | { |
| 328 | 328 | IDirect3DDevice8 *device = (IDirect3DDevice8 *)dev; |
| 329 | 329 | return IDirect3DDevice8_Release(device); |
| 330 | 330 | } |
| 331 | 331 | |
| 332 | 332 | |
| 333 | static HRESULT device_reset(d3d_device *dev, d3d_present_parameters *params) | |
| 333 | static HRESULT d3d_device_reset(d3d_device *dev, d3d_present_parameters *params) | |
| 334 | 334 | { |
| 335 | 335 | IDirect3DDevice8 *device = (IDirect3DDevice8 *)dev; |
| 336 | 336 | D3DPRESENT_PARAMETERS d3d8params; |
| r1711 | r1712 | |
| 339 | 339 | } |
| 340 | 340 | |
| 341 | 341 | |
| 342 | static void device_set_gamma_ramp(d3d_device *dev, DWORD flags, const D3DGAMMARAMP *ramp) | |
| 342 | static void d3d_device_set_gamma_ramp(d3d_device *dev, DWORD flags, const D3DGAMMARAMP *ramp) | |
| 343 | 343 | { |
| 344 | 344 | IDirect3DDevice8 *device = (IDirect3DDevice8 *)dev; |
| 345 | 345 | IDirect3DDevice8_SetGammaRamp(device, flags, ramp); |
| 346 | 346 | } |
| 347 | 347 | |
| 348 | 348 | |
| 349 | static HRESULT device_set_render_state(d3d_device *dev, D3DRENDERSTATETYPE state, DWORD value) | |
| 349 | static HRESULT d3d_device_set_render_state(d3d_device *dev, D3DRENDERSTATETYPE state, DWORD value) | |
| 350 | 350 | { |
| 351 | 351 | IDirect3DDevice8 *device = (IDirect3DDevice8 *)dev; |
| 352 | 352 | return IDirect3DDevice8_SetRenderState(device, state, value); |
| 353 | 353 | } |
| 354 | 354 | |
| 355 | 355 | |
| 356 | static HRESULT device_set_render_target(d3d_device *dev, DWORD index, d3d_surface *surf) | |
| 356 | static HRESULT d3d_device_set_render_target(d3d_device *dev, DWORD index, d3d_surface *surf) | |
| 357 | 357 | { |
| 358 | 358 | IDirect3DDevice8 *device = (IDirect3DDevice8 *)dev; |
| 359 | 359 | IDirect3DSurface8 *surface = (IDirect3DSurface8 *)surf; |
| r1711 | r1712 | |
| 362 | 362 | } |
| 363 | 363 | |
| 364 | 364 | |
| 365 | static HRESULT device_set_stream_source(d3d_device *dev, UINT number, d3d_vertex_buffer *vbuf, UINT stride) | |
| 365 | static HRESULT d3d_device_set_stream_source(d3d_device *dev, UINT number, d3d_vertex_buffer *vbuf, UINT stride) | |
| 366 | 366 | { |
| 367 | 367 | IDirect3DDevice8 *device = (IDirect3DDevice8 *)dev; |
| 368 | 368 | IDirect3DVertexBuffer8 *vertexbuf = (IDirect3DVertexBuffer8 *)vbuf; |
| r1711 | r1712 | |
| 370 | 370 | } |
| 371 | 371 | |
| 372 | 372 | |
| 373 | static HRESULT device_set_texture(d3d_device *dev, DWORD stage, d3d_texture *tex) | |
| 373 | static HRESULT d3d_device_set_texture(d3d_device *dev, DWORD stage, d3d_texture *tex) | |
| 374 | 374 | { |
| 375 | 375 | IDirect3DDevice8 *device = (IDirect3DDevice8 *)dev; |
| 376 | 376 | IDirect3DBaseTexture8 *texture = (IDirect3DBaseTexture8 *)tex; |
| r1711 | r1712 | |
| 378 | 378 | } |
| 379 | 379 | |
| 380 | 380 | |
| 381 | static HRESULT device_set_texture_stage_state(d3d_device *dev, DWORD stage, D3DTEXTURESTAGESTATETYPE state, DWORD value) | |
| 381 | static HRESULT d3d_device_set_texture_stage_state(d3d_device *dev, DWORD stage, D3DTEXTURESTAGESTATETYPE state, DWORD value) | |
| 382 | 382 | { |
| 383 | 383 | IDirect3DDevice8 *device = (IDirect3DDevice8 *)dev; |
| 384 | 384 | return IDirect3DDevice8_SetTextureStageState(device, stage, state, value); |
| 385 | 385 | } |
| 386 | 386 | |
| 387 | 387 | |
| 388 | static HRESULT device_set_vertex_shader(d3d_device *dev, D3DFORMAT format) | |
| 388 | static HRESULT d3d_device_set_vertex_shader(d3d_device *dev, D3DFORMAT format) | |
| 389 | 389 | { |
| 390 | 390 | IDirect3DDevice8 *device = (IDirect3DDevice8 *)dev; |
| 391 | 391 | return IDirect3DDevice8_SetVertexShader(device, format); |
| 392 | 392 | } |
| 393 | 393 | |
| 394 | 394 | |
| 395 | static HRESULT device_stretch_rect(d3d_device *dev, d3d_surface *source, const RECT *srcrect, d3d_surface *dest, const RECT *dstrect, D3DTEXTUREFILTERTYPE filter) | |
| 395 | static HRESULT d3d_device_stretch_rect(d3d_device *dev, d3d_surface *source, const RECT *srcrect, d3d_surface *dest, const RECT *dstrect, D3DTEXTUREFILTERTYPE filter) | |
| 396 | 396 | { |
| 397 | 397 | assert(FALSE); |
| 398 | 398 | return D3D_OK; |
| 399 | 399 | } |
| 400 | 400 | |
| 401 | 401 | |
| 402 | static HRESULT device_test_cooperative_level(d3d_device *dev) | |
| 402 | static HRESULT d3d_device_test_cooperative_level(d3d_device *dev) | |
| 403 | 403 | { |
| 404 | 404 | IDirect3DDevice8 *device = (IDirect3DDevice8 *)dev; |
| 405 | 405 | return IDirect3DDevice8_TestCooperativeLevel(device); |
| r1711 | r1712 | |
| 408 | 408 | |
| 409 | 409 | static const d3d_device_interface d3d8_device_interface = |
| 410 | 410 | { |
| 411 | device_begin_scene, | |
| 412 | device_clear, | |
| 413 | device_create_offscreen_plain_surface, | |
| 414 | device_create_texture, | |
| 415 | device_create_vertex_buffer, | |
| 416 | device_draw_primitive, | |
| 417 | device_end_scene, | |
| 418 | device_get_raster_status, | |
| 419 | device_get_render_target, | |
| 420 | device_present, | |
| 421 | device_release, | |
| 422 | device_reset, | |
| 423 | device_set_gamma_ramp, | |
| 424 | device_set_render_state, | |
| 425 | device_set_render_target, | |
| 426 | device_set_stream_source, | |
| 427 | device_set_texture, | |
| 428 | device_set_texture_stage_state, | |
| 429 | device_set_vertex_shader, | |
| 430 | device_stretch_rect, | |
| 431 | device_test_cooperative_level | |
| 411 | d3d_device_begin_scene, | |
| 412 | d3d_device_clear, | |
| 413 | d3d_device_create_offscreen_plain_surface, | |
| 414 | d3d_device_create_texture, | |
| 415 | d3d_device_create_vertex_buffer, | |
| 416 | d3d_device_draw_primitive, | |
| 417 | d3d_device_end_scene, | |
| 418 | d3d_device_get_raster_status, | |
| 419 | d3d_device_get_render_target, | |
| 420 | d3d_device_present, | |
| 421 | d3d_device_release, | |
| 422 | d3d_device_reset, | |
| 423 | d3d_device_set_gamma_ramp, | |
| 424 | d3d_device_set_render_state, | |
| 425 | d3d_device_set_render_target, | |
| 426 | d3d_device_set_stream_source, | |
| 427 | d3d_device_set_texture, | |
| 428 | d3d_device_set_texture_stage_state, | |
| 429 | d3d_device_set_vertex_shader, | |
| 430 | d3d_device_stretch_rect, | |
| 431 | d3d_device_test_cooperative_level | |
| 432 | 432 | }; |
| 433 | 433 | |
| 434 | 434 | |
| r1711 | r1712 | |
| 437 | 437 | // Direct3DSurface interfaces |
| 438 | 438 | //============================================================ |
| 439 | 439 | |
| 440 | static HRESULT surface_lock_rect(d3d_surface *surf, D3DLOCKED_RECT *locked, const RECT *rect, DWORD flags) | |
| 440 | static HRESULT d3d_surface_lock_rect(d3d_surface *surf, D3DLOCKED_RECT *locked, const RECT *rect, DWORD flags) | |
| 441 | 441 | { |
| 442 | 442 | IDirect3DSurface8 *surface = (IDirect3DSurface8 *)surf; |
| 443 | 443 | return IDirect3DSurface8_LockRect(surface, locked, rect, flags); |
| 444 | 444 | } |
| 445 | 445 | |
| 446 | 446 | |
| 447 | static ULONG surface_release(d3d_surface *surf) | |
| 447 | static ULONG d3d_surface_release(d3d_surface *surf) | |
| 448 | 448 | { |
| 449 | 449 | IDirect3DSurface8 *surface = (IDirect3DSurface8 *)surf; |
| 450 | 450 | return IDirect3DSurface8_Release(surface); |
| 451 | 451 | } |
| 452 | 452 | |
| 453 | 453 | |
| 454 | static HRESULT surface_unlock_rect(d3d_surface *surf) | |
| 454 | static HRESULT d3d_surface_unlock_rect(d3d_surface *surf) | |
| 455 | 455 | { |
| 456 | 456 | IDirect3DSurface8 *surface = (IDirect3DSurface8 *)surf; |
| 457 | 457 | return IDirect3DSurface8_UnlockRect(surface); |
| r1711 | r1712 | |
| 460 | 460 | |
| 461 | 461 | static const d3d_surface_interface d3d8_surface_interface = |
| 462 | 462 | { |
| 463 | surface_lock_rect, | |
| 464 | surface_release, | |
| 465 | surface_unlock_rect | |
| 463 | d3d_surface_lock_rect, | |
| 464 | d3d_surface_release, | |
| 465 | d3d_surface_unlock_rect | |
| 466 | 466 | }; |
| 467 | 467 | |
| 468 | 468 | |
| r1711 | r1712 | |
| 471 | 471 | // Direct3DTexture interfaces |
| 472 | 472 | //============================================================ |
| 473 | 473 | |
| 474 | static HRESULT texture_get_surface_level(d3d_texture *tex, UINT level, d3d_surface **surface) | |
| 474 | static HRESULT d3d_texture_get_surface_level(d3d_texture *tex, UINT level, d3d_surface **surface) | |
| 475 | 475 | { |
| 476 | 476 | IDirect3DTexture8 *texture = (IDirect3DTexture8 *)tex; |
| 477 | 477 | return IDirect3DTexture8_GetSurfaceLevel(texture, level, (IDirect3DSurface8 **)surface); |
| 478 | 478 | } |
| 479 | 479 | |
| 480 | 480 | |
| 481 | static HRESULT texture_lock_rect(d3d_texture *tex, UINT level, D3DLOCKED_RECT *locked, const RECT *rect, DWORD flags) | |
| 481 | static HRESULT d3d_texture_lock_rect(d3d_texture *tex, UINT level, D3DLOCKED_RECT *locked, const RECT *rect, DWORD flags) | |
| 482 | 482 | { |
| 483 | 483 | IDirect3DTexture8 *texture = (IDirect3DTexture8 *)tex; |
| 484 | 484 | return IDirect3DTexture8_LockRect(texture, level, locked, rect, flags); |
| 485 | 485 | } |
| 486 | 486 | |
| 487 | 487 | |
| 488 | static ULONG texture_release(d3d_texture *tex) | |
| 488 | static ULONG d3d_texture_release(d3d_texture *tex) | |
| 489 | 489 | { |
| 490 | 490 | IDirect3DTexture8 *texture = (IDirect3DTexture8 *)tex; |
| 491 | 491 | return IDirect3DTexture8_Release(texture); |
| 492 | 492 | } |
| 493 | 493 | |
| 494 | 494 | |
| 495 | static HRESULT texture_unlock_rect(d3d_texture *tex, UINT level) | |
| 495 | static HRESULT d3d_texture_unlock_rect(d3d_texture *tex, UINT level) | |
| 496 | 496 | { |
| 497 | 497 | IDirect3DTexture8 *texture = (IDirect3DTexture8 *)tex; |
| 498 | 498 | return IDirect3DTexture8_UnlockRect(texture, level); |
| r1711 | r1712 | |
| 501 | 501 | |
| 502 | 502 | static const d3d_texture_interface d3d8_texture_interface = |
| 503 | 503 | { |
| 504 | texture_get_surface_level, | |
| 505 | texture_lock_rect, | |
| 506 | texture_release, | |
| 507 | texture_unlock_rect | |
| 504 | d3d_texture_get_surface_level, | |
| 505 | d3d_texture_lock_rect, | |
| 506 | d3d_texture_release, | |
| 507 | d3d_texture_unlock_rect | |
| 508 | 508 | }; |
| 509 | 509 | |
| 510 | 510 | |
| r1711 | r1712 | |
| 513 | 513 | // Direct3DVertexBuffer interfaces |
| 514 | 514 | //============================================================ |
| 515 | 515 | |
| 516 | static HRESULT vertex_buffer_lock(d3d_vertex_buffer *vbuf, UINT offset, UINT size, VOID **data, DWORD flags) | |
| 516 | static HRESULT d3d_vertex_buffer_lock(d3d_vertex_buffer *vbuf, UINT offset, UINT size, VOID **data, DWORD flags) | |
| 517 | 517 | { |
| 518 | 518 | IDirect3DVertexBuffer8 *vertexbuf = (IDirect3DVertexBuffer8 *)vbuf; |
| 519 | 519 | return IDirect3DVertexBuffer8_Lock(vertexbuf, offset, size, (BYTE **)data, flags); |
| 520 | 520 | } |
| 521 | 521 | |
| 522 | 522 | |
| 523 | static ULONG vertex_buffer_release(d3d_vertex_buffer *vbuf) | |
| 523 | static ULONG d3d_vertex_buffer_release(d3d_vertex_buffer *vbuf) | |
| 524 | 524 | { |
| 525 | 525 | IDirect3DVertexBuffer8 *vertexbuf = (IDirect3DVertexBuffer8 *)vbuf; |
| 526 | 526 | return IDirect3DVertexBuffer8_Release(vertexbuf); |
| 527 | 527 | } |
| 528 | 528 | |
| 529 | 529 | |
| 530 | static HRESULT vertex_buffer_unlock(d3d_vertex_buffer *vbuf) | |
| 530 | static HRESULT d3d_vertex_buffer_unlock(d3d_vertex_buffer *vbuf) | |
| 531 | 531 | { |
| 532 | 532 | IDirect3DVertexBuffer8 *vertexbuf = (IDirect3DVertexBuffer8 *)vbuf; |
| 533 | 533 | return IDirect3DVertexBuffer8_Unlock(vertexbuf); |
| r1711 | r1712 | |
| 536 | 536 | |
| 537 | 537 | static const d3d_vertex_buffer_interface d3d8_vertex_buffer_interface = |
| 538 | 538 | { |
| 539 | vertex_buffer_lock, | |
| 540 | vertex_buffer_release, | |
| 541 | vertex_buffer_unlock | |
| 539 | d3d_vertex_buffer_lock, | |
| 540 | d3d_vertex_buffer_release, | |
| 541 | d3d_vertex_buffer_unlock | |
| 542 | 542 | }; |
| 543 | 543 | |
| 544 | 544 |
| r1711 | r1712 | |
|---|---|---|
| 250 | 250 | // Direct3DDevice interfaces |
| 251 | 251 | //============================================================ |
| 252 | 252 | |
| 253 | static HRESULT device_begin_scene(d3d_device *dev) | |
| 253 | static HRESULT d3d_device_begin_scene(d3d_device *dev) | |
| 254 | 254 | { |
| 255 | 255 | IDirect3DDevice9 *device = (IDirect3DDevice9 *)dev; |
| 256 | 256 | return IDirect3DDevice9_BeginScene(device); |
| 257 | 257 | } |
| 258 | 258 | |
| 259 | 259 | |
| 260 | static HRESULT device_clear(d3d_device *dev, DWORD count, const D3DRECT *rects, DWORD flags, D3DCOLOR color, float z, DWORD stencil) | |
| 260 | static HRESULT d3d_device_clear(d3d_device *dev, DWORD count, const D3DRECT *rects, DWORD flags, D3DCOLOR color, float z, DWORD stencil) | |
| 261 | 261 | { |
| 262 | 262 | IDirect3DDevice9 *device = (IDirect3DDevice9 *)dev; |
| 263 | 263 | return IDirect3DDevice9_Clear(device, count, rects, flags, color, z, stencil); |
| 264 | 264 | } |
| 265 | 265 | |
| 266 | 266 | |
| 267 | static HRESULT device_create_offscreen_plain_surface(d3d_device *dev, UINT width, UINT height, D3DFORMAT format, D3DPOOL pool, d3d_surface **surface) | |
| 267 | static HRESULT d3d_device_create_offscreen_plain_surface(d3d_device *dev, UINT width, UINT height, D3DFORMAT format, D3DPOOL pool, d3d_surface **surface) | |
| 268 | 268 | { |
| 269 | 269 | IDirect3DDevice9 *device = (IDirect3DDevice9 *)dev; |
| 270 | 270 | return IDirect3DDevice9_CreateOffscreenPlainSurface(device, width, height, format, pool, (IDirect3DSurface9 **)surface, NULL); |
| 271 | 271 | } |
| 272 | 272 | |
| 273 | 273 | |
| 274 | static HRESULT device_create_texture(d3d_device *dev, UINT width, UINT height, UINT levels, DWORD usage, D3DFORMAT format, D3DPOOL pool, d3d_texture **texture) | |
| 274 | static HRESULT d3d_device_create_texture(d3d_device *dev, UINT width, UINT height, UINT levels, DWORD usage, D3DFORMAT format, D3DPOOL pool, d3d_texture **texture) | |
| 275 | 275 | { |
| 276 | 276 | IDirect3DDevice9 *device = (IDirect3DDevice9 *)dev; |
| 277 | 277 | return IDirect3DDevice9_CreateTexture(device, width, height, levels, usage, format, pool, (IDirect3DTexture9 **)texture, NULL); |
| 278 | 278 | } |
| 279 | 279 | |
| 280 | 280 | |
| 281 | static HRESULT device_create_vertex_buffer(d3d_device *dev, UINT length, DWORD usage, DWORD fvf, D3DPOOL pool, d3d_vertex_buffer **buf) | |
| 281 | static HRESULT d3d_device_create_vertex_buffer(d3d_device *dev, UINT length, DWORD usage, DWORD fvf, D3DPOOL pool, d3d_vertex_buffer **buf) | |
| 282 | 282 | { |
| 283 | 283 | IDirect3DDevice9 *device = (IDirect3DDevice9 *)dev; |
| 284 | 284 | return IDirect3DDevice9_CreateVertexBuffer(device, length, usage, fvf, pool, (IDirect3DVertexBuffer9 **)buf, NULL); |
| 285 | 285 | } |
| 286 | 286 | |
| 287 | 287 | |
| 288 | static HRESULT device_draw_primitive(d3d_device *dev, D3DPRIMITIVETYPE type, UINT start, UINT count) | |
| 288 | static HRESULT d3d_device_draw_primitive(d3d_device *dev, D3DPRIMITIVETYPE type, UINT start, UINT count) | |
| 289 | 289 | { |
| 290 | 290 | IDirect3DDevice9 *device = (IDirect3DDevice9 *)dev; |
| 291 | 291 | return IDirect3DDevice9_DrawPrimitive(device, type, start, count); |
| 292 | 292 | } |
| 293 | 293 | |
| 294 | 294 | |
| 295 | static HRESULT device_end_scene(d3d_device *dev) | |
| 295 | static HRESULT d3d_device_end_scene(d3d_device *dev) | |
| 296 | 296 | { |
| 297 | 297 | IDirect3DDevice9 *device = (IDirect3DDevice9 *)dev; |
| 298 | 298 | return IDirect3DDevice9_EndScene(device); |
| 299 | 299 | } |
| 300 | 300 | |
| 301 | 301 | |
| 302 | static HRESULT device_get_raster_status(d3d_device *dev, D3DRASTER_STATUS *status) | |
| 302 | static HRESULT d3d_device_get_raster_status(d3d_device *dev, D3DRASTER_STATUS *status) | |
| 303 | 303 | { |
| 304 | 304 | IDirect3DDevice9 *device = (IDirect3DDevice9 *)dev; |
| 305 | 305 | return IDirect3DDevice9_GetRasterStatus(device, 0, status); |
| 306 | 306 | } |
| 307 | 307 | |
| 308 | 308 | |
| 309 | static HRESULT device_get_render_target(d3d_device *dev, DWORD index, d3d_surface **surface) | |
| 309 | static HRESULT d3d_device_get_render_target(d3d_device *dev, DWORD index, d3d_surface **surface) | |
| 310 | 310 | { |
| 311 | 311 | IDirect3DDevice9 *device = (IDirect3DDevice9 *)dev; |
| 312 | 312 | return IDirect3DDevice9_GetRenderTarget(device, index, (IDirect3DSurface9 **)surface); |
| 313 | 313 | } |
| 314 | 314 | |
| 315 | 315 | |
| 316 | static HRESULT device_present(d3d_device *dev, const RECT *source, const RECT *dest, HWND override, RGNDATA *dirty, DWORD flags) | |
| 316 | static HRESULT d3d_device_present(d3d_device *dev, const RECT *source, const RECT *dest, HWND override, RGNDATA *dirty, DWORD flags) | |
| 317 | 317 | { |
| 318 | 318 | IDirect3DDevice9 *device = (IDirect3DDevice9 *)dev; |
| 319 | 319 | if (flags != 0) |
| r1711 | r1712 | |
| 331 | 331 | } |
| 332 | 332 | |
| 333 | 333 | |
| 334 | static ULONG device_release(d3d_device *dev) | |
| 334 | static ULONG d3d_device_release(d3d_device *dev) | |
| 335 | 335 | { |
| 336 | 336 | IDirect3DDevice9 *device = (IDirect3DDevice9 *)dev; |
| 337 | 337 | return IDirect3DDevice9_Release(device); |
| 338 | 338 | } |
| 339 | 339 | |
| 340 | 340 | |
| 341 | static HRESULT device_reset(d3d_device *dev, d3d_present_parameters *params) | |
| 341 | static HRESULT d3d_device_reset(d3d_device *dev, d3d_present_parameters *params) | |
| 342 | 342 | { |
| 343 | 343 | IDirect3DDevice9 *device = (IDirect3DDevice9 *)dev; |
| 344 | 344 | D3DPRESENT_PARAMETERS d3d9params; |
| r1711 | r1712 | |
| 347 | 347 | } |
| 348 | 348 | |
| 349 | 349 | |
| 350 | static void device_set_gamma_ramp(d3d_device *dev, DWORD flags, const D3DGAMMARAMP *ramp) | |
| 350 | static void d3d_device_set_gamma_ramp(d3d_device *dev, DWORD flags, const D3DGAMMARAMP *ramp) | |
| 351 | 351 | { |
| 352 | 352 | IDirect3DDevice9 *device = (IDirect3DDevice9 *)dev; |
| 353 | 353 | IDirect3DDevice9_SetGammaRamp(device, 0, flags, ramp); |
| 354 | 354 | } |
| 355 | 355 | |
| 356 | 356 | |
| 357 | static HRESULT device_set_render_state(d3d_device *dev, D3DRENDERSTATETYPE state, DWORD value) | |
| 357 | static HRESULT d3d_device_set_render_state(d3d_device *dev, D3DRENDERSTATETYPE state, DWORD value) | |
| 358 | 358 | { |
| 359 | 359 | IDirect3DDevice9 *device = (IDirect3DDevice9 *)dev; |
| 360 | 360 | return IDirect3DDevice9_SetRenderState(device, state, value); |
| 361 | 361 | } |
| 362 | 362 | |
| 363 | 363 | |
| 364 | static HRESULT device_set_render_target(d3d_device *dev, DWORD index, d3d_surface *surf) | |
| 364 | static HRESULT d3d_device_set_render_target(d3d_device *dev, DWORD index, d3d_surface *surf) | |
| 365 | 365 | { |
| 366 | 366 | IDirect3DDevice9 *device = (IDirect3DDevice9 *)dev; |
| 367 | 367 | IDirect3DSurface9 *surface = (IDirect3DSurface9 *)surf; |
| r1711 | r1712 | |
| 369 | 369 | } |
| 370 | 370 | |
| 371 | 371 | |
| 372 | static HRESULT device_set_stream_source(d3d_device *dev, UINT number, d3d_vertex_buffer *vbuf, UINT stride) | |
| 372 | static HRESULT d3d_device_set_stream_source(d3d_device *dev, UINT number, d3d_vertex_buffer *vbuf, UINT stride) | |
| 373 | 373 | { |
| 374 | 374 | IDirect3DDevice9 *device = (IDirect3DDevice9 *)dev; |
| 375 | 375 | IDirect3DVertexBuffer9 *vertexbuf = (IDirect3DVertexBuffer9 *)vbuf; |
| r1711 | r1712 | |
| 377 | 377 | } |
| 378 | 378 | |
| 379 | 379 | |
| 380 | static HRESULT device_set_texture(d3d_device *dev, DWORD stage, d3d_texture *tex) | |
| 380 | static HRESULT d3d_device_set_texture(d3d_device *dev, DWORD stage, d3d_texture *tex) | |
| 381 | 381 | { |
| 382 | 382 | IDirect3DDevice9 *device = (IDirect3DDevice9 *)dev; |
| 383 | 383 | IDirect3DBaseTexture9 *texture = (IDirect3DBaseTexture9 *)tex; |
| r1711 | r1712 | |
| 385 | 385 | } |
| 386 | 386 | |
| 387 | 387 | |
| 388 | static HRESULT device_set_texture_stage_state(d3d_device *dev, DWORD stage, D3DTEXTURESTAGESTATETYPE state, DWORD value) | |
| 388 | static HRESULT d3d_device_set_texture_stage_state(d3d_device *dev, DWORD stage, D3DTEXTURESTAGESTATETYPE state, DWORD value) | |
| 389 | 389 | { |
| 390 | 390 | IDirect3DDevice9 *device = (IDirect3DDevice9 *)dev; |
| 391 | 391 | |
| r1711 | r1712 | |
| 416 | 416 | } |
| 417 | 417 | |
| 418 | 418 | |
| 419 | static HRESULT device_set_vertex_shader(d3d_device *dev, D3DFORMAT format) | |
| 419 | static HRESULT d3d_device_set_vertex_shader(d3d_device *dev, D3DFORMAT format) | |
| 420 | 420 | { |
| 421 | 421 | IDirect3DDevice9 *device = (IDirect3DDevice9 *)dev; |
| 422 | 422 | return IDirect3DDevice9_SetFVF(device, format); |
| 423 | 423 | } |
| 424 | 424 | |
| 425 | 425 | |
| 426 | static HRESULT device_stretch_rect(d3d_device *dev, d3d_surface *source, const RECT *srcrect, d3d_surface *dest, const RECT *dstrect, D3DTEXTUREFILTERTYPE filter) | |
| 426 | static HRESULT d3d_device_stretch_rect(d3d_device *dev, d3d_surface *source, const RECT *srcrect, d3d_surface *dest, const RECT *dstrect, D3DTEXTUREFILTERTYPE filter) | |
| 427 | 427 | { |
| 428 | 428 | IDirect3DDevice9 *device = (IDirect3DDevice9 *)dev; |
| 429 | 429 | IDirect3DSurface9 *ssurface = (IDirect3DSurface9 *)source; |
| r1711 | r1712 | |
| 432 | 432 | } |
| 433 | 433 | |
| 434 | 434 | |
| 435 | static HRESULT device_test_cooperative_level(d3d_device *dev) | |
| 435 | static HRESULT d3d_device_test_cooperative_level(d3d_device *dev) | |
| 436 | 436 | { |
| 437 | 437 | IDirect3DDevice9 *device = (IDirect3DDevice9 *)dev; |
| 438 | 438 | return IDirect3DDevice9_TestCooperativeLevel(device); |
| r1711 | r1712 | |
| 441 | 441 | |
| 442 | 442 | static const d3d_device_interface d3d9_device_interface = |
| 443 | 443 | { |
| 444 | device_begin_scene, | |
| 445 | device_clear, | |
| 446 | device_create_offscreen_plain_surface, | |
| 447 | device_create_texture, | |
| 448 | device_create_vertex_buffer, | |
| 449 | device_draw_primitive, | |
| 450 | device_end_scene, | |
| 451 | device_get_raster_status, | |
| 452 | device_get_render_target, | |
| 453 | device_present, | |
| 454 | device_release, | |
| 455 | device_reset, | |
| 456 | device_set_gamma_ramp, | |
| 457 | device_set_render_state, | |
| 458 | device_set_render_target, | |
| 459 | device_set_stream_source, | |
| 460 | device_set_texture, | |
| 461 | device_set_texture_stage_state, | |
| 462 | device_set_vertex_shader, | |
| 463 | device_stretch_rect, | |
| 464 | device_test_cooperative_level | |
| 444 | d3d_device_begin_scene, | |
| 445 | d3d_device_clear, | |
| 446 | d3d_device_create_offscreen_plain_surface, | |
| 447 | d3d_device_create_texture, | |
| 448 | d3d_device_create_vertex_buffer, | |
| 449 | d3d_device_draw_primitive, | |
| 450 | d3d_device_end_scene, | |
| 451 | d3d_device_get_raster_status, | |
| 452 | d3d_device_get_render_target, | |
| 453 | d3d_device_present, | |
| 454 | d3d_device_release, | |
| 455 | d3d_device_reset, | |
| 456 | d3d_device_set_gamma_ramp, | |
| 457 | d3d_device_set_render_state, | |
| 458 | d3d_device_set_render_target, | |
| 459 | d3d_device_set_stream_source, | |
| 460 | d3d_device_set_texture, | |
| 461 | d3d_device_set_texture_stage_state, | |
| 462 | d3d_device_set_vertex_shader, | |
| 463 | d3d_device_stretch_rect, | |
| 464 | d3d_device_test_cooperative_level | |
| 465 | 465 | }; |
| 466 | 466 | |
| 467 | 467 | |
| r1711 | r1712 | |
| 470 | 470 | // Direct3DSurface interfaces |
| 471 | 471 | //============================================================ |
| 472 | 472 | |
| 473 | static HRESULT surface_lock_rect(d3d_surface *surf, D3DLOCKED_RECT *locked, const RECT *rect, DWORD flags) | |
| 473 | static HRESULT d3d_surface_lock_rect(d3d_surface *surf, D3DLOCKED_RECT *locked, const RECT *rect, DWORD flags) | |
| 474 | 474 | { |
| 475 | 475 | IDirect3DSurface9 *surface = (IDirect3DSurface9 *)surf; |
| 476 | 476 | return IDirect3DSurface9_LockRect(surface, locked, rect, flags); |
| 477 | 477 | } |
| 478 | 478 | |
| 479 | 479 | |
| 480 | static ULONG surface_release(d3d_surface *surf) | |
| 480 | static ULONG d3d_surface_release(d3d_surface *surf) | |
| 481 | 481 | { |
| 482 | 482 | IDirect3DSurface9 *surface = (IDirect3DSurface9 *)surf; |
| 483 | 483 | return IDirect3DSurface9_Release(surface); |
| 484 | 484 | } |
| 485 | 485 | |
| 486 | 486 | |
| 487 | static HRESULT surface_unlock_rect(d3d_surface *surf) | |
| 487 | static HRESULT d3d_surface_unlock_rect(d3d_surface *surf) | |
| 488 | 488 | { |
| 489 | 489 | IDirect3DSurface9 *surface = (IDirect3DSurface9 *)surf; |
| 490 | 490 | return IDirect3DSurface9_UnlockRect(surface); |
| r1711 | r1712 | |
| 493 | 493 | |
| 494 | 494 | static const d3d_surface_interface d3d9_surface_interface = |
| 495 | 495 | { |
| 496 | surface_lock_rect, | |
| 497 | surface_release, | |
| 498 | surface_unlock_rect | |
| 496 | d3d_surface_lock_rect, | |
| 497 | d3d_surface_release, | |
| 498 | d3d_surface_unlock_rect | |
| 499 | 499 | }; |
| 500 | 500 | |
| 501 | 501 | |
| r1711 | r1712 | |
| 504 | 504 | // Direct3DTexture interfaces |
| 505 | 505 | //============================================================ |
| 506 | 506 | |
| 507 | static HRESULT texture_get_surface_level(d3d_texture *tex, UINT level, d3d_surface **surface) | |
| 507 | static HRESULT d3d_texture_get_surface_level(d3d_texture *tex, UINT level, d3d_surface **surface) | |
| 508 | 508 | { |
| 509 | 509 | IDirect3DTexture9 *texture = (IDirect3DTexture9 *)tex; |
| 510 | 510 | return IDirect3DTexture9_GetSurfaceLevel(texture, level, (IDirect3DSurface9 **)surface); |
| 511 | 511 | } |
| 512 | 512 | |
| 513 | 513 | |
| 514 | static HRESULT texture_lock_rect(d3d_texture *tex, UINT level, D3DLOCKED_RECT *locked, const RECT *rect, DWORD flags) | |
| 514 | static HRESULT d3d_texture_lock_rect(d3d_texture *tex, UINT level, D3DLOCKED_RECT *locked, const RECT *rect, DWORD flags) | |
| 515 | 515 | { |
| 516 | 516 | IDirect3DTexture9 *texture = (IDirect3DTexture9 *)tex; |
| 517 | 517 | return IDirect3DTexture9_LockRect(texture, level, locked, rect, flags); |
| 518 | 518 | } |
| 519 | 519 | |
| 520 | 520 | |
| 521 | static ULONG texture_release(d3d_texture *tex) | |
| 521 | static ULONG d3d_texture_release(d3d_texture *tex) | |
| 522 | 522 | { |
| 523 | 523 | IDirect3DTexture9 *texture = (IDirect3DTexture9 *)tex; |
| 524 | 524 | return IDirect3DTexture9_Release(texture); |
| 525 | 525 | } |
| 526 | 526 | |
| 527 | 527 | |
| 528 | static HRESULT texture_unlock_rect(d3d_texture *tex, UINT level) | |
| 528 | static HRESULT d3d_texture_unlock_rect(d3d_texture *tex, UINT level) | |
| 529 | 529 | { |
| 530 | 530 | IDirect3DTexture9 *texture = (IDirect3DTexture9 *)tex; |
| 531 | 531 | return IDirect3DTexture9_UnlockRect(texture, level); |
| r1711 | r1712 | |
| 534 | 534 | |
| 535 | 535 | static const d3d_texture_interface d3d9_texture_interface = |
| 536 | 536 | { |
| 537 | texture_get_surface_level, | |
| 538 | texture_lock_rect, | |
| 539 | texture_release, | |
| 540 | texture_unlock_rect | |
| 537 | d3d_texture_get_surface_level, | |
| 538 | d3d_texture_lock_rect, | |
| 539 | d3d_texture_release, | |
| 540 | d3d_texture_unlock_rect | |
| 541 | 541 | }; |
| 542 | 542 | |
| 543 | 543 | |
| r1711 | r1712 | |
| 546 | 546 | // Direct3DVertexBuffer interfaces |
| 547 | 547 | //============================================================ |
| 548 | 548 | |
| 549 | static HRESULT vertex_buffer_lock(d3d_vertex_buffer *vbuf, UINT offset, UINT size, VOID **data, DWORD flags) | |
| 549 | static HRESULT d3d_vertex_buffer_lock(d3d_vertex_buffer *vbuf, UINT offset, UINT size, VOID **data, DWORD flags) | |
| 550 | 550 | { |
| 551 | 551 | IDirect3DVertexBuffer9 *vertexbuf = (IDirect3DVertexBuffer9 *)vbuf; |
| 552 | 552 | return IDirect3DVertexBuffer9_Lock(vertexbuf, offset, size, data, flags); |
| 553 | 553 | } |
| 554 | 554 | |
| 555 | 555 | |
| 556 | static ULONG vertex_buffer_release(d3d_vertex_buffer *vbuf) | |
| 556 | static ULONG d3d_vertex_buffer_release(d3d_vertex_buffer *vbuf) | |
| 557 | 557 | { |
| 558 | 558 | IDirect3DVertexBuffer9 *vertexbuf = (IDirect3DVertexBuffer9 *)vbuf; |
| 559 | 559 | return IDirect3DVertexBuffer9_Release(vertexbuf); |
| 560 | 560 | } |
| 561 | 561 | |
| 562 | 562 | |
| 563 | static HRESULT vertex_buffer_unlock(d3d_vertex_buffer *vbuf) | |
| 563 | static HRESULT d3d_vertex_buffer_unlock(d3d_vertex_buffer *vbuf) | |
| 564 | 564 | { |
| 565 | 565 | IDirect3DVertexBuffer9 *vertexbuf = (IDirect3DVertexBuffer9 *)vbuf; |
| 566 | 566 | return IDirect3DVertexBuffer9_Unlock(vertexbuf); |
| r1711 | r1712 | |
| 569 | 569 | |
| 570 | 570 | static const d3d_vertex_buffer_interface d3d9_vertex_buffer_interface = |
| 571 | 571 | { |
| 572 | vertex_buffer_lock, | |
| 573 | vertex_buffer_release, | |
| 574 | vertex_buffer_unlock | |
| 572 | d3d_vertex_buffer_lock, | |
| 573 | d3d_vertex_buffer_release, | |
| 574 | d3d_vertex_buffer_unlock | |
| 575 | 575 | }; |
| 576 | 576 | |
| 577 | 577 |
| r1711 | r1712 | |
|---|---|---|
| 2610 | 2610 | info->minwidth = 0; |
| 2611 | 2611 | info->maxwidth = 0; |
| 2612 | 2612 | for (cpunum = MAX_CPU - 1; (INT32)cpunum >= 0; cpunum--) |
| 2613 | if (Machine-> | |
| 2613 | if (Machine->config->cpu[cpunum].type != CPU_DUMMY) | |
| 2614 | 2614 | { |
| 2615 | 2615 | UINT32 regchars, dischars, conchars; |
| 2616 | 2616 | UINT32 minwidth, maxwidth; |
| r1711 | r1712 | |
|---|---|---|
| 452 | 452 | static void load_effect_overlay(const char *filename) |
| 453 | 453 | { |
| 454 | 454 | char *tempstr = malloc_or_die(strlen(filename) + 5); |
| 455 | int numscreens; | |
| 455 | 456 | int scrnum; |
| 456 | 457 | char *dest; |
| 457 | 458 | |
| r1711 | r1712 | |
| 472 | 473 | } |
| 473 | 474 | |
| 474 | 475 | // set the overlay on all screens |
| 475 | for (scrnum = 0; scrnum < MAX_SCREENS; scrnum++) | |
| 476 | if (Machine->drv->screen[scrnum].tag != NULL) | |
| 477 | render_container_set_overlay(render_container_get_screen(scrnum), effect_bitmap); | |
| 476 | numscreens = video_screen_count(Machine->config); | |
| 477 | for (scrnum = 0; scrnum < numscreens; scrnum++) | |
| 478 | render_container_set_overlay(render_container_get_screen(scrnum), effect_bitmap); | |
| 478 | 479 | |
| 479 | 480 | free(tempstr); |
| 480 | 481 | } |
| r1711 | r1712 | |
|---|---|---|
| 874 | 874 | // if we don't have a match, default to the nth view |
| 875 | 875 | if (viewindex == -1) |
| 876 | 876 | { |
| 877 | int scrcount; | |
| 877 | int scrcount = video_screen_count(Machine->config); | |
| 878 | 878 | |
| 879 | // count the number of screens | |
| 880 | for (scrcount = 0; Machine->drv->screen[scrcount].tag != NULL; scrcount++) ; | |
| 881 | ||
| 882 | 879 | // if we have enough screens to be one per monitor, assign in order |
| 883 | 880 | if (video_config.numscreens >= scrcount) |
| 884 | 881 | { |
| r1711 | r1712 | |
|---|---|---|
| 22 | 22 | |
| 23 | 23 | // MAME/MAMEUI headers |
| 24 | 24 | #include "tabview.h" |
| 25 | #include "driver.h" | |
| 25 | 26 | #include "mui_util.h" |
| 26 | 27 | #include "strconv.h" |
| 27 | 28 |
| r1711 | r1712 | |
|---|---|---|
| 24 | 24 | |
| 25 | 25 | // MAME/MAMEUI headers |
| 26 | 26 | #include "directinput.h" |
| 27 | #include "driver.h" | |
| 27 | 28 | #include "mui_util.h" // For ErrorMsg |
| 28 | 29 | |
| 29 | 30 | /*************************************************************************** |
| r1711 | r1712 | |
|---|---|---|
| 2709 | 2709 | { |
| 2710 | 2710 | const game_driver *parent = driver_get_clone(driver); |
| 2711 | 2711 | const game_driver *gparent = (parent != NULL) ? driver_get_clone(parent) : NULL; |
| 2712 | ||
| 2712 | 2713 | astring *basename; |
| 2713 | 2714 | astring *srcname; |
| 2714 | machine_config drv; | |
| 2715 | machine_config *config = machine_config_alloc(driver->drv); | |
| 2715 | 2716 | |
| 2716 | /* expand the machine driver to look at the info */ | |
| 2717 | expand_machine_driver(driver->drv, &drv); | |
| 2718 | ||
| 2719 | 2717 | /* parse "vector.ini" for vector games */ |
| 2720 | if (drv.video_attributes & VIDEO_TYPE_VECTOR) | |
| 2718 | if (isDriverVector(config)) | |
| 2719 | { | |
| 2721 | 2720 | ui_parse_ini_file(opts, "vector"); |
| 2721 | } | |
| 2722 | 2722 | |
| 2723 | machine_config_free(config); | |
| 2724 | ||
| 2723 | 2725 | if (opt_type == OPTIONS_VECTOR) |
| 2724 | 2726 | { |
| 2725 | 2727 | return opts; |
| r1711 | r1712 | |
| 2797 | 2799 | } else if (driver != NULL) |
| 2798 | 2800 | { |
| 2799 | 2801 | astring *basename, *srcname; |
| 2800 | machine_config drv; | |
| 2801 | 2802 | |
| 2802 | /* expand the machine driver to look at the info */ | |
| 2803 | expand_machine_driver(driver->drv, &drv); | |
| 2804 | ||
| 2805 | 2803 | switch (opt_type) |
| 2806 | 2804 | { |
| 2807 | 2805 | case OPTIONS_SOURCE: |
| r1711 | r1712 | |
|---|---|---|
| 21 | 21 | |
| 22 | 22 | // MAME/MAMEUI headers |
| 23 | 23 | #include "dirwatch.h" |
| 24 | #include "driver.h" | |
| 24 | 25 | #include "mui_util.h" |
| 25 | 26 | #include "strconv.h" |
| 26 | 27 |
| r1711 | r1712 | |
|---|---|---|
| 307 | 307 | return tmp; |
| 308 | 308 | } |
| 309 | 309 | |
| 310 | BOOL isDriverVector(const machine_config *config) | |
| 311 | { | |
| 312 | const device_config *screen = video_screen_first(config); | |
| 313 | ||
| 314 | if (screen != NULL) { | |
| 315 | const screen_config *scrconfig = screen->inline_config; | |
| 316 | ||
| 317 | /* parse "vector.ini" for vector games */ | |
| 318 | if (SCREEN_TYPE_VECTOR == scrconfig->type) | |
| 319 | { | |
| 320 | return TRUE; | |
| 321 | } | |
| 322 | } | |
| 323 | return FALSE; | |
| 324 | } | |
| 325 | ||
| 326 | int numberOfSpeakers(const machine_config *config) | |
| 327 | { | |
| 328 | int has_sound = FALSE; | |
| 329 | int speakers = 0; | |
| 330 | int sndnum; | |
| 331 | ||
| 332 | /* see if we have any sound chips to report */ | |
| 333 | for (sndnum = 0; sndnum < ARRAY_LENGTH(config->sound); sndnum++) | |
| 334 | if (config->sound[sndnum].type != SOUND_DUMMY) | |
| 335 | { | |
| 336 | has_sound = TRUE; | |
| 337 | break; | |
| 338 | } | |
| 339 | ||
| 340 | /* if we have sound, count the number of speakers */ | |
| 341 | if (has_sound) | |
| 342 | for (speakers = 0; speakers < ARRAY_LENGTH(config->speaker); speakers++) | |
| 343 | if (config->speaker[speakers].tag == NULL) | |
| 344 | break; | |
| 345 | ||
| 346 | return speakers; | |
| 347 | } | |
| 348 | ||
| 310 | 349 | static struct DriversInfo* GetDriversInfo(int driver_index) |
| 311 | 350 | { |
| 312 | 351 | if (drivers_info == NULL) |
| r1711 | r1712 | |
| 318 | 357 | const game_driver *gamedrv = drivers[ndriver]; |
| 319 | 358 | struct DriversInfo *gameinfo = &drivers_info[ndriver]; |
| 320 | 359 | const rom_entry *region, *rom; |
| 321 | machine_config | |
| 360 | machine_config *config; | |
| 322 | 361 | const input_port_entry *input_ports; |
| 323 | int speakernum, num_speakers; | |
| 362 | int num_speakers; | |
| 363 | ||
| 364 | /* Allocate machine config */ | |
| 365 | config = machine_config_alloc(gamedrv->drv); | |
| 366 | ||
| 324 | 367 | gameinfo->isClone = (GetParentRomSetIndex(gamedrv) != -1); |
| 325 | 368 | gameinfo->isBroken = ((gamedrv->flags & GAME_NOT_WORKING) != 0); |
| 326 | 369 | gameinfo->supportsSaveState = ((gamedrv->flags & GAME_SUPPORTS_SAVE) != 0); |
| r1711 | r1712 | |
| 343 | 386 | } |
| 344 | 387 | } |
| 345 | 388 | } |
| 346 | expand_machine_driver(gamedrv->drv, &drv); | |
| 389 | // expand_machine_driver(gamedrv->drv, &drv); | |
| 347 | 390 | |
| 348 | num_speakers = 0; | |
| 349 | for (speakernum = 0; speakernum < MAX_SPEAKER; speakernum++) | |
| 350 | if (drv.speaker[speakernum].tag != NULL) | |
| 351 | num_speakers++; | |
| 391 | num_speakers = numberOfSpeakers(config); | |
| 352 | 392 | |
| 353 | 393 | gameinfo->isStereo = (num_speakers > 1); |
| 354 | 394 | //gameinfo->isMultiMon = ((drv.video_attributes & VIDEO_DUAL_MONITOR) != 0); |
| 355 | 395 | // Was removed from Core |
| 356 | 396 | gameinfo->isMultiMon = 0; |
| 357 | gameinfo->isVector = ((drv.video_attributes & VIDEO_TYPE_VECTOR) != 0); | |
| 397 | gameinfo->isVector = isDriverVector(config); // ((drv.video_attributes & VIDEO_TYPE_VECTOR) != 0); | |
| 358 | 398 | gameinfo->usesRoms = FALSE; |
| 359 | 399 | for (region = rom_first_region(gamedrv); region; region = rom_next_region(region)) |
| 360 | 400 | for (rom = rom_first_file(region); rom; rom = rom_next_file(rom)) |
| r1711 | r1712 | |
| 366 | 406 | |
| 367 | 407 | if (HAS_SAMPLES || HAS_VLM5030) |
| 368 | 408 | { |
| 369 | for (i = 0; | |
| 409 | for (i = 0; config->sound[i].type && i < MAX_SOUND; i++) | |
| 370 | 410 | { |
| 371 | 411 | const char * const * samplenames = NULL; |
| 372 | 412 | |
| 373 | 413 | #if (HAS_SAMPLES || HAS_VLM5030) |
| 374 | for( i = 0; | |
| 414 | for( i = 0; config->sound[i].type && i < MAX_SOUND; i++ ) | |
| 375 | 415 | { |
| 376 | 416 | #if (HAS_SAMPLES) |
| 377 | if( drv.sound[i].type == SOUND_SAMPLES ) | |
| 378 | samplenames = ((struct Samplesinterface *)drv.sound[i].config)->samplenames; | |
| 417 | if( config->sound[i].type == SOUND_SAMPLES ) | |
| 418 | samplenames = ((struct Samplesinterface *)config->sound[i].config)->samplenames; | |
| 379 | 419 | #endif |
| 380 | 420 | } |
| 381 | 421 | #endif |
| r1711 | r1712 | |
| 385 | 425 | break; |
| 386 | 426 | } |
| 387 | 427 | } |
| 428 | ||
| 388 | 429 | } |
| 430 | /* Free the structure */ | |
| 431 | machine_config_free(config); | |
| 389 | 432 | |
| 390 | 433 | gameinfo->usesTrackball = FALSE; |
| 391 | 434 | gameinfo->usesLightGun = FALSE; |
| r1711 | r1712 | |
|---|---|---|
| 917 | 917 | for (jj = 0; jj < nGames; jj++) |
| 918 | 918 | { |
| 919 | 919 | int n; |
| 920 | machine_config drv; | |
| 921 | expand_machine_driver(drivers[jj]->drv,&drv); | |
| 922 | for (n = 0; n < MAX_CPU; n++) | |
| 923 | if (drv.cpu[n].type != CPU_DUMMY) | |
| 920 | machine_config *config; | |
| 921 | // expand_machine_driver(drivers[jj]->drv,&drv); | |
| 922 | config = machine_config_alloc(drivers[jj]->drv); | |
| 923 | for (n = 0; n < MAX_CPU; n++) { | |
| 924 | if (config->cpu[n].type != CPU_DUMMY) | |
| 924 | 925 | { |
| 925 | 926 | // cpu type #'s are one-based |
| 926 | AddGame(map[ | |
| 927 | AddGame(map[config->cpu[n].type],jj); | |
| 927 | 928 | } |
| 929 | } | |
| 930 | machine_config_free(config); | |
| 928 | 931 | } |
| 929 | 932 | } |
| 930 | 933 | |
| r1711 | r1712 | |
| 969 | 972 | for (jj = 0; jj < nGames; jj++) |
| 970 | 973 | { |
| 971 | 974 | int n; |
| 972 | machine_config drv; | |
| 973 | expand_machine_driver(drivers[jj]->drv,&drv); | |
| 975 | machine_config *config; | |
| 976 | ||
| 977 | // expand_machine_driver(drivers[jj]->drv,&drv); | |
| 978 | config = machine_config_alloc(drivers[jj]->drv); | |
| 974 | 979 | // Additional range and null checking. |
| 975 | for (n = 0; n < MAX_SOUND ; n++) | |
| 976 | if (drv.sound[n].type > SOUND_DUMMY && | |
| 977 | drv.sound[n].type < MAX_SOUND) | |
| 980 | for (n = 0; n < MAX_SOUND ; n++) { | |
| 981 | if (config->sound[n].type > SOUND_DUMMY && | |
| 982 | config->sound[n].type < MAX_SOUND) | |
| 978 | 983 | { |
| 979 | if (map[ | |
| 984 | if (map[config->sound[n].type] != NULL) { | |
| 980 | 985 | // sound type #'s are one-based, though that doesn't affect us here |
| 981 | AddGame(map[ | |
| 986 | AddGame(map[config->sound[n].type],jj); | |
| 982 | 987 | } |
| 983 | 988 | } |
| 989 | } | |
| 990 | machine_config_free(config); | |
| 984 | 991 | } |
| 985 | 992 | |
| 986 | 993 | } |
| r1711 | r1712 | |
|---|---|---|
| 4750 | 4750 | break; |
| 4751 | 4751 | |
| 4752 | 4752 | case COLUMN_TYPE: |
| 4753 | { | |
| 4754 | machine_config drv; | |
| 4755 | expand_machine_driver(drivers[nItem]->drv,&drv); | |
| 4753 | { | |
| 4754 | machine_config *config = machine_config_alloc(drivers[nItem]->drv); | |
| 4755 | /* Vector/Raster */ | |
| 4756 | if (isDriverVector(config)) | |
| 4757 | s = TEXT("Vector"); | |
| 4758 | else | |
| 4759 | s = TEXT("Raster"); | |
| 4756 | 4760 | |
| 4757 | /* Vector/Raster */ | |
| 4758 | if (drv.video_attributes & VIDEO_TYPE_VECTOR) | |
| 4759 | s = TEXT("Vector"); | |
| 4760 | else | |
| 4761 | s = TEXT("Raster"); | |
| 4761 | machine_config_free(config); | |
| 4762 | } | |
| 4762 | 4763 | break; |
| 4763 | ||
| 4764 | ||
| 4764 | 4765 | case COLUMN_TRACKBALL: |
| 4765 | 4766 | /* Trackball */ |
| 4766 | 4767 | if (DriverUsesTrackball(nItem)) |
| r1711 | r1712 | |
| 5199 | 5200 | break; |
| 5200 | 5201 | |
| 5201 | 5202 | case COLUMN_PLAYTIME: |
| 5202 | value = GetPlayTime(index1) - GetPlayTime(index2); | |
| 5203 | break; | |
| 5203 | value = GetPlayTime(index1) - GetPlayTime(index2); | |
| 5204 | break; | |
| 5204 | 5205 | |
| 5205 | 5206 | case COLUMN_TYPE: |
| 5206 | { | |
| 5207 | machine_config drv1,drv2; | |
| 5208 | expand_machine_driver(drivers[index1]->drv,&drv1); | |
| 5209 | expand_machine_driver(drivers[index2]->drv,&drv2); | |
| 5207 | { | |
| 5208 | machine_config *config1 = machine_config_alloc(drivers[index1]->drv); | |
| 5209 | machine_config *config2 = machine_config_alloc(drivers[index2]->drv); | |
| 5210 | 5210 | |
| 5211 | value = (drv1.video_attributes & VIDEO_TYPE_VECTOR) - | |
| 5212 | (drv2.video_attributes & VIDEO_TYPE_VECTOR); | |
| 5211 | value = isDriverVector(config1) - isDriverVector(config2); | |
| 5212 | ||
| 5213 | machine_config_free(config1); | |
| 5214 | machine_config_free(config2); | |
| 5215 | } | |
| 5213 | 5216 | break; |
| 5214 | ||
| 5217 | ||
| 5215 | 5218 | case COLUMN_TRACKBALL: |
| 5216 | 5219 | value = DriverUsesTrackball(index1) - DriverUsesTrackball(index2); |
| 5217 | 5220 | break; |
| r1711 | r1712 | |
| 5414 | 5417 | of.lStructSize = sizeof(of); |
| 5415 | 5418 | of.hwndOwner = hWnd; |
| 5416 | 5419 | of.hInstance = NULL; |
| 5417 | of.lpstrFilter = TEXT(MAMENAME " Language files (*.lng)\0*.lng\0"); | |
| 5420 | of.lpstrFilter = TEXT(MAMENAME) TEXT(" Language files (*.lng)\0*.lng\0"); | |
| 5418 | 5421 | of.lpstrCustomFilter = NULL; |
| 5419 | 5422 | of.nMaxCustFilter = 0; |
| 5420 | 5423 | of.nFilterIndex = 1; |
| r1711 | r1712 | |
|---|---|---|
| 47 | 47 | BOOL DriverSupportsSaveState(int driver_index); |
| 48 | 48 | BOOL DriverIsVertical(int driver_index); |
| 49 | 49 | |
| 50 | int isDriverVector(const machine_config *config); | |
| 51 | int numberOfSpeakers(const machine_config *config); | |
| 52 | ||
| 50 | 53 | void FlushFileCaches(void); |
| 51 | 54 | |
| 52 | 55 | void FreeIfAllocated(char **s); |
| r1711 | r1712 | |
|---|---|---|
| 242 | 242 | |
| 243 | 243 | BOOL PropSheetFilter_Vector(const machine_config *drv, const game_driver *gamedrv) |
| 244 | 244 | { |
| 245 | return | |
| 245 | return | |
| 246 | 246 | } |
| 247 | 247 | |
| 248 | 248 | /* Help IDs - moved to auto-generated helpids.c */ |
| r1711 | r1712 | |
| 351 | 351 | int maxPropSheets; |
| 352 | 352 | int possiblePropSheets; |
| 353 | 353 | int i; |
| 354 | machine_config drv; | |
| 355 | 354 | |
| 356 | if (gamedrv) | |
| 357 | expand_machine_driver(gamedrv->drv, &drv); | |
| 358 | ||
| 359 | 355 | i = ( isGame ) ? 0 : 2; |
| 360 | 356 | |
| 361 | 357 | for (; g_propSheets[i].pfnDlgProc; i++) |
| r1711 | r1712 | |
| 377 | 373 | { |
| 378 | 374 | if ((gamedrv != NULL) || g_propSheets[i].bOnDefaultPage) |
| 379 | 375 | { |
| 380 | if (!gamedrv || !g_propSheets[i].pfnFilterProc || g_propSheets[i].pfnFilterProc(&drv, gamedrv)) | |
| 376 | machine_config *config = NULL; | |
| 377 | ||
| 378 | /* Allocate machine config */ | |
| 379 | if (gamedrv != NULL) | |
| 381 | 380 | { |
| 381 | config = machine_config_alloc(gamedrv->drv); | |
| 382 | } | |
| 383 | if (!gamedrv || !g_propSheets[i].pfnFilterProc || g_propSheets[i].pfnFilterProc(config, gamedrv)) | |
| 384 | { | |
| 382 | 385 | pspages[maxPropSheets].dwSize = sizeof(PROPSHEETPAGE); |
| 383 | 386 | pspages[maxPropSheets].dwFlags = 0; |
| 384 | 387 | pspages[maxPropSheets].hInstance = hInst; |
| r1711 | r1712 | |
| 388 | 391 | pspages[maxPropSheets].pfnDlgProc = g_propSheets[i].pfnDlgProc; |
| 389 | 392 | maxPropSheets++; |
| 390 | 393 | } |
| 394 | if (config != NULL) | |
| 395 | { | |
| 396 | /* Free the structure */ | |
| 397 | machine_config_free(config); | |
| 398 | } | |
| 391 | 399 | } |
| 392 | 400 | } |
| 393 | 401 | |
| r1711 | r1712 | |
| 566 | 574 | /* Build CPU info string */ |
| 567 | 575 | static char *GameInfoCPU(UINT nIndex) |
| 568 | 576 | { |
| 569 | int i; | |
| 577 | int chipnum; | |
| 570 | 578 | static char buf[1024] = ""; |
| 571 | machine_config drv; | |
| 572 | expand_machine_driver(drivers[nIndex]->drv,&drv); | |
| 579 | machine_config *config = machine_config_alloc(drivers[nIndex]->drv); | |
| 573 | 580 | |
| 574 | 581 | ZeroMemory(buf, sizeof(buf)); |
| 575 | 582 | |
| 576 | 583 | cpuintrf_init(NULL); |
| 577 | 584 | |
| 578 | i = 0; | |
| 579 | while (i < MAX_CPU && drv.cpu[i].type) | |
| 585 | for (chipnum = 0; chipnum < ARRAY_LENGTH(config->cpu); chipnum++) | |
| 580 | 586 | { |
| 581 | if (drv.cpu[i].clock >= 1000000) | |
| 582 | sprintf(&buf[strlen(buf)], "%s %d.%06d MHz", | |
| 583 | cputype_name(drv.cpu[i].type), | |
| 584 | drv.cpu[i].clock / 1000000, | |
| 585 | drv.cpu[i].clock % 1000000); | |
| 586 | else | |
| 587 | sprintf(&buf[strlen(buf)], "%s %d.%03d kHz", | |
| 588 | cputype_name(drv.cpu[i].type), | |
| 589 | drv.cpu[i].clock / 1000, | |
| 590 | drv.cpu[i].clock % 1000); | |
| 587 | if (config->cpu[chipnum].type != CPU_DUMMY) | |
| 588 | { | |
| 589 | if (config->cpu[chipnum].clock >= 1000000) | |
| 590 | { | |
| 591 | sprintf(&buf[strlen(buf)], "%s %d.%06d MHz", | |
| 592 | cputype_name(config->cpu[chipnum].type), | |
| 593 | config->cpu[chipnum].clock / 1000000, | |
| 594 | config->cpu[chipnum].clock % 1000000); | |
| 595 | } else { | |
| 596 | sprintf(&buf[strlen(buf)], "%s %d.%03d kHz", | |
| 597 | cputype_name(config->cpu[chipnum].type), | |
| 598 | config->cpu[chipnum].clock / 1000, | |
| 599 | config->cpu[chipnum].clock % 1000); | |
| 600 | } | |
| 591 | 601 | |
| 592 | strcat(buf, "\n"); | |
| 593 | ||
| 594 | i++; | |
| 602 | strcat(buf, "\n"); | |
| 603 | } | |
| 595 | 604 | } |
| 605 | /* Free the structure */ | |
| 606 | machine_config_free(config); | |
| 596 | 607 | |
| 597 | 608 | return buf; |
| 598 | 609 | } |
| r1711 | r1712 | |
| 600 | 611 | /* Build Sound system info string */ |
| 601 | 612 | static char *GameInfoSound(UINT nIndex) |
| 602 | 613 | { |
| 603 | int i; | |
| 614 | int chipnum; | |
| 604 | 615 | static char buf[1024]; |
| 605 | machine_config drv; | |
| 606 | expand_machine_driver(drivers[nIndex]->drv,&drv); | |
| 616 | machine_config *config = machine_config_alloc(drivers[nIndex]->drv); | |
| 607 | 617 | |
| 608 | 618 | buf[0] = 0; |
| 609 | 619 | |
| 610 | i = 0; | |
| 611 | while (i < MAX_SOUND && drv.sound[i].type) | |
| 620 | /* iterate over sound chips */ | |
| 621 | for (chipnum = 0; chipnum < ARRAY_LENGTH(config->sound); chipnum++) | |
| 612 | 622 | { |
| 613 | int clock,sound_type,count; | |
| 623 | if (config->sound[chipnum].type != SOUND_DUMMY) | |
| 624 | { | |
| 625 | int clock,sound_type,count; | |
| 614 | 626 | |
| 615 | sound_type = drv.sound[i].type; | |
| 616 | clock = drv.sound[i].clock; | |
| 627 | sound_type = config->sound[chipnum].type; | |
| 628 | clock = config->sound[chipnum].clock; | |
| 617 | 629 | |
| 618 | count = 1; | |
| 619 | i++; | |
| 630 | count = 1; | |
| 631 | chipnum++; | |
| 620 | 632 | |
| 621 | while (i < MAX_SOUND | |
| 622 | && drv.sound[i].type == sound_type | |
| 623 | && drv.sound[i].clock == clock) | |
| 624 | { | |
| 625 | count++; | |
| 626 | i++; | |
| 627 | } | |
| 633 | /* Matching chips at the same clock are aggregated */ | |
| 634 | while (chipnum < ARRAY_LENGTH(config->sound) | |
| 635 | && config->sound[chipnum].type == sound_type | |
| 636 | && config->sound[chipnum].clock == clock) | |
| 637 | { | |
| 638 | count++; | |
| 639 | chipnum++; | |
| 640 | } | |
| 628 | 641 | |
| 629 | if (count > 1) | |
| 630 | sprintf(&buf[strlen(buf)],"%dx",count); | |
| 642 | if (count > 1) | |
| 643 | { | |
| 644 | sprintf(&buf[strlen(buf)],"%dx",count); | |
| 645 | } | |
| 631 | 646 | |
| 632 | sprintf(&buf[strlen(buf)],"%s",sndtype_name(sound_type)); | |
| 647 | sprintf(&buf[strlen(buf)],"%s",sndtype_name(sound_type)); | |
| 633 | 648 | |
| 634 | if (clock) | |
| 635 | { | |
| 636 | if (clock >= 1000000) | |
| 637 | sprintf(&buf[strlen(buf)]," %d.%06d MHz", | |
| 649 | if (clock) | |
| 650 | { | |
| 651 | if (clock >= 1000000) | |
| 652 | { | |
| 653 | sprintf(&buf[strlen(buf)]," %d.%06d MHz", | |
| 638 | 654 | clock / 1000000, |
| 639 | 655 | clock % 1000000); |
| 640 | else | |
| 656 | } else { | |
| 641 | 657 | sprintf(&buf[strlen(buf)]," %d.%03d kHz", |
| 642 | 658 | clock / 1000, |
| 643 | 659 | clock % 1000); |
| 660 | } | |
| 661 | } | |
| 644 | 662 | } |
| 645 | 663 | |
| 646 | 664 | strcat(buf,"\n"); |
| 647 | 665 | } |
| 666 | /* Free the structure */ | |
| 667 | machine_config_free(config); | |
| 648 | 668 | |
| 649 | 669 | return buf; |
| 650 | 670 | } |
| r1711 | r1712 | |
| 653 | 673 | static char *GameInfoScreen(UINT nIndex) |
| 654 | 674 | { |
| 655 | 675 | static char buf[1024]; |
| 656 | machine_config drv; | |
| 657 | expand_machine_driver(drivers[nIndex]->drv,&drv); | |
| 676 | machine_config *config = machine_config_alloc(drivers[nIndex]->drv); | |
| 658 | 677 | |
| 659 | if (drv.video_attributes & VIDEO_TYPE_VECTOR) | |
| 660 | strcpy(buf, "Vector Game"); | |
| 678 | if (isDriverVector(config)) | |
| 679 | { | |
| 680 | strcpy(buf, "Vector Game"); | |
| 681 | } | |
| 661 | 682 | else |
| 662 | 683 | { |
| 684 | const device_config *screen = video_screen_first(config); | |
| 685 | const screen_config *scrconfig = screen->inline_config; | |
| 686 | ||
| 663 | 687 | if (drivers[nIndex]->flags & ORIENTATION_SWAP_XY) |
| 688 | { | |
| 664 | 689 | sprintf(buf,"%d x %d (V) %f Hz", |
| 665 | drv.screen[0].defstate.visarea.max_y - drv.screen[0].defstate.visarea.min_y + 1, | |
| 666 | drv.screen[0].defstate.visarea.max_x - drv.screen[0].defstate.visarea.min_x + 1, | |
| 667 | ATTOSECONDS_TO_HZ(drv.screen[0].defstate.refresh)); | |
| 668 | else | |
| 690 | scrconfig->defstate.visarea.max_y - scrconfig->defstate.visarea.min_y + 1, | |
| 691 | scrconfig->defstate.visarea.max_x - scrconfig->defstate.visarea.min_x + 1, | |
| 692 | ATTOSECONDS_TO_HZ(scrconfig->defstate.refresh)); | |
| 693 | } else { | |
| 669 | 694 | sprintf(buf,"%d x %d (H) %f Hz", |
| 670 | drv.screen[0].defstate.visarea.max_x - drv.screen[0].defstate.visarea.min_x + 1, | |
| 671 | drv.screen[0].defstate.visarea.max_y - drv.screen[0].defstate.visarea.min_y + 1, | |
| 672 | ATTOSECONDS_TO_HZ(drv.screen[0].defstate.refresh)); | |
| 695 | scrconfig->defstate.visarea.max_x - scrconfig->defstate.visarea.min_x + 1, | |
| 696 | scrconfig->defstate.visarea.max_y - scrconfig->defstate.visarea.min_y + 1, | |
| 697 | ATTOSECONDS_TO_HZ(scrconfig->defstate.refresh)); | |
| 698 | } | |
| 673 | 699 | } |
| 700 | /* Free the structure */ | |
| 701 | machine_config_free(config); | |
| 702 | ||
| 674 | 703 | return buf; |
| 675 | 704 | } |
| 676 | 705 | |
| r1711 | r1712 | |
| 678 | 707 | static char *GameInfoColors(UINT nIndex) |
| 679 | 708 | { |
| 680 | 709 | static char buf[1024]; |
| 681 | machine_config drv; | |
| 682 | expand_machine_driver(drivers[nIndex]->drv,&drv); | |
| 710 | machine_config *config = machine_config_alloc(drivers[nIndex]->drv); | |
| 683 | 711 | |
| 684 | 712 | ZeroMemory(buf, sizeof(buf)); |
| 685 | sprintf(buf, "%d colors ", drv.total_colors); | |
| 713 | sprintf(buf, "%d colors ", config->total_colors); | |
| 714 | machine_config_free(config); | |
| 686 | 715 | |
| 687 | 716 | return buf; |
| 688 | 717 | } |
| r1711 | r1712 | |
| 2320 | 2349 | { |
| 2321 | 2350 | BOOL enabled = FALSE; |
| 2322 | 2351 | HWND hCtrl; |
| 2323 | machine_config drv; | |
| 2324 | int speakernum, num_speakers; | |
| 2352 | int num_speakers = 0; | |
| 2325 | 2353 | |
| 2326 | num_speakers = 0; | |
| 2327 | ||
| 2328 | 2354 | if ( nIndex > -1) |
| 2329 | 2355 | { |
| 2330 | expand_machine_driver(drivers[nIndex]->drv,&drv); | |
| 2331 | for (speakernum = 0; speakernum < MAX_SPEAKER; speakernum++) | |
| 2332 | if (drv.speaker[speakernum].tag != NULL) | |
| 2333 | num_speakers++; | |
| 2356 | machine_config *config = machine_config_alloc(drivers[nIndex]->drv); | |
| 2357 | num_speakers = numberOfSpeakers(config); | |
| 2358 | machine_config_free(config); | |
| 2334 | 2359 | } |
| 2335 | 2360 | |
| 2336 | 2361 | hCtrl = GetDlgItem(hWnd, IDC_STEREO); |
| r1711 | r1712 | |
| 2348 | 2373 | int i; |
| 2349 | 2374 | BOOL enabled; |
| 2350 | 2375 | HWND hCtrl; |
| 2351 | machine_config | |
| 2376 | machine_config *config = NULL; | |
| 2352 | 2377 | |
| 2353 | 2378 | if (nIndex > -1) |
| 2354 | expand_machine_driver(drivers[nIndex]->drv,&drv); | |
| 2379 | { | |
| 2380 | config = machine_config_alloc(drivers[nIndex]->drv); | |
| 2381 | } | |
| 2355 | 2382 | |
| 2356 | 2383 | hCtrl = GetDlgItem(hWnd, IDC_USE_FM_YM3812); |
| 2357 | 2384 | if (hCtrl) |
| r1711 | r1712 | |
| 2361 | 2388 | { |
| 2362 | 2389 | if (nIndex <= -1 |
| 2363 | 2390 | #if HAS_YM3812 |
| 2364 | || | |
| 2391 | || config->sound[i].type == SOUND_YM3812 | |
| 2365 | 2392 | #endif |
| 2366 | 2393 | #if HAS_YM3526 |
| 2367 | || | |
| 2394 | || config->sound[i].type == SOUND_YM3526 | |
| 2368 | 2395 | #endif |
| 2369 | 2396 | #if HAS_YM2413 |
| 2370 | || | |
| 2397 | || config->sound[i].type == SOUND_YM2413 | |
| 2371 | 2398 | #endif |
| 2372 | 2399 | ) |
| 2373 | 2400 | enabled = TRUE; |
| r1711 | r1712 | |
| 2375 | 2402 | |
| 2376 | 2403 | EnableWindow(hCtrl, enabled); |
| 2377 | 2404 | } |
| 2405 | if (nIndex > -1) | |
| 2406 | { | |
| 2407 | machine_config_free(config); | |
| 2408 | } | |
| 2378 | 2409 | } |
| 2379 | 2410 | |
| 2380 | 2411 | static void SetSamplesEnabled(HWND hWnd, int nIndex, BOOL bSoundEnabled) |
| 2381 | 2412 | { |
| 2413 | machine_config *config = NULL; | |
| 2382 | 2414 | #if (HAS_SAMPLES == 1) || (HAS_VLM5030 == 1) |
| 2383 | 2415 | int i; |
| 2384 | 2416 | BOOL enabled = FALSE; |
| 2385 | 2417 | HWND hCtrl; |
| 2386 | machine_config drv; | |
| 2387 | 2418 | |
| 2388 | 2419 | hCtrl = GetDlgItem(hWnd, IDC_SAMPLES); |
| 2389 | 2420 | |
| 2390 | if ( nIndex > -1 ) | |
| 2391 | expand_machine_driver(drivers[nIndex]->drv,&drv); | |
| 2421 | if ( nIndex > -1 ) { | |
| 2422 | config = machine_config_alloc(drivers[nIndex]->drv); | |
| 2423 | } | |
| 2392 | 2424 | |
| 2393 | 2425 | if (hCtrl) |
| 2394 | 2426 | { |
| 2395 | 2427 | for (i = 0; i < MAX_SOUND; i++) |
| 2396 | 2428 | { |
| 2397 | 2429 | if (nIndex <= -1 |
| 2398 | || | |
| 2430 | || config->sound[i].type == SOUND_SAMPLES | |
| 2399 | 2431 | #if HAS_VLM5030 |
| 2400 | || | |
| 2432 | || config->sound[i].type == SOUND_VLM5030 | |
| 2401 | 2433 | #endif |
| 2402 | 2434 | ) |
| 2403 | 2435 | enabled = TRUE; |
| r1711 | r1712 | |
| 2406 | 2438 | EnableWindow(hCtrl, enabled); |
| 2407 | 2439 | } |
| 2408 | 2440 | #endif |
| 2441 | if (config != NULL) | |
| 2442 | { | |
| 2443 | machine_config_free(config); | |
| 2444 | } | |
| 2409 | 2445 | } |
| 2410 | 2446 | |
| 2411 | 2447 | /* Moved here cause it's called in a few places */ |
| r1711 | r1712 | |
|---|---|---|
| 193 | 193 | /* loop over CPUs and build up their info */ |
| 194 | 194 | for (cpunum = 0; cpunum < MAX_CPU; cpunum++) |
| 195 | 195 | { |
| 196 | cpu_type cputype = Machine-> | |
| 196 | cpu_type cputype = Machine->config->cpu[cpunum].type; | |
| 197 | 197 | |
| 198 | 198 | /* if this is a dummy, stop looking */ |
| 199 | 199 | if (cputype == CPU_DUMMY) |
| r1711 | r1712 | |
|---|---|---|
| 940 | 940 | |
| 941 | 941 | static UINT32 am2Immediate(void) |
| 942 | 942 | { |
| 943 | // | |
| 943 | // ign | |
| 944 | 944 | return am1Immediate(); |
| 945 | 945 | } |
| 946 | 946 | |
| 947 | 947 | static UINT32 am2ImmediateQuick(void) |
| 948 | 948 | { |
| 949 | // | |
| 949 | // ign | |
| 950 | 950 | return am1ImmediateQuick(); |
| 951 | 951 | } |
| 952 | 952 |
| r1711 | r1712 | |
|---|---|---|
| 6 | 6 | /* Functions */ |
| 7 | 7 | |
| 8 | 8 | #if (HAS_SSP1610) |
| 9 | void | |
| 9 | void ssp1 | |
| 10 | 10 | #endif |
| 11 | 11 | |
| 12 | 12 | #ifdef ENABLE_DEBUGGER |
| r1711 | r1712 | |
|---|---|---|
| 29 | 29 | |
| 30 | 30 | /* speed up delay loops, bail out of tight loops */ |
| 31 | 31 | #define BUSY_LOOP_HACKS 0 |
| 32 | /* work only as described in the datasheet */ | |
| 33 | #define DATASHEET_STRICT 0 | |
| 34 | 32 | |
| 35 | 33 | #define VERBOSE 0 |
| 36 | 34 | |
| r1711 | r1712 | |
| 160 | 158 | { |
| 161 | 159 | } |
| 162 | 160 | |
| 161 | #if 0 | |
| 162 | int sign_of(int n) | |
| 163 | { | |
| 164 | return(sh4.fr[n]>>31); | |
| 165 | } | |
| 166 | ||
| 167 | void zero(int n,int sign) | |
| 168 | { | |
| 169 | if (sign == 0) | |
| 170 | sh4.fr[n] = 0x00000000; | |
| 171 | else | |
| 172 | sh4.fr[n] = 0x80000000; | |
| 173 | if ((sh4.fpscr & PR) == 1) | |
| 174 | sh4.fr[n+1] = 0x00000000; | |
| 175 | } | |
| 176 | ||
| 177 | int data_type_of(int n) | |
| 178 | { | |
| 179 | UINT32 abs; | |
| 180 | ||
| 181 | abs = sh4.fr[n] & 0x7fffffff; | |
| 182 | if ((sh4.fpscr & PR) == 0) { /* Single-precision */ | |
| 183 | if (abs < 0x00800000) { | |
| 184 | if (((sh4.fpscr & DN) == 1) || (abs == 0x00000000)) { | |
| 185 | if (sign_of(n) == 0) { | |
| 186 | zero(n, 0); | |
| 187 | return(SH4_FPU_PZERO); | |
| 188 | } else { | |
| 189 | zero(n, 1); | |
| 190 | return(SH4_FPU_NZERO); | |
| 191 | } | |
| 192 | } else | |
| 193 | return(SH4_FPU_DENORM); | |
| 194 | } else | |
| 195 | if (abs < 0x7f800000) | |
| 196 | return(SH4_FPU_NORM); | |
| 197 | else | |
| 198 | if (abs == 0x7f800000) { | |
| 199 | if (sign_of(n) == 0) | |
| 200 | return(SH4_FPU_PINF); | |
| 201 | else | |
| 202 | return(SH4_FPU_NINF); | |
| 203 | } else | |
| 204 | if (abs < 0x7fc00000) | |
| 205 | return(SH4_FPU_qNaN); | |
| 206 | else | |
| 207 | return(SH4_FPU_sNaN); | |
| 208 | } else { /* Double-precision */ | |
| 209 | if (abs < 0x00100000) { | |
| 210 | if (((sh4.fpscr & DN) == 1) || ((abs == 0x00000000) && (sh4.fr[n+1] == 0x00000000))) { | |
| 211 | if(sign_of(n) == 0) { | |
| 212 | zero(n, 0); | |
| 213 | return(SH4_FPU_PZERO); | |
| 214 | } else { | |
| 215 | zero(n, 1); | |
| 216 | return(SH4_FPU_NZERO); | |
| 217 | } | |
| 218 | } else | |
| 219 | return(SH4_FPU_DENORM); | |
| 220 | } else | |
| 221 | if (abs < 0x7ff00000) | |
| 222 | return(SH4_FPU_NORM); | |
| 223 | else | |
| 224 | if ((abs == 0x7ff00000) && (sh4.fr[n+1] == 0x00000000)) { | |
| 225 | if (sign_of(n) == 0) | |
| 226 | return(SH4_FPU_PINF); | |
| 227 | else | |
| 228 | return(SH4_FPU_NINF); | |
| 229 | } else | |
| 230 | if (abs < 0x7ff80000) | |
| 231 | return(SH4_FPU_qNaN); | |
| 232 | else | |
| 233 | return(SH4_FPU_sNaN); | |
| 234 | } | |
| 235 | return(SH4_FPU_NORM); | |
| 236 | } | |
| 237 | #endif | |
| 238 | ||
| 163 | 239 | INLINE UINT8 RB(offs_t A) |
| 164 | 240 | { |
| 165 | 241 | if (A >= 0xfe000000) |
| r1711 | r1712 | |
| 2837 | 2913 | #endif |
| 2838 | 2914 | } else { /* PR = 0 */ |
| 2839 | 2915 | if (sh4.fpu_sz) { /* SZ = 1 */ |
| 2840 | n = n & 14; | |
| 2841 | sh4.ea = sh4.r[m]; | |
| 2842 | sh4.fr[n] = RL( sh4.ea ); | |
| 2843 | sh4.r[m] += 4; | |
| 2844 | sh4.fr[n+1] = RL( sh4.r[m] ); | |
| 2845 | sh4.r[m] += 4; | |
| 2916 | if (n & 1) { | |
| 2917 | n = n & 14; | |
| 2918 | sh4.ea = sh4.r[m]; | |
| 2919 | sh4.xf[n] = RL( sh4.ea ); | |
| 2920 | sh4.r[m] += 4; | |
| 2921 | sh4.xf[n+1] = RL( sh4.ea+4 ); | |
| 2922 | sh4.r[m] += 4; | |
| 2923 | } else { | |
| 2924 | sh4.ea = sh4.r[m]; | |
| 2925 | sh4.fr[n] = RL( sh4.ea ); | |
| 2926 | sh4.r[m] += 4; | |
| 2927 | sh4.fr[n+1] = RL( sh4.ea+4 ); | |
| 2928 | sh4.r[m] += 4; | |
| 2929 | } | |
| 2846 | 2930 | } else { /* SZ = 0 */ |
| 2847 | 2931 | sh4.ea = sh4.r[m]; |
| 2848 | 2932 | sh4.fr[n] = RL( sh4.ea ); |
| r1711 | r1712 | |
| 2897 | 2981 | #endif |
| 2898 | 2982 | } else { /* PR = 0 */ |
| 2899 | 2983 | if (sh4.fpu_sz) { /* SZ = 1 */ |
| 2900 | m= m & 14; | |
| 2901 | sh4.r[n] -= 8; | |
| 2902 | sh4.ea = sh4.r[n]; | |
| 2903 | WL( sh4.ea,sh4.fr[m] ); | |
| 2904 | WL( sh4.ea+4,sh4.fr[m+1] ); | |
| 2984 | if (m & 1) { | |
| 2985 | m= m & 14; | |
| 2986 | sh4.r[n] -= 8; | |
| 2987 | sh4.ea = sh4.r[n]; | |
| 2988 | WL( sh4.ea,sh4.xf[m] ); | |
| 2989 | WL( sh4.ea+4,sh4.xf[m+1] ); | |
| 2990 | } else { | |
| 2991 | sh4.r[n] -= 8; | |
| 2992 | sh4.ea = sh4.r[n]; | |
| 2993 | WL( sh4.ea,sh4.fr[m] ); | |
| 2994 | WL( sh4.ea+4,sh4.fr[m+1] ); | |
| 2995 | } | |
| 2905 | 2996 | } else { /* SZ = 0 */ |
| 2906 | 2997 | sh4.r[n] -= 4; |
| 2907 | 2998 | sh4.ea = sh4.r[n]; |
| r1711 | r1712 | |
| 2973 | 3064 | /* FMOV @Rm,DRn PR=1 1111nnn0mmmm1000 */ |
| 2974 | 3065 | INLINE void FMOVMRFR(UINT32 m,UINT32 n) |
| 2975 | 3066 | { |
| 2976 | #if DATASHEET_STRICT | |
| 2977 | 3067 | if (sh4.fpu_pr) { /* PR = 1 */ |
| 2978 | n= n & 14; | |
| 2979 | sh4.ea = sh4.r[m]; | |
| 2980 | #ifdef LSB_FIRST | |
| 2981 | sh4.xf[n+1] = RL( sh4.ea ); | |
| 2982 | sh4.xf[n] = RL( sh4.ea+4 ); | |
| 2983 | #else | |
| 2984 | sh4.xf[n] = RL( sh4.ea ); | |
| 2985 | sh4.xf[n+1] = RL( sh4.ea+4 ); | |
| 2986 | #endif | |
| 2987 | } else { /* PR = 0 */ | |
| 2988 | if (sh4.fpu_sz) { /* SZ = 1 */ | |
| 2989 | n= n & 14; | |
| 2990 | sh4.ea = sh4.r[m]; | |
| 2991 | sh4.fr[n] = RL( sh4.ea ); | |
| 2992 | sh4.fr[n+1] = RL( sh4.ea+4 ); | |
| 2993 | } else { /* SZ = 0 */ | |
| 2994 | sh4.ea = sh4.r[m]; | |
| 2995 | sh4.fr[n] = RL( sh4.ea ); | |
| 2996 | } | |
| 2997 | } | |
| 2998 | #else | |
| 2999 | if (sh4.fpu_pr) { /* PR = 1 */ | |
| 3000 | 3068 | if (n & 1) { |
| 3001 | 3069 | n= n & 14; |
| 3002 | 3070 | sh4.ea = sh4.r[m]; |
| r1711 | r1712 | |
| 3036 | 3104 | sh4.fr[n] = RL( sh4.ea ); |
| 3037 | 3105 | } |
| 3038 | 3106 | } |
| 3039 | #endif | |
| 3040 | 3107 | } |
| 3041 | 3108 | |
| 3042 | 3109 | /* FMOV FRm,FRn PR=0 SZ=0 FRm -> FRn 1111nnnnmmmm1100 */ |
| r1711 | r1712 | |
| 3046 | 3113 | /* FMOV XDm,XDn PR=1 XDm -> XDn 1111nnn1mmm11100 */ |
| 3047 | 3114 | INLINE void FMOVFR(UINT32 m,UINT32 n) |
| 3048 | 3115 | { |
| 3049 | #if DATASHEET_STRICT | |
| 3050 | if (sh4.fpu_pr) { /* PR = 1 */ | |
| 3051 | if (m & 1) | |
| 3052 | if (n & 1) { | |
| 3053 | sh4.xf[n & 14] = sh4.xf[m & 14]; | |
| 3054 | sh4.xf[n | 1] = sh4.xf[m | 1]; | |
| 3055 | } else { | |
| 3056 | sh4.fr[n] = sh4.xf[m & 14]; | |
| 3057 | sh4.fr[n | 1] = sh4.xf[m | 1]; | |
| 3058 | } | |
| 3059 | else { | |
| 3060 | sh4.xf[n & 14] = sh4.fr[m]; | |
| 3061 | sh4.xf[n | 1] = sh4.fr[m|1]; // (a&14)+1 -> a|1 | |
| 3062 | } | |
| 3063 | } else { /* PR = 0 */ | |
| 3064 | if (sh4.fpu_sz) { /* SZ = 1 */ | |
| 3065 | sh4.fr[n] = sh4.fr[m]; | |
| 3066 | sh4.fr[n+1] = sh4.fr[m+1]; | |
| 3067 | } else { /* SZ = 0 */ | |
| 3068 | sh4.fr[n] = sh4.fr[m]; | |
| 3069 | } | |
| 3070 | } | |
| 3071 | #else | |
| 3072 | if (sh4.fpu_sz == 0) /* SZ = 0 */ | |
| 3116 | if ((sh4.fpu_sz == 0) && (sh4.fpu_pr == 0)) /* SZ = 0 */ | |
| 3073 | 3117 | sh4.fr[n] = sh4.fr[m]; |
| 3074 | 3118 | else { /* SZ = 1 or PR = 1 */ |
| 3075 | if (m & 1) | |
| 3119 | if (m & 1) { | |
| 3076 | 3120 | if (n & 1) { |
| 3077 | 3121 | sh4.xf[n & 14] = sh4.xf[m & 14]; |
| 3078 | 3122 | sh4.xf[n | 1] = sh4.xf[m | 1]; |
| r1711 | r1712 | |
| 3080 | 3124 | sh4.fr[n] = sh4.xf[m & 14]; |
| 3081 | 3125 | sh4.fr[n | 1] = sh4.xf[m | 1]; |
| 3082 | 3126 | } |
| 3083 | else { | |
| 3127 | } else { | |
| 3084 | 3128 | if (n & 1) { |
| 3085 | 3129 | sh4.xf[n & 14] = sh4.fr[m]; |
| 3086 | 3130 | sh4.xf[n | 1] = sh4.fr[m | 1]; // (a&14)+1 -> a|1 |
| 3087 | 3131 | } else { |
| 3088 | sh4.fr[n] = sh4.fr[m | |
| 3132 | sh4.fr[n] = sh4.fr[m | |
| 3089 | 3133 | sh4.fr[n | 1] = sh4.fr[m | 1]; |
| 3090 | 3134 | } |
| 3091 | 3135 | } |
| 3092 | 3136 | } |
| 3093 | #endif | |
| 3094 | 3137 | } |
| 3095 | 3138 | |
| 3096 | 3139 | /* FLDI1 FRn 1111nnnn10011101 */ |
| r1711 | r1712 | |
| 3137 | 3180 | { |
| 3138 | 3181 | if (sh4.fpu_pr) { /* PR = 1 */ |
| 3139 | 3182 | n = n & 14; |
| 3140 | sh4.fpul = (INT32)FP_RFD(n); | |
| 3183 | *((INT32 *)&sh4.fpul) = (INT32)FP_RFD(n); | |
| 3141 | 3184 | } else { /* PR = 0 */ |
| 3142 | 3185 | /* read sh4.fr[n] as float -> truncate -> fpul(32) */ |
| 3143 | sh4.fpul = (INT32)FP_RFS(n); | |
| 3186 | *((INT32 *)&sh4.fpul) = (INT32)FP_RFS(n); | |
| 3144 | 3187 | } |
| 3145 | 3188 | } |
| 3146 | 3189 | |
| r1711 | r1712 | |
| 3150 | 3193 | { |
| 3151 | 3194 | if (sh4.fpu_pr) { /* PR = 1 */ |
| 3152 | 3195 | n = n & 14; |
| 3153 | FP_RFD(n) = (double)(INT32)sh4.fpul; | |
| 3196 | FP_RFD(n) = (double)*((INT32 *)&sh4.fpul); | |
| 3154 | 3197 | } else { /* PR = 0 */ |
| 3155 | FP_RFS(n) = (float)(INT32)sh4.fpul; | |
| 3198 | FP_RFS(n) = (float)*((INT32 *)&sh4.fpul); | |
| 3156 | 3199 | } |
| 3157 | 3200 | } |
| 3158 | 3201 | |
| r1711 | r1712 | |
| 3161 | 3204 | INLINE void FNEG(UINT32 n) |
| 3162 | 3205 | { |
| 3163 | 3206 | if (sh4.fpu_pr) { /* PR = 1 */ |
| 3164 | #ifdef LSB_FIRST | |
| 3165 | n = n | 1; // n & 14 + 1 | |
| 3166 | sh4.fr[n] = sh4.fr[n] ^ 0x80000000; | |
| 3167 | #else | |
| 3168 | n = n & 14; | |
| 3169 | sh4.fr[n] = sh4.fr[n] ^ 0x80000000; | |
| 3170 | #endif | |
| 3207 | FP_RFD(n) = -FP_RFD(n); | |
| 3171 | 3208 | } else { /* PR = 0 */ |
| 3172 | | |
| 3209 | FP_RFS(n) = -FP_RFS(n) | |
| 3173 | 3210 | } |
| 3174 | 3211 | } |
| 3175 | 3212 | |
| 3176 | ||
| 3177 | 3213 | /* FABS FRn PR=0 1111nnnn01011101 */ |
| 3178 | 3214 | /* FABS DRn PR=1 1111nnn001011101 */ |
| 3179 | 3215 | INLINE void FABS(UINT32 n) |
| r1711 | r1712 | |
| 3250 | 3286 | { |
| 3251 | 3287 | if (sh4.fpu_pr) { /* PR = 1 */ |
| 3252 | 3288 | n = n & 14; |
| 3253 | FP_RFD(n) = *((float *)&sh4.fpul); | |
| 3289 | FP_RFD(n) = (double)*((float *)&sh4.fpul); | |
| 3254 | 3290 | } |
| 3255 | 3291 | } |
| 3256 | 3292 | |
| r1711 | r1712 | |
| 3331 | 3367 | } else { /* PR = 0 */ |
| 3332 | 3368 | if (FP_RFS(n) < 0) |
| 3333 | 3369 | return; |
| 3334 | FP_RFS(n) = sqrt(FP_RFS(n)); | |
| 3370 | FP_RFS(n) = sqrtf(FP_RFS(n)); | |
| 3335 | 3371 | } |
| 3336 | 3372 | } |
| 3337 | 3373 | |
| 3374 | /* FSRRA FRn PR=0 1111nnnn01111101 */ | |
| 3375 | INLINE void FSRRA(UINT32 n) | |
| 3376 | { | |
| 3377 | if (FP_RFS(n) < 0) | |
| 3378 | return; | |
| 3379 | FP_RFS(n) = 1.0 / sqrtf(FP_RFS(n)); | |
| 3380 | } | |
| 3381 | ||
| 3382 | /* FSSCA FPUL,FRn PR=0 1111nnn011111101 */ | |
| 3383 | INLINE void FSSCA(UINT32 n) | |
| 3384 | { | |
| 3385 | float angle; | |
| 3386 | ||
| 3387 | angle = (((float)(sh4.fpul & 0xFFFF)) / 65536.0) * 2.0 * M_PI; | |
| 3388 | FP_RFS(n) = sinf(angle); | |
| 3389 | FP_RFS(n+1) = cosf(angle); | |
| 3390 | } | |
| 3391 | ||
| 3338 | 3392 | /* FIPR FVm,FVn PR=0 1111nnmm11101101 */ |
| 3339 | 3393 | INLINE void FIPR(UINT32 n) |
| 3340 | 3394 | { |
| r1711 | r1712 | |
| 3359 | 3413 | for (i = 0;i < 4;i++) { |
| 3360 | 3414 | sum[i] = 0; |
| 3361 | 3415 | for (j=0;j < 4;j++) |
| 3362 | sum[i] += FP_XFS((j << 2) + i)*FP_RFS(n + | |
| 3416 | sum[i] += FP_XFS((j << 2) + i)*FP_RFS(n + j); | |
| 3363 | 3417 | FP_RFS(n + i) = sum[i]; |
| 3364 | 3418 | } |
| 3365 | 3419 | } |
| r1711 | r1712 | |
| 3431 | 3485 | case 0x60: |
| 3432 | 3486 | FSQRT(Rn); |
| 3433 | 3487 | break; |
| 3488 | case 0x70: | |
| 3489 | FSRRA(Rn); | |
| 3490 | break; | |
| 3434 | 3491 | case 0x80: |
| 3435 | 3492 | FLDI0(Rn); |
| 3436 | 3493 | break; |
| r1711 | r1712 | |
| 3447 | 3504 | FIPR(Rn); |
| 3448 | 3505 | break; |
| 3449 | 3506 | case 0xF0: |
| 3450 | if (opcode == 0xF3FD) | |
| 3451 | FSCHG(); | |
| 3452 | else if (opcode == 0xFBFD) | |
| 3453 | FRCHG(); | |
| 3454 | else if ((opcode & 0x300) == 0x100) | |
| 3455 | FTRV(Rn); | |
| 3507 | if (opcode & 0x100) { | |
| 3508 | if (opcode & 0x200) { | |
| 3509 | switch (opcode & 0xC00) | |
| 3510 | { | |
| 3511 | case 0x000: | |
| 3512 | FSCHG(); | |
| 3513 | break; | |
| 3514 | case 0x800: | |
| 3515 | FRCHG(); | |
| 3516 | break; | |
| 3517 | #ifdef ENABLE_DEBUGGER | |
| 3518 | default: | |
| 3519 | mame_debug_break(); | |
| 3520 | break; | |
| 3521 | #endif | |
| 3522 | } | |
| 3523 | } else { | |
| 3524 | FTRV(Rn); | |
| 3525 | } | |
| 3526 | } else { | |
| 3527 | FSSCA(Rn); | |
| 3528 | } | |
| 3456 | 3529 | break; |
| 3530 | #ifdef ENABLE_DEBUGGER | |
| 3531 | default: | |
| 3532 | mame_debug_break(); | |
| 3533 | break; | |
| 3534 | #endif | |
| 3457 | 3535 | } |
| 3458 | 3536 | break; |
| 3459 | 3537 | case 14: |
| 3460 | 3538 | FMAC(Rm,Rn); |
| 3461 | 3539 | break; |
| 3540 | #ifdef ENABLE_DEBUGGER | |
| 3541 | default: | |
| 3542 | mame_debug_break(); | |
| 3543 | break; | |
| 3544 | #endif | |
| 3462 | 3545 | } |
| 3463 | 3546 | } |
| 3464 | 3547 | |
| r1711 | r1712 | |
| 5132 | 5215 | case CPUINFO_STR_REGISTER + SH4_FPSCR: sprintf(info->s, "FPSCR :%08X", sh4.fpscr); break; |
| 5133 | 5216 | case CPUINFO_STR_REGISTER + SH4_FPUL: sprintf(info->s, "FPUL :%08X", sh4.fpul); break; |
| 5134 | 5217 | #ifdef LSB_FIRST |
| 5135 | case CPUINFO_STR_REGISTER + SH4_FR0: sprintf(info->s, "FR0 :%08X %01. | |
| 5218 | case CPUINFO_STR_REGISTER + SH4_FR0: sprintf(info->s, "FR0 :%08X %01.2e", FP_RS2( 0),(double)FP_RFS2( 0)); break; | |
| 5136 | 5219 | case CPUINFO_STR_REGISTER + SH4_FR1: sprintf(info->s, "FR1 :%08X %01.2e", FP_RS2( 1),(double)FP_RFS2( 1)); break; |
| 5137 | 5220 | case CPUINFO_STR_REGISTER + SH4_FR2: sprintf(info->s, "FR2 :%08X %01.2e", FP_RS2( 2),(double)FP_RFS2( 2)); break; |
| 5138 | 5221 | case CPUINFO_STR_REGISTER + SH4_FR3: sprintf(info->s, "FR3 :%08X %01.2e", FP_RS2( 3),(double)FP_RFS2( 3)); break; |
| r1711 | r1712 | |
| 5165 | 5248 | case CPUINFO_STR_REGISTER + SH4_XF14: sprintf(info->s, "XF14 :%08X %01.2e", FP_XS2(14),(double)FP_XFS2(14)); break; |
| 5166 | 5249 | case CPUINFO_STR_REGISTER + SH4_XF15: sprintf(info->s, "XF15 :%08X %01.2e", FP_XS2(15),(double)FP_XFS2(15)); break; |
| 5167 | 5250 | #else |
| 5168 | case CPUINFO_STR_REGISTER + SH4_FR0: sprintf(info->s, "FR0 :%08X %01. | |
| 5251 | case CPUINFO_STR_REGISTER + SH4_FR0: sprintf(info->s, "FR0 :%08X %01.2e", FP_RS( 0),(double)FP_RFS( 0)); break; | |
| 5169 | 5252 | case CPUINFO_STR_REGISTER + SH4_FR1: sprintf(info->s, "FR1 :%08X %01.2e", FP_RS( 1),(double)FP_RFS( 1)); break; |
| 5170 | 5253 | case CPUINFO_STR_REGISTER + SH4_FR2: sprintf(info->s, "FR2 :%08X %01.2e", FP_RS( 2),(double)FP_RFS( 2)); break; |
| 5171 | 5254 | case CPUINFO_STR_REGISTER + SH4_FR3: sprintf(info->s, "FR3 :%08X %01.2e", FP_RS( 3),(double)FP_RFS( 3)); break; |
| r1711 | r1712 | |
|---|---|---|
| 42 | 42 | SH4_INTC_SCIFTXI, SH4_INTC_ITI, SH4_INTC_RCMI, SH4_INTC_ROVI |
| 43 | 43 | }; |
| 44 | 44 | |
| 45 | #define SH4_FPU_PZERO 0 | |
| 46 | #define SH4_FPU_NZERO 1 | |
| 47 | #define SH4_FPU_DENORM 2 | |
| 48 | #define SH4_FPU_NORM 3 | |
| 49 | #define SH4_FPU_PINF 4 | |
| 50 | #define SH4_FPU_NINF 5 | |
| 51 | #define SH4_FPU_qNaN 6 | |
| 52 | #define SH4_FPU_sNaN 7 | |
| 53 | ||
| 45 | 54 | enum |
| 46 | 55 | { |
| 47 | 56 | CPUINFO_INT_SH4_IRLn_INPUT = CPUINFO_INT_CPU_SPECIFIC, |
| r1711 | r1712 | |
|---|---|---|
| 9 | 9 | |
| 10 | 10 | static const char *const regname[16] = { |
| 11 | 11 | "R0", "R1", "R2", "R3", "R4", "R5", "R6", "R7", |
| 12 | "R8", "R9", "R10","R11","R12","R13","R14"," | |
| 12 | "R8", "R9", "R10","R11","R12","R13","R14","R15" | |
| 13 | 13 | }; |
| 14 | 14 | |
| 15 | 15 | static UINT32 op0000(char *buffer, UINT32 pc, UINT16 opcode) |
| r1711 | r1712 | |
| 721 | 721 | case 0x60: |
| 722 | 722 | sprintf(buffer, "FSQRT F%s\n", regname[Rn]); |
| 723 | 723 | break; |
| 724 | case 0x70: | |
| 725 | sprintf(buffer, "FSRRA F%s\n", regname[Rn]); | |
| 726 | break; | |
| 724 | 727 | case 0x80: |
| 725 | 728 | sprintf(buffer, "FLDI0 F%s\n", regname[Rn]); |
| 726 | 729 | break; |
| r1711 | r1712 | |
| 737 | 740 | sprintf(buffer, "FIPR FV%d, FV%d\n", Rn << 2, Rn & 12); |
| 738 | 741 | break; |
| 739 | 742 | case 0xF0: |
| 740 | if (opcode == 0xF3FD) | |
| 741 | sprintf(buffer, "FSCHG\n"); | |
| 742 | else if (opcode == 0xFBFD) | |
| 743 | sprintf(buffer, "FRCHG\n"); | |
| 744 | else if ((opcode & 0x300) == 0x100) | |
| 745 | sprintf(buffer, "FTRV XMTRX, FV%d\n", Rn & 12); | |
| 746 | else | |
| 747 | sprintf(buffer, "Funknown $%04X", opcode); | |
| 743 | if (opcode & 0x100) { | |
| 744 | if (opcode & 0x200) { | |
| 745 | switch (opcode & 0xC00) | |
| 746 | { | |
| 747 | case 0x000: | |
| 748 | sprintf(buffer, "FSCHG\n"); | |
| 749 | break; | |
| 750 | case 0x800: | |
| 751 | sprintf(buffer, "FRCHG\n"); | |
| 752 | break; | |
| 753 | default: | |
| 754 | sprintf(buffer, "Funknown $%04X", opcode); | |
| 755 | break; | |
| 756 | } | |
| 757 | } else { | |
| 758 | sprintf(buffer, "FTRV XMTRX, FV%d\n", Rn & 12); | |
| 759 | } | |
| 760 | } else { | |
| 761 | sprintf(buffer, "FSSCA FPUL, F%d\n", Rn & 14); | |
| 762 | } | |
| 748 | 763 | break; |
| 749 | 764 | default: |
| 750 | 765 | sprintf(buffer, "Funknown $%04X", opcode); |
| r1711 | r1712 | |
|---|---|---|
| 38 | 38 | ALPHA8201_R4,ALPHA8201_R5,ALPHA8201_R6,ALPHA8201_R7 |
| 39 | 39 | }; |
| 40 | 40 | |
| 41 | extern void ALPHA8201_get_info(UINT32 state, cpuinfo *info); | |
| 42 | extern void ALPHA8301_get_info(UINT32 state, cpuinfo *info); | |
| 41 | extern void alpha8201_get_info(UINT32 state, cpuinfo *info); | |
| 42 | extern void alpha8301_get_info(UINT32 state, cpuinfo *info); | |
| 43 | 43 | |
| 44 | 44 | /* |
| 45 | 45 | * Read a UINT8 from given memory location |
| r1711 | r1712 | |
|---|---|---|
| 114 | 114 | #include "nec.h" |
| 115 | 115 | #include "necintrf.h" |
| 116 | 116 | |
| 117 | ||
| 118 | /* default configuration */ | |
| 119 | static const nec_config default_config = | |
| 120 | { | |
| 121 | NULL | |
| 122 | }; | |
| 123 | ||
| 117 | 124 | extern int necv_dasm_one(char *buffer, UINT32 eip, const UINT8 *oprom); |
| 118 | 125 | |
| 119 | 126 | /* NEC registers */ |
| r1711 | r1712 | |
| 158 | 165 | int (*irq_callback)(int irqline); |
| 159 | 166 | |
| 160 | 167 | memory_interface mem; |
| 168 | ||
| 169 | const nec_config *config; | |
| 170 | ||
| 171 | ||
| 161 | 172 | } nec_Regs; |
| 162 | 173 | |
| 163 | 174 | /***************************************************************************/ |
| r1711 | r1712 | |
| 185 | 196 | |
| 186 | 197 | static UINT8 parity_table[256]; |
| 187 | 198 | |
| 199 | #include "cpuintrf.h" | |
| 200 | ||
| 201 | static UINT8 fetchop(void) | |
| 202 | { | |
| 203 | UINT8 ret = cpu_readop( FETCH_XOR( ( I.sregs[PS]<<4)+I.ip++)); | |
| 204 | ||
| 205 | if (I.MF == 1) | |
| 206 | if (I.config->v25v35_decryptiontable) | |
| 207 | { | |
| 208 | ret = I.config->v25v35_decryptiontable[ret]; | |
| 209 | } | |
| 210 | return ret; | |
| 211 | } | |
| 212 | ||
| 213 | ||
| 188 | 214 | /***************************************************************************/ |
| 189 | 215 | |
| 190 | 216 | static void nec_reset (void) |
| 191 | 217 | { |
| 218 | const nec_config *config; | |
| 192 | 219 | unsigned int i,j,c; |
| 193 | 220 | static const BREGS reg_name[8]={ AL, CL, DL, BL, AH, CH, DH, BH }; |
| 194 | 221 | int (*save_irqcallback)(int); |
| r1711 | r1712 | |
| 196 | 223 | |
| 197 | 224 | save_irqcallback = I.irq_callback; |
| 198 | 225 | save_mem = I.mem; |
| 226 | config = I.config; | |
| 199 | 227 | memset( &I, 0, sizeof(I) ); |
| 200 | 228 | I.irq_callback = save_irqcallback; |
| 201 | 229 | I.mem = save_mem; |
| 230 | I.config = config; | |
| 202 | 231 | |
| 232 | ||
| 203 | 233 | I.sregs[PS] = 0xffff; |
| 204 | 234 | |
| 205 | 235 | CHANGE_PC; |
| r1711 | r1712 | |
| 214 | 244 | I.ZeroVal = I.ParityVal = 1; |
| 215 | 245 | SetMD(1); /* set the mode-flag = native mode */ |
| 216 | 246 | |
| 247 | /* for v25+ / v35+ there is an internal decryption table */ | |
| 248 | //I.config->v25v35_decryptiontable = gussun_test_decryption_table; | |
| 249 | ||
| 217 | 250 | for (i = 0; i < 256; i++) |
| 218 | 251 | { |
| 219 | 252 | Mod_RM.reg.b[i] = reg_name[(i & 0x38) >> 3]; |
| r1711 | r1712 | |
| 262 | 295 | |
| 263 | 296 | static void nec_trap(void) |
| 264 | 297 | { |
| 265 | nec_instruction[ | |
| 298 | nec_instruction[fetchop()](); | |
| 266 | 299 | nec_interrupt(1,0); |
| 267 | 300 | } |
| 268 | 301 | |
| r1711 | r1712 | |
| 362 | 395 | OP( 0x23, i_and_r16w ) { DEF_r16w; ANDW; RegWord(ModRM)=dst; CLKR(15,15,8,15,11,6,2,EA); } |
| 363 | 396 | OP( 0x24, i_and_ald8 ) { DEF_ald8; ANDB; I.regs.b[AL]=dst; CLKS(4,4,2); } |
| 364 | 397 | OP( 0x25, i_and_axd16) { DEF_axd16; ANDW; I.regs.w[AW]=dst; CLKS(4,4,2); } |
| 365 | OP( 0x26, i_es ) { seg_prefix=TRUE; prefix_base=I.sregs[DS1]<<4; CLK(2); nec_instruction[ | |
| 398 | OP( 0x26, i_es ) { seg_prefix=TRUE; prefix_base=I.sregs[DS1]<<4; CLK(2); nec_instruction[fetchop()](); seg_prefix=FALSE; } | |
| 366 | 399 | OP( 0x27, i_daa ) { ADJ4(6,0x60); CLKS(3,3,2); } |
| 367 | 400 | |
| 368 | 401 | OP( 0x28, i_sub_br8 ) { DEF_br8; SUBB; PutbackRMByte(ModRM,dst); CLKM(2,2,2,16,13,7); } |
| r1711 | r1712 | |
| 371 | 404 | OP( 0x2b, i_sub_r16w ) { DEF_r16w; SUBW; RegWord(ModRM)=dst; CLKR(15,15,8,15,11,6,2,EA); } |
| 372 | 405 | OP( 0x2c, i_sub_ald8 ) { DEF_ald8; SUBB; I.regs.b[AL]=dst; CLKS(4,4,2); } |
| 373 | 406 | OP( 0x2d, i_sub_axd16) { DEF_axd16; SUBW; I.regs.w[AW]=dst; CLKS(4,4,2); } |
| 374 | OP( 0x2e, i_cs ) { seg_prefix=TRUE; prefix_base=I.sregs[PS]<<4; CLK(2); nec_instruction[ | |
| 407 | OP( 0x2e, i_cs ) { seg_prefix=TRUE; prefix_base=I.sregs[PS]<<4; CLK(2); nec_instruction[fetchop()](); seg_prefix=FALSE; } | |
| 375 | 408 | OP( 0x2f, i_das ) { ADJ4(-6,-0x60); CLKS(3,3,2); } |
| 376 | 409 | |
| 377 | 410 | OP( 0x30, i_xor_br8 ) { DEF_br8; XORB; PutbackRMByte(ModRM,dst); CLKM(2,2,2,16,13,7); } |
| r1711 | r1712 | |
| 380 | 413 | OP( 0x33, i_xor_r16w ) { DEF_r16w; XORW; RegWord(ModRM)=dst; CLKR(15,15,8,15,11,6,2,EA); } |
| 381 | 414 | OP( 0x34, i_xor_ald8 ) { DEF_ald8; XORB; I.regs.b[AL]=dst; CLKS(4,4,2); } |
| 382 | 415 | OP( 0x35, i_xor_axd16) { DEF_axd16; XORW; I.regs.w[AW]=dst; CLKS(4,4,2); } |
| 383 | OP( 0x36, i_ss ) { seg_prefix=TRUE; prefix_base=I.sregs[SS]<<4; CLK(2); nec_instruction[ | |
| 416 | OP( 0x36, i_ss ) { seg_prefix=TRUE; prefix_base=I.sregs[SS]<<4; CLK(2); nec_instruction[fetchop()](); seg_prefix=FALSE; } | |
| 384 | 417 | OP( 0x37, i_aaa ) { ADJB(6, (I.regs.b[AL] > 0xf9) ? 2 : 1); CLKS(7,7,4); } |
| 385 | 418 | |
| 386 | 419 | OP( 0x38, i_cmp_br8 ) { DEF_br8; SUBB; CLKM(2,2,2,11,10,6); } |
| r1711 | r1712 | |
| 389 | 422 | OP( 0x3b, i_cmp_r16w ) { DEF_r16w; SUBW; CLKR(15,15,8,15,11,6,2,EA); } |
| 390 | 423 | OP( 0x3c, i_cmp_ald8 ) { DEF_ald8; SUBB; CLKS(4,4,2); } |
| 391 | 424 | OP( 0x3d, i_cmp_axd16) { DEF_axd16; SUBW; CLKS(4,4,2); } |
| 392 | OP( 0x3e, i_ds ) { seg_prefix=TRUE; prefix_base=I.sregs[DS0]<<4; CLK(2); nec_instruction[ | |
| 425 | OP( 0x3e, i_ds ) { seg_prefix=TRUE; prefix_base=I.sregs[DS0]<<4; CLK(2); nec_instruction[fetchop()](); seg_prefix=FALSE; } | |
| 393 | 426 | OP( 0x3f, i_aas ) { ADJB(-6, (I.regs.b[AL] < 6) ? -2 : -1); CLKS(7,7,4); } |
| 394 | 427 | |
| 395 | 428 | OP( 0x40, i_inc_ax ) { IncWordReg(AW); CLK(2); } |
| r1711 | r1712 | |
| 464 | 497 | nec_ICount-=20; |
| 465 | 498 | logerror("%06x: bound %04x high %04x low %04x tmp\n",activecpu_get_pc(),high,low,tmp); |
| 466 | 499 | } |
| 467 | OP( 0x64, i_repnc ) { UINT32 next = FETCHOP; UINT16 c = I.regs.w[CW]; | |
| 500 | OP( 0x63, i_brkn ) { nec_interrupt(FETCH,1); CLKS(50,50,24); } // timing not verified, used by riskchal / gussun | |
| 501 | OP( 0x64, i_repnc ) { UINT32 next = fetchop(); UINT16 c = I.regs.w[CW]; | |
| 468 | 502 | switch(next) { /* Segments */ |
| 469 | case 0x26: seg_prefix=TRUE; prefix_base=I.sregs[DS1]<<4; next = FETCHOP; CLK(2); break; | |
| 470 | case 0x2e: seg_prefix=TRUE; prefix_base=I.sregs[PS]<<4; next = FETCHOP; CLK(2); break; | |
| 471 | case 0x36: seg_prefix=TRUE; prefix_base=I.sregs[SS]<<4; next = FETCHOP; CLK(2); break; | |
| 472 | case 0x3e: seg_prefix=TRUE; prefix_base=I.sregs[DS0]<<4; next = FETCHOP; CLK(2); break; | |
| 503 | case 0x26: seg_prefix=TRUE; prefix_base=I.sregs[DS1]<<4; next = fetchop(); CLK(2); break; | |
| 504 | case 0x2e: seg_prefix=TRUE; prefix_base=I.sregs[PS]<<4; next = fetchop(); CLK(2); break; | |
| 505 | case 0x36: seg_prefix=TRUE; prefix_base=I.sregs[SS]<<4; next = fetchop(); CLK(2); break; | |
| 506 | case 0x3e: seg_prefix=TRUE; prefix_base=I.sregs[DS0]<<4; next = fetchop(); CLK(2); break; | |
| 473 | 507 | } |
| 474 | 508 | |
| 475 | 509 | switch(next) { |
| r1711 | r1712 | |
| 492 | 526 | seg_prefix=FALSE; |
| 493 | 527 | } |
| 494 | 528 | |
| 495 | OP( 0x65, i_repc ) { UINT32 next = | |
| 529 | OP( 0x65, i_repc ) { UINT32 next = fetchop(); UINT16 c = I.regs.w[CW]; | |
| 496 | 530 | switch(next) { /* Segments */ |
| 497 | case 0x26: seg_prefix=TRUE; prefix_base=I.sregs[DS1]<<4; next = FETCHOP; CLK(2); break; | |
| 498 | case 0x2e: seg_prefix=TRUE; prefix_base=I.sregs[PS]<<4; next = FETCHOP; CLK(2); break; | |
| 499 | case 0x36: seg_prefix=TRUE; prefix_base=I.sregs[SS]<<4; next = FETCHOP; CLK(2); break; | |
| 500 | case 0x3e: seg_prefix=TRUE; prefix_base=I.sregs[DS0]<<4; next = FETCHOP; CLK(2); break; | |
| 531 | case 0x26: seg_prefix=TRUE; prefix_base=I.sregs[DS1]<<4; next = fetchop(); CLK(2); break; | |
| 532 | case 0x2e: seg_prefix=TRUE; prefix_base=I.sregs[PS]<<4; next = fetchop(); CLK(2); break; | |
| 533 | case 0x36: seg_prefix=TRUE; prefix_base=I.sregs[SS]<<4; next = fetchop(); CLK(2); break; | |
| 534 | case 0x3e: seg_prefix=TRUE; prefix_base=I.sregs[DS0]<<4; next = fetchop(); CLK(2); break; | |
| 501 | 535 | } |
| 502 | 536 | |
| 503 | 537 | switch(next) { |
| r1711 | r1712 | |
| 749 | 783 | OP( 0xcc, i_int3 ) { nec_interrupt(3,0); CLKS(50,50,24); } |
| 750 | 784 | OP( 0xcd, i_int ) { nec_interrupt(FETCH,0); CLKS(50,50,24); } |
| 751 | 785 | OP( 0xce, i_into ) { if (OF) { nec_interrupt(4,0); CLKS(52,52,26); } else CLK(3); } |
| 752 | OP( 0xcf, i_iret ) { POP(I.ip); POP(I.sregs[PS]); i_popf(); CHANGE_PC; CLKS(39,39,19); } | |
| 786 | OP( 0xcf, i_iret ) { POP(I.ip); POP(I.sregs[PS]); i_popf(); SetMD(1); CHANGE_PC; CLKS(39,39,19); } | |
| 753 | 787 | |
| 754 | 788 | OP( 0xd0, i_rotshft_b ) { |
| 755 | 789 | UINT32 src, dst; GetModRM; src = (UINT32)GetRMByte(ModRM); dst=src; |
| r1711 | r1712 | |
| 841 | 875 | OP( 0xef, i_outdxax ) { write_port_word(I.regs.w[DW], I.regs.w[AW]); CLKW(12,12,5,12,8,3,I.regs.w[DW]); } |
| 842 | 876 | |
| 843 | 877 | OP( 0xf0, i_lock ) { logerror("%06x: Warning - BUSLOCK\n",activecpu_get_pc()); I.no_interrupt=1; CLK(2); } |
| 844 | OP( 0xf2, i_repne ) { UINT32 next = | |
| 878 | OP( 0xf2, i_repne ) { UINT32 next = fetchop(); UINT16 c = I.regs.w[CW]; | |
| 845 | 879 | switch(next) { /* Segments */ |
| 846 | case 0x26: seg_prefix=TRUE; prefix_base=I.sregs[DS1]<<4; next = FETCHOP; CLK(2); break; | |
| 847 | case 0x2e: seg_prefix=TRUE; prefix_base=I.sregs[PS]<<4; next = FETCHOP; CLK(2); break; | |
| 848 | case 0x36: seg_prefix=TRUE; prefix_base=I.sregs[SS]<<4; next = FETCHOP; CLK(2); break; | |
| 849 | case 0x3e: seg_prefix=TRUE; prefix_base=I.sregs[DS0]<<4; next = FETCHOP; CLK(2); break; | |
| 880 | case 0x26: seg_prefix=TRUE; prefix_base=I.sregs[DS1]<<4; next = fetchop(); CLK(2); break; | |
| 881 | case 0x2e: seg_prefix=TRUE; prefix_base=I.sregs[PS]<<4; next = fetchop(); CLK(2); break; | |
| 882 | case 0x36: seg_prefix=TRUE; prefix_base=I.sregs[SS]<<4; next = fetchop(); CLK(2); break; | |
| 883 | case 0x3e: seg_prefix=TRUE; prefix_base=I.sregs[DS0]<<4; next = fetchop(); CLK(2); break; | |
| 850 | 884 | } |
| 851 | 885 | |
| 852 | 886 | switch(next) { |
| r1711 | r1712 | |
| 868 | 902 | } |
| 869 | 903 | seg_prefix=FALSE; |
| 870 | 904 | } |
| 871 | OP( 0xf3, i_repe ) { UINT32 next = | |
| 905 | OP( 0xf3, i_repe ) { UINT32 next = fetchop(); UINT16 c = I.regs.w[CW]; | |
| 872 | 906 | switch(next) { /* Segments */ |
| 873 | case 0x26: seg_prefix=TRUE; prefix_base=I.sregs[DS1]<<4; next = FETCHOP; CLK(2); break; | |
| 874 | case 0x2e: seg_prefix=TRUE; prefix_base=I.sregs[PS]<<4; next = FETCHOP; CLK(2); break; | |
| 875 | case 0x36: seg_prefix=TRUE; prefix_base=I.sregs[SS]<<4; next = FETCHOP; CLK(2); break; | |
| 876 | case 0x3e: seg_prefix=TRUE; prefix_base=I.sregs[DS0]<<4; next = FETCHOP; CLK(2); break; | |
| 907 | case 0x26: seg_prefix=TRUE; prefix_base=I.sregs[DS1]<<4; next = fetchop(); CLK(2); break; | |
| 908 | case 0x2e: seg_prefix=TRUE; prefix_base=I.sregs[PS]<<4; next = fetchop(); CLK(2); break; | |
| 909 | case 0x36: seg_prefix=TRUE; prefix_base=I.sregs[SS]<<4; next = fetchop(); CLK(2); break; | |
| 910 | case 0x3e: seg_prefix=TRUE; prefix_base=I.sregs[DS0]<<4; next = fetchop(); CLK(2); break; | |
| 877 | 911 | } |
| 878 | 912 | |
| 879 | 913 | switch(next) { |
| r1711 | r1712 | |
| 1013 | 1047 | } |
| 1014 | 1048 | #endif /* ENABLE_DEBUGGER */ |
| 1015 | 1049 | |
| 1016 | static void nec_init(int index, int clock, const void *config, int (*irqcallback)(int), int type) | |
| 1050 | static void nec_init(int index, int clock, const void *_config, int (*irqcallback)(int), int type) | |
| 1017 | 1051 | { |
| 1052 | const nec_config *config = _config ? _config : &default_config; | |
| 1053 | ||
| 1054 | ||
| 1018 | 1055 | static const char *const names[]={"V20","V30","V33"}; |
| 1019 | 1056 | |
| 1057 | I.config = config; | |
| 1058 | ||
| 1059 | ||
| 1020 | 1060 | state_save_register_item_array(names[type], index, I.regs.w); |
| 1021 | 1061 | state_save_register_item_array(names[type], index, I.sregs); |
| 1022 | 1062 | |
| r1711 | r1712 | |
| 1180 | 1220 | I.no_interrupt--; |
| 1181 | 1221 | |
| 1182 | 1222 | CALL_DEBUGGER((I.sregs[PS]<<4) + I.ip); |
| 1183 | nec_instruction[ | |
| 1223 | nec_instruction[fetchop()](); | |
| 1184 | 1224 | } |
| 1185 | 1225 | return cycles - nec_ICount; |
| 1186 | 1226 | } |
| r1711 | r1712 | |
| 1211 | 1251 | I.no_interrupt--; |
| 1212 | 1252 | |
| 1213 | 1253 | CALL_DEBUGGER((I.sregs[PS]<<4) + I.ip); |
| 1214 | nec_instruction[ | |
| 1254 | nec_instruction[fetchop()](); | |
| 1215 | 1255 | } |
| 1216 | 1256 | return cycles - nec_ICount; |
| 1217 | 1257 | } |
| r1711 | r1712 | |
| 1243 | 1283 | I.no_interrupt--; |
| 1244 | 1284 | |
| 1245 | 1285 | CALL_DEBUGGER((I.sregs[PS]<<4) + I.ip); |
| 1246 | nec_instruction[ | |
| 1286 | nec_instruction[fetchop()](); | |
| 1247 | 1287 | } |
| 1248 | 1288 | |
| 1249 | 1289 | return cycles - nec_ICount; |
| r1711 | r1712 | |
|---|---|---|
| 1 | 1 | #include "cpuintrf.h" |
| 2 | 2 | |
| 3 | typedef struct _nec_config nec_config; | |
| 4 | struct _nec_config | |
| 5 | { | |
| 6 | const UINT8* v25v35_decryptiontable; // internal decryption table | |
| 7 | }; | |
| 8 | ||
| 9 | ||
| 3 | 10 | typedef enum { DS1, PS, SS, DS0 } SREGS; |
| 4 | 11 | typedef enum { AW, CW, DW, BW, SP, BP, IX, IY } WREGS; |
| 5 | 12 | |
| r1711 | r1712 | |
| 95 | 102 | |
| 96 | 103 | #define FETCH_XOR(a) ((a) ^ I.mem.fetch_xor) |
| 97 | 104 | #define FETCH (cpu_readop_arg(FETCH_XOR((I.sregs[PS]<<4)+I.ip++))) |
| 98 | #define FETCHOP (cpu_readop(FETCH_XOR((I.sregs[PS]<<4)+I.ip++))) | |
| 105 | ||
| 106 | ||
| 107 | #define FETCHOP () | |
| 99 | 108 | #define FETCHWORD(var) { var=cpu_readop_arg(FETCH_XOR((I.sregs[PS]<<4)+I.ip))+(cpu_readop_arg(FETCH_XOR((I.sregs[PS]<<4)+I.ip+1))<<8); I.ip+=2; } |
| 100 | 109 | #define PUSH(val) { I.regs.w[SP]-=2; write_word((((I.sregs[SS]<<4)+I.regs.w[SP])),val); } |
| 101 | 110 | #define POP(var) { var = read_word((((I.sregs[SS]<<4)+I.regs.w[SP]))); I.regs.w[SP]+=2; } |
| r1711 | r1712 | |
|---|---|---|
| 97 | 97 | static void i_pusha(void); |
| 98 | 98 | static void i_popa(void); |
| 99 | 99 | static void i_chkind(void); |
| 100 | static void i_brkn(void); | |
| 100 | 101 | static void i_repnc(void); |
| 101 | 102 | static void i_repc(void); |
| 102 | 103 | static void i_push_d16(void); |
| r1711 | r1712 | |
| 347 | 348 | i_pusha, /* 0x60 */ |
| 348 | 349 | i_popa, /* 0x61 */ |
| 349 | 350 | i_chkind, /* 0x62 */ |
| 350 | i_invalid, /* 0x63 */ | |
| 351 | i_repnc, /* 0x64 */ | |
| 352 | i_repc, /* 0x65 */ | |
| 353 | i_invalid, /* 0x66 */ | |
| 354 | i_invalid, /* 0x67 */ | |
| 351 | i_brkn, /* 0x63 */ // brkn - v25+ / 35+ only? | |
| 352 | i_repnc, /* 0x64 */ | |
| 353 | i_repc, /* 0x65 */ | |
| 354 | i_invalid, /* 0x66 */ | |
| 355 | i_invalid, /* 0x67 */ | |
| 355 | 356 | i_push_d16, /* 0x68 */ |
| 356 | 357 | i_imul_d16, /* 0x69 */ |
| 357 | 358 | i_push_d8, /* 0x6a */ |
| r1711 | r1712 | |
|---|---|---|
| 155 | 155 | ui_gfx_state *state = &ui_gfx; |
| 156 | 156 | |
| 157 | 157 | /* if we have nothing, implicitly cancel */ |
| 158 | if (Machine-> | |
| 158 | if (Machine->config->total_colors == 0 && Machine-> | |
| 159 | 159 | goto cancel; |
| 160 | 160 | |
| 161 | 161 | /* if we're not paused, mark the bitmap dirty */ |
| r1711 | r1712 | |
| 168 | 168 | { |
| 169 | 169 | case 0: |
| 170 | 170 | /* if we have a palette, display it */ |
| 171 | if (Machine-> | |
| 171 | if (Machine->config->total_colors > 0) | |
| 172 | 172 | { |
| 173 | 173 | palette_handler(state); |
| 174 | 174 | break; |
| r1711 | r1712 | |
| 235 | 235 | |
| 236 | 236 | static void palette_handler(ui_gfx_state *state) |
| 237 | 237 | { |
| 238 | int total = state->palette.which ? Machine->drv->color_table_len : Machine->drv->total_colors; | |
| 239 | const UINT16 *pens = state->palette.which ? Machine->game_colortable : NULL; | |
| 238 | int total = state->palette.which ? colortable_palette_get_size(Machine->colortable) : Machine->config->total_colors; | |
| 240 | 239 | const char *title = state->palette.which ? "COLORTABLE" : "PALETTE"; |
| 241 | 240 | const rgb_t *raw_color = palette_entry_list_raw(Machine->palette); |
| 242 | 241 | render_font *ui_font = ui_get_font(); |
| r1711 | r1712 | |
| 337 | 336 | int index = state->palette.offset + y * state->palette.count + x; |
| 338 | 337 | if (index < total) |
| 339 | 338 | { |
| 340 | pen_t pen = | |
| 339 | pen_t pen = state->palette.which | |
| 341 | 340 | render_ui_add_rect(cellboxbounds.x0 + x * cellwidth, cellboxbounds.y0 + y * cellheight, |
| 342 | 341 | cellboxbounds.x0 + (x + 1) * cellwidth, cellboxbounds.y0 + (y + 1) * cellheight, |
| 343 | 0xff000000 | | |
| 342 | 0xff000000 | | |
| 344 | 343 | } |
| 345 | 344 | } |
| 346 | 345 | |
| r1711 | r1712 | |
| 380 | 379 | /* clamp within range */ |
| 381 | 380 | if (state->palette.which < 0) |
| 382 | 381 | state->palette.which = 1; |
| 383 | if (state->palette.which > (Machine->drv->color_table_len != 0)) | |
| 384 | state->palette.which = (Machine->drv->color_table_len != 0); | |
| 382 | if (state->palette.which > (Machine->colortable != NULL)) | |
| 383 | state->palette.which = (Machine->colortable != NULL); | |
| 385 | 384 | |
| 386 | 385 | /* cache some info in locals */ |
| 387 | total = state->palette.which ? Machine-> | |
| 386 | total = state->palette.which ? colortable_palette_get_size(Machine-> | |
| 388 | 387 | |
| 389 | 388 | /* determine number of entries per row and total */ |
| 390 | 389 | rowcount = state->palette.count; |
| r1711 | r1712 | |
| 771 | 770 | }; |
| 772 | 771 | int width = (rotate & ORIENTATION_SWAP_XY) ? gfx->height : gfx->width; |
| 773 | 772 | int height = (rotate & ORIENTATION_SWAP_XY) ? gfx->width : gfx->height; |
| 774 | const | |
| 773 | const rgb_t *palette = (Machine->config->total_colors != 0) ? palette_entry_list_raw(Machine->palette) : NULL; | |
| 775 | 774 | UINT32 rowpixels = bitmap->rowpixels; |
| 776 | const UINT16 *colortable = NULL; | |
| 777 | 775 | UINT32 palette_mask = ~0; |
| 778 | 776 | int x, y; |
| 779 | 777 | |
| 780 | /* select either the raw palette or the colortable */ | |
| 781 | if (Machine->game_colortable != NULL) | |
| 782 | colortable = &Machine->game_colortable[gfx->color_base + color * gfx->color_granularity]; | |
| 783 | else if (palette != NULL) | |
| 778 | if (palette != NULL) | |
| 784 | 779 | palette += gfx->color_base + color * gfx->color_granularity; |
| 785 | 780 | else |
| 786 | 781 | { |
| r1711 | r1712 | |
| 827 | 822 | pixel = (s[effx/2] >> ((effx & 1) * 4)) & 0xf; |
| 828 | 823 | else |
| 829 | 824 | pixel = s[effx]; |
| 830 | if (colortable != NULL) | |
| 831 | pixel = colortable[pixel]; | |
| 832 | 825 | *dest++ = 0xff000000 | palette[pixel & palette_mask]; |
| 833 | 826 | } |
| 834 | 827 | } |
| r1711 | r1712 | |
|---|---|---|
| 87 | 87 | INLINE INT32 __attribute__((const, always_inline)) |
| 88 | 88 | _mul_32x32_hi(INT32 a, INT32 b) |
| 89 | 89 | { |
| 90 | ||
| 90 | register INT32 result, temp; | |
| 91 | 91 | |
| 92 | 92 | __asm__ ( |
| 93 | 93 | " imull %[b] ;" |
| 94 | 94 | : [result] "=d" (result) /* result in edx */ |
| 95 | , [a] "+%a" (a) /* 'a' should be in eax on entry (clobbered) */ | |
| 96 | : [b] "rm" (b) /* 'b' can be memory or register */ | |
| 95 | , [temp] "=a" (temp) /* This is effectively a clobber */ | |
| 96 | : [a] "%1" (a) /* 'a' should be in eax on entry */ | |
| 97 | , [b] "rm" (b) /* 'b' can be memory or register */ | |
| 97 | 98 | : "%cc" /* Clobbers condition codes */ |
| 98 | 99 | ); |
| 99 | 100 | |
| r1711 | r1712 | |
| 111 | 112 | INLINE UINT32 __attribute__((const, always_inline)) |
| 112 | 113 | _mulu_32x32_hi(UINT32 a, UINT32 b) |
| 113 | 114 | { |
| 114 | ||
| 115 | register UINT32 result, temp; | |
| 115 | 116 | |
| 116 | 117 | __asm__ ( |
| 117 | 118 | " mull %[b] ;" |
| 118 | 119 | : [result] "=d" (result) /* result in edx */ |
| 119 | , [a] "+%a" (a) /* 'a' should be in eax on entry (clobbered) */ | |
| 120 | : [b] "rm" (b) /* 'b' can be memory or register */ | |
| 120 | , [temp] "=a" (temp) /* This is effectively a clobber */ | |
| 121 | : [a] "%1" (a) /* 'a' should be in eax on entry */ | |
| 122 | , [b] "rm" (b) /* 'b' can be memory or register */ | |
| 121 | 123 | : "%cc" /* Clobbers condition codes */ |
| 122 | 124 | ); |
| 123 | 125 |
| r1711 | r1712 | |
|---|---|---|
| 795 | 795 | MACHINE_DRIVER_START( tms9928a ) |
| 796 | 796 | |
| 797 | 797 | /* video hardware */ |
| 798 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK | VIDEO_TYPE_RASTER) | |
| 798 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 799 | ||
| 800 | MDRV_SCREEN_ADD("main", RASTER) | |
| 799 | 801 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 800 | 802 | MDRV_SCREEN_SIZE(LEFT_BORDER+32*8+RIGHT_BORDER, TOP_BORDER_60HZ+24*8+BOTTOM_BORDER_60HZ) |
| 801 | 803 | MDRV_SCREEN_VISIBLE_AREA(LEFT_BORDER-12, LEFT_BORDER+32*8+12-1, TOP_BORDER_60HZ-9, TOP_BORDER_60HZ+24*8+9-1) |
| r1711 | r1712 | |
|---|---|---|
| 555 | 555 | { |
| 556 | 556 | int i; |
| 557 | 557 | |
| 558 | for (i = 0; i < machine-> | |
| 558 | for (i = 0; i < machine->config->total_colors; i++) | |
| 559 | 559 | { |
| 560 | 560 | int bit0,bit1,bit2,bit3,r,g,b; |
| 561 | 561 | |
| r1711 | r1712 | |
| 567 | 567 | r = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; |
| 568 | 568 | |
| 569 | 569 | /* green component */ |
| 570 | bit0 = (color_prom[i + machine->drv->total_colors] >> 0) & 0x01; | |
| 571 | bit1 = (color_prom[i + machine->drv->total_colors] >> 1) & 0x01; | |
| 572 | bit2 = (color_prom[i + machine->drv->total_colors] >> 2) & 0x01; | |
| 573 | bit3 = (color_prom[i + machine->drv->total_colors] >> 3) & 0x01; | |
| 570 | bit0 = (color_prom[i + machine->config->total_colors] >> 0) & 0x01; | |
| 571 | bit1 = (color_prom[i + machine->config->total_colors] >> 1) & 0x01; | |
| 572 | bit2 = (color_prom[i + machine->config->total_colors] >> 2) & 0x01; | |
| 573 | bit3 = (color_prom[i + machine->config->total_colors] >> 3) & 0x01; | |
| 574 | 574 | g = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; |
| 575 | 575 | |
| 576 | 576 | /* blue component */ |
| 577 | bit0 = (color_prom[i + 2*machine->drv->total_colors] >> 0) & 0x01; | |
| 578 | bit1 = (color_prom[i + 2*machine->drv->total_colors] >> 1) & 0x01; | |
| 579 | bit2 = (color_prom[i + 2*machine->drv->total_colors] >> 2) & 0x01; | |
| 580 | bit3 = (color_prom[i + 2*machine->drv->total_colors] >> 3) & 0x01; | |
| 577 | bit0 = (color_prom[i + 2*machine->config->total_colors] >> 0) & 0x01; | |
| 578 | bit1 = (color_prom[i + 2*machine->config->total_colors] >> 1) & 0x01; | |
| 579 | bit2 = (color_prom[i + 2*machine->config->total_colors] >> 2) & 0x01; | |
| 580 | bit3 = (color_prom[i + 2*machine->config->total_colors] >> 3) & 0x01; | |
| 581 | 581 | b = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; |
| 582 | 582 | |
| 583 | 583 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); |
| r1711 | r1712 | |
|---|---|---|
| 55 | 55 | extern size_t spriteram_2_size; |
| 56 | 56 | extern size_t spriteram_3_size; |
| 57 | 57 | |
| 58 | extern UINT8 *dirtybuffer; | |
| 59 | extern UINT16 *dirtybuffer16; | |
| 60 | extern UINT32 *dirtybuffer32; | |
| 61 | ||
| 62 | 58 | extern UINT8 *paletteram; |
| 63 | 59 | extern UINT16 *paletteram16; |
| 64 | 60 | extern UINT32 *paletteram32; |
| r1711 | r1712 | |
|---|---|---|
| 15 | 15 | (1) as per the document at |
| 16 | 16 | http://www.6502.org/users/andre/hwinfo/crtc/diffs.html |
| 17 | 17 | |
| 18 | The various speed rated devices are identified by a letter, | |
| 19 | for example M68A45, M68B45, etc. | |
| 20 | ||
| 21 | The chip is originally designed by Hitachi, not by Motorola. | |
| 22 | ||
| 18 | 23 | **********************************************************************/ |
| 19 | 24 | |
| 20 | 25 | #include "driver.h" |
| r1711 | r1712 | |
| 26 | 31 | |
| 27 | 32 | struct _mc6845_t |
| 28 | 33 | { |
| 34 | running_machine *machine; | |
| 29 | 35 | const mc6845_interface *intf; |
| 30 | 36 | |
| 31 | 37 | /* internal registers */ |
| r1711 | r1712 | |
| 66 | 72 | static TIMER_CALLBACK( display_enable_changed_timer_cb ); |
| 67 | 73 | |
| 68 | 74 | |
| 69 | mc6845_t *mc6845_config(const mc6845_interface *intf) | |
| 70 | { | |
| 71 | mc6845_t *mc6845; | |
| 72 | ||
| 73 | /* allocate the object that holds the state */ | |
| 74 | mc6845 = auto_malloc(sizeof(*mc6845)); | |
| 75 | memset(mc6845, 0, sizeof(*mc6845)); | |
| 76 | ||
| 77 | mc6845->intf = intf; | |
| 78 | ||
| 79 | /* create the timer if the user is interested in getting display enable | |
| 80 | notifications */ | |
| 81 | if (intf && intf->display_enable_changed) | |
| 82 | mc6845->display_enable_changed_timer = timer_alloc(display_enable_changed_timer_cb, mc6845); | |
| 83 | ||
| 84 | /* register for state saving */ | |
| 85 | state_save_register_func_postload_ptr(mc6845_state_save_postload, mc6845); | |
| 86 | ||
| 87 | state_save_register_item("mc6845", 0, mc6845->address_latch); | |
| 88 | state_save_register_item("mc6845", 0, mc6845->horiz_total); | |
| 89 | state_save_register_item("mc6845", 0, mc6845->horiz_disp); | |
| 90 | state_save_register_item("mc6845", 0, mc6845->horiz_sync_pos); | |
| 91 | state_save_register_item("mc6845", 0, mc6845->sync_width); | |
| 92 | state_save_register_item("mc6845", 0, mc6845->vert_total); | |
| 93 | state_save_register_item("mc6845", 0, mc6845->vert_total_adj); | |
| 94 | state_save_register_item("mc6845", 0, mc6845->vert_disp); | |
| 95 | state_save_register_item("mc6845", 0, mc6845->vert_sync_pos); | |
| 96 | state_save_register_item("mc6845", 0, mc6845->intl_skew); | |
| 97 | state_save_register_item("mc6845", 0, mc6845->max_ras_addr); | |
| 98 | state_save_register_item("mc6845", 0, mc6845->cursor_start_ras); | |
| 99 | state_save_register_item("mc6845", 0, mc6845->cursor_end_ras); | |
| 100 | state_save_register_item("mc6845", 0, mc6845->start_addr); | |
| 101 | state_save_register_item("mc6845", 0, mc6845->cursor); | |
| 102 | state_save_register_item("mc6845", 0, mc6845->light_pen); | |
| 103 | ||
| 104 | return mc6845; | |
| 105 | } | |
| 106 | ||
| 107 | ||
| 108 | 75 | static void mc6845_state_save_postload(void *param) |
| 109 | 76 | { |
| 110 | 77 | mc6845_t *mc6845 = (mc6845_t *)param; |
| r1711 | r1712 | |
| 157 | 124 | void mc6845_register_w(mc6845_t *mc6845, UINT8 data) |
| 158 | 125 | { |
| 159 | 126 | int call_configure_screen = FALSE; |
| 160 | if (LOG) logerror(" | |
| 127 | if (LOG) logerror("M6845 | |
| 161 | 128 | |
| 162 | 129 | switch (mc6845->address_latch) |
| 163 | 130 | { |
| r1711 | r1712 | |
| 263 | 230 | visarea.max_x = max_x; |
| 264 | 231 | visarea.max_y = max_y; |
| 265 | 232 | |
| 266 | if (LOG) logerror(" | |
| 233 | if (LOG) logerror("M | |
| 267 | 234 | horiz_total, vert_total, max_x, max_y, 1 / ATTOSECONDS_TO_DOUBLE(refresh)); |
| 268 | 235 | |
| 269 | 236 | video_screen_configure(mc6845->intf->scrnum, horiz_total, vert_total, &visarea, refresh); |
| r1711 | r1712 | |
| 350 | 317 | mc6845_t *mc6845 = ptr; |
| 351 | 318 | |
| 352 | 319 | /* call the callback function -- we know it exists */ |
| 353 | mc6845->intf->display_enable_changed(is_display_enabled(mc6845)); | |
| 320 | mc6845->intf->display_enable_changed(mc6845->machine, mc6845, is_display_enabled(mc6845)); | |
| 354 | 321 | |
| 355 | 322 | update_timer(mc6845); |
| 356 | 323 | } |
| r1711 | r1712 | |
| 416 | 383 | void *param = 0; |
| 417 | 384 | |
| 418 | 385 | if (mc6845->intf->begin_update) |
| 419 | param = mc6845->intf->begin_update(bitmap, cliprect); | |
| 386 | param = mc6845->intf->begin_update(mc6845->machine, mc6845, bitmap, cliprect); | |
| 420 | 387 | |
| 421 | 388 | /* read the start address at the beginning of the frame */ |
| 422 | 389 | if (cliprect->min_y == 0) |
| r1711 | r1712 | |
| 428 | 395 | UINT8 ra = y % (mc6845->max_ras_addr + 1); |
| 429 | 396 | |
| 430 | 397 | /* call the external system to draw it */ |
| 431 | mc6845->intf->update_row(bitmap, cliprect, mc6845->current_ma, ra, y, mc6845->horiz_disp, param); | |
| 398 | mc6845->intf->update_row(mc6845->machine, mc6845, bitmap, cliprect, mc6845->current_ma, ra, y, mc6845->horiz_disp, param); | |
| 432 | 399 | |
| 433 | 400 | /* update MA if the last raster address */ |
| 434 | 401 | if (ra == mc6845->max_ras_addr) |
| r1711 | r1712 | |
| 437 | 404 | |
| 438 | 405 | /* call the tear down function if any */ |
| 439 | 406 | if (mc6845->intf->end_update) |
| 440 | mc6845->intf->end_update(bitmap, cliprect, param); | |
| 407 | mc6845->intf->end_update(mc6845->machine, mc6845, bitmap, cliprect, param); | |
| 441 | 408 | } |
| 442 | 409 | } |
| 410 | ||
| 411 | ||
| 412 | /* device interface */ | |
| 413 | static void *mc6845_start(running_machine *machine, const char *tag, const void *static_config, const void *inline_config) | |
| 414 | { | |
| 415 | mc6845_t *mc6845; | |
| 416 | char unique_tag[30]; | |
| 417 | ||
| 418 | /* validate arguments */ | |
| 419 | assert(machine != NULL); | |
| 420 | assert(tag != NULL); | |
| 421 | assert(strlen(tag) < 20); | |
| 422 | ||
| 423 | /* allocate the object that holds the state */ | |
| 424 | mc6845 = auto_malloc(sizeof(*mc6845)); | |
| 425 | memset(mc6845, 0, sizeof(*mc6845)); | |
| 426 | ||
| 427 | mc6845->machine = machine; | |
| 428 | mc6845->intf = static_config; | |
| 429 | ||
| 430 | /* create the timer if the user is interested in getting display enable | |
| 431 | notifications */ | |
| 432 | if (mc6845->intf && mc6845->intf->display_enable_changed) | |
| 433 | mc6845->display_enable_changed_timer = timer_alloc(display_enable_changed_timer_cb, mc6845); | |
| 434 | ||
| 435 | /* register for state saving */ | |
| 436 | state_save_combine_module_and_tag(unique_tag, "mc6845", tag); | |
| 437 | ||
| 438 | state_save_register_func_postload_ptr(mc6845_state_save_postload, mc6845); | |
| 439 | ||
| 440 | state_save_register_item(unique_tag, 0, mc6845->address_latch); | |
| 441 | state_save_register_item(unique_tag, 0, mc6845->horiz_total); | |
| 442 | state_save_register_item(unique_tag, 0, mc6845->horiz_disp); | |
| 443 | state_save_register_item(unique_tag, 0, mc6845->horiz_sync_pos); | |
| 444 | state_save_register_item(unique_tag, 0, mc6845->sync_width); | |
| 445 | state_save_register_item(unique_tag, 0, mc6845->vert_total); | |
| 446 | state_save_register_item(unique_tag, 0, mc6845->vert_total_adj); | |
| 447 | state_save_register_item(unique_tag, 0, mc6845->vert_disp); | |
| 448 | state_save_register_item(unique_tag, 0, mc6845->vert_sync_pos); | |
| 449 | state_save_register_item(unique_tag, 0, mc6845->intl_skew); | |
| 450 | state_save_register_item(unique_tag, 0, mc6845->max_ras_addr); | |
| 451 | state_save_register_item(unique_tag, 0, mc6845->cursor_start_ras); | |
| 452 | state_save_register_item(unique_tag, 0, mc6845->cursor_end_ras); | |
| 453 | state_save_register_item(unique_tag, 0, mc6845->start_addr); | |
| 454 | state_save_register_item(unique_tag, 0, mc6845->cursor); | |
| 455 | state_save_register_item(unique_tag, 0, mc6845->light_pen); | |
| 456 | ||
| 457 | return mc6845; | |
| 458 | } | |
| 459 | ||
| 460 | ||
| 461 | static void mc6845_set_info(running_machine *machine, void *token, UINT32 state, const deviceinfo *info) | |
| 462 | { | |
| 463 | switch (state) | |
| 464 | { | |
| 465 | /* no parameters to set */ | |
| 466 | } | |
| 467 | } | |
| 468 | ||
| 469 | ||
| 470 | void mc6845_get_info(running_machine *machine, void *token, UINT32 state, deviceinfo *info) | |
| 471 | { | |
| 472 | switch (state) | |
| 473 | { | |
| 474 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 475 | case DEVINFO_INT_INLINE_CONFIG_BYTES: info->i = 0; break; | |
| 476 | ||
| 477 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 478 | case DEVINFO_FCT_SET_INFO: info->set_info = mc6845_set_info; break; | |
| 479 | case DEVINFO_FCT_START: info->start = mc6845_start; break; | |
| 480 | case DEVINFO_FCT_STOP: /* Nothing */ break; | |
| 481 | case DEVINFO_FCT_RESET: /* Nothing */ break; | |
| 482 | ||
| 483 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 484 | case DEVINFO_STR_NAME: info->s = "MC6845"; break; | |
| 485 | case DEVINFO_STR_FAMILY: info->s = "MC6845 CRTC"; break; | |
| 486 | case DEVINFO_STR_VERSION: info->s = "1.0"; break; | |
| 487 | case DEVINFO_STR_SOURCE_FILE: info->s = __FILE__; break; | |
| 488 | case DEVINFO_STR_CREDITS: info->s = "Copyright Nicola Salmoria and the MAME Team"; break; | |
| 489 | } | |
| 490 | } |
| r1711 | r1712 | |
|---|---|---|
| 17 | 17 | |
| 18 | 18 | **********************************************************************/ |
| 19 | 19 | |
| 20 | #ifndef MC6845 | |
| 21 | #define MC6845 | |
| 20 | #ifndef __MC6845__ | |
| 21 | #define __MC6845__ | |
| 22 | 22 | |
| 23 | 23 | |
| 24 | 24 | typedef struct _mc6845_t mc6845_t; |
| 25 | 25 | typedef struct _mc6845_interface mc6845_interface; |
| 26 | 26 | |
| 27 | #define MC6845 mc6845_get_info | |
| 28 | ||
| 29 | ||
| 27 | 30 | struct _mc6845_interface |
| 28 | 31 | { |
| 29 | 32 | int scrnum; /* screen we are acting on */ |
| r1711 | r1712 | |
| 33 | 36 | /* if specified, this gets called before any pixel update, |
| 34 | 37 | optionally return a pointer that will be passed to the |
| 35 | 38 | update and tear down callbacks */ |
| 36 | void * (*begin_update)(mame_bitmap *bitmap, const rectangle *cliprect); | |
| 39 | void * (*begin_update)(running_machine *machine, mc6845_t *mc6845, | |
| 40 | mame_bitmap *bitmap, const rectangle *cliprect); | |
| 37 | 41 | |
| 38 | 42 | /* this gets called for every row, the driver must output |
| 39 | 43 | x_count * hpixels_per_column pixels */ |
| 40 | void (*update_row)(mame_bitmap *bitmap, const rectangle *cliprect, | |
| 41 | UINT16 ma, UINT8 ra, UINT16 y, UINT8 x_count, void *param); | |
| 44 | void (*update_row)(running_machine *machine, mc6845_t *mc6845, mame_bitmap *bitmap, | |
| 45 | const rectangle *cliprect, UINT16 ma, UINT8 ra, UINT16 y, UINT8 x_count, void *param); | |
| 42 | 46 | |
| 43 | 47 | /* if specified, this gets called after all row updating is complete */ |
| 44 | void (*end_update)(mame_bitmap *bitmap, const rectangle *cliprect, void *param); | |
| 48 | void (*end_update)(running_machine *machine, mc6845_t *mc6845, | |
| 49 | mame_bitmap *bitmap, const rectangle *cliprect, void *param); | |
| 45 | 50 | |
| 46 | 51 | /* if specified, this gets called for every change of the disply enable (DT pin 18) */ |
| 47 | void (*display_enable_changed)(int display_enabled); | |
| 52 | void (*display_enable_changed)(running_machine *machine, mc6845_t *mc6845, int display_enabled); | |
| 48 | 53 | }; |
| 49 | 54 | |
| 50 | 55 | |
| 51 | /* use mc6845_init to set up for save states. | |
| 52 | if intf is NULL, the emulator will NOT call video_configure_screen() */ | |
| 53 | mc6845_t *mc6845_config(const mc6845_interface *intf); | |
| 56 | /* device interface */ | |
| 57 | void mc6845_get_info(running_machine *machine, void *token, UINT32 state, deviceinfo *info); | |
| 54 | 58 | |
| 55 | /* select | |
| 59 | /* select | |
| 56 | 60 | void mc6845_address_w(mc6845_t *mc6845, UINT8 data); |
| 57 | 61 | |
| 58 | /* read | |
| 62 | /* read from the currently selected register */ | |
| 59 | 63 | UINT8 mc6845_register_r(mc6845_t *mc6845); |
| 60 | 64 | |
| 61 | /* write | |
| 65 | /* write to the currently selected register */ | |
| 62 | 66 | void mc6845_register_w(mc6845_t *mc6845, UINT8 data); |
| 63 | 67 | |
| 64 | 68 | /* return the current value on the MA0-MA13 pins */ |
| r1711 | r1712 | |
| 72 | 76 | updating is complete, end_update() */ |
| 73 | 77 | void mc6845_update(mc6845_t *mc6845, mame_bitmap *bitmap, const rectangle *cliprect); |
| 74 | 78 | |
| 79 | ||
| 75 | 80 | #endif |
| r1711 | r1712 | |
|---|---|---|
| 31 | 31 | void print_game_ramoptions(FILE* out, const game_driver* game); |
| 32 | 32 | #endif /* MESS */ |
| 33 | 33 | |
| 34 | /* Print a free format string */ | |
| 35 | 34 | |
| 36 | static void print_game_switch(FILE* out, const game_driver* game) | |
| 35 | /*------------------------------------------------- | |
| 36 | print_game_switches - print the DIP switch | |
| 37 | settings for a game | |
| 38 | -------------------------------------------------*/ | |
| 39 | ||
| 40 | static void print_game_switches(FILE *out, const game_driver *game, const input_port_entry *input) | |
| 37 | 41 | { |
| 38 | const input_port_entry* input; | |
| 39 | ||
| 40 | begin_resource_tracking(); | |
| 41 | ||
| 42 | input = input_port_allocate(game->ipt, NULL); | |
| 43 | ||
| 42 | /* iterate over input entries until we run out */ | |
| 44 | 43 | while (input->type != IPT_END) |
| 45 | 44 | { |
| 46 | if (input->type==IPT_DIPSWITCH_NAME) | |
| 45 | /* once we hit a name entry, start outputting */ | |
| 46 | if (input->type == IPT_DIPSWITCH_NAME) | |
| 47 | 47 | { |
| 48 | 48 | int def = input->default_value; |
| 49 | 49 | |
| 50 | fprintf(out, "\t\t<dipswitch"); | |
| 50 | /* output the switch name information */ | |
| 51 | fprintf(out, "\t\t<dipswitch name=\"%s\">\n", xml_normalize_string(input->name)); | |
| 51 | 52 | |
| 52 | fprintf(out, " name=\"%s\"", xml_normalize_string(input->name)); | |
| 53 | ++input; | |
| 54 | ||
| 55 | fprintf(out, ">\n"); | |
| 56 | ||
| 57 | while (input->type==IPT_DIPSWITCH_SETTING) | |
| 53 | /* loop over settings */ | |
| 54 | for (input++; input->type == IPT_DIPSWITCH_SETTING; input++) | |
| 58 | 55 | { |
| 59 | fprintf(out, "\t\t\t<dipvalue"); | |
| 60 | fprintf(out, " name=\"%s\"", xml_normalize_string(input->name)); | |
| 56 | fprintf(out, "\t\t\t<dipvalue name=\"%s\"", xml_normalize_string(input->name)); | |
| 61 | 57 | if (def == input->default_value) |
| 62 | 58 | fprintf(out, " default=\"yes\""); |
| 63 | ||
| 64 | 59 | fprintf(out, "/>\n"); |
| 65 | ||
| 66 | ++input; | |
| 67 | 60 | } |
| 68 | 61 | |
| 62 | /* terminate the switch entry */ | |
| 69 | 63 | fprintf(out, "\t\t</dipswitch>\n"); |
| 70 | 64 | } |
| 71 | 65 | else |
| 72 | 66 | ++input; |
| 73 | 67 | } |
| 74 | ||
| 75 | end_resource_tracking(); | |
| 76 | 68 | } |
| 77 | 69 | |
| 78 | static void print_game_input(FILE* out, const game_driver* game) | |
| 70 | ||
| 71 | /*------------------------------------------------- | |
| 72 | print_game_input - print a summary of a game's | |
| 73 | input | |
| 74 | -------------------------------------------------*/ | |
| 75 | ||
| 76 | static void print_game_input(FILE *out, const game_driver *game, const input_port_entry *input) | |
| 79 | 77 | { |
| 78 | /* fix me -- this needs to be cleaned up to match the core style */ | |
| 79 | ||
| 80 | 80 | enum {cjoy, cdoublejoy, cAD_stick, cdial, ctrackball, cpaddle, clightgun, cpedal, ENDCONTROLTYPES}; |
| 81 | const input_port_entry* input; | |
| 82 | 81 | int nplayer = 0; |
| 83 | 82 | int nbutton = 0; |
| 84 | 83 | int ncoin = 0; |
| r1711 | r1712 | |
| 103 | 102 | for (i=0;i<ENDCONTROLTYPES;i++) |
| 104 | 103 | { |
| 105 | 104 | control[i].type = control_types[i]; |
| 106 | control[i].Xway = | |
| 105 | control[i].Xway = NULL; | |
| 107 | 106 | control[i].analog = 0; |
| 108 | 107 | control[i].min = 0; |
| 109 | 108 | control[i].max = 0; |
| r1711 | r1712 | |
| 112 | 111 | control[i].reverse = 0; |
| 113 | 112 | } |
| 114 | 113 | |
| 115 | begin_resource_tracking(); | |
| 116 | ||
| 117 | input = input_port_allocate(game->ipt, NULL); | |
| 118 | ||
| 119 | 114 | while (input->type != IPT_END) |
| 120 | 115 | { |
| 121 | 116 | if (nplayer < input->player+1) |
| r1711 | r1712 | |
| 127 | 122 | case IPT_JOYSTICK_RIGHT: |
| 128 | 123 | |
| 129 | 124 | /* if control not defined, start it off as horizontal 2-way */ |
| 130 | if ( | |
| 125 | if ( | |
| 131 | 126 | control[cjoy].Xway = "joy2way"; |
| 132 | 127 | else if (strcmp(control[cjoy].Xway,"joy2way") == 0) |
| 133 | 128 | ; |
| r1711 | r1712 | |
| 146 | 141 | case IPT_JOYSTICK_DOWN: |
| 147 | 142 | |
| 148 | 143 | /* if control not defined, start it off as vertical 2-way */ |
| 149 | if (!control[cjoy].Xway) | |
| 150 | control[cjoy].Xway= "vjoy2way"; | |
| 144 | if (control[cjoy].Xway == NULL) | |
| 145 | control[cjoy].Xway = "vjoy2way"; | |
| 151 | 146 | else if (strcmp(control[cjoy].Xway,"vjoy2way") == 0) |
| 152 | 147 | ; |
| 153 | 148 | /* if already defined as horiz, make it 4 or 8way */ |
| 154 | else if (strcmp(control[cjoy].Xway,"joy2way")==0) | |
| 149 | else if (strcmp(control[cjoy].Xway,"joy2way") == 0) | |
| 155 | 150 | { |
| 156 | 151 | if (input->way == 4) |
| 157 | 152 | control[cjoy].Xway = "joy4way"; |
| r1711 | r1712 | |
| 167 | 162 | case IPT_JOYSTICKLEFT_DOWN: |
| 168 | 163 | |
| 169 | 164 | /* if control not defined, start it off as vertical 2way */ |
| 170 | if (!control[cdoublejoy].Xway) | |
| 171 | control[cdoublejoy].Xway= "vdoublejoy2way"; | |
| 165 | if (control[cdoublejoy].Xway == NULL) | |
| 166 | control[cdoublejoy].Xway = "vdoublejoy2way"; | |
| 172 | 167 | else if (strcmp(control[cdoublejoy].Xway,"vdoublejoy2way") == 0) |
| 173 | 168 | ; |
| 174 | 169 | /* if already defined as horiz, make it 4 or 8 way */ |
| r1711 | r1712 | |
| 188 | 183 | case IPT_JOYSTICKLEFT_RIGHT: |
| 189 | 184 | |
| 190 | 185 | /* if control not defined, start it off as horiz 2-way */ |
| 191 | if (!control[cdoublejoy].Xway) | |
| 192 | control[cdoublejoy].Xway="doublejoy2way"; | |
| 186 | if (control[cdoublejoy].Xway == NULL) | |
| 187 | control[cdoublejoy].Xway = "doublejoy2way"; | |
| 193 | 188 | else if (strcmp(control[cdoublejoy].Xway,"doublejoy2way") == 0) |
| 194 | 189 | ; |
| 195 | 190 | /* if already defined as vertical, make it 4 or 8 way */ |
| r1711 | r1712 | |
| 315 | 310 | } |
| 316 | 311 | |
| 317 | 312 | fprintf(out, "\t\t<input"); |
| 318 | fprintf(out, " players=\"%d\"", nplayer ); | |
| 319 | if (nbutton) | |
| 320 | fprintf(out, " buttons=\"%d\"", nbutton ); | |
| 321 | if (ncoin) | |
| 322 | fprintf(out, " coins=\"%d\"", ncoin ); | |
| 323 | if (service) | |
| 324 | fprintf(out, " service=\"%s\"", xml_normalize_string(service) ); | |
| 325 | if (tilt) | |
| 326 | fprintf(out, " tilt=\"%s\"", xml_normalize_string(tilt) ); | |
| 313 | fprintf(out, " players=\"%d\"", nplayer); | |
| 314 | if (nbutton != 0) | |
| 315 | fprintf(out, " buttons=\"%d\"", nbutton); | |
| 316 | if (ncoin != 0) | |
| 317 | fprintf(out, " coins=\"%d\"", ncoin); | |
| 318 | if (service != NULL) | |
| 319 | fprintf(out, " service=\"%s\"", xml_normalize_string(service)); | |
| 320 | if (tilt != NULL) | |
| 321 | fprintf(out, " tilt=\"%s\"", xml_normalize_string(tilt)); | |
| 327 | 322 | fprintf(out, ">\n"); |
| 328 | 323 | |
| 329 | for (i=0;i<ENDCONTROLTYPES;i++) | |
| 324 | for (i = 0; i < ENDCONTROLTYPES; i++) | |
| 330 | 325 | { |
| 331 | if (control[i].Xway) | |
| 332 | fprintf(out, "\t\t\t<control type=\"%s\"/>\n", xml_normalize_string(control[i].Xway) ); | |
| 326 | if (control[i].Xway != NULL) | |
| 327 | fprintf(out, "\t\t\t<control type=\"%s\"/>\n", xml_normalize_string(control[i].Xway)); | |
| 333 | 328 | if (control[i].analog) |
| 334 | 329 | { |
| 335 | fprintf(out, "\t\t\t<control type=\"%s\"", xml_normalize_string(control_types[i]) | |
| 330 | fprintf(out, "\t\t\t<control type=\"%s\"", xml_normalize_string(control_types[i]) | |
| 336 | 331 | if (control[i].min || control[i].max) |
| 337 | 332 | { |
| 338 | 333 | fprintf(out, " minimum=\"%d\"", control[i].min); |
| r1711 | r1712 | |
| 349 | 344 | } |
| 350 | 345 | } |
| 351 | 346 | fprintf(out, "\t\t</input>\n"); |
| 352 | ||
| 353 | end_resource_tracking(); | |
| 354 | 347 | } |
| 355 | 348 | |
| 356 | static void print_game_bios(FILE* out, const game_driver* game) | |
| 349 | ||
| 350 | /*------------------------------------------------- | |
| 351 | print_game_bios - print the BIOS set for a | |
| 352 | game | |
| 353 | -------------------------------------------------*/ | |
| 354 | ||
| 355 | static void print_game_bios(FILE *out, const game_driver *game) | |
| 357 | 356 | { |
| 358 | 357 | const rom_entry *rom; |
| 359 | 358 | |
| 360 | if (game->rom != NULL) | |
| 361 | { | |
| 362 | for (rom = game->rom; !ROMENTRY_ISEND(rom); rom++) | |
| 363 | if (ROMENTRY_ISSYSTEM_BIOS(rom)) | |
| 364 | { | |
| 365 | const char *name = ROM_GETHASHDATA(rom); | |
| 366 | const char *description = name + strlen(name) + 1; | |
| 359 | /* skip if no ROMs */ | |
| 360 | if (game->rom == NULL) | |
| 361 | return; | |
| 367 | 362 | |
| 368 | fprintf(out, "\t\t<biosset"); | |
| 369 | fprintf(out, " name=\"%s\"", xml_normalize_string(name)); | |
| 370 | fprintf(out, " description=\"%s\"", xml_normalize_string(description)); | |
| 371 | if (ROM_GETBIOSFLAGS(rom) == 1) | |
| 372 | fprintf(out, " default=\"yes\""); | |
| 373 | fprintf(out, "/>\n"); | |
| 374 | } | |
| 375 | } | |
| 363 | /* iterate over ROM entries and look for BIOSes */ | |
| 364 | for (rom = game->rom; !ROMENTRY_ISEND(rom); rom++) | |
| 365 | if (ROMENTRY_ISSYSTEM_BIOS(rom)) | |
| 366 | { | |
| 367 | const char *name = ROM_GETHASHDATA(rom); | |
| 368 | const char *description = name + strlen(name) + 1; | |
| 369 | ||
| 370 | /* output extracted name and descriptions */ | |
| 371 | fprintf(out, "\t\t<biosset"); | |
| 372 | fprintf(out, " name=\"%s\"", xml_normalize_string(name)); | |
| 373 | fprintf(out, " description=\"%s\"", xml_normalize_string(description)); | |
| 374 | if (ROM_GETBIOSFLAGS(rom) == 1) | |
| 375 | fprintf(out, " default=\"yes\""); | |
| 376 | fprintf(out, "/>\n"); | |
| 377 | } | |
| 376 | 378 | } |
| 377 | 379 | |
| 378 | static void print_game_rom(FILE* out, const game_driver* game) | |
| 380 | ||
| 381 | /*------------------------------------------------- | |
| 382 | print_game_rom - print the roms section of | |
| 383 | the XML output | |
| 384 | -------------------------------------------------*/ | |
| 385 | ||
| 386 | static void print_game_rom(FILE *out, const game_driver *game) | |
| 379 | 387 | { |
| 380 | const rom_entry *region, *rom, *chunk; | |
| 381 | const rom_entry *pregion, *prom, *fprom=NULL; | |
| 382 | const game_driver *clone_of; | |
| 388 | const game_driver *clone_of = driver_get_clone(game); | |
| 383 | 389 | int rom_type; |
| 384 | 390 | |
| 385 | if (!game->rom) | |
| 391 | /* if no roms, just exit early */ | |
| 392 | if (game->rom == NULL) | |
| 386 | 393 | return; |
| 387 | 394 | |
| 388 | | |
| 395 | /* iterate over 3 d | |
| 389 | 396 | for (rom_type = 0; rom_type < 3; rom_type++) |
| 390 | 397 | { |
| 391 | for (region = rom_first_region(game); region; region = rom_next_region(region)) | |
| 392 | for (rom = rom_first_file(region); rom; rom = rom_next_file(rom)) | |
| 398 | const rom_entry *region; | |
| 399 | ||
| 400 | /* iterate first through regions */ | |
| 401 | for (region = rom_first_region(game); region != NULL; region = rom_next_region(region)) | |
| 402 | { | |
| 403 | int is_disk = ROMREGION_ISDISKDATA(region); | |
| 404 | const rom_entry *rom; | |
| 405 | ||
| 406 | /* disk regions only work for disks */ | |
| 407 | if ((is_disk && rom_type != 2) || (!is_disk && rom_type == 2)) | |
| 408 | continue; | |
| 409 | ||
| 410 | /* iterate through ROM entries */ | |
| 411 | for (rom = rom_first_file(region); rom != NULL; rom = rom_next_file(rom)) | |
| 393 | 412 | { |
| 394 | int offset, length, in_parent, is_disk, is_bios, found_bios, i; | |
| 395 | char name[100], bios_name[100]; | |
| 413 | int is_bios = ROM_GETBIOSFLAGS(rom); | |
| 414 | const char *name = ROM_GETNAME(rom); | |
| 415 | int offset = ROM_GETOFFSET(rom); | |
| 416 | const rom_entry *parent_rom = NULL; | |
| 417 | const rom_entry *chunk; | |
| 418 | char bios_name[100]; | |
| 419 | int length; | |
| 396 | 420 | |
| 397 | strcpy(name,ROM_GETNAME(rom)); | |
| 398 | offset = ROM_GETOFFSET(rom); | |
| 399 | is_disk = ROMREGION_ISDISKDATA(region); | |
| 400 | is_bios = ROM_GETBIOSFLAGS(rom); | |
| 421 | /* BIOS ROMs only apply to bioses */ | |
| 422 | if ((is_bios && rom_type != 0) || (!is_bios && rom_type == 0)) | |
| 423 | continue; | |
| 401 | 424 | |
| 402 | switch (rom_type) | |
| 403 | { | |
| 404 | case 0: /* rom_type 0 = BIOS */ | |
| 405 | if (is_disk || !is_bios) | |
| 406 | continue; | |
| 407 | break; | |
| 408 | case 1: /* rom_type 1 = ROM */ | |
| 409 | if (is_disk || is_bios) | |
| 410 | continue; | |
| 411 | break; | |
| 412 | case 2: /* rom_type 1 = DISK */ | |
| 413 | if (!is_disk || is_bios) | |
| 414 | continue; | |
| 415 | break; | |
| 416 | } | |
| 417 | ||
| 418 | in_parent = 0; | |
| 425 | /* compute the total length of all chunks */ | |
| 419 | 426 | length = 0; |
| 420 | 427 | for (chunk = rom_first_chunk(rom); chunk; chunk = rom_next_chunk(chunk)) |
| 421 | 428 | length += ROM_GETLENGTH(chunk); |
| 422 | 429 | |
| 423 | if (!ROM_NOGOODDUMP(rom) && clone_of) | |
| 430 | /* if we have a valid ROM and we are a clone, see if we can find the parent ROM */ | |
| 431 | if (!ROM_NOGOODDUMP(rom) && clone_of != NULL) | |
| 424 | 432 | { |
| 425 | fprom=NULL; | |
| 426 | for (pregion = rom_first_region(clone_of); pregion; pregion = rom_next_region(pregion)) | |
| 427 | for (prom = rom_first_file(pregion); prom; prom = rom_next_file(prom)) | |
| 433 | const rom_entry *pregion, *prom; | |
| 434 | ||
| 435 | /* scan the clone_of ROM for a matching ROM entry */ | |
| 436 | for (pregion = rom_first_region(clone_of); pregion != NULL; pregion = rom_next_region(pregion)) | |
| 437 | for (prom = rom_first_file(pregion); prom != NULL; prom = rom_next_file(prom)) | |
| 428 | 438 | if (hash_data_is_equal(ROM_GETHASHDATA(rom), ROM_GETHASHDATA(prom), 0)) |
| 429 | 439 | { |
| 430 | if (!fprom || !strcmp(ROM_GETNAME(prom), name)) | |
| 431 | fprom=prom; | |
| 432 | in_parent = 1; | |
| 440 | parent_rom = prom; | |
| 441 | break; | |
| 433 | 442 | } |
| 434 | 443 | } |
| 435 | 444 | |
| 436 | found_bios = 0; | |
| 437 | if(!is_disk && is_bios) | |
| 445 | /* scan for a BIOS name */ | |
| 446 | bios_name[0] = 0; | |
| 447 | if (!is_disk && is_bios) | |
| 438 | 448 | { |
| 439 | /* Scan backwards for name */ | |
| 440 | for (prom = rom-1; prom != game->rom; prom--) | |
| 441 | if (ROMENTRY_ISSYSTEM_BIOS(prom)) | |
| 449 | const rom_entry *brom; | |
| 450 | ||
| 451 | /* scan backwards through the ROM entries */ | |
| 452 | for (brom = rom - 1; brom != game->rom; brom--) | |
| 453 | if (ROMENTRY_ISSYSTEM_BIOS(brom)) | |
| 442 | 454 | { |
| 443 | strcpy(bios_name, ROM_GETHASHDATA(prom)); | |
| 444 | found_bios = 1; | |
| 455 | strcpy(bios_name, ROM_GETHASHDATA(brom)); | |
| 445 | 456 | break; |
| 446 | 457 | } |
| 447 | 458 | } |
| 448 | 459 | |
| 449 | ||
| 460 | /* opening tag */ | |
| 450 | 461 | if (!is_disk) |
| 451 | 462 | fprintf(out, "\t\t<rom"); |
| 452 | 463 | else |
| 453 | 464 | fprintf(out, "\t\t<disk"); |
| 454 | 465 | |
| 455 | if (*name) | |
| 466 | /* add name, merge, bios, and size tags */ | |
| 467 | if (name != NULL && name[0] != 0) | |
| 456 | 468 | fprintf(out, " name=\"%s\"", xml_normalize_string(name)); |
| 457 | if (in_parent) | |
| 458 | fprintf(out, " merge=\"%s\"", xml_normalize_string(ROM_GETNAME(fprom))); | |
| 459 | if (!is_disk && found_bios) | |
| 469 | if (parent_rom != NULL) | |
| 470 | fprintf(out, " merge=\"%s\"", xml_normalize_string(ROM_GETNAME(parent_rom))); | |
| 471 | if (bios_name[0] != 0) | |
| 460 | 472 | fprintf(out, " bios=\"%s\"", xml_normalize_string(bios_name)); |
| 461 | 473 | if (!is_disk) |
| 462 | 474 | fprintf(out, " size=\"%d\"", length); |
| r1711 | r1712 | |
| 464 | 476 | /* dump checksum information only if there is a known dump */ |
| 465 | 477 | if (!hash_data_has_info(ROM_GETHASHDATA(rom), HASH_INFO_NO_DUMP)) |
| 466 | 478 | { |
| 467 | for (i=0;i<HASH_NUM_FUNCTIONS;i++) | |
| 468 | { | |
| 469 | int func = 1<<i; | |
| 470 | const char* func_name = hash_function_name(func); | |
| 471 | char checksum[1000]; | |
| 479 | char checksum[HASH_BUF_SIZE]; | |
| 480 | int hashtype; | |
| 472 | 481 | |
| 473 | if (hash_data_extract_printable_checksum(ROM_GETHASHDATA(rom), func, checksum)) | |
| 474 | { | |
| 475 | fprintf(out, " %s=\"%s\"", func_name, checksum); | |
| 476 | } | |
| 477 | } | |
| 482 | /* iterate over hash function types and print out their values */ | |
| 483 | for (hashtype = 0; hashtype < HASH_NUM_FUNCTIONS; hashtype++) | |
| 484 | if (hash_data_extract_printable_checksum(ROM_GETHASHDATA(rom), 1 << hashtype, checksum)) | |
| 485 | fprintf(out, " %s=\"%s\"", hash_function_name(1 << hashtype), checksum); | |
| 478 | 486 | } |
| 479 | 487 | |
| 488 | /* append a region name */ | |
| 480 | 489 | switch (ROMREGION_GETTYPE(region)) |
| 481 | 490 | { |
| 482 | case REGION_CPU1: fprintf(out, " region=\"cpu1\""); break; | |
| 483 | case REGION_CPU2: fprintf(out, " region=\"cpu2\""); break; | |
| 484 | case REGION_CPU3: fprintf(out, " region=\"cpu3\""); break; | |
| 485 | case REGION_CPU4: fprintf(out, " region=\"cpu4\""); break; | |
| 486 | case REGION_CPU5: fprintf(out, " region=\"cpu5\""); break; | |
| 487 | case REGION_CPU6: fprintf(out, " region=\"cpu6\""); break; | |
| 488 | case REGION_CPU7: fprintf(out, " region=\"cpu7\""); break; | |
| 489 | case REGION_CPU8: fprintf(out, " region=\"cpu8\""); break; | |
| 490 | case REGION_GFX1: fprintf(out, " region=\"gfx1\""); break; | |
| 491 | case REGION_GFX2: fprintf(out, " region=\"gfx2\""); break; | |
| 492 | case REGION_GFX3: fprintf(out, " region=\"gfx3\""); break; | |
| 493 | case REGION_GFX4: fprintf(out, " region=\"gfx4\""); break; | |
| 494 | case REGION_GFX5: fprintf(out, " region=\"gfx5\""); break; | |
| 495 | case REGION_GFX6: fprintf(out, " region=\"gfx6\""); break; | |
| 496 | case REGION_GFX7: fprintf(out, " region=\"gfx7\""); break; | |
| 497 | case REGION_GFX8: fprintf(out, " region=\"gfx8\""); break; | |
| 498 | case REGION_PROMS: fprintf(out, " region=\"proms\""); break; | |
| 499 | case REGION_PLDS: fprintf(out, " region=\"plds\""); break; | |
| 500 | case REGION_SOUND1: fprintf(out, " region=\"sound1\""); break; | |
| 501 | case REGION_SOUND2: fprintf(out, " region=\"sound2\""); break; | |
| 502 | case REGION_SOUND3: fprintf(out, " region=\"sound3\""); break; | |
| 503 | case REGION_SOUND4: fprintf(out, " region=\"sound4\""); break; | |
| 504 | case REGION_SOUND5: fprintf(out, " region=\"sound5\""); break; | |
| 505 | case REGION_SOUND6: fprintf(out, " region=\"sound6\""); break; | |
| 506 | case REGION_SOUND7: fprintf(out, " region=\"sound7\""); break; | |
| 507 | case REGION_SOUND8: fprintf(out, " region=\"sound8\""); break; | |
| 508 | case REGION_USER1: fprintf(out, " region=\"user1\""); break; | |
| 509 | case REGION_USER2: fprintf(out, " region=\"user2\""); break; | |
| 510 | case REGION_USER3: fprintf(out, " region=\"user3\""); break; | |
| 511 | case REGION_USER4: fprintf(out, " region=\"user4\""); break; | |
| 512 | case REGION_USER5: fprintf(out, " region=\"user5\""); break; | |
| 513 | case REGION_USER6: fprintf(out, " region=\"user6\""); break; | |
| 514 | case REGION_USER7: fprintf(out, " region=\"user7\""); break; | |
| 515 | case REGION_USER8: fprintf(out, " region=\"user8\""); break; | |
| 516 | case REGION_USER9: fprintf(out, " region=\"user9\""); break; | |
| 517 | case REGION_USER10: fprintf(out, " region=\"user10\""); break; | |
| 518 | case REGION_USER11: fprintf(out, " region=\"user11\""); break; | |
| 519 | case REGION_USER12: fprintf(out, " region=\"user12\""); break; | |
| 520 | case REGION_USER13: fprintf(out, " region=\"user13\""); break; | |
| 521 | case REGION_USER14: fprintf(out, " region=\"user14\""); break; | |
| 522 | case REGION_USER15: fprintf(out, " region=\"user15\""); break; | |
| 523 | case REGION_USER16: fprintf(out, " region=\"user16\""); break; | |
| 524 | case REGION_USER17: fprintf(out, " region=\"user17\""); break; | |
| 525 | case REGION_USER18: fprintf(out, " region=\"user18\""); break; | |
| 526 | case REGION_USER19: fprintf(out, " region=\"user19\""); break; | |
| 527 | case REGION_USER20: fprintf(out, " region=\"user20\""); break; | |
| 528 | case REGION_DISKS: fprintf(out, " region=\"disks\""); break; | |
| 529 | default: fprintf(out, " region=\"0x%x\"", (int)ROMREGION_GETTYPE(region)); break; | |
| 530 | } | |
| 491 | case REGION_CPU1: fprintf(out, " region=\"cpu1\""); break; | |
| 492 | case REGION_CPU2: fprintf(out, " region=\"cpu2\""); break; | |
| 493 | case REGION_CPU3: fprintf(out, " region=\"cpu3\""); break; | |
| 494 | case REGION_CPU4: fprintf(out, " region=\"cpu4\""); break; | |
| 495 | case REGION_CPU5: fprintf(out, " region=\"cpu5\""); break; | |
| 496 | case REGION_CPU6: fprintf(out, " region=\"cpu6\""); break; | |
| 497 | case REGION_CPU7: fprintf(out, " region=\"cpu7\""); break; | |
| 498 | case REGION_CPU8: fprintf(out, " region=\"cpu8\""); break; | |
| 499 | case REGION_GFX1: fprintf(out, " region=\"gfx1\""); break; | |
| 500 | case REGION_GFX2: fprintf(out, " region=\"gfx2\""); break; | |
| 501 | case REGION_GFX3: fprintf(out, " region=\"gfx3\""); break; | |
| 502 | case REGION_GFX4: fprintf(out, " region=\"gfx4\""); break; | |
| 503 | case REGION_GFX5: fprintf(out, " region=\"gfx5\""); break; | |
| 504 | case REGION_GFX6: fprintf(out, " region=\"gfx6\""); break; | |
| 505 | case REGION_GFX7: fprintf(out, " region=\"gfx7\""); break; | |
| 506 | case REGION_GFX8: fprintf(out, " region=\"gfx8\""); break; | |
| 507 | case REGION_PROMS: fprintf(out, " region=\"proms\""); break; | |
| 508 | case REGION_PLDS: fprintf(out, " region=\"plds\""); break; | |
| 509 | case REGION_SOUND1: fprintf(out, " region=\"sound1\""); break; | |
| 510 | case REGION_SOUND2: fprintf(out, " region=\"sound2\""); break; | |
| 511 | case REGION_SOUND3: fprintf(out, " region=\"sound3\""); break; | |
| 512 | case REGION_SOUND4: fprintf(out, " region=\"sound4\""); break; | |
| 513 | case REGION_SOUND5: fprintf(out, " region=\"sound5\""); break; | |
| 514 | case REGION_SOUND6: fprintf(out, " region=\"sound6\""); break; | |
| 515 | case REGION_SOUND7: fprintf(out, " region=\"sound7\""); break; | |
| 516 | case REGION_SOUND8: fprintf(out, " region=\"sound8\""); break; | |
| 517 | case REGION_USER1: fprintf(out, " region=\"user1\""); break; | |
| 518 | case REGION_USER2: fprintf(out, " region=\"user2\""); break; | |
| 519 | case REGION_USER3: fprintf(out, " region=\"user3\""); break; | |
| 520 | case REGION_USER4: fprintf(out, " region=\"user4\""); break; | |
| 521 | case REGION_USER5: fprintf(out, " region=\"user5\""); break; | |
| 522 | case REGION_USER6: fprintf(out, " region=\"user6\""); break; | |
| 523 | case REGION_USER7: fprintf(out, " region=\"user7\""); break; | |
| 524 | case REGION_USER8: fprintf(out, " region=\"user8\""); break; | |
| 525 | case REGION_USER9: fprintf(out, " region=\"user9\""); break; | |
| 526 | case REGION_USER10: fprintf(out, " region=\"user10\""); break; | |
| 527 | case REGION_USER11: fprintf(out, " region=\"user11\""); break; | |
| 528 | case REGION_USER12: fprintf(out, " region=\"user12\""); break; | |
| 529 | case REGION_USER13: fprintf(out, " region=\"user13\""); break; | |
| 530 | case REGION_USER14: fprintf(out, " region=\"user14\""); break; | |
| 531 | case REGION_USER15: fprintf(out, " region=\"user15\""); break; | |
| 532 | case REGION_USER16: fprintf(out, " region=\"user16\""); break; | |
| 533 | case REGION_USER17: fprintf(out, " region=\"user17\""); break; | |
| 534 | case REGION_USER18: fprintf(out, " region=\"user18\""); break; | |
| 535 | case REGION_USER19: fprintf(out, " region=\"user19\""); break; | |
| 536 | case REGION_USER20: fprintf(out, " region=\"user20\""); break; | |
| 537 | case REGION_DISKS: fprintf(out, " region=\"disks\""); break; | |
| 538 | default: fprintf(out, " region=\"0x%x\"", (int)ROMREGION_GETTYPE(region)); break; | |
| 539 | } | |
| 531 | 540 | |
| 532 | if (hash_data_has_info(ROM_GETHASHDATA(rom), HASH_INFO_NO_DUMP)) | |
| 533 | fprintf(out, " status=\"nodump\""); | |
| 534 | if (hash_data_has_info(ROM_GETHASHDATA(rom), HASH_INFO_BAD_DUMP)) | |
| 535 | fprintf(out, " status=\"baddump\""); | |
| 541 | /* add nodump/baddump flags */ | |
| 542 | if (hash_data_has_info(ROM_GETHASHDATA(rom), HASH_INFO_NO_DUMP)) | |
| 543 | fprintf(out, " status=\"nodump\""); | |
| 544 | if (hash_data_has_info(ROM_GETHASHDATA(rom), HASH_INFO_BAD_DUMP)) | |
| 545 | fprintf(out, " status=\"baddump\""); | |
| 536 | 546 | |
| 537 | if (!is_disk) | |
| 538 | { | |
| 539 | if (ROMREGION_GETFLAGS(region) & ROMREGION_DISPOSE) | |
| 540 | fprintf(out, " dispose=\"yes\""); | |
| 547 | /* for non-disk entries, print dispose flag and offset */ | |
| 548 | if (!is_disk) | |
| 549 | { | |
| 550 | if (ROMREGION_GETFLAGS(region) & ROMREGION_DISPOSE) | |
| 551 | fprintf(out, " dispose=\"yes\""); | |
| 552 | fprintf(out, " offset=\"%x\"", offset); | |
| 553 | } | |
| 541 | 554 | |
| 542 | fprintf(out, " offset=\"%x\"", offset); | |
| 555 | /* for disk entries, add the disk index */ | |
| 556 | else | |
| 557 | fprintf(out, " index=\"%x\"", DISK_GETINDEX(rom)); | |
| 558 | fprintf(out, "/>\n"); | |
| 543 | 559 | } |
| 544 | else | |
| 545 | { | |
| 546 | fprintf(out, " index=\"%x\"", DISK_GETINDEX(rom)); | |
| 547 | } | |
| 548 | fprintf(out, "/>\n"); | |
| 549 | 560 | } |
| 550 | 561 | } |
| 551 | 562 | } |
| 552 | 563 | |
| 553 | static void print_game_sampleof(FILE* out, const game_driver* game) | |
| 564 | ||
| 565 | /*------------------------------------------------- | |
| 566 | print_game_sampleof - print the 'sampleof' | |
| 567 | attribute, if appropriate | |
| 568 | -------------------------------------------------*/ | |
| 569 | ||
| 570 | static void print_game_sampleof(FILE *out, const game_driver *game, const machine_config *config) | |
| 554 | 571 | { |
| 555 | 572 | #if (HAS_SAMPLES) |
| 556 | machine_config drv; | |
| 557 | int i; | |
| 573 | int sndnum; | |
| 558 | 574 | |
| 559 | expand_machine_driver(game->drv, &drv); | |
| 575 | for (sndnum = 0; sndnum < ARRAY_LENGTH(config->sound) && config->sound[sndnum].type != SOUND_DUMMY; sndnum++) | |
| 576 | if (config->sound[sndnum].type == SOUND_SAMPLES) | |
| 577 | { | |
| 578 | const char *const *samplenames = ((const struct Samplesinterface *)config->sound[sndnum].config)->samplenames; | |
| 579 | if (samplenames != NULL) | |
| 580 | { | |
| 581 | int sampnum; | |
| 560 | 582 | |
| 561 | for( i = 0; i < MAX_SOUND && drv.sound[i].type != SOUND_DUMMY; i++ ) | |
| 562 | { | |
| 563 | const char *const *samplenames = NULL; | |
| 564 | if( drv.sound[i].type == SOUND_SAMPLES ) | |
| 565 | samplenames = ((const struct Samplesinterface *)drv.sound[i].config)->samplenames; | |
| 566 | if (samplenames != 0 && samplenames[0] != 0) { | |
| 567 | int k = 0; | |
| 568 | if (samplenames[k][0]=='*') | |
| 569 | { | |
| 570 | /* output sampleof only if different from game name */ | |
| 571 | if (strcmp(samplenames[k] + 1, game->name)!=0) | |
| 572 | fprintf(out, " sampleof=\"%s\"", xml_normalize_string(samplenames[k] + 1)); | |
| 573 | ++k; | |
| 583 | /* iterate over sample names */ | |
| 584 | for (sampnum = 0; samplenames[sampnum] != NULL; sampnum++) | |
| 585 | { | |
| 586 | const char *cursampname = samplenames[sampnum]; | |
| 587 | ||
| 588 | /* only output sampleof if different from the game name */ | |
| 589 | if (cursampname[0] == '*' && strcmp(cursampname + 1, game->name) != 0) | |
| 590 | fprintf(out, " sampleof=\"%s\"", xml_normalize_string(cursampname + 1)); | |
| 591 | } | |
| 574 | 592 | } |
| 575 | 593 | } |
| 576 | } | |
| 577 | 594 | #endif |
| 578 | 595 | } |
| 579 | 596 | |
| 580 | static void print_game_sample(FILE* out, const game_driver* game) | |
| 597 | ||
| 598 | /*------------------------------------------------- | |
| 599 | print_game_sample - print a list of all | |
| 600 | samples referenced by a game_driver | |
| 601 | -------------------------------------------------*/ | |
| 602 | ||
| 603 | static void print_game_sample(FILE *out, const game_driver *game, const machine_config *config) | |
| 581 | 604 | { |
| 582 | 605 | #if (HAS_SAMPLES) |
| 583 | machine_config drv; | |
| 584 | int i; | |
| 606 | int sndnum; | |
| 585 | 607 | |
| 586 | expand_machine_driver(game->drv, &drv); | |
| 608 | /* iterate over sound chips looking for samples */ | |
| 609 | for (sndnum = 0; sndnum < ARRAY_LENGTH(config->sound) && config->sound[sndnum].type != SOUND_DUMMY; sndnum++) | |
| 610 | if (config->sound[sndnum].type == SOUND_SAMPLES) | |
| 611 | { | |
| 612 | const char *const *samplenames = ((const struct Samplesinterface *)config->sound[sndnum].config)->samplenames; | |
| 613 | if (samplenames != NULL) | |
| 614 | { | |
| 615 | int sampnum; | |
| 587 | 616 | |
| 588 | for( i = 0; i < MAX_SOUND && drv.sound[i].type != SOUND_DUMMY; i++ ) | |
| 589 | { | |
| 590 | const char *const *samplenames = NULL; | |
| 591 | if( drv.sound[i].type == SOUND_SAMPLES ) | |
| 592 | samplenames = ((const struct Samplesinterface *)drv.sound[i].config)->samplenames; | |
| 593 | if (samplenames != 0 && samplenames[0] != 0) { | |
| 594 | int k = 0; | |
| 595 | if (samplenames[k][0]=='*') | |
| 596 | { | |
| 597 | ++k; | |
| 598 | } | |
| 599 | while (samplenames[k] != 0) { | |
| 600 | /* check if is not empty */ | |
| 601 | if (*samplenames[k]) { | |
| 602 | /* check if sample is duplicate */ | |
| 603 | int l = 0; | |
| 604 | while (l<k && strcmp(samplenames[k],samplenames[l])!=0) | |
| 605 | ++l; | |
| 606 | if (l==k) | |
| 607 | fprintf(out, "\t\t<sample name=\"%s\"/>\n", xml_normalize_string(samplenames[k])); | |
| 617 | /* iterate over sample names */ | |
| 618 | for (sampnum = 0; samplenames[sampnum] != NULL; sampnum++) | |
| 619 | { | |
| 620 | const char *cursampname = samplenames[sampnum]; | |
| 621 | int dupnum; | |
| 622 | ||
| 623 | /* ignore the special '*' samplename */ | |
| 624 | if (sampnum == 0 && cursampname[0] == '*') | |
| 625 | continue; | |
| 626 | ||
| 627 | /* filter out duplicates */ | |
| 628 | for (dupnum = 0; dupnum < sampnum; dupnum++) | |
| 629 | if (strcmp(samplenames[dupnum], cursampname) == 0) | |
| 630 | break; | |
| 631 | if (dupnum < sampnum) | |
| 632 | continue; | |
| 633 | ||
| 634 | /* output the sample name */ | |
| 635 | fprintf(out, "\t\t<sample name=\"%s\"/>\n", xml_normalize_string(cursampname)); | |
| 608 | 636 | } |
| 609 | ++k; | |
| 610 | 637 | } |
| 611 | 638 | } |
| 612 | } | |
| 613 | 639 | #endif |
| 614 | 640 | } |
| 615 | 641 | |
| 616 | static void print_game_micro(FILE* out, const game_driver* game) | |
| 642 | ||
| 643 | /*------------------------------------------------- | |
| 644 | print_game_chips - print a list of CPU and | |
| 645 | sound chips used by a game | |
| 646 | -------------------------------------------------*/ | |
| 647 | ||
| 648 | static void print_game_chips(FILE *out, const game_driver *game, const machine_config *config) | |
| 617 | 649 | { |
| 618 | machine_config driver; | |
| 619 | const cpu_config* cpu; | |
| 620 | const sound_config* sound; | |
| 621 | int j; | |
| 650 | int chipnum; | |
| 622 | 651 | |
| 623 | expand_machine_driver(game->drv, &driver); | |
| 624 | cpu = driver.cpu; | |
| 625 | sound = driver.sound; | |
| 626 | ||
| 627 | for(j=0;j<MAX_CPU;++j) | |
| 628 | { | |
| 629 | if (cpu[j].type != CPU_DUMMY) | |
| 652 | /* iterate over CPUs */ | |
| 653 | for (chipnum = 0; chipnum < ARRAY_LENGTH(config->cpu); chipnum++) | |
| 654 | if (config->cpu[chipnum].type != CPU_DUMMY) | |
| 630 | 655 | { |
| 631 | 656 | fprintf(out, "\t\t<chip"); |
| 632 | 657 | fprintf(out, " type=\"cpu\""); |
| 633 | ||
| 634 | fprintf(out, " name=\"%s\"", xml_normalize_string(cputype_name(cpu[j].type))); | |
| 635 | ||
| 636 | fprintf(out, " clock=\"%d\"", cpu[j].clock); | |
| 658 | fprintf(out, " name=\"%s\"", xml_normalize_string(cputype_name(config->cpu[chipnum].type))); | |
| 659 | fprintf(out, " clock=\"%d\"", config->cpu[chipnum].clock); | |
| 637 | 660 | fprintf(out, "/>\n"); |
| 638 | 661 | } |
| 639 | } | |
| 640 | 662 | |
| 641 | for(j=0;j<MAX_SOUND;++j) | |
| 642 | { | |
| 643 | if (sound[j].type != SOUND_DUMMY) | |
| 663 | /* iterate over sound chips */ | |
| 664 | for (chipnum = 0; chipnum < ARRAY_LENGTH(config->sound); chipnum++) | |
| 665 | if (config->sound[chipnum].type != SOUND_DUMMY) | |
| 644 | 666 | { |
| 645 | 667 | fprintf(out, "\t\t<chip"); |
| 646 | 668 | fprintf(out, " type=\"audio\""); |
| 647 | fprintf(out, " name=\"%s\"", xml_normalize_string(sndtype_name(sound[j].type))); | |
| 648 | if (sound[j].clock) | |
| 649 | fprintf(out, " clock=\"%d\"", sound[j].clock); | |
| 669 | fprintf(out, " name=\"%s\"", xml_normalize_string(sndtype_name(config->sound[chipnum].type))); | |
| 670 | if (config->sound[chipnum].clock != 0) | |
| 671 | fprintf(out, " clock=\"%d\"", config->sound[chipnum].clock); | |
| 650 | 672 | fprintf(out, "/>\n"); |
| 651 | 673 | } |
| 652 | } | |
| 653 | 674 | } |
| 654 | 675 | |
| 655 | static void print_game_display(FILE* out, const game_driver* game) | |
| 676 | ||
| 677 | /*------------------------------------------------- | |
| 678 | print_game_display - print a list of all the | |
| 679 | displays | |
| 680 | -------------------------------------------------*/ | |
| 681 | ||
| 682 | static void print_game_display(FILE *out, const game_driver *game, const machine_config *config) | |
| 656 | 683 | { |
| 657 | | |
| 684 | | |
| 658 | 685 | |
| 659 | int dx; | |
| 660 | int dy; | |
| 661 | int scrnum; | |
| 686 | /* iterate over screens */ | |
| 687 | for (screen = video_screen_first(config); screen != NULL; screen = video_screen_next(screen)) | |
| 688 | { | |
| 689 | const screen_config *scrconfig = screen->inline_config; | |
| 662 | 690 | |
| 663 | | |
| 691 | fp | |
| 664 | 692 | |
| 665 | for (scrnum = 0; scrnum < MAX_SCREENS; scrnum++) | |
| 666 | if (driver.screen[scrnum].tag != NULL) | |
| 693 | switch (scrconfig->type) | |
| 667 | 694 | { |
| 668 | fprintf(out, "\t\t<display"); | |
| 695 | case SCREEN_TYPE_RASTER: fprintf(out, " type=\"raster\""); break; | |
| 696 | case SCREEN_TYPE_VECTOR: fprintf(out, " type=\"vector\""); break; | |
| 697 | case SCREEN_TYPE_LCD: fprintf(out, " type=\"lcd\""); break; | |
| 698 | default: fprintf(out, " type=\"unknown\""); break; | |
| 699 | } | |
| 669 | 700 | |
| 670 | fprintf(out, " type=\"%s\"", (driver.video_attributes & VIDEO_TYPE_VECTOR) ? "vector" : "raster" ); | |
| 701 | /* output the orientation as a string */ | |
| 702 | switch (game->flags & ORIENTATION_MASK) | |
| 703 | { | |
| 704 | case ORIENTATION_FLIP_X: | |
| 705 | fprintf(out, " rotate=\"0\" flipx=\"yes\""); | |
| 706 | break; | |
| 707 | case ORIENTATION_FLIP_Y: | |
| 708 | fprintf(out, " rotate=\"180\" flipx=\"yes\""); | |
| 709 | break; | |
| 710 | case ORIENTATION_FLIP_X|ORIENTATION_FLIP_Y: | |
| 711 | fprintf(out, " rotate=\"180\""); | |
| 712 | break; | |
| 713 | case ORIENTATION_SWAP_XY: | |
| 714 | fprintf(out, " rotate=\"90\" flipx=\"yes\""); | |
| 715 | break; | |
| 716 | case ORIENTATION_SWAP_XY|ORIENTATION_FLIP_X: | |
| 717 | fprintf(out, " rotate=\"90\""); | |
| 718 | break; | |
| 719 | case ORIENTATION_SWAP_XY|ORIENTATION_FLIP_Y: | |
| 720 | fprintf(out, " rotate=\"270\""); | |
| 721 | break; | |
| 722 | case ORIENTATION_SWAP_XY|ORIENTATION_FLIP_X|ORIENTATION_FLIP_Y: | |
| 723 | fprintf(out, " rotate=\"270\" flipx=\"yes\""); | |
| 724 | break; | |
| 725 | default: | |
| 726 | fprintf(out, " rotate=\"0\""); | |
| 727 | break; | |
| 728 | } | |
| 671 | 729 | |
| 672 | switch (game->flags & ORIENTATION_MASK) { | |
| 673 | case ORIENTATION_FLIP_X: | |
| 674 | fprintf(out, " rotate=\"0\" flipx=\"yes\""); | |
| 675 | break; | |
| 676 | case ORIENTATION_FLIP_Y: | |
| 677 | fprintf(out, " rotate=\"180\" flipx=\"yes\""); | |
| 678 | break; | |
| 679 | case ORIENTATION_FLIP_X|ORIENTATION_FLIP_Y: | |
| 680 | fprintf(out, " rotate=\"180\""); | |
| 681 | break; | |
| 682 | case ORIENTATION_SWAP_XY: | |
| 683 | fprintf(out, " rotate=\"90\" flipx=\"yes\""); | |
| 684 | break; | |
| 685 | case ORIENTATION_SWAP_XY|ORIENTATION_FLIP_X: | |
| 686 | fprintf(out, " rotate=\"90\""); | |
| 687 | break; | |
| 688 | case ORIENTATION_SWAP_XY|ORIENTATION_FLIP_Y: | |
| 689 | fprintf(out, " rotate=\"270\""); | |
| 690 | break; | |
| 691 | case ORIENTATION_SWAP_XY|ORIENTATION_FLIP_X|ORIENTATION_FLIP_Y: | |
| 692 | fprintf(out, " rotate=\"270\" flipx=\"yes\""); | |
| 693 | break; | |
| 694 | default: | |
| 695 | fprintf(out, " rotate=\"0\""); | |
| 696 | break; | |
| 697 | } | |
| 730 | /* output width and height only for games that are not vector */ | |
| 731 | if (scrconfig->type != SCREEN_TYPE_VECTOR) | |
| 732 | { | |
| 733 | int dx = scrconfig->defstate.visarea.max_x - scrconfig->defstate.visarea.min_x + 1; | |
| 734 | int dy = scrconfig->defstate.visarea.max_y - scrconfig->defstate.visarea.min_y + 1; | |
| 735 | fprintf(out, " width=\"%d\"", dx); | |
| 736 | fprintf(out, " height=\"%d\"", dy); | |
| 737 | } | |
| 698 | 738 | |
| 699 | /* output width and height only for games that are not vector */ | |
| 700 | if (! (driver.video_attributes & VIDEO_TYPE_VECTOR) ) | |
| 701 | { | |
| 702 | dx = driver.screen[scrnum].defstate.visarea.max_x - driver.screen[scrnum].defstate.visarea.min_x + 1; | |
| 703 | dy = driver.screen[scrnum].defstate.visarea.max_y - driver.screen[scrnum].defstate.visarea.min_y + 1; | |
| 704 | fprintf(out, " width=\"%d\"", dx); | |
| 705 | fprintf(out, " height=\"%d\"", dy); | |
| 706 | } | |
| 739 | /* output refresh rate */ | |
| 740 | fprintf(out, " refresh=\"%f\"", ATTOSECONDS_TO_HZ(scrconfig->defstate.refresh)); | |
| 741 | fprintf(out, " />\n"); | |
| 742 | } | |
| 743 | } | |
| 707 | 744 | |
| 708 | fprintf(out, " refresh=\"%f\"", ATTOSECONDS_TO_HZ(driver.screen[scrnum].defstate.refresh)); | |
| 709 | 745 | |
| 710 | fprintf(out, " />\n"); | |
| 711 | } | |
| 712 | } | |
| 746 | /*------------------------------------------------- | |
| 747 | print_game_sound - print a list of all the | |
| 748 | displays | |
| 749 | -------------------------------------------------*/ | |
| 713 | 750 | |
| 714 | static void print_game_sound(FILE | |
| 751 | static void print_game_sound(FILE | |
| 715 | 752 | { |
| 716 | machine_config driver; | |
| 717 | const cpu_config* cpu; | |
| 718 | const sound_config* sound; | |
| 753 | int has_sound = FALSE; | |
| 754 | int speakers = 0; | |
| 755 | int sndnum; | |
| 719 | 756 | |
| 720 | /* check if the game have sound emulation */ | |
| 721 | int has_sound = 0; | |
| 722 | int i; | |
| 757 | /* see if we have any sound chips to report */ | |
| 758 | for (sndnum = 0; sndnum < ARRAY_LENGTH(config->sound); sndnum++) | |
| 759 | if (config->sound[sndnum].type != SOUND_DUMMY) | |
| 760 | { | |
| 761 | has_sound = TRUE; | |
| 762 | break; | |
| 763 | } | |
| 723 | 764 | |
| 724 | expand_machine_driver(game->drv, &driver); | |
| 725 | cpu = driver.cpu; | |
| 726 | sound = driver.sound; | |
| 727 | ||
| 728 | i = 0; | |
| 729 | while (i < MAX_SOUND && !has_sound) | |
| 730 | { | |
| 731 | if (sound[i].type != SOUND_DUMMY) | |
| 732 | has_sound = 1; | |
| 733 | ++i; | |
| 734 | } | |
| 735 | ||
| 736 | fprintf(out, "\t\t<sound"); | |
| 737 | ||
| 738 | /* sound channel */ | |
| 765 | /* if we have sound, count the number of speakers */ | |
| 739 | 766 | if (has_sound) |
| 740 | { | |
| 741 | int speakers; | |
| 742 | for (speakers = 0; speakers < MAX_SPEAKER; speakers++) | |
| 743 | if (driver.speaker[speakers].tag == NULL) | |
| 767 | for (speakers = 0; speakers < ARRAY_LENGTH(config->speaker); speakers++) | |
| 768 | if (config->speaker[speakers].tag == NULL) | |
| 744 | 769 | break; |
| 745 | fprintf(out, " channels=\"%d\"", speakers); | |
| 746 | } | |
| 747 | else | |
| 748 | fprintf(out, " channels=\"0\""); | |
| 749 | 770 | |
| 750 | fprintf(out, "/>\n"); | |
| 771 | fprintf(out, "\t\t<sound channels=\"%d\"/>\n", speakers); | |
| 751 | 772 | } |
| 752 | 773 | |
| 753 | static void print_game_driver(FILE* out, const game_driver* game) | |
| 754 | { | |
| 755 | machine_config driver; | |
| 756 | 774 | |
| 757 | expand_machine_driver(game->drv, &driver); | |
| 775 | /*------------------------------------------------- | |
| 776 | print_game_driver - print driver status | |
| 777 | -------------------------------------------------*/ | |
| 758 | 778 | |
| 779 | static void print_game_driver(FILE *out, const game_driver *game, const machine_config *config) | |
| 780 | { | |
| 759 | 781 | fprintf(out, "\t\t<driver"); |
| 760 | 782 | |
| 761 | 783 | /* The status entry is an hint for frontend authors */ |
| r1711 | r1712 | |
| 808 | 830 | else |
| 809 | 831 | fprintf(out, " savestate=\"unsupported\""); |
| 810 | 832 | |
| 811 | fprintf(out, " palettesize=\"%d\"", | |
| 833 | fprintf(out, " palettesize=\"%d\"", config-> | |
| 812 | 834 | |
| 813 | 835 | fprintf(out, "/>\n"); |
| 814 | 836 | } |
| 815 | 837 | |
| 816 | /* Print the MAME info record for a game */ | |
| 817 | static void print_game_info(FILE* out, const game_driver* game) | |
| 838 | ||
| 839 | /*------------------------------------------------- | |
| 840 | print_game_info - print the XML information | |
| 841 | for one particular game driver | |
| 842 | -------------------------------------------------*/ | |
| 843 | ||
| 844 | static void print_game_info(FILE *out, const game_driver *game) | |
| 818 | 845 | { |
| 846 | const input_port_entry *input; | |
| 847 | const game_driver *clone_of; | |
| 848 | machine_config *config; | |
| 819 | 849 | const char *start; |
| 820 | const game_driver *clone_of; | |
| 821 | 850 | |
| 822 | /* | |
| 851 | /* no action if not a game */ | |
| 823 | 852 | if (game->flags & GAME_NO_STANDALONE) |
| 824 | 853 | return; |
| 825 | 854 | |
| 855 | /* start tracking resources and allocate the machine and input configs */ | |
| 856 | begin_resource_tracking(); | |
| 857 | config = machine_config_alloc(game->drv); | |
| 858 | input = input_port_allocate(game->ipt, NULL); | |
| 859 | ||
| 860 | /* print the header and the game name */ | |
| 826 | 861 | fprintf(out, "\t<" XML_TOP); |
| 827 | ||
| 828 | 862 | fprintf(out, " name=\"%s\"", xml_normalize_string(game->name) ); |
| 829 | 863 | |
| 864 | /* strip away any path information from the source_file and output it */ | |
| 830 | 865 | start = strrchr(game->source_file, '/'); |
| 831 | if ( | |
| 866 | if ( | |
| 832 | 867 | start = strrchr(game->source_file, '\\'); |
| 833 | if ( | |
| 868 | if ( | |
| 834 | 869 | start = game->source_file - 1; |
| 835 | 870 | fprintf(out, " sourcefile=\"%s\"", xml_normalize_string(start + 1)); |
| 836 | 871 | |
| 872 | /* append bios and runnable flags */ | |
| 837 | 873 | if (game->flags & GAME_IS_BIOS_ROOT) |
| 838 | 874 | fprintf(out, " isbios=\"yes\""); |
| 839 | ||
| 840 | 875 | if (game->flags & GAME_NO_STANDALONE) |
| 841 | 876 | fprintf(out, " runnable=\"no\""); |
| 842 | 877 | |
| 878 | /* display clone information */ | |
| 843 | 879 | clone_of = driver_get_clone(game); |
| 844 | if (clone_of && !(clone_of->flags & GAME_IS_BIOS_ROOT)) | |
| 880 | if (clone_of != NULL && !(clone_of->flags & GAME_IS_BIOS_ROOT)) | |
| 845 | 881 | fprintf(out, " cloneof=\"%s\"", xml_normalize_string(clone_of->name)); |
| 846 | ||
| 847 | if (clone_of) | |
| 882 | if (clone_of != NULL) | |
| 848 | 883 | fprintf(out, " romof=\"%s\"", xml_normalize_string(clone_of->name)); |
| 849 | 884 | |
| 850 | print_game_sampleof(out, game); | |
| 851 | ||
| 885 | /* display sample information and close the game tag */ | |
| 886 | print_game_sampleof(out, game, config); | |
| 852 | 887 | fprintf(out, ">\n"); |
| 853 | 888 | |
| 854 | if (game->description) | |
| 889 | /* output game description */ | |
| 890 | if (game->description != NULL) | |
| 855 | 891 | fprintf(out, "\t\t<description>%s</description>\n", xml_normalize_string(game->description)); |
| 856 | 892 | |
| 857 | 893 | /* print the year only if is a number */ |
| 858 | if (game->year && strspn(game->year,"0123456789")==strlen(game->year)) | |
| 859 | fprintf(out, "\t\t<year>%s</year>\n", xml_normalize_string(game->year) ); | |
| 894 | if (game->year != NULL && strspn(game->year, "0123456789") == strlen(game->year)) | |
| 895 | fprintf(out, "\t\t<year>%s</year>\n", xml_normalize_string(game->year)); | |
| 860 | 896 | |
| 861 | if (game->manufacturer) | |
| 897 | /* print the manufacturer information */ | |
| 898 | if (game->manufacturer != NULL) | |
| 862 | 899 | fprintf(out, "\t\t<manufacturer>%s</manufacturer>\n", xml_normalize_string(game->manufacturer)); |
| 863 | 900 | |
| 901 | /* now print various additional information */ | |
| 864 | 902 | print_game_bios(out, game); |
| 865 | 903 | print_game_rom(out, game); |
| 866 | print_game_sample(out, game); | |
| 867 | print_game_micro(out, game); | |
| 868 | print_game_display(out, game); | |
| 869 | print_game_sound(out, game); | |
| 870 | print_game_input(out, game); | |
| 871 | print_game_switch(out, game); | |
| 872 | print_game_driver(out, game); | |
| 904 | print_game_sample(out, game, config); | |
| 905 | print_game_chips(out, game, config); | |
| 906 | print_game_display(out, game, config); | |
| 907 | print_game_sound(out, game, config); | |
| 908 | print_game_input(out, game, input); | |
| 909 | print_game_switches(out, game, input); | |
| 910 | print_game_driver(out, game, config); | |
| 873 | 911 | #ifdef MESS |
| 874 | 912 | print_game_device(out, game); |
| 875 | 913 | print_game_ramoptions(out, game); |
| 876 | 914 | #endif |
| 877 | 915 | |
| 916 | /* close the topmost tag */ | |
| 878 | 917 | fprintf(out, "\t</" XML_TOP ">\n"); |
| 918 | ||
| 919 | /* release resources */ | |
| 920 | end_resource_tracking(); | |
| 921 | machine_config_free(config); | |
| 879 | 922 | } |
| 880 | 923 | |
| 881 | static void print_mame_data(FILE* out, const game_driver* const games[], const char *gamename) | |
| 882 | { | |
| 883 | int j; | |
| 884 | 924 | |
| 885 | /* print games */ | |
| 886 | for(j=0;games[j];++j) | |
| 887 | if (mame_strwildcmp(gamename, games[j]->name) == 0) | |
| 888 | print_game_info(out, games[j]); | |
| 889 | } | |
| 925 | /*------------------------------------------------- | |
| 926 | print_mame_xml - print the XML information | |
| 927 | for all known games | |
| 928 | -------------------------------------------------*/ | |
| 890 | 929 | |
| 891 | /* Print the MAME database in XML format */ | |
| 892 | void print_mame_xml(FILE* out, const game_driver* const games[], const char *gamename) | |
| 930 | void print_mame_xml(FILE *out, const game_driver *const games[], const char *gamename) | |
| 893 | 931 | { |
| 932 | int drvnum; | |
| 933 | ||
| 894 | 934 | fprintf(out, |
| 895 | 935 | "<?xml version=\"1.0\"?>\n" |
| 896 | 936 | "<!DOCTYPE " XML_ROOT " [\n" |
| r1711 | r1712 | |
| 1003 | 1043 | xml_normalize_string(build_version) |
| 1004 | 1044 | ); |
| 1005 | 1045 | |
| 1006 | print_mame_data(out, games, gamename); | |
| 1046 | for (drvnum = 0; games[drvnum] != NULL; drvnum++) | |
| 1047 | if (mame_strwildcmp(gamename, games[drvnum]->name) == 0) | |
| 1048 | print_game_info(out, games[drvnum]); | |
| 1007 | 1049 | |
| 1008 | 1050 | fprintf(out, "</" XML_ROOT ">\n"); |
| 1009 | 1051 | } |
| r1711 | r1712 | |
|---|---|---|
| 149 | 149 | static void pixmap_update(tilemap *tmap, const rectangle *cliprect); |
| 150 | 150 | static void tile_update(tilemap *tmap, tilemap_logical_index logindex, UINT32 cached_col, UINT32 cached_row); |
| 151 | 151 | static UINT8 tile_draw(tilemap *tmap, const UINT8 *pendata, UINT32 x0, UINT32 y0, UINT32 palette_base, UINT8 category, UINT8 group, UINT8 flags); |
| 152 | static UINT8 tile_draw_colortable(tilemap *tmap, const UINT8 *pendata, UINT32 x0, UINT32 y0, UINT32 palette_base, UINT8 category, UINT8 group, UINT8 flags); | |
| 153 | 152 | static UINT8 tile_apply_bitmask(tilemap *tmap, const UINT8 *maskdata, UINT32 x0, UINT32 y0, UINT8 category, UINT8 flags); |
| 154 | 153 | |
| 155 | 154 | /* drawing helpers */ |
| r1711 | r1712 | |
| 1247 | 1246 | flags = tmap->tileinfo.flags ^ (tmap->attributes & 0x03); |
| 1248 | 1247 | |
| 1249 | 1248 | /* draw the tile, using either direct or transparent */ |
| 1250 | if (Machine->game_colortable != NULL) | |
| 1251 | tmap->tileflags[logindex] = tile_draw_colortable(tmap, tmap->tileinfo.pen_data, x0, y0, tmap->tileinfo.palette_base, tmap->tileinfo.category, tmap->tileinfo.group, flags); | |
| 1252 | else | |
| 1253 | tmap->tileflags[logindex] = tile_draw(tmap, tmap->tileinfo.pen_data, x0, y0, tmap->tileinfo.palette_base, tmap->tileinfo.category, tmap->tileinfo.group, flags); | |
| 1249 | tmap->tileflags[logindex] = tile_draw(tmap, tmap->tileinfo.pen_data, x0, y0, tmap->tileinfo.palette_base, tmap->tileinfo.category, tmap->tileinfo.group, flags); | |
| 1254 | 1250 | |
| 1255 | 1251 | /* if mask data is specified, apply it */ |
| 1256 | 1252 | if ((flags & (TILE_FORCE_LAYER0 | TILE_FORCE_LAYER1 | TILE_FORCE_LAYER2)) == 0 && tmap->tileinfo.mask_data != NULL) |
| r1711 | r1712 | |
| 1358 | 1354 | |
| 1359 | 1355 | |
| 1360 | 1356 | /*------------------------------------------------- |
| 1361 | tile_draw_colortable - draw a single tile to | |
| 1362 | the tilemap's internal pixmap, using the pen | |
| 1363 | as the pen_to_flags lookup value, and using | |
| 1364 | the machine's remapped_colortable | |
| 1365 | -------------------------------------------------*/ | |
| 1366 | ||
| 1367 | static UINT8 tile_draw_colortable(tilemap *tmap, const UINT8 *pendata, UINT32 x0, UINT32 y0, UINT32 palette_base, UINT8 category, UINT8 group, UINT8 flags) | |
| 1368 | { | |
| 1369 | const UINT8 *penmap = tmap->pen_to_flags + group * MAX_PEN_TO_FLAGS; | |
| 1370 | const pen_t *palette_lookup = Machine->remapped_colortable + palette_base; | |
| 1371 | mame_bitmap *flagsmap = tmap->flagsmap; | |
| 1372 | mame_bitmap *pixmap = tmap->pixmap; | |
| 1373 | int height = tmap->tileheight; | |
| 1374 | int width = tmap->tilewidth; | |
| 1375 | UINT8 andmask = ~0, ormask = 0; | |
| 1376 | int dx0 = 1, dy0 = 1; | |
| 1377 | int tx, ty; | |
| 1378 | ||
| 1379 | /* OR in the force layer flags */ | |
| 1380 | category |= flags & (TILE_FORCE_LAYER0 | TILE_FORCE_LAYER1 | TILE_FORCE_LAYER2); | |
| 1381 | ||
| 1382 | /* if we're vertically flipped, point to the bottom row and work backwards */ | |
| 1383 | if (flags & TILE_FLIPY) | |
| 1384 | { | |
| 1385 | y0 += height - 1; | |
| 1386 | dy0 = -1; | |
| 1387 | } | |
| 1388 | ||
| 1389 | /* if we're horizontally flipped, point to the rightmost column and work backwards */ | |
| 1390 | if (flags & TILE_FLIPX) | |
| 1391 | { | |
| 1392 | x0 += width - 1; | |
| 1393 | dx0 = -1; | |
| 1394 | } | |
| 1395 | ||
| 1396 | /* in 4bpp mode, we draw in groups of 2 pixels, so halve the width now */ | |
| 1397 | if (flags & TILE_4BPP) | |
| 1398 | { | |
| 1399 | assert(width % 2 == 0); | |
| 1400 | width /= 2; | |
| 1401 | } | |
| 1402 | ||
| 1403 | /* iterate over rows */ | |
| 1404 | for (ty = 0; ty < height; ty++) | |
| 1405 | { | |
| 1406 | UINT16 *pixptr = BITMAP_ADDR16(pixmap, y0, x0); | |
| 1407 | UINT8 *flagsptr = BITMAP_ADDR8(flagsmap, y0, x0); | |
| 1408 | int xoffs = 0; | |
| 1409 | ||
| 1410 | /* pre-advance to the next row */ | |
| 1411 | y0 += dy0; | |
| 1412 | ||
| 1413 | /* 8bpp data */ | |
| 1414 | if (!(flags & TILE_4BPP)) | |
| 1415 | { | |
| 1416 | for (tx = 0; tx < width; tx++) | |
| 1417 | { | |
| 1418 | UINT8 pen = *pendata++; | |
| 1419 | UINT8 map = penmap[pen]; | |
| 1420 | pixptr[xoffs] = palette_lookup[pen]; | |
| 1421 | flagsptr[xoffs] = map | category; | |
| 1422 | andmask &= map; | |
| 1423 | ormask |= map; | |
| 1424 | xoffs += dx0; | |
| 1425 | } | |
| 1426 | } | |
| 1427 | ||
| 1428 | /* 4bpp data */ | |
| 1429 | else | |
| 1430 | { | |
| 1431 | for (tx = 0; tx < width; tx++) | |
| 1432 | { | |
| 1433 | UINT8 data = *pendata++; | |
| 1434 | pen_t pen; | |
| 1435 | UINT8 map; | |
| 1436 | ||
| 1437 | pen = data & 0x0f; | |
| 1438 | map = penmap[pen]; | |
| 1439 | pixptr[xoffs] = palette_lookup[pen]; | |
| 1440 | flagsptr[xoffs] = map | category; | |
| 1441 | andmask &= map; | |
| 1442 | ormask |= map; | |
| 1443 | xoffs += dx0; | |
| 1444 | ||
| 1445 | pen = data >> 4; | |
| 1446 | map = penmap[pen]; | |
| 1447 | pixptr[xoffs] = palette_lookup[pen]; | |
| 1448 | flagsptr[xoffs] = map | category; | |
| 1449 | andmask &= map; | |
| 1450 | ormask |= map; | |
| 1451 | xoffs += dx0; | |
| 1452 | } | |
| 1453 | } | |
| 1454 | } | |
| 1455 | return andmask ^ ormask; | |
| 1456 | } | |
| 1457 | ||
| 1458 | ||
| 1459 | /*------------------------------------------------- | |
| 1460 | 1357 | tile_apply_bitmask - apply a bitmask to an |
| 1461 | 1358 | already-rendered tile by modifying the |
| 1462 | 1359 | flagsmap appropriately |
| r1711 | r1712 | |
| 1787 | 1684 | static void tilemap_draw_roz_core(tilemap *tmap, const blit_parameters *blit, |
| 1788 | 1685 | UINT32 startx, UINT32 starty, int incxx, int incxy, int incyx, int incyy, int wraparound) |
| 1789 | 1686 | { |
| 1790 | const pen_t *clut = &Machine-> | |
| 1687 | const pen_t *clut = &Machine-> | |
| 1791 | 1688 | mame_bitmap *destbitmap = blit->bitmap; |
| 1792 | 1689 | mame_bitmap *srcbitmap = tmap->pixmap; |
| 1793 | 1690 | mame_bitmap *flagsmap = tmap->flagsmap; |
| r1711 | r1712 | |
| 2085 | 1982 | |
| 2086 | 1983 | static void scanline_draw_opaque_rgb16(void *_dest, const UINT16 *source, int count, UINT8 *pri, UINT32 pcode) |
| 2087 | 1984 | { |
| 2088 | const pen_t *clut = &Machine-> | |
| 1985 | const pen_t *clut = &Machine-> | |
| 2089 | 1986 | UINT16 *dest = _dest; |
| 2090 | 1987 | int i; |
| 2091 | 1988 | |
| r1711 | r1712 | |
| 2115 | 2012 | |
| 2116 | 2013 | static void scanline_draw_masked_rgb16(void *_dest, const UINT16 *source, const UINT8 *maskptr, int mask, int value, int count, UINT8 *pri, UINT32 pcode) |
| 2117 | 2014 | { |
| 2118 | const pen_t *clut = &Machine-> | |
| 2015 | const pen_t *clut = &Machine-> | |
| 2119 | 2016 | UINT16 *dest = _dest; |
| 2120 | 2017 | int i; |
| 2121 | 2018 | |
| r1711 | r1712 | |
| 2147 | 2044 | |
| 2148 | 2045 | static void scanline_draw_opaque_rgb16_alpha(void *_dest, const UINT16 *source, int count, UINT8 *pri, UINT32 pcode) |
| 2149 | 2046 | { |
| 2150 | const pen_t *clut = &Machine-> | |
| 2047 | const pen_t *clut = &Machine-> | |
| 2151 | 2048 | UINT16 *dest = _dest; |
| 2152 | 2049 | int i; |
| 2153 | 2050 | |
| r1711 | r1712 | |
| 2178 | 2075 | |
| 2179 | 2076 | static void scanline_draw_masked_rgb16_alpha(void *_dest, const UINT16 *source, const UINT8 *maskptr, int mask, int value, int count, UINT8 *pri, UINT32 pcode) |
| 2180 | 2077 | { |
| 2181 | const pen_t *clut = &Machine-> | |
| 2078 | const pen_t *clut = &Machine-> | |
| 2182 | 2079 | UINT16 *dest = _dest; |
| 2183 | 2080 | int i; |
| 2184 | 2081 | |
| r1711 | r1712 | |
| 2210 | 2107 | |
| 2211 | 2108 | static void scanline_draw_opaque_rgb32(void *_dest, const UINT16 *source, int count, UINT8 *pri, UINT32 pcode) |
| 2212 | 2109 | { |
| 2213 | const pen_t *clut = &Machine-> | |
| 2110 | const pen_t *clut = &Machine-> | |
| 2214 | 2111 | UINT32 *dest = _dest; |
| 2215 | 2112 | int i; |
| 2216 | 2113 | |
| r1711 | r1712 | |
| 2240 | 2137 | |
| 2241 | 2138 | static void scanline_draw_masked_rgb32(void *_dest, const UINT16 *source, const UINT8 *maskptr, int mask, int value, int count, UINT8 *pri, UINT32 pcode) |
| 2242 | 2139 | { |
| 2243 | const pen_t *clut = &Machine-> | |
| 2140 | const pen_t *clut = &Machine-> | |
| 2244 | 2141 | UINT32 *dest = _dest; |
| 2245 | 2142 | int i; |
| 2246 | 2143 | |
| r1711 | r1712 | |
| 2272 | 2169 | |
| 2273 | 2170 | static void scanline_draw_opaque_rgb32_alpha(void *_dest, const UINT16 *source, int count, UINT8 *pri, UINT32 pcode) |
| 2274 | 2171 | { |
| 2275 | const pen_t *clut = &Machine-> | |
| 2172 | const pen_t *clut = &Machine-> | |
| 2276 | 2173 | UINT32 *dest = _dest; |
| 2277 | 2174 | int i; |
| 2278 | 2175 | |
| r1711 | r1712 | |
| 2303 | 2200 | |
| 2304 | 2201 | static void scanline_draw_masked_rgb32_alpha(void *_dest, const UINT16 *source, const UINT8 *maskptr, int mask, int value, int count, UINT8 *pri, UINT32 pcode) |
| 2305 | 2202 | { |
| 2306 | const pen_t *clut = &Machine-> | |
| 2203 | const pen_t *clut = &Machine-> | |
| 2307 | 2204 | UINT32 *dest = _dest; |
| 2308 | 2205 | int i; |
| 2309 | 2206 |
| r1711 | r1712 | |
|---|---|---|
| 16 | 16 | |
| 17 | 17 | #include "mamecore.h" |
| 18 | 18 | |
| 19 | /* Print the MAME database in XML format */ | |
| 19 | ||
| 20 | /*************************************************************************** | |
| 21 | FUNCTION PROTOTYPES | |
| 22 | ***************************************************************************/ | |
| 23 | ||
| 24 | /* print the MAME database in XML format */ | |
| 20 | 25 | void print_mame_xml(FILE* out, const game_driver* const games[], const char *gamename); |
| 21 | 26 | |
| 27 | ||
| 22 | 28 | #endif /* __INFO_H__ */ |
| r1711 | r1712 | |
|---|---|---|
| 835 | 835 | ADD_MENU("Cheat", menu_cheat, 1); |
| 836 | 836 | |
| 837 | 837 | /* add memory card menu */ |
| 838 | if (Machine-> | |
| 838 | if (Machine->config->memcard_handler != NULL) | |
| 839 | 839 | ADD_MENU("Memory Card", menu_memory_card, 0); |
| 840 | 840 | |
| 841 | 841 | /* add reset and exit menus */ |
| r1711 | r1712 | |
|---|---|---|
| 120 | 120 | |
| 121 | 121 | int audit_samples(core_options *options, const game_driver *gamedrv, audit_record **audit) |
| 122 | 122 | { |
| 123 | machine_config config; | |
| 123 | machine_config *config = machine_config_alloc(gamedrv->drv); | |
| 124 | 124 | audit_record *record; |
| 125 | 125 | int sndnum, sampnum; |
| 126 | 126 | int records = 0; |
| 127 | 127 | |
| 128 | 128 | /* count the number of sample records attached to this driver */ |
| 129 | expand_machine_driver(gamedrv->drv, &config); | |
| 130 | 129 | #if HAS_SAMPLES |
| 131 | for (sndnum = 0; sndnum < ARRAY_LENGTH(config.sound); sndnum++) | |
| 132 | if (config.sound[sndnum].type == SOUND_SAMPLES) | |
| 130 | for (sndnum = 0; sndnum < ARRAY_LENGTH(config->sound); sndnum++) | |
| 131 | if (config->sound[sndnum].type == SOUND_SAMPLES) | |
| 133 | 132 | { |
| 134 | const struct Samplesinterface *intf = (const struct Samplesinterface *)config | |
| 133 | const struct Samplesinterface *intf = (const struct Samplesinterface *)config->sound[sndnum].config; | |
| 135 | 134 | |
| 136 | 135 | if (intf->samplenames != NULL) |
| 137 | 136 | { |
| r1711 | r1712 | |
| 145 | 144 | |
| 146 | 145 | /* if no records, just quit now */ |
| 147 | 146 | if (records == 0) |
| 148 | | |
| 147 | got | |
| 149 | 148 | |
| 150 | 149 | /* allocate memory for the records */ |
| 151 | 150 | *audit = malloc_or_die(sizeof(**audit) * records); |
| r1711 | r1712 | |
| 153 | 152 | record = *audit; |
| 154 | 153 | |
| 155 | 154 | /* now iterate over sample entries */ |
| 156 | for (sndnum = 0; sndnum < ARRAY_LENGTH(config.sound); sndnum++) | |
| 157 | if (config.sound[sndnum].type == SOUND_SAMPLES) | |
| 155 | for (sndnum = 0; sndnum < ARRAY_LENGTH(config->sound); sndnum++) | |
| 156 | if (config->sound[sndnum].type == SOUND_SAMPLES) | |
| 158 | 157 | { |
| 159 | const struct Samplesinterface *intf = (const struct Samplesinterface *)config | |
| 158 | const struct Samplesinterface *intf = (const struct Samplesinterface *)config->sound[sndnum].config; | |
| 160 | 159 | const char *sharedname = NULL; |
| 161 | 160 | |
| 162 | 161 | if (intf->samplenames != NULL) |
| r1711 | r1712 | |
| 197 | 196 | } |
| 198 | 197 | } |
| 199 | 198 | |
| 199 | skip: | |
| 200 | machine_config_free(config); | |
| 200 | 201 | return records; |
| 201 | 202 | } |
| 202 | 203 |
| r1711 | r1712 | |
|---|---|---|
| 51 | 51 | struct _internal_screen_info |
| 52 | 52 | { |
| 53 | 53 | /* pointers to screen configuration and state */ |
| 54 | const screen_config * config; /* pointer to the configuration in the Machine-> | |
| 54 | const screen_config * config; /* pointer to the configuration in the Machine->config */ | |
| 55 | 55 | screen_state * state; /* pointer to visible state in Machine structure */ |
| 56 | 56 | |
| 57 | 57 | /* textures and bitmaps */ |
| r1711 | r1712 | |
| 274 | 274 | |
| 275 | 275 | void video_init(running_machine *machine) |
| 276 | 276 | { |
| 277 | const device_config *device; | |
| 277 | 278 | video_private *viddata; |
| 278 | 279 | const char *filename; |
| 279 | int scrnum; | |
| 280 | 280 | |
| 281 | 281 | /* reset our global state */ |
| 282 | 282 | memset(&global, 0, sizeof(global)); |
| r1711 | r1712 | |
| 300 | 300 | add_exit_callback(machine, video_exit); |
| 301 | 301 | |
| 302 | 302 | /* configure all of the screens */ |
| 303 | for (scrnum = 0; scrnum < MAX_SCREENS; scrnum++) | |
| 304 | if (machine->drv->screen[scrnum].tag != NULL) | |
| 305 | { | |
| 306 | render_container *container = render_container_get_screen(scrnum); | |
| 307 | internal_screen_info *info = &viddata->scrinfo[scrnum]; | |
| 303 | for (device = video_screen_first(machine->config); device != NULL; device = video_screen_next(device)) | |
| 304 | { | |
| 305 | int scrnum = device_list_index(machine->config->devicelist, VIDEO_SCREEN, device->tag); | |
| 306 | render_container *container = render_container_get_screen(scrnum); | |
| 307 | internal_screen_info *info = &viddata->scrinfo[scrnum]; | |
| 308 | 308 | |
| 309 | /* allocate a timer to reset partial updates */ | |
| 310 | info->scanline0_timer = timer_alloc(scanline0_callback, NULL); | |
| 309 | /* allocate a timer to reset partial updates */ | |
| 310 | info->scanline0_timer = timer_alloc(scanline0_callback, NULL); | |
| 311 | 311 | |
| 312 | /* make pointers back to the config and state */ | |
| 313 | info->config = &machine->drv->screen[scrnum]; | |
| 314 | info->state = &machine->screen[scrnum]; | |
| 312 | /* make pointers back to the config and state */ | |
| 313 | info->config = device->inline_config; | |
| 314 | info->state = &machine->screen[scrnum]; | |
| 315 | 315 | |
| 316 | /* configure the screen with the default parameters */ | |
| 317 | video_screen_configure(scrnum, info->state->width, info->state->height, &info->state->visarea, info->state->refresh); | |
| 316 | /* configure the screen with the default parameters */ | |
| 317 | video_screen_configure(scrnum, info->state->width, info->state->height, &info->state->visarea, info->state->refresh); | |
| 318 | 318 | |
| 319 | /* configure the default cliparea */ | |
| 320 | if (info->config->xoffset != 0) | |
| 321 | render_container_set_xoffset(container, info->config->xoffset); | |
| 322 | if (info->config->yoffset != 0) | |
| 323 | render_container_set_yoffset(container, info->config->yoffset); | |
| 324 | if (info->config->xscale != 0) | |
| 325 | render_container_set_xscale(container, info->config->xscale); | |
| 326 | if (info->config->yscale != 0) | |
| 327 | render_container_set_yscale(container, info->config->yscale); | |
| 319 | /* configure the default cliparea */ | |
| 320 | if (info->config->xoffset != 0) | |
| 321 | render_container_set_xoffset(container, info->config->xoffset); | |
| 322 | if (info->config->yoffset != 0) | |
| 323 | render_container_set_yoffset(container, info->config->yoffset); | |
| 324 | if (info->config->xscale != 0) | |
| 325 | render_container_set_xscale(container, info->config->xscale); | |
| 326 | if (info->config->yscale != 0) | |
| 327 | render_container_set_yscale(container, info->config->yscale); | |
| 328 | 328 | |
| 329 | /* reset VBLANK timing */ | |
| 330 | info->vblank_time = attotime_sub_attoseconds(attotime_zero, machine->screen[0].vblank); | |
| 329 | /* reset VBLANK timing */ | |
| 330 | info->vblank_time = attotime_sub_attoseconds(attotime_zero, machine->screen[0].vblank); | |
| 331 | 331 | |
| 332 | /* allocate a timer to generate per-scanline updates */ | |
| 333 | if (machine->drv->video_attributes & VIDEO_UPDATE_SCANLINE) | |
| 334 | { | |
| 335 | info->scanline_timer = timer_alloc(scanline_update_callback, NULL); | |
| 336 | timer_adjust_oneshot(info->scanline_timer, video_screen_get_time_until_pos(scrnum, 0, 0), scrnum); | |
| 337 | } | |
| 338 | ||
| 339 | /* register for save states */ | |
| 340 | state_save_register_item("video", scrnum, info->vblank_time.seconds); | |
| 341 | state_save_register_item("video", scrnum, info->vblank_time.attoseconds); | |
| 332 | /* allocate a timer to generate per-scanline updates */ | |
| 333 | if (machine->config->video_attributes & VIDEO_UPDATE_SCANLINE) | |
| 334 | { | |
| 335 | info->scanline_timer = timer_alloc(scanline_update_callback, NULL); | |
| 336 | timer_adjust_oneshot(info->scanline_timer, video_screen_get_time_until_pos(scrnum, 0, 0), scrnum); | |
| 342 | 337 | } |
| 343 | 338 | |
| 339 | /* register for save states */ | |
| 340 | state_save_register_item("video", scrnum, info->vblank_time.seconds); | |
| 341 | state_save_register_item("video", scrnum, info->vblank_time.attoseconds); | |
| 342 | } | |
| 343 | ||
| 344 | 344 | /* create spriteram buffers if necessary */ |
| 345 | if (machine-> | |
| 345 | if (machine->config->video_attributes & VIDEO_BUFFERS_SPRITERAM) | |
| 346 | 346 | init_buffered_spriteram(); |
| 347 | 347 | |
| 348 | 348 | /* convert the gfx ROMs into character sets. This is done BEFORE calling the driver's */ |
| 349 | 349 | /* palette_init() routine because it might need to check the machine->gfx[] data */ |
| 350 | if (machine->drv->gfxdecodeinfo != NULL) | |
| 351 | allocate_graphics(machine, machine->drv->gfxdecodeinfo); | |
| 350 | if (machine->config->gfxdecodeinfo != NULL) | |
| 351 | allocate_graphics(machine, machine->config->gfxdecodeinfo); | |
| 352 | 352 | |
| 353 | 353 | /* configure the palette */ |
| 354 | 354 | palette_config(machine); |
| 355 | 355 | |
| 356 | 356 | /* actually decode the graphics */ |
| 357 | if (machine->drv->gfxdecodeinfo != NULL) | |
| 358 | decode_graphics(machine, machine->drv->gfxdecodeinfo); | |
| 357 | if (machine->config->gfxdecodeinfo != NULL) | |
| 358 | decode_graphics(machine, machine->config->gfxdecodeinfo); | |
| 359 | 359 | |
| 360 | 360 | /* reset video statics and get out of here */ |
| 361 | 361 | pdrawgfx_shadow_lowpri = 0; |
| r1711 | r1712 | |
| 614 | 614 | |
| 615 | 615 | /* if we have a remapped colortable, point our local colortable to it */ |
| 616 | 616 | machine->gfx[i]->total_colors = gfxdecodeinfo[i].total_color_codes; |
| 617 | machine->gfx[i]->color_base = machine-> | |
| 617 | machine->gfx[i]->color_base = machine->config->gfxdecodeinfo[i].color_codes_start; | |
| 618 | 618 | } |
| 619 | 619 | } |
| 620 | 620 | |
| r1711 | r1712 | |
| 677 | 677 | |
| 678 | 678 | void video_screen_configure(int scrnum, int width, int height, const rectangle *visarea, attoseconds_t refresh) |
| 679 | 679 | { |
| 680 | const screen_config *scrconfig = device_list_find_by_index(Machine->config->devicelist, VIDEO_SCREEN, scrnum)->inline_config; | |
| 680 | 681 | video_private *viddata = Machine->video_data; |
| 681 | 682 | internal_screen_info *info = &viddata->scrinfo[scrnum]; |
| 682 | 683 | |
| 683 | 684 | /* reallocate bitmap if necessary */ |
| 684 | if ( | |
| 685 | if (s | |
| 685 | 686 | { |
| 686 | 687 | int curwidth = 0, curheight = 0; |
| 687 | 688 | |
| r1711 | r1712 | |
| 733 | 734 | |
| 734 | 735 | /* allocate textures */ |
| 735 | 736 | info->texture[0] = render_texture_alloc(NULL, NULL); |
| 736 | render_texture_set_bitmap(info->texture[0], info->bitmap[0], visarea, | |
| 737 | render_texture_set_bitmap(info->texture[0], info->bitmap[0], visarea, 0 | |
| 737 | 738 | info->texture[1] = render_texture_alloc(NULL, NULL); |
| 738 | render_texture_set_bitmap(info->texture[1], info->bitmap[1], visarea, | |
| 739 | render_texture_set_bitmap(info->texture[1], info->bitmap[1], visarea, 0 | |
| 739 | 740 | } |
| 740 | 741 | } |
| 741 | 742 | |
| r1711 | r1712 | |
| 806 | 807 | |
| 807 | 808 | int video_screen_exists(int scrnum) |
| 808 | 809 | { |
| 809 | return ( | |
| 810 | return (device_li | |
| 810 | 811 | } |
| 811 | 812 | |
| 812 | 813 | |
| r1711 | r1712 | |
| 837 | 838 | LOG_PARTIAL_UPDATES(("Partial: video_screen_update_partial(%d,%d): ", scrnum, scanline)); |
| 838 | 839 | |
| 839 | 840 | /* these two checks only apply if we're allowed to skip frames */ |
| 840 | if (!(Machine-> | |
| 841 | if (!(Machine->config->video_attributes & VIDEO_ALWAYS_UPDATE)) | |
| 841 | 842 | { |
| 842 | 843 | /* if skipping this frame, bail */ |
| 843 | 844 | if (global.skipping_this_frame) |
| r1711 | r1712 | |
| 875 | 876 | profiler_mark(PROFILER_VIDEO); |
| 876 | 877 | LOG_PARTIAL_UPDATES(("updating %d-%d\n", clip.min_y, clip.max_y)); |
| 877 | 878 | |
| 878 | if (Machine->drv->video_update != NULL) | |
| 879 | flags = (*Machine->drv->video_update)(Machine, scrnum, info->bitmap[info->curbitmap], &clip); | |
| 879 | if (Machine->config->video_update != NULL) | |
| 880 | flags = (*Machine->config->video_update)(Machine, scrnum, info->bitmap[info->curbitmap], &clip); | |
| 880 | 881 | global.partial_updates_this_frame++; |
| 881 | 882 | profiler_mark(PROFILER_END); |
| 882 | 883 | |
| r1711 | r1712 | |
| 890 | 891 | |
| 891 | 892 | |
| 892 | 893 | /*------------------------------------------------- |
| 894 | video_screen_update_partial - perform an update | |
| 895 | from the last beam position up to the current | |
| 896 | beam position | |
| 897 | -------------------------------------------------*/ | |
| 898 | ||
| 899 | void video_screen_update_now(int scrnum) | |
| 900 | { | |
| 901 | internal_screen_info *info = get_screen_info(Machine, scrnum); | |
| 902 | int current_vpos = video_screen_get_vpos(scrnum); | |
| 903 | int current_hpos = video_screen_get_hpos(scrnum); | |
| 904 | ||
| 905 | /* since we can currently update only at the scanline | |
| 906 | level, we are trying to do the right thing by | |
| 907 | updating including the current scanline, only if the | |
| 908 | beam is past the halfway point horizontally. | |
| 909 | If the beam is in the first half of the scanline, | |
| 910 | we only update up to the previous scanline. | |
| 911 | This minimizes the number of pixels that might be drawn | |
| 912 | incorrectly until we support a pixel level granularity */ | |
| 913 | if ((current_hpos < (info->state->width / 2)) && (current_vpos > 0)) | |
| 914 | current_vpos = current_vpos - 1; | |
| 915 | ||
| 916 | video_screen_update_partial(scrnum, current_vpos); | |
| 917 | } | |
| 918 | ||
| 919 | ||
| 920 | /*------------------------------------------------- | |
| 893 | 921 | video_screen_get_vpos - returns the current |
| 894 | 922 | vertical position of the beam for a given |
| 895 | 923 | screen |
| r1711 | r1712 | |
| 1021 | 1049 | |
| 1022 | 1050 | |
| 1023 | 1051 | /*************************************************************************** |
| 1052 | VIDEO SCREEN DEVICE INTERFACE | |
| 1053 | ***************************************************************************/ | |
| 1054 | ||
| 1055 | /*------------------------------------------------- | |
| 1056 | video_screen_start - device start callback | |
| 1057 | for a video screen | |
| 1058 | -------------------------------------------------*/ | |
| 1059 | ||
| 1060 | static void *video_screen_start(running_machine *machine, const char *tag, const void *static_config, const void *inline_config) | |
| 1061 | { | |
| 1062 | int scrindex = device_list_index(machine->config->devicelist, VIDEO_SCREEN, tag); | |
| 1063 | return &machine->screen[scrindex]; | |
| 1064 | } | |
| 1065 | ||
| 1066 | ||
| 1067 | /*------------------------------------------------- | |
| 1068 | video_screen_set_info - device set info | |
| 1069 | callback | |
| 1070 | -------------------------------------------------*/ | |
| 1071 | ||
| 1072 | static void video_screen_set_info(running_machine *machine, void *token, UINT32 state, const deviceinfo *info) | |
| 1073 | { | |
| 1074 | switch (state) | |
| 1075 | { | |
| 1076 | /* no parameters to set */ | |
| 1077 | } | |
| 1078 | } | |
| 1079 | ||
| 1080 | ||
| 1081 | /*------------------------------------------------- | |
| 1082 | video_screen_get_info - device get info | |
| 1083 | callback | |
| 1084 | -------------------------------------------------*/ | |
| 1085 | ||
| 1086 | void video_screen_get_info(running_machine *machine, void *token, UINT32 state, deviceinfo *info) | |
| 1087 | { | |
| 1088 | switch (state) | |
| 1089 | { | |
| 1090 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 1091 | case DEVINFO_INT_INLINE_CONFIG_BYTES: info->i = sizeof(screen_config); break; | |
| 1092 | ||
| 1093 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 1094 | case DEVINFO_FCT_SET_INFO: info->set_info = video_screen_set_info;break; | |
| 1095 | case DEVINFO_FCT_START: info->start = video_screen_start; break; | |
| 1096 | case DEVINFO_FCT_STOP: /* Nothing */ break; | |
| 1097 | case DEVINFO_FCT_RESET: /* Nothing */ break; | |
| 1098 | ||
| 1099 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 1100 | case DEVINFO_STR_NAME: info->s = "Raster"; break; | |
| 1101 | case DEVINFO_STR_FAMILY: info->s = "Video Screen"; break; | |
| 1102 | case DEVINFO_STR_VERSION: info->s = "1.0"; break; | |
| 1103 | case DEVINFO_STR_SOURCE_FILE: info->s = __FILE__; break; | |
| 1104 | case DEVINFO_STR_CREDITS: info->s = "Copyright Nicola Salmoria and the MAME Team"; break; | |
| 1105 | } | |
| 1106 | } | |
| 1107 | ||
| 1108 | ||
| 1109 | ||
| 1110 | /*************************************************************************** | |
| 1024 | 1111 | GLOBAL RENDERING |
| 1025 | 1112 | ***************************************************************************/ |
| 1026 | 1113 | |
| r1711 | r1712 | |
| 1122 | 1209 | scanline0_callback(Machine, NULL, 0); |
| 1123 | 1210 | |
| 1124 | 1211 | /* otherwise, call the video EOF callback */ |
| 1125 | else if (Machine-> | |
| 1212 | else if (Machine->config->video_eof != NULL) | |
| 1126 | 1213 | { |
| 1127 | 1214 | profiler_mark(PROFILER_VIDEO); |
| 1128 | (*Machine-> | |
| 1215 | (*Machine->config->video_eof)(Machine); | |
| 1129 | 1216 | profiler_mark(PROFILER_END); |
| 1130 | 1217 | } |
| 1131 | 1218 | } |
| r1711 | r1712 | |
| 1140 | 1227 | static int finish_screen_updates(running_machine *machine) |
| 1141 | 1228 | { |
| 1142 | 1229 | video_private *viddata = machine->video_data; |
| 1230 | const device_config *device; | |
| 1143 | 1231 | int anything_changed = FALSE; |
| 1144 | 1232 | int livemask; |
| 1145 | int scrnum; | |
| 1146 | 1233 | |
| 1147 | 1234 | /* finish updating the screens */ |
| 1148 | for (scrnum = 0; scrnum < MAX_SCREENS; scrnum++) | |
| 1149 | if (machine->drv->screen[scrnum].tag != NULL) | |
| 1150 | video_screen_update_partial(scrnum, machine->screen[scrnum].visarea.max_y); | |
| 1235 | for (device = video_screen_first(machine->config); device != NULL; device = video_screen_next(device)) | |
| 1236 | { | |
| 1237 | int scrnum = device_list_index(machine->config->devicelist, VIDEO_SCREEN, device->tag); | |
| 1238 | video_screen_update_partial(scrnum, machine->screen[scrnum].visarea.max_y); | |
| 1239 | } | |
| 1151 | 1240 | |
| 1152 | 1241 | /* now add the quads for all the screens */ |
| 1153 | 1242 | livemask = render_get_live_screens_mask(); |
| 1154 | for ( | |
| 1243 | for (device | |
| 1155 | 1244 | { |
| 1245 | int scrnum = device_list_index(machine->config->devicelist, VIDEO_SCREEN, device->tag); | |
| 1156 | 1246 | internal_screen_info *screen = &viddata->scrinfo[scrnum]; |
| 1157 | 1247 | |
| 1158 | 1248 | /* only update if live */ |
| 1159 | 1249 | if (livemask & (1 << scrnum)) |
| 1160 | 1250 | { |
| 1251 | const screen_config *scrconfig = device_list_find_by_index(Machine->config->devicelist, VIDEO_SCREEN, scrnum)->inline_config; | |
| 1252 | ||
| 1161 | 1253 | /* only update if empty and not a vector game; otherwise assume the driver did it directly */ |
| 1162 | if ((machine-> | |
| 1254 | if (scrconfig->type != SCREEN_TYPE_VECTOR && (machine->config->video_attributes & | |
| 1163 | 1255 | { |
| 1164 | 1256 | /* if we're not skipping the frame and if the screen actually changed, then update the texture */ |
| 1165 | 1257 | if (!global.skipping_this_frame && screen->changed) |
| r1711 | r1712 | |
| 1168 | 1260 | rectangle fixedvis = machine->screen[scrnum].visarea; |
| 1169 | 1261 | fixedvis.max_x++; |
| 1170 | 1262 | fixedvis.max_y++; |
| 1171 | render_texture_set_bitmap(screen->texture[screen->curbitmap], bitmap, &fixedvis, | |
| 1263 | render_texture_set_bitmap(screen->texture[screen->curbitmap], bitmap, &fixedvis, 0 | |
| 1172 | 1264 | screen->curtexture = screen->curbitmap; |
| 1173 | 1265 | screen->curbitmap = 1 - screen->curbitmap; |
| 1174 | 1266 | } |
| r1711 | r1712 | |
| 1727 | 1819 | png_add_text(&pnginfo, "System", text); |
| 1728 | 1820 | |
| 1729 | 1821 | /* now do the actual work */ |
| 1730 | error = png_write_bitmap(mame_core_file(fp), &pnginfo, machine->video_data->snap_bitmap, machine-> | |
| 1822 | error = png_write_bitmap(mame_core_file(fp), &pnginfo, machine->video_data->snap_bitmap, machine->config->total_colors, palette); | |
| 1731 | 1823 | |
| 1732 | 1824 | /* free any data allocated */ |
| 1733 | 1825 | png_free(&pnginfo); |
| r1711 | r1712 | |
| 1949 | 2041 | |
| 1950 | 2042 | /* write the next frame */ |
| 1951 | 2043 | palette = (machine->palette != NULL) ? palette_entry_list_adjusted(machine->palette) : NULL; |
| 1952 | error = mng_capture_frame(mame_core_file(info->movie_file), &pnginfo, bitmap, machine-> | |
| 2044 | error = mng_capture_frame(mame_core_file(info->movie_file), &pnginfo, bitmap, machine->config->total_colors, palette); | |
| 1953 | 2045 | png_free(&pnginfo); |
| 1954 | 2046 | if (error != PNGERR_NONE) |
| 1955 | 2047 | { |
| r1711 | r1712 | |
|---|---|---|
| 1227 | 1227 | memset(&cpudata, 0, sizeof(cpudata)); |
| 1228 | 1228 | |
| 1229 | 1229 | /* loop over CPUs */ |
| 1230 | for (cpunum = 0; cpunum < MAX_CPU && Machine-> | |
| 1230 | for (cpunum = 0; cpunum < MAX_CPU && Machine->config->cpu[cpunum].type != CPU_DUMMY; cpunum++) | |
| 1231 | 1231 | { |
| 1232 | 1232 | /* set the RAM/ROM base */ |
| 1233 | 1233 | cpudata[cpunum].op_ram = cpudata[cpunum].op_rom = memory_region(REGION_CPU1 + cpunum); |
| r1711 | r1712 | |
| 1276 | 1276 | static void init_addrspace(UINT8 cpunum, UINT8 spacenum) |
| 1277 | 1277 | { |
| 1278 | 1278 | addrspace_data *space = &cpudata[cpunum].space[spacenum]; |
| 1279 | cpu_type cputype = Machine-> | |
| 1279 | cpu_type cputype = Machine->config->cpu[cpunum].type; | |
| 1280 | 1280 | int abits = cputype_addrbus_width(cputype, spacenum); |
| 1281 | 1281 | int dbits = cputype_databus_width(cputype, spacenum); |
| 1282 | 1282 | int accessorindex = (dbits == 8) ? 0 : (dbits == 16) ? 1 : (dbits == 32) ? 2 : 3; |
| r1711 | r1712 | |
| 1309 | 1309 | space->map = map; |
| 1310 | 1310 | space->adjmap = &map[MAX_ADDRESS_MAP_SIZE * 2]; |
| 1311 | 1311 | |
| 1312 | construct_address_map(map, Machine-> | |
| 1312 | construct_address_map(map, Machine->config, cpunum, spacenum); | |
| 1313 | 1313 | |
| 1314 | 1314 | /* convert implicit ROM entries to map to the memory region */ |
| 1315 | 1315 | if (spacenum == ADDRESS_SPACE_PROGRAM && memory_region(REGION_CPU1 + cpunum)) |
| r1711 | r1712 | |
| 1386 | 1386 | memset(&bankdata, 0, sizeof(bankdata)); |
| 1387 | 1387 | |
| 1388 | 1388 | /* loop over CPUs */ |
| 1389 | for (cpunum = 0; cpunum < MAX_CPU && Machine-> | |
| 1389 | for (cpunum = 0; cpunum < MAX_CPU && Machine->config->cpu[cpunum].type != CPU_DUMMY; cpunum++) | |
| 1390 | 1390 | for (spacenum = 0; spacenum < ADDRESS_SPACES; spacenum++) |
| 1391 | 1391 | if (cpudata[cpunum].spacemask & (1 << spacenum)) |
| 1392 | 1392 | { |
| r1711 | r1712 | |
| 1486 | 1486 | int cpunum, spacenum; |
| 1487 | 1487 | |
| 1488 | 1488 | /* loop over CPUs and address spaces */ |
| 1489 | for (cpunum = 0; cpunum < MAX_CPU && Machine-> | |
| 1489 | for (cpunum = 0; cpunum < MAX_CPU && Machine->config->cpu[cpunum].type != CPU_DUMMY; cpunum++) | |
| 1490 | 1490 | for (spacenum = 0; spacenum < ADDRESS_SPACES; spacenum++) |
| 1491 | 1491 | if (cpudata[cpunum].spacemask & (1 << spacenum)) |
| 1492 | 1492 | { |
| r1711 | r1712 | |
| 2116 | 2116 | int cpunum, spacenum; |
| 2117 | 2117 | |
| 2118 | 2118 | /* loop over all CPUs and memory spaces */ |
| 2119 | for (cpunum = 0; cpunum < MAX_CPU && Machine-> | |
| 2119 | for (cpunum = 0; cpunum < MAX_CPU && Machine->config->cpu[cpunum].type != CPU_DUMMY; cpunum++) | |
| 2120 | 2120 | for (spacenum = 0; spacenum < ADDRESS_SPACES; spacenum++) |
| 2121 | 2121 | if (cpudata[cpunum].spacemask & (1 << spacenum)) |
| 2122 | 2122 | { |
| r1711 | r1712 | |
| 2347 | 2347 | int cpunum, spacenum, banknum; |
| 2348 | 2348 | |
| 2349 | 2349 | /* loop over CPUs and address spaces */ |
| 2350 | for (cpunum = 0; cpunum < MAX_CPU && Machine-> | |
| 2350 | for (cpunum = 0; cpunum < MAX_CPU && Machine->config->cpu[cpunum].type != CPU_DUMMY; cpunum++) | |
| 2351 | 2351 | for (spacenum = 0; spacenum < ADDRESS_SPACES; spacenum++) |
| 2352 | 2352 | if (cpudata[cpunum].spacemask & (1 << spacenum)) |
| 2353 | 2353 | { |
| r1711 | r1712 | |
| 3475 | 3475 | return; |
| 3476 | 3476 | |
| 3477 | 3477 | /* loop over CPUs */ |
| 3478 | for (cpunum = 0; cpunum < MAX_CPU && Machine-> | |
| 3478 | for (cpunum = 0; cpunum < MAX_CPU && Machine->config->cpu[cpunum].type != CPU_DUMMY; cpunum++) | |
| 3479 | 3479 | for (spacenum = 0; spacenum < ADDRESS_SPACES; spacenum++) |
| 3480 | 3480 | if (cpudata[cpunum].space[spacenum].abits) |
| 3481 | 3481 | { |
| r1711 | r1712 | |
|---|---|---|
| 15 | 15 | #define __VIDEO_H__ |
| 16 | 16 | |
| 17 | 17 | #include "mamecore.h" |
| 18 | #include "devintrf.h" | |
| 18 | 19 | #include "timer.h" |
| 19 | 20 | |
| 20 | 21 | |
| r1711 | r1712 | |
| 29 | 30 | #define FRAMESKIP_LEVELS 12 |
| 30 | 31 | #define MAX_FRAMESKIP (FRAMESKIP_LEVELS - 2) |
| 31 | 32 | |
| 33 | /* screen types */ | |
| 34 | enum | |
| 35 | { | |
| 36 | SCREEN_TYPE_INVALID = 0, | |
| 37 | SCREEN_TYPE_RASTER, | |
| 38 | SCREEN_TYPE_VECTOR, | |
| 39 | SCREEN_TYPE_LCD | |
| 40 | }; | |
| 32 | 41 | |
| 33 | 42 | |
| 43 | ||
| 34 | 44 | /*************************************************************************** |
| 45 | MACROS | |
| 46 | ***************************************************************************/ | |
| 47 | ||
| 48 | /* these functions are macros primarily due to include file ordering */ | |
| 49 | /* plus, they are very simple */ | |
| 50 | #define video_screen_count(config) device_list_items((config)->devicelist, VIDEO_SCREEN) | |
| 51 | #define video_screen_first(config) device_list_first((config)->devicelist, VIDEO_SCREEN) | |
| 52 | #define video_screen_next(previous) device_list_next((previous), VIDEO_SCREEN) | |
| 53 | ||
| 54 | ||
| 55 | ||
| 56 | /*************************************************************************** | |
| 35 | 57 | TYPE DEFINITIONS |
| 36 | 58 | ***************************************************************************/ |
| 37 | 59 | |
| r1711 | r1712 | |
| 59 | 81 | typedef struct _screen_config screen_config; |
| 60 | 82 | struct _screen_config |
| 61 | 83 | { |
| 62 | const char * tag; /* nametag for the screen */ | |
| 63 | UINT32 palette_base; /* base palette entry for this screen */ | |
| 84 | int type; /* type of screen */ | |
| 64 | 85 | screen_state defstate; /* default state */ |
| 65 | 86 | float xoffset, yoffset; /* default X/Y offsets */ |
| 66 | 87 | float xscale, yscale; /* default X/Y scale factor */ |
| r1711 | r1712 | |
| 92 | 113 | /* force a partial update of the screen up to and including the requested scanline */ |
| 93 | 114 | void video_screen_update_partial(int scrnum, int scanline); |
| 94 | 115 | |
| 116 | /* force an update from the last beam position up to the current beam position */ | |
| 117 | void video_screen_update_now(int scrnum); | |
| 118 | ||
| 95 | 119 | /* return the current vertical or horizontal position of the beam for a screen */ |
| 96 | 120 | int video_screen_get_vpos(int scrnum); |
| 97 | 121 | int video_screen_get_hpos(int scrnum); |
| r1711 | r1712 | |
| 114 | 138 | |
| 115 | 139 | |
| 116 | 140 | |
| 141 | /* ----- video screen device interface ----- */ | |
| 142 | ||
| 143 | /* device get info callback */ | |
| 144 | #define VIDEO_SCREEN video_screen_get_info | |
| 145 | void video_screen_get_info(running_machine *machine, void *token, UINT32 state, deviceinfo *info); | |
| 146 | ||
| 147 | ||
| 148 | ||
| 117 | 149 | /* ----- global rendering ----- */ |
| 118 | 150 | |
| 119 | 151 | /* update the screen, handling frame skipping and rendering */ |
| r1711 | r1712 | |
| 167 | 199 | void video_crosshair_toggle(void); |
| 168 | 200 | void video_crosshair_set_screenmask_callback(running_machine *machine, UINT32 (*get_screen_mask)(int player)); |
| 169 | 201 | |
| 202 | ||
| 170 | 203 | #endif /* __VIDEO_H__ */ |
| r1711 | r1712 | |
|---|---|---|
| 44 | 44 | $(EMUOBJ)/cpuexec.o \ |
| 45 | 45 | $(EMUOBJ)/cpuint.o \ |
| 46 | 46 | $(EMUOBJ)/cpuintrf.o \ |
| 47 | $(EMUOBJ)/devintrf.o \ | |
| 47 | 48 | $(EMUOBJ)/drawgfx.o \ |
| 48 | 49 | $(EMUOBJ)/driver.o \ |
| 49 | 50 | $(EMUOBJ)/emuopts.o \ |
| r1711 | r1712 | |
| 56 | 57 | $(EMUOBJ)/inptport.o \ |
| 57 | 58 | $(EMUOBJ)/mame.o \ |
| 58 | 59 | $(EMUOBJ)/mamecore.o \ |
| 60 | $(EMUOBJ)/mconfig.o \ | |
| 59 | 61 | $(EMUOBJ)/memory.o \ |
| 60 | 62 | $(EMUOBJ)/output.o \ |
| 61 | 63 | $(EMUOBJ)/render.o \ |
| r1711 | r1712 | |
|---|---|---|
| 265 | 265 | static int parse_ini_file(core_options *options, const char *name); |
| 266 | 266 | |
| 267 | 267 | static running_machine *create_machine(const game_driver *driver); |
| 268 | static void re | |
| 268 | static void prepare | |
| 269 | 269 | static void destroy_machine(running_machine *machine); |
| 270 | 270 | static void init_machine(running_machine *machine); |
| 271 | 271 | static TIMER_CALLBACK( soft_reset ); |
| r1711 | r1712 | |
| 330 | 330 | |
| 331 | 331 | /* create the machine structure and driver */ |
| 332 | 332 | machine = create_machine(driver); |
| 333 | re | |
| 333 | prepare | |
| 334 | 334 | mame = machine->mame_data; |
| 335 | 335 | |
| 336 | 336 | /* start in the "pre-init phase" */ |
| r1711 | r1712 | |
| 1280 | 1280 | int cpunum; |
| 1281 | 1281 | |
| 1282 | 1282 | for (cpunum = 0; cpunum < MAX_CPU; cpunum++) |
| 1283 | if (machine-> | |
| 1283 | if (machine->config->cpu[cpunum].tag && strcmp(machine->config->cpu[cpunum].tag, tag) == 0) | |
| 1284 | 1284 | return cpunum; |
| 1285 | 1285 | |
| 1286 | 1286 | return -1; |
| r1711 | r1712 | |
| 1329 | 1329 | { |
| 1330 | 1330 | const game_driver *parent = driver_get_clone(driver); |
| 1331 | 1331 | const game_driver *gparent = (parent != NULL) ? driver_get_clone(parent) : NULL; |
| 1332 | const device_config *device; | |
| 1333 | machine_config *config; | |
| 1332 | 1334 | astring *sourcename; |
| 1333 | machine_config drv; | |
| 1334 | 1335 | |
| 1335 | /* expand the machine driver to look at the info */ | |
| 1336 | expand_machine_driver(driver->drv, &drv); | |
| 1337 | ||
| 1338 | 1336 | /* parse "vector.ini" for vector games */ |
| 1339 | if (drv.video_attributes & VIDEO_TYPE_VECTOR) | |
| 1340 | parse_ini_file(options, "vector"); | |
| 1337 | config = machine_config_alloc(driver->drv); | |
| 1338 | for (device = video_screen_first(config); device != NULL; device = video_screen_next(device)) | |
| 1339 | { | |
| 1340 | const screen_config *scrconfig = device->inline_config; | |
| 1341 | if (scrconfig->type == SCREEN_TYPE_VECTOR) | |
| 1342 | { | |
| 1343 | parse_ini_file(options, "vector"); | |
| 1344 | break; | |
| 1345 | } | |
| 1346 | } | |
| 1347 | machine_config_free(config); | |
| 1341 | 1348 | |
| 1342 | 1349 | /* next parse "source/<sourcefile>.ini"; if that doesn't exist, try <sourcefile>.ini */ |
| 1343 | 1350 | sourcename = core_filename_extract_base(astring_alloc(), driver->source_file, TRUE); |
| r1711 | r1712 | |
| 1411 | 1418 | |
| 1412 | 1419 | /* initialize the driver-related variables in the machine */ |
| 1413 | 1420 | machine->gamedrv = driver; |
| 1414 | machine->drv = malloc(sizeof(*machine->drv)); | |
| 1415 | if (machine->drv == NULL) | |
| 1416 | goto error; | |
| 1417 | machine->basename = mame_strdup(machine->gamedrv->name); | |
| 1418 | expand_machine_driver(machine->gamedrv->drv, (machine_config *)machine->drv); | |
| 1421 | machine->basename = mame_strdup(driver->name); | |
| 1422 | machine->config = machine_config_alloc(driver->drv); | |
| 1419 | 1423 | |
| 1420 | 1424 | /* allocate the driver data */ |
| 1421 | if (machine-> | |
| 1425 | if (machine->config->driver_data_size != 0) | |
| 1422 | 1426 | { |
| 1423 | machine->driver_data = malloc(machine-> | |
| 1427 | machine->driver_data = malloc(machine->config->driver_data_size); | |
| 1424 | 1428 | if (machine->driver_data == NULL) |
| 1425 | 1429 | goto error; |
| 1426 | 1430 | } |
| r1711 | r1712 | |
| 1429 | 1433 | error: |
| 1430 | 1434 | if (machine->driver_data != NULL) |
| 1431 | 1435 | free(machine->driver_data); |
| 1432 | if (machine->drv != NULL) | |
| 1433 | free((machine_config *)machine->drv); | |
| 1436 | if (machine->config != NULL) | |
| 1437 | machine_config_free((machine_config *)machine->config); | |
| 1434 | 1438 | if (machine->mame_data != NULL) |
| 1435 | 1439 | free(machine->mame_data); |
| 1436 | 1440 | if (machine != NULL) |
| r1711 | r1712 | |
| 1440 | 1444 | |
| 1441 | 1445 | |
| 1442 | 1446 | /*------------------------------------------------- |
| 1443 | re | |
| 1447 | prepare | |
| 1444 | 1448 | machine object |
| 1445 | 1449 | -------------------------------------------------*/ |
| 1446 | 1450 | |
| 1447 | static void re | |
| 1451 | static void prepare | |
| 1448 | 1452 | { |
| 1449 | | |
| 1453 | const device_config *device; | |
| 1450 | 1454 | |
| 1451 | 1455 | /* reset most portions of the machine */ |
| 1452 | 1456 | |
| 1453 | 1457 | /* video-related information */ |
| 1454 | 1458 | memset(machine->gfx, 0, sizeof(machine->gfx)); |
| 1455 | for (scrnum = 0; scrnum < MAX_SCREENS; scrnum++) | |
| 1456 | machine->screen[scrnum] = machine->drv->screen[scrnum].defstate; | |
| 1459 | for (device = video_screen_first(machine->config); device != NULL; device = video_screen_next(device)) | |
| 1460 | { | |
| 1461 | int scrnum = device_list_index(machine->config->devicelist, VIDEO_SCREEN, device->tag); | |
| 1462 | const screen_config *scrconfig = device->inline_config; | |
| 1463 | machine->screen[scrnum] = scrconfig->defstate; | |
| 1464 | } | |
| 1457 | 1465 | |
| 1458 | 1466 | /* palette-related information */ |
| 1459 | 1467 | machine->pens = NULL; |
| 1460 | machine->game_colortable = NULL; | |
| 1461 | machine->remapped_colortable = NULL; | |
| 1462 | 1468 | machine->shadow_table = NULL; |
| 1463 | 1469 | |
| 1464 | 1470 | /* audio-related information */ |
| r1711 | r1712 | |
| 1483 | 1489 | machine->streams_data = NULL; |
| 1484 | 1490 | |
| 1485 | 1491 | /* reset the driver data */ |
| 1486 | if (machine->drv->driver_data_size != 0) | |
| 1487 | memset(machine->driver_data, 0, machine->drv->driver_data_size); | |
| 1492 | if (machine->config->driver_data_size != 0) | |
| 1493 | memset(machine->driver_data, 0, machine->config->driver_data_size); | |
| 1488 | 1494 | } |
| 1489 | 1495 | |
| 1490 | 1496 | |
| r1711 | r1712 | |
| 1498 | 1504 | assert(machine == Machine); |
| 1499 | 1505 | if (machine->driver_data != NULL) |
| 1500 | 1506 | free(machine->driver_data); |
| 1501 | if (machine->drv != NULL) | |
| 1502 | free((machine_config *)machine->drv); | |
| 1507 | if (machine->config != NULL) | |
| 1508 | machine_config_free((machine_config *)machine->config); | |
| 1503 | 1509 | if (machine->mame_data != NULL) |
| 1504 | 1510 | free(machine->mame_data); |
| 1505 | 1511 | if (machine->basename != NULL) |
| r1711 | r1712 | |
| 1584 | 1590 | video_init(machine); |
| 1585 | 1591 | sound_init(machine); |
| 1586 | 1592 | |
| 1593 | /* start up the devices */ | |
| 1594 | device_list_start(machine); | |
| 1595 | ||
| 1587 | 1596 | /* call the driver's _START callbacks */ |
| 1588 | if (machine->drv->machine_start != NULL) (*machine->drv->machine_start)(machine); | |
| 1589 | if (machine->drv->sound_start != NULL) (*machine->drv->sound_start)(machine); | |
| 1590 | if (machine->drv->video_start != NULL) (*machine->drv->video_start)(machine); | |
| 1597 | if (machine->config->machine_start != NULL) (*machine->config->machine_start)(machine); | |
| 1598 | if (machine->config->sound_start != NULL) (*machine->config->sound_start)(machine); | |
| 1599 | if (machine->config->video_start != NULL) (*machine->config->video_start)(machine); | |
| 1591 | 1600 | |
| 1592 | 1601 | /* free memory regions allocated with REGIONFLAG_DISPOSE (typically gfx roms) */ |
| 1593 | 1602 | for (num = 0; num < MAX_MEMORY_REGIONS; num++) |
| r1711 | r1712 | |
| 1630 | 1639 | cpuint_reset(); |
| 1631 | 1640 | |
| 1632 | 1641 | /* run the driver's reset callbacks */ |
| 1633 | if (machine->drv->machine_reset != NULL) | |
| 1634 | (*machine->drv->machine_reset)(machine); | |
| 1635 | if (machine->drv->sound_reset != NULL) | |
| 1636 | (*machine->drv->sound_reset)(machine); | |
| 1637 | if (machine->drv->video_reset != NULL) | |
| 1638 | (*machine->drv->video_reset)(machine); | |
| 1642 | if (machine->config->machine_reset != NULL) | |
| 1643 | (*machine->config->machine_reset)(machine); | |
| 1644 | if (machine->config->sound_reset != NULL) | |
| 1645 | (*machine->config->sound_reset)(machine); | |
| 1646 | if (machine->config->video_reset != NULL) | |
| 1647 | (*machine->config->video_reset)(machine); | |
| 1639 | 1648 | |
| 1640 | 1649 | /* call all registered reset callbacks */ |
| 1641 | 1650 | for (cb = machine->mame_data->reset_callback_list; cb; cb = cb->next) |
| r1711 | r1712 | |
|---|---|---|
| 183 | 183 | { |
| 184 | 184 | changed_callback_info *next; /* linked list */ |
| 185 | 185 | UINT32 mask; /* mask we care about */ |
| 186 | | |
| 186 | | |
| 187 | 187 | void * param; /* parameter */ |
| 188 | 188 | }; |
| 189 | 189 | |
| r1711 | r1712 | |
| 1906 | 1906 | { |
| 1907 | 1907 | int index; |
| 1908 | 1908 | |
| 1909 | if (token == 0) | |
| 1909 | if (token.fptr == 0) | |
| 1910 | 1910 | return NULL; |
| 1911 | if ((FPTR)token >= INPUT_STRING_COUNT) | |
| 1912 | return (const char *)token; | |
| 1911 | if (token.fptr >= INPUT_STRING_COUNT) | |
| 1912 | return token.stringptr; | |
| 1913 | 1913 | for (index = 0; index < ARRAY_LENGTH(input_port_default_strings); index++) |
| 1914 | if (input_port_default_strings[index].id == | |
| 1914 | if (input_port_default_strings[index].id == | |
| 1915 | 1915 | return input_port_default_strings[index].string; |
| 1916 | 1916 | return "(Unknown Default)"; |
| 1917 | 1917 | } |
| r1711 | r1712 | |
| 1938 | 1938 | |
| 1939 | 1939 | /* the entry is the first of a UINT32 pair */ |
| 1940 | 1940 | /* note that we advance IPT assuming that there is no second half */ |
| 1941 | entrytype = INPUT_PORT_PAIR_IT | |
| 1941 | entrytype = INPUT_PORT_PAIR_UINT32(ipt++, 0); | |
| 1942 | 1942 | switch (entrytype) |
| 1943 | 1943 | { |
| 1944 | 1944 | /* end */ |
| r1711 | r1712 | |
| 1947 | 1947 | |
| 1948 | 1948 | /* including */ |
| 1949 | 1949 | case INPUT_TOKEN_INCLUDE: |
| 1950 | input_port_detokenize(param, ( | |
| 1950 | input_port_detokenize(param, ( | |
| 1951 | 1951 | break; |
| 1952 | 1952 | |
| 1953 | 1953 | /* start of a new input port */ |
| r1711 | r1712 | |
| 1956 | 1956 | modify_tag = NULL; |
| 1957 | 1957 | port = input_port_initialize(param, IPT_PORT, NULL, 0, 0); |
| 1958 | 1958 | if (entrytype == INPUT_TOKEN_START_TAG) |
| 1959 | port->start.tag = ( | |
| 1959 | port->start.tag = (ipt++)->st | |
| 1960 | 1960 | break; |
| 1961 | 1961 | |
| 1962 | 1962 | /* modify an existing port */ |
| 1963 | 1963 | case INPUT_TOKEN_MODIFY: |
| 1964 | modify_tag = ( | |
| 1964 | modify_tag = (ipt++)->st | |
| 1965 | 1965 | break; |
| 1966 | 1966 | |
| 1967 | 1967 | /* input bit definition */ |
| 1968 | 1968 | case INPUT_TOKEN_BIT: |
| 1969 | type = INPUT_PORT_PAIR_IT | |
| 1969 | type = INPUT_PORT_PAIR_UINT32(--ipt, 1); | |
| 1970 | 1970 | ipt += INPUT_PORT_PAIR_TOKENS; |
| 1971 | mask = INPUT_PORT_PAIR_ITEM(ipt, 0); | |
| 1972 | defval = INPUT_PORT_PAIR_ITEM(ipt, 1); | |
| 1971 | mask = INPUT_PORT_PAIR_UINT32(ipt, 0); | |
| 1972 | defval = INPUT_PORT_PAIR_UINT32(ipt, 1); | |
| 1973 | 1973 | ipt += INPUT_PORT_PAIR_TOKENS; |
| 1974 | 1974 | |
| 1975 | 1975 | port = input_port_initialize(param, type, modify_tag, mask, defval); |
| r1711 | r1712 | |
| 1978 | 1978 | |
| 1979 | 1979 | /* append a code */ |
| 1980 | 1980 | case INPUT_TOKEN_CODE: |
| 1981 | val = INPUT_PORT_PAIR_IT | |
| 1981 | val = INPUT_PORT_PAIR_UINT32(--ipt, 1); | |
| 1982 | 1982 | ipt += INPUT_PORT_PAIR_TOKENS; |
| 1983 | 1983 | if (seq_index[0] > 0) |
| 1984 | 1984 | port->seq.code[seq_index[0]++] = SEQCODE_OR; |
| r1711 | r1712 | |
| 1986 | 1986 | break; |
| 1987 | 1987 | |
| 1988 | 1988 | case INPUT_TOKEN_CODE_DEC: |
| 1989 | val = INPUT_PORT_PAIR_IT | |
| 1989 | val = INPUT_PORT_PAIR_UINT32(--ipt, 1); | |
| 1990 | 1990 | ipt += INPUT_PORT_PAIR_TOKENS; |
| 1991 | 1991 | if (seq_index[1] > 0) |
| 1992 | 1992 | port->analog.decseq.code[seq_index[1]++] = SEQCODE_OR; |
| r1711 | r1712 | |
| 1994 | 1994 | break; |
| 1995 | 1995 | |
| 1996 | 1996 | case INPUT_TOKEN_CODE_INC: |
| 1997 | val = INPUT_PORT_PAIR_IT | |
| 1997 | val = INPUT_PORT_PAIR_UINT32(--ipt, 1); | |
| 1998 | 1998 | ipt += INPUT_PORT_PAIR_TOKENS; |
| 1999 | 1999 | if (seq_index[2] > 0) |
| 2000 | 2000 | port->analog.incseq.code[seq_index[2]++] = SEQCODE_OR; |
| r1711 | r1712 | |
| 2039 | 2039 | break; |
| 2040 | 2040 | |
| 2041 | 2041 | case INPUT_TOKEN_IMPULSE: |
| 2042 | port->impulse = INPUT_PORT_PAIR_IT | |
| 2042 | port->impulse = INPUT_PORT_PAIR_UINT32(--ipt, 1); | |
| 2043 | 2043 | ipt += INPUT_PORT_PAIR_TOKENS; |
| 2044 | 2044 | break; |
| 2045 | 2045 | |
| r1711 | r1712 | |
| 2057 | 2057 | |
| 2058 | 2058 | /* analog settings */ |
| 2059 | 2059 | case INPUT_TOKEN_MINMAX: |
| 2060 | port->analog.min = INPUT_PORT_PAIR_ITEM(ipt, 0); | |
| 2061 | port->analog.max = INPUT_PORT_PAIR_ITEM(ipt, 1); | |
| 2060 | port->analog.min = INPUT_PORT_PAIR_UINT32(ipt, 0); | |
| 2061 | port->analog.max = INPUT_PORT_PAIR_UINT32(ipt, 1); | |
| 2062 | 2062 | ipt += INPUT_PORT_PAIR_TOKENS; |
| 2063 | 2063 | break; |
| 2064 | 2064 | |
| 2065 | 2065 | case INPUT_TOKEN_SENSITIVITY: |
| 2066 | port->analog.sensitivity = INPUT_PORT_PAIR_IT | |
| 2066 | port->analog.sensitivity = INPUT_PORT_PAIR_UINT32(--ipt, 1); | |
| 2067 | 2067 | ipt += INPUT_PORT_PAIR_TOKENS; |
| 2068 | 2068 | break; |
| 2069 | 2069 | |
| 2070 | 2070 | case INPUT_TOKEN_KEYDELTA: |
| 2071 | port->analog.delta = port->analog.centerdelta = INPUT_PORT_PAIR_IT | |
| 2071 | port->analog.delta = port->analog.centerdelta = INPUT_PORT_PAIR_UINT32(--ipt, 1); | |
| 2072 | 2072 | ipt += INPUT_PORT_PAIR_TOKENS; |
| 2073 | 2073 | break; |
| 2074 | 2074 | |
| 2075 | 2075 | case INPUT_TOKEN_CENTERDELTA: |
| 2076 | port->analog.centerdelta = INPUT_PORT_PAIR_IT | |
| 2076 | port->analog.centerdelta = INPUT_PORT_PAIR_UINT32(--ipt, 1); | |
| 2077 | 2077 | ipt += INPUT_PORT_PAIR_TOKENS; |
| 2078 | 2078 | break; |
| 2079 | 2079 | |
| 2080 | 2080 | case INPUT_TOKEN_CROSSHAIR: |
| 2081 | port->analog.crossaxis = INPUT_PORT_PAIR_ITEM(--ipt, 1) & 0xff; | |
| 2082 | port->analog.crossaltaxis = (float)((INT32)INPUT_PORT_PAIR_ITEM(ipt, 1) >> 8) / 65536.0f; | |
| 2081 | port->analog.crossaxis = INPUT_PORT_PAIR_UINT32(--ipt, 1) & 0xff; | |
| 2082 | port->analog.crossaltaxis = (float)((INT32)INPUT_PORT_PAIR_UINT32(ipt, 1) >> 8) / 65536.0f; | |
| 2083 | 2083 | ipt += INPUT_PORT_PAIR_TOKENS; |
| 2084 | port->analog.crossscale = (float)(INT32)INPUT_PORT_PAIR_ITEM(ipt, 0) / 65536.0f; | |
| 2085 | port->analog.crossoffset = (float)(INT32)INPUT_PORT_PAIR_ITEM(ipt, 1) / 65536.0f; | |
| 2084 | port->analog.crossscale = (float)(INT32)INPUT_PORT_PAIR_UINT32(ipt, 0) / 65536.0f; | |
| 2085 | port->analog.crossoffset = (float)(INT32)INPUT_PORT_PAIR_UINT32(ipt, 1) / 65536.0f; | |
| 2086 | 2086 | ipt += INPUT_PORT_PAIR_TOKENS; |
| 2087 | 2087 | break; |
| 2088 | 2088 | |
| 2089 | 2089 | case INPUT_TOKEN_FULL_TURN_COUNT: |
| 2090 | port->analog.full_turn_count = INPUT_PORT_PAIR_IT | |
| 2090 | port->analog.full_turn_count = INPUT_PORT_PAIR_UINT32(--ipt, 1); | |
| 2091 | 2091 | ipt += INPUT_PORT_PAIR_TOKENS; |
| 2092 | 2092 | break; |
| 2093 | 2093 | |
| 2094 | 2094 | case INPUT_TOKEN_POSITIONS: |
| 2095 | port->analog.max = INPUT_PORT_PAIR_IT | |
| 2095 | port->analog.max = INPUT_PORT_PAIR_UINT32(--ipt, 1); | |
| 2096 | 2096 | ipt += INPUT_PORT_PAIR_TOKENS; |
| 2097 | 2097 | break; |
| 2098 | 2098 | |
| r1711 | r1712 | |
| 2101 | 2101 | break; |
| 2102 | 2102 | |
| 2103 | 2103 | case INPUT_TOKEN_REMAP_TABLE: |
| 2104 | port->analog.remap_table = ( | |
| 2104 | port->analog.remap_table = ( | |
| 2105 | 2105 | break; |
| 2106 | 2106 | |
| 2107 | 2107 | case INPUT_TOKEN_INVERT: |
| r1711 | r1712 | |
| 2110 | 2110 | |
| 2111 | 2111 | /* custom callbacks */ |
| 2112 | 2112 | case INPUT_TOKEN_CUSTOM: |
| 2113 | port->custom = (UINT32 (*)(void *))*ipt++; | |
| 2114 | port->custom_param = (void *)*ipt++; | |
| 2113 | port->custom = (ipt++)->customptr; | |
| 2114 | port->custom_param = (ipt++)->ptr; | |
| 2115 | 2115 | break; |
| 2116 | 2116 | |
| 2117 | 2117 | /* dip switch definition */ |
| 2118 | 2118 | case INPUT_TOKEN_DIPNAME: |
| 2119 | mask = INPUT_PORT_PAIR_ITEM(ipt, 0); | |
| 2120 | defval = INPUT_PORT_PAIR_ITEM(ipt, 1); | |
| 2119 | mask = INPUT_PORT_PAIR_UINT32(ipt, 0); | |
| 2120 | defval = INPUT_PORT_PAIR_UINT32(ipt, 1); | |
| 2121 | 2121 | ipt += INPUT_PORT_PAIR_TOKENS; |
| 2122 | 2122 | |
| 2123 | 2123 | port = input_port_initialize(param, IPT_DIPSWITCH_NAME, modify_tag, mask, defval); |
| r1711 | r1712 | |
| 2126 | 2126 | break; |
| 2127 | 2127 | |
| 2128 | 2128 | case INPUT_TOKEN_DIPSETTING: |
| 2129 | defval = INPUT_PORT_PAIR_IT | |
| 2129 | defval = INPUT_PORT_PAIR_UINT32(--ipt, 1); | |
| 2130 | 2130 | ipt += INPUT_PORT_PAIR_TOKENS; |
| 2131 | 2131 | |
| 2132 | 2132 | port = input_port_initialize(param, IPT_DIPSWITCH_SETTING, modify_tag, 0, defval); |
| r1711 | r1712 | |
| 2136 | 2136 | |
| 2137 | 2137 | /* physical location */ |
| 2138 | 2138 | case INPUT_TOKEN_DIPLOCATION: |
| 2139 | input_port_parse_diplocation(port, ( | |
| 2139 | input_port_parse_diplocation(port, (ipt++)->st | |
| 2140 | 2140 | break; |
| 2141 | 2141 | |
| 2142 | 2142 | /* conditionals for dip switch settings */ |
| 2143 | 2143 | case INPUT_TOKEN_CONDITION: |
| 2144 | port->condition.condition = INPUT_PORT_PAIR_IT | |
| 2144 | port->condition.condition = INPUT_PORT_PAIR_UINT32(--ipt, 1); | |
| 2145 | 2145 | ipt += INPUT_PORT_PAIR_TOKENS; |
| 2146 | port->condition.mask = INPUT_PORT_PAIR_ITEM(ipt, 0); | |
| 2147 | port->condition.value = INPUT_PORT_PAIR_ITEM(ipt, 1); | |
| 2146 | port->condition.mask = INPUT_PORT_PAIR_UINT32(ipt, 0); | |
| 2147 | port->condition.value = INPUT_PORT_PAIR_UINT32(ipt, 1); | |
| 2148 | 2148 | ipt += INPUT_PORT_PAIR_TOKENS; |
| 2149 | port->condition.tag = ( | |
| 2149 | port->condition.tag = (ipt++)->st | |
| 2150 | 2150 | break; |
| 2151 | 2151 | |
| 2152 | 2152 | /* analog adjuster definition */ |
| 2153 | 2153 | case INPUT_TOKEN_ADJUSTER: |
| 2154 | defval = INPUT_PORT_PAIR_IT | |
| 2154 | defval = INPUT_PORT_PAIR_UINT32(--ipt, 1); | |
| 2155 | 2155 | ipt += INPUT_PORT_PAIR_TOKENS; |
| 2156 | 2156 | |
| 2157 | 2157 | port = input_port_initialize(param, IPT_ADJUSTER, modify_tag, 0xff, defval | (defval << 8)); |
| r1711 | r1712 | |
| 2161 | 2161 | |
| 2162 | 2162 | /* configuration definition */ |
| 2163 | 2163 | case INPUT_TOKEN_CONFNAME: |
| 2164 | mask = INPUT_PORT_PAIR_ITEM(ipt, 0); | |
| 2165 | defval = INPUT_PORT_PAIR_ITEM(ipt, 1); | |
| 2164 | mask = INPUT_PORT_PAIR_UINT32(ipt, 0); | |
| 2165 | defval = INPUT_PORT_PAIR_UINT32(ipt, 1); | |
| 2166 | 2166 | ipt += INPUT_PORT_PAIR_TOKENS; |
| 2167 | 2167 | |
| 2168 | 2168 | port = input_port_initialize(param, IPT_CONFIG_NAME, modify_tag, mask, defval); |
| r1711 | r1712 | |
| 2171 | 2171 | break; |
| 2172 | 2172 | |
| 2173 | 2173 | case INPUT_TOKEN_CONFSETTING: |
| 2174 | defval = INPUT_PORT_PAIR_IT | |
| 2174 | defval = INPUT_PORT_PAIR_UINT32(--ipt, 1); | |
| 2175 | 2175 | ipt += INPUT_PORT_PAIR_TOKENS; |
| 2176 | 2176 | |
| 2177 | 2177 | port = input_port_initialize(param, IPT_CONFIG_SETTING, modify_tag, 0, defval); |
| r1711 | r1712 | |
| 2181 | 2181 | |
| 2182 | 2182 | #ifdef MESS |
| 2183 | 2183 | case INPUT_TOKEN_CHAR: |
| 2184 | val = INPUT_PORT_PAIR_IT | |
| 2184 | val = INPUT_PORT_PAIR_UINT32(--ipt, 1); | |
| 2185 | 2185 | ipt += INPUT_PORT_PAIR_TOKENS; |
| 2186 | 2186 | |
| 2187 | 2187 | { |
| r1711 | r1712 | |
| 2194 | 2194 | |
| 2195 | 2195 | /* category definition */ |
| 2196 | 2196 | case INPUT_TOKEN_CATEGORY: |
| 2197 | port->category = (UINT16) INPUT_PORT_PAIR_IT | |
| 2197 | port->category = (UINT16) INPUT_PORT_PAIR_UINT32(--ipt, 1); | |
| 2198 | 2198 | ipt += INPUT_PORT_PAIR_TOKENS; |
| 2199 | 2199 | break; |
| 2200 | 2200 | |
| 2201 | 2201 | case INPUT_TOKEN_CATEGORY_NAME: |
| 2202 | mask = INPUT_PORT_PAIR_ITEM(ipt, 0); | |
| 2203 | defval = INPUT_PORT_PAIR_ITEM(ipt, 1); | |
| 2202 | mask = INPUT_PORT_PAIR_UINT32(ipt, 0); | |
| 2203 | defval = INPUT_PORT_PAIR_UINT32(ipt, 1); | |
| 2204 | 2204 | ipt += INPUT_PORT_PAIR_TOKENS; |
| 2205 | 2205 | |
| 2206 | 2206 | port = input_port_initialize(param, IPT_CATEGORY_NAME, modify_tag, mask, defval); |
| r1711 | r1712 | |
| 2209 | 2209 | break; |
| 2210 | 2210 | |
| 2211 | 2211 | case INPUT_TOKEN_CATEGORY_SETTING: |
| 2212 | defval = INPUT_PORT_PAIR_IT | |
| 2212 | defval = INPUT_PORT_PAIR_UINT32(--ipt, 1); | |
| 2213 | 2213 | ipt += INPUT_PORT_PAIR_TOKENS; |
| 2214 | 2214 | |
| 2215 | 2215 | port = input_port_initialize(param, IPT_CATEGORY_SETTING, modify_tag, 0, defval); |
| r0 | r1712 | |
|---|---|---|
| 1 | /*************************************************************************** | |
| 2 | ||
| 3 | devintrf.c | |
| 4 | ||
| 5 | Device interface functions. | |
| 6 | ||
| 7 | Copyright Nicola Salmoria and the MAME Team. | |
| 8 | Visit http://mamedev.org for licensing and usage restrictions. | |
| 9 | ||
| 10 | ***************************************************************************/ | |
| 11 | ||
| 12 | #include "driver.h" | |
| 13 | ||
| 14 | ||
| 15 | ||
| 16 | /*************************************************************************** | |
| 17 | CONSTANTS | |
| 18 | ***************************************************************************/ | |
| 19 | ||
| 20 | #define TEMP_STRING_POOL_ENTRIES 16 | |
| 21 | #define MAX_STRING_LENGTH 256 | |
| 22 | ||
| 23 | ||
| 24 | ||
| 25 | /*************************************************************************** | |
| 26 | GLOBAL VARIABLES | |
| 27 | ***************************************************************************/ | |
| 28 | ||
| 29 | static char temp_string_pool[TEMP_STRING_POOL_ENTRIES][MAX_STRING_LENGTH]; | |
| 30 | static int temp_string_pool_index; | |
| 31 | ||
| 32 | ||
| 33 | ||
| 34 | /*************************************************************************** | |
| 35 | FUNCTION PROTOTYPES | |
| 36 | ***************************************************************************/ | |
| 37 | ||
| 38 | static void device_list_stop(running_machine *machine); | |
| 39 | static void device_list_reset(running_machine *machine); | |
| 40 | ||
| 41 | ||
| 42 | ||
| 43 | /*************************************************************************** | |
| 44 | INLINE FUNCTIONS | |
| 45 | ***************************************************************************/ | |
| 46 | ||
| 47 | /*------------------------------------------------- | |
| 48 | get_temp_string_buffer - return a pointer to | |
| 49 | a temporary string buffer | |
| 50 | -------------------------------------------------*/ | |
| 51 | ||
| 52 | INLINE char *get_temp_string_buffer(void) | |
| 53 | { | |
| 54 | char *string = &temp_string_pool[temp_string_pool_index++ % TEMP_STRING_POOL_ENTRIES][0]; | |
| 55 | string[0] = 0; | |
| 56 | return string; | |
| 57 | } | |
| 58 | ||
| 59 | ||
| 60 | /*------------------------------------------------- | |
| 61 | device_matches_type - does a device match | |
| 62 | the provided type, taking wildcards into | |
| 63 | effect? | |
| 64 | -------------------------------------------------*/ | |
| 65 | ||
| 66 | INLINE int device_matches_type(const device_config *config, device_type type) | |
| 67 | { | |
| 68 | return (type == DEVICE_TYPE_WILDCARD) ? TRUE : (config->type == type); | |
| 69 | } | |
| 70 | ||
| 71 | ||
| 72 | ||
| 73 | /*************************************************************************** | |
| 74 | DEVICE CONFIGURATION | |
| 75 | ***************************************************************************/ | |
| 76 | ||
| 77 | /*------------------------------------------------- | |
| 78 | device_list_add - add a new device to the | |
| 79 | end of a device list | |
| 80 | -------------------------------------------------*/ | |
| 81 | ||
| 82 | device_config *device_list_add(device_config **listheadptr, device_type type, const char *tag) | |
| 83 | { | |
| 84 | device_config **devptr; | |
| 85 | device_config *device; | |
| 86 | deviceinfo info; | |
| 87 | ||
| 88 | assert(listheadptr != NULL); | |
| 89 | assert(type != NULL); | |
| 90 | assert(tag != NULL); | |
| 91 | ||
| 92 | /* find the end of the list, and ensure no duplicates along the way */ | |
| 93 | for (devptr = listheadptr; *devptr != NULL; devptr = &(*devptr)->next) | |
| 94 | if (type == (*devptr)->type && strcmp(tag, (*devptr)->tag) == 0) | |
| 95 | fatalerror("Attempted to add duplicate device: type=%s tag=%s\n", devtype_name(type), tag); | |
| 96 | ||
| 97 | /* get the size of the inline config */ | |
| 98 | info.i = 0; | |
| 99 | (*type)(NULL, NULL, DEVINFO_INT_INLINE_CONFIG_BYTES, &info); | |
| 100 | ||
| 101 | /* allocate a new device */ | |
| 102 | device = malloc_or_die(sizeof(*device) + strlen(tag) + info.i); | |
| 103 | ||
| 104 | /* populate all fields */ | |
| 105 | device->next = NULL; | |
| 106 | device->type = type; | |
| 107 | device->static_config = NULL; | |
| 108 | device->inline_config = (info.i == 0) ? NULL : (device->tag + strlen(tag) + 1); | |
| 109 | device->token = NULL; | |
| 110 | strcpy(device->tag, tag); | |
| 111 | ||
| 112 | /* reset the inline_config to 0 */ | |
| 113 | if (info.i > 0) | |
| 114 | memset(device->inline_config, 0, info.i); | |
| 115 | ||
| 116 | /* fetch function pointers to the core functions */ | |
| 117 | info.set_info = NULL; | |
| 118 | (*type)(NULL, NULL, DEVINFO_FCT_SET_INFO, &info); | |
| 119 | device->set_info = info.set_info; | |
| 120 | ||
| 121 | info.start = NULL; | |
| 122 | (*type)(NULL, NULL, DEVINFO_FCT_START, &info); | |
| 123 | device->start = info.start; | |
| 124 | ||
| 125 | info.stop = NULL; | |
| 126 | (*type)(NULL, NULL, DEVINFO_FCT_STOP, &info); | |
| 127 | device->stop = info.stop; | |
| 128 | ||
| 129 | info.reset = NULL; | |
| 130 | (*type)(NULL, NULL, DEVINFO_FCT_RESET, &info); | |
| 131 | device->reset = info.reset; | |
| 132 | ||
| 133 | /* link us to the end and return */ | |
| 134 | *devptr = device; | |
| 135 | return device; | |
| 136 | } | |
| 137 | ||
| 138 | ||
| 139 | /*------------------------------------------------- | |
| 140 | device_list_remove - remove a device from a | |
| 141 | device list | |
| 142 | -------------------------------------------------*/ | |
| 143 | ||
| 144 | void device_list_remove(device_config **listheadptr, device_type type, const char *tag) | |
| 145 | { | |
| 146 | device_config **devptr; | |
| 147 | device_config *device; | |
| 148 | ||
| 149 | assert(listheadptr != NULL); | |
| 150 | assert(type != NULL); | |
| 151 | assert(tag != NULL); | |
| 152 | ||
| 153 | /* find the device in the list */ | |
| 154 | for (devptr = listheadptr; *devptr != NULL; devptr = &(*devptr)->next) | |
| 155 | if (type == (*devptr)->type && strcmp(tag, (*devptr)->tag) == 0) | |
| 156 | break; | |
| 157 | if (*devptr == NULL) | |
| 158 | fatalerror("Attempted to remove non-existant device: type=%s tag=%s\n", devtype_name(type), tag); | |
| 159 | ||
| 160 | /* remove the device from the list */ | |
| 161 | device = *devptr; | |
| 162 | *devptr = device->next; | |
| 163 | ||
| 164 | /* free the device object */ | |
| 165 | free(device); | |
| 166 | } | |
| 167 | ||
| 168 | ||
| 169 | /*------------------------------------------------- | |
| 170 | device_list_items - return the number of | |
| 171 | items of a given type; DEVICE_TYPE_WILDCARD | |
| 172 | is allowed | |
| 173 | -------------------------------------------------*/ | |
| 174 | ||
| 175 | int device_list_items(const device_config *listhead, device_type type) | |
| 176 | { | |
| 177 | const device_config *curdev; | |
| 178 | int count = 0; | |
| 179 | ||
| 180 | /* locate all devices */ | |
| 181 | for (curdev = listhead; curdev != NULL; curdev = curdev->next) | |
| 182 | count += device_matches_type(curdev, type); | |
| 183 | ||
| 184 | return count; | |
| 185 | } | |
| 186 | ||
| 187 | ||
| 188 | /*------------------------------------------------- | |
| 189 | device_list_first - return the first device | |
| 190 | in the list of a given type; | |
| 191 | DEVICE_TYPE_WILDCARD is allowed | |
| 192 | -------------------------------------------------*/ | |
| 193 | ||
| 194 | const device_config *device_list_first(const device_config *listhead, device_type type) | |
| 195 | { | |
| 196 | const device_config *curdev; | |
| 197 | ||
| 198 | /* scan forward starting with the list head */ | |
| 199 | for (curdev = listhead; curdev != NULL; curdev = curdev->next) | |
| 200 | if (device_matches_type(curdev, type)) | |
| 201 | return curdev; | |
| 202 | ||
| 203 | return NULL; | |
| 204 | } | |
| 205 | ||
| 206 | ||
| 207 | /*------------------------------------------------- | |
| 208 | device_list_next - return the next device | |
| 209 | in the list of a given type; | |
| 210 | DEVICE_TYPE_WILDCARD is allowed | |
| 211 | -------------------------------------------------*/ | |
| 212 | ||
| 213 | const device_config *device_list_next(const device_config *prevdevice, device_type type) | |
| 214 | { | |
| 215 | const device_config *curdev; | |
| 216 | ||
| 217 | assert(prevdevice != NULL); | |
| 218 | ||
| 219 | /* scan forward starting with the item after the previous one */ | |
| 220 | for (curdev = prevdevice->next; curdev != NULL; curdev = curdev->next) | |
| 221 | if (device_matches_type(curdev, type)) | |
| 222 | return curdev; | |
| 223 | ||
| 224 | return NULL; | |
| 225 | } | |
| 226 | ||
| 227 | ||
| 228 | /*------------------------------------------------- | |
| 229 | device_list_find_by_tag - retrieve a device | |
| 230 | configuration based on a type and tag | |
| 231 | -------------------------------------------------*/ | |
| 232 | ||
| 233 | const device_config *device_list_find_by_tag(const device_config *listhead, device_type type, const char *tag) | |
| 234 | { | |
| 235 | const device_config *curdev; | |
| 236 | ||
| 237 | assert(tag != NULL); | |
| 238 | ||
| 239 | /* find the device in the list */ | |
| 240 | for (curdev = listhead; curdev != NULL; curdev = curdev->next) | |
| 241 | if (device_matches_type(curdev, type) && strcmp(tag, curdev->tag) == 0) | |
| 242 | return curdev; | |
| 243 | ||
| 244 | /* fail */ | |
| 245 | return NULL; | |
| 246 | } | |
| 247 | ||
| 248 | ||
| 249 | ||
| 250 | /*************************************************************************** | |
| 251 | INDEX-BASED DEVICE ACCESS | |
| 252 | ***************************************************************************/ | |
| 253 | ||
| 254 | ||
| 255 | /*------------------------------------------------- | |
| 256 | device_list_index - return the index of a | |
| 257 | device based on its type and tag; | |
| 258 | DEVICE_TYPE_WILDCARD is allowed | |
| 259 | -------------------------------------------------*/ | |
| 260 | ||
| 261 | int device_list_index(const device_config *listhead, device_type type, const char *tag) | |
| 262 | { | |
| 263 | const device_config *curdev; | |
| 264 | int index = 0; | |
| 265 | ||
| 266 | /* locate all devices */ | |
| 267 | for (curdev = listhead; curdev != NULL; curdev = curdev->next) | |
| 268 | if (device_matches_type(curdev, type)) | |
| 269 | { | |
| 270 | if (strcmp(tag, curdev->tag) == 0) | |
| 271 | return index; | |
| 272 | index++; | |
| 273 | } | |
| 274 | ||
| 275 | return -1; | |
| 276 | } | |
| 277 | ||
| 278 | ||
| 279 | /*------------------------------------------------- | |
| 280 | device_list_find_by_index - retrieve a device | |
| 281 | configuration based on a type and index | |
| 282 | -------------------------------------------------*/ | |
| 283 | ||
| 284 | const device_config *device_list_find_by_index(const device_config *listhead, device_type type, int index) | |
| 285 | { | |
| 286 | const device_config *curdev; | |
| 287 | ||
| 288 | assert(listhead != NULL); | |
| 289 | ||
| 290 | /* find the device in the list */ | |
| 291 | for (curdev = listhead; curdev != NULL; curdev = curdev->next) | |
| 292 | if (device_matches_type(curdev, type) && index-- == 0) | |
| 293 | return curdev; | |
| 294 | ||
| 295 | /* fail */ | |
| 296 | return NULL; | |
| 297 | } | |
| 298 | ||
| 299 | ||
| 300 | ||
| 301 | /*************************************************************************** | |
| 302 | LIVE DEVICE MANAGEMENT | |
| 303 | ***************************************************************************/ | |
| 304 | ||
| 305 | /*------------------------------------------------- | |
| 306 | device_list_start - start the configured list | |
| 307 | of devices for a machine | |
| 308 | -------------------------------------------------*/ | |
| 309 | ||
| 310 | void device_list_start(running_machine *machine) | |
| 311 | { | |
| 312 | device_config *config; | |
| 313 | ||
| 314 | /* add an exit callback for cleanup */ | |
| 315 | add_reset_callback(machine, device_list_reset); | |
| 316 | add_exit_callback(machine, device_list_stop); | |
| 317 | ||
| 318 | /* iterate over devices and start them */ | |
| 319 | for (config = (device_config *)machine->config->devicelist; config != NULL; config = config->next) | |
| 320 | { | |
| 321 | assert(config->token == NULL); | |
| 322 | assert(config->type != NULL); | |
| 323 | assert(config->start != NULL); | |
| 324 | ||
| 325 | /* call the start function */ | |
| 326 | config->token = (*config->start)(machine, config->tag, config->static_config, config->inline_config); | |
| 327 | assert(config->token != NULL); | |
| 328 | ||
| 329 | /* fatal error if this fails */ | |
| 330 | if (config->token == NULL) | |
| 331 | fatalerror("Error starting device: type=%s tag=%s\n", devtype_name(config->type), config->tag); | |
| 332 | } | |
| 333 | } | |
| 334 | ||
| 335 | ||
| 336 | /*------------------------------------------------- | |
| 337 | device_list_stop - stop the configured list | |
| 338 | of devices for a machine | |
| 339 | -------------------------------------------------*/ | |
| 340 | ||
| 341 | static void device_list_stop(running_machine *machine) | |
| 342 | { | |
| 343 | device_config *config; | |
| 344 | ||
| 345 | /* iterate over devices and stop them */ | |
| 346 | for (config = (device_config *)machine->config->devicelist; config != NULL; config = config->next) | |
| 347 | { | |
| 348 | assert(config->token != NULL); | |
| 349 | assert(config->type != NULL); | |
| 350 | ||
| 351 | /* if we have a stop function, call it */ | |
| 352 | if (config->stop != NULL) | |
| 353 | (*config->stop)(machine, config->token); | |
| 354 | ||
| 355 | /* clear the token to indicate we are finished */ | |
| 356 | config->token = NULL; | |
| 357 | } | |
| 358 | } | |
| 359 | ||
| 360 | ||
| 361 | /*------------------------------------------------- | |
| 362 | device_list_reset - reset the configured list | |
| 363 | of devices for a machine | |
| 364 | -------------------------------------------------*/ | |
| 365 | ||
| 366 | static void device_list_reset(running_machine *machine) | |
| 367 | { | |
| 368 | const device_config *config; | |
| 369 | ||
| 370 | /* iterate over devices and stop them */ | |
| 371 | for (config = (device_config *)machine->config->devicelist; config != NULL; config = config->next) | |
| 372 | device_reset(machine, config); | |
| 373 | } | |
| 374 | ||
| 375 | ||
| 376 | /*------------------------------------------------- | |
| 377 | device_reset - reset a device based on an | |
| 378 | allocated device_config | |
| 379 | -------------------------------------------------*/ | |
| 380 | ||
| 381 | void device_reset(running_machine *machine, const device_config *config) | |
| 382 | { | |
| 383 | assert(config->token != NULL); | |
| 384 | assert(config->type != NULL); | |
| 385 | ||
| 386 | /* if we have a reset function, call it */ | |
| 387 | if (config->reset != NULL) | |
| 388 | (*config->reset)(machine, config->token); | |
| 389 | } | |
| 390 | ||
| 391 | ||
| 392 | void devtag_reset(running_machine *machine, device_type type, const char *tag) | |
| 393 | { | |
| 394 | const device_config *config = device_list_find_by_tag(machine->config->devicelist, type, tag); | |
| 395 | if (config == NULL) | |
| 396 | fatalerror("devtag_reset failed to find device: type=%s tag=%s\n", devtype_name(type), tag); | |
| 397 | device_reset(machine, config); | |
| 398 | } | |
| 399 | ||
| 400 | ||
| 401 | ||
| 402 | /*************************************************************************** | |
| 403 | DEVICE INFORMATION GETTERS | |
| 404 | ***************************************************************************/ | |
| 405 | ||
| 406 | /*------------------------------------------------- | |
| 407 | devtag_get_token - return the token associated | |
| 408 | with an allocated device | |
| 409 | -------------------------------------------------*/ | |
| 410 | ||
| 411 | void *devtag_get_token(running_machine *machine, device_type type, const char *tag) | |
| 412 | { | |
| 413 | const device_config *config = device_list_find_by_tag(machine->config->devicelist, type, tag); | |
| 414 | if (config == NULL) | |
| 415 | fatalerror("devtag_get_token failed to find device: type=%s tag=%s\n", devtype_name(type), tag); | |
| 416 | return config->token; | |
| 417 | } | |
| 418 | ||
| 419 | ||
| 420 | /*------------------------------------------------- | |
| 421 | devtag_get_static_config - return a pointer to | |
| 422 | the static configuration for a device based on | |
| 423 | type and tag | |
| 424 | -------------------------------------------------*/ | |
| 425 | ||
| 426 | const void *devtag_get_static_config(running_machine *machine, device_type type, const char *tag) | |
| 427 | { | |
| 428 | const device_config *config = device_list_find_by_tag(machine->config->devicelist, type, tag); | |
| 429 | if (config == NULL) | |
| 430 | fatalerror("devtag_get_static_config failed to find device: type=%s tag=%s\n", devtype_name(type), tag); | |
| 431 | return config->static_config; | |
| 432 | } | |
| 433 | ||
| 434 | ||
| 435 | /*------------------------------------------------- | |
| 436 | devtag_get_inline_config - return a pointer to | |
| 437 | the inline configuration for a device based on | |
| 438 | type and tag | |
| 439 | -------------------------------------------------*/ | |
| 440 | ||
| 441 | const void *devtag_get_inline_config(running_machine *machine, device_type type, const char *tag) | |
| 442 | { | |
| 443 | const device_config *config = device_list_find_by_tag(machine->config->devicelist, type, tag); | |
| 444 | if (config == NULL) | |
| 445 | fatalerror("devtag_get_inline_config failed to find device: type=%s tag=%s\n", devtype_name(type), tag); | |
| 446 | return config->inline_config; | |
| 447 | } | |
| 448 | ||
| 449 | ||
| 450 | /*------------------------------------------------- | |
| 451 | device_get_info_int - return an integer state | |
| 452 | value from an allocated device | |
| 453 | -------------------------------------------------*/ | |
| 454 | ||
| 455 | INT64 device_get_info_int(running_machine *machine, const device_config *config, UINT32 state) | |
| 456 | { | |
| 457 | deviceinfo info; | |
| 458 | ||
| 459 | assert(config->token != NULL); | |
| 460 | assert(config->type != NULL); | |
| 461 | assert(state >= DEVINFO_INT_FIRST && state <= DEVINFO_INT_LAST); | |
| 462 | ||
| 463 | /* retrieve the value */ | |
| 464 | info.i = 0; | |
| 465 | (*config->type)(machine, config->token, state, &info); | |
| 466 | return info.i; | |
| 467 | } | |
| 468 | ||
| 469 | ||
| 470 | INT64 devtag_get_info_int(running_machine *machine, device_type type, const char *tag, UINT32 state) | |
| 471 | { | |
| 472 | const device_config *config = device_list_find_by_tag(machine->config->devicelist, type, tag); | |
| 473 | if (config == NULL) | |
| 474 | fatalerror("devtag_get_info_int failed to find device: type=%s tag=%s\n", devtype_name(type), tag); | |
| 475 | return device_get_info_int(machine, config, state); | |
| 476 | } | |
| 477 | ||
| 478 | ||
| 479 | /*------------------------------------------------- | |
| 480 | device_get_info_ptr - return a pointer state | |
| 481 | value from an allocated device | |
| 482 | -------------------------------------------------*/ | |
| 483 | ||
| 484 | void *device_get_info_ptr(running_machine *machine, const device_config *config, UINT32 state) | |
| 485 | { | |
| 486 | deviceinfo info; | |
| 487 | ||
| 488 | assert(config->token != NULL); | |
| 489 | assert(config->type != NULL); | |
| 490 | assert(state >= DEVINFO_PTR_FIRST && state <= DEVINFO_PTR_LAST); | |
| 491 | ||
| 492 | /* retrieve the value */ | |
| 493 | info.p = NULL; | |
| 494 | (*config->type)(machine, config->token, state, &info); | |
| 495 | return info.p; | |
| 496 | } | |
| 497 | ||
| 498 | ||
| 499 | void *devtag_get_info_ptr(running_machine *machine, device_type type, const char *tag, UINT32 state) | |
| 500 | { | |
| 501 | const device_config *config = device_list_find_by_tag(machine->config->devicelist, type, tag); | |
| 502 | if (config == NULL) | |
| 503 | fatalerror("devtag_get_info_ptr failed to find device: type=%s tag=%s\n", devtype_name(type), tag); | |
| 504 | return device_get_info_ptr(machine, config, state); | |
| 505 | } | |
| 506 | ||
| 507 | ||
| 508 | /*------------------------------------------------- | |
| 509 | device_get_info_fct - return a function | |
| 510 | pointer state value from an allocated device | |
| 511 | -------------------------------------------------*/ | |
| 512 | ||
| 513 | genf *device_get_info_fct(running_machine *machine, const device_config *config, UINT32 state) | |
| 514 | { | |
| 515 | deviceinfo info; | |
| 516 | ||
| 517 | assert(config->token != NULL); | |
| 518 | assert(config->type != NULL); | |
| 519 | assert(state >= DEVINFO_FCT_FIRST && state <= DEVINFO_FCT_LAST); | |
| 520 | ||
| 521 | /* retrieve the value */ | |
| 522 | info.f = 0; | |
| 523 | (*config->type)(machine, config->token, state, &info); | |
| 524 | return info.f; | |
| 525 | } | |
| 526 | ||
| 527 | ||
| 528 | genf *devtag_get_info_fct(running_machine *machine, device_type type, const char *tag, UINT32 state) | |
| 529 | { | |
| 530 | const device_config *config = device_list_find_by_tag(machine->config->devicelist, type, tag); | |
| 531 | if (config == NULL) | |
| 532 | fatalerror("device_get_info_fct failed to find device: type=%s tag=%s\n", devtype_name(type), tag); | |
| 533 | return device_get_info_fct(machine, config, state); | |
| 534 | } | |
| 535 | ||
| 536 | ||
| 537 | /*------------------------------------------------- | |
| 538 | device_get_info_string - return a string value | |
| 539 | from an allocated device | |
| 540 | -------------------------------------------------*/ | |
| 541 | ||
| 542 | const char *device_get_info_string(running_machine *machine, const device_config *config, UINT32 state) | |
| 543 | { | |
| 544 | deviceinfo info; | |
| 545 | ||
| 546 | assert(config->token != NULL); | |
| 547 | assert(config->type != NULL); | |
| 548 | assert(state >= DEVINFO_STR_FIRST && state <= DEVINFO_STR_LAST); | |
| 549 | ||
| 550 | /* retrieve the value */ | |
| 551 | info.s = get_temp_string_buffer(); | |
| 552 | (*config->type)(machine, config->token, state, &info); | |
| 553 | return info.s; | |
| 554 | } | |
| 555 | ||
| 556 | ||
| 557 | const char *devtag_get_info_string(running_machine *machine, device_type type, const char *tag, UINT32 state) | |
| 558 | { | |
| 559 | const device_config *config = device_list_find_by_tag(machine->config->devicelist, type, tag); | |
| 560 | if (config == NULL) | |
| 561 | fatalerror("device_get_info_string failed to find device: type=%s tag=%s\n", devtype_name(type), tag); | |
| 562 | return device_get_info_string(machine, config, state); | |
| 563 | } | |
| 564 | ||
| 565 | ||
| 566 | /*------------------------------------------------- | |
| 567 | devtype_get_info_string - return a string value | |
| 568 | from a device type (does not need to be | |
| 569 | allocated) | |
| 570 | -------------------------------------------------*/ | |
| 571 | ||
| 572 | const char *devtype_get_info_string(device_type type, UINT32 state) | |
| 573 | { | |
| 574 | deviceinfo info; | |
| 575 | ||
| 576 | assert(type != NULL); | |
| 577 | assert(state >= DEVINFO_STR_FIRST && state <= DEVINFO_STR_LAST); | |
| 578 | ||
| 579 | /* retrieve the value */ | |
| 580 | info.s = get_temp_string_buffer(); | |
| 581 | (*type)(NULL, NULL, state, &info); | |
| 582 | return info.s; | |
| 583 | } | |
| 584 | ||
| 585 | ||
| 586 | ||
| 587 | /*************************************************************************** | |
| 588 | DEVICE INFORMATION SETTERS | |
| 589 | ***************************************************************************/ | |
| 590 | ||
| 591 | /*------------------------------------------------- | |
| 592 | device_set_info_int - set an integer state | |
| 593 | value for an allocated device | |
| 594 | -------------------------------------------------*/ | |
| 595 | ||
| 596 | void device_set_info_int(running_machine *machine, const device_config *config, UINT32 state, INT64 data) | |
| 597 | { | |
| 598 | deviceinfo info; | |
| 599 | ||
| 600 | assert(config->token != NULL); | |
| 601 | assert(config->type != NULL); | |
| 602 | assert(state >= DEVINFO_INT_FIRST && state <= DEVINFO_INT_LAST); | |
| 603 | ||
| 604 | /* set the value */ | |
| 605 | info.i = data; | |
| 606 | (*config->set_info)(machine, config->token, state, &info); | |
| 607 | } | |
| 608 | ||
| 609 | ||
| 610 | void devtag_set_info_int(running_machine *machine, device_type type, const char *tag, UINT32 state, INT64 data) | |
| 611 | { | |
| 612 | const device_config *config = device_list_find_by_tag(machine->config->devicelist, type, tag); | |
| 613 | if (config == NULL) | |
| 614 | fatalerror("devtag_set_info_int failed to find device: type=%s tag=%s\n", devtype_name(type), tag); | |
| 615 | device_set_info_int(machine, config, state, data); | |
| 616 | } | |
| 617 | ||
| 618 | ||
| 619 | /*------------------------------------------------- | |
| 620 | device_set_info_ptr - set a pointer state | |
| 621 | value for an allocated device | |
| 622 | -------------------------------------------------*/ | |
| 623 | ||
| 624 | void device_set_info_ptr(running_machine *machine, const device_config *config, UINT32 state, void *data) | |
| 625 | { | |
| 626 | deviceinfo info; | |
| 627 | ||
| 628 | assert(config->token != NULL); | |
| 629 | assert(config->type != NULL); | |
| 630 | assert(state >= DEVINFO_PTR_FIRST && state <= DEVINFO_PTR_LAST); | |
| 631 | ||
| 632 | /* set the value */ | |
| 633 | info.p = data; | |
| 634 | (*config->set_info)(machine, config->token, state, &info); | |
| 635 | } | |
| 636 | ||
| 637 | ||
| 638 | void devtag_set_info_ptr(running_machine *machine, device_type type, const char *tag, UINT32 state, void *data) | |
| 639 | { | |
| 640 | const device_config *config = device_list_find_by_tag(machine->config->devicelist, type, tag); | |
| 641 | if (config == NULL) | |
| 642 | fatalerror("devtag_set_info_ptr failed to find device: type=%s tag=%s\n", devtype_name(type), tag); | |
| 643 | device_set_info_ptr(machine, config, state, data); | |
| 644 | } | |
| 645 | ||
| 646 | ||
| 647 | /*------------------------------------------------- | |
| 648 | device_set_info_fct - set a function pointer | |
| 649 | state value for an allocated device | |
| 650 | -------------------------------------------------*/ | |
| 651 | ||
| 652 | void device_set_info_fct(running_machine *machine, const device_config *config, UINT32 state, genf *data) | |
| 653 | { | |
| 654 | deviceinfo info; | |
| 655 | ||
| 656 | assert(config->token != NULL); | |
| 657 | assert(config->type != NULL); | |
| 658 | assert(state >= DEVINFO_FCT_FIRST && state <= DEVINFO_FCT_LAST); | |
| 659 | ||
| 660 | /* set the value */ | |
| 661 | info.f = data; | |
| 662 | (*config->set_info)(machine, config->token, state, &info); | |
| 663 | } | |
| 664 | ||
| 665 | ||
| 666 | void devtag_set_info_fct(running_machine *machine, device_type type, const char *tag, UINT32 state, genf *data) | |
| 667 | { | |
| 668 | const device_config *config = device_list_find_by_tag(machine->config->devicelist, type, tag); | |
| 669 | if (config == NULL) | |
| 670 | fatalerror("devtag_set_info_fct failed to find device: type=%s tag=%s\n", devtype_name(type), tag); | |
| 671 | device_set_info_fct(machine, config, state, data); | |
| 672 | } |
| r1711 | r1712 | |
|---|---|---|
| 630 | 630 | } |
| 631 | 631 | } |
| 632 | 632 | |
| 633 | void acia6850_set_rx_clock(int which, int clock) | |
| 634 | { | |
| 635 | acia_6850 *acia_p = &acia[which]; | |
| 636 | acia_p->rx_clock = clock; | |
| 637 | } | |
| 638 | ||
| 639 | void acia6850_set_tx_clock(int which, int clock) | |
| 640 | { | |
| 641 | acia_6850 *acia_p = &acia[which]; | |
| 642 | acia_p->tx_clock = clock; | |
| 643 | } | |
| 644 | ||
| 645 | ||
| 633 | 646 | WRITE8_HANDLER( acia6850_0_ctrl_w ) { acia6850_ctrl_w(0, data); } |
| 634 | 647 | WRITE8_HANDLER( acia6850_1_ctrl_w ) { acia6850_ctrl_w(1, data); } |
| 635 | 648 | WRITE8_HANDLER( acia6850_2_ctrl_w ) { acia6850_ctrl_w(2, data); } |
| r1711 | r1712 | |
|---|---|---|
| 28 | 28 | |
| 29 | 29 | void acia6850_config(int which, const struct acia6850_interface *intf); |
| 30 | 30 | |
| 31 | void acia6850_set_rx_clock(int which, int clock); | |
| 32 | void acia6850_set_tx_clock(int which, int clock); | |
| 33 | ||
| 31 | 34 | WRITE8_HANDLER( acia6850_0_ctrl_w ); |
| 32 | 35 | WRITE8_HANDLER( acia6850_1_ctrl_w ); |
| 33 | 36 | WRITE8_HANDLER( acia6850_2_ctrl_w ); |
| r1711 | r1712 | |
|---|---|---|
| 66 | 66 | UINT8 mode[3]; |
| 67 | 67 | UINT8 fired[3]; |
| 68 | 68 | UINT8 t3_divisor; |
| 69 | UINT8 t3_scaler; | |
| 69 | 70 | UINT8 IRQ; |
| 70 | 71 | UINT8 status_reg; |
| 71 | 72 | UINT8 status_read_since_int; |
| r1711 | r1712 | |
| 135 | 136 | // // |
| 136 | 137 | /////////////////////////////////////////////////////////////////////////// |
| 137 | 138 | |
| 138 | static void subtract_from_counter(int c | |
| 139 | static void subtract_from_counter(int which | |
| 139 | 140 | { |
| 140 | 141 | int clock; |
| 142 | attotime duration; | |
| 143 | ||
| 141 | 144 | ptm6840 *currptr = ptm + which; |
| 142 | 145 | |
| 143 | 146 | /* determine the clock frequency for this timer */ |
| r1711 | r1712 | |
| 171 | 174 | |
| 172 | 175 | /* store the result */ |
| 173 | 176 | currptr->counter[counter] = (msb << 8) | lsb; |
| 174 | timer_adjust_oneshot(currptr->timer[counter], attotime_mul(ATTOTIME_IN_HZ(clock), currptr->counter[counter]), which); | |
| 175 | 177 | } |
| 176 | 178 | |
| 177 | 179 | /* word mode */ |
| 178 | 180 | else |
| 179 | 181 | { |
| 180 | attotime duration; | |
| 181 | 182 | int word = currptr->counter[counter]; |
| 182 | 183 | |
| 183 | 184 | /* count the clocks */ |
| r1711 | r1712 | |
| 195 | 196 | |
| 196 | 197 | /* store the result */ |
| 197 | 198 | currptr->counter[counter] = word; |
| 199 | } | |
| 200 | ||
| 201 | if (currptr->enabled[counter]) | |
| 202 | { | |
| 198 | 203 | duration = attotime_mul(ATTOTIME_IN_HZ(clock), currptr->counter[counter]); |
| 199 | 204 | if (counter == 2) duration = attotime_mul(duration, currptr->t3_divisor); |
| 200 | 205 | timer_adjust_oneshot(currptr->timer[counter], duration, which); |
| 201 | 206 | } |
| 202 | 207 | } |
| 203 | 208 | |
| 209 | static void ptm_tick(int which, int counter, int count) | |
| 210 | { | |
| 211 | ptm6840 *currptr = ptm + which; | |
| 212 | ||
| 213 | if (counter == 2) | |
| 214 | { | |
| 215 | currptr->t3_scaler += count; | |
| 216 | if ( currptr->t3_scaler > currptr->t3_divisor-1) | |
| 217 | { | |
| 218 | subtract_from_counter(which,counter,1); | |
| 219 | currptr->t3_scaler = 0; | |
| 220 | } | |
| 221 | } | |
| 222 | else | |
| 223 | { | |
| 224 | subtract_from_counter(which,counter,count); | |
| 225 | } | |
| 226 | } | |
| 227 | ||
| 204 | 228 | /////////////////////////////////////////////////////////////////////////// |
| 205 | 229 | // // |
| 206 | 230 | // Update Internal Interrupts // |
| r1711 | r1712 | |
| 236 | 260 | // // |
| 237 | 261 | /////////////////////////////////////////////////////////////////////////// |
| 238 | 262 | |
| 239 | static UINT16 compute_counter(int c | |
| 263 | static UINT16 compute_counter(int which | |
| 240 | 264 | { |
| 241 | 265 | ptm6840 *currptr = ptm + which; |
| 242 | 266 | |
| r1711 | r1712 | |
| 245 | 269 | |
| 246 | 270 | /* if there's no timer, return the count */ |
| 247 | 271 | if (!currptr->enabled[counter]) |
| 272 | { | |
| 273 | PLOG(("MC6840 #%d: read counter(%d): %d\n", which, counter, currptr->counter[counter])); | |
| 248 | 274 | return currptr->counter[counter]; |
| 275 | } | |
| 249 | 276 | |
| 250 | 277 | /* determine the clock frequency for this timer */ |
| 251 | 278 | if (currptr->control_reg[counter] & 0x02) |
| r1711 | r1712 | |
| 279 | 306 | // // |
| 280 | 307 | /////////////////////////////////////////////////////////////////////////// |
| 281 | 308 | |
| 282 | static void reload_count(int i | |
| 309 | static void reload_count(int which, int | |
| 283 | 310 | { |
| 284 | 311 | int clock; |
| 285 | 312 | int count; |
| r1711 | r1712 | |
| 321 | 348 | |
| 322 | 349 | duration = attotime_mul(ATTOTIME_IN_HZ(clock), count); |
| 323 | 350 | if (idx == 2) duration = attotime_mul(duration, currptr->t3_divisor); |
| 324 | timer_adjust_oneshot(currptr->timer[idx], duration, which); | |
| 325 | 351 | PLOG(("MC6840 #%d: reload_count(%d): output = %lf\n", which, idx, attotime_to_double(duration))); |
| 326 | 352 | |
| 327 | 353 | if (!currptr->control_reg[idx] & 0x02) |
| r1711 | r1712 | |
| 335 | 361 | else |
| 336 | 362 | { |
| 337 | 363 | currptr->enabled[idx] = 1; |
| 364 | timer_adjust_oneshot(currptr->timer[idx], duration, which); | |
| 338 | 365 | timer_enable(currptr->timer[idx],TRUE); |
| 339 | 366 | } |
| 340 | 367 | } |
| r1711 | r1712 | |
| 380 | 407 | state_save_register_item("6840ptm", which, currptr->status_read_since_int); |
| 381 | 408 | state_save_register_item("6840ptm", which, currptr->status_reg); |
| 382 | 409 | state_save_register_item("6840ptm", which, currptr->t3_divisor); |
| 410 | state_save_register_item("6840ptm", which, currptr->t3_scaler); | |
| 383 | 411 | state_save_register_item("6840ptm", which, currptr->internal_clock); |
| 384 | 412 | state_save_register_item("6840ptm", which, currptr->IRQ); |
| 385 | 413 | |
| r1711 | r1712 | |
| 395 | 423 | state_save_register_item_array("6840ptm", which, currptr->latch); |
| 396 | 424 | |
| 397 | 425 | ptm6840_reset(which); |
| 398 | ||
| 399 | 426 | } |
| 400 | 427 | |
| 401 | 428 | /////////////////////////////////////////////////////////////////////////// |
| r1711 | r1712 | |
| 454 | 481 | case PTM_6840_MSBBUF3://6 |
| 455 | 482 | { |
| 456 | 483 | int idx = (offset - 2)/2; |
| 457 | int result = compute_counter( | |
| 484 | int result = compute_counter( | |
| 458 | 485 | |
| 459 | 486 | /* clear the interrupt if the status has been read */ |
| 460 | 487 | if (currptr->status_read_since_int & (1 << idx)) |
| r1711 | r1712 | |
| 544 | 571 | { |
| 545 | 572 | for (i = 0; i < 3; i++) |
| 546 | 573 | { |
| 547 | reload_count( | |
| 574 | reload_count( | |
| 548 | 575 | } |
| 549 | 576 | } |
| 550 | 577 | |
| r1711 | r1712 | |
| 553 | 580 | |
| 554 | 581 | /* changing the clock source? (e.g. Zwackery) */ |
| 555 | 582 | if (diffs & 0x02) |
| 556 | reload_count( | |
| 583 | reload_count( | |
| 557 | 584 | } |
| 558 | 585 | break; |
| 559 | 586 | } |
| r1711 | r1712 | |
| 582 | 609 | /* reload the count if in an appropriate mode */ |
| 583 | 610 | if (!(currptr->control_reg[idx] & 0x10)) |
| 584 | 611 | { |
| 585 | reload_count( | |
| 612 | reload_count( | |
| 586 | 613 | } |
| 587 | 614 | PLOG(("%06X:MC6840 #%d: Counter %d latch = %04X\n", activecpu_get_previouspc(), which, idx, currptr->latch[idx])); |
| 588 | 615 | break; |
| r1711 | r1712 | |
| 613 | 640 | { // output enabled |
| 614 | 641 | if ( p->intf ) |
| 615 | 642 | { |
| 616 | if ((p->mode[idx] == 0)|(p->mode[idx] == 2)) | |
| 643 | if ((p->mode[idx] == 0)||(p->mode[idx] == 2)) | |
| 617 | 644 | { |
| 618 | 645 | p->output[idx] = p->output[idx]?0:1; |
| 619 | 646 | PLOG(("**ptm6840 %d t%d output %d **\n", which, idx+1, p->output[idx])); |
| 620 | 647 | if ( p->intf->out_func[idx] ) p->intf->out_func[idx](0, p->output[idx]); |
| 621 | 648 | } |
| 622 | if ((p->mode[idx] == 4)|(p->mode[idx] == 6)) | |
| 649 | if ((p->mode[idx] == 4)||(p->mode[idx] == 6)) | |
| 623 | 650 | { |
| 624 | 651 | if (!p->fired[idx]) |
| 625 | 652 | { |
| r1711 | r1712 | |
| 632 | 659 | } |
| 633 | 660 | } |
| 634 | 661 | p->enabled[idx]= 0; |
| 635 | reload_count( | |
| 662 | reload_count( | |
| 636 | 663 | } |
| 637 | 664 | |
| 638 | 665 | static TIMER_CALLBACK( ptm6840_t1_timeout ) { ptm6840_timeout(param, 0); } |
| r1711 | r1712 | |
| 649 | 676 | { |
| 650 | 677 | ptm6840 *p = ptm + which; |
| 651 | 678 | |
| 652 | if ((p->mode[idx] == 0)|(p->mode[idx] == 2)|(p->mode[0] == 4)|(p->mode[idx] == 6)) | |
| 679 | if ((p->mode[idx] == 0)||(p->mode[idx] == 2)||(p->mode[0] == 4)||(p->mode[idx] == 6)) | |
| 653 | 680 | { |
| 654 | 681 | if (state == 0 && p->gate[idx]) |
| 655 | reload_count( | |
| 682 | reload_count( | |
| 656 | 683 | } |
| 657 | 684 | p->gate[idx] = state; |
| 658 | 685 | } |
| r1711 | r1712 | |
| 675 | 702 | |
| 676 | 703 | if (!(p->control_reg[idx] & 0x02)) |
| 677 | 704 | { |
| 678 | if (state) | |
| 705 | if (state) p | |
| 679 | 706 | } |
| 680 | 707 | } |
| 681 | 708 | |
| 709 | /////////////////////////////////////////////////////////////////////////// | |
| 710 | // // | |
| 711 | // ptm6840_get_count: get count value // | |
| 712 | // // | |
| 713 | /////////////////////////////////////////////////////////////////////////// | |
| 714 | ||
| 715 | UINT16 ptm6840_get_count(int which,int counter) | |
| 716 | { | |
| 717 | return compute_counter(which, counter); | |
| 718 | } | |
| 719 | ||
| 720 | /////////////////////////////////////////////////////////////////////////// | |
| 721 | // // | |
| 722 | // ptm6840_set_ext_clock: set external clock frequency // | |
| 723 | // // | |
| 724 | /////////////////////////////////////////////////////////////////////////// | |
| 725 | ||
| 726 | void ptm6840_set_ext_clock(int which, int counter, int clock) | |
| 727 | { | |
| 728 | ptm6840 *currptr = ptm + which; | |
| 729 | currptr->external_clock[counter] = clock; | |
| 730 | ||
| 731 | if (!currptr->control_reg[counter] & 0x02) | |
| 732 | { | |
| 733 | if (!currptr->intf->external_clock[counter]) | |
| 734 | { | |
| 735 | currptr->enabled[counter] = 0; | |
| 736 | timer_enable(currptr->timer[counter],FALSE); | |
| 737 | } | |
| 738 | } | |
| 739 | else | |
| 740 | { | |
| 741 | int count; | |
| 742 | attotime duration; | |
| 743 | ||
| 744 | /* determine the number of clock periods before we expire */ | |
| 745 | count = currptr->counter[counter]; | |
| 746 | if (currptr->control_reg[counter] & 0x04) | |
| 747 | count = ((count >> 8) + 1) * ((count & 0xff) + 1); | |
| 748 | else | |
| 749 | count = count + 1; | |
| 750 | ||
| 751 | duration = attotime_mul(ATTOTIME_IN_HZ(clock), count); | |
| 752 | if (counter == 2) duration = attotime_mul(duration, currptr->t3_divisor); | |
| 753 | currptr->enabled[counter] = 1; | |
| 754 | timer_adjust_oneshot(currptr->timer[counter], duration, which); | |
| 755 | timer_enable(currptr->timer[counter],TRUE); | |
| 756 | } | |
| 757 | } | |
| 758 | ||
| 759 | /////////////////////////////////////////////////////////////////////////// | |
| 760 | // // | |
| 761 | // ptm6840_get_ext_clock: get external clock frequency // | |
| 762 | // // | |
| 763 | /////////////////////////////////////////////////////////////////////////// | |
| 764 | ||
| 765 | int ptm6840_get_ext_clock(int which, int counter) | |
| 766 | { | |
| 767 | ptm6840 *currptr = ptm + which; | |
| 768 | return currptr->external_clock[counter]; | |
| 769 | } | |
| 770 | ||
| 682 | 771 | void ptm6840_set_c1(int which, int state) { ptm6840_set_clock(which, state, 0); } |
| 683 | 772 | void ptm6840_set_c2(int which, int state) { ptm6840_set_clock(which, state, 1); } |
| 684 | 773 | void ptm6840_set_c3(int which, int state) { ptm6840_set_clock(which, state, 2); } |
| r1711 | r1712 | |
|---|---|---|
| 5 | 5 | This function is a simple emulation of up to 4 MC6840 PTM |
| 6 | 6 | (Programmable Timer Module) |
| 7 | 7 | |
| 8 | based on ( 6522 and 6821 PTM ) | |
| 9 | ||
| 10 | 8 | **********************************************************************/ |
| 11 | 9 | |
| 12 | 10 | #ifndef PTM_6840 |
| r1711 | r1712 | |
| 31 | 29 | void ptm6840_write( int which, int offset, int data); |
| 32 | 30 | |
| 33 | 31 | int ptm6840_get_status(int which, int clock); // get whether timer is enabled |
| 34 | int ptm6840_get_irq(int which); // get IRQ state | |
| 35 | void ptm6840_set_g1(int which, int state); // set gate1 state | |
| 36 | void ptm6840_set_c1(int which, int state); // set clock1 state | |
| 32 | int ptm6840_get_irq(int which); // get IRQ state | |
| 33 | UINT16 ptm6840_get_count(int which,int counter);// get counter value | |
| 34 | void ptm6840_set_ext_clock(int which, int counter, int clock); // set clock frequency | |
| 35 | int ptm6840_get_ext_clock(int which, int counter);// get clock frequency | |
| 37 | 36 | |
| 38 | void ptm6840_set_g2(int which, int state); // set gate2 state | |
| 39 | void ptm6840_set_c2(int which, int state); // set clock2 state | |
| 37 | void ptm6840_set_g1(int which, int state); // set gate1 state | |
| 38 | void ptm6840_set_c1(int which, int state); // set clock1 state | |
| 40 | 39 | |
| 41 | void ptm6840_set_g3(int which, int state); // set gate3 state | |
| 42 | void ptm6840_set_c3(int which, int state); // set clock3 state | |
| 40 | void ptm6840_set_g2(int which, int state); // set gate2 state | |
| 41 | void ptm6840_set_c2(int which, int state); // set clock2 state | |
| 43 | 42 | |
| 43 | void ptm6840_set_g3(int which, int state); // set gate3 state | |
| 44 | void ptm6840_set_c3(int which, int state); // set clock3 state | |
| 45 | ||
| 44 | 46 | /*-------------------------------------------------------------------------*/ |
| 45 | 47 | |
| 46 | 48 | READ8_HANDLER( ptm6840_0_r ); |
| r1711 | r1712 | |
|---|---|---|
| 96 | 96 | config_register("counters", counters_load, counters_save); |
| 97 | 97 | |
| 98 | 98 | /* for memory cards, request save state and an exit callback */ |
| 99 | if (machine-> | |
| 99 | if (machine->config->memcard_handler != NULL) | |
| 100 | 100 | { |
| 101 | 101 | state_save_register_global(memcard_inserted); |
| 102 | 102 | add_exit_callback(machine, memcard_eject); |
| r1711 | r1712 | |
| 286 | 286 | |
| 287 | 287 | void nvram_load(void) |
| 288 | 288 | { |
| 289 | if (Machine-> | |
| 289 | if (Machine->config->nvram_handler != NULL) | |
| 290 | 290 | { |
| 291 | 291 | mame_file *nvram_file = nvram_fopen(Machine, OPEN_FLAG_READ); |
| 292 | (*Machine-> | |
| 292 | (*Machine->config->nvram_handler)(Machine, nvram_file, 0); | |
| 293 | 293 | if (nvram_file != NULL) |
| 294 | 294 | mame_fclose(nvram_file); |
| 295 | 295 | } |
| r1711 | r1712 | |
| 302 | 302 | |
| 303 | 303 | void nvram_save(void) |
| 304 | 304 | { |
| 305 | if (Machine-> | |
| 305 | if (Machine->config->nvram_handler != NULL) | |
| 306 | 306 | { |
| 307 | 307 | mame_file *nvram_file = nvram_fopen(Machine, OPEN_FLAG_WRITE | OPEN_FLAG_CREATE | OPEN_FLAG_CREATE_PATHS); |
| 308 | 308 | if (nvram_file != NULL) |
| 309 | 309 | { |
| 310 | (*Machine-> | |
| 310 | (*Machine->config->nvram_handler)(Machine, nvram_file, 1); | |
| 311 | 311 | mame_fclose(nvram_file); |
| 312 | 312 | } |
| 313 | 313 | } |
| r1711 | r1712 | |
| 419 | 419 | return 1; |
| 420 | 420 | |
| 421 | 421 | /* initialize and then save the card */ |
| 422 | if (Machine->drv->memcard_handler) | |
| 423 | (*Machine->drv->memcard_handler)(Machine, file, MEMCARD_CREATE); | |
| 422 | if (Machine->config->memcard_handler) | |
| 423 | (*Machine->config->memcard_handler)(Machine, file, MEMCARD_CREATE); | |
| 424 | 424 | |
| 425 | 425 | /* close the file */ |
| 426 | 426 | mame_fclose(file); |
| r1711 | r1712 | |
| 456 | 456 | return 1; |
| 457 | 457 | |
| 458 | 458 | /* initialize and then load the card */ |
| 459 | if (Machine->drv->memcard_handler) | |
| 460 | (*Machine->drv->memcard_handler)(Machine, file, MEMCARD_INSERT); | |
| 459 | if (Machine->config->memcard_handler) | |
| 460 | (*Machine->config->memcard_handler)(Machine, file, MEMCARD_INSERT); | |
| 461 | 461 | |
| 462 | 462 | /* close the file */ |
| 463 | 463 | mame_fclose(file); |
| r1711 | r1712 | |
| 496 | 496 | } |
| 497 | 497 | |
| 498 | 498 | /* initialize and then load the card */ |
| 499 | if (machine->drv->memcard_handler) | |
| 500 | (*machine->drv->memcard_handler)(machine, file, MEMCARD_EJECT); | |
| 499 | if (machine->config->memcard_handler) | |
| 500 | (*machine->config->memcard_handler)(machine, file, MEMCARD_EJECT); | |
| 501 | 501 | |
| 502 | 502 | /* close the file */ |
| 503 | 503 | mame_fclose(file); |
| r1711 | r1712 | |
|---|---|---|
| 522 | 522 | at_8042_receive(PS2_MOUSE_ON ? 0x00 : 0xff); |
| 523 | 523 | break; |
| 524 | 524 | case 0xaa: /* selftest */ |
| 525 | if (Machine-> | |
| 525 | if (Machine->config->cpu[0].type == CPU_I486) | |
| 526 | 526 | timer_set(ATTOTIME_IN_MSEC(10), NULL, 0x55, at_8042_receive_timer); /* HACK */ |
| 527 | 527 | else |
| 528 | 528 | at_8042_receive(0x55); |
| r1711 | r1712 | |
|---|---|---|
| 174 | 174 | { |
| 175 | 175 | /* game-related information */ |
| 176 | 176 | const game_driver * gamedrv; /* points to the definition of the game machine */ |
| 177 | const machine_config * | |
| 177 | const machine_config * config; /* points to the constructed machine_config */ | |
| 178 | 178 | const char * basename; /* basename used for game-related paths */ |
| 179 | 179 | |
| 180 | 180 | /* video-related information */ |
| r1711 | r1712 | |
| 183 | 183 | palette_t * palette; /* global palette object */ |
| 184 | 184 | |
| 185 | 185 | /* palette-related information */ |
| 186 | /* fix me - some games try to modify remapped_colortable directly */ | |
| 187 | /* search for "palette hack" to find instances */ | |
| 188 | 186 | const pen_t * pens; /* remapped palette pen numbers */ |
| 189 | 187 | struct _colortable_t * colortable; /* global colortable for remapping */ |
| 190 | const UINT16 * game_colortable; /* lookup table used to map gfx pen numbers to color numbers */ | |
| 191 | const pen_t * remapped_colortable;/* the above, already remapped through machine->pens */ | |
| 192 | 188 | pen_t * shadow_table; /* table for looking up a shadowed pen */ |
| 193 | 189 | |
| 194 | 190 | /* audio-related information */ |
| r1711 | r1712 | |
|---|---|---|
| 34 | 34 | #define IP_ACTIVE_HIGH 0x00000000 |
| 35 | 35 | #define IP_ACTIVE_LOW 0xffffffff |
| 36 | 36 | |
| 37 | #define INPUT_PORT_PAIR_ENTRIES (sizeof(FPTR) / sizeof(UINT32)) | |
| 38 | #define INPUT_PORT_PAIR_TOKENS (2 * sizeof(UINT32) / sizeof(FPTR)) | |
| 37 | 39 | |
| 40 | ||
| 38 | 41 | /* macro for a custom callback functions (PORT_CUSTOM) */ |
| 39 | 42 | #define CUSTOM_INPUT(name) UINT32 name(void *param) |
| 40 | 43 | |
| r1711 | r1712 | |
| 492 | 495 | typedef struct _input_port_init_params input_port_init_params; |
| 493 | 496 | |
| 494 | 497 | |
| 498 | /* a custom input port callback function */ | |
| 499 | typedef UINT32 (*input_port_custom_func)(void *param); | |
| 500 | typedef void (*input_port_changed_func)(void *param, UINT32 oldval, UINT32 newval); | |
| 501 | ||
| 502 | ||
| 495 | 503 | /* this type is used to encode input port definitions */ |
| 496 | typedef struct _input_port_token *input_port_token; | |
| 504 | typedef union _input_port_token input_port_token; | |
| 505 | union _input_port_token | |
| 506 | { | |
| 507 | FPTR fptr; /* default value used for C89 implementations */ | |
| 508 | UINT32 i[INPUT_PORT_PAIR_ENTRIES]; /* one or two UINT32s */ | |
| 509 | float f[INPUT_PORT_PAIR_ENTRIES]; /* one or two floats */ | |
| 510 | void * ptr; /* a generic pointer value */ | |
| 511 | const char *stringptr; /* pointer to a string value */ | |
| 512 | const input_port_token *tokenptr; /* pointer to a another token list */ | |
| 513 | input_port_custom_func customptr; /* pointer to a custom input function */ | |
| 514 | const UINT32 *remapptr; /* pointer to a remap table */ | |
| 515 | }; | |
| 497 | 516 | |
| 498 | 517 | |
| 499 | 518 | /* In mamecore.h: typedef struct _input_port_default_entry input_port_default_entry; */ |
| r1711 | r1712 | |
| 544 | 563 | UINT16 category; /* (MESS-specific) category */ |
| 545 | 564 | const char *name; /* user-friendly name to display */ |
| 546 | 565 | input_seq seq; /* input sequence affecting the input bits */ |
| 547 | | |
| 566 | input_port_custom_func | |
| 548 | 567 | void * custom_param; /* parameter for callback routine */ |
| 549 | 568 | |
| 550 | 569 | /* valid if type is between __ipt_analog_start and __ipt_analog_end */ |
| r1711 | r1712 | |
| 631 | 650 | #define IP_NAME_DEFAULT NULL |
| 632 | 651 | |
| 633 | 652 | /* single pointers and UINT32s are just encoded straight */ |
| 634 | #define INPUT_PORT_PTR(x) ((input_port_token)(x)) | |
| 635 | #define INPUT_PORT_UINT32(x) ((input_port_token)(FPTR)(UINT32)(FPTR)(x)) | |
| 653 | #define INPUT_PORT_PTR(type,x) { (FPTR)(x) } | |
| 654 | #define INPUT_PORT_PAIR_UINT32(vptr,x) (vptr)->i[x] | |
| 636 | 655 | |
| 656 | /* on 64-bit platforms, pairs of UINT32s are encoded into a single 64-bit pointer */ | |
| 637 | 657 | #ifdef PTR64 |
| 638 | /* on 64-bit platforms, pairs of UINT32s are encoded into a single 64-bit pointer */ | |
| 639 | #define INPUT_PORT_UINT32_PAIR(x,y) ((input_port_token)((UINT32)(x) | ((UINT64)(y) << 32))) | |
| 640 | #define INPUT_PORT_PAIR_ITEM(vptr,x) ((UINT32)((FPTR)*(vptr) >> (32 * (x)))) | |
| 641 | #define INPUT_PORT_PAIR_TOKENS 1 | |
| 658 | #ifdef LSB_FIRST | |
| 659 | #define INPUT_PORT_UINT32_PAIR(x,y) { (FPTR)((UINT32)(x) | ((UINT64)(y) << 32)) } | |
| 642 | 660 | #else |
| 661 | #define INPUT_PORT_UINT32_PAIR(x,y) { (FPTR)((UINT32)(y) | ((UINT64)(x) << 32)) } | |
| 662 | #endif | |
| 663 | #define INPUT_PORT_UINT32(x) INPUT_PORT_UINT32_PAIR(x,0) | |
| 664 | ||
| 643 | 665 | /* on 32-bit platforms, pairs of UINT32s are encoded in two consecutive 32-bit pointers */ |
| 666 | #else | |
| 667 | #define INPUT_PORT_UINT32(x) { (FPTR)(UINT32)(x) } | |
| 644 | 668 | #define INPUT_PORT_UINT32_PAIR(x,y) INPUT_PORT_UINT32(x), INPUT_PORT_UINT32(y) |
| 645 | #define INPUT_PORT_PAIR_ITEM(vptr,x) ((UINT32)((vptr)[x])) | |
| 646 | #define INPUT_PORT_PAIR_TOKENS 2 | |
| 647 | 669 | #endif |
| 648 | 670 | |
| 649 | 671 | /* start of table */ |
| r1711 | r1712 | |
| 660 | 682 | |
| 661 | 683 | /* including */ |
| 662 | 684 | #define PORT_INCLUDE(name) \ |
| 663 | INPUT_PORT_UINT32(INPUT_TOKEN_INCLUDE), INPUT_PORT_PTR(&ipt_##name[0]), | |
| 685 | INPUT_PORT_UINT32(INPUT_TOKEN_INCLUDE), INPUT_PORT_PTR(tokenptr, &ipt_##name[0]), | |
| 664 | 686 | |
| 665 | 687 | /* start of a new input port */ |
| 666 | 688 | #define PORT_START \ |
| r1711 | r1712 | |
| 668 | 690 | |
| 669 | 691 | /* start of a new input port (with included tag) */ |
| 670 | 692 | #define PORT_START_TAG(tag_) \ |
| 671 | INPUT_PORT_UINT32(INPUT_TOKEN_START_TAG), INPUT_PORT_PTR(tag_), | |
| 693 | INPUT_PORT_UINT32(INPUT_TOKEN_START_TAG), INPUT_PORT_PTR(stringptr, tag_), | |
| 672 | 694 | |
| 673 | 695 | /* modify an existing port */ |
| 674 | 696 | #define PORT_MODIFY(tag_) \ |
| 675 | INPUT_PORT_UINT32(INPUT_TOKEN_MODIFY), INPUT_PORT_PTR(tag_), | |
| 697 | INPUT_PORT_UINT32(INPUT_TOKEN_MODIFY), INPUT_PORT_PTR(stringptr, tag_), | |
| 676 | 698 | |
| 677 | 699 | /* input bit definition */ |
| 678 | 700 | #define PORT_BIT(mask_,default_,type_) \ |
| r1711 | r1712 | |
| 706 | 728 | |
| 707 | 729 | /* general flags */ |
| 708 | 730 | #define PORT_NAME(name_) \ |
| 709 | INPUT_PORT_UINT32(INPUT_TOKEN_NAME), INPUT_PORT_PTR(name_), | |
| 731 | INPUT_PORT_UINT32(INPUT_TOKEN_NAME), INPUT_PORT_PTR(stringptr, name_), | |
| 710 | 732 | |
| 711 | 733 | #define PORT_PLAYER(player_) \ |
| 712 | 734 | INPUT_PORT_UINT32(INPUT_TOKEN_PLAYER1 + (((player_) - 1) % MAX_PLAYERS)), |
| r1711 | r1712 | |
| 765 | 787 | |
| 766 | 788 | /* positional control uses this remap table */ |
| 767 | 789 | #define PORT_REMAP_TABLE(table_) \ |
| 768 | INPUT_PORT_UINT32(INPUT_TOKEN_REMAP_TABLE), INPUT_PORT_PTR(table_), | |
| 790 | INPUT_PORT_UINT32(INPUT_TOKEN_REMAP_TABLE), INPUT_PORT_PTR(remapptr, table_), | |
| 769 | 791 | |
| 770 | 792 | /* positional control bits are active low */ |
| 771 | 793 | #define PORT_INVERT \ |
| r1711 | r1712 | |
| 773 | 795 | |
| 774 | 796 | /* custom callbacks */ |
| 775 | 797 | #define PORT_CUSTOM(callback_, param_) \ |
| 776 | INPUT_PORT_UINT32(INPUT_TOKEN_CUSTOM), INPUT_PORT_PTR(callback_), INPUT_PORT_PTR(param_), | |
| 798 | INPUT_PORT_UINT32(INPUT_TOKEN_CUSTOM), INPUT_PORT_PTR(customptr, callback_), INPUT_PORT_PTR(ptr, param_), | |
| 777 | 799 | |
| 778 | 800 | /* dip switch definition */ |
| 779 | 801 | #define PORT_DIPNAME(mask,default,name) \ |
| 780 | INPUT_PORT_UINT32(INPUT_TOKEN_DIPNAME), INPUT_PORT_UINT32_PAIR(mask, default), INPUT_PORT_PTR(name), | |
| 802 | INPUT_PORT_UINT32(INPUT_TOKEN_DIPNAME), INPUT_PORT_UINT32_PAIR(mask, default), INPUT_PORT_PTR(stringptr, name), | |
| 781 | 803 | |
| 782 | 804 | #define PORT_DIPSETTING(default,name) \ |
| 783 | INPUT_PORT_UINT32_PAIR(INPUT_TOKEN_DIPSETTING, default), INPUT_PORT_PTR(name), | |
| 805 | INPUT_PORT_UINT32_PAIR(INPUT_TOKEN_DIPSETTING, default), INPUT_PORT_PTR(stringptr, name), | |
| 784 | 806 | |
| 785 | 807 | /* physical location, of the form: name:[!]sw,[name:][!]sw,... */ |
| 786 | 808 | /* note that these are specified LSB-first */ |
| 787 | 809 | #define PORT_DIPLOCATION(location_) \ |
| 788 | INPUT_PORT_UINT32(INPUT_TOKEN_DIPLOCATION), INPUT_PORT_PTR(location_), | |
| 810 | INPUT_PORT_UINT32(INPUT_TOKEN_DIPLOCATION), INPUT_PORT_PTR(stringptr, location_), | |
| 789 | 811 | |
| 790 | 812 | /* conditionals for dip switch settings */ |
| 791 | 813 | #define PORT_CONDITION(tag_,mask_,condition_,value_) \ |
| 792 | INPUT_PORT_UINT32_PAIR(INPUT_TOKEN_CONDITION, condition_), INPUT_PORT_UINT32_PAIR(mask_, value_), INPUT_PORT_PTR(tag_), | |
| 814 | INPUT_PORT_UINT32_PAIR(INPUT_TOKEN_CONDITION, condition_), INPUT_PORT_UINT32_PAIR(mask_, value_), INPUT_PORT_PTR(stringptr, tag_), | |
| 793 | 815 | |
| 794 | 816 | /* analog adjuster definition */ |
| 795 | 817 | #define PORT_ADJUSTER(default,name) \ |
| 796 | INPUT_PORT_UINT32_PAIR(INPUT_TOKEN_ADJUSTER, default), INPUT_PORT_PTR(name), | |
| 818 | INPUT_PORT_UINT32_PAIR(INPUT_TOKEN_ADJUSTER, default), INPUT_PORT_PTR(stringptr, name), | |
| 797 | 819 | |
| 798 | 820 | /* config definition */ |
| 799 | 821 | #define PORT_CONFNAME(mask,default,name) \ |
| 800 | INPUT_PORT_UINT32(INPUT_TOKEN_CONFNAME), INPUT_PORT_UINT32_PAIR(mask, default), INPUT_PORT_PTR(name), | |
| 822 | INPUT_PORT_UINT32(INPUT_TOKEN_CONFNAME), INPUT_PORT_UINT32_PAIR(mask, default), INPUT_PORT_PTR(stringptr, name), | |
| 801 | 823 | |
| 802 | 824 | #define PORT_CONFSETTING(default,name) \ |
| 803 | INPUT_PORT_UINT32_PAIR(INPUT_TOKEN_CONFSETTING, default), INPUT_PORT_PTR(name), | |
| 825 | INPUT_PORT_UINT32_PAIR(INPUT_TOKEN_CONFSETTING, default), INPUT_PORT_PTR(stringptr, name), | |
| 804 | 826 | |
| 805 | 827 | #ifdef MESS |
| 806 | 828 | /* keyboard chars */ |
| r1711 | r1712 | |
| 812 | 834 | INPUT_PORT_UINT32_PAIR(INPUT_TOKEN_CATEGORY, category), |
| 813 | 835 | |
| 814 | 836 | #define PORT_CATEGORY_CLASS(mask,default,name) \ |
| 815 | INPUT_PORT_UINT32(INPUT_TOKEN_CATEGORY_NAME), INPUT_PORT_UINT32_PAIR(mask, default), INPUT_PORT_PTR(name), | |
| 837 | INPUT_PORT_UINT32(INPUT_TOKEN_CATEGORY_NAME), INPUT_PORT_UINT32_PAIR(mask, default), INPUT_PORT_PTR(stringptr, name), | |
| 816 | 838 | |
| 817 | 839 | #define PORT_CATEGORY_ITEM(default,name,category) \ |
| 818 | INPUT_PORT_UINT32_PAIR(INPUT_TOKEN_CATEGORY_SETTING, default), INPUT_PORT_PTR(name), INPUT_PORT_UINT32_PAIR(INPUT_TOKEN_CATEGORY, category), | |
| 840 | INPUT_PORT_UINT32_PAIR(INPUT_TOKEN_CATEGORY_SETTING, default), INPUT_PORT_PTR(stringptr, name), INPUT_PORT_UINT32_PAIR(INPUT_TOKEN_CATEGORY, category), | |
| 819 | 841 | #endif /* MESS */ |
| 820 | 842 | |
| 821 | 843 | |
| r1711 | r1712 | |
| 895 | 917 | const input_seq *input_port_seq(input_port_entry *in, input_seq_type seqtype); |
| 896 | 918 | const input_seq *input_port_default_seq(int type, int player, input_seq_type seqtype); |
| 897 | 919 | int input_port_condition(const input_port_entry *in); |
| 898 | void input_port_set_changed_callback(int port, UINT32 mask, | |
| 920 | void input_port_set_changed_callback(int port, UINT32 mask, | |
| 899 | 921 | |
| 900 | 922 | const char *port_type_to_token(int type, int player); |
| 901 | 923 | int token_to_port_type(const char *string, int *player); |
| r0 | r1712 | |
|---|---|---|
| 1 | /*************************************************************************** | |
| 2 | ||
| 3 | devintrf.h | |
| 4 | ||
| 5 | Device interface functions. | |
| 6 | ||
| 7 | Copyright Nicola Salmoria and the MAME Team. | |
| 8 | Visit http://mamedev.org for licensing and usage restrictions. | |
| 9 | ||
| 10 | ***************************************************************************/ | |
| 11 | ||
| 12 | #pragma once | |
| 13 | ||
| 14 | #ifndef __DEVINTRF_H__ | |
| 15 | #define __DEVINTRF_H__ | |
| 16 | ||
| 17 | #include "mamecore.h" | |
| 18 | ||
| 19 | ||
| 20 | /*************************************************************************** | |
| 21 | CONSTANTS | |
| 22 | ***************************************************************************/ | |
| 23 | ||
| 24 | /* useful in device_list functions for scanning through all devices */ | |
| 25 | #define DEVICE_TYPE_WILDCARD NULL | |
| 26 | ||
| 27 | ||
| 28 | /* state constants passed to the device_get_info_func */ | |
| 29 | enum | |
| 30 | { | |
| 31 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 32 | DEVINFO_INT_FIRST = 0x00000, | |
| 33 | ||
| 34 | DEVINFO_INT_INLINE_CONFIG_BYTES = DEVINFO_INT_FIRST,/* R/O: bytes of inline configuration */ | |
| 35 | ||
| 36 | DEVINFO_INT_DEVICE_SPECIFIC = 0x08000, /* R/W: device-specific values start here */ | |
| 37 | ||
| 38 | DEVINFO_INT_LAST = 0x0ffff, | |
| 39 | ||
| 40 | /* --- the following bits of info are returned as pointers --- */ | |
| 41 | DEVINFO_PTR_FIRST = 0x10000, | |
| 42 | ||
| 43 | DEVINFO_PTR_DEVICE_SPECIFIC = 0x18000, /* R/W: device-specific values start here */ | |
| 44 | ||
| 45 | DEVINFO_PTR_LAST = 0x1ffff, | |
| 46 | ||
| 47 | /* --- the following bits of info are returned as pointers to functions --- */ | |
| 48 | DEVINFO_FCT_FIRST = 0x20000, | |
| 49 | ||
| 50 | DEVINFO_FCT_SET_INFO = DEVINFO_FCT_FIRST, /* R/O: device_set_info_func */ | |
| 51 | DEVINFO_FCT_START, /* R/O: device_start_func */ | |
| 52 | DEVINFO_FCT_STOP, /* R/O: device_stop_func */ | |
| 53 | DEVINFO_FCT_RESET, /* R/O: device_reset_func */ | |
| 54 | ||
| 55 | DEVINFO_FCT_DEVICE_SPECIFIC = 0x28000, /* R/W: device-specific values start here */ | |
| 56 | ||
| 57 | DEVINFO_FCT_LAST = 0x1ffff, | |
| 58 | ||
| 59 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 60 | DEVINFO_STR_FIRST = 0x30000, | |
| 61 | ||
| 62 | DEVINFO_STR_NAME = DEVINFO_STR_FIRST, /* R/O: name of the device */ | |
| 63 | DEVINFO_STR_FAMILY, /* R/O: family of the device */ | |
| 64 | DEVINFO_STR_VERSION, /* R/O: version of the device */ | |
| 65 | DEVINFO_STR_SOURCE_FILE, /* R/O: file containing the device implementation */ | |
| 66 | DEVINFO_STR_CREDITS, /* R/O: credits for the device implementation */ | |
| 67 | ||
| 68 | DEVINFO_STR_DEVICE_SPECIFIC = 0x38000, /* R/W: device-specific values start here */ | |
| 69 | ||
| 70 | DEVINFO_STR_LAST = 0x3ffff | |
| 71 | }; | |
| 72 | ||
| 73 | ||
| 74 | ||
| 75 | /*************************************************************************** | |
| 76 | TYPE DEFINITIONS | |
| 77 | ***************************************************************************/ | |
| 78 | ||
| 79 | /* forward-declare this type */ | |
| 80 | typedef union _deviceinfo deviceinfo; | |
| 81 | ||
| 82 | ||
| 83 | /* device interface function types */ | |
| 84 | typedef void (*device_get_info_func)(running_machine *machine, void *token, UINT32 state, deviceinfo *info); | |
| 85 | typedef void (*device_set_info_func)(running_machine *machine, void *token, UINT32 state, const deviceinfo *info); | |
| 86 | typedef void *(*device_start_func)(running_machine *machine, const char *tag, const void *static_config, const void *inline_config); | |
| 87 | typedef void (*device_stop_func)(running_machine *machine, void *token); | |
| 88 | typedef void (*device_reset_func)(running_machine *machine, void *token); | |
| 89 | ||
| 90 | ||
| 91 | /* a device_type is simply a pointer to its get_info function */ | |
| 92 | typedef device_get_info_func device_type; | |
| 93 | ||
| 94 | ||
| 95 | /* the actual deviceinfo union */ | |
| 96 | union _deviceinfo | |
| 97 | { | |
| 98 | INT64 i; /* generic integers */ | |
| 99 | void * p; /* generic pointers */ | |
| 100 | genf * f; /* generic function pointers */ | |
| 101 | const char * s; /* generic strings */ | |
| 102 | ||
| 103 | device_set_info_func set_info; /* DEVINFO_FCT_SET_INFO */ | |
| 104 | device_start_func start; /* DEVINFO_FCT_START */ | |
| 105 | device_stop_func stop; /* DEVINFO_FCT_STOP */ | |
| 106 | device_reset_func reset; /* DEVINFO_FCT_RESET */ | |
| 107 | }; | |
| 108 | ||
| 109 | ||
| 110 | /* the configuration for a general device */ | |
| 111 | typedef struct _device_config device_config; | |
| 112 | struct _device_config | |
| 113 | { | |
| 114 | device_config * next; /* next device */ | |
| 115 | device_type type; /* device type */ | |
| 116 | UINT32 flags; /* device flags */ | |
| 117 | UINT32 clock; /* device clock */ | |
| 118 | device_set_info_func set_info; /* quick pointer to set_info callback */ | |
| 119 | device_start_func start; /* quick pointer to start callback */ | |
| 120 | device_stop_func stop; /* quick pointer to stop callback */ | |
| 121 | device_reset_func reset; /* quick pointer to reset callback */ | |
| 122 | const void * static_config; /* static device configuration */ | |
| 123 | void * inline_config; /* inline device configuration */ | |
| 124 | void * token; /* token if device is live */ | |
| 125 | char tag[1]; /* tag for this instance */ | |
| 126 | }; | |
| 127 | ||
| 128 | ||
| 129 | ||
| 130 | /*************************************************************************** | |
| 131 | FUNCTION PROTOTYPES | |
| 132 | ***************************************************************************/ | |
| 133 | ||
| 134 | ||
| 135 | /* ----- device configuration ----- */ | |
| 136 | ||
| 137 | /* add a new device to the end of a device list */ | |
| 138 | device_config *device_list_add(device_config **listheadptr, device_type type, const char *tag); | |
| 139 | ||
| 140 | /* remove a device from a device list */ | |
| 141 | void device_list_remove(device_config **listheadptr, device_type type, const char *tag); | |
| 142 | ||
| 143 | /* return the number of items of a given type; DEVICE_TYPE_WILDCARD is allowed */ | |
| 144 | int device_list_items(const device_config *listhead, device_type type); | |
| 145 | ||
| 146 | /* return the first device in the list of a given type; DEVICE_TYPE_WILDCARD is allowed */ | |
| 147 | const device_config *device_list_first(const device_config *listhead, device_type type); | |
| 148 | ||
| 149 | /* return the next device in the list of a given type; DEVICE_TYPE_WILDCARD is allowed */ | |
| 150 | const device_config *device_list_next(const device_config *prevdevice, device_type type); | |
| 151 | ||
| 152 | /* retrieve a device configuration based on a type and tag; DEVICE_TYPE_WILDCARD is allowed */ | |
| 153 | const device_config *device_list_find_by_tag(const device_config *listhead, device_type type, const char *tag); | |
| 154 | ||
| 155 | ||
| 156 | ||
| 157 | /* ----- index-based device access (avoid if possible) ----- */ | |
| 158 | ||
| 159 | /* return the index of a device based on its type and tag; DEVICE_TYPE_WILDCARD is allowed */ | |
| 160 | int device_list_index(const device_config *listhead, device_type type, const char *tag); | |
| 161 | ||
| 162 | /* retrieve a device configuration based on a type and index; DEVICE_TYPE_WILDCARD is allowed */ | |
| 163 | const device_config *device_list_find_by_index(const device_config *listhead, device_type type, int index); | |
| 164 | ||
| 165 | ||
| 166 | ||
| 167 | /* ----- live device management ----- */ | |
| 168 | ||
| 169 | /* start the configured list of devices for a machine */ | |
| 170 | void device_list_start(running_machine *machine); | |
| 171 | ||
| 172 | /* reset a device based on an allocated device_config */ | |
| 173 | void device_reset(running_machine *machine, const device_config *config); | |
| 174 | void devtag_reset(running_machine *machine, device_type type, const char *tag); | |
| 175 | ||
| 176 | ||
| 177 | ||
| 178 | /* ----- device information getters ----- */ | |
| 179 | ||
| 180 | /* return the token associated with an allocated device */ | |
| 181 | void *devtag_get_token(running_machine *machine, device_type type, const char *tag); | |
| 182 | ||
| 183 | /* return a pointer to the static configuration for a device based on type and tag */ | |
| 184 | const void *devtag_get_static_config(running_machine *machine, device_type type, const char *tag); | |
| 185 | ||
| 186 | /* return a pointer to the inline configuration for a device based on type and tag */ | |
| 187 | const void *devtag_get_inline_config(running_machine *machine, device_type type, const char *tag); | |
| 188 | ||
| 189 | /* return an integer state value from an allocated device */ | |
| 190 | INT64 device_get_info_int(running_machine *machine, const device_config *config, UINT32 state); | |
| 191 | INT64 devtag_get_info_int(running_machine *machine, device_type type, const char *tag, UINT32 state); | |
| 192 | ||
| 193 | /* return a pointer state value from an allocated device */ | |
| 194 | void *device_get_info_ptr(running_machine *machine, const device_config *config, UINT32 state); | |
| 195 | void *devtag_get_info_ptr(running_machine *machine, device_type type, const char *tag, UINT32 state); | |
| 196 | ||
| 197 | /* return a function pointer state value from an allocated device */ | |
| 198 | genf *device_get_info_fct(running_machine *machine, const device_config *config, UINT32 state); | |
| 199 | genf *devtag_get_info_fct(running_machine *machine, device_type type, const char *tag, UINT32 state); | |
| 200 | ||
| 201 | /* return a string value from an allocated device */ | |
| 202 | const char *device_get_info_string(running_machine *machine, const device_config *config, UINT32 state); | |
| 203 | const char *devtag_get_info_string(running_machine *machine, device_type type, const char *tag, UINT32 state); | |
| 204 | ||
| 205 | /* return a string value from a device type (does not need to be allocated) */ | |
| 206 | const char *devtype_get_info_string(device_type type, UINT32 state); | |
| 207 | ||
| 208 | ||
| 209 | ||
| 210 | /* ----- device information setters ----- */ | |
| 211 | ||
| 212 | /* set an integer state value for an allocated device */ | |
| 213 | void device_set_info_int(running_machine *machine, const device_config *config, UINT32 state, INT64 data); | |
| 214 | void devtag_set_info_int(running_machine *machine, device_type type, const char *tag, UINT32 state, INT64 data); | |
| 215 | ||
| 216 | /* set a pointer state value for an allocated device */ | |
| 217 | void device_set_info_ptr(running_machine *machine, const device_config *config, UINT32 state, void *data); | |
| 218 | void devtag_set_info_ptr(running_machine *machine, device_type type, const char *tag, UINT32 state, void *data); | |
| 219 | ||
| 220 | /* set a function pointer state value for an allocated device */ | |
| 221 | void device_set_info_fct(running_machine *machine, const device_config *config, UINT32 state, genf *data); | |
| 222 | void devtag_set_info_fct(running_machine *machine, device_type type, const char *tag, UINT32 state, genf *data); | |
| 223 | ||
| 224 | ||
| 225 | ||
| 226 | /*************************************************************************** | |
| 227 | INLINE FUNCTIONS | |
| 228 | ***************************************************************************/ | |
| 229 | ||
| 230 | /* return common strings based on device types */ | |
| 231 | INLINE const char *devtype_name(device_type devtype) { return devtype_get_info_string(devtype, DEVINFO_STR_NAME); } | |
| 232 | INLINE const char *devtype_family(device_type devtype) { return devtype_get_info_string(devtype, DEVINFO_STR_FAMILY); } | |
| 233 | INLINE const char *devtype_version(device_type devtype) { return devtype_get_info_string(devtype, DEVINFO_STR_VERSION); } | |
| 234 | INLINE const char *devtype_source_file(device_type devtype) { return devtype_get_info_string(devtype, DEVINFO_STR_SOURCE_FILE); } | |
| 235 | INLINE const char *devtype_credits(device_type devtype) { return devtype_get_info_string(devtype, DEVINFO_STR_CREDITS); } | |
| 236 | ||
| 237 | ||
| 238 | #endif /* __DEVINTRF_H__ */ |
| r1711 | r1712 | |
|---|---|---|
| 94 | 94 | void tms9995_get_info(UINT32 state, cpuinfo *info); |
| 95 | 95 | void tms99105a_get_info(UINT32 state, cpuinfo *info); |
| 96 | 96 | void tms99110a_get_info(UINT32 state, cpuinfo *info); |
| 97 | void tms99000_get_info(UINT32 state, cpuinfo *info); | |
| 97 | 98 | void z8000_get_info(UINT32 state, cpuinfo *info); |
| 98 | 99 | void tms32010_get_info(UINT32 state, cpuinfo *info); |
| 99 | 100 | void tms32025_get_info(UINT32 state, cpuinfo *info); |
| r1711 | r1712 | |
| 495 | 496 | #if (HAS_TMS99110A) |
| 496 | 497 | { CPU_TMS99110A, tms99110a_get_info }, |
| 497 | 498 | #endif |
| 499 | #if (HAS_TMS99000) | |
| 500 | { CPU_TMS99000, tms99000_get_info }, | |
| 501 | #endif | |
| 498 | 502 | #if (HAS_Z8000) |
| 499 | 503 | { CPU_Z8000, z8000_get_info }, |
| 500 | 504 | #endif |
| r1711 | r1712 | |
| 1016 | 1020 | /* loop over all defined CPUs */ |
| 1017 | 1021 | for (totalcpu = 0; totalcpu < CPU_COUNT; totalcpu++) |
| 1018 | 1022 | { |
| 1019 | cpu_type cputype = machine-> | |
| 1023 | cpu_type cputype = machine->config->cpu[totalcpu].type; | |
| 1020 | 1024 | char familyname[256]; |
| 1021 | 1025 | int j; |
| 1022 | 1026 |
| r1711 | r1712 | |
|---|---|---|
| 178 | 178 | /* loop over all our CPUs */ |
| 179 | 179 | for (cpunum = 0; cpunum < MAX_CPU; cpunum++) |
| 180 | 180 | { |
| 181 | cpu_type cputype = machine-> | |
| 181 | cpu_type cputype = machine->config->cpu[cpunum].type; | |
| 182 | 182 | int num_regs; |
| 183 | 183 | |
| 184 | 184 | /* if this is a dummy, stop looking */ |
| r1711 | r1712 | |
| 188 | 188 | /* initialize the cpuinfo struct */ |
| 189 | 189 | memset(&cpu[cpunum], 0, sizeof(cpu[cpunum])); |
| 190 | 190 | cpu[cpunum].suspend = SUSPEND_REASON_RESET; |
| 191 | cpu[cpunum].clock = (UINT64)machine-> | |
| 191 | cpu[cpunum].clock = (UINT64)machine->config->cpu[cpunum].clock * cputype_clock_multiplier(cputype) / cputype_clock_divider(cputype); | |
| 192 | 192 | cpu[cpunum].clockscale = 1.0; |
| 193 | 193 | cpu[cpunum].localtime = attotime_zero; |
| 194 | 194 | |
| r1711 | r1712 | |
| 216 | 216 | /* initialize this CPU */ |
| 217 | 217 | state_save_push_tag(cpunum + 1); |
| 218 | 218 | num_regs = state_save_get_reg_count(); |
| 219 | if (cpuintrf_init_cpu(cpunum, cputype, cpu[cpunum].clock, machine-> | |
| 219 | if (cpuintrf_init_cpu(cpunum, cputype, cpu[cpunum].clock, machine->config->cpu[cpunum].reset_param, cpu_irq_callbacks[cpunum])) | |
| 220 | 220 | fatalerror("Unable to initialize CPU #%d (%s)", cpunum, cputype_name(cputype)); |
| 221 | 221 | num_regs = state_save_get_reg_count() - num_regs; |
| 222 | 222 | state_save_pop_tag(); |
| r1711 | r1712 | |
| 259 | 259 | cpu_inittimers(machine); |
| 260 | 260 | |
| 261 | 261 | /* set up the watchdog timer; only start off enabled if explicitly configured */ |
| 262 | watchdog_enabled = (machine-> | |
| 262 | watchdog_enabled = (machine->config->watchdog_vblank_count != 0 || attotime_compare(machine->config->watchdog_time, attotime_zero) != 0); | |
| 263 | 263 | watchdog_reset(machine); |
| 264 | 264 | watchdog_enabled = TRUE; |
| 265 | 265 | |
| r1711 | r1712 | |
| 267 | 267 | for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++) |
| 268 | 268 | { |
| 269 | 269 | /* enable all CPUs (except for disabled CPUs) */ |
| 270 | if (!(machine-> | |
| 270 | if (!(machine->config->cpu[cpunum].flags & CPU_DISABLE)) | |
| 271 | 271 | cpunum_resume(cpunum, SUSPEND_ANY_REASON); |
| 272 | 272 | else |
| 273 | 273 | cpunum_suspend(cpunum, SUSPEND_REASON_DISABLE, 1); |
| r1711 | r1712 | |
| 315 | 315 | LOG(("cpu_timeslice: target = %s\n", attotime_string(target, 9))); |
| 316 | 316 | |
| 317 | 317 | /* process any pending suspends */ |
| 318 | for (cpunum = 0; machine-> | |
| 318 | for (cpunum = 0; machine->config->cpu[cpunum].type != CPU_DUMMY; cpunum++) | |
| 319 | 319 | { |
| 320 | 320 | if (cpu[cpunum].suspend != cpu[cpunum].nextsuspend) |
| 321 | 321 | LOG(("--> updated CPU%d suspend from %X to %X\n", cpunum, cpu[cpunum].suspend, cpu[cpunum].nextsuspend)); |
| r1711 | r1712 | |
| 324 | 324 | } |
| 325 | 325 | |
| 326 | 326 | /* loop over CPUs */ |
| 327 | for (cpunum = 0; machine-> | |
| 327 | for (cpunum = 0; machine->config->cpu[cpunum].type != CPU_DUMMY; cpunum++) | |
| 328 | 328 | { |
| 329 | 329 | /* only process if we're not suspended */ |
| 330 | 330 | if (!cpu[cpunum].suspend) |
| r1711 | r1712 | |
| 370 | 370 | } |
| 371 | 371 | |
| 372 | 372 | /* update the local times of all CPUs */ |
| 373 | for (cpunum = 0; machine-> | |
| 373 | for (cpunum = 0; machine->config->cpu[cpunum].type != CPU_DUMMY; cpunum++) | |
| 374 | 374 | { |
| 375 | 375 | /* if we're suspended and counting, process */ |
| 376 | 376 | if (cpu[cpunum].suspend && cpu[cpunum].eatcycles && attotime_compare(cpu[cpunum].localtime, target) < 0) |
| r1711 | r1712 | |
| 758 | 758 | for (cpunum = 0; cpunum < MAX_CPU; cpunum++) |
| 759 | 759 | { |
| 760 | 760 | /* if this is a dummy, stop looking */ |
| 761 | if (machine-> | |
| 761 | if (machine->config->cpu[cpunum].type == CPU_DUMMY) | |
| 762 | 762 | break; |
| 763 | 763 | |
| 764 | 764 | /* see if this is a matching trigger */ |
| r1711 | r1712 | |
| 826 | 826 | timer_adjust_oneshot(watchdog_timer, attotime_never, 0); |
| 827 | 827 | |
| 828 | 828 | /* VBLANK-based watchdog? */ |
| 829 | else if (machine->drv->watchdog_vblank_count != 0) | |
| 830 | watchdog_counter = machine->drv->watchdog_vblank_count; | |
| 829 | else if (machine->config->watchdog_vblank_count != 0) | |
| 830 | watchdog_counter = machine->config->watchdog_vblank_count; | |
| 831 | 831 | |
| 832 | 832 | /* timer-based watchdog? */ |
| 833 | else if (attotime_compare(machine->drv->watchdog_time, attotime_zero) != 0) | |
| 834 | timer_adjust_oneshot(watchdog_timer, machine->drv->watchdog_time, 0); | |
| 833 | else if (attotime_compare(machine->config->watchdog_time, attotime_zero) != 0) | |
| 834 | timer_adjust_oneshot(watchdog_timer, machine->config->watchdog_time, 0); | |
| 835 | 835 | |
| 836 | 836 | /* default to an obscene amount of time (3 seconds) */ |
| 837 | 837 | else |
| r1711 | r1712 | |
| 959 | 959 | input_port_vblank_start(); |
| 960 | 960 | |
| 961 | 961 | /* check the watchdog */ |
| 962 | if (machine-> | |
| 962 | if (machine->config->watchdog_vblank_count != 0 && --watchdog_counter == 0) | |
| 963 | 963 | watchdog_callback(machine, NULL, 0); |
| 964 | 964 | |
| 965 | 965 | /* reset the cycle counters */ |
| 966 | 966 | for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++) |
| 967 | 967 | { |
| 968 | 968 | if (!(cpu[cpunum].suspend & SUSPEND_REASON_DISABLE)) |
| 969 | cpu[cpunum].iloops = machine-> | |
| 969 | cpu[cpunum].iloops = machine->config->cpu[cpunum].vblank_interrupts_per_frame - 1; | |
| 970 | 970 | else |
| 971 | 971 | cpu[cpunum].iloops = -1; |
| 972 | 972 | } |
| r1711 | r1712 | |
| 1013 | 1013 | if (param != -1) |
| 1014 | 1014 | { |
| 1015 | 1015 | /* if the CPU has a VBLANK handler, call it */ |
| 1016 | if (machine-> | |
| 1016 | if (machine->config->cpu[cpunum].vblank_interrupt && !cpunum_is_suspended(cpunum, SUSPEND_REASON_HALT | SUSPEND_REASON_RESET | SUSPEND_REASON_DISABLE)) | |
| 1017 | 1017 | { |
| 1018 | 1018 | cpuintrf_push_context(cpunum); |
| 1019 | (*machine-> | |
| 1019 | (*machine->config->cpu[cpunum].vblank_interrupt)(machine, cpunum); | |
| 1020 | 1020 | cpuintrf_pop_context(); |
| 1021 | 1021 | } |
| 1022 | 1022 | |
| r1711 | r1712 | |
| 1039 | 1039 | if (!--vblank_countdown) |
| 1040 | 1040 | { |
| 1041 | 1041 | /* do we update the screen now? */ |
| 1042 | if (!(machine-> | |
| 1042 | if (!(machine->config->video_attributes & VIDEO_UPDATE_AFTER_VBLANK)) | |
| 1043 | 1043 | video_frame_update(machine, FALSE); |
| 1044 | 1044 | |
| 1045 | 1045 | /* Set the timer to update the screen */ |
| r1711 | r1712 | |
| 1067 | 1067 | static TIMER_CALLBACK( cpu_updatecallback ) |
| 1068 | 1068 | { |
| 1069 | 1069 | /* update the screen if we didn't before */ |
| 1070 | if (machine-> | |
| 1070 | if (machine->config->video_attributes & VIDEO_UPDATE_AFTER_VBLANK) | |
| 1071 | 1071 | video_frame_update(machine, FALSE); |
| 1072 | 1072 | vblank = 0; |
| 1073 | 1073 | |
| r1711 | r1712 | |
| 1090 | 1090 | static TIMER_CALLBACK( cpu_timedintcallback ) |
| 1091 | 1091 | { |
| 1092 | 1092 | /* bail if there is no routine */ |
| 1093 | if (machine-> | |
| 1093 | if (machine->config->cpu[param].timed_interrupt != NULL && !cpunum_is_suspended(param, SUSPEND_REASON_HALT | SUSPEND_REASON_RESET | SUSPEND_REASON_DISABLE)) | |
| 1094 | 1094 | { |
| 1095 | 1095 | cpuintrf_push_context(param); |
| 1096 | (*machine-> | |
| 1096 | (*machine->config->cpu[param].timed_interrupt)(machine, param); | |
| 1097 | 1097 | cpuintrf_pop_context(); |
| 1098 | 1098 | } |
| 1099 | 1099 | } |
| r1711 | r1712 | |
| 1135 | 1135 | /* start with a huge time factor and find the 2nd smallest cycle time */ |
| 1136 | 1136 | perfect_interleave = attotime_zero; |
| 1137 | 1137 | perfect_interleave.attoseconds = ATTOSECONDS_PER_SECOND - 1; |
| 1138 | for (cpunum = 1; machine-> | |
| 1138 | for (cpunum = 1; machine->config->cpu[cpunum].type != CPU_DUMMY; cpunum++) | |
| 1139 | 1139 | { |
| 1140 | 1140 | /* find the 2nd smallest cycle interval */ |
| 1141 | 1141 | if (attoseconds_per_cycle[cpunum] < smallest) |
| r1711 | r1712 | |
| 1168 | 1168 | watchdog_timer = timer_alloc(watchdog_callback, NULL); |
| 1169 | 1169 | |
| 1170 | 1170 | /* allocate a dummy timer at the minimum frequency to break things up */ |
| 1171 | ipf = machine-> | |
| 1171 | ipf = machine->config->cpu_slices_per_frame; | |
| 1172 | 1172 | if (ipf <= 0) |
| 1173 | 1173 | ipf = 1; |
| 1174 | 1174 | timeslice_period = attotime_make(0, machine->screen[0].refresh / ipf); |
| r1711 | r1712 | |
| 1189 | 1189 | max = 1; |
| 1190 | 1190 | for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++) |
| 1191 | 1191 | { |
| 1192 | ipf = machine-> | |
| 1192 | ipf = machine->config->cpu[cpunum].vblank_interrupts_per_frame; | |
| 1193 | 1193 | if (ipf > max) |
| 1194 | 1194 | max = ipf; |
| 1195 | 1195 | } |
| r1711 | r1712 | |
| 1200 | 1200 | { |
| 1201 | 1201 | for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++) |
| 1202 | 1202 | { |
| 1203 | ipf = machine-> | |
| 1203 | ipf = machine->config->cpu[cpunum].vblank_interrupts_per_frame; | |
| 1204 | 1204 | if (ipf > 0 && (vblank_multiplier % ipf) != 0) |
| 1205 | 1205 | break; |
| 1206 | 1206 | } |
| r1711 | r1712 | |
| 1212 | 1212 | /* initialize the countdown timers and intervals */ |
| 1213 | 1213 | for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++) |
| 1214 | 1214 | { |
| 1215 | ipf = machine-> | |
| 1215 | ipf = machine->config->cpu[cpunum].vblank_interrupts_per_frame; | |
| 1216 | 1216 | if (ipf > 0) |
| 1217 | 1217 | cpu[cpunum].vblankint_countdown = cpu[cpunum].vblankint_multiplier = vblank_multiplier / ipf; |
| 1218 | 1218 | else |
| r1711 | r1712 | |
| 1234 | 1234 | /* start the CPU interrupt timers */ |
| 1235 | 1235 | for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++) |
| 1236 | 1236 | { |
| 1237 | ipf = machine-> | |
| 1237 | ipf = machine->config->cpu[cpunum].vblank_interrupts_per_frame; | |
| 1238 | 1238 | |
| 1239 | 1239 | /* compute the average number of cycles per interrupt */ |
| 1240 | 1240 | if (ipf <= 0) |
| r1711 | r1712 | |
| 1242 | 1242 | cpu[cpunum].vblankint_timer = timer_alloc(NULL, NULL); |
| 1243 | 1243 | |
| 1244 | 1244 | /* see if we need to allocate a CPU timer */ |
| 1245 | if (machine-> | |
| 1245 | if (machine->config->cpu[cpunum].timed_interrupt_period != 0) | |
| 1246 | 1246 | { |
| 1247 | cpu[cpunum].timedint_period = attotime_make(0, machine-> | |
| 1247 | cpu[cpunum].timedint_period = attotime_make(0, machine->config->cpu[cpunum].timed_interrupt_period); | |
| 1248 | 1248 | cpu[cpunum].timedint_timer = timer_alloc(cpu_timedintcallback, NULL); |
| 1249 | 1249 | timer_adjust_periodic(cpu[cpunum].timedint_timer, cpu[cpunum].timedint_period, cpunum, cpu[cpunum].timedint_period); |
| 1250 | 1250 | } |
| r1711 | r1712 | |
|---|---|---|
| 1346 | 1346 | |
| 1347 | 1347 | static int get_variable_value(const char *string, char **outputptr) |
| 1348 | 1348 | { |
| 1349 | int num, den, scrnum; | |
| 1349 | const device_config *device; | |
| 1350 | int num, den; | |
| 1350 | 1351 | char temp[100]; |
| 1351 | 1352 | |
| 1352 | 1353 | /* screen 0 parameters */ |
| 1353 | for ( | |
| 1354 | for (device | |
| 1354 | 1355 | { |
| 1356 | int scrnum = device_list_index(Machine->config->devicelist, VIDEO_SCREEN, device->tag); | |
| 1357 | const screen_config *scrconfig = device->inline_config; | |
| 1358 | ||
| 1355 | 1359 | /* native X aspect factor */ |
| 1356 | 1360 | sprintf(temp, "~scr%dnativexaspect~", scrnum); |
| 1357 | 1361 | if (!strncmp(string, temp, strlen(temp))) |
| 1358 | 1362 | { |
| 1359 | num = Machine->drv->screen[scrnum].defstate.visarea.max_x + 1 - Machine->drv->screen[scrnum].defstate.visarea.min_x; | |
| 1360 | den = Machine->drv->screen[scrnum].defstate.visarea.max_y + 1 - Machine->drv->screen[scrnum].defstate.visarea.min_y; | |
| 1363 | num = scrconfig->defstate.visarea.max_x + 1 - scrconfig->defstate.visarea.min_x; | |
| 1364 | den = scrconfig->defstate.visarea.max_y + 1 - scrconfig->defstate.visarea.min_y; | |
| 1361 | 1365 | reduce_fraction(&num, &den); |
| 1362 | 1366 | *outputptr += sprintf(*outputptr, "%d", num); |
| 1363 | 1367 | return strlen(temp); |
| r1711 | r1712 | |
| 1367 | 1371 | sprintf(temp, "~scr%dnativeyaspect~", scrnum); |
| 1368 | 1372 | if (!strncmp(string, temp, strlen(temp))) |
| 1369 | 1373 | { |
| 1370 | num = Machine->drv->screen[scrnum].defstate.visarea.max_x + 1 - Machine->drv->screen[scrnum].defstate.visarea.min_x; | |
| 1371 | den = Machine->drv->screen[scrnum].defstate.visarea.max_y + 1 - Machine->drv->screen[scrnum].defstate.visarea.min_y; | |
| 1374 | num = scrconfig->defstate.visarea.max_x + 1 - scrconfig->defstate.visarea.min_x; | |
| 1375 | den = scrconfig->defstate.visarea.max_y + 1 - scrconfig->defstate.visarea.min_y; | |
| 1372 | 1376 | reduce_fraction(&num, &den); |
| 1373 | 1377 | *outputptr += sprintf(*outputptr, "%d", den); |
| 1374 | 1378 | return strlen(temp); |
| r1711 | r1712 | |
| 1378 | 1382 | sprintf(temp, "~scr%dwidth~", scrnum); |
| 1379 | 1383 | if (!strncmp(string, temp, strlen(temp))) |
| 1380 | 1384 | { |
| 1381 | *outputptr += sprintf(*outputptr, "%d", | |
| 1385 | *outputptr += sprintf(*outputptr, "%d", | |
| 1382 | 1386 | return strlen(temp); |
| 1383 | 1387 | } |
| 1384 | 1388 | |
| r1711 | r1712 | |
| 1386 | 1390 | sprintf(temp, "~scr%dheight~", scrnum); |
| 1387 | 1391 | if (!strncmp(string, temp, strlen(temp))) |
| 1388 | 1392 | { |
| 1389 | *outputptr += sprintf(*outputptr, "%d", | |
| 1393 | *outputptr += sprintf(*outputptr, "%d", | |
| 1390 | 1394 | return strlen(temp); |
| 1391 | 1395 | } |
| 1392 | 1396 | } |
| r1711 | r1712 | |
|---|---|---|
| 122 | 122 | CPU_TMS99100, |
| 123 | 123 | CPU_TMS99105A, |
| 124 | 124 | CPU_TMS99110A, |
| 125 | CPU_TMS99000, | |
| 125 | 126 | CPU_Z8000, |
| 126 | 127 | CPU_TMS32010, |
| 127 | 128 | CPU_TMS32025, |
| r0 | r1712 | |
|---|---|---|
| 1 | #include <math.h> | |
| 2 | #include "sndintrf.h" | |
| 3 | #include "cpuintrf.h" | |
| 4 | #include "aica.h" | |
| 5 | #include "aicadsp.h" | |
| 6 | ||
| 7 | static UINT16 PACK(INT32 val) | |
| 8 | { | |
| 9 | UINT32 temp; | |
| 10 | int sign,exponent,k; | |
| 11 | ||
| 12 | sign = (val >> 23) & 0x1; | |
| 13 | temp = (val ^ (val << 1)) & 0xFFFFFF; | |
| 14 | exponent = 0; | |
| 15 | for (k=0; k<12; k++) | |
| 16 | { | |
| 17 | if (temp & 0x800000) | |
| 18 | break; | |
| 19 | temp <<= 1; | |
| 20 | exponent += 1; | |
| 21 | } | |
| 22 | if (exponent < 12) | |
| 23 | val = (val << exponent) & 0x3FFFFF; | |
| 24 | else | |
| 25 | val <<= 11; | |
| 26 | val >>= 11; | |
| 27 | val |= sign << 15; | |
| 28 | val |= exponent << 11; | |
| 29 | ||
| 30 | return (UINT16)val; | |
| 31 | } | |
| 32 | ||
| 33 | static INT32 UNPACK(UINT16 val) | |
| 34 | { | |
| 35 | int sign,exponent,mantissa; | |
| 36 | INT32 uval; | |
| 37 | ||
| 38 | sign = (val >> 15) & 0x1; | |
| 39 | exponent = (val >> 11) & 0xF; | |
| 40 | mantissa = val & 0x7FF; | |
| 41 | uval = mantissa << 11; | |
| 42 | if (exponent > 11) | |
| 43 | exponent = 11; | |
| 44 | else | |
| 45 | uval |= (sign ^ 1) << 22; | |
| 46 | uval |= sign << 23; | |
| 47 | uval <<= 8; | |
| 48 | uval >>= 8; | |
| 49 | uval >>= exponent; | |
| 50 | ||
| 51 | return uval; | |
| 52 | } | |
| 53 | ||
| 54 | void AICADSP_Init(struct _AICADSP *DSP) | |
| 55 | { | |
| 56 | memset(DSP,0,sizeof(struct _AICADSP)); | |
| 57 | DSP->RBL=0x8000; | |
| 58 | DSP->Stopped=1; | |
| 59 | } | |
| 60 | ||
| 61 | void AICADSP_Step(struct _AICADSP *DSP) | |
| 62 | { | |
| 63 | INT32 ACC=0; //26 bit | |
| 64 | INT32 SHIFTED=0; //24 bit | |
| 65 | INT32 X=0; //24 bit | |
| 66 | INT32 Y=0; //13 bit | |
| 67 | INT32 B=0; //26 bit | |
| 68 | INT32 INPUTS=0; //24 bit | |
| 69 | INT32 MEMVAL=0; | |
| 70 | INT32 FRC_REG=0; //13 bit | |
| 71 | INT32 Y_REG=0; //24 bit | |
| 72 | UINT32 ADDR=0; | |
| 73 | UINT32 ADRS_REG=0; //13 bit | |
| 74 | int step; | |
| 75 | ||
| 76 | if(DSP->Stopped) | |
| 77 | return; | |
| 78 | ||
| 79 | memset(DSP->EFREG,0,2*16); | |
| 80 | #if 0 | |
| 81 | int dump=0; | |
| 82 | FILE *f=NULL; | |
| 83 | if(dump) | |
| 84 | f=fopen("dsp.txt","wt"); | |
| 85 | #endif | |
| 86 | for(step=0;step</*128*/DSP->LastStep;++step) | |
| 87 | { | |
| 88 | UINT16 *IPtr=DSP->MPRO+step*8; | |
| 89 | ||
| 90 | // if(IPtr[0]==0 && IPtr[1]==0 && IPtr[2]==0 && IPtr[3]==0) | |
| 91 | // break; | |
| 92 | ||
| 93 | UINT32 TRA=(IPtr[0]>>9)&0x7F; | |
| 94 | UINT32 TWT=(IPtr[0]>>8)&0x01; | |
| 95 | UINT32 TWA=(IPtr[0]>>1)&0x7F; | |
| 96 | ||
| 97 | UINT32 XSEL=(IPtr[2]>>15)&0x01; | |
| 98 | UINT32 YSEL=(IPtr[2]>>13)&0x03; | |
| 99 | UINT32 IRA=(IPtr[2]>>7)&0x3F; | |
| 100 | UINT32 IWT=(IPtr[2]>>6)&0x01; | |
| 101 | UINT32 IWA=(IPtr[2]>>1)&0x1F; | |
| 102 | ||
| 103 | UINT32 TABLE=(IPtr[4]>>15)&0x01; | |
| 104 | UINT32 MWT=(IPtr[4]>>14)&0x01; | |
| 105 | UINT32 MRD=(IPtr[4]>>13)&0x01; | |
| 106 | UINT32 EWT=(IPtr[4]>>12)&0x01; | |
| 107 | UINT32 EWA=(IPtr[4]>>8)&0x0F; | |
| 108 | UINT32 ADRL=(IPtr[4]>>7)&0x01; | |
| 109 | UINT32 FRCL=(IPtr[4]>>6)&0x01; | |
| 110 | UINT32 SHIFT=(IPtr[4]>>4)&0x03; | |
| 111 | UINT32 YRL=(IPtr[4]>>3)&0x01; | |
| 112 | UINT32 NEGB=(IPtr[4]>>2)&0x01; | |
| 113 | UINT32 ZERO=(IPtr[4]>>1)&0x01; | |
| 114 | UINT32 BSEL=(IPtr[4]>>0)&0x01; | |
| 115 | ||
| 116 | UINT32 NOFL=(IPtr[6]>>15)&1; //???? | |
| 117 | UINT32 COEF=step; | |
| 118 | ||
| 119 | UINT32 MASA=(IPtr[6]>>9)&0x1f; //??? | |
| 120 | UINT32 ADREB=(IPtr[6]>>8)&0x1; | |
| 121 | UINT32 NXADR=(IPtr[6]>>7)&0x1; | |
| 122 | ||
| 123 | INT64 v; | |
| 124 | ||
| 125 | //operations are done at 24 bit precision | |
| 126 | #if 0 | |
| 127 | if(MASA) | |
| 128 | int a=1; | |
| 129 | if(NOFL) | |
| 130 | int a=1; | |
| 131 | ||
| 132 | // int dump=0; | |
| 133 | ||
| 134 | if(f) | |
| 135 | { | |
| 136 | #define DUMP(v) fprintf(f," " #v ": %04X",v); | |
| 137 | ||
| 138 | fprintf(f,"%d: ",step); | |
| 139 | DUMP(ACC); | |
| 140 | DUMP(SHIFTED); | |
| 141 | DUMP(X); | |
| 142 | DUMP(Y); | |
| 143 | DUMP(B); | |
| 144 | DUMP(INPUTS); | |
| 145 | DUMP(MEMVAL); | |
| 146 | DUMP(FRC_REG); | |
| 147 | DUMP(Y_REG); | |
| 148 | DUMP(ADDR); | |
| 149 | DUMP(ADRS_REG); | |
| 150 | fprintf(f,"\n"); | |
| 151 | } | |
| 152 | #endif | |
| 153 | //INPUTS RW | |
| 154 | assert(IRA<0x32); | |
| 155 | if(IRA<=0x1f) | |
| 156 | INPUTS=DSP->MEMS[IRA]; | |
| 157 | else if(IRA<=0x2F) | |
| 158 | INPUTS=DSP->MIXS[IRA-0x20]<<4; //MIXS is 20 bit | |
| 159 | else if(IRA<=0x31) | |
| 160 | INPUTS=0; | |
| 161 | ||
| 162 | INPUTS<<=8; | |
| 163 | INPUTS>>=8; | |
| 164 | //if(INPUTS&0x00800000) | |
| 165 | // INPUTS|=0xFF000000; | |
| 166 | ||
| 167 | if(IWT) | |
| 168 | { | |
| 169 | DSP->MEMS[IWA]=MEMVAL; //MEMVAL was selected in previous MRD | |
| 170 | if(IRA==IWA) | |
| 171 | INPUTS=MEMVAL; | |
| 172 | } | |
| 173 | ||
| 174 | //Operand sel | |
| 175 | //B | |
| 176 | if(!ZERO) | |
| 177 | { | |
| 178 | if(BSEL) | |
| 179 | B=ACC; | |
| 180 | else | |
| 181 | { | |
| 182 | B=DSP->TEMP[(TRA+DSP->DEC)&0x7F]; | |
| 183 | B<<=8; | |
| 184 | B>>=8; | |
| 185 | //if(B&0x00800000) | |
| 186 | // B|=0xFF000000; //Sign extend | |
| 187 | } | |
| 188 | if(NEGB) | |
| 189 | B=0-B; | |
| 190 | } | |
| 191 | else | |
| 192 | B=0; | |
| 193 | ||
| 194 | //X | |
| 195 | if(XSEL) | |
| 196 | X=INPUTS; | |
| 197 | else | |
| 198 | { | |
| 199 | X=DSP->TEMP[(TRA+DSP->DEC)&0x7F]; | |
| 200 | X<<=8; | |
| 201 | X>>=8; | |
| 202 | //if(X&0x00800000) | |
| 203 | // X|=0xFF000000; | |
| 204 | } | |
| 205 | ||
| 206 | //Y | |
| 207 | if(YSEL==0) | |
| 208 | Y=FRC_REG; | |
| 209 | else if(YSEL==1) | |
| 210 | Y=DSP->COEF[COEF<<1]>>3; //COEF is 16 bits | |
| 211 | else if(YSEL==2) | |
| 212 | Y=(Y_REG>>11)&0x1FFF; | |
| 213 | else if(YSEL==3) | |
| 214 | Y=(Y_REG>>4)&0x0FFF; | |
| 215 | ||
| 216 | if(YRL) | |
| 217 | Y_REG=INPUTS; | |
| 218 | ||
| 219 | //Shifter | |
| 220 | if(SHIFT==0) | |
| 221 | { | |
| 222 | SHIFTED=ACC; | |
| 223 | if(SHIFTED>0x007FFFFF) | |
| 224 | SHIFTED=0x007FFFFF; | |
| 225 | if(SHIFTED<(-0x00800000)) | |
| 226 | SHIFTED=-0x00800000; | |
| 227 | } | |
| 228 | else if(SHIFT==1) | |
| 229 | { | |
| 230 | SHIFTED=ACC*2; | |
| 231 | if(SHIFTED>0x007FFFFF) | |
| 232 | SHIFTED=0x007FFFFF; | |
| 233 | if(SHIFTED<(-0x00800000)) | |
| 234 | SHIFTED=-0x00800000; | |
| 235 | } | |
| 236 | else if(SHIFT==2) | |
| 237 | { | |
| 238 | SHIFTED=ACC*2; | |
| 239 | SHIFTED<<=8; | |
| 240 | SHIFTED>>=8; | |
| 241 | //SHIFTED&=0x00FFFFFF; | |
| 242 | //if(SHIFTED&0x00800000) | |
| 243 | // SHIFTED|=0xFF000000; | |
| 244 | } | |
| 245 | else if(SHIFT==3) | |
| 246 | { | |
| 247 | SHIFTED=ACC; | |
| 248 | SHIFTED<<=8; | |
| 249 | SHIFTED>>=8; | |
| 250 | //SHIFTED&=0x00FFFFFF; | |
| 251 | //if(SHIFTED&0x00800000) | |
| 252 | // SHIFTED|=0xFF000000; | |
| 253 | } | |
| 254 | ||
| 255 | //ACCUM | |
| 256 | Y<<=19; | |
| 257 | Y>>=19; | |
| 258 | //if(Y&0x1000) | |
| 259 | // Y|=0xFFFFF000; | |
| 260 | ||
| 261 | v=(((INT64) X*(INT64) Y)>>12); | |
| 262 | ACC=(int) v+B; | |
| 263 | ||
| 264 | if(TWT) | |
| 265 | DSP->TEMP[(TWA+DSP->DEC)&0x7F]=SHIFTED; | |
| 266 | ||
| 267 | if(FRCL) | |
| 268 | { | |
| 269 | if(SHIFT==3) | |
| 270 | FRC_REG=SHIFTED&0x0FFF; | |
| 271 | else | |
| 272 | FRC_REG=(SHIFTED>>11)&0x1FFF; | |
| 273 | } | |
| 274 | ||
| 275 | if(MRD || MWT) | |
| 276 | //if(0) | |
| 277 | { | |
| 278 | ADDR=DSP->MADRS[MASA<<1]; | |
| 279 | if(!TABLE) | |
| 280 | ADDR+=DSP->DEC; | |
| 281 | if(ADREB) | |
| 282 | ADDR+=ADRS_REG&0x0FFF; | |
| 283 | if(NXADR) | |
| 284 | ADDR++; | |
| 285 | if(!TABLE) | |
| 286 | ADDR&=DSP->RBL-1; | |
| 287 | else | |
| 288 | ADDR&=0xFFFF; | |
| 289 | //ADDR<<=1; | |
| 290 | //ADDR+=DSP->RBP<<13; | |
| 291 | //MEMVAL=DSP->AICARAM[ADDR>>1]; | |
| 292 | ADDR+=DSP->RBP<<10; | |
| 293 | if(MRD && (step&1)) //memory only allowed on odd? DoA inserts NOPs on even | |
| 294 | { | |
| 295 | if(NOFL) | |
| 296 | MEMVAL=DSP->AICARAM[ADDR]<<8; | |
| 297 | else | |
| 298 | MEMVAL=UNPACK(DSP->AICARAM[ADDR]); | |
| 299 | } | |
| 300 | if(MWT && (step&1)) | |
| 301 | { | |
| 302 | if(NOFL) | |
| 303 | DSP->AICARAM[ADDR]=SHIFTED>>8; | |
| 304 | else | |
| 305 | DSP->AICARAM[ADDR]=PACK(SHIFTED); | |
| 306 | } | |
| 307 | } | |
| 308 | ||
| 309 | if(ADRL) | |
| 310 | { | |
| 311 | if(SHIFT==3) | |
| 312 | ADRS_REG=(SHIFTED>>12)&0xFFF; | |
| 313 | else | |
| 314 | ADRS_REG=(INPUTS>>16); | |
| 315 | } | |
| 316 | ||
| 317 | if(EWT) | |
| 318 | DSP->EFREG[EWA]+=SHIFTED>>8; | |
| 319 | ||
| 320 | } | |
| 321 | --DSP->DEC; | |
| 322 | memset(DSP->MIXS,0,4*16); | |
| 323 | // if(f) | |
| 324 | // fclose(f); | |
| 325 | } | |
| 326 | ||
| 327 | void AICADSP_SetSample(struct _AICADSP *DSP,INT32 sample,int SEL,int MXL) | |
| 328 | { | |
| 329 | //DSP->MIXS[SEL]+=sample<<(MXL+1)/*7*/; | |
| 330 | DSP->MIXS[SEL]+=sample; | |
| 331 | // if(MXL) | |
| 332 | // int a=1; | |
| 333 | } | |
| 334 | ||
| 335 | void AICADSP_Start(struct _AICADSP *DSP) | |
| 336 | { | |
| 337 | int i; | |
| 338 | DSP->Stopped=0; | |
| 339 | for(i=127;i>=0;--i) | |
| 340 | { | |
| 341 | UINT16 *IPtr=DSP->MPRO+i*8; | |
| 342 | ||
| 343 | if(IPtr[0]!=0 || IPtr[2]!=0 || IPtr[4]!=0 || IPtr[6]!=0) | |
| 344 | break; | |
| 345 | } | |
| 346 | DSP->LastStep=i+1; | |
| 347 | ||
| 348 | } |
| r0 | r1712 | |
|---|---|---|
| 1 | #ifndef AICADSP_H | |
| 2 | #define AICADSP_H | |
| 3 | ||
| 4 | //the DSP Context | |
| 5 | struct _AICADSP | |
| 6 | { | |
| 7 | //Config | |
| 8 | UINT16 *AICARAM; | |
| 9 | UINT32 AICARAM_LENGTH; | |
| 10 | UINT32 RBP; //Ring buf pointer | |
| 11 | UINT32 RBL; //Delay ram (Ring buffer) size in words | |
| 12 | ||
| 13 | //context | |
| 14 | ||
| 15 | INT16 COEF[128*2]; //16 bit signed | |
| 16 | UINT16 MADRS[64*2]; //offsets (in words), 16 bit | |
| 17 | UINT16 MPRO[128*4*2*2]; //128 steps 64 bit | |
| 18 | INT32 TEMP[128]; //TEMP regs,24 bit signed | |
| 19 | INT32 MEMS[32]; //MEMS regs,24 bit signed | |
| 20 | UINT32 DEC; | |
| 21 | ||
| 22 | //input | |
| 23 | INT32 MIXS[16]; //MIXS, 24 bit signed | |
| 24 | INT16 EXTS[2]; //External inputs (CDDA) 16 bit signed | |
| 25 | ||
| 26 | //output | |
| 27 | INT16 EFREG[16]; //EFREG, 16 bit signed | |
| 28 | ||
| 29 | int Stopped; | |
| 30 | int LastStep; | |
| 31 | }; | |
| 32 | ||
| 33 | void AICADSP_Init(struct _AICADSP *DSP); | |
| 34 | void AICADSP_SetSample(struct _AICADSP *DSP, INT32 sample, INT32 SEL, INT32 MXL); | |
| 35 | void AICADSP_Step(struct _AICADSP *DSP); | |
| 36 | void AICADSP_Start(struct _AICADSP *DSP); | |
| 37 | #endif |
| r0 | r1712 | |
|---|---|---|
| 1 | /* | |
| 2 | Sega/Yamaha AICA emulation | |
| 3 | By ElSemi, kingshriek, Deunan Knute, and R. Belmont | |
| 4 | ||
| 5 | This is effectively a 64-voice SCSP, with the following differences: | |
| 6 | - No FM mode | |
| 7 | - A third sample format (ADPCM) has been added | |
| 8 | - Some minor other tweeks (no EGHOLD, slighly more capable DSP) | |
| 9 | */ | |
| 10 | ||
| 11 | #include "sndintrf.h" | |
| 12 | #include "streams.h" | |
| 13 | #include "cpuintrf.h" | |
| 14 | #include "deprecat.h" | |
| 15 | #include "aica.h" | |
| 16 | #include "aicadsp.h" | |
| 17 | ||
| 18 | #define ICLIP16(x) (x<-32768)?-32768:((x>32767)?32767:x) | |
| 19 | ||
| 20 | #define SHIFT 12 | |
| 21 | #define FIX(v) ((UINT32) ((float) (1<<SHIFT)*(v))) | |
| 22 | ||
| 23 | #define EG_SHIFT 16 | |
| 24 | ||
| 25 | // include the LFO handling code | |
| 26 | #include "aicalfo.c" | |
| 27 | ||
| 28 | /* | |
| 29 | AICA features 64 programmable slots | |
| 30 | that can generate PCM and ADPCM (from ROM/RAM) sound | |
| 31 | */ | |
| 32 | ||
| 33 | //SLOT PARAMETERS | |
| 34 | #define KEYONEX(slot) ((slot->udata.data[0x0]>>0x0)&0x8000) | |
| 35 | #define KEYONB(slot) ((slot->udata.data[0x0]>>0x0)&0x4000) | |
| 36 | #define SSCTL(slot) ((slot->udata.data[0x0]>>0xA)&0x0001) | |
| 37 | #define LPCTL(slot) ((slot->udata.data[0x0]>>0x9)&0x0001) | |
| 38 | #define PCMS(slot) ((slot->udata.data[0x0]>>0x7)&0x0003) | |
| 39 | ||
| 40 | #define SA(slot) (((slot->udata.data[0x0]&0x3F)<<16)|(slot->udata.data[0x4/2])) | |
| 41 | ||
| 42 | #define LSA(slot) (slot->udata.data[0x8/2]) | |
| 43 | ||
| 44 | #define LEA(slot) (slot->udata.data[0xc/2]) | |
| 45 | ||
| 46 | #define D2R(slot) ((slot->udata.data[0x10/2]>>0xB)&0x001F) | |
| 47 | #define D1R(slot) ((slot->udata.data[0x10/2]>>0x6)&0x001F) | |
| 48 | #define AR(slot) ((slot->udata.data[0x10/2]>>0x0)&0x001F) | |
| 49 | ||
| 50 | #define LPSLNK(slot) ((slot->udata.data[0x14/2]>>0x0)&0x4000) | |
| 51 | #define KRS(slot) ((slot->udata.data[0x14/2]>>0xA)&0x000F) | |
| 52 | #define DL(slot) ((slot->udata.data[0x14/2]>>0x5)&0x001F) | |
| 53 | #define RR(slot) ((slot->udata.data[0x14/2]>>0x0)&0x001F) | |
| 54 | ||
| 55 | #define TL(slot) ((slot->udata.data[0x28/2]>>0x8)&0x00FF) | |
| 56 | ||
| 57 | #define OCT(slot) ((slot->udata.data[0x18/2]>>0xB)&0x000F) | |
| 58 | #define FNS(slot) ((slot->udata.data[0x18/2]>>0x0)&0x03FF) | |
| 59 | ||
| 60 | #define LFORE(slot) ((slot->udata.data[0x1c/2]>>0x0)&0x8000) | |
| 61 | #define LFOF(slot) ((slot->udata.data[0x1c/2]>>0xA)&0x001F) | |
| 62 | #define PLFOWS(slot) ((slot->udata.data[0x1c/2]>>0x8)&0x0003) | |
| 63 | #define PLFOS(slot) ((slot->udata.data[0x1c/2]>>0x5)&0x0007) | |
| 64 | #define ALFOWS(slot) ((slot->udata.data[0x1c/2]>>0x3)&0x0003) | |
| 65 | #define ALFOS(slot) ((slot->udata.data[0x1c/2]>>0x0)&0x0007) | |
| 66 | ||
| 67 | #define ISEL(slot) ((slot->udata.data[0x20/2]>>0x0)&0x000F) | |
| 68 | #define IMXL(slot) ((slot->udata.data[0x20/2]>>0x4)&0x000F) | |
| 69 | ||
| 70 | #define DISDL(slot) ((slot->udata.data[0x24/2]>>0x8)&0x000F) | |
| 71 | #define DIPAN(slot) ((slot->udata.data[0x24/2]>>0x0)&0x001F) | |
| 72 | ||
| 73 | #define EFSDL(slot) ((AICA->EFSPAN[slot*4]>>8)&0x000f) | |
| 74 | #define EFPAN(slot) ((AICA->EFSPAN[slot*4]>>0)&0x001f) | |
| 75 | ||
| 76 | //Envelope times in ms | |
| 77 | static const double ARTimes[64]={100000/*infinity*/,100000/*infinity*/,8100.0,6900.0,6000.0,4800.0,4000.0,3400.0,3000.0,2400.0,2000.0,1700.0,1500.0, | |
| 78 | 1200.0,1000.0,860.0,760.0,600.0,500.0,430.0,380.0,300.0,250.0,220.0,190.0,150.0,130.0,110.0,95.0, | |
| 79 | 76.0,63.0,55.0,47.0,38.0,31.0,27.0,24.0,19.0,15.0,13.0,12.0,9.4,7.9,6.8,6.0,4.7,3.8,3.4,3.0,2.4, | |
| 80 | 2.0,1.8,1.6,1.3,1.1,0.93,0.85,0.65,0.53,0.44,0.40,0.35,0.0,0.0}; | |
| 81 | static const double DRTimes[64]={100000/*infinity*/,100000/*infinity*/,118200.0,101300.0,88600.0,70900.0,59100.0,50700.0,44300.0,35500.0,29600.0,25300.0,22200.0,17700.0, | |
| 82 | 14800.0,12700.0,11100.0,8900.0,7400.0,6300.0,5500.0,4400.0,3700.0,3200.0,2800.0,2200.0,1800.0,1600.0,1400.0,1100.0, | |
| 83 | 920.0,790.0,690.0,550.0,460.0,390.0,340.0,270.0,230.0,200.0,170.0,140.0,110.0,98.0,85.0,68.0,57.0,49.0,43.0,34.0, | |
| 84 | 28.0,25.0,22.0,18.0,14.0,12.0,11.0,8.5,7.1,6.1,5.4,4.3,3.6,3.1}; | |
| 85 | static UINT32 FNS_Table[0x400]; | |
| 86 | static INT32 EG_TABLE[0x400]; | |
| 87 | ||
| 88 | typedef enum {ATTACK,DECAY1,DECAY2,RELEASE} _STATE; | |
| 89 | struct _EG | |
| 90 | { | |
| 91 | int volume; // | |
| 92 | _STATE state; | |
| 93 | int step; | |
| 94 | //step vals | |
| 95 | int AR; //Attack | |
| 96 | int D1R; //Decay1 | |
| 97 | int D2R; //Decay2 | |
| 98 | int RR; //Release | |
| 99 | ||
| 100 | int DL; //Decay level | |
| 101 | UINT8 LPLINK; | |
| 102 | }; | |
| 103 | ||
| 104 | struct _SLOT | |
| 105 | { | |
| 106 | union | |
| 107 | { | |
| 108 | UINT16 data[0x40]; //only 0x1a bytes used | |
| 109 | UINT8 datab[0x80]; | |
| 110 | } udata; | |
| 111 | UINT8 active; //this slot is currently playing | |
| 112 | UINT8 *base; //samples base address | |
| 113 | UINT32 prv_addr; // previous play address (for ADPCM) | |
| 114 | UINT32 cur_addr; //current play address (24.8) | |
| 115 | UINT32 nxt_addr; //next play address | |
| 116 | UINT32 step; //pitch step (24.8) | |
| 117 | UINT8 Backwards; //the wave is playing backwards | |
| 118 | struct _EG EG; //Envelope | |
| 119 | struct _LFO PLFO; //Phase LFO | |
| 120 | struct _LFO ALFO; //Amplitude LFO | |
| 121 | int slot; | |
| 122 | int cur_sample; //current ADPCM sample | |
| 123 | int nxt_sample; //next ADPCM sample | |
| 124 | int cur_quant; //current ADPCM step | |
| 125 | int nxt_quant; //next ADPCM step | |
| 126 | int curstep, nxtstep; | |
| 127 | int cur_lpquant, cur_lpsample, cur_lpstep; | |
| 128 | UINT8 *adbase, *nxtbase, *adlpbase; | |
| 129 | }; | |
| 130 | ||
| 131 | ||
| 132 | #define MEM4B(aica) ((aica->udata.data[0]>>0x0)&0x0200) | |
| 133 | #define DAC18B(aica) ((aica->udata.data[0]>>0x0)&0x0100) | |
| 134 | #define MVOL(aica) ((aica->udata.data[0]>>0x0)&0x000F) | |
| 135 | #define RBL(aica) ((aica->udata.data[2]>>0xD)&0x0003) | |
| 136 | #define RBP(aica) ((aica->udata.data[2]>>0x0)&0x0fff) | |
| 137 | #define MOFULL(aica) ((aica->udata.data[4]>>0x0)&0x1000) | |
| 138 | #define MOEMPTY(aica) ((aica->udata.data[4]>>0x0)&0x0800) | |
| 139 | #define MIOVF(aica) ((aica->udata.data[4]>>0x0)&0x0400) | |
| 140 | #define MIFULL(aica) ((aica->udata.data[4]>>0x0)&0x0200) | |
| 141 | #define MIEMPTY(aica) ((aica->udata.data[4]>>0x0)&0x0100) | |
| 142 | ||
| 143 | #define SCILV0(aica) ((aica->udata.data[0xa8/2]>>0x0)&0xff) | |
| 144 | #define SCILV1(aica) ((aica->udata.data[0xac/2]>>0x0)&0xff) | |
| 145 | #define SCILV2(aica) ((aica->udata.data[0xb0/2]>>0x0)&0xff) | |
| 146 | ||
| 147 | #define SCIEX0 0 | |
| 148 | #define SCIEX1 1 | |
| 149 | #define SCIEX2 2 | |
| 150 | #define SCIMID 3 | |
| 151 | #define SCIDMA 4 | |
| 152 | #define SCIIRQ 5 | |
| 153 | #define SCITMA 6 | |
| 154 | #define SCITMB 7 | |
| 155 | ||
| 156 | struct _AICA | |
| 157 | { | |
| 158 | union | |
| 159 | { | |
| 160 | UINT16 data[0xc0/2]; | |
| 161 | UINT8 datab[0xc0]; | |
| 162 | } udata; | |
| 163 | UINT16 IRQL, IRQR; | |
| 164 | UINT16 EFSPAN[0x48]; | |
| 165 | struct _SLOT Slots[64]; | |
| 166 | signed short RINGBUF[64]; | |
| 167 | unsigned char BUFPTR; | |
| 168 | unsigned char *AICARAM; | |
| 169 | UINT32 AICARAM_LENGTH, RAM_MASK, RAM_MASK16; | |
| 170 | char Master; | |
| 171 | void (*IntARMCB)(int irq); | |
| 172 | sound_stream * stream; | |
| 173 | ||
| 174 | INT32 *buffertmpl, *buffertmpr; | |
| 175 | ||
| 176 | UINT32 IrqTimA; | |
| 177 | UINT32 IrqTimBC; | |
| 178 | UINT32 IrqMidi; | |
| 179 | ||
| 180 | UINT8 MidiOutW,MidiOutR; | |
| 181 | UINT8 MidiStack[16]; | |
| 182 | UINT8 MidiW,MidiR; | |
| 183 | ||
| 184 | int LPANTABLE[0x20000]; | |
| 185 | int RPANTABLE[0x20000]; | |
| 186 | ||
| 187 | int TimPris[3]; | |
| 188 | int TimCnt[3]; | |
| 189 | ||
| 190 | // timers | |
| 191 | emu_timer *timerA, *timerB, *timerC; | |
| 192 | ||
| 193 | // DMA stuff | |
| 194 | UINT32 aica_dmea; | |
| 195 | UINT16 aica_drga; | |
| 196 | UINT16 aica_dtlg; | |
| 197 | ||
| 198 | int ARTABLE[64], DRTABLE[64]; | |
| 199 | ||
| 200 | struct _AICADSP DSP; | |
| 201 | }; | |
| 202 | ||
| 203 | static const float SDLT[16]={-1000000.0,-42.0,-39.0,-36.0,-33.0,-30.0,-27.0,-24.0,-21.0,-18.0,-15.0,-12.0,-9.0,-6.0,-3.0,0.0}; | |
| 204 | ||
| 205 | static stream_sample_t *bufferl; | |
| 206 | static stream_sample_t *bufferr; | |
| 207 | ||
| 208 | static int length; | |
| 209 | ||
| 210 | static signed short *RBUFDST; //this points to where the sample will be stored in the RingBuf | |
| 211 | ||
| 212 | static unsigned char DecodeSCI(struct _AICA *AICA, unsigned char irq) | |
| 213 | { | |
| 214 | unsigned char SCI=0; | |
| 215 | unsigned char v; | |
| 216 | v=(SCILV0((AICA))&(1<<irq))?1:0; | |
| 217 | SCI|=v; | |
| 218 | v=(SCILV1((AICA))&(1<<irq))?1:0; | |
| 219 | SCI|=v<<1; | |
| 220 | v=(SCILV2((AICA))&(1<<irq))?1:0; | |
| 221 | SCI|=v<<2; | |
| 222 | return SCI; | |
| 223 | } | |
| 224 | ||
| 225 | static void ResetInterrupts(struct _AICA *AICA) | |
| 226 | { | |
| 227 | #if 0 | |
| 228 | UINT32 reset = AICA->udata.data[0xa4/2]; | |
| 229 | if (reset & 0x40) | |
| 230 | AICA->IntARMCB(-AICA->IrqTimA); | |
| 231 | if (reset & 0x180) | |
| 232 | AICA->IntARMCB(-AICA->IrqTimBC); | |
| 233 | #endif | |
| 234 | } | |
| 235 | ||
| 236 | static void CheckPendingIRQ(struct _AICA *AICA) | |
| 237 | { | |
| 238 | UINT32 pend=AICA->udata.data[0xa0/2]; | |
| 239 | UINT32 en=AICA->udata.data[0x9c/2]; | |
| 240 | if(AICA->MidiW!=AICA->MidiR) | |
| 241 | { | |
| 242 | AICA->IRQL = AICA->IrqMidi; | |
| 243 | AICA->IntARMCB(1); | |
| 244 | return; | |
| 245 | } | |
| 246 | if(!pend) | |
| 247 | return; | |
| 248 | if(pend&0x40) | |
| 249 | if(en&0x40) | |
| 250 | { | |
| 251 | AICA->IRQL = AICA->IrqTimA; | |
| 252 | AICA->IntARMCB(1); | |
| 253 | return; | |
| 254 | } | |
| 255 | if(pend&0x80) | |
| 256 | if(en&0x80) | |
| 257 | { | |
| 258 | AICA->IRQL = AICA->IrqTimBC; | |
| 259 | AICA->IntARMCB(1); | |
| 260 | return; | |
| 261 | } | |
| 262 | if(pend&0x100) | |
| 263 | if(en&0x100) | |
| 264 | { | |
| 265 | AICA->IRQL = AICA->IrqTimBC; | |
| 266 | AICA->IntARMCB(1); | |
| 267 | return; | |
| 268 | } | |
| 269 | } | |
| 270 | ||
| 271 | static TIMER_CALLBACK( timerA_cb ) | |
| 272 | { | |
| 273 | struct _AICA *AICA = (struct _AICA *)ptr; | |
| 274 | ||
| 275 | AICA->TimCnt[0] = 0xFFFF; | |
| 276 | AICA->udata.data[0xa0/2]|=0x40; | |
| 277 | AICA->udata.data[0x90/2]&=0xff00; | |
| 278 | AICA->udata.data[0x90/2]|=AICA->TimCnt[0]>>8; | |
| 279 | ||
| 280 | CheckPendingIRQ(AICA); | |
| 281 | } | |
| 282 | ||
| 283 | static TIMER_CALLBACK( timerB_cb ) | |
| 284 | { | |
| 285 | struct _AICA *AICA = (struct _AICA *)ptr; | |
| 286 | ||
| 287 | AICA->TimCnt[1] = 0xFFFF; | |
| 288 | AICA->udata.data[0xa0/2]|=0x80; | |
| 289 | AICA->udata.data[0x94/2]&=0xff00; | |
| 290 | AICA->udata.data[0x94/2]|=AICA->TimCnt[1]>>8; | |
| 291 | ||
| 292 | CheckPendingIRQ(AICA); | |
| 293 | } | |
| 294 | ||
| 295 | static TIMER_CALLBACK( timerC_cb ) | |
| 296 | { | |
| 297 | struct _AICA *AICA = (struct _AICA *)ptr; | |
| 298 | ||
| 299 | AICA->TimCnt[2] = 0xFFFF; | |
| 300 | AICA->udata.data[0xa0/2]|=0x100; | |
| 301 | AICA->udata.data[0x98/2]&=0xff00; | |
| 302 | AICA->udata.data[0x98/2]|=AICA->TimCnt[2]>>8; | |
| 303 | ||
| 304 | CheckPendingIRQ(AICA); | |
| 305 | } | |
| 306 | ||
| 307 | static int Get_AR(struct _AICA *AICA,int base,int R) | |
| 308 | { | |
| 309 | int Rate=base+(R<<1); | |
| 310 | if(Rate>63) Rate=63; | |
| 311 | if(Rate<0) Rate=0; | |
| 312 | return AICA->ARTABLE[Rate]; | |
| 313 | } | |
| 314 | ||
| 315 | static int Get_DR(struct _AICA *AICA,int base,int R) | |
| 316 | { | |
| 317 | int Rate=base+(R<<1); | |
| 318 | if(Rate>63) Rate=63; | |
| 319 | if(Rate<0) Rate=0; | |
| 320 | return AICA->DRTABLE[Rate]; | |
| 321 | } | |
| 322 | ||
| 323 | static int Get_RR(struct _AICA *AICA,int base,int R) | |
| 324 | { | |
| 325 | int Rate=base+(R<<1); | |
| 326 | if(Rate>63) Rate=63; | |
| 327 | if(Rate<0) Rate=0; | |
| 328 | return AICA->DRTABLE[Rate]; | |
| 329 | } | |
| 330 | ||
| 331 | static void Compute_EG(struct _AICA *AICA,struct _SLOT *slot) | |
| 332 | { | |
| 333 | int octave=OCT(slot); | |
| 334 | int rate; | |
| 335 | if(octave&8) octave=octave-16; | |
| 336 | if(KRS(slot)!=0xf) | |
| 337 | rate=octave+2*KRS(slot)+((FNS(slot)>>9)&1); | |
| 338 | else | |
| 339 | rate=0; //rate=((FNS(slot)>>9)&1); | |
| 340 | ||
| 341 | slot->EG.volume=0x17f<<EG_SHIFT; | |
| 342 | slot->EG.AR=Get_AR(AICA,rate,AR(slot)); | |
| 343 | slot->EG.D1R=Get_DR(AICA,rate,D1R(slot)); | |
| 344 | slot->EG.D2R=Get_DR(AICA,rate,D2R(slot)); | |
| 345 | slot->EG.RR=Get_RR(AICA,rate,RR(slot)); | |
| 346 | slot->EG.DL=0x1f-DL(slot); | |
| 347 | } | |
| 348 | ||
| 349 | static void AICA_StopSlot(struct _SLOT *slot,int keyoff); | |
| 350 | ||
| 351 | static int EG_Update(struct _SLOT *slot) | |
| 352 | { | |
| 353 | switch(slot->EG.state) | |
| 354 | { | |
| 355 | case ATTACK: | |
| 356 | slot->EG.volume+=slot->EG.AR; | |
| 357 | if(slot->EG.volume>=(0x3ff<<EG_SHIFT)) | |
| 358 | { | |
| 359 | if (!LPSLNK(slot)) | |
| 360 | { | |
| 361 | slot->EG.state=DECAY1; | |
| 362 | if(slot->EG.D1R>=(1024<<EG_SHIFT)) //Skip DECAY1, go directly to DECAY2 | |
| 363 | slot->EG.state=DECAY2; | |
| 364 | } | |
| 365 | slot->EG.volume=0x3ff<<EG_SHIFT; | |
| 366 | } | |
| 367 | break; | |
| 368 | case DECAY1: | |
| 369 | slot->EG.volume-=slot->EG.D1R; | |
| 370 | if(slot->EG.volume<=0) | |
| 371 | slot->EG.volume=0; | |
| 372 | if(slot->EG.volume>>(EG_SHIFT+5)<slot->EG.DL) | |
| 373 | slot->EG.state=DECAY2; | |
| 374 | break; | |
| 375 | case DECAY2: | |
| 376 | if(D2R(slot)==0) | |
| 377 | return (slot->EG.volume>>EG_SHIFT)<<(SHIFT-10); | |
| 378 | slot->EG.volume-=slot->EG.D2R; | |
| 379 | if(slot->EG.volume<=0) | |
| 380 | slot->EG.volume=0; | |
| 381 | ||
| 382 | break; | |
| 383 | case RELEASE: | |
| 384 | slot->EG.volume-=slot->EG.RR; | |
| 385 | if(slot->EG.volume<=0) | |
| 386 | { | |
| 387 | slot->EG.volume=0; | |
| 388 | AICA_StopSlot(slot,0); | |
| 389 | // slot->EG.volume=0x17f<<EG_SHIFT; | |
| 390 | // slot->EG.state=ATTACK; | |
| 391 | } | |
| 392 | break; | |
| 393 | default: | |
| 394 | return 1<<SHIFT; | |
| 395 | } | |
| 396 | return (slot->EG.volume>>EG_SHIFT)<<(SHIFT-10); | |
| 397 | } | |
| 398 | ||
| 399 | static UINT32 AICA_Step(struct _SLOT *slot) | |
| 400 | { | |
| 401 | int octave=OCT(slot); | |
| 402 | UINT32 Fn; | |
| 403 | ||
| 404 | Fn=(FNS_Table[FNS(slot)]); //24.8 | |
| 405 | if(octave&8) | |
| 406 | Fn>>=(16-octave); | |
| 407 | else | |
| 408 | Fn<<=octave; | |
| 409 | ||
| 410 | return Fn/(44100); | |
| 411 | } | |
| 412 | ||
| 413 | ||
| 414 | static void Compute_LFO(struct _SLOT *slot) | |
| 415 | { | |
| 416 | if(PLFOS(slot)!=0) | |
| 417 | AICALFO_ComputeStep(&(slot->PLFO),LFOF(slot),PLFOWS(slot),PLFOS(slot),0); | |
| 418 | if(ALFOS(slot)!=0) | |
| 419 | AICALFO_ComputeStep(&(slot->ALFO),LFOF(slot),ALFOWS(slot),ALFOS(slot),1); | |
| 420 | } | |
| 421 | ||
| 422 | #define ADPCMSHIFT 8 | |
| 423 | #define ADFIX(f) (int) ((float) f*(float) (1<<ADPCMSHIFT)) | |
| 424 | ||
| 425 | const int TableQuant[8]={ADFIX(0.8984375),ADFIX(0.8984375),ADFIX(0.8984375),ADFIX(0.8984375),ADFIX(1.19921875),ADFIX(1.59765625),ADFIX(2.0),ADFIX(2.3984375)}; | |
| 426 | const int quant_mul[16]= { 1, 3, 5, 7, 9, 11, 13, 15, -1, -3, -5, -7, -9, -11, -13, -15}; | |
| 427 | ||
| 428 | void InitADPCM(int *PrevSignal, int *PrevQuant) | |
| 429 | { | |
| 430 | *PrevSignal=0; | |
| 431 | *PrevQuant=0x7f; | |
| 432 | } | |
| 433 | ||
| 434 | signed short INLINE DecodeADPCM(int *PrevSignal, unsigned char Delta, int *PrevQuant) | |
| 435 | { | |
| 436 | *PrevSignal+=(*PrevQuant*quant_mul[Delta&15])>>(3); | |
| 437 | *PrevSignal=ICLIP16(*PrevSignal); | |
| 438 | *PrevQuant=(*PrevQuant*TableQuant[Delta&7])>>ADPCMSHIFT; | |
| 439 | *PrevQuant=(*PrevQuant<0x7f)?0x7f:((*PrevQuant>0x6000)?0x6000:*PrevQuant); | |
| 440 | return *PrevSignal; | |
| 441 | } | |
| 442 | ||
| 443 | static void AICA_StartSlot(struct _AICA *AICA, struct _SLOT *slot) | |
| 444 | { | |
| 445 | UINT64 start_offset; | |
| 446 | ||
| 447 | slot->active=1; | |
| 448 | slot->Backwards=0; | |
| 449 | slot->cur_addr=0; slot->nxt_addr=1<<SHIFT; slot->prv_addr=-1; | |
| 450 | start_offset = SA(slot); // AICA can play 16-bit samples from any boundry | |
| 451 | slot->base=&AICA->AICARAM[start_offset]; | |
| 452 | slot->step=AICA_Step(slot); | |
| 453 | Compute_EG(AICA,slot); | |
| 454 | slot->EG.state=ATTACK; | |
| 455 | slot->EG.volume=0x17f<<EG_SHIFT; | |
| 456 | Compute_LFO(slot); | |
| 457 | ||
| 458 | if (PCMS(slot) >= 2) | |
| 459 | { | |
| 460 | UINT8 *base; | |
| 461 | UINT32 curstep, steps_to_go; | |
| 462 | ||
| 463 | slot->curstep = slot->nxtstep = 0; | |
| 464 | slot->adbase = slot->nxtbase = (unsigned char *) (AICA->AICARAM+((SA(slot))&0x7fffff)); | |
| 465 | InitADPCM(&(slot->cur_sample), &(slot->cur_quant)); | |
| 466 | InitADPCM(&(slot->nxt_sample), &(slot->nxt_quant)); | |
| 467 | InitADPCM(&(slot->cur_lpsample), &(slot->cur_lpquant)); | |
| 468 | ||
| 469 | // walk to the ADPCM state at LSA | |
| 470 | curstep = 0; | |
| 471 | base = slot->adbase; | |
| 472 | steps_to_go = LSA(slot); | |
| 473 | ||
| 474 | while (curstep < steps_to_go) | |
| 475 | { | |
| 476 | int shift1, delta1; | |
| 477 | shift1 = 4*((curstep&1)); | |
| 478 | delta1 = (*base>>shift1)&0xf; | |
| 479 | DecodeADPCM(&(slot->cur_lpsample),delta1,&(slot->cur_lpquant)); | |
| 480 | curstep++; | |
| 481 | if (!(curstep & 1)) | |
| 482 | { | |
| 483 | base++; | |
| 484 | } | |
| 485 | } | |
| 486 | ||
| 487 | slot->cur_lpstep = curstep; | |
| 488 | slot->adlpbase = base; | |
| 489 | } | |
| 490 | } | |
| 491 | ||
| 492 | static void AICA_StopSlot(struct _SLOT *slot,int keyoff) | |
| 493 | { | |
| 494 | if(keyoff /*&& slot->EG.state!=RELEASE*/) | |
| 495 | { | |
| 496 | slot->EG.state=RELEASE; | |
| 497 | } | |
| 498 | else | |
| 499 | { | |
| 500 | slot->active=0; | |
| 501 | } | |
| 502 | slot->udata.data[0]&=~0x4000; | |
| 503 | } | |
| 504 | ||
| 505 | #define log_base_2(n) (log((float) n)/log((float) 2)) | |
| 506 | ||
| 507 | static void AICA_Init(struct _AICA *AICA, const struct AICAinterface *intf, int sndindex) | |
| 508 | { | |
| 509 | int i; | |
| 510 | ||
| 511 | AICA->IrqTimA = AICA->IrqTimBC = AICA->IrqMidi = 0; | |
| 512 | AICA->MidiR=AICA->MidiW=0; | |
| 513 | AICA->MidiOutR=AICA->MidiOutW=0; | |
| 514 | ||
| 515 | // get AICA RAM | |
| 516 | { | |
| 517 | memset(AICA,0,sizeof(*AICA)); | |
| 518 | ||
| 519 | if (sndindex == 0) | |
| 520 | { | |
| 521 | AICA->Master=1; | |
| 522 | } | |
| 523 | else | |
| 524 | { | |
| 525 | AICA->Master=0; | |
| 526 | } | |
| 527 | ||
| 528 | if (intf->region) | |
| 529 | { | |
| 530 | AICA->AICARAM = memory_region(intf->region); | |
| 531 | AICA->AICARAM += intf->roffset; | |
| 532 | AICA->AICARAM_LENGTH = memory_region_length(intf->region); | |
| 533 | AICA->RAM_MASK = AICA->AICARAM_LENGTH-1; | |
| 534 | AICA->RAM_MASK16 = AICA->RAM_MASK & 0x7ffffe; | |
| 535 | AICA->DSP.AICARAM = (UINT16 *)AICA->AICARAM; | |
| 536 | AICA->DSP.AICARAM_LENGTH = memory_region_length(intf->region)/2; | |
| 537 | } | |
| 538 | } | |
| 539 | ||
| 540 | AICA->timerA = timer_alloc(timerA_cb, AICA); | |
| 541 | AICA->timerB = timer_alloc(timerB_cb, AICA); | |
| 542 | AICA->timerC = timer_alloc(timerC_cb, AICA); | |
| 543 | ||
| 544 | for(i=0;i<0x400;++i) | |
| 545 | { | |
| 546 | float fcent=(double) 1200.0*log_base_2((double)(((double) 1024.0+(double)i)/(double)1024.0)); | |
| 547 | fcent=(double) 44100.0*pow(2.0,fcent/1200.0); | |
| 548 | FNS_Table[i]=(float) (1<<SHIFT) *fcent; | |
| 549 | } | |
| 550 | ||
| 551 | for(i=0;i<0x400;++i) | |
| 552 | { | |
| 553 | float envDB=((float)(3*(i-0x3ff)))/32.0; | |
| 554 | float scale=(float)(1<<SHIFT); | |
| 555 | EG_TABLE[i]=(INT32)(pow(10.0,envDB/20.0)*scale); | |
| 556 | } | |
| 557 | ||
| 558 | for(i=0;i<0x20000;++i) | |
| 559 | { | |
| 560 | int iTL =(i>>0x0)&0xff; | |
| 561 | int iPAN=(i>>0x8)&0x1f; | |
| 562 | int iSDL=(i>>0xD)&0x0F; | |
| 563 | float TL=1.0; | |
| 564 | float SegaDB=0; | |
| 565 | float fSDL=1.0; | |
| 566 | float PAN=1.0; | |
| 567 | float LPAN,RPAN; | |
| 568 | ||
| 569 | if(iTL&0x01) SegaDB-=0.4f; | |
| 570 | if(iTL&0x02) SegaDB-=0.8f; | |
| 571 | if(iTL&0x04) SegaDB-=1.5f; | |
| 572 | if(iTL&0x08) SegaDB-=3.0f; | |
| 573 | if(iTL&0x10) SegaDB-=6.0f; | |
| 574 | if(iTL&0x20) SegaDB-=12.0f; | |
| 575 | if(iTL&0x40) SegaDB-=24.0f; | |
| 576 | if(iTL&0x80) SegaDB-=48.0f; | |
| 577 | ||
| 578 | TL=pow(10.0,SegaDB/20.0); | |
| 579 | ||
| 580 | SegaDB=0; | |
| 581 | if(iPAN&0x1) SegaDB-=3.0f; | |
| 582 | if(iPAN&0x2) SegaDB-=6.0f; | |
| 583 | if(iPAN&0x4) SegaDB-=12.0f; | |
| 584 | if(iPAN&0x8) SegaDB-=24.0f; | |
| 585 | ||
| 586 | if((iPAN&0xf)==0xf) PAN=0.0; | |
| 587 | else PAN=pow(10.0,SegaDB/20.0); | |
| 588 | ||
| 589 | if(iPAN<0x10) | |
| 590 | { | |
| 591 | LPAN=PAN; | |
| 592 | RPAN=1.0; | |
| 593 | } | |
| 594 | else | |
| 595 | { | |
| 596 | RPAN=PAN; | |
| 597 | LPAN=1.0; | |
| 598 | } | |
| 599 | ||
| 600 | if(iSDL) | |
| 601 | fSDL=pow(10.0,(SDLT[iSDL])/20.0); | |
| 602 | else | |
| 603 | fSDL=0.0; | |
| 604 | ||
| 605 | AICA->LPANTABLE[i]=FIX((4.0*LPAN*TL*fSDL)); | |
| 606 | AICA->RPANTABLE[i]=FIX((4.0*RPAN*TL*fSDL)); | |
| 607 | } | |
| 608 | ||
| 609 | AICA->ARTABLE[0]=AICA->DRTABLE[0]=0; //Infinite time | |
| 610 | AICA->ARTABLE[1]=AICA->DRTABLE[1]=0; //Infinite time | |
| 611 | for(i=2;i<64;++i) | |
| 612 | { | |
| 613 | double t,step,scale; | |
| 614 | t=ARTimes[i]; //In ms | |
| 615 | if(t!=0.0) | |
| 616 | { | |
| 617 | step=(1023*1000.0)/((float) 44100.0f*t); | |
| 618 | scale=(double) (1<<EG_SHIFT); | |
| 619 | AICA->ARTABLE[i]=(int) (step*scale); | |
| 620 | } | |
| 621 | else | |
| 622 | AICA->ARTABLE[i]=1024<<EG_SHIFT; | |
| 623 | ||
| 624 | t=DRTimes[i]; //In ms | |
| 625 | step=(1023*1000.0)/((float) 44100.0f*t); | |
| 626 | scale=(double) (1<<EG_SHIFT); | |
| 627 | AICA->DRTABLE[i]=(int) (step*scale); | |
| 628 | } | |
| 629 | ||
| 630 | // make sure all the slots are off | |
| 631 | for(i=0;i<64;++i) | |
| 632 | { | |
| 633 | AICA->Slots[i].slot=i; | |
| 634 | AICA->Slots[i].active=0; | |
| 635 | AICA->Slots[i].base=NULL; | |
| 636 | AICA->Slots[i].EG.state=RELEASE; | |
| 637 | } | |
| 638 | ||
| 639 | AICALFO_Init(); | |
| 640 | AICA->buffertmpl=(signed int*) malloc(44100*sizeof(signed int)); | |
| 641 | AICA->buffertmpr=(signed int*) malloc(44100*sizeof(signed int)); | |
| 642 | memset(AICA->buffertmpl,0,44100*sizeof(signed int)); | |
| 643 | memset(AICA->buffertmpr,0,44100*sizeof(signed int)); | |
| 644 | ||
| 645 | // no "pend" | |
| 646 | AICA[0].udata.data[0xa0/2] = 0; | |
| 647 | //AICA[1].udata.data[0x20/2] = 0; | |
| 648 | AICA->TimCnt[0] = 0xffff; | |
| 649 | AICA->TimCnt[1] = 0xffff; | |
| 650 | AICA->TimCnt[2] = 0xffff; | |
| 651 | } | |
| 652 | ||
| 653 | static void AICA_UpdateSlotReg(struct _AICA *AICA,int s,int r) | |
| 654 | { | |
| 655 | struct _SLOT *slot=AICA->Slots+s; | |
| 656 | int sl; | |
| 657 | switch(r&0x7f) | |
| 658 | { | |
| 659 | case 0: | |
| 660 | case 1: | |
| 661 | if(KEYONEX(slot)) | |
| 662 | { | |
| 663 | for(sl=0;sl<64;++sl) | |
| 664 | { | |
| 665 | struct _SLOT *s2=AICA->Slots+sl; | |
| 666 | { | |
| 667 | if(KEYONB(s2) && s2->EG.state==RELEASE/*&& !s2->active*/) | |
| 668 | { | |
| 669 | AICA_StartSlot(AICA, s2); | |
| 670 | #if 0 | |
| 671 | printf("StartSlot[%02X]: SSCTL %01X SA %06X LSA %04X LEA %04X PCMS %01X LPCTL %01X\n",sl,SSCTL(s2),SA(s2),LSA(s2),LEA(s2),PCMS(s2),LPCTL(s2)); | |
| 672 | printf(" AR %02X D1R %02X D2R %02X RR %02X DL %02X KRS %01X LPSLNK %01X\n",AR(s2),D1R(s2),D2R(s2),RR(s2),DL(s2),KRS(s2),LPSLNK(s2)>>14); | |
| 673 | printf(" TL %02X OCT %01X FNS %03X\n",TL(s2),OCT(s2),FNS(s2)); | |
| 674 | printf(" LFORE %01X LFOF %02X ALFOWS %01X ALFOS %01X PLFOWS %01X PLFOS %01X\n",LFORE(s2),LFOF(s2),ALFOWS(s2),ALFOS(s2),PLFOWS(s2),PLFOS(s2)); | |
| 675 | printf(" IMXL %01X ISEL %01X DISDL %01X DIPAN %02X\n",IMXL(s2),ISEL(s2),DISDL(s2),DIPAN(s2)); | |
| 676 | printf("\n"); | |
| 677 | fflush(stdout); | |
| 678 | #endif | |
| 679 | } | |
| 680 | if(!KEYONB(s2) /*&& s2->active*/) | |
| 681 | { | |
| 682 | AICA_StopSlot(s2,1); | |
| 683 | } | |
| 684 | } | |
| 685 | } | |
| 686 | slot->udata.data[0]&=~0x8000; | |
| 687 | } | |
| 688 | break; | |
| 689 | case 0x18: | |
| 690 | case 0x19: | |
| 691 | slot->step=AICA_Step(slot); | |
| 692 | break; | |
| 693 | case 0x14: | |
| 694 | case 0x15: | |
| 695 | slot->EG.RR=Get_RR(AICA,0,RR(slot)); | |
| 696 | slot->EG.DL=0x1f-DL(slot); | |
| 697 | break; | |
| 698 | case 0x1c: | |
| 699 | case 0x1d: | |
| 700 | Compute_LFO(slot); | |
| 701 | break; | |
| 702 | case 0x24: | |
| 703 | // printf("[%02d]: %x to DISDL/DIPAN (PC=%x)\n", s, slot->udata.data[0x24/2], arm7_get_register(15)); | |
| 704 | break; | |
| 705 | } | |
| 706 | } | |
| 707 | ||
| 708 | static void AICA_UpdateReg(struct _AICA *AICA, int reg) | |
| 709 | { | |
| 710 | switch(reg&0xff) | |
| 711 | { | |
| 712 | case 0x4: | |
| 713 | case 0x5: | |
| 714 | { | |
| 715 | unsigned int v=RBL(AICA); | |
| 716 | AICA->DSP.RBP=RBP(AICA); | |
| 717 | if(v==0) | |
| 718 | AICA->DSP.RBL=8*1024; | |
| 719 | else if(v==1) | |
| 720 | AICA->DSP.RBL=16*1024; | |
| 721 | else if(v==2) | |
| 722 | AICA->DSP.RBL=32*1024; | |
| 723 | else if(v==3) | |
| 724 | AICA->DSP.RBL=64*1024; | |
| 725 | } | |
| 726 | break; | |
| 727 | case 0x8: | |
| 728 | case 0x9: | |
| 729 | AICA_MidiIn(0, AICA->udata.data[0x8/2]&0xff, 0); | |
| 730 | break; | |
| 731 | /* case 0x12: | |
| 732 | case 0x13: | |
| 733 | case 0x14: | |
| 734 | case 0x15: | |
| 735 | case 0x16: | |
| 736 | case 0x17: | |
| 737 | break;*/ | |
| 738 | case 0x90: | |
| 739 | case 0x91: | |
| 740 | if(AICA->Master) | |
| 741 | { | |
| 742 | UINT32 time; | |
| 743 | ||
| 744 | AICA->TimPris[0]=1<<((AICA->udata.data[0x90/2]>>8)&0x7); | |
| 745 | AICA->TimCnt[0]=(AICA->udata.data[0x90/2]&0xff)<<8; | |
| 746 | ||
| 747 | if ((AICA->udata.data[0x90/2]&0xff) != 255) | |
| 748 | { | |
| 749 | time = (44100 / AICA->TimPris[0]) / (255-(AICA->udata.data[0x90/2]&0xff)); | |
| 750 | if (time) | |
| 751 | { | |
| 752 | timer_adjust_oneshot(AICA->timerA, ATTOTIME_IN_HZ(time), 0); | |
| 753 | } | |
| 754 | } | |
| 755 | } | |
| 756 | break; | |
| 757 | case 0x94: | |
| 758 | case 0x95: | |
| 759 | if(AICA->Master) | |
| 760 | { | |
| 761 | UINT32 time; | |
| 762 | ||
| 763 | AICA->TimPris[1]=1<<((AICA->udata.data[0x94/2]>>8)&0x7); | |
| 764 | AICA->TimCnt[1]=(AICA->udata.data[0x94/2]&0xff)<<8; | |
| 765 | ||
| 766 | if ((AICA->udata.data[0x94/2]&0xff) != 255) | |
| 767 | { | |
| 768 | time = (44100 / AICA->TimPris[1]) / (255-(AICA->udata.data[0x94/2]&0xff)); | |
| 769 | if (time) | |
| 770 | { | |
| 771 | timer_adjust_oneshot(AICA->timerB, ATTOTIME_IN_HZ(time), 0); | |
| 772 | } | |
| 773 | } | |
| 774 | } | |
| 775 | break; | |
| 776 | case 0x98: | |
| 777 | case 0x99: | |
| 778 | if(AICA->Master) | |
| 779 | { | |
| 780 | UINT32 time; | |
| 781 | ||
| 782 | AICA->TimPris[2]=1<<((AICA->udata.data[0x98/2]>>8)&0x7); | |
| 783 | AICA->TimCnt[2]=(AICA->udata.data[0x98/2]&0xff)<<8; | |
| 784 | ||
| 785 | if ((AICA->udata.data[0x98/2]&0xff) != 255) | |
| 786 | { | |
| 787 | time = (44100 / AICA->TimPris[2]) / (255-(AICA->udata.data[0x98/2]&0xff)); | |
| 788 | if (time) | |
| 789 | { | |
| 790 | timer_adjust_oneshot(AICA->timerC, ATTOTIME_IN_HZ(time), 0); | |
| 791 | } | |
| 792 | } | |
| 793 | } | |
| 794 | break; | |
| 795 | case 0xa4: //SCIRE | |
| 796 | case 0xa5: | |
| 797 | ||
| 798 | if(AICA->Master) | |
| 799 | { | |
| 800 | AICA->udata.data[0xa0/2] &= ~AICA->udata.data[0xa4/2]; | |
| 801 | ResetInterrupts(AICA); | |
| 802 | ||
| 803 | // behavior from real hardware (SCSP, assumed to carry over): if you SCIRE a timer that's expired, | |
| 804 | // it'll immediately pop up again | |
| 805 | if (AICA->TimCnt[0] >= 0xff00) | |
| 806 | { | |
| 807 | AICA->udata.data[0xa0/2] |= 0x40; | |
| 808 | } | |
| 809 | if (AICA->TimCnt[1] >= 0xff00) | |
| 810 | { | |
| 811 | AICA->udata.data[0xa0/2] |= 0x80; | |
| 812 | } | |
| 813 | if (AICA->TimCnt[2] >= 0xff00) | |
| 814 | { | |
| 815 | AICA->udata.data[0xa0/2] |= 0x100; | |
| 816 | } | |
| 817 | } | |
| 818 | break; | |
| 819 | case 0xa8: | |
| 820 | case 0xa9: | |
| 821 | case 0xac: | |
| 822 | case 0xad: | |
| 823 | case 0xb0: | |
| 824 | case 0xb1: | |
| 825 | if(AICA->Master) | |
| 826 | { | |
| 827 | AICA->IrqTimA=DecodeSCI(AICA,SCITMA); | |
| 828 | AICA->IrqTimBC=DecodeSCI(AICA,SCITMB); | |
| 829 | AICA->IrqMidi=DecodeSCI(AICA,SCIMID); | |
| 830 | } | |
| 831 | break; | |
| 832 | } | |
| 833 | } | |
| 834 | ||
| 835 | static void AICA_UpdateSlotRegR(struct _AICA *AICA, int slot,int reg) | |
| 836 | { | |
| 837 | ||
| 838 | } | |
| 839 | ||
| 840 | static void AICA_UpdateRegR(struct _AICA *AICA, int reg) | |
| 841 | { | |
| 842 | switch(reg&0xff) | |
| 843 | { | |
| 844 | case 8: | |
| 845 | case 9: | |
| 846 | { | |
| 847 | unsigned short v=AICA->udata.data[0x8/2]; | |
| 848 | v&=0xff00; | |
| 849 | v|=AICA->MidiStack[AICA->MidiR]; | |
| 850 | AICA->IntARMCB(0); // cancel the IRQ | |
| 851 | if(AICA->MidiR!=AICA->MidiW) | |
| 852 | { | |
| 853 | ++AICA->MidiR; | |
| 854 | AICA->MidiR&=15; | |
| 855 | } | |
| 856 | AICA->udata.data[0x8/2]=v; | |
| 857 | } | |
| 858 | break; | |
| 859 | ||
| 860 | case 0x10: // LP check | |
| 861 | case 0x11: | |
| 862 | { | |
| 863 | // int MSLC = (AICA->udata.data[0xc/2]>>8) & 0x3f; // which slot are we monitoring? | |
| 864 | ||
| 865 | // AICA->udata.data[0x10/2] |= 0x8000; // set LP if necessary | |
| 866 | } | |
| 867 | break; | |
| 868 | ||
| 869 | case 0x14: // CA (slot address) | |
| 870 | case 0x15: | |
| 871 | { | |
| 872 | int MSLC = (AICA->udata.data[0xc/2]>>8) & 0x3f; // which slot are we monitoring? | |
| 873 | unsigned int CA = AICA->Slots[MSLC].cur_addr>>(SHIFT+12); | |
| 874 | ||
| 875 | AICA->udata.data[0x14/2] = CA; | |
| 876 | } | |
| 877 | break; | |
| 878 | } | |
| 879 | } | |
| 880 | ||
| 881 | static void AICA_w16(struct _AICA *AICA,unsigned int addr,unsigned short val) | |
| 882 | { | |
| 883 | addr&=0xffff; | |
| 884 | if(addr<0x2000) | |
| 885 | { | |
| 886 | int slot=addr/0x80; | |
| 887 | addr&=0x7f; | |
| 888 | // printf("%x to slot %d offset %x\n", val, slot, addr); | |
| 889 | *((unsigned short *) (AICA->Slots[slot].udata.datab+(addr))) = val; | |
| 890 | AICA_UpdateSlotReg(AICA,slot,addr&0x7f); | |
| 891 | } | |
| 892 | else if (addr < 0x2800) | |
| 893 | { | |
| 894 | if (addr <= 0x2044) | |
| 895 | { | |
| 896 | // printf("%x to EFSxx slot %d (addr %x)\n", val, (addr-0x2000)/4, addr&0x7f); | |
| 897 | AICA->EFSPAN[addr&0x7f] = val; | |
| 898 | } | |
| 899 | } | |
| 900 | else if(addr<0x3000) | |
| 901 | { | |
| 902 | if (addr < 0x28be) | |
| 903 | { | |
| 904 | // printf("%x to AICA global @ %x\n", val, addr & 0xff); | |
| 905 | *((unsigned short *) (AICA->udata.datab+((addr&0xff)))) = val; | |
| 906 | AICA_UpdateReg(AICA, addr&0xff); | |
| 907 | } | |
| 908 | else if (addr == 0x2d00) | |
| 909 | { | |
| 910 | AICA->IRQL = val; | |
| 911 | } | |
| 912 | else if (addr == 0x2d04) | |
| 913 | { | |
| 914 | AICA->IRQR = val; | |
| 915 | ||
| 916 | if (val) | |
| 917 | { | |
| 918 | AICA->IntARMCB(0); | |
| 919 | } | |
| 920 | } | |
| 921 | } | |
| 922 | else | |
| 923 | { | |
| 924 | //DSP | |
| 925 | if(addr<0x3200) //COEF | |
| 926 | *((unsigned short *) (AICA->DSP.COEF+(addr-0x3000)/2))=val; | |
| 927 | else if(addr<0x3400) | |
| 928 | *((unsigned short *) (AICA->DSP.MADRS+(addr-0x3200)/2))=val; | |
| 929 | else if(addr<0x3c00) | |
| 930 | { | |
| 931 | *((unsigned short *) (AICA->DSP.MPRO+(addr-0x3400)/2))=val; | |
| 932 | ||
| 933 | if (addr == 0x3bfe) | |
| 934 | { | |
| 935 | AICADSP_Start(&AICA->DSP); | |
| 936 | } | |
| 937 | } | |
| 938 | } | |
| 939 | } | |
| 940 | ||
| 941 | static unsigned short AICA_r16(struct _AICA *AICA, unsigned int addr) | |
| 942 | { | |
| 943 | unsigned short v=0; | |
| 944 | addr&=0xffff; | |
| 945 | if(addr<0x2000) | |
| 946 | { | |
| 947 | int slot=addr/0x80; | |
| 948 | addr&=0x7f; | |
| 949 | AICA_UpdateSlotRegR(AICA, slot,addr&0x7f); | |
| 950 | v=*((unsigned short *) (AICA->Slots[slot].udata.datab+(addr))); | |
| 951 | } | |
| 952 | else if(addr<0x3000) | |
| 953 | { | |
| 954 | if (addr <= 0x2044) | |
| 955 | { | |
| 956 | v = AICA->EFSPAN[addr&0x7f]; | |
| 957 | } | |
| 958 | else if (addr < 0x28be) | |
| 959 | { | |
| 960 | AICA_UpdateRegR(AICA, addr&0xff); | |
| 961 | v= *((unsigned short *) (AICA->udata.datab+((addr&0xff)))); | |
| 962 | } | |
| 963 | else if (addr == 0x2d00) | |
| 964 | { | |
| 965 | return AICA->IRQL; | |
| 966 | } | |
| 967 | else if (addr == 0x2d04) | |
| 968 | { | |
| 969 | return AICA->IRQR; | |
| 970 | } | |
| 971 | } | |
| 972 | // else if (addr<0x700) | |
| 973 | // v=AICA->RINGBUF[(addr-0x600)/2]; | |
| 974 | return v; | |
| 975 | } | |
| 976 | ||
| 977 | ||
| 978 | #define REVSIGN(v) ((~v)+1) | |
| 979 | ||
| 980 | void AICA_TimersAddTicks(struct _AICA *AICA, int ticks) | |
| 981 | { | |
| 982 | if(AICA->TimCnt[0]<=0xff00) | |
| 983 | { | |
| 984 | AICA->TimCnt[0] += ticks << (8-((AICA->udata.data[0x18/2]>>8)&0x7)); | |
| 985 | if (AICA->TimCnt[0] > 0xFF00) | |
| 986 | { | |
| 987 | AICA->TimCnt[0] = 0xFFFF; | |
| 988 | AICA->udata.data[0xa0/2]|=0x40; | |
| 989 | } | |
| 990 | AICA->udata.data[0x90/2]&=0xff00; | |
| 991 | AICA->udata.data[0x90/2]|=AICA->TimCnt[0]>>8; | |
| 992 | } | |
| 993 | ||
| 994 | if(AICA->TimCnt[1]<=0xff00) | |
| 995 | { | |
| 996 | AICA->TimCnt[1] += ticks << (8-((AICA->udata.data[0x1a/2]>>8)&0x7)); | |
| 997 | if (AICA->TimCnt[1] > 0xFF00) | |
| 998 | { | |
| 999 | AICA->TimCnt[1] = 0xFFFF; | |
| 1000 | AICA->udata.data[0xa0/2]|=0x80; | |
| 1001 | } | |
| 1002 | AICA->udata.data[0x94/2]&=0xff00; | |
| 1003 | AICA->udata.data[0x94/2]|=AICA->TimCnt[1]>>8; | |
| 1004 | } | |
| 1005 | ||
| 1006 | if(AICA->TimCnt[2]<=0xff00) | |
| 1007 | { | |
| 1008 | AICA->TimCnt[2] += ticks << (8-((AICA->udata.data[0x1c/2]>>8)&0x7)); | |
| 1009 | if (AICA->TimCnt[2] > 0xFF00) | |
| 1010 | { | |
| 1011 | AICA->TimCnt[2] = 0xFFFF; | |
| 1012 | AICA->udata.data[0xa0/2]|=0x100; | |
| 1013 | } | |
| 1014 | AICA->udata.data[0x98/2]&=0xff00; | |
| 1015 | AICA->udata.data[0x98/2]|=AICA->TimCnt[2]>>8; | |
| 1016 | } | |
| 1017 | } | |
| 1018 | ||
| 1019 | INLINE INT32 AICA_UpdateSlot(struct _AICA *AICA, struct _SLOT *slot) | |
| 1020 | { | |
| 1021 | INT32 sample; | |
| 1022 | int step=slot->step; | |
| 1023 | UINT32 addr1,addr2,addr_select; // current and next sample addresses | |
| 1024 | UINT32 *addr[2] = {&addr1, &addr2}; // used for linear interpolation | |
| 1025 | UINT32 *slot_addr[2] = {&(slot->cur_addr), &(slot->nxt_addr)}; // | |
| 1026 | ||
| 1027 | if(SSCTL(slot)!=0) //no FM or noise yet | |
| 1028 | return 0; | |
| 1029 | ||
| 1030 | if(PLFOS(slot)!=0) | |
| 1031 | { | |
| 1032 | step=step*AICAPLFO_Step(&(slot->PLFO)); | |
| 1033 | step>>=SHIFT; | |
| 1034 | } | |
| 1035 | ||
| 1036 | if(PCMS(slot) == 1) | |
| 1037 | { | |
| 1038 | addr1=slot->cur_addr>>SHIFT; | |
| 1039 | addr2=slot->nxt_addr>>SHIFT; | |
| 1040 | } | |
| 1041 | else if(PCMS(slot) == 0) | |
| 1042 | { | |
| 1043 | addr1=(slot->cur_addr>>(SHIFT-1))&AICA->RAM_MASK16; | |
| 1044 | addr2=(slot->nxt_addr>>(SHIFT-1))&AICA->RAM_MASK16; | |
| 1045 | } | |
| 1046 | else | |
| 1047 | { | |
| 1048 | addr1=slot->cur_addr>>SHIFT; | |
| 1049 | addr2=slot->nxt_addr>>SHIFT; | |
| 1050 | } | |
| 1051 | ||
| 1052 | if(PCMS(slot) == 1) // 8-bit signed | |
| 1053 | { | |
| 1054 | INT8 *p1=(signed char *) (AICA->AICARAM+(((SA(slot)+addr1))&AICA->RAM_MASK)); | |
| 1055 | INT8 *p2=(signed char *) (AICA->AICARAM+(((SA(slot)+addr2))&AICA->RAM_MASK)); | |
| 1056 | INT32 s; | |
| 1057 | INT32 fpart=slot->cur_addr&((1<<SHIFT)-1); | |
| 1058 | s=(int) (p1[0]<<8)*((1<<SHIFT)-fpart)+(int) (p2[0]<<8)*fpart; | |
| 1059 | sample=(s>>SHIFT); | |
| 1060 | } | |
| 1061 | else if (PCMS(slot) == 0) //16 bit signed | |
| 1062 | { | |
| 1063 | INT16 *p1=(signed short *) (AICA->AICARAM+((SA(slot)+addr1)&AICA->RAM_MASK)); | |
| 1064 | INT16 *p2=(signed short *) (AICA->AICARAM+((SA(slot)+addr2)&AICA->RAM_MASK)); | |
| 1065 | INT32 s; | |
| 1066 | INT32 fpart=slot->cur_addr&((1<<SHIFT)-1); | |
| 1067 | s=(int) (p1[0])*((1<<SHIFT)-fpart)+(int) (p2[0])*fpart; | |
| 1068 | sample=(s>>SHIFT); | |
| 1069 | } | |
| 1070 | else // 4-bit ADPCM | |
| 1071 | { | |
| 1072 | UINT8 *base= slot->adbase; | |
| 1073 | INT32 s; | |
| 1074 | INT32 fpart=slot->cur_addr&((1<<SHIFT)-1); | |
| 1075 | UINT32 steps_to_go = addr1, curstep = slot->curstep; | |
| 1076 | ||
| 1077 | if (slot->adbase) | |
| 1078 | { | |
| 1079 | // seek to the current sample | |
| 1080 | while (curstep < steps_to_go) | |
| 1081 | { | |
| 1082 | int shift1, delta1; | |
| 1083 | shift1 = 4*((curstep&1)); | |
| 1084 | delta1 = (*base>>shift1)&0xf; | |
| 1085 | DecodeADPCM(&(slot->cur_sample),delta1,&(slot->cur_quant)); | |
| 1086 | curstep++; | |
| 1087 | if (!(curstep & 1)) | |
| 1088 | { | |
| 1089 | base++; | |
| 1090 | } | |
| 1091 | } | |
| 1092 | ||
| 1093 | slot->adbase = base; | |
| 1094 | slot->curstep = curstep; | |
| 1095 | ||
| 1096 | base = slot->nxtbase; | |
| 1097 | curstep = slot->nxtstep; | |
| 1098 | steps_to_go = addr2; | |
| 1099 | ||
| 1100 | // seek to the interpolation sample | |
| 1101 | while (curstep < steps_to_go) | |
| 1102 | { | |
| 1103 | int shift1, delta1; | |
| 1104 | shift1 = 4*((curstep&1)); | |
| 1105 | delta1 = (*base>>shift1)&0xf; | |
| 1106 | DecodeADPCM(&(slot->nxt_sample),delta1,&(slot->nxt_quant)); | |
| 1107 | curstep++; | |
| 1108 | if (!(curstep & 1)) | |
| 1109 | { | |
| 1110 | base++; | |
| 1111 | } | |
| 1112 | } | |
| 1113 | ||
| 1114 | slot->nxtbase = base; | |
| 1115 | slot->nxtstep = curstep; | |
| 1116 | ||
| 1117 | s=(int) slot->cur_sample*((1<<SHIFT)-fpart)+(int) slot->nxt_sample*fpart; | |
| 1118 | } | |
| 1119 | else | |
| 1120 | { | |
| 1121 | s = 0; | |
| 1122 | } | |
| 1123 | ||
| 1124 | sample=(s>>SHIFT); | |
| 1125 | } | |
| 1126 | ||
| 1127 | slot->prv_addr=slot->cur_addr; | |
| 1128 | slot->cur_addr+=step; | |
| 1129 | slot->nxt_addr=slot->cur_addr+(1<<SHIFT); | |
| 1130 | ||
| 1131 | addr1=slot->cur_addr>>SHIFT; | |
| 1132 | addr2=slot->nxt_addr>>SHIFT; | |
| 1133 | ||
| 1134 | if(addr1>=LSA(slot)) | |
| 1135 | { | |
| 1136 | if(LPSLNK(slot) && slot->EG.state==ATTACK) | |
| 1137 | slot->EG.state = DECAY1; | |
| 1138 | } | |
| 1139 | ||
| 1140 | for (addr_select=0; addr_select<2; addr_select++) | |
| 1141 | { | |
| 1142 | INT32 rem_addr; | |
| 1143 | switch(LPCTL(slot)) | |
| 1144 | { | |
| 1145 | case 0: //no loop | |
| 1146 | if(*addr[addr_select]>=LSA(slot) && *addr[addr_select]>=LEA(slot)) | |
| 1147 | { | |
| 1148 | //slot->active=0; | |
| 1149 | AICA_StopSlot(slot,0); | |
| 1150 | } | |
| 1151 | break; | |
| 1152 | case 1: //normal loop | |
| 1153 | if(*addr[addr_select]>=LEA(slot)) | |
| 1154 | { | |
| 1155 | rem_addr = *slot_addr[addr_select] - (LEA(slot)<<SHIFT); | |
| 1156 | *slot_addr[addr_select]=(LSA(slot)<<SHIFT) + rem_addr; | |
| 1157 | ||
| 1158 | if(PCMS(slot)>=2 && addr_select==0) | |
| 1159 | { | |
| 1160 | // restore the state @ LSA - the sampler will naturally walk to (LSA + remainder) | |
| 1161 | slot->adbase = &AICA->AICARAM[SA(slot)+(LSA(slot)/2)]; | |
| 1162 | slot->curstep = LSA(slot); | |
| 1163 | if (PCMS(slot) == 2) | |
| 1164 | { | |
| 1165 | slot->cur_sample = slot->cur_lpsample; | |
| 1166 | slot->cur_quant = slot->cur_lpquant; | |
| 1167 | } | |
| 1168 | ||
| 1169 | // printf("Looping: slot_addr %x LSA %x LEA %x step %x base %x\n", *slot_addr[addr_select]>>SHIFT, LSA(slot), LEA(slot), slot->curstep, slot->adbase); | |
| 1170 | } | |
| 1171 | else if(PCMS(slot)>=2 && addr_select==1) | |
| 1172 | { | |
| 1173 | slot->nxtbase = &AICA->AICARAM[SA(slot)+(LSA(slot)/2)]; | |
| 1174 | slot->nxtstep = LSA(slot); | |
| 1175 | if (PCMS(slot) == 2) | |
| 1176 | { | |
| 1177 | slot->nxt_sample = slot->cur_lpsample; | |
| 1178 | slot->nxt_quant = slot->cur_lpquant; | |
| 1179 | } | |
| 1180 | } | |
| 1181 | } | |
| 1182 | break; | |
| 1183 | } | |
| 1184 | } | |
| 1185 | ||
| 1186 | if(ALFOS(slot)!=0) | |
| 1187 | { | |
| 1188 | sample=sample*AICAALFO_Step(&(slot->ALFO)); | |
| 1189 | sample>>=SHIFT; | |
| 1190 | } | |
| 1191 | ||
| 1192 | if(slot->EG.state==ATTACK) | |
| 1193 | sample=(sample*EG_Update(slot))>>SHIFT; | |
| 1194 | else | |
| 1195 | sample=(sample*EG_TABLE[EG_Update(slot)>>(SHIFT-10)])>>SHIFT; | |
| 1196 | ||
| 1197 | return sample; | |
| 1198 | } | |
| 1199 | ||
| 1200 | static void AICA_DoMasterSamples(struct _AICA *AICA, int nsamples) | |
| 1201 | { | |
| 1202 | stream_sample_t *bufr,*bufl; | |
| 1203 | int sl, s, i; | |
| 1204 | ||
| 1205 | bufr=bufferr; | |
| 1206 | bufl=bufferl; | |
| 1207 | ||
| 1208 | for(s=0;s<nsamples;++s) | |
| 1209 | { | |
| 1210 | INT32 smpl, smpr; | |
| 1211 | ||
| 1212 | smpl = smpr = 0; | |
| 1213 | ||
| 1214 | // mix slots' direct output | |
| 1215 | for(sl=0;sl<64;++sl) | |
| 1216 | { | |
| 1217 | RBUFDST=AICA->RINGBUF+AICA->BUFPTR; | |
| 1218 | if(AICA->Slots[sl].active) | |
| 1219 | { | |
| 1220 | struct _SLOT *slot=AICA->Slots+sl; | |
| 1221 | unsigned int Enc; | |
| 1222 | signed int sample; | |
| 1223 | ||
| 1224 | sample=AICA_UpdateSlot(AICA, slot); | |
| 1225 | ||
| 1226 | Enc=((TL(slot))<<0x0)|((IMXL(slot))<<0xd); | |
| 1227 | AICADSP_SetSample(&AICA->DSP,(sample*AICA->LPANTABLE[Enc])>>(SHIFT-2),ISEL(slot),IMXL(slot)); | |
| 1228 | Enc=((TL(slot))<<0x0)|((DIPAN(slot))<<0x8)|((DISDL(slot))<<0xd); | |
| 1229 | { | |
| 1230 | smpl+=(sample*AICA->LPANTABLE[Enc])>>SHIFT; | |
| 1231 | smpr+=(sample*AICA->RPANTABLE[Enc])>>SHIFT; | |
| 1232 | } | |
| 1233 | } | |
| 1234 | ||
| 1235 | AICA->BUFPTR&=63; | |
| 1236 | } | |
| 1237 | ||
| 1238 | // process the DSP | |
| 1239 | AICADSP_Step(&AICA->DSP); | |
| 1240 | ||
| 1241 | // mix DSP output | |
| 1242 | for(i=0;i<16;++i) | |
| 1243 | { | |
| 1244 | if(EFSDL(i)) | |
| 1245 | { | |
| 1246 | unsigned int Enc=((EFPAN(i))<<0x8)|((EFSDL(i))<<0xd); | |
| 1247 | smpl+=(AICA->DSP.EFREG[i]*AICA->LPANTABLE[Enc])>>SHIFT; | |
| 1248 | smpr+=(AICA->DSP.EFREG[i]*AICA->RPANTABLE[Enc])>>SHIFT; | |
| 1249 | } | |
| 1250 | } | |
| 1251 | ||
| 1252 | *bufl++ = ICLIP16(smpl>>3); | |
| 1253 | *bufr++ = ICLIP16(smpr>>3); | |
| 1254 | } | |
| 1255 | } | |
| 1256 | ||
| 1257 | int AICA_IRQCB(void *param) | |
| 1258 | { | |
| 1259 | CheckPendingIRQ(param); | |
| 1260 | return -1; | |
| 1261 | } | |
| 1262 | ||
| 1263 | static void AICA_Update(void *param, stream_sample_t **inputs, stream_sample_t **buf, int samples) | |
| 1264 | { | |
| 1265 | struct _AICA *AICA = param; | |
| 1266 | bufferl = buf[0]; | |
| 1267 | bufferr = buf[1]; | |
| 1268 | length = samples; | |
| 1269 | AICA_DoMasterSamples(AICA, samples); | |
| 1270 | } | |
| 1271 | ||
| 1272 | static void *aica_start(int sndindex, int clock, const void *config) | |
| 1273 | { | |
| 1274 | const struct AICAinterface *intf; | |
| 1275 | ||
| 1276 | struct _AICA *AICA; | |
| 1277 | ||
| 1278 | AICA = malloc(sizeof(*AICA)); | |
| 1279 | memset(AICA, 0, sizeof(*AICA)); | |
| 1280 | ||
| 1281 | intf = config; | |
| 1282 | ||
| 1283 | // init the emulation | |
| 1284 | AICA_Init(AICA, intf, sndindex); | |
| 1285 | ||
| 1286 | // set up the IRQ callbacks | |
| 1287 | { | |
| 1288 | AICA->IntARMCB = intf->irq_callback; | |
| 1289 | ||
| 1290 | AICA->stream = stream_create(0, 2, 44100, AICA, AICA_Update); | |
| 1291 | } | |
| 1292 | ||
| 1293 | return AICA; | |
| 1294 | } | |
| 1295 | ||
| 1296 | void aica_stop(void) | |
| 1297 | { | |
| 1298 | } | |
| 1299 | ||
| 1300 | void AICA_set_ram_base(int which, void *base, int size) | |
| 1301 | { | |
| 1302 | struct _AICA *AICA = sndti_token(SOUND_AICA, which); | |
| 1303 | if (AICA) | |
| 1304 | { | |
| 1305 | AICA->AICARAM = base; | |
| 1306 | AICA->AICARAM_LENGTH = size; | |
| 1307 | AICA->RAM_MASK = AICA->AICARAM_LENGTH-1; | |
| 1308 | AICA->RAM_MASK16 = AICA->RAM_MASK & 0x7ffffe; | |
| 1309 | AICA->DSP.AICARAM = base; | |
| 1310 | AICA->DSP.AICARAM_LENGTH = size; | |
| 1311 | } | |
| 1312 | } | |
| 1313 | ||
| 1314 | READ16_HANDLER( AICA_0_r ) | |
| 1315 | { | |
| 1316 | struct _AICA *AICA = sndti_token(SOUND_AICA, 0); | |
| 1317 | UINT16 res = AICA_r16(AICA, offset*2); | |
| 1318 | ||
| 1319 | return res; | |
| 1320 | } | |
| 1321 | ||
| 1322 | WRITE16_HANDLER( AICA_0_w ) | |
| 1323 | { | |
| 1324 | struct _AICA *AICA = sndti_token(SOUND_AICA, 0); | |
| 1325 | UINT16 tmp; | |
| 1326 | ||
| 1327 | tmp = AICA_r16(AICA, offset*2); | |
| 1328 | COMBINE_DATA(&tmp); | |
| 1329 | AICA_w16(AICA,offset*2, tmp); | |
| 1330 | } | |
| 1331 | ||
| 1332 | WRITE16_HANDLER( AICA_MidiIn ) | |
| 1333 | { | |
| 1334 | struct _AICA *AICA = sndti_token(SOUND_AICA, 0); | |
| 1335 | AICA->MidiStack[AICA->MidiW++]=data; | |
| 1336 | AICA->MidiW &= 15; | |
| 1337 | } | |
| 1338 | ||
| 1339 | READ16_HANDLER( AICA_MidiOutR ) | |
| 1340 | { | |
| 1341 | struct _AICA *AICA = sndti_token(SOUND_AICA, 0); | |
| 1342 | unsigned char val; | |
| 1343 | ||
| 1344 | val=AICA->MidiStack[AICA->MidiR++]; | |
| 1345 | AICA->MidiR&=7; | |
| 1346 | return val; | |
| 1347 | } | |
| 1348 | ||
| 1349 | /************************************************************************** | |
| 1350 | * Generic get_info | |
| 1351 | **************************************************************************/ | |
| 1352 | ||
| 1353 | static void aica_set_info(void *token, UINT32 state, sndinfo *info) | |
| 1354 | { | |
| 1355 | switch (state) | |
| 1356 | { | |
| 1357 | /* no parameters to set */ | |
| 1358 | } | |
| 1359 | } | |
| 1360 | ||
| 1361 | ||
| 1362 | void aica_get_info(void *token, UINT32 state, sndinfo *info) | |
| 1363 | { | |
| 1364 | switch (state) | |
| 1365 | { | |
| 1366 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 1367 | ||
| 1368 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 1369 | case SNDINFO_PTR_SET_INFO: info->set_info = aica_set_info; break; | |
| 1370 | case SNDINFO_PTR_START: info->start = aica_start; break; | |
| 1371 | case SNDINFO_PTR_STOP: /* Nothing */ break; | |
| 1372 | case SNDINFO_PTR_RESET: /* Nothing */ break; | |
| 1373 | ||
| 1374 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 1375 | case SNDINFO_STR_NAME: info->s = "AICA"; break; | |
| 1376 | case SNDINFO_STR_CORE_FAMILY: info->s = "Sega/Yamaha custom"; break; | |
| 1377 | case SNDINFO_STR_CORE_VERSION: info->s = "1.0.1"; break; | |
| 1378 | case SNDINFO_STR_CORE_FILE: info->s = __FILE__; break; | |
| 1379 | case SNDINFO_STR_CORE_CREDITS: info->s = "Copyright Nicola Salmoria and the MAME Team"; break; | |
| 1380 | } | |
| 1381 | } | |
| 1382 |
| r0 | r1712 | |
|---|---|---|
| 1 | /* | |
| 2 | ||
| 3 | Sega/Yamaha AICA emulation | |
| 4 | */ | |
| 5 | ||
| 6 | #ifndef _AICA_H_ | |
| 7 | #define _AICA_H_ | |
| 8 | ||
| 9 | #define MAX_AICA (2) | |
| 10 | ||
| 11 | struct AICAinterface | |
| 12 | { | |
| 13 | int region; /* region of 2M/8M RAM */ | |
| 14 | int roffset; /* offset in the region */ | |
| 15 | void (*irq_callback)(int state); /* irq callback */ | |
| 16 | }; | |
| 17 | ||
| 18 | void AICA_set_ram_base(int which, void *base, int size); | |
| 19 | ||
| 20 | // AICA register access | |
| 21 | READ16_HANDLER( AICA_0_r ); | |
| 22 | WRITE16_HANDLER( AICA_0_w ); | |
| 23 | READ16_HANDLER( AICA_1_r ); | |
| 24 | WRITE16_HANDLER( AICA_1_w ); | |
| 25 | ||
| 26 | // MIDI I/O access | |
| 27 | WRITE16_HANDLER( AICA_MidiIn ); | |
| 28 | READ16_HANDLER( AICA_MidiOutR ); | |
| 29 | ||
| 30 | #endif |
| r1711 | r1712 | |
|---|---|---|
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | |
| 76 | #if (HAS_TMC0285) && (HAS_TMS5200) | |
| 76 | 77 | static void *tms5200_start(int sndindex, int clock, const void *config) |
| 77 | 78 | { |
| 78 | 79 | struct tms5220_info *info = tms5220_start(sndindex, clock, config); |
| 79 | 80 | tms5220_set_variant(info->chip, variant_tmc0285); |
| 80 | 81 | return info; |
| 81 | 82 | } |
| 83 | #endif /* (HAS_TMC0285) && (HAS_TMS5200) */ | |
| 82 | 84 | |
| 83 | 85 | |
| 84 | 86 | |
| r1711 | r1712 | |
| 269 | 271 | } |
| 270 | 272 | } |
| 271 | 273 | |
| 274 | #if (HAS_TMC0285) | |
| 272 | 275 | void tmc0285_get_info(void *token, UINT32 state, sndinfo *info) |
| 273 | 276 | { |
| 274 | 277 | switch (state) |
| r1711 | r1712 | |
| 278 | 281 | default: tms5220_get_info(token, state, info); break; |
| 279 | 282 | } |
| 280 | 283 | } |
| 284 | #endif | |
| 281 | 285 | |
| 286 | #if (HAS_TMS5200) | |
| 282 | 287 | void tms5200_get_info(void *token, UINT32 state, sndinfo *info) |
| 283 | 288 | { |
| 284 | 289 | switch (state) |
| r1711 | r1712 | |
| 288 | 293 | default: tms5220_get_info(token, state, info); break; |
| 289 | 294 | } |
| 290 | 295 | } |
| 291 | ||
| 296 | #endif |
| r1711 | r1712 | |
|---|---|---|
| 434 | 434 | SOUNDDEFS += -DHAS_SEGAPCM=$(if $(filter SEGAPCM,$(SOUNDS)),1,0) |
| 435 | 435 | SOUNDDEFS += -DHAS_MULTIPCM=$(if $(filter MULTIPCM,$(SOUNDS)),1,0) |
| 436 | 436 | SOUNDDEFS += -DHAS_SCSP=$(if $(filter SCSP,$(SOUNDS)),1,0) |
| 437 | SOUNDDEFS += -DHAS_AICA=$(if $(filter AICA,$(SOUNDS)),1,0) | |
| 437 | 438 | |
| 438 | 439 | ifneq ($(filter SEGAPCM,$(SOUNDS)),) |
| 439 | 440 | SOUNDOBJS += $(SOUNDOBJ)/segapcm.o |
| r1711 | r1712 | |
| 447 | 448 | SOUNDOBJS += $(SOUNDOBJ)/scsp.o $(SOUNDOBJ)/scspdsp.o |
| 448 | 449 | endif |
| 449 | 450 | |
| 451 | ifneq ($(filter AICA,$(SOUNDS)),) | |
| 452 | SOUNDOBJS += $(SOUNDOBJ)/aica.o $(SOUNDOBJ)/aicadsp.o | |
| 453 | endif | |
| 450 | 454 | |
| 451 | 455 | |
| 452 | 456 | #------------------------------------------------- |
| r0 | r1712 | |
|---|---|---|
| 1 | /* | |
| 2 | AICA LFO handling | |
| 3 | ||
| 4 | Part of the AICA emulator package. | |
| 5 | (not compiled directly, #included from aica.c) | |
| 6 | ||
| 7 | By ElSemi, kingshriek, Deunan Knute, and R. Belmont | |
| 8 | */ | |
| 9 | ||
| 10 | #define LFO_SHIFT 8 | |
| 11 | ||
| 12 | struct _LFO | |
| 13 | { | |
| 14 | unsigned short phase; | |
| 15 | UINT32 phase_step; | |
| 16 | int *table; | |
| 17 | int *scale; | |
| 18 | }; | |
| 19 | ||
| 20 | #define LFIX(v) ((unsigned int) ((float) (1<<LFO_SHIFT)*(v))) | |
| 21 | ||
| 22 | //Convert DB to multiply amplitude | |
| 23 | #define DB(v) LFIX(pow(10.0,v/20.0)) | |
| 24 | ||
| 25 | //Convert cents to step increment | |
| 26 | #define CENTS(v) LFIX(pow(2.0,v/1200.0)) | |
| 27 | ||
| 28 | static int PLFO_TRI[256],PLFO_SQR[256],PLFO_SAW[256],PLFO_NOI[256]; | |
| 29 | static int ALFO_TRI[256],ALFO_SQR[256],ALFO_SAW[256],ALFO_NOI[256]; | |
| 30 | static const float LFOFreq[32]={0.17f,0.19f,0.23f,0.27f,0.34f,0.39f,0.45f,0.55f,0.68f,0.78f,0.92f,1.10f,1.39f,1.60f,1.87f,2.27f, | |
| 31 | 2.87f,3.31f,3.92f,4.79f,6.15f,7.18f,8.60f,10.8f,14.4f,17.2f,21.5f,28.7f,43.1f,57.4f,86.1f,172.3f}; | |
| 32 | static const float ASCALE[8]={0.0f,0.4f,0.8f,1.5f,3.0f,6.0f,12.0f,24.0f}; | |
| 33 | static const float PSCALE[8]={0.0f,7.0f,13.5f,27.0f,55.0f,112.0f,230.0f,494.0f}; | |
| 34 | static int PSCALES[8][256]; | |
| 35 | static int ASCALES[8][256]; | |
| 36 | ||
| 37 | void AICALFO_Init(void) | |
| 38 | { | |
| 39 | int i,s; | |
| 40 | for(i=0;i<256;++i) | |
| 41 | { | |
| 42 | int a,p; | |
| 43 | // float TL; | |
| 44 | //Saw | |
| 45 | a=255-i; | |
| 46 | if(i<128) | |
| 47 | p=i; | |
| 48 | else | |
| 49 | p=i-256; | |
| 50 | ALFO_SAW[i]=a; | |
| 51 | PLFO_SAW[i]=p; | |
| 52 | ||
| 53 | //Square | |
| 54 | if(i<128) | |
| 55 | { | |
| 56 | a=255; | |
| 57 | p=127; | |
| 58 | } | |
| 59 | else | |
| 60 | { | |
| 61 | a=0; | |
| 62 | p=-128; | |
| 63 | } | |
| 64 | ALFO_SQR[i]=a; | |
| 65 | PLFO_SQR[i]=p; | |
| 66 | ||
| 67 | //Tri | |
| 68 | if(i<128) | |
| 69 | a=255-(i*2); | |
| 70 | else | |
| 71 | a=(i*2)-256; | |
| 72 | if(i<64) | |
| 73 | p=i*2; | |
| 74 | else if(i<128) | |
| 75 | p=255-i*2; | |
| 76 | else if(i<192) | |
| 77 | p=256-i*2; | |
| 78 | else | |
| 79 | p=i*2-511; | |
| 80 | ALFO_TRI[i]=a; | |
| 81 | PLFO_TRI[i]=p; | |
| 82 | ||
| 83 | //noise | |
| 84 | //a=lfo_noise[i]; | |
| 85 | a=mame_rand(Machine)&0xff; | |
| 86 | p=128-a; | |
| 87 | ALFO_NOI[i]=a; | |
| 88 | PLFO_NOI[i]=p; | |
| 89 | } | |
| 90 | ||
| 91 | for(s=0;s<8;++s) | |
| 92 | { | |
| 93 | float limit=PSCALE[s]; | |
| 94 | for(i=-128;i<128;++i) | |
| 95 | { | |
| 96 | PSCALES[s][i+128]=CENTS(((limit*(float) i)/128.0)); | |
| 97 | } | |
| 98 | limit=-ASCALE[s]; | |
| 99 | for(i=0;i<256;++i) | |
| 100 | { | |
| 101 | ASCALES[s][i]=DB(((limit*(float) i)/256.0)); | |
| 102 | } | |
| 103 | } | |
| 104 | } | |
| 105 | ||
| 106 | signed int INLINE AICAPLFO_Step(struct _LFO *LFO) | |
| 107 | { | |
| 108 | int p; | |
| 109 | ||
| 110 | LFO->phase+=LFO->phase_step; | |
| 111 | #if LFO_SHIFT!=8 | |
| 112 | LFO->phase&=(1<<(LFO_SHIFT+8))-1; | |
| 113 | #endif | |
| 114 | p=LFO->table[LFO->phase>>LFO_SHIFT]; | |
| 115 | p=LFO->scale[p+128]; | |
| 116 | return p<<(SHIFT-LFO_SHIFT); | |
| 117 | } | |
| 118 | ||
| 119 | signed int INLINE AICAALFO_Step(struct _LFO *LFO) | |
| 120 | { | |
| 121 | int p; | |
| 122 | LFO->phase+=LFO->phase_step; | |
| 123 | #if LFO_SHIFT!=8 | |
| 124 | LFO->phase&=(1<<(LFO_SHIFT+8))-1; | |
| 125 | #endif | |
| 126 | p=LFO->table[LFO->phase>>LFO_SHIFT]; | |
| 127 | p=LFO->scale[p]; | |
| 128 | return p<<(SHIFT-LFO_SHIFT); | |
| 129 | } | |
| 130 | ||
| 131 | void AICALFO_ComputeStep(struct _LFO *LFO,UINT32 LFOF,UINT32 LFOWS,UINT32 LFOS,int ALFO) | |
| 132 | { | |
| 133 | float step=(float) LFOFreq[LFOF]*256.0/(float)44100.0; | |
| 134 | LFO->phase_step=(unsigned int) ((float) (1<<LFO_SHIFT)*step); | |
| 135 | if(ALFO) | |
| 136 | { | |
| 137 | switch(LFOWS) | |
| 138 | { | |
| 139 | case 0: LFO->table=ALFO_SAW; break; | |
| 140 | case 1: LFO->table=ALFO_SQR; break; | |
| 141 | case 2: LFO->table=ALFO_TRI; break; | |
| 142 | case 3: LFO->table=ALFO_NOI; break; | |
| 143 | default: printf("Unknown ALFO %d\n", LFOWS); | |
| 144 | } | |
| 145 | LFO->scale=ASCALES[LFOS]; | |
| 146 | } | |
| 147 | else | |
| 148 | { | |
| 149 | switch(LFOWS) | |
| 150 | { | |
| 151 | case 0: LFO->table=PLFO_SAW; break; | |
| 152 | case 1: LFO->table=PLFO_SQR; break; | |
| 153 | case 2: LFO->table=PLFO_TRI; break; | |
| 154 | case 3: LFO->table=PLFO_NOI; break; | |
| 155 | default: printf("Unknown PLFO %d\n", LFOWS); | |
| 156 | } | |
| 157 | LFO->scale=PSCALES[LFOS]; | |
| 158 | } | |
| 159 | } |
| r1711 | r1712 | |
|---|---|---|
| 1050 | 1050 | |
| 1051 | 1051 | int sprintf_game_info(char *buffer) |
| 1052 | 1052 | { |
| 1053 | int scrcount = video_screen_count(Machine->config); | |
| 1054 | const device_config *device; | |
| 1053 | 1055 | char *bufptr = buffer; |
| 1054 | 1056 | int cpunum, sndnum; |
| 1055 | 1057 | int count; |
| r1711 | r1712 | |
| 1058 | 1060 | bufptr += sprintf(bufptr, "%s\n%s %s\n\nCPU:\n", Machine->gamedrv->description, Machine->gamedrv->year, Machine->gamedrv->manufacturer); |
| 1059 | 1061 | |
| 1060 | 1062 | /* loop over all CPUs */ |
| 1061 | for (cpunum = 0; cpunum < MAX_CPU && Machine-> | |
| 1063 | for (cpunum = 0; cpunum < MAX_CPU && Machine->config->cpu[cpunum].type != CPU_DUMMY; cpunum += count) | |
| 1062 | 1064 | { |
| 1063 | cpu_type type = Machine->drv->cpu[cpunum].type; | |
| 1064 | int clock = Machine->drv->cpu[cpunum].clock; | |
| 1065 | cpu_type type = Machine->config->cpu[cpunum].type; | |
| 1066 | int clock = Machine->config->cpu[cpunum].clock; | |
| 1065 | 1067 | |
| 1066 | 1068 | /* count how many identical CPUs we have */ |
| 1067 | 1069 | for (count = 1; cpunum + count < MAX_CPU; count++) |
| 1068 | if (Machine->drv->cpu[cpunum + count].type != type || | |
| 1069 | Machine->drv->cpu[cpunum + count].clock != clock) | |
| 1070 | if (Machine->config->cpu[cpunum + count].type != type || | |
| 1071 | Machine->config->cpu[cpunum + count].clock != clock) | |
| 1070 | 1072 | break; |
| 1071 | 1073 | |
| 1072 | 1074 | /* if more than one, prepend a #x in front of the CPU name */ |
| r1711 | r1712 | |
| 1081 | 1083 | bufptr += sprintf(bufptr, " %d.%03d" UTF8_NBSP "kHz\n", clock / 1000, clock % 1000); |
| 1082 | 1084 | } |
| 1083 | 1085 | |
| 1084 | /* append the Sound: string */ | |
| 1085 | bufptr += sprintf(bufptr, "\nSound:\n"); | |
| 1086 | ||
| 1087 | 1086 | /* loop over all sound chips */ |
| 1088 | for (sndnum = 0; sndnum < MAX_SOUND && Machine-> | |
| 1087 | for (sndnum = 0; sndnum < MAX_SOUND && Machine->config->sound[sndnum].type != SOUND_DUMMY; sndnum += count) | |
| 1089 | 1088 | { |
| 1090 | sound_type type = Machine-> | |
| 1089 | sound_type type = Machine->config->sound[sndnum].type; | |
| 1091 | 1090 | int clock = sndnum_clock(sndnum); |
| 1092 | 1091 | |
| 1092 | /* append the Sound: string */ | |
| 1093 | if (sndnum == 0) | |
| 1094 | bufptr += sprintf(bufptr, "\nSound:\n"); | |
| 1095 | ||
| 1093 | 1096 | /* count how many identical sound chips we have */ |
| 1094 | 1097 | for (count = 1; sndnum + count < MAX_SOUND; count++) |
| 1095 | if (Machine-> | |
| 1098 | if (Machine->config->sound[sndnum + count].type != type || | |
| 1096 | 1099 | sndnum_clock(sndnum + count) != clock) |
| 1097 | 1100 | break; |
| 1098 | 1101 | |
| r1711 | r1712 | |
| 1110 | 1113 | *bufptr++ = '\n'; |
| 1111 | 1114 | } |
| 1112 | 1115 | |
| 1113 | /* display vector information for vector games */ | |
| 1114 | if (Machine->drv->video_attributes & VIDEO_TYPE_VECTOR) | |
| 1115 | bufptr += sprintf(bufptr, "\nVector Game\n"); | |
| 1116 | /* display screen information */ | |
| 1117 | bufptr += sprintf(bufptr, "\nVideo:\n"); | |
| 1118 | for (device = video_screen_first(Machine->config); device != NULL; device = video_screen_next(device)) | |
| 1119 | { | |
| 1120 | int index = device_list_index(Machine->config->devicelist, VIDEO_SCREEN, device->tag); | |
| 1121 | const screen_config *scrconfig = device->inline_config; | |
| 1116 | 1122 | |
| 1117 | /* display screen resolution and refresh rate info for raster games */ | |
| 1118 | else if (Machine->drv->video_attributes & VIDEO_TYPE_RASTER) | |
| 1119 | bufptr += sprintf(bufptr,"\nScreen Resolution:\n%d " UTF8_MULTIPLY " %d (%s) %f" UTF8_NBSP "Hz\n", | |
| 1120 | Machine->screen[0].visarea.max_x - Machine->screen[0].visarea.min_x + 1, | |
| 1121 | Machine->screen[0].visarea.max_y - Machine->screen[0].visarea.min_y + 1, | |
| 1122 | (Machine->gamedrv->flags & ORIENTATION_SWAP_XY) ? "V" : "H", | |
| 1123 | ATTOSECONDS_TO_HZ(Machine->screen[0].refresh)); | |
| 1124 | else | |
| 1125 | *bufptr++ = '\0'; | |
| 1123 | if (scrcount > 1) | |
| 1124 | bufptr += sprintf(bufptr, "Screen %d: ", index + 1); | |
| 1126 | 1125 | |
| 1126 | if (scrconfig->type == SCREEN_TYPE_VECTOR) | |
| 1127 | bufptr += sprintf(bufptr, "Vector\n"); | |
| 1128 | else | |
| 1129 | bufptr += sprintf(bufptr, "Resolution:\n%d " UTF8_MULTIPLY " %d (%s) %f" UTF8_NBSP "Hz\n", | |
| 1130 | Machine->screen[0].visarea.max_x - Machine->screen[0].visarea.min_x + 1, | |
| 1131 | Machine->screen[0].visarea.max_y - Machine->screen[0].visarea.min_y + 1, | |
| 1132 | (Machine->gamedrv->flags & ORIENTATION_SWAP_XY) ? "V" : "H", | |
| 1133 | ATTOSECONDS_TO_HZ(Machine->screen[0].refresh)); | |
| 1134 | } | |
| 1135 | ||
| 1127 | 1136 | return bufptr - buffer; |
| 1128 | 1137 | } |
| 1129 | 1138 | |
| r1711 | r1712 | |
| 1517 | 1526 | |
| 1518 | 1527 | static void slider_init(void) |
| 1519 | 1528 | { |
| 1529 | int numscreens = video_screen_count(Machine->config); | |
| 1530 | const device_config *device; | |
| 1520 | 1531 | int numitems, item; |
| 1521 | 1532 | input_port_entry *in; |
| 1522 | 1533 | |
| r1711 | r1712 | |
| 1546 | 1557 | slider_config(&slider_list[slider_count++], -10000, 0, 10000, 1000, slider_refresh, 0); |
| 1547 | 1558 | } |
| 1548 | 1559 | |
| 1549 | for (item = 0; item < MAX_SCREENS; item++) | |
| 1550 | if (Machine->drv->screen[item].tag != NULL) | |
| 1551 | { | |
| 1552 | int defxscale = floor(Machine->drv->screen[item].xscale * 1000.0f + 0.5f); | |
| 1553 | int defyscale = floor(Machine->drv->screen[item].yscale * 1000.0f + 0.5f); | |
| 1554 | int defxoffset = floor(Machine->drv->screen[item].xoffset * 1000.0f + 0.5f); | |
| 1555 | int defyoffset = floor(Machine->drv->screen[item].yoffset * 1000.0f + 0.5f); | |
| 1560 | for (item = 0; item < numscreens; item++) | |
| 1561 | { | |
| 1562 | const screen_config *scrconfig = device_list_find_by_index(Machine->config->devicelist, VIDEO_SCREEN, item)->inline_config; | |
| 1563 | int defxscale = floor(scrconfig->xscale * 1000.0f + 0.5f); | |
| 1564 | int defyscale = floor(scrconfig->yscale * 1000.0f + 0.5f); | |
| 1565 | int defxoffset = floor(scrconfig->xoffset * 1000.0f + 0.5f); | |
| 1566 | int defyoffset = floor(scrconfig->yoffset * 1000.0f + 0.5f); | |
| 1556 | 1567 | |
| 1557 | /* add standard brightness/contrast/gamma controls per-screen */ | |
| 1558 | slider_config(&slider_list[slider_count++], 100, 1000, 2000, 10, slider_brightness, item); | |
| 1559 | slider_config(&slider_list[slider_count++], 100, 1000, 2000, 50, slider_contrast, item); | |
| 1560 | slider_config(&slider_list[slider_count++], 100, 1000, 3000, 50, slider_gamma, item); | |
| 1568 | /* add standard brightness/contrast/gamma controls per-screen */ | |
| 1569 | slider_config(&slider_list[slider_count++], 100, 1000, 2000, 10, slider_brightness, item); | |
| 1570 | slider_config(&slider_list[slider_count++], 100, 1000, 2000, 50, slider_contrast, item); | |
| 1571 | slider_config(&slider_list[slider_count++], 100, 1000, 3000, 50, slider_gamma, item); | |
| 1561 | 1572 | |
| 1562 | /* add scale and offset controls per-screen */ | |
| 1563 | slider_config(&slider_list[slider_count++], 500, (defxscale == 0) ? 1000 : defxscale, 1500, 2, slider_xscale, item); | |
| 1564 | slider_config(&slider_list[slider_count++], -500, defxoffset, 500, 2, slider_xoffset, item); | |
| 1565 | slider_config(&slider_list[slider_count++], 500, (defyscale == 0) ? 1000 : defyscale, 1500, 2, slider_yscale, item); | |
| 1566 | slider_config(&slider_list[slider_count++], -500, defyoffset, 500, 2, slider_yoffset, item); | |
| 1567 | } | |
| 1573 | /* add scale and offset controls per-screen */ | |
| 1574 | slider_config(&slider_list[slider_count++], 500, (defxscale == 0) ? 1000 : defxscale, 1500, 2, slider_xscale, item); | |
| 1575 | slider_config(&slider_list[slider_count++], -500, defxoffset, 500, 2, slider_xoffset, item); | |
| 1576 | slider_config(&slider_list[slider_count++], 500, (defyscale == 0) ? 1000 : defyscale, 1500, 2, slider_yscale, item); | |
| 1577 | slider_config(&slider_list[slider_count++], -500, defyoffset, 500, 2, slider_yoffset, item); | |
| 1578 | } | |
| 1568 | 1579 | |
| 1569 | | |
| 1580 | | |
| 1570 | 1581 | { |
| 1571 | /* add flicker control */ | |
| 1572 | slider_config(&slider_list[slider_count++], 0, 0, 1000, 10, slider_flicker, 0); | |
| 1573 | slider_config(&slider_list[slider_count++], 10, 100, 1000, 10, slider_beam, 0); | |
| 1582 | const screen_config *scrconfig = device->inline_config; | |
| 1583 | if (scrconfig->type == SCREEN_TYPE_VECTOR) | |
| 1584 | { | |
| 1585 | /* add flicker control */ | |
| 1586 | slider_config(&slider_list[slider_count++], 0, 0, 1000, 10, slider_flicker, 0); | |
| 1587 | slider_config(&slider_list[slider_count++], 10, 100, 1000, 10, slider_beam, 0); | |
| 1588 | break; | |
| 1589 | } | |
| 1574 | 1590 | } |
| 1575 | 1591 | |
| 1576 | 1592 | #ifdef MAME_DEBUG |
| r1711 | r1712 | |
| 1721 | 1737 | |
| 1722 | 1738 | static INT32 slider_refresh(running_machine *machine, INT32 newval, char *buffer, int arg) |
| 1723 | 1739 | { |
| 1724 | double defrefresh = ATTOSECONDS_TO_HZ(Machine->drv->screen[arg].defstate.refresh); | |
| 1740 | const screen_config *scrconfig = device_list_find_by_index(Machine->config->devicelist, VIDEO_SCREEN, arg)->inline_config; | |
| 1741 | double defrefresh = ATTOSECONDS_TO_HZ(scrconfig->defstate.refresh); | |
| 1725 | 1742 | double refresh; |
| 1726 | 1743 | |
| 1727 | 1744 | if (buffer != NULL) |
| r1711 | r1712 | |
| 1892 | 1909 | |
| 1893 | 1910 | static char *slider_get_screen_desc(int arg) |
| 1894 | 1911 | { |
| 1912 | int screen_count = video_screen_count(Machine->config); | |
| 1895 | 1913 | static char descbuf[256]; |
| 1896 | int item; | |
| 1897 | int screen_count = 0; | |
| 1898 | 1914 | |
| 1899 | for (item = 0; item < MAX_SCREENS; item++) | |
| 1900 | if (Machine->drv->screen[item].tag != NULL) | |
| 1901 | screen_count++; | |
| 1902 | ||
| 1903 | 1915 | if (screen_count > 1) |
| 1904 | 1916 | sprintf(descbuf, "Screen #%d", arg); |
| 1905 | 1917 | else |
| r1711 | r1712 | |
|---|---|---|
| 170 | 170 | void sid8580_get_info(void *token, UINT32 state, sndinfo *info); |
| 171 | 171 | void sp0256_get_info(void *token, UINT32 state, sndinfo *info); |
| 172 | 172 | void s14001a_get_info(void *token, UINT32 state, sndinfo *info); |
| 173 | void aica_get_info(void *token, UINT32 state, sndinfo *info); | |
| 173 | 174 | |
| 174 | 175 | void filter_volume_get_info(void *token, UINT32 state, sndinfo *info); |
| 175 | 176 | void filter_rc_get_info(void *token, UINT32 state, sndinfo *info); |
| r1711 | r1712 | |
| 315 | 316 | #if (HAS_M58817) |
| 316 | 317 | { SOUND_M58817, m58817_get_info }, |
| 317 | 318 | #endif |
| 319 | #if (HAS_TMC0285) | |
| 320 | { SOUND_TMC0285, tmc0285_get_info }, | |
| 321 | #endif | |
| 318 | 322 | #if (HAS_TMS5200) |
| 319 | 323 | { SOUND_TMS5200, tms5200_get_info }, |
| 320 | 324 | #endif |
| r1711 | r1712 | |
| 473 | 477 | #if (HAS_SP0256) |
| 474 | 478 | { SOUND_SP0256, sp0256_get_info }, |
| 475 | 479 | #endif |
| 480 | #if (HAS_AICA) | |
| 481 | { SOUND_AICA, aica_get_info }, | |
| 482 | #endif | |
| 476 | 483 | |
| 477 | 484 | { SOUND_FILTER_VOLUME, filter_volume_get_info }, |
| 478 | 485 | { SOUND_FILTER_RC, filter_rc_get_info }, |
| r1711 | r1712 | |
|---|---|---|
| 182 | 182 | Machine->sample_rate = 11025; |
| 183 | 183 | |
| 184 | 184 | /* count the speakers */ |
| 185 | for (totalspeakers = 0; Machine-> | |
| 185 | for (totalspeakers = 0; Machine->config->speaker[totalspeakers].tag; totalspeakers++) ; | |
| 186 | 186 | VPRINTF(("total speakers = %d\n", totalspeakers)); |
| 187 | 187 | |
| 188 | 188 | /* allocate memory for mix buffers */ |
| r1711 | r1712 | |
| 256 | 256 | |
| 257 | 257 | /* stop all the sound chips */ |
| 258 | 258 | for (sndnum = 0; sndnum < MAX_SOUND; sndnum++) |
| 259 | if (Machine-> | |
| 259 | if (Machine->config->sound[sndnum].type != SOUND_DUMMY) | |
| 260 | 260 | sndintrf_exit_sound(sndnum); |
| 261 | 261 | |
| 262 | 262 | /* reset variables */ |
| r1711 | r1712 | |
| 287 | 287 | /* start up all the sound chips */ |
| 288 | 288 | for (sndnum = 0; sndnum < MAX_SOUND; sndnum++) |
| 289 | 289 | { |
| 290 | const sound_config *msound = &Machine-> | |
| 290 | const sound_config *msound = &Machine->config->sound[sndnum]; | |
| 291 | 291 | sound_info *info; |
| 292 | 292 | int num_regs; |
| 293 | 293 | int index; |
| r1711 | r1712 | |
| 375 | 375 | /* start up all the speakers */ |
| 376 | 376 | for (totalspeakers = 0; totalspeakers < MAX_SPEAKER; totalspeakers++) |
| 377 | 377 | { |
| 378 | const speaker_config *mspeaker = &Machine-> | |
| 378 | const speaker_config *mspeaker = &Machine->config->speaker[totalspeakers]; | |
| 379 | 379 | speaker_info *info; |
| 380 | 380 | |
| 381 | 381 | /* stop when we hit an empty entry */ |
| r1711 | r1712 | |
| 546 | 546 | |
| 547 | 547 | /* reset all the sound chips */ |
| 548 | 548 | for (sndnum = 0; sndnum < MAX_SOUND; sndnum++) |
| 549 | if (Machine-> | |
| 549 | if (Machine->config->sound[sndnum].type != SOUND_DUMMY) | |
| 550 | 550 | sndnum_reset(sndnum); |
| 551 | 551 | } |
| 552 | 552 |
| r1711 | r1712 | |
|---|---|---|
| 39 | 39 | |
| 40 | 40 | |
| 41 | 41 | /*************************************************************************** |
| 42 | MISC | |
| 42 | MISC | |
| 43 | 43 | ***************************************************************************/ |
| 44 | 44 | |
| 45 | 45 | /*------------------------------------------------- |
| 46 | expand_machine_driver - construct a machine | |
| 47 | driver from the macroized state | |
| 48 | -------------------------------------------------*/ | |
| 49 | ||
| 50 | void expand_machine_driver(void (*constructor)(machine_config *), machine_config *output) | |
| 51 | { | |
| 52 | /* initialize the tag on the first screen */ | |
| 53 | memset(output, 0, sizeof(*output)); | |
| 54 | output->watchdog_time = attotime_zero; | |
| 55 | ||
| 56 | /* keeping this function allows us to pre-init the driver before constructing it */ | |
| 57 | (*constructor)(output); | |
| 58 | ||
| 59 | /* if no screen tagged, tag screen 0 as main */ | |
| 60 | if (output->screen[0].tag == NULL && output->screen[0].defstate.format != BITMAP_FORMAT_INVALID) | |
| 61 | output->screen[0].tag = "main"; | |
| 62 | ||
| 63 | /* if no screens, set a dummy refresh for the main screen */ | |
| 64 | if (output->screen[0].tag == NULL) | |
| 65 | output->screen[0].defstate.refresh = HZ_TO_ATTOSECONDS(60); | |
| 66 | } | |
| 67 | ||
| 68 | ||
| 69 | /*------------------------------------------------- | |
| 70 | driver_add_cpu - add a CPU during machine | |
| 71 | driver expansion | |
| 72 | -------------------------------------------------*/ | |
| 73 | ||
| 74 | cpu_config *driver_add_cpu(machine_config *machine, const char *tag, cpu_type type, int cpuclock) | |
| 75 | { | |
| 76 | int cpunum; | |
| 77 | ||
| 78 | for (cpunum = 0; cpunum < MAX_CPU; cpunum++) | |
| 79 | if (machine->cpu[cpunum].type == CPU_DUMMY) | |
| 80 | { | |
| 81 | machine->cpu[cpunum].tag = tag; | |
| 82 | machine->cpu[cpunum].type = type; | |
| 83 | machine->cpu[cpunum].clock = cpuclock; | |
| 84 | return &machine->cpu[cpunum]; | |
| 85 | } | |
| 86 | ||
| 87 | fatalerror("Out of CPU's!\n"); | |
| 88 | return NULL; | |
| 89 | } | |
| 90 | ||
| 91 | ||
| 92 | /*------------------------------------------------- | |
| 93 | driver_find_cpu - find a tagged CPU during | |
| 94 | machine driver expansion | |
| 95 | -------------------------------------------------*/ | |
| 96 | ||
| 97 | cpu_config *driver_find_cpu(machine_config *machine, const char *tag) | |
| 98 | { | |
| 99 | int cpunum; | |
| 100 | ||
| 101 | for (cpunum = 0; cpunum < MAX_CPU; cpunum++) | |
| 102 | if (machine->cpu[cpunum].tag && strcmp(machine->cpu[cpunum].tag, tag) == 0) | |
| 103 | return &machine->cpu[cpunum]; | |
| 104 | ||
| 105 | fatalerror("Can't find CPU '%s'!\n", tag); | |
| 106 | return NULL; | |
| 107 | } | |
| 108 | ||
| 109 | ||
| 110 | /*------------------------------------------------- | |
| 111 | driver_remove_cpu - remove a tagged CPU | |
| 112 | during machine driver expansion | |
| 113 | -------------------------------------------------*/ | |
| 114 | ||
| 115 | void driver_remove_cpu(machine_config *machine, const char *tag) | |
| 116 | { | |
| 117 | int cpunum; | |
| 118 | ||
| 119 | for (cpunum = 0; cpunum < MAX_CPU; cpunum++) | |
| 120 | if (machine->cpu[cpunum].tag && strcmp(machine->cpu[cpunum].tag, tag) == 0) | |
| 121 | { | |
| 122 | memmove(&machine->cpu[cpunum], &machine->cpu[cpunum + 1], sizeof(machine->cpu[0]) * (MAX_CPU - cpunum - 1)); | |
| 123 | memset(&machine->cpu[MAX_CPU - 1], 0, sizeof(machine->cpu[0])); | |
| 124 | return; | |
| 125 | } | |
| 126 | ||
| 127 | fatalerror("Can't find CPU '%s'!\n", tag); | |
| 128 | } | |
| 129 | ||
| 130 | ||
| 131 | /*------------------------------------------------- | |
| 132 | driver_add_speaker - add a speaker during | |
| 133 | machine driver expansion | |
| 134 | -------------------------------------------------*/ | |
| 135 | ||
| 136 | speaker_config *driver_add_speaker(machine_config *machine, const char *tag, float x, float y, float z) | |
| 137 | { | |
| 138 | int speakernum; | |
| 139 | ||
| 140 | for (speakernum = 0; speakernum < MAX_SPEAKER; speakernum++) | |
| 141 | if (machine->speaker[speakernum].tag == NULL) | |
| 142 | { | |
| 143 | machine->speaker[speakernum].tag = tag; | |
| 144 | machine->speaker[speakernum].x = x; | |
| 145 | machine->speaker[speakernum].y = y; | |
| 146 | machine->speaker[speakernum].z = z; | |
| 147 | return &machine->speaker[speakernum]; | |
| 148 | } | |
| 149 | ||
| 150 | fatalerror("Out of speakers!\n"); | |
| 151 | return NULL; | |
| 152 | } | |
| 153 | ||
| 154 | ||
| 155 | /*------------------------------------------------- | |
| 156 | driver_find_speaker - find a tagged speaker | |
| 157 | system during machine driver expansion | |
| 158 | -------------------------------------------------*/ | |
| 159 | ||
| 160 | speaker_config *driver_find_speaker(machine_config *machine, const char *tag) | |
| 161 | { | |
| 162 | int speakernum; | |
| 163 | ||
| 164 | for (speakernum = 0; speakernum < MAX_SPEAKER; speakernum++) | |
| 165 | if (machine->speaker[speakernum].tag && strcmp(machine->speaker[speakernum].tag, tag) == 0) | |
| 166 | return &machine->speaker[speakernum]; | |
| 167 | ||
| 168 | fatalerror("Can't find speaker '%s'!\n", tag); | |
| 169 | return NULL; | |
| 170 | } | |
| 171 | ||
| 172 | ||
| 173 | /*------------------------------------------------- | |
| 174 | driver_remove_speaker - remove a tagged speaker | |
| 175 | system during machine driver expansion | |
| 176 | -------------------------------------------------*/ | |
| 177 | ||
| 178 | void driver_remove_speaker(machine_config *machine, const char *tag) | |
| 179 | { | |
| 180 | int speakernum; | |
| 181 | ||
| 182 | for (speakernum = 0; speakernum < MAX_SPEAKER; speakernum++) | |
| 183 | if (machine->speaker[speakernum].tag && strcmp(machine->speaker[speakernum].tag, tag) == 0) | |
| 184 | { | |
| 185 | memmove(&machine->speaker[speakernum], &machine->speaker[speakernum + 1], sizeof(machine->speaker[0]) * (MAX_SPEAKER - speakernum - 1)); | |
| 186 | memset(&machine->speaker[MAX_SPEAKER - 1], 0, sizeof(machine->speaker[0])); | |
| 187 | return; | |
| 188 | } | |
| 189 | ||
| 190 | fatalerror("Can't find speaker '%s'!\n", tag); | |
| 191 | } | |
| 192 | ||
| 193 | ||
| 194 | /*------------------------------------------------- | |
| 195 | driver_add_sound - add a sound system during | |
| 196 | machine driver expansion | |
| 197 | -------------------------------------------------*/ | |
| 198 | ||
| 199 | sound_config *driver_add_sound(machine_config *machine, const char *tag, sound_type type, int clock) | |
| 200 | { | |
| 201 | int soundnum; | |
| 202 | ||
| 203 | for (soundnum = 0; soundnum < MAX_SOUND; soundnum++) | |
| 204 | if (machine->sound[soundnum].type == SOUND_DUMMY) | |
| 205 | { | |
| 206 | machine->sound[soundnum].tag = tag; | |
| 207 | machine->sound[soundnum].type = type; | |
| 208 | machine->sound[soundnum].clock = clock; | |
| 209 | machine->sound[soundnum].config = NULL; | |
| 210 | machine->sound[soundnum].routes = 0; | |
| 211 | return &machine->sound[soundnum]; | |
| 212 | } | |
| 213 | ||
| 214 | fatalerror("Out of sounds!\n"); | |
| 215 | return NULL; | |
| 216 | } | |
| 217 | ||
| 218 | ||
| 219 | /*------------------------------------------------- | |
| 220 | driver_find_sound - find a tagged sound | |
| 221 | system during machine driver expansion | |
| 222 | -------------------------------------------------*/ | |
| 223 | ||
| 224 | sound_config *driver_find_sound(machine_config *machine, const char *tag) | |
| 225 | { | |
| 226 | int soundnum; | |
| 227 | ||
| 228 | for (soundnum = 0; soundnum < MAX_SOUND; soundnum++) | |
| 229 | if (machine->sound[soundnum].tag && strcmp(machine->sound[soundnum].tag, tag) == 0) | |
| 230 | return &machine->sound[soundnum]; | |
| 231 | ||
| 232 | fatalerror("Can't find sound '%s'!\n", tag); | |
| 233 | return NULL; | |
| 234 | } | |
| 235 | ||
| 236 | ||
| 237 | /*------------------------------------------------- | |
| 238 | driver_remove_sound - remove a tagged sound | |
| 239 | system during machine driver expansion | |
| 240 | -------------------------------------------------*/ | |
| 241 | ||
| 242 | void driver_remove_sound(machine_config *machine, const char *tag) | |
| 243 | { | |
| 244 | int soundnum; | |
| 245 | ||
| 246 | for (soundnum = 0; soundnum < MAX_SOUND; soundnum++) | |
| 247 | if (machine->sound[soundnum].tag && strcmp(machine->sound[soundnum].tag, tag) == 0) | |
| 248 | { | |
| 249 | memmove(&machine->sound[soundnum], &machine->sound[soundnum + 1], sizeof(machine->sound[0]) * (MAX_SOUND - soundnum - 1)); | |
| 250 | memset(&machine->sound[MAX_SOUND - 1], 0, sizeof(machine->sound[0])); | |
| 251 | return; | |
| 252 | } | |
| 253 | ||
| 254 | fatalerror("Can't find sound '%s'!\n", tag); | |
| 255 | } | |
| 256 | ||
| 257 | ||
| 258 | /*------------------------------------------------- | |
| 259 | driver_add_screen - add a screen during | |
| 260 | machine driver expansion | |
| 261 | -------------------------------------------------*/ | |
| 262 | ||
| 263 | screen_config *driver_add_screen(machine_config *machine, const char *tag, int palbase) | |
| 264 | { | |
| 265 | int screennum; | |
| 266 | ||
| 267 | for (screennum = 0; screennum < MAX_SCREENS; screennum++) | |
| 268 | if (machine->screen[screennum].tag == NULL) | |
| 269 | { | |
| 270 | machine->screen[screennum].tag = tag; | |
| 271 | machine->screen[screennum].palette_base = palbase; | |
| 272 | return &machine->screen[screennum]; | |
| 273 | } | |
| 274 | ||
| 275 | fatalerror("Out of screens!\n"); | |
| 276 | return NULL; | |
| 277 | } | |
| 278 | ||
| 279 | ||
| 280 | /*------------------------------------------------- | |
| 281 | driver_find_screen - find a tagged screen | |
| 282 | during machine driver expansion | |
| 283 | -------------------------------------------------*/ | |
| 284 | ||
| 285 | screen_config *driver_find_screen(machine_config *machine, const char *tag) | |
| 286 | { | |
| 287 | int screennum; | |
| 288 | ||
| 289 | for (screennum = 0; screennum < MAX_SCREENS; screennum++) | |
| 290 | if (machine->screen[screennum].tag && strcmp(machine->screen[screennum].tag, tag) == 0) | |
| 291 | return &machine->screen[screennum]; | |
| 292 | ||
| 293 | fatalerror("Can't find screen '%s'!\n", tag); | |
| 294 | return NULL; | |
| 295 | } | |
| 296 | ||
| 297 | ||
| 298 | /*------------------------------------------------- | |
| 299 | driver_remove_screen - remove a tagged screen | |
| 300 | during machine driver expansion | |
| 301 | -------------------------------------------------*/ | |
| 302 | ||
| 303 | void driver_remove_screen(machine_config *machine, const char *tag) | |
| 304 | { | |
| 305 | int screennum; | |
| 306 | ||
| 307 | for (screennum = 0; screennum < MAX_SCREENS; screennum++) | |
| 308 | if (machine->screen[screennum].tag && strcmp(machine->screen[screennum].tag, tag) == 0) | |
| 309 | { | |
| 310 | memmove(&machine->screen[screennum], &machine->screen[screennum + 1], sizeof(machine->screen[0]) * (MAX_SCREENS - screennum - 1)); | |
| 311 | memset(&machine->screen[MAX_SCREENS - 1], 0, sizeof(machine->screen[0])); | |
| 312 | return; | |
| 313 | } | |
| 314 | ||
| 315 | fatalerror("Can't find screen '%s'!\n", tag); | |
| 316 | } | |
| 317 | ||
| 318 | ||
| 319 | /*------------------------------------------------- | |
| 320 | 46 | driver_get_name - return a pointer to a |
| 321 | 47 | driver given its name |
| 322 | 48 | -------------------------------------------------*/ |
| r1711 | r1712 | |
|---|---|---|
| 134 | 134 | SOUND_SID8580, |
| 135 | 135 | SOUND_SP0256, |
| 136 | 136 | SOUND_S14001A, |
| 137 | SOUND_AICA, | |
| 137 | 138 | |
| 138 | 139 | /* filters start here */ |
| 139 | 140 | SOUND_FILTER_VOLUME, |
| r1711 | r1712 | |
|---|---|---|
| 46 | 46 | #define VIDEO_RESET(name) void video_reset_##name(running_machine *machine) |
| 47 | 47 | #define VIDEO_RESET_CALL(name) video_reset_##name(machine) |
| 48 | 48 | |
| 49 | #define PALETTE_INIT(name) void palette_init_##name(running_machine *machine, UINT16 *colortable, const UINT8 *color_prom) | |
| 50 | #define PALETTE_INIT_CALL(name) palette_init_##name(machine, colortable, color_prom) | |
| 49 | #define PALETTE_INIT(name) void palette_init_##name(running_machine *machine, const UINT8 *color_prom) | |
| 50 | #define PALETTE_INIT_CALL(name) palette_init_##name(machine, color_prom) | |
| 51 | 51 | |
| 52 | 52 | #define VIDEO_EOF(name) void video_eof_##name(running_machine *machine) |
| 53 | 53 | #define VIDEO_EOF_CALL(name) video_eof_##name(machine) |
| r1711 | r1712 | |
| 86 | 86 | #include "output.h" |
| 87 | 87 | #include "tilemap.h" |
| 88 | 88 | #include "romload.h" |
| 89 | #include "mconfig.h" | |
| 89 | 90 | #include "drivers/xtal.h" |
| 90 | 91 | #include "machine/generic.h" |
| 91 | 92 | #include "audio/generic.h" |
| r1711 | r1712 | |
| 103 | 104 | |
| 104 | 105 | /* maxima */ |
| 105 | 106 | #define MAX_DRIVER_NAME_CHARS 8 |
| 106 | #define MAX_SPEAKER 4 | |
| 107 | 107 | |
| 108 | /* watchdog constants */ | |
| 109 | #define DEFAULT_60HZ_3S_VBLANK_WATCHDOG 180 | |
| 110 | #define DEFAULT_30HZ_3S_VBLANK_WATCHDOG 90 | |
| 111 | 108 | |
| 112 | 109 | |
| 113 | ||
| 114 | /* ----- VBLANK constants ----- */ | |
| 115 | ||
| 116 | /* | |
| 117 | VBLANK is the period when the video beam is outside of the visible area | |
| 118 | and returns from the bottom-right to the top-left of the screen to | |
| 119 | prepare for a new video frame. The duration of VBLANK is an important | |
| 120 | factor in how the game renders itself. In many cases, the game does | |
| 121 | video-related operations during this time, such as swapping buffers or | |
| 122 | updating sprite lists. | |
| 123 | ||
| 124 | Below are some predefined, TOTALLY ARBITRARY values for vblank_duration, | |
| 125 | which should be OK for most cases. I have NO IDEA how accurate they are | |
| 126 | compared to the real hardware, they could be completely wrong. | |
| 127 | */ | |
| 128 | ||
| 129 | /* The default is to have no VBLANK timing -- this is historical, and a bad idea */ | |
| 130 | #define DEFAULT_60HZ_VBLANK_DURATION ATTOSECONDS_IN_USEC(0) | |
| 131 | #define DEFAULT_30HZ_VBLANK_DURATION ATTOSECONDS_IN_USEC(0) | |
| 132 | ||
| 133 | /* If you use IPT_VBLANK, you need a duration different from 0 */ | |
| 134 | #define DEFAULT_REAL_60HZ_VBLANK_DURATION ATTOSECONDS_IN_USEC(2500) | |
| 135 | #define DEFAULT_REAL_30HZ_VBLANK_DURATION ATTOSECONDS_IN_USEC(2500) | |
| 136 | ||
| 137 | ||
| 138 | ||
| 139 | /* ----- flags for video_attributes ----- */ | |
| 140 | ||
| 141 | /* is the video hardware raster or vector based? */ | |
| 142 | #define VIDEO_TYPE_NONE 0x0000 | |
| 143 | #define VIDEO_TYPE_RASTER 0x0001 | |
| 144 | #define VIDEO_TYPE_VECTOR 0x0002 | |
| 145 | ||
| 146 | /* should VIDEO_UPDATE by called at the start of VBLANK or at the end? */ | |
| 147 | #define VIDEO_UPDATE_BEFORE_VBLANK 0x0000 | |
| 148 | #define VIDEO_UPDATE_AFTER_VBLANK 0x0004 | |
| 149 | ||
| 150 | /* indicates VIDEO_UPDATE will add container bits its */ | |
| 151 | #define VIDEO_SELF_RENDER 0x0008 | |
| 152 | ||
| 153 | /* automatically extend the palette creating a darker copy for shadows */ | |
| 154 | #define VIDEO_HAS_SHADOWS 0x0010 | |
| 155 | ||
| 156 | /* automatically extend the palette creating a brighter copy for highlights */ | |
| 157 | #define VIDEO_HAS_HIGHLIGHTS 0x0020 | |
| 158 | ||
| 159 | /* Mish 181099: See comments in video/generic.c for details */ | |
| 160 | #define VIDEO_BUFFERS_SPRITERAM 0x0040 | |
| 161 | ||
| 162 | /* force VIDEO_UPDATE to be called even for skipped frames */ | |
| 163 | #define VIDEO_ALWAYS_UPDATE 0x0080 | |
| 164 | ||
| 165 | /* calls VIDEO_UPDATE for every visible scanline, even for skipped frames */ | |
| 166 | #define VIDEO_UPDATE_SCANLINE 0x0100 | |
| 167 | ||
| 168 | ||
| 169 | ||
| 170 | 110 | /* ----- flags for game drivers ----- */ |
| 171 | 111 | |
| 172 | 112 | #define ORIENTATION_MASK 0x0007 |
| r1711 | r1712 | |
| 198 | 138 | TYPE DEFINITIONS |
| 199 | 139 | ***************************************************************************/ |
| 200 | 140 | |
| 201 | /* In mamecore.h: typedef struct _machine_config machine_config; */ | |
| 202 | struct _machine_config | |
| 203 | { | |
| 204 | UINT32 driver_data_size; /* amount of memory needed for driver_data */ | |
| 205 | ||
| 206 | cpu_config cpu[MAX_CPU]; /* array of CPUs in the system */ | |
| 207 | UINT32 cpu_slices_per_frame; /* number of times to interleave execution per frame */ | |
| 208 | INT32 watchdog_vblank_count; /* number of VBLANKs until the watchdog kills us */ | |
| 209 | attotime watchdog_time; /* length of time until the watchdog kills us */ | |
| 210 | ||
| 211 | void (*machine_start)(running_machine *machine); /* one-time machine start callback */ | |
| 212 | void (*machine_reset)(running_machine *machine); /* machine reset callback */ | |
| 213 | ||
| 214 | void (*nvram_handler)(running_machine *machine, mame_file *file, int read_or_write); /* NVRAM save/load callback */ | |
| 215 | void (*memcard_handler)(running_machine *machine, mame_file *file, int action); /* memory card save/load callback */ | |
| 216 | ||
| 217 | UINT32 video_attributes; /* flags describing the video system */ | |
| 218 | const gfx_decode_entry *gfxdecodeinfo; /* pointer to array of graphics decoding information */ | |
| 219 | UINT32 total_colors; /* total number of colors in the palette */ | |
| 220 | UINT32 color_table_len; /* length of the color indirection table */ | |
| 221 | const char * default_layout; /* default layout for this machine */ | |
| 222 | screen_config screen[MAX_SCREENS]; /* total number of screens */ | |
| 223 | ||
| 224 | void (*init_palette)(running_machine *machine, UINT16 *colortable, const UINT8 *color_prom); /* one-time palette init callback */ | |
| 225 | void (*video_start)(running_machine *machine); /* one-time video start callback */ | |
| 226 | void (*video_reset)(running_machine *machine); /* video reset callback */ | |
| 227 | void (*video_eof)(running_machine *machine); /* end-of-frame video callback */ | |
| 228 | UINT32 (*video_update)(running_machine *machine, int screen, mame_bitmap *bitmap, const rectangle *cliprect); /* video update callback */ | |
| 229 | ||
| 230 | sound_config sound[MAX_SOUND]; /* array of sound chips in the system */ | |
| 231 | speaker_config speaker[MAX_SPEAKER]; /* array of speakers in the system */ | |
| 232 | ||
| 233 | void (*sound_start)(running_machine *machine); /* one-time sound start callback */ | |
| 234 | void (*sound_reset)(running_machine *machine); /* sound reset callback */ | |
| 235 | }; | |
| 236 | ||
| 237 | ||
| 238 | 141 | /* In mamecore.h: typedef struct _game_driver game_driver; */ |
| 239 | 142 | struct _game_driver |
| 240 | 143 | { |
| r1711 | r1712 | |
| 261 | 164 | |
| 262 | 165 | |
| 263 | 166 | /*************************************************************************** |
| 264 | MACROS FOR BUILDING MACHINE DRIVERS | |
| 265 | ***************************************************************************/ | |
| 266 | ||
| 267 | /* use this to declare external references to a machine driver */ | |
| 268 | #define MACHINE_DRIVER_EXTERN(game) \ | |
| 269 | void construct_##game(machine_config *machine) \ | |
| 270 | ||
| 271 | ||
| 272 | /* start/end tags for the machine driver */ | |
| 273 | #define MACHINE_DRIVER_START(game) \ | |
| 274 | void construct_##game(machine_config *machine) \ | |
| 275 | { \ | |
| 276 | cpu_config *cpu = NULL; \ | |
| 277 | sound_config *sound = NULL; \ | |
| 278 | screen_config *screen = &machine->screen[0]; \ | |
| 279 | (void)cpu; \ | |
| 280 | (void)sound; \ | |
| 281 | (void)screen; \ | |
| 282 | ||
| 283 | #define MACHINE_DRIVER_END \ | |
| 284 | } \ | |
| 285 | ||
| 286 | ||
| 287 | /* importing data from other machine drivers */ | |
| 288 | #define MDRV_IMPORT_FROM(game) \ | |
| 289 | construct_##game(machine); \ | |
| 290 | ||
| 291 | ||
| 292 | /* add/modify/remove/replace CPUs */ | |
| 293 | #define MDRV_CPU_ADD_TAG(tag, type, clock) \ | |
| 294 | cpu = driver_add_cpu(machine, (tag), CPU_##type, (clock)); \ | |
| 295 | ||
| 296 | #define MDRV_CPU_ADD(type, clock) \ | |
| 297 | MDRV_CPU_ADD_TAG(NULL, type, clock) \ | |
| 298 | ||
| 299 | #define MDRV_CPU_MODIFY(tag) \ | |
| 300 | cpu = driver_find_cpu(machine, tag); \ | |
| 301 | ||
| 302 | #define MDRV_CPU_REMOVE(tag) \ | |
| 303 | driver_remove_cpu(machine, tag); \ | |
| 304 | cpu = NULL; \ | |
| 305 | ||
| 306 | #define MDRV_CPU_REPLACE(tag, _type, _clock) \ | |
| 307 | cpu = driver_find_cpu(machine, tag); \ | |
| 308 | cpu->type = (CPU_##_type); \ | |
| 309 | cpu->clock = (_clock); \ | |
| 310 | ||
| 311 | ||
| 312 | /* CPU parameters */ | |
| 313 | #define MDRV_CPU_FLAGS(_flags) \ | |
| 314 | if (cpu) \ | |
| 315 | cpu->flags = (_flags); \ | |
| 316 | ||
| 317 | #define MDRV_CPU_CONFIG(config) \ | |
| 318 | if (cpu) \ | |
| 319 | cpu->reset_param = &(config); \ | |
| 320 | ||
| 321 | #define MDRV_CPU_PROGRAM_MAP(readmem, writemem) \ | |
| 322 | if (cpu) \ | |
| 323 | { \ | |
| 324 | cpu->construct_map[ADDRESS_SPACE_PROGRAM][0] = (construct_map_##readmem); \ | |
| 325 | cpu->construct_map[ADDRESS_SPACE_PROGRAM][1] = (construct_map_##writemem); \ | |
| 326 | } \ | |
| 327 | ||
| 328 | #define MDRV_CPU_DATA_MAP(readmem, writemem) \ | |
| 329 | if (cpu) \ | |
| 330 | { \ | |
| 331 | cpu->construct_map[ADDRESS_SPACE_DATA][0] = (construct_map_##readmem); \ | |
| 332 | cpu->construct_map[ADDRESS_SPACE_DATA][1] = (construct_map_##writemem); \ | |
| 333 | } \ | |
| 334 | ||
| 335 | #define MDRV_CPU_IO_MAP(readmem, writemem) \ | |
| 336 | if (cpu) \ | |
| 337 | { \ | |
| 338 | cpu->construct_map[ADDRESS_SPACE_IO][0] = (construct_map_##readmem); \ | |
| 339 | cpu->construct_map[ADDRESS_SPACE_IO][1] = (construct_map_##writemem); \ | |
| 340 | } \ | |
| 341 | ||
| 342 | #define MDRV_CPU_VBLANK_INT(func, rate) \ | |
| 343 | if (cpu) \ | |
| 344 | { \ | |
| 345 | cpu->vblank_interrupt = func; \ | |
| 346 | cpu->vblank_interrupts_per_frame = (rate); \ | |
| 347 | } \ | |
| 348 | ||
| 349 | #define MDRV_CPU_PERIODIC_INT(func, rate) \ | |
| 350 | if (cpu) \ | |
| 351 | { \ | |
| 352 | cpu->timed_interrupt = func; \ | |
| 353 | cpu->timed_interrupt_period = HZ_TO_ATTOSECONDS(rate); \ | |
| 354 | } \ | |
| 355 | ||
| 356 | ||
| 357 | /* core parameters */ | |
| 358 | #define MDRV_DRIVER_DATA(_struct) \ | |
| 359 | machine->driver_data_size = sizeof(_struct); \ | |
| 360 | ||
| 361 | #define MDRV_INTERLEAVE(interleave) \ | |
| 362 | machine->cpu_slices_per_frame = (interleave); \ | |
| 363 | ||
| 364 | #define MDRV_WATCHDOG_VBLANK_INIT(watch_count) \ | |
| 365 | machine->watchdog_vblank_count = (watch_count); \ | |
| 366 | ||
| 367 | #define MDRV_WATCHDOG_TIME_INIT(time) \ | |
| 368 | machine->watchdog_time = (time); \ | |
| 369 | ||
| 370 | ||
| 371 | /* core functions */ | |
| 372 | #define MDRV_MACHINE_START(name) \ | |
| 373 | machine->machine_start = machine_start_##name; \ | |
| 374 | ||
| 375 | #define MDRV_MACHINE_RESET(name) \ | |
| 376 | machine->machine_reset = machine_reset_##name; \ | |
| 377 | ||
| 378 | #define MDRV_NVRAM_HANDLER(name) \ | |
| 379 | machine->nvram_handler = nvram_handler_##name; \ | |
| 380 | ||
| 381 | #define MDRV_MEMCARD_HANDLER(name) \ | |
| 382 | machine->memcard_handler = memcard_handler_##name; \ | |
| 383 | ||
| 384 | ||
| 385 | /* core video parameters */ | |
| 386 | #define MDRV_VIDEO_ATTRIBUTES(flags) \ | |
| 387 | machine->video_attributes = (flags); \ | |
| 388 | ||
| 389 | #define MDRV_GFXDECODE(gfx) \ | |
| 390 | machine->gfxdecodeinfo = (gfxdecodeinfo_##gfx); \ | |
| 391 | ||
| 392 | #define MDRV_PALETTE_LENGTH(length) \ | |
| 393 | machine->total_colors = (length); \ | |
| 394 | ||
| 395 | #define MDRV_COLORTABLE_LENGTH(length) \ | |
| 396 | machine->color_table_len = (length); \ | |
| 397 | ||
| 398 | #define MDRV_DEFAULT_LAYOUT(layout) \ | |
| 399 | machine->default_layout = &(layout)[0]; \ | |
| 400 | ||
| 401 | ||
| 402 | /* core video functions */ | |
| 403 | #define MDRV_PALETTE_INIT(name) \ | |
| 404 | machine->init_palette = palette_init_##name; \ | |
| 405 | ||
| 406 | #define MDRV_VIDEO_START(name) \ | |
| 407 | machine->video_start = video_start_##name; \ | |
| 408 | ||
| 409 | #define MDRV_VIDEO_RESET(name) \ | |
| 410 | machine->video_reset = video_reset_##name; \ | |
| 411 | ||
| 412 | #define MDRV_VIDEO_EOF(name) \ | |
| 413 | machine->video_eof = video_eof_##name; \ | |
| 414 | ||
| 415 | #define MDRV_VIDEO_UPDATE(name) \ | |
| 416 | machine->video_update = video_update_##name; \ | |
| 417 | ||
| 418 | ||
| 419 | /* add/remove screens */ | |
| 420 | #define MDRV_SCREEN_ADD(tag, palbase) \ | |
| 421 | screen = driver_add_screen(machine, (tag), (palbase)); \ | |
| 422 | ||
| 423 | #define MDRV_SCREEN_REMOVE(tag) \ | |
| 424 | driver_remove_screen(machine, tag); \ | |
| 425 | ||
| 426 | #define MDRV_SCREEN_MODIFY(tag) \ | |
| 427 | screen = driver_find_screen(machine, tag); \ | |
| 428 | ||
| 429 | #define MDRV_SCREEN_FORMAT(_format) \ | |
| 430 | screen->defstate.format = (_format); \ | |
| 431 | ||
| 432 | #define MDRV_SCREEN_RAW_PARAMS(pixclock, htotal, hbend, hbstart, vtotal, vbend, vbstart) \ | |
| 433 | screen->defstate.refresh = HZ_TO_ATTOSECONDS(pixclock) * (htotal) * (vtotal); \ | |
| 434 | screen->defstate.vblank = (screen->defstate.refresh / (vtotal)) * ((vtotal) - ((vbstart) - (vbend))); \ | |
| 435 | screen->defstate.width = (htotal); \ | |
| 436 | screen->defstate.height = (vtotal); \ | |
| 437 | screen->defstate.visarea.min_x = (hbend); \ | |
| 438 | screen->defstate.visarea.max_x = (hbstart) - 1; \ | |
| 439 | screen->defstate.visarea.min_y = (vbend); \ | |
| 440 | screen->defstate.visarea.max_y = (vbstart) - 1; \ | |
| 441 | ||
| 442 | #define MDRV_SCREEN_REFRESH_RATE(rate) \ | |
| 443 | screen->defstate.refresh = HZ_TO_ATTOSECONDS(rate); \ | |
| 444 | ||
| 445 | #define MDRV_SCREEN_VBLANK_TIME(time) \ | |
| 446 | screen->defstate.vblank = time; \ | |
| 447 | screen->defstate.oldstyle_vblank_supplied = 1; \ | |
| 448 | ||
| 449 | #define MDRV_SCREEN_SIZE(_width, _height) \ | |
| 450 | screen->defstate.width = (_width); \ | |
| 451 | screen->defstate.height = (_height); \ | |
| 452 | ||
| 453 | #define MDRV_SCREEN_VISIBLE_AREA(minx, maxx, miny, maxy) \ | |
| 454 | screen->defstate.visarea.min_x = (minx); \ | |
| 455 | screen->defstate.visarea.max_x = (maxx); \ | |
| 456 | screen->defstate.visarea.min_y = (miny); \ | |
| 457 | screen->defstate.visarea.max_y = (maxy); \ | |
| 458 | ||
| 459 | #define MDRV_SCREEN_DEFAULT_POSITION(_xscale, _xoffs, _yscale, _yoffs) \ | |
| 460 | screen->xoffset = (float)(_xoffs); \ | |
| 461 | screen->xscale = (float)(_xscale); \ | |
| 462 | screen->yoffset = (float)(_yoffs); \ | |
| 463 | screen->yscale = (float)(_yscale); \ | |
| 464 | ||
| 465 | ||
| 466 | /* add/remove speakers */ | |
| 467 | #define MDRV_SPEAKER_ADD(tag, x, y, z) \ | |
| 468 | driver_add_speaker(machine, (tag), (float)(x), (float)(y), (float)(z)); \ | |
| 469 | ||
| 470 | #define MDRV_SPEAKER_REMOVE(tag) \ | |
| 471 | driver_remove_speaker(machine, (tag)); \ | |
| 472 | ||
| 473 | #define MDRV_SPEAKER_STANDARD_MONO(tag) \ | |
| 474 | MDRV_SPEAKER_ADD(tag, 0.0, 0.0, 1.0) \ | |
| 475 | ||
| 476 | #define MDRV_SPEAKER_STANDARD_STEREO(tagl, tagr) \ | |
| 477 | MDRV_SPEAKER_ADD(tagl, -0.2, 0.0, 1.0) \ | |
| 478 | MDRV_SPEAKER_ADD(tagr, 0.2, 0.0, 1.0) \ | |
| 479 | ||
| 480 | ||
| 481 | /* core sound functions */ | |
| 482 | #define MDRV_SOUND_START(name) \ | |
| 483 | machine->sound_start = sound_start_##name; \ | |
| 484 | ||
| 485 | #define MDRV_SOUND_RESET(name) \ | |
| 486 | machine->sound_reset = sound_reset_##name; \ | |
| 487 | ||
| 488 | ||
| 489 | /* add/remove/replace sounds */ | |
| 490 | #define MDRV_SOUND_ADD_TAG(tag, type, clock) \ | |
| 491 | sound = driver_add_sound(machine, (tag), SOUND_##type, (clock)); \ | |
| 492 | ||
| 493 | #define MDRV_SOUND_ADD(type, clock) \ | |
| 494 | MDRV_SOUND_ADD_TAG(NULL, type, clock) \ | |
| 495 | ||
| 496 | #define MDRV_SOUND_REMOVE(tag) \ | |
| 497 | driver_remove_sound(machine, tag); \ | |
| 498 | ||
| 499 | #define MDRV_SOUND_MODIFY(tag) \ | |
| 500 | sound = driver_find_sound(machine, tag); \ | |
| 501 | sound->routes = 0; \ | |
| 502 | ||
| 503 | #define MDRV_SOUND_CONFIG(_config) \ | |
| 504 | if (sound) \ | |
| 505 | sound->config = &(_config); \ | |
| 506 | ||
| 507 | #define MDRV_SOUND_REPLACE(tag, _type, _clock) \ | |
| 508 | sound = driver_find_sound(machine, tag); \ | |
| 509 | if (sound) \ | |
| 510 | { \ | |
| 511 | sound->type = SOUND_##_type; \ | |
| 512 | sound->clock = (_clock); \ | |
| 513 | sound->config = NULL; \ | |
| 514 | sound->routes = 0; \ | |
| 515 | } \ | |
| 516 | ||
| 517 | #define MDRV_SOUND_ROUTE_EX(_output, _target, _gain, _input) \ | |
| 518 | if (sound) \ | |
| 519 | { \ | |
| 520 | sound->route[sound->routes].output = (_output); \ | |
| 521 | sound->route[sound->routes].target = (_target); \ | |
| 522 | sound->route[sound->routes].gain = (float)(_gain); \ | |
| 523 | sound->route[sound->routes].input = (_input); \ | |
| 524 | sound->routes++; \ | |
| 525 | } \ | |
| 526 | ||
| 527 | #define MDRV_SOUND_ROUTE(_output, _target, _gain) \ | |
| 528 | MDRV_SOUND_ROUTE_EX(_output, _target, _gain, -1) \ | |
| 529 | ||
| 530 | ||
| 531 | ||
| 532 | /*************************************************************************** | |
| 533 | 167 | MACROS FOR BUILDING GAME DRIVERS |
| 534 | 168 | ***************************************************************************/ |
| 535 | 169 | |
| r1711 | r1712 | |
| 572 | 206 | FUNCTION PROTOTYPES |
| 573 | 207 | ***************************************************************************/ |
| 574 | 208 | |
| 575 | void expand_machine_driver(void (*constructor)(machine_config *), machine_config *output); | |
| 576 | ||
| 577 | cpu_config *driver_add_cpu(machine_config *machine, const char *tag, cpu_type type, int cpuclock); | |
| 578 | cpu_config *driver_find_cpu(machine_config *machine, const char *tag); | |
| 579 | void driver_remove_cpu(machine_config *machine, const char *tag); | |
| 580 | ||
| 581 | speaker_config *driver_add_speaker(machine_config *machine, const char *tag, float x, float y, float z); | |
| 582 | speaker_config *driver_find_speaker(machine_config *machine, const char *tag); | |
| 583 | void driver_remove_speaker(machine_config *machine, const char *tag); | |
| 584 | ||
| 585 | sound_config *driver_add_sound(machine_config *machine, const char *tag, sound_type type, int clock); | |
| 586 | sound_config *driver_find_sound(machine_config *machine, const char *tag); | |
| 587 | void driver_remove_sound(machine_config *machine, const char *tag); | |
| 588 | ||
| 589 | screen_config *driver_add_screen(machine_config *machine, const char *tag, int palbase); | |
| 590 | screen_config *driver_find_screen(machine_config *machine, const char *tag); | |
| 591 | void driver_remove_screen(machine_config *machine, const char *tag); | |
| 592 | ||
| 593 | 209 | const game_driver *driver_get_name(const char *name); |
| 594 | 210 | const game_driver *driver_get_clone(const game_driver *driver); |
| 595 | 211 |
| r1711 | r1712 | |
|---|---|---|
| 121 | 121 | { |
| 122 | 122 | input_line_state[cpunum][line] = CLEAR_LINE; |
| 123 | 123 | interrupt_vector[cpunum][line] = |
| 124 | input_line_vector[cpunum][line] = cputype_default_irq_vector(machine-> | |
| 124 | input_line_vector[cpunum][line] = cputype_default_irq_vector(machine->config->cpu[cpunum].type); | |
| 125 | 125 | input_event_index[cpunum][line] = 0; |
| 126 | 126 | } |
| 127 | 127 | } |
| r1711 | r1712 | |
| 230 | 230 | { |
| 231 | 231 | case PULSE_LINE: |
| 232 | 232 | /* temporary: PULSE_LINE only makes sense for NMI lines on Z80 */ |
| 233 | assert(machine-> | |
| 233 | assert(machine->config->cpu[cpunum].type != CPU_Z80 || line == INPUT_LINE_NMI); | |
| 234 | 234 | activecpu_set_input_line(line, INTERNAL_ASSERT_LINE); |
| 235 | 235 | activecpu_set_input_line(line, INTERNAL_CLEAR_LINE); |
| 236 | 236 | break; |
| r1711 | r1712 | |
|---|---|---|
| 1391 | 1391 | { |
| 1392 | 1392 | if( gfx ) |
| 1393 | 1393 | { |
| 1394 | | |
| 1394 | UINT32 p | |
| 1395 | 1395 | UINT8 *source_base = gfx->gfxdata + (code % gfx->total_elements) * gfx->char_modulo; |
| 1396 | 1396 | |
| 1397 | 1397 | int sprite_screen_height = (scaley*gfx->height+0x8000)>>16; |
| r1711 | r1712 | |
| 1477 | 1477 | for( x=sx; x<ex; x++ ) |
| 1478 | 1478 | { |
| 1479 | 1479 | if (((1 << pri[x]) & pri_mask) == 0) |
| 1480 | dest[x] = pal | |
| 1480 | dest[x] = palbase + ((source[x_index>>17] >> ((x_index & 0x10000) >> 14)) & 0x0f); | |
| 1481 | 1481 | pri[x] = 31; |
| 1482 | 1482 | x_index += dx; |
| 1483 | 1483 | } |
| r1711 | r1712 | |
| 1497 | 1497 | for( x=sx; x<ex; x++ ) |
| 1498 | 1498 | { |
| 1499 | 1499 | if (((1 << pri[x]) & pri_mask) == 0) |
| 1500 | dest[x] = pal | |
| 1500 | dest[x] = palbase + source[x_index>>16 | |
| 1501 | 1501 | x_index += dx; |
| 1502 | 1502 | } |
| 1503 | 1503 | |
| r1711 | r1712 | |
| 1517 | 1517 | int x, x_index = x_index_base; |
| 1518 | 1518 | for( x=sx; x<ex; x++ ) |
| 1519 | 1519 | { |
| 1520 | dest[x] = pal | |
| 1520 | dest[x] = palbase + ((source[x_index>>17] >> ((x_index & 0x10000) >> 14)) & 0x0f); | |
| 1521 | 1521 | x_index += dx; |
| 1522 | 1522 | } |
| 1523 | 1523 | |
| r1711 | r1712 | |
| 1534 | 1534 | int x, x_index = x_index_base; |
| 1535 | 1535 | for( x=sx; x<ex; x++ ) |
| 1536 | 1536 | { |
| 1537 | dest[x] = pal | |
| 1537 | dest[x] = palbase + source[x_index>>16 | |
| 1538 | 1538 | x_index += dx; |
| 1539 | 1539 | } |
| 1540 | 1540 | |
| r1711 | r1712 | |
| 1564 | 1564 | if( c != transparent_color ) |
| 1565 | 1565 | { |
| 1566 | 1566 | if (((1 << pri[x]) & pri_mask) == 0) |
| 1567 | dest[x] = pal | |
| 1567 | dest[x] = palbase + c | |
| 1568 | 1568 | pri[x] = 31; |
| 1569 | 1569 | } |
| 1570 | 1570 | x_index += dx; |
| r1711 | r1712 | |
| 1588 | 1588 | if( c != transparent_color ) |
| 1589 | 1589 | { |
| 1590 | 1590 | if (((1 << pri[x]) & pri_mask) == 0) |
| 1591 | dest[x] = pal | |
| 1591 | dest[x] = palbase + c | |
| 1592 | 1592 | pri[x] = 31; |
| 1593 | 1593 | } |
| 1594 | 1594 | x_index += dx; |
| r1711 | r1712 | |
| 1611 | 1611 | for( x=sx; x<ex; x++ ) |
| 1612 | 1612 | { |
| 1613 | 1613 | int c = (source[x_index>>17] >> ((x_index & 0x10000) >> 14)) & 0x0f; |
| 1614 | if( c != transparent_color ) dest[x] = pal | |
| 1614 | if( c != transparent_color ) dest[x] = palbase + c | |
| 1615 | 1615 | x_index += dx; |
| 1616 | 1616 | } |
| 1617 | 1617 | |
| r1711 | r1712 | |
| 1629 | 1629 | for( x=sx; x<ex; x++ ) |
| 1630 | 1630 | { |
| 1631 | 1631 | int c = source[x_index>>16]; |
| 1632 | if( c != transparent_color ) dest[x] = pal | |
| 1632 | if( c != transparent_color ) dest[x] = palbase + c | |
| 1633 | 1633 | x_index += dx; |
| 1634 | 1634 | } |
| 1635 | 1635 | |
| r1711 | r1712 | |
| 1704 | 1704 | if (((1 << c) & transparent_color) == 0) |
| 1705 | 1705 | { |
| 1706 | 1706 | if (((1 << pri[x]) & pri_mask) == 0) |
| 1707 | dest[x] = pal | |
| 1707 | dest[x] = palbase + c | |
| 1708 | 1708 | pri[x] = 31; |
| 1709 | 1709 | } |
| 1710 | 1710 | x_index += dx; |
| r1711 | r1712 | |
| 1725 | 1725 | { |
| 1726 | 1726 | int c = source[x_index>>16]; |
| 1727 | 1727 | if (((1 << c) & transparent_color) == 0) |
| 1728 | dest[x] = pal | |
| 1728 | dest[x] = palbase + c | |
| 1729 | 1729 | x_index += dx; |
| 1730 | 1730 | } |
| 1731 | 1731 | |
| r1711 | r1712 | |
| 1758 | 1758 | if (((1 << (pri[x] & 0x1f)) & pri_mask) == 0) |
| 1759 | 1759 | { |
| 1760 | 1760 | if (pri[x] & 0x80) |
| 1761 | dest[x] = palette_shadow_table[pal | |
| 1761 | dest[x] = palette_shadow_table[palbase + c | |
| 1762 | 1762 | else |
| 1763 | dest[x] = pal | |
| 1763 | dest[x] = palbase + c | |
| 1764 | 1764 | } |
| 1765 | 1765 | pri[x] = (pri[x] & 0x7f) | 31; |
| 1766 | 1766 | break; |
| r1711 | r1712 | |
| 1793 | 1793 | switch(gfx_drawmode_table[c]) |
| 1794 | 1794 | { |
| 1795 | 1795 | case DRAWMODE_SOURCE: |
| 1796 | dest[x] = pal | |
| 1796 | dest[x] = palbase + c | |
| 1797 | 1797 | break; |
| 1798 | 1798 | case DRAWMODE_SHADOW: |
| 1799 | 1799 | dest[x] = palette_shadow_table[dest[x]]; |
| r1711 | r1712 | |
| 1817 | 1817 | { |
| 1818 | 1818 | if( gfx ) |
| 1819 | 1819 | { |
| 1820 | const pen_t *pal = &Machine-> | |
| 1820 | const pen_t *pal = &Machine-> | |
| 1821 | 1821 | UINT8 *source_base = gfx->gfxdata + (code % gfx->total_elements) * gfx->char_modulo; |
| 1822 | 1822 | |
| 1823 | 1823 | int sprite_screen_height = (scaley*gfx->height+0x8000)>>16; |
| r1711 | r1712 | |
| 2351 | 2351 | { |
| 2352 | 2352 | if( gfx ) |
| 2353 | 2353 | { |
| 2354 | const pen_t *pal = &Machine-> | |
| 2354 | const pen_t *pal = &Machine-> | |
| 2355 | 2355 | UINT8 *source_base = gfx->gfxdata + (code % gfx->total_elements) * gfx->char_modulo; |
| 2356 | 2356 | |
| 2357 | 2357 | int sprite_screen_height = (scaley*gfx->height+0x8000)>>16; |
| r1711 | r1712 | |
| 3796 | 3796 | int dw = ex-sx+1; /* dest width */ |
| 3797 | 3797 | int dh = ey-sy+1; /* dest height */ |
| 3798 | 3798 | int dm = dest->rowpixels; /* dest modulo */ |
| 3799 | const pen_t *paldata = &Machine-> | |
| 3799 | const pen_t *paldata = &Machine-> | |
| 3800 | 3800 | UINT8 *pribuf = (pri_buffer) ? BITMAP_ADDR8(pri_buffer, sy, sx) : NULL; |
| 3801 | 3801 | |
| 3802 | 3802 | switch (transparency) |
| r1711 | r1712 | |
|---|---|---|
| 470 | 470 | |
| 471 | 471 | void render_init(running_machine *machine) |
| 472 | 472 | { |
| 473 | int numscreens = video_screen_count(machine->config); | |
| 473 | 474 | int scrnum; |
| 474 | 475 | |
| 475 | 476 | /* make sure we clean up after ourselves */ |
| r1711 | r1712 | |
| 490 | 491 | ui_container = render_container_alloc(); |
| 491 | 492 | |
| 492 | 493 | /* create a container for each screen and determine its orientation */ |
| 493 | for (scrnum = 0; scrnum < MAX_SCREENS; scrnum++) | |
| 494 | if (Machine->drv->screen[scrnum].tag != NULL) | |
| 495 | { | |
| 496 | screen_container[scrnum] = render_container_alloc(); | |
| 497 | render_container_set_orientation(screen_container[scrnum], Machine->gamedrv->flags & ORIENTATION_MASK); | |
| 498 | render_container_set_brightness(screen_container[scrnum], options_get_float(mame_options(), OPTION_BRIGHTNESS)); | |
| 499 | render_container_set_contrast(screen_container[scrnum], options_get_float(mame_options(), OPTION_CONTRAST)); | |
| 500 | render_container_set_gamma(screen_container[scrnum], options_get_float(mame_options(), OPTION_GAMMA)); | |
| 501 | } | |
| 494 | for (scrnum = 0; scrnum < numscreens; scrnum++) | |
| 495 | { | |
| 496 | screen_container[scrnum] = render_container_alloc(); | |
| 497 | render_container_set_orientation(screen_container[scrnum], Machine->gamedrv->flags & ORIENTATION_MASK); | |
| 498 | render_container_set_brightness(screen_container[scrnum], options_get_float(mame_options(), OPTION_BRIGHTNESS)); | |
| 499 | render_container_set_contrast(screen_container[scrnum], options_get_float(mame_options(), OPTION_CONTRAST)); | |
| 500 | render_container_set_gamma(screen_container[scrnum], options_get_float(mame_options(), OPTION_GAMMA)); | |
| 501 | } | |
| 502 | 502 | |
| 503 | 503 | /* register callbacks */ |
| 504 | 504 | config_register("video", render_load, render_save); |
| r1711 | r1712 | |
| 1366 | 1366 | for (item = target->curview->itemlist[layer]; item != NULL; item = item->next) |
| 1367 | 1367 | if (item->element == NULL) |
| 1368 | 1368 | { |
| 1369 | const screen_config *scrconfig = device_list_find_by_index(Machine->config->devicelist, VIDEO_SCREEN, item->index)->inline_config; | |
| 1369 | 1370 | const rectangle vectorvis = { 0, 639, 0, 479 }; |
| 1370 | const rectangle *visarea; | |
| 1371 | const rectangle *visarea = NULL; | |
| 1371 | 1372 | render_container *container = screen_container[item->index]; |
| 1372 | 1373 | render_bounds bounds; |
| 1373 | 1374 | float xscale, yscale; |
| 1374 | 1375 | |
| 1375 | 1376 | /* we may be called very early, before Machine->visible_area is initialized; handle that case */ |
| 1376 | if ( | |
| 1377 | if (s | |
| 1377 | 1378 | visarea = &vectorvis; |
| 1378 | 1379 | else if (Machine->screen[item->index].visarea.max_x > Machine->screen[item->index].visarea.min_x) |
| 1379 | 1380 | visarea = &Machine->screen[item->index].visarea; |
| 1380 | 1381 | else |
| 1381 | visarea = & | |
| 1382 | visarea = & | |
| 1382 | 1383 | |
| 1383 | 1384 | /* apply target orientation to the bounds */ |
| 1384 | 1385 | bounds = item->bounds; |
| r1711 | r1712 | |
| 1600 | 1601 | if (*nextfile != NULL) |
| 1601 | 1602 | nextfile = &(*nextfile)->next; |
| 1602 | 1603 | } |
| 1603 | if (Machine-> | |
| 1604 | if (Machine->config->default_layout != NULL) | |
| 1604 | 1605 | { |
| 1605 | *nextfile = layout_file_load(NULL, Machine-> | |
| 1606 | *nextfile = layout_file_load(NULL, Machine->config->default_layout); | |
| 1606 | 1607 | if (*nextfile != NULL) |
| 1607 | 1608 | nextfile = &(*nextfile)->next; |
| 1608 | 1609 | } |
| r1711 | r1712 | |
| 1619 | 1620 | } |
| 1620 | 1621 | |
| 1621 | 1622 | /* now do the built-in layouts for single-screen games */ |
| 1622 | if ( | |
| 1623 | if (v | |
| 1623 | 1624 | { |
| 1624 | 1625 | if (Machine->gamedrv->flags & ORIENTATION_SWAP_XY) |
| 1625 | 1626 | *nextfile = layout_file_load(NULL, layout_vertical); |
| r1711 | r1712 | |
|---|---|---|
| 558 | 558 | for (drvindex = 0; drivers[drvindex]; drvindex++) |
| 559 | 559 | if (mame_strwildcmp(gamename, drivers[drvindex]->name) == 0) |
| 560 | 560 | { |
| 561 | machine_config drv; | |
| 561 | machine_config *config = machine_config_alloc(drivers[drvindex]->drv); | |
| 562 | 562 | int sndnum; |
| 563 | 563 | |
| 564 | /* expand the machine driver */ | |
| 565 | expand_machine_driver(drivers[drvindex]->drv, &drv); | |
| 566 | ||
| 567 | 564 | /* find samples interfaces */ |
| 568 | for (sndnum = 0; sndnum < MAX_SOUND && drv.sound[sndnum].type != SOUND_DUMMY; sndnum++) | |
| 569 | if (drv.sound[sndnum].type == SOUND_SAMPLES) | |
| 565 | for (sndnum = 0; sndnum < MAX_SOUND && config->sound[sndnum].type != SOUND_DUMMY; sndnum++) | |
| 566 | if (config->sound[sndnum].type == SOUND_SAMPLES) | |
| 570 | 567 | { |
| 571 | const char *const *samplenames = ((const struct Samplesinterface *) | |
| 568 | const char *const *samplenames = ((const struct Samplesinterface *)config->sound[sndnum].config)->samplenames; | |
| 572 | 569 | int sampnum; |
| 573 | 570 | |
| 574 | 571 | /* if the list is legit, walk it and print the sample info */ |
| r1711 | r1712 | |
| 578 | 575 | } |
| 579 | 576 | |
| 580 | 577 | count++; |
| 578 | machine_config_free(config); | |
| 581 | 579 | } |
| 582 | 580 | |
| 583 | 581 | /* clean up our tracked resources */ |
| r1711 | r1712 | |
|---|---|---|
| 947 | 947 | |
| 948 | 948 | |
| 949 | 949 | /*------------------------------------------------- |
| 950 | state_save_combine_module_and_tag - creates | |
| 951 | a name from a given module and tag that can | |
| 952 | be used as the first agrument to the | |
| 953 | state_save_register_item family of functions | |
| 954 | -------------------------------------------------*/ | |
| 955 | ||
| 956 | void state_save_combine_module_and_tag(char *dest, const char *module, const char *tag) | |
| 957 | { | |
| 958 | astring *module_lower; | |
| 959 | astring *tag_lower; | |
| 960 | astring *combined; | |
| 961 | ||
| 962 | /* validate arguments */ | |
| 963 | assert(dest != NULL); | |
| 964 | assert(module != NULL); | |
| 965 | assert(tag != NULL); | |
| 966 | assert(strlen(module) > 0); | |
| 967 | assert(strlen(tag) > 0); | |
| 968 | ||
| 969 | /* allocate objects */ | |
| 970 | module_lower = astring_alloc(); | |
| 971 | tag_lower = astring_alloc(); | |
| 972 | combined = astring_alloc(); | |
| 973 | ||
| 974 | /* convert both arguments to lower case for case insenstive comparisson */ | |
| 975 | astring_tolower(astring_cpyc(module_lower, module)); | |
| 976 | astring_tolower(astring_cpyc(tag_lower, tag)); | |
| 977 | ||
| 978 | /* if the tag contains the module name, just use the tag as the combined name */ | |
| 979 | if (astring_find(tag_lower, 0, module_lower) >= 0) | |
| 980 | astring_cpyc(combined, tag); | |
| 981 | ||
| 982 | /* otherwise combine the module and the tag */ | |
| 983 | else | |
| 984 | astring_assemble_3(combined, module, ".", tag); | |
| 985 | ||
| 986 | /* copy the result to the destination array */ | |
| 987 | strcpy(dest, astring_c(combined)); | |
| 988 | ||
| 989 | /* free the objects */ | |
| 990 | astring_free(module_lower); | |
| 991 | astring_free(tag_lower); | |
| 992 | astring_free(combined); | |
| 993 | } | |
| 994 | ||
| 995 | ||
| 996 | /*------------------------------------------------- | |
| 950 | 997 | state_save_dump_registry - dump the registry |
| 951 | 998 | to the logfile |
| 952 | 999 | -------------------------------------------------*/ |
| r0 | r1712 | |
|---|---|---|
| 1 | /*************************************************************************** | |
| 2 | ||
| 3 | mconfig.c | |
| 4 | ||
| 5 | Machine configuration macros and functions. | |
| 6 | ||
| 7 | Copyright Nicola Salmoria and the MAME Team. | |
| 8 | Visit http://mamedev.org for licensing and usage restrictions. | |
| 9 | ||
| 10 | ***************************************************************************/ | |
| 11 | ||
| 12 | #include "driver.h" | |
| 13 | #include <ctype.h> | |
| 14 | ||
| 15 | ||
| 16 | /*************************************************************************** | |
| 17 | MACHINE_CONFIGURATIONS | |
| 18 | ***************************************************************************/ | |
| 19 | ||
| 20 | /*------------------------------------------------- | |
| 21 | machine_config_alloc - allocate a new | |
| 22 | machine configuration and populate it using | |
| 23 | the supplied constructor | |
| 24 | -------------------------------------------------*/ | |
| 25 | ||
| 26 | machine_config *machine_config_alloc(void (*constructor)(machine_config *)) | |
| 27 | { | |
| 28 | machine_config *config; | |
| 29 | ||
| 30 | /* allocate a new configuration object */ | |
| 31 | config = malloc_or_die(sizeof(*config)); | |
| 32 | if (config == NULL) | |
| 33 | return NULL; | |
| 34 | memset(config, 0, sizeof(*config)); | |
| 35 | ||
| 36 | /* call the function to construct the data */ | |
| 37 | (*constructor)(config); | |
| 38 | return config; | |
| 39 | } | |
| 40 | ||
| 41 | ||
| 42 | /*------------------------------------------------- | |
| 43 | machine_config_free - release memory allocated | |
| 44 | for a machine configuration | |
| 45 | -------------------------------------------------*/ | |
| 46 | ||
| 47 | void machine_config_free(machine_config *config) | |
| 48 | { | |
| 49 | /* release the device list */ | |
| 50 | while (config->devicelist != NULL) | |
| 51 | device_list_remove(&config->devicelist, config->devicelist->type, config->devicelist->tag); | |
| 52 | ||
| 53 | /* release the configuration itself */ | |
| 54 | free(config); | |
| 55 | } | |
| 56 | ||
| 57 | ||
| 58 | ||
| 59 | ||
| 60 | /*------------------------------------------------- | |
| 61 | machine_config_add_cpu - add a CPU during machine | |
| 62 | driver expansion | |
| 63 | -------------------------------------------------*/ | |
| 64 | ||
| 65 | cpu_config *machine_config_add_cpu(machine_config *machine, const char *tag, cpu_type type, int cpuclock) | |
| 66 | { | |
| 67 | int cpunum; | |
| 68 | ||
| 69 | for (cpunum = 0; cpunum < MAX_CPU; cpunum++) | |
| 70 | if (machine->cpu[cpunum].type == CPU_DUMMY) | |
| 71 | { | |
| 72 | machine->cpu[cpunum].tag = tag; | |
| 73 | machine->cpu[cpunum].type = type; | |
| 74 | machine->cpu[cpunum].clock = cpuclock; | |
| 75 | return &machine->cpu[cpunum]; | |
| 76 | } | |
| 77 | ||
| 78 | fatalerror("Out of CPU's!\n"); | |
| 79 | return NULL; | |
| 80 | } | |
| 81 | ||
| 82 | ||
| 83 | /*------------------------------------------------- | |
| 84 | machine_config_find_cpu - find a tagged CPU during | |
| 85 | machine driver expansion | |
| 86 | -------------------------------------------------*/ | |
| 87 | ||
| 88 | cpu_config *machine_config_find_cpu(machine_config *machine, const char *tag) | |
| 89 | { | |
| 90 | int cpunum; | |
| 91 | ||
| 92 | for (cpunum = 0; cpunum < MAX_CPU; cpunum++) | |
| 93 | if (machine->cpu[cpunum].tag && strcmp(machine->cpu[cpunum].tag, tag) == 0) | |
| 94 | return &machine->cpu[cpunum]; | |
| 95 | ||
| 96 | fatalerror("Can't find CPU '%s'!\n", tag); | |
| 97 | return NULL; | |
| 98 | } | |
| 99 | ||
| 100 | ||
| 101 | /*------------------------------------------------- | |
| 102 | machine_config_remove_cpu - remove a tagged CPU | |
| 103 | during machine driver expansion | |
| 104 | -------------------------------------------------*/ | |
| 105 | ||
| 106 | void machine_config_remove_cpu(machine_config *machine, const char *tag) | |
| 107 | { | |
| 108 | int cpunum; | |
| 109 | ||
| 110 | for (cpunum = 0; cpunum < MAX_CPU; cpunum++) | |
| 111 | if (machine->cpu[cpunum].tag && strcmp(machine->cpu[cpunum].tag, tag) == 0) | |
| 112 | { | |
| 113 | memmove(&machine->cpu[cpunum], &machine->cpu[cpunum + 1], sizeof(machine->cpu[0]) * (MAX_CPU - cpunum - 1)); | |
| 114 | memset(&machine->cpu[MAX_CPU - 1], 0, sizeof(machine->cpu[0])); | |
| 115 | return; | |
| 116 | } | |
| 117 | ||
| 118 | fatalerror("Can't find CPU '%s'!\n", tag); | |
| 119 | } | |
| 120 | ||
| 121 | ||
| 122 | /*------------------------------------------------- | |
| 123 | machine_config_add_speaker - add a speaker during | |
| 124 | machine driver expansion | |
| 125 | -------------------------------------------------*/ | |
| 126 | ||
| 127 | speaker_config *machine_config_add_speaker(machine_config *machine, const char *tag, float x, float y, float z) | |
| 128 | { | |
| 129 | int speakernum; | |
| 130 | ||
| 131 | for (speakernum = 0; speakernum < MAX_SPEAKER; speakernum++) | |
| 132 | if (machine->speaker[speakernum].tag == NULL) | |
| 133 | { | |
| 134 | machine->speaker[speakernum].tag = tag; | |
| 135 | machine->speaker[speakernum].x = x; | |
| 136 | machine->speaker[speakernum].y = y; | |
| 137 | machine->speaker[speakernum].z = z; | |
| 138 | return &machine->speaker[speakernum]; | |
| 139 | } | |
| 140 | ||
| 141 | fatalerror("Out of speakers!\n"); | |
| 142 | return NULL; | |
| 143 | } | |
| 144 | ||
| 145 | ||
| 146 | /*------------------------------------------------- | |
| 147 | machine_config_find_speaker - find a tagged speaker | |
| 148 | system during machine driver expansion | |
| 149 | -------------------------------------------------*/ | |
| 150 | ||
| 151 | speaker_config *machine_config_find_speaker(machine_config *machine, const char *tag) | |
| 152 | { | |
| 153 | int speakernum; | |
| 154 | ||
| 155 | for (speakernum = 0; speakernum < MAX_SPEAKER; speakernum++) | |
| 156 | if (machine->speaker[speakernum].tag && strcmp(machine->speaker[speakernum].tag, tag) == 0) | |
| 157 | return &machine->speaker[speakernum]; | |
| 158 | ||
| 159 | fatalerror("Can't find speaker '%s'!\n", tag); | |
| 160 | return NULL; | |
| 161 | } | |
| 162 | ||
| 163 | ||
| 164 | /*------------------------------------------------- | |
| 165 | machine_config_remove_speaker - remove a tagged speaker | |
| 166 | system during machine driver expansion | |
| 167 | -------------------------------------------------*/ | |
| 168 | ||
| 169 | void machine_config_remove_speaker(machine_config *machine, const char *tag) | |
| 170 | { | |
| 171 | int speakernum; | |
| 172 | ||
| 173 | for (speakernum = 0; speakernum < MAX_SPEAKER; speakernum++) | |
| 174 | if (machine->speaker[speakernum].tag && strcmp(machine->speaker[speakernum].tag, tag) == 0) | |
| 175 | { | |
| 176 | memmove(&machine->speaker[speakernum], &machine->speaker[speakernum + 1], sizeof(machine->speaker[0]) * (MAX_SPEAKER - speakernum - 1)); | |
| 177 | memset(&machine->speaker[MAX_SPEAKER - 1], 0, sizeof(machine->speaker[0])); | |
| 178 | return; | |
| 179 | } | |
| 180 | ||
| 181 | fatalerror("Can't find speaker '%s'!\n", tag); | |
| 182 | } | |
| 183 | ||
| 184 | ||
| 185 | /*------------------------------------------------- | |
| 186 | machine_config_add_sound - add a sound system during | |
| 187 | machine driver expansion | |
| 188 | -------------------------------------------------*/ | |
| 189 | ||
| 190 | sound_config *machine_config_add_sound(machine_config *machine, const char *tag, sound_type type, int clock) | |
| 191 | { | |
| 192 | int soundnum; | |
| 193 | ||
| 194 | for (soundnum = 0; soundnum < MAX_SOUND; soundnum++) | |
| 195 | if (machine->sound[soundnum].type == SOUND_DUMMY) | |
| 196 | { | |
| 197 | machine->sound[soundnum].tag = tag; | |
| 198 | machine->sound[soundnum].type = type; | |
| 199 | machine->sound[soundnum].clock = clock; | |
| 200 | machine->sound[soundnum].config = NULL; | |
| 201 | machine->sound[soundnum].routes = 0; | |
| 202 | return &machine->sound[soundnum]; | |
| 203 | } | |
| 204 | ||
| 205 | fatalerror("Out of sounds!\n"); | |
| 206 | return NULL; | |
| 207 | } | |
| 208 | ||
| 209 | ||
| 210 | /*------------------------------------------------- | |
| 211 | machine_config_find_sound - find a tagged sound | |
| 212 | system during machine driver expansion | |
| 213 | -------------------------------------------------*/ | |
| 214 | ||
| 215 | sound_config *machine_config_find_sound(machine_config *machine, const char *tag) | |
| 216 | { | |
| 217 | int soundnum; | |
| 218 | ||
| 219 | for (soundnum = 0; soundnum < MAX_SOUND; soundnum++) | |
| 220 | if (machine->sound[soundnum].tag && strcmp(machine->sound[soundnum].tag, tag) == 0) | |
| 221 | return &machine->sound[soundnum]; | |
| 222 | ||
| 223 | fatalerror("Can't find sound '%s'!\n", tag); | |
| 224 | return NULL; | |
| 225 | } | |
| 226 | ||
| 227 | ||
| 228 | /*------------------------------------------------- | |
| 229 | machine_config_remove_sound - remove a tagged sound | |
| 230 | system during machine driver expansion | |
| 231 | -------------------------------------------------*/ | |
| 232 | ||
| 233 | void machine_config_remove_sound(machine_config *machine, const char *tag) | |
| 234 | { | |
| 235 | int soundnum; | |
| 236 | ||
| 237 | for (soundnum = 0; soundnum < MAX_SOUND; soundnum++) | |
| 238 | if (machine->sound[soundnum].tag && strcmp(machine->sound[soundnum].tag, tag) == 0) | |
| 239 | { | |
| 240 | memmove(&machine->sound[soundnum], &machine->sound[soundnum + 1], sizeof(machine->sound[0]) * (MAX_SOUND - soundnum - 1)); | |
| 241 | memset(&machine->sound[MAX_SOUND - 1], 0, sizeof(machine->sound[0])); | |
| 242 | return; | |
| 243 | } | |
| 244 | ||
| 245 | fatalerror("Can't find sound '%s'!\n", tag); | |
| 246 | } |
| r1711 | r1712 | |
|---|---|---|
| 110 | 110 | switch (palette->format) |
| 111 | 111 | { |
| 112 | 112 | case BITMAP_FORMAT_INDEXED16: |
| 113 | /* indexed modes are fine for everything */ | |
| 114 | break; | |
| 115 | ||
| 116 | 113 | case BITMAP_FORMAT_RGB15: |
| 117 | 114 | case BITMAP_FORMAT_RGB32: |
| 118 | /* RGB modes can't use color tables */ | |
| 119 | assert(machine->drv->color_table_len == 0); | |
| 115 | /* indexed and RGB modes are fine for everything */ | |
| 120 | 116 | break; |
| 121 | 117 | |
| 122 | 118 | case BITMAP_FORMAT_INVALID: |
| 123 | 119 | /* invalid format means no palette - or at least it should */ |
| 124 | assert(machine->drv->total_colors == 0); | |
| 125 | assert(machine->drv->color_table_len == 0); | |
| 120 | assert(machine->config->total_colors == 0); | |
| 126 | 121 | return; |
| 127 | 122 | |
| 128 | 123 | default: |
| r1711 | r1712 | |
| 131 | 126 | } |
| 132 | 127 | |
| 133 | 128 | /* allocate all the data structures */ |
| 134 | if (machine-> | |
| 129 | if (machine->config->total_colors > 0) | |
| 135 | 130 | { |
| 136 | 131 | int numcolors; |
| 137 | 132 | |
| r1711 | r1712 | |
| 158 | 153 | |
| 159 | 154 | void palette_config(running_machine *machine) |
| 160 | 155 | { |
| 161 | int total_colors = (machine->palette == NULL) ? 0 : palette_get_num_colors(machine->palette) * palette_get_num_groups(machine->palette); | |
| 162 | pen_t *remapped_colortable = NULL; | |
| 163 | UINT16 *colortable = NULL; | |
| 164 | 156 | int i; |
| 165 | 157 | |
| 166 | /* allocate memory for the colortables, if needed */ | |
| 167 | if (machine->drv->color_table_len > 0) | |
| 168 | { | |
| 169 | /* first for the raw colortable */ | |
| 170 | colortable = auto_malloc(machine->drv->color_table_len * sizeof(colortable[0])); | |
| 171 | for (i = 0; i < machine->drv->color_table_len; i++) | |
| 172 | colortable[i] = i % total_colors; | |
| 173 | ||
| 174 | /* then for the remapped colortable */ | |
| 175 | remapped_colortable = auto_malloc(machine->drv->color_table_len * sizeof(remapped_colortable[0])); | |
| 176 | } | |
| 177 | ||
| 178 | 158 | /* now let the driver modify the initial palette and colortable */ |
| 179 | if (machine->drv->init_palette) | |
| 180 | (*machine->drv->init_palette)(machine, colortable, memory_region(REGION_PROMS)); | |
| 159 | if (machine->config->init_palette) | |
| 160 | (*machine->config->init_palette)(machine, memory_region(REGION_PROMS)); | |
| 181 | 161 | |
| 182 | /* now compute the remapped_colortable */ | |
| 183 | for (i = 0; i < machine->drv->color_table_len; i++) | |
| 184 | { | |
| 185 | pen_t color = colortable[i]; | |
| 186 | ||
| 187 | /* check for invalid colors set by machine->drv->init_palette */ | |
| 188 | assert(color < total_colors); | |
| 189 | remapped_colortable[i] = machine->pens[color]; | |
| 190 | } | |
| 191 | ||
| 192 | /* now we can set the final colortables */ | |
| 193 | machine->game_colortable = colortable; | |
| 194 | machine->remapped_colortable = (remapped_colortable != NULL) ? remapped_colortable : machine->pens; | |
| 195 | ||
| 196 | 162 | /* set the color table base for each graphics element */ |
| 197 | 163 | for (i = 0; i < MAX_GFX_ELEMENTS; i++) |
| 198 | 164 | if (machine->gfx[i] != NULL) |
| 199 | machine->gfx[i]->color_base = machine-> | |
| 165 | machine->gfx[i]->color_base = machine->config->gfxdecodeinfo[i].color_codes_start; | |
| 200 | 166 | } |
| 201 | 167 | |
| 202 | 168 | |
| r1711 | r1712 | |
| 369 | 335 | colortable_t *ctable; |
| 370 | 336 | UINT32 index; |
| 371 | 337 | |
| 338 | assert(machine != NULL); | |
| 339 | assert(machine->config != NULL); | |
| 340 | assert(palettesize > 0); | |
| 341 | ||
| 372 | 342 | /* allocate the colortable */ |
| 373 | 343 | ctable = auto_malloc(sizeof(*ctable)); |
| 374 | 344 | memset(ctable, 0, sizeof(*ctable)); |
| 375 | 345 | |
| 376 | 346 | /* fill in the basics */ |
| 377 | 347 | ctable->machine = machine; |
| 378 | ctable->entries = machine-> | |
| 348 | ctable->entries = machine->config->total_colors; | |
| 379 | 349 | ctable->palentries = palettesize; |
| 380 | 350 | |
| 381 | 351 | /* allocate the raw colortable */ |
| r1711 | r1712 | |
| 402 | 372 | void colortable_entry_set_value(colortable_t *ctable, UINT32 entry, UINT16 value) |
| 403 | 373 | { |
| 404 | 374 | /* ensure values are within range */ |
| 375 | assert(ctable != NULL); | |
| 405 | 376 | assert(entry < ctable->entries); |
| 406 | 377 | assert(value < ctable->palentries); |
| 407 | 378 | |
| r1711 | r1712 | |
| 421 | 392 | |
| 422 | 393 | UINT16 colortable_entry_get_value(colortable_t *ctable, UINT32 entry) |
| 423 | 394 | { |
| 395 | assert(ctable != NULL); | |
| 424 | 396 | assert(entry < ctable->entries); |
| 425 | 397 | return ctable->raw[entry]; |
| 426 | 398 | } |
| r1711 | r1712 | |
| 434 | 406 | void colortable_palette_set_color(colortable_t *ctable, UINT32 entry, rgb_t color) |
| 435 | 407 | { |
| 436 | 408 | /* ensure values are within range */ |
| 409 | assert(ctable != NULL); | |
| 437 | 410 | assert(entry < ctable->palentries); |
| 438 | 411 | |
| 439 | 412 | /* alpha doesn't matter */ |
| r1711 | r1712 | |
| 461 | 434 | |
| 462 | 435 | rgb_t colortable_palette_get_color(colortable_t *ctable, UINT32 entry) |
| 463 | 436 | { |
| 437 | assert(ctable != NULL); | |
| 464 | 438 | assert(entry < ctable->palentries); |
| 465 | 439 | return ctable->palette[entry]; |
| 466 | 440 | } |
| r1711 | r1712 | |
| 479 | 453 | UINT32 count, bit; |
| 480 | 454 | |
| 481 | 455 | /* make sure we are in range */ |
| 456 | assert(ctable != NULL); | |
| 482 | 457 | assert(entry < ctable->entries); |
| 483 | 458 | assert(gfx->color_depth <= 32); |
| 484 | 459 | |
| r1711 | r1712 | |
| 506 | 481 | { |
| 507 | 482 | int color; |
| 508 | 483 | |
| 484 | assert(ctable != NULL); | |
| 485 | assert(gfx != NULL); | |
| 486 | assert(tmap != NULL); | |
| 509 | 487 | assert(gfx->total_colors <= TILEMAP_NUM_GROUPS); |
| 510 | 488 | |
| 511 | 489 | /* iterate over all colors in the tilemap */ |
| r1711 | r1712 | |
| 514 | 492 | } |
| 515 | 493 | |
| 516 | 494 | |
| 495 | /*------------------------------------------------- | |
| 496 | colortable_palette_get_size - | |
| 497 | return the number of entries in a colortable | |
| 498 | -------------------------------------------------*/ | |
| 517 | 499 | |
| 500 | UINT32 colortable_palette_get_size(colortable_t *ctable) | |
| 501 | { | |
| 502 | assert(ctable != NULL); | |
| 503 | return ctable->palentries; | |
| 504 | } | |
| 505 | ||
| 506 | ||
| 507 | ||
| 518 | 508 | /*************************************************************************** |
| 519 | 509 | UTILITIES |
| 520 | 510 | ***************************************************************************/ |
| r1711 | r1712 | |
| 611 | 601 | |
| 612 | 602 | /* determine the number of groups we need */ |
| 613 | 603 | numgroups = 1; |
| 614 | if (machine-> | |
| 604 | if (machine->config->video_attributes & VIDEO_HAS_SHADOWS) | |
| 615 | 605 | palette->shadow_group = numgroups++; |
| 616 | if (machine-> | |
| 606 | if (machine->config->video_attributes & VIDEO_HAS_HIGHLIGHTS) | |
| 617 | 607 | palette->hilight_group = numgroups++; |
| 618 | assert_always(machine-> | |
| 608 | assert_always(machine->config->total_colors * numgroups <= 65536, "Error: palette has more than 65536 colors."); | |
| 619 | 609 | |
| 620 | 610 | /* allocate a palette object containing all the colors and groups */ |
| 621 | machine->palette = palette_alloc(machine-> | |
| 611 | machine->palette = palette_alloc(machine->config->total_colors, numgroups); | |
| 622 | 612 | assert_always(machine->palette != NULL, "Failed to allocate system palette"); |
| 623 | 613 | |
| 624 | 614 | /* configure the groups */ |
| r1711 | r1712 | |
| 628 | 618 | palette_group_set_contrast(machine->palette, palette->hilight_group, (float)PALETTE_DEFAULT_HIGHLIGHT_FACTOR); |
| 629 | 619 | |
| 630 | 620 | /* set the initial colors to a standard rainbow */ |
| 631 | for (index = 0; index < machine-> | |
| 621 | for (index = 0; index < machine->config->total_colors; index++) | |
| 632 | 622 | palette_entry_set_color(machine->palette, index, MAKE_RGB(pal1bit(index >> 0), pal1bit(index >> 1), pal1bit(index >> 2))); |
| 633 | 623 | |
| 634 | 624 | /* switch off the color mode */ |
| r1711 | r1712 | |
| 708 | 698 | static void allocate_shadow_tables(running_machine *machine, palette_private *palette) |
| 709 | 699 | { |
| 710 | 700 | /* if we have shadows, allocate shadow tables */ |
| 711 | if (machine-> | |
| 701 | if (machine->config->video_attributes & VIDEO_HAS_SHADOWS) | |
| 712 | 702 | { |
| 713 | 703 | pen_t *table = auto_malloc(65536 * sizeof(*table)); |
| 714 | 704 | int i; |
| r1711 | r1712 | |
| 718 | 708 | { |
| 719 | 709 | palette->shadow_table[0].base = palette->shadow_table[2].base = table; |
| 720 | 710 | for (i = 0; i < 65536; i++) |
| 721 | table[i] = (i < machine-> | |
| 711 | table[i] = (i < machine->config->total_colors) ? (i + machine->config->total_colors) : i; | |
| 722 | 712 | } |
| 723 | 713 | |
| 724 | 714 | /* RGB mode gets two 32k tables in slots 0 and 2 */ |
| r1711 | r1712 | |
| 731 | 721 | } |
| 732 | 722 | |
| 733 | 723 | /* if we have hilights, allocate shadow tables */ |
| 734 | if (machine-> | |
| 724 | if (machine->config->video_attributes & VIDEO_HAS_HIGHLIGHTS) | |
| 735 | 725 | { |
| 736 | 726 | pen_t *table = auto_malloc(65536 * sizeof(*table)); |
| 737 | 727 | int i; |
| r1711 | r1712 | |
| 741 | 731 | { |
| 742 | 732 | palette->shadow_table[1].base = palette->shadow_table[3].base = table; |
| 743 | 733 | for (i = 0; i < 65536; i++) |
| 744 | table[i] = (i < machine-> | |
| 734 | table[i] = (i < machine->config->total_colors) ? (i + 2 * machine->config->total_colors) : i; | |
| 745 | 735 | } |
| 746 | 736 | |
| 747 | 737 | /* RGB mode gets two 32k tables in slots 1 and 3 */ |
| r1711 | r1712 | |
|---|---|---|
| 8931 | 8931 | case kSearchSpeed_Fast: |
| 8932 | 8932 | |
| 8933 | 8933 | #if HAS_SH2 |
| 8934 | if(machine-> | |
| 8934 | if(machine->config->cpu[0].type == CPU_SH2) | |
| 8935 | 8935 | { |
| 8936 | 8936 | if( (info->targetType == kRegionType_CPU) && (info->targetIdx == 0) && (region->address == 0x06000000)) |
| 8937 | 8937 | return 1; |
| r1711 | r1712 | |
| 8957 | 8957 | #if HAS_TMS34010 |
| 8958 | 8958 | |
| 8959 | 8959 | /* ----- for exterminator, search bank one ----- */ |
| 8960 | if( (machine-> | |
| 8960 | if( (machine->config->cpu[1].type == CPU_TMS34010) && (info->targetType == kRegionType_CPU) && | |
| 8961 | 8961 | (info->targetIdx == 1) && (handler == MWA8_BANK1)) |
| 8962 | 8962 | return 1; |
| 8963 | 8963 | |
| 8964 | 8964 | /* ----- for smashtv, search bank two ----- */ |
| 8965 | if( (machine-> | |
| 8965 | if( (machine->config->cpu[0].type == CPU_TMS34010) && (info->targetType == kRegionType_CPU) && | |
| 8966 | 8966 | (info->targetIdx == 0) && (handler == MWA8_BANK2)) |
| 8967 | 8967 | return 1; |
| 8968 | 8968 | |
| r1711 | r1712 | |
| 11846 | 11846 | CPUInfo * info = &cpuInfoList[i]; |
| 11847 | 11847 | CPUInfo * regionInfo = ®ionInfoList[REGION_CPU1 + i - REGION_INVALID]; |
| 11848 | 11848 | |
| 11849 | cpu_type type = machine-> | |
| 11849 | cpu_type type = machine->config->cpu[i].type; | |
| 11850 | 11850 | |
| 11851 | 11851 | info->type = type; |
| 11852 | 11852 | info->dataBits = cputype_databus_width(type, ADDRESS_SPACE_PROGRAM); |
| r1711 | r1712 | |
|---|---|---|
| 111 | 111 | void state_save_save_finish(void); |
| 112 | 112 | void state_save_load_finish(void); |
| 113 | 113 | |
| 114 | /* Helper function for creating a unique name */ | |
| 115 | void state_save_combine_module_and_tag(char *dest, const char *module, const char *tag); | |
| 116 | ||
| 114 | 117 | /* Display function */ |
| 115 | 118 | void state_save_dump_registry(void); |
| 116 | 119 |
| r1711 | r1712 | |
|---|---|---|
| 19 | 19 | #include <zlib.h> |
| 20 | 20 | |
| 21 | 21 | |
| 22 | /************************************* | |
| 23 | * | |
| 24 | * Debugging | |
| 25 | * | |
| 26 | *************************************/ | |
| 22 | /*************************************************************************** | |
| 23 | DEBUGGING | |
| 24 | ***************************************************************************/ | |
| 27 | 25 | |
| 28 | 26 | #define REPORT_TIMES (0) |
| 29 | 27 | |
| 30 | 28 | |
| 31 | 29 | |
| 32 | /************************************* | |
| 33 | * | |
| 34 | * Constants | |
| 35 | * | |
| 36 | *************************************/ | |
| 30 | /*************************************************************************** | |
| 31 | CONSTANTS | |
| 32 | ***************************************************************************/ | |
| 37 | 33 | |
| 38 | 34 | #define QUARK_HASH_SIZE 389 |
| 39 | 35 | |
| 40 | 36 | |
| 41 | 37 | |
| 42 | /************************************* | |
| 43 | * | |
| 44 | * Type definitions | |
| 45 | * | |
| 46 | *************************************/ | |
| 38 | /*************************************************************************** | |
| 39 | TYPE DEFINITIONS | |
| 40 | ***************************************************************************/ | |
| 47 | 41 | |
| 48 | 42 | typedef struct _quark_entry quark_entry; |
| 49 | 43 | struct _quark_entry |
| r1711 | r1712 | |
| 64 | 58 | |
| 65 | 59 | |
| 66 | 60 | |
| 67 | /************************************* | |
| 68 | * | |
| 69 | * Local variables | |
| 70 | * | |
| 71 | *************************************/ | |
| 61 | /*************************************************************************** | |
| 62 | GLOBAL VARIABLES | |
| 63 | ***************************************************************************/ | |
| 72 | 64 | |
| 73 | 65 | static quark_table *source_table; |
| 74 | 66 | static quark_table *name_table; |
| r1711 | r1712 | |
| 79 | 71 | |
| 80 | 72 | |
| 81 | 73 | |
| 82 | /************************************* | |
| 83 | * | |
| 84 | * Allocate an array of quark | |
| 85 | * entries and a hash table | |
| 86 | * | |
| 87 | *************************************/ | |
| 74 | /*************************************************************************** | |
| 75 | INLINE FUNCTIONS | |
| 76 | ***************************************************************************/ | |
| 88 | 77 | |
| 89 | static quark_table *allocate_quark_table(UINT32 entries, UINT32 hashsize) | |
| 90 | { | |
| 91 | quark_table *table; | |
| 92 | UINT32 total_bytes; | |
| 78 | /*------------------------------------------------- | |
| 79 | input_port_string_from_index - return an | |
| 80 | indexed string from the input port system | |
| 81 | -------------------------------------------------*/ | |
| 93 | 82 | |
| 94 | /* determine how many total bytes we need */ | |
| 95 | total_bytes = sizeof(*table) + entries * sizeof(table->entry[0]) + hashsize * sizeof(table->hash[0]); | |
| 96 | table = auto_malloc(total_bytes); | |
| 97 | ||
| 98 | /* fill in the details */ | |
| 99 | table->entries = entries; | |
| 100 | table->hashsize = hashsize; | |
| 101 | ||
| 102 | /* compute the pointers */ | |
| 103 | table->entry = (quark_entry *)((UINT8 *)table + sizeof(*table)); | |
| 104 | table->hash = (quark_entry **)((UINT8 *)table->entry + entries * sizeof(table->entry[0])); | |
| 105 | ||
| 106 | /* reset the hash table */ | |
| 107 | memset(table->hash, 0, hashsize * sizeof(table->hash[0])); | |
| 108 | return table; | |
| 83 | INLINE const char *input_port_string_from_index(UINT32 index) | |
| 84 | { | |
| 85 | input_port_token token; | |
| 86 | token.fptr = index; | |
| 87 | return input_port_string_from_token(token); | |
| 109 | 88 | } |
| 110 | 89 | |
| 111 | 90 | |
| 91 | /*------------------------------------------------- | |
| 92 | quark_string_crc - compute the CRC of a string | |
| 93 | -------------------------------------------------*/ | |
| 112 | 94 | |
| 113 | /************************************* | |
| 114 | * | |
| 115 | * Compute the CRC of a string | |
| 116 | * | |
| 117 | *************************************/ | |
| 118 | ||
| 119 | 95 | INLINE UINT32 quark_string_crc(const char *string) |
| 120 | 96 | { |
| 121 | 97 | return crc32(0, (UINT8 *)string, (UINT32)strlen(string)); |
| 122 | 98 | } |
| 123 | 99 | |
| 124 | 100 | |
| 101 | /*------------------------------------------------- | |
| 102 | quark_add - add a quark to the table and | |
| 103 | connect it to the hash tables | |
| 104 | -------------------------------------------------*/ | |
| 125 | 105 | |
| 126 | /************************************* | |
| 127 | * | |
| 128 | * Add a quark to the table and | |
| 129 | * connect it to the hash tables | |
| 130 | * | |
| 131 | *************************************/ | |
| 132 | ||
| 133 | INLINE void add_quark(quark_table *table, int index, UINT32 crc) | |
| 106 | INLINE void quark_add(quark_table *table, int index, UINT32 crc) | |
| 134 | 107 | { |
| 135 | 108 | quark_entry *entry = &table->entry[index]; |
| 136 | 109 | int hash = crc % table->hashsize; |
| r1711 | r1712 | |
| 140 | 113 | } |
| 141 | 114 | |
| 142 | 115 | |
| 116 | /*------------------------------------------------- | |
| 117 | quark_table_get_first - return a pointer to the | |
| 118 | first hash entry connected to a CRC | |
| 119 | -------------------------------------------------*/ | |
| 143 | 120 | |
| 144 | /************************************* | |
| 145 | * | |
| 146 | * Return a pointer to the first | |
| 147 | * hash entry connected to a CRC | |
| 148 | * | |
| 149 | *************************************/ | |
| 150 | ||
| 151 | INLINE quark_entry *first_hash_entry(quark_table *table, UINT32 crc) | |
| 121 | INLINE quark_entry *quark_table_get_first(quark_table *table, UINT32 crc) | |
| 152 | 122 | { |
| 153 | 123 | return table->hash[crc % table->hashsize]; |
| 154 | 124 | } |
| 155 | 125 | |
| 156 | 126 | |
| 157 | 127 | |
| 158 | /************************************* | |
| 159 | * | |
| 160 | * Build "quarks" for fast string | |
| 161 | * operations | |
| 162 | * | |
| 163 | *************************************/ | |
| 128 | /*************************************************************************** | |
| 129 | QUARK TABLES | |
| 130 | ***************************************************************************/ | |
| 164 | 131 | |
| 165 | static void build_quarks(void) | |
| 132 | /*------------------------------------------------- | |
| 133 | quark_table_alloc - allocate an array of | |
| 134 | quark entries and a hash table | |
| 135 | -------------------------------------------------*/ | |
| 136 | ||
| 137 | static quark_table *quark_table_alloc(UINT32 entries, UINT32 hashsize) | |
| 166 | 138 | { |
| 167 | int drivnum, strnum; | |
| 139 | quark_table *table; | |
| 140 | UINT32 total_bytes; | |
| 168 | 141 | |
| 169 | /* first count drivers */ | |
| 170 | for (drivnum = 0; drivers[drivnum]; drivnum++) | |
| 171 | ; | |
| 142 | /* determine how many total bytes we need */ | |
| 143 | total_bytes = sizeof(*table) + entries * sizeof(table->entry[0]) + hashsize * sizeof(table->hash[0]); | |
| 144 | table = auto_malloc(total_bytes); | |
| 172 | 145 | |
| 146 | /* fill in the details */ | |
| 147 | table->entries = entries; | |
| 148 | table->hashsize = hashsize; | |
| 149 | ||
| 150 | /* compute the pointers */ | |
| 151 | table->entry = (quark_entry *)((UINT8 *)table + sizeof(*table)); | |
| 152 | table->hash = (quark_entry **)((UINT8 *)table->entry + entries * sizeof(table->entry[0])); | |
| 153 | ||
| 154 | /* reset the hash table */ | |
| 155 | memset(table->hash, 0, hashsize * sizeof(table->hash[0])); | |
| 156 | return table; | |
| 157 | } | |
| 158 | ||
| 159 | ||
| 160 | /*------------------------------------------------- | |
| 161 | quark_tables_create - build "quarks" for fast | |
| 162 | string operations | |
| 163 | -------------------------------------------------*/ | |
| 164 | ||
| 165 | static void quark_tables_create(void) | |
| 166 | { | |
| 167 | int drivnum = driver_list_get_count(drivers), strnum; | |
| 168 | ||
| 173 | 169 | /* allocate memory for the quark tables */ |
| 174 | source_table = allocate_quark_table(drivnum, QUARK_HASH_SIZE); | |
| 175 | name_table = allocate_quark_table(drivnum, QUARK_HASH_SIZE); | |
| 176 | description_table = allocate_quark_table(drivnum, QUARK_HASH_SIZE); | |
| 177 | roms_table = allocate_quark_table(drivnum, QUARK_HASH_SIZE); | |
| 178 | inputs_table = allocate_quark_table(drivnum, QUARK_HASH_SIZE); | |
| 170 | source_table = quark_table_alloc(drivnum, QUARK_HASH_SIZE); | |
| 171 | name_table = quark_table_alloc(drivnum, QUARK_HASH_SIZE); | |
| 172 | description_table = quark_table_alloc(drivnum, QUARK_HASH_SIZE); | |
| 173 | roms_table = quark_table_alloc(drivnum, QUARK_HASH_SIZE); | |
| 174 | inputs_table = quark_table_alloc(drivnum, QUARK_HASH_SIZE); | |
| 179 | 175 | |
| 180 | 176 | /* build the quarks and the hash tables */ |
| 181 | 177 | for (drivnum = 0; drivers[drivnum]; drivnum++) |
| r1711 | r1712 | |
| 183 | 179 | const game_driver *driver = drivers[drivnum]; |
| 184 | 180 | |
| 185 | 181 | /* fill in the quark with hashes of the strings */ |
| 186 | add_quark(source_table, drivnum, quark_string_crc(driver->source_file)); | |
| 187 | add_quark(name_table, drivnum, quark_string_crc(driver->name)); | |
| 188 | add_quark(description_table, drivnum, quark_string_crc(driver->description)); | |
| 182 | quark_add(source_table, drivnum, quark_string_crc(driver->source_file)); | |
| 183 | quark_add(name_table, drivnum, quark_string_crc(driver->name)); | |
| 184 | quark_add(description_table, drivnum, quark_string_crc(driver->description)); | |
| 189 | 185 | |
| 190 | 186 | /* only track actual driver ROM entries */ |
| 191 | 187 | if (driver->rom && (driver->flags & GAME_NO_STANDALONE) == 0) |
| 192 | | |
| 188 | | |
| 193 | 189 | } |
| 194 | 190 | |
| 195 | 191 | /* allocate memory for a quark table of strings */ |
| 196 | defstr_table = | |
| 192 | defstr_table = | |
| 197 | 193 | |
| 198 | 194 | /* add all the default strings */ |
| 199 | 195 | for (strnum = 1; strnum < INPUT_STRING_COUNT; strnum++) |
| 200 | 196 | { |
| 201 | const char *string = input_port_string_from_ | |
| 197 | const char *string = input_port_string_from_i | |
| 202 | 198 | if (string != NULL) |
| 203 | | |
| 199 | | |
| 204 | 200 | } |
| 205 | 201 | } |
| 206 | 202 | |
| 207 | 203 | |
| 208 | 204 | |
| 209 | /************************************* | |
| 210 | * | |
| 211 | * Validate inline functions | |
| 212 | * | |
| 213 | *************************************/ | |
| 205 | /*************************************************************************** | |
| 206 | VALIDATION FUNCTIONS | |
| 207 | ***************************************************************************/ | |
| 214 | 208 | |
| 209 | /*------------------------------------------------- | |
| 210 | validate_inlines - validate inline function | |
| 211 | behaviors | |
| 212 | -------------------------------------------------*/ | |
| 213 | ||
| 215 | 214 | static int validate_inlines(void) |
| 216 | 215 | { |
| 217 | 216 | #undef rand |
| r1711 | r1712 | |
| 360 | 359 | } |
| 361 | 360 | |
| 362 | 361 | |
| 362 | /*------------------------------------------------- | |
| 363 | validate_driver - validate basic driver | |
| 364 | information | |
| 365 | -------------------------------------------------*/ | |
| 363 | 366 | |
| 364 | /************************************* | |
| 365 | * | |
| 366 | * Validate basic driver info | |
| 367 | * | |
| 368 | *************************************/ | |
| 369 | ||
| 370 | 367 | static int validate_driver(int drivnum, const machine_config *drv) |
| 371 | 368 | { |
| 372 | 369 | const game_driver *driver = drivers[drivnum]; |
| r1711 | r1712 | |
| 428 | 425 | |
| 429 | 426 | /* find duplicate driver names */ |
| 430 | 427 | crc = quark_string_crc(driver->name); |
| 431 | for (entry = | |
| 428 | for (entry = quark | |
| 432 | 429 | if (entry->crc == crc && entry != &name_table->entry[drivnum]) |
| 433 | 430 | { |
| 434 | 431 | const game_driver *match = drivers[entry - name_table->entry]; |
| r1711 | r1712 | |
| 441 | 438 | |
| 442 | 439 | /* find duplicate descriptions */ |
| 443 | 440 | crc = quark_string_crc(driver->description); |
| 444 | for (entry = | |
| 441 | for (entry = quark | |
| 445 | 442 | if (entry->crc == crc && entry != &description_table->entry[drivnum]) |
| 446 | 443 | { |
| 447 | 444 | const game_driver *match = drivers[entry - description_table->entry]; |
| r1711 | r1712 | |
| 457 | 454 | if (driver->rom && (driver->flags & GAME_IS_BIOS_ROOT) == 0) |
| 458 | 455 | { |
| 459 | 456 | crc = (FPTR)driver->rom; |
| 460 | for (entry = | |
| 457 | for (entry = quark | |
| 461 | 458 | if (entry->crc == crc && entry != &roms_table->entry[drivnum]) |
| 462 | 459 | { |
| 463 | 460 | const game_driver *match = drivers[entry - roms_table->entry]; |
| r1711 | r1712 | |
| 474 | 471 | } |
| 475 | 472 | |
| 476 | 473 | |
| 474 | /*------------------------------------------------- | |
| 475 | validate_roms - validate ROM definitions | |
| 476 | -------------------------------------------------*/ | |
| 477 | 477 | |
| 478 | /************************************* | |
| 479 | * | |
| 480 | * Validate ROM definitions | |
| 481 | * | |
| 482 | *************************************/ | |
| 483 | ||
| 484 | 478 | static int validate_roms(int drivnum, const machine_config *drv, UINT32 *region_length) |
| 485 | 479 | { |
| 486 | 480 | const game_driver *driver = drivers[drivnum]; |
| r1711 | r1712 | |
| 605 | 599 | } |
| 606 | 600 | |
| 607 | 601 | |
| 602 | /*------------------------------------------------- | |
| 603 | validate_cpu - validate CPUs and memory maps | |
| 604 | -------------------------------------------------*/ | |
| 608 | 605 | |
| 609 | /************************************* | |
| 610 | * | |
| 611 | * Validate CPUs and memory maps | |
| 612 | * | |
| 613 | *************************************/ | |
| 614 | ||
| 615 | 606 | static int validate_cpu(int drivnum, const machine_config *drv, const UINT32 *region_length) |
| 616 | 607 | { |
| 617 | 608 | const game_driver *driver = drivers[drivnum]; |
| r1711 | r1712 | |
| 775 | 766 | } |
| 776 | 767 | |
| 777 | 768 | |
| 769 | /*------------------------------------------------- | |
| 770 | validate_display - validate display | |
| 771 | configurations | |
| 772 | -------------------------------------------------*/ | |
| 778 | 773 | |
| 779 | /************************************* | |
| 780 | * | |
| 781 | * Validate display | |
| 782 | * | |
| 783 | *************************************/ | |
| 784 | ||
| 785 | 774 | static int validate_display(int drivnum, const machine_config *drv) |
| 786 | 775 | { |
| 787 | 776 | const game_driver *driver = drivers[drivnum]; |
| 777 | const device_config *device; | |
| 788 | 778 | int palette_modes = FALSE; |
| 789 | 779 | int error = FALSE; |
| 790 | int scrnum; | |
| 791 | 780 | |
| 792 | 781 | /* loop over screens */ |
| 793 | for (scrnum = 0; scrnum < MAX_SCREENS; scrnum++) | |
| 794 | if (drv->screen[scrnum].tag != NULL) | |
| 782 | for (device = video_screen_first(drv); device != NULL; device = video_screen_next(device)) | |
| 783 | { | |
| 784 | const screen_config *scrconfig = device->inline_config; | |
| 785 | ||
| 786 | /* sanity check dimensions */ | |
| 787 | if ((scrconfig->defstate.width <= 0) || (scrconfig->defstate.height <= 0)) | |
| 795 | 788 | { |
| 796 | /* sanity check dimensions */ | |
| 797 | if ((drv->screen[scrnum].defstate.width <= 0) || (drv->screen[scrnum].defstate.height <= 0)) | |
| 789 | mame_printf_error("%s: %s screen \"%s\" has invalid display dimensions\n", driver->source_file, driver->name, device->tag); | |
| 790 | error = TRUE; | |
| 791 | } | |
| 792 | ||
| 793 | /* sanity check display area */ | |
| 794 | if (scrconfig->type != SCREEN_TYPE_VECTOR) | |
| 795 | { | |
| 796 | if ((scrconfig->defstate.visarea.max_x < scrconfig->defstate.visarea.min_x) | |
| 797 | || (scrconfig->defstate.visarea.max_y < scrconfig->defstate.visarea.min_y) | |
| 798 | || (scrconfig->defstate.visarea.max_x >= scrconfig->defstate.width) | |
| 799 | || (scrconfig->defstate.visarea.max_y >= scrconfig->defstate.height)) | |
| 798 | 800 | { |
| 799 | mame_printf_error("%s: %s screen % | |
| 801 | mame_printf_error("%s: %s screen \"%s\" has an invalid display ar | |
| 800 | 802 | error = TRUE; |
| 801 | 803 | } |
| 802 | 804 | |
| 803 | 805 | /* sanity check screen formats */ |
| 804 | if (drv->screen[scrnum].defstate.format != BITMAP_FORMAT_INDEXED16 && | |
| 805 | drv->screen[scrnum].defstate.format != BITMAP_FORMAT_RGB15 && | |
| 806 | drv->screen[scrnum].defstate.format != BITMAP_FORMAT_RGB32) | |
| 806 | if (scrconfig->defstate.format != BITMAP_FORMAT_INDEXED16 && | |
| 807 | scrconfig->defstate.format != BITMAP_FORMAT_RGB15 && | |
| 808 | scrconfig->defstate.format != BITMAP_FORMAT_RGB32) | |
| 807 | 809 | { |
| 808 | mame_printf_error("%s: %s screen % | |
| 810 | mame_printf_error("%s: %s screen \"%s\" has unsupported format\n", driver->source_file, driver->name, device->tag); | |
| 809 | 811 | error = TRUE; |
| 810 | 812 | } |
| 811 | if ( | |
| 813 | if ( | |
| 812 | 814 | palette_modes = TRUE; |
| 815 | } | |
| 813 | 816 | |
| 814 | /* sanity check display area */ | |
| 815 | if (!(drv->video_attributes & VIDEO_TYPE_VECTOR)) | |
| 816 | { | |
| 817 | if ((drv->screen[scrnum].defstate.visarea.max_x < drv->screen[scrnum].defstate.visarea.min_x) | |
| 818 | || (drv->screen[scrnum].defstate.visarea.max_y < drv->screen[scrnum].defstate.visarea.min_y) | |
| 819 | || (drv->screen[scrnum].defstate.visarea.max_x >= drv->screen[scrnum].defstate.width) | |
| 820 | || (drv->screen[scrnum].defstate.visarea.max_y >= drv->screen[scrnum].defstate.height)) | |
| 821 | { | |
| 822 | mame_printf_error("%s: %s screen %d has an invalid display area\n", driver->source_file, driver->name, scrnum); | |
| 823 | error = TRUE; | |
| 824 | } | |
| 825 | } | |
| 826 | ||
| 827 | /* check for zero frame rate */ | |
| 828 | if (drv->screen[scrnum].defstate.refresh == 0) | |
| 829 | { | |
| 830 | mame_printf_error("%s: %s screen %d has a zero refresh rate\n", driver->source_file, driver->name, scrnum); | |
| 831 | error = TRUE; | |
| 832 | } | |
| 817 | /* check for zero frame rate */ | |
| 818 | if (scrconfig->defstate.refresh == 0) | |
| 819 | { | |
| 820 | mame_printf_error("%s: %s screen \"%s\" has a zero refresh rate\n", driver->source_file, driver->name, device->tag); | |
| 821 | error = TRUE; | |
| 833 | 822 | } |
| 823 | } | |
| 834 | 824 | |
| 835 | 825 | /* check for empty palette */ |
| 836 | 826 | if (palette_modes && drv->total_colors == 0) |
| r1711 | r1712 | |
| 843 | 833 | } |
| 844 | 834 | |
| 845 | 835 | |
| 836 | /*------------------------------------------------- | |
| 837 | validate_gfx - validate graphics decoding | |
| 838 | configuration | |
| 839 | -------------------------------------------------*/ | |
| 846 | 840 | |
| 847 | /************************************* | |
| 848 | * | |
| 849 | * Validate graphics | |
| 850 | * | |
| 851 | *************************************/ | |
| 852 | ||
| 853 | 841 | static int validate_gfx(int drivnum, const machine_config *drv, const UINT32 *region_length) |
| 854 | 842 | { |
| 855 | 843 | const game_driver *driver = drivers[drivnum]; |
| r1711 | r1712 | |
| 935 | 923 | } |
| 936 | 924 | |
| 937 | 925 | |
| 938 | /************************************* | |
| 939 | * | |
| 940 | * Display valid coin order | |
| 941 | * | |
| 942 | *************************************/ | |
| 926 | /*------------------------------------------------- | |
| 927 | display_valid_coin_order - display the | |
| 928 | correct coin order | |
| 929 | -------------------------------------------------*/ | |
| 943 | 930 | |
| 944 | 931 | static void display_valid_coin_order(int drivnum, const input_port_entry *memory) |
| 945 | 932 | { |
| r1711 | r1712 | |
| 960 | 947 | |
| 961 | 948 | /* hash the string and look it up in the string table */ |
| 962 | 949 | crc = quark_string_crc(inp->name); |
| 963 | for (entry = first_hash_entry(defstr_table, crc); entry; entry = entry->next) | |
| 964 | if (entry->crc == crc && !strcmp(inp->name, input_port_string_from_token(INPUT_PORT_UINT32(entry - defstr_table->entry)))) | |
| 950 | for (entry = quark_table_get_first(defstr_table, crc); entry; entry = entry->next) | |
| 951 | if (entry->crc == crc && !strcmp(inp->name, input_port_string_from_index(entry - defstr_table->entry))) | |
| 965 | 952 | { |
| 966 | 953 | strindex = entry - defstr_table->entry; |
| 967 | 954 | break; |
| r1711 | r1712 | |
| 992 | 979 | for (j = 0; j < coin_len; j++) |
| 993 | 980 | /* if it's on our list, display it */ |
| 994 | 981 | if (coin_list[j] == i) |
| 995 | mame_printf_error("%s\n", input_port_string_from_ | |
| 982 | mame_printf_error("%s\n", input_port_string_from_i | |
| 996 | 983 | } |
| 997 | 984 | |
| 998 | 985 | |
| 999 | /************************************* | |
| 1000 | * | |
| 1001 | * Validate input ports | |
| 1002 | * | |
| 1003 | *************************************/ | |
| 986 | /*------------------------------------------------- | |
| 987 | validate_inputs - validate input configuration | |
| 988 | -------------------------------------------------*/ | |
| 1004 | 989 | |
| 1005 | 990 | static int validate_inputs(int drivnum, const machine_config *drv, input_port_entry **memory) |
| 1006 | 991 | { |
| 1007 | const char *demo_sounds = input_port_string_from_token(INPUT_PORT_UINT32(INPUT_STRING_Demo_Sounds)); | |
| 1008 | const char *flipscreen = input_port_string_from_token(INPUT_PORT_UINT32(INPUT_STRING_Flip_Screen)); | |
| 992 | const char *demo_sounds = input_port_string_from_index(INPUT_STRING_Demo_Sounds); | |
| 993 | const char *flipscreen = input_port_string_from_index(INPUT_STRING_Flip_Screen); | |
| 1009 | 994 | const input_port_entry *inp, *last_dipname_entry = NULL; |
| 1010 | 995 | const game_driver *driver = drivers[drivnum]; |
| 1011 | 996 | int empty_string_found = FALSE; |
| r1711 | r1712 | |
| 1021 | 1006 | |
| 1022 | 1007 | /* skip if we already validated these ports */ |
| 1023 | 1008 | crc = (FPTR)driver->ipt; |
| 1024 | for (entry = | |
| 1009 | for (entry = quark | |
| 1025 | 1010 | if (entry->crc == crc && driver->ipt == drivers[entry - inputs_table->entry]->ipt) |
| 1026 | 1011 | return FALSE; |
| 1027 | 1012 | |
| 1028 | 1013 | /* otherwise, add ourself to the list */ |
| 1029 | | |
| 1014 | | |
| 1030 | 1015 | |
| 1031 | 1016 | /* allocate the input ports */ |
| 1032 | 1017 | *memory = input_port_allocate(driver->ipt, *memory); |
| r1711 | r1712 | |
| 1187 | 1172 | |
| 1188 | 1173 | /* hash the string and look it up in the string table */ |
| 1189 | 1174 | crc = quark_string_crc(inp->name); |
| 1190 | for (entry = first_hash_entry(defstr_table, crc); entry; entry = entry->next) | |
| 1191 | if (entry->crc == crc && !strcmp(inp->name, input_port_string_from_token(INPUT_PORT_UINT32(entry - defstr_table->entry)))) | |
| 1175 | for (entry = quark_table_get_first(defstr_table, crc); entry; entry = entry->next) | |
| 1176 | if (entry->crc == crc && !strcmp(inp->name, input_port_string_from_index(entry - defstr_table->entry))) | |
| 1192 | 1177 | { |
| 1193 | 1178 | strindex = entry - defstr_table->entry; |
| 1194 | 1179 | break; |
| 1195 | 1180 | } |
| 1196 | 1181 | |
| 1197 | 1182 | /* check for strings that should be DEF_STR */ |
| 1198 | if (strindex != 0 && inp->name != input_port_string_from_ | |
| 1183 | if (strindex != 0 && inp->name != input_port_string_from_i | |
| 1199 | 1184 | { |
| 1200 | 1185 | mame_printf_error("%s: %s must use DEF_STR( %s )\n", driver->source_file, driver->name, inp->name); |
| 1201 | 1186 | error = TRUE; |
| r1711 | r1712 | |
| 1276 | 1261 | } |
| 1277 | 1262 | |
| 1278 | 1263 | |
| 1264 | /*------------------------------------------------- | |
| 1265 | validate_sound - validate sound and | |
| 1266 | speaker configuration | |
| 1267 | -------------------------------------------------*/ | |
| 1279 | 1268 | |
| 1280 | /************************************* | |
| 1281 | * | |
| 1282 | * Validate sound and speakers | |
| 1283 | * | |
| 1284 | *************************************/ | |
| 1285 | ||
| 1286 | 1269 | static int validate_sound(int drivnum, const machine_config *drv) |
| 1287 | 1270 | { |
| 1288 | 1271 | const game_driver *driver = drivers[drivnum]; |
| r1711 | r1712 | |
| 1347 | 1330 | } |
| 1348 | 1331 | |
| 1349 | 1332 | |
| 1333 | /*------------------------------------------------- | |
| 1334 | mame_validitychecks - master validity checker | |
| 1335 | -------------------------------------------------*/ | |
| 1350 | 1336 | |
| 1351 | /************************************* | |
| 1352 | * | |
| 1353 | * Master validity checker | |
| 1354 | * | |
| 1355 | *************************************/ | |
| 1356 | ||
| 1357 | 1337 | int mame_validitychecks(const game_driver *curdriver) |
| 1358 | 1338 | { |
| 1359 | 1339 | osd_ticks_t prep = 0; |
| r1711 | r1712 | |
| 1414 | 1394 | |
| 1415 | 1395 | /* prepare by pre-scanning all the drivers and adding their info to hash tables */ |
| 1416 | 1396 | prep -= osd_profiling_ticks(); |
| 1417 | | |
| 1397 | | |
| 1418 | 1398 | prep += osd_profiling_ticks(); |
| 1419 | 1399 | |
| 1420 | 1400 | /* iterate over all drivers */ |
| r1711 | r1712 | |
| 1422 | 1402 | { |
| 1423 | 1403 | const game_driver *driver = drivers[drivnum]; |
| 1424 | 1404 | UINT32 region_length[REGION_MAX]; |
| 1425 | machine_config | |
| 1405 | machine_config *config; | |
| 1426 | 1406 | |
| 1427 | 1407 | /* ASG -- trying this for a while to see if submission failures increase */ |
| 1428 | 1408 | #if 1 |
| r1711 | r1712 | |
| 1433 | 1413 | |
| 1434 | 1414 | /* expand the machine driver */ |
| 1435 | 1415 | expansion -= osd_profiling_ticks(); |
| 1436 | | |
| 1416 | co | |
| 1437 | 1417 | expansion += osd_profiling_ticks(); |
| 1438 | 1418 | |
| 1439 | 1419 | /* validate the driver entry */ |
| 1440 | 1420 | driver_checks -= osd_profiling_ticks(); |
| 1441 | error = validate_driver(drivnum, | |
| 1421 | error = validate_driver(drivnum, config) || error; | |
| 1442 | 1422 | driver_checks += osd_profiling_ticks(); |
| 1443 | 1423 | |
| 1444 | 1424 | /* validate the ROM information */ |
| 1445 | 1425 | rom_checks -= osd_profiling_ticks(); |
| 1446 | error = validate_roms(drivnum, | |
| 1426 | error = validate_roms(drivnum, config, region_length) || error; | |
| 1447 | 1427 | rom_checks += osd_profiling_ticks(); |
| 1448 | 1428 | |
| 1449 | 1429 | /* validate the CPU information */ |
| 1450 | 1430 | cpu_checks -= osd_profiling_ticks(); |
| 1451 | error = validate_cpu(drivnum, | |
| 1431 | error = validate_cpu(drivnum, config, region_length) || error; | |
| 1452 | 1432 | cpu_checks += osd_profiling_ticks(); |
| 1453 | 1433 | |
| 1454 | 1434 | /* validate the display */ |
| 1455 | 1435 | display_checks -= osd_profiling_ticks(); |
| 1456 | error = validate_display(drivnum, | |
| 1436 | error = validate_display(drivnum, config) || error; | |
| 1457 | 1437 | display_checks += osd_profiling_ticks(); |
| 1458 | 1438 | |
| 1459 | 1439 | /* validate the graphics decoding */ |
| 1460 | 1440 | gfx_checks -= osd_profiling_ticks(); |
| 1461 | error = validate_gfx(drivnum, | |
| 1441 | error = validate_gfx(drivnum, config, region_length) || error; | |
| 1462 | 1442 | gfx_checks += osd_profiling_ticks(); |
| 1463 | 1443 | |
| 1464 | 1444 | /* validate input ports */ |
| 1465 | 1445 | input_checks -= osd_profiling_ticks(); |
| 1466 | error = validate_inputs(drivnum, | |
| 1446 | error = validate_inputs(drivnum, config, &inputports) || error; | |
| 1467 | 1447 | input_checks += osd_profiling_ticks(); |
| 1468 | 1448 | |
| 1469 | 1449 | /* validate sounds and speakers */ |
| 1470 | 1450 | sound_checks -= osd_profiling_ticks(); |
| 1471 | error = validate_sound(drivnum, | |
| 1451 | error = validate_sound(drivnum, config) || error; | |
| 1472 | 1452 | sound_checks += osd_profiling_ticks(); |
| 1453 | ||
| 1454 | machine_config_free(config); | |
| 1473 | 1455 | } |
| 1474 | 1456 | |
| 1475 | 1457 | #ifdef MESS |
| r0 | r1712 | |
|---|---|---|
| 1 | /*************************************************************************** | |
| 2 | ||
| 3 | mconfig.h | |
| 4 | ||
| 5 | Machine configuration macros and functions. | |
| 6 | ||
| 7 | Copyright Nicola Salmoria and the MAME Team. | |
| 8 | Visit http://mamedev.org for licensing and usage restrictions. | |
| 9 | ||
| 10 | ***************************************************************************/ | |
| 11 | ||
| 12 | #pragma once | |
| 13 | ||
| 14 | #ifndef __MCONFIG_H__ | |
| 15 | #define __MCONFIG_H__ | |
| 16 | ||
| 17 | #include "devintrf.h" | |
| 18 | ||
| 19 | ||
| 20 | /*************************************************************************** | |
| 21 | CONSTANTS | |
| 22 | ***************************************************************************/ | |
| 23 | ||
| 24 | /* maxima */ | |
| 25 | #define MAX_SPEAKER 4 | |
| 26 | ||
| 27 | ||
| 28 | ||
| 29 | /* ----- flags for video_attributes ----- */ | |
| 30 | ||
| 31 | /* should VIDEO_UPDATE by called at the start of VBLANK or at the end? */ | |
| 32 | #define VIDEO_UPDATE_BEFORE_VBLANK 0x0000 | |
| 33 | #define VIDEO_UPDATE_AFTER_VBLANK 0x0004 | |
| 34 | ||
| 35 | /* indicates VIDEO_UPDATE will add container bits its */ | |
| 36 | #define VIDEO_SELF_RENDER 0x0008 | |
| 37 | ||
| 38 | /* automatically extend the palette creating a darker copy for shadows */ | |
| 39 | #define VIDEO_HAS_SHADOWS 0x0010 | |
| 40 | ||
| 41 | /* automatically extend the palette creating a brighter copy for highlights */ | |
| 42 | #define VIDEO_HAS_HIGHLIGHTS 0x0020 | |
| 43 | ||
| 44 | /* Mish 181099: See comments in video/generic.c for details */ | |
| 45 | #define VIDEO_BUFFERS_SPRITERAM 0x0040 | |
| 46 | ||
| 47 | /* force VIDEO_UPDATE to be called even for skipped frames */ | |
| 48 | #define VIDEO_ALWAYS_UPDATE 0x0080 | |
| 49 | ||
| 50 | /* calls VIDEO_UPDATE for every visible scanline, even for skipped frames */ | |
| 51 | #define VIDEO_UPDATE_SCANLINE 0x0100 | |
| 52 | ||
| 53 | ||
| 54 | ||
| 55 | /*************************************************************************** | |
| 56 | TYPE DEFINITIONS | |
| 57 | ***************************************************************************/ | |
| 58 | ||
| 59 | /* In mamecore.h: typedef struct _machine_config machine_config; */ | |
| 60 | struct _machine_config | |
| 61 | { | |
| 62 | UINT32 driver_data_size; /* amount of memory needed for driver_data */ | |
| 63 | ||
| 64 | cpu_config cpu[MAX_CPU]; /* array of CPUs in the system */ | |
| 65 | UINT32 cpu_slices_per_frame; /* number of times to interleave execution per frame */ | |
| 66 | INT32 watchdog_vblank_count; /* number of VBLANKs until the watchdog kills us */ | |
| 67 | attotime watchdog_time; /* length of time until the watchdog kills us */ | |
| 68 | ||
| 69 | void (*machine_start)(running_machine *machine); /* one-time machine start callback */ | |
| 70 | void (*machine_reset)(running_machine *machine); /* machine reset callback */ | |
| 71 | ||
| 72 | void (*nvram_handler)(running_machine *machine, mame_file *file, int read_or_write); /* NVRAM save/load callback */ | |
| 73 | void (*memcard_handler)(running_machine *machine, mame_file *file, int action); /* memory card save/load callback */ | |
| 74 | ||
| 75 | UINT32 video_attributes; /* flags describing the video system */ | |
| 76 | const gfx_decode_entry *gfxdecodeinfo; /* pointer to array of graphics decoding information */ | |
| 77 | UINT32 total_colors; /* total number of colors in the palette */ | |
| 78 | const char * default_layout; /* default layout for this machine */ | |
| 79 | ||
| 80 | void (*init_palette)(running_machine *machine, const UINT8 *color_prom); /* one-time palette init callback */ | |
| 81 | void (*video_start)(running_machine *machine); /* one-time video start callback */ | |
| 82 | void (*video_reset)(running_machine *machine); /* video reset callback */ | |
| 83 | void (*video_eof)(running_machine *machine); /* end-of-frame video callback */ | |
| 84 | UINT32 (*video_update)(running_machine *machine, int screen, mame_bitmap *bitmap, const rectangle *cliprect); /* video update callback */ | |
| 85 | ||
| 86 | sound_config sound[MAX_SOUND]; /* array of sound chips in the system */ | |
| 87 | speaker_config speaker[MAX_SPEAKER]; /* array of speakers in the system */ | |
| 88 | ||
| 89 | void (*sound_start)(running_machine *machine); /* one-time sound start callback */ | |
| 90 | void (*sound_reset)(running_machine *machine); /* sound reset callback */ | |
| 91 | ||
| 92 | device_config * devicelist; /* list head for devices */ | |
| 93 | }; | |
| 94 | ||
| 95 | ||
| 96 | ||
| 97 | /*************************************************************************** | |
| 98 | MACROS FOR BUILDING MACHINE DRIVERS | |
| 99 | ***************************************************************************/ | |
| 100 | ||
| 101 | /* use this to declare external references to a machine driver */ | |
| 102 | #define MACHINE_DRIVER_EXTERN(game) \ | |
| 103 | void construct_##game(machine_config *machine) \ | |
| 104 | ||
| 105 | ||
| 106 | /* start/end tags for the machine driver */ | |
| 107 | #define MACHINE_DRIVER_START(game) \ | |
| 108 | void construct_##game(machine_config *machine) \ | |
| 109 | { \ | |
| 110 | cpu_config *cpu = NULL; \ | |
| 111 | sound_config *sound = NULL; \ | |
| 112 | device_config *device = NULL; \ | |
| 113 | (void)cpu; \ | |
| 114 | (void)sound; \ | |
| 115 | (void)device; \ | |
| 116 | ||
| 117 | #define MACHINE_DRIVER_END \ | |
| 118 | } \ | |
| 119 | ||
| 120 | ||
| 121 | /* importing data from other machine drivers */ | |
| 122 | #define MDRV_IMPORT_FROM(game) \ | |
| 123 | construct_##game(machine); \ | |
| 124 | ||
| 125 | ||
| 126 | /* add/remove/config devices */ | |
| 127 | #define MDRV_DEVICE_ADD(_tag, _type) \ | |
| 128 | device = device_list_add(&machine->devicelist, _type, _tag); \ | |
| 129 | ||
| 130 | #define MDRV_DEVICE_REMOVE(_tag, _type) \ | |
| 131 | device_list_remove(&machine->devicelist, _type, _tag); \ | |
| 132 | ||
| 133 | #define MDRV_DEVICE_MODIFY(_tag, _type) \ | |
| 134 | device = (device_config *)device_list_find_by_tag(machine->devicelist, _type, _tag); \ | |
| 135 | ||
| 136 | #define MDRV_DEVICE_CONFIG(_config) \ | |
| 137 | device->static_config = &(_config); \ | |
| 138 | ||
| 139 | #define MDRV_DEVICE_CONFIG_DATA(_struct, _field, _val) \ | |
| 140 | ((_struct *)device->inline_config)->_field = (_val); \ | |
| 141 | ||
| 142 | ||
| 143 | /* add/modify/remove/replace CPUs */ | |
| 144 | #define MDRV_CPU_ADD_TAG(tag, type, clock) \ | |
| 145 | cpu = machine_config_add_cpu(machine, (tag), CPU_##type, (clock)); \ | |
| 146 | ||
| 147 | #define MDRV_CPU_ADD(type, clock) \ | |
| 148 | MDRV_CPU_ADD_TAG(NULL, type, clock) \ | |
| 149 | ||
| 150 | #define MDRV_CPU_MODIFY(tag) \ | |
| 151 | cpu = machine_config_find_cpu(machine, tag); \ | |
| 152 | ||
| 153 | #define MDRV_CPU_REMOVE(tag) \ | |
| 154 | machine_config_remove_cpu(machine, tag); \ | |
| 155 | cpu = NULL; \ | |
| 156 | ||
| 157 | #define MDRV_CPU_REPLACE(tag, _type, _clock) \ | |
| 158 | cpu = machine_config_find_cpu(machine, tag); \ | |
| 159 | cpu->type = (CPU_##_type); \ | |
| 160 | cpu->clock = (_clock); \ | |
| 161 | ||
| 162 | ||
| 163 | /* CPU parameters */ | |
| 164 | #define MDRV_CPU_FLAGS(_flags) \ | |
| 165 | if (cpu) \ | |
| 166 | cpu->flags = (_flags); \ | |
| 167 | ||
| 168 | #define MDRV_CPU_CONFIG(config) \ | |
| 169 | if (cpu) \ | |
| 170 | cpu->reset_param = &(config); \ | |
| 171 | ||
| 172 | #define MDRV_CPU_PROGRAM_MAP(readmem, writemem) \ | |
| 173 | if (cpu) \ | |
| 174 | { \ | |
| 175 | cpu->construct_map[ADDRESS_SPACE_PROGRAM][0] = (construct_map_##readmem); \ | |
| 176 | cpu->construct_map[ADDRESS_SPACE_PROGRAM][1] = (construct_map_##writemem); \ | |
| 177 | } \ | |
| 178 | ||
| 179 | #define MDRV_CPU_DATA_MAP(readmem, writemem) \ | |
| 180 | if (cpu) \ | |
| 181 | { \ | |
| 182 | cpu->construct_map[ADDRESS_SPACE_DATA][0] = (construct_map_##readmem); \ | |
| 183 | cpu->construct_map[ADDRESS_SPACE_DATA][1] = (construct_map_##writemem); \ | |
| 184 | } \ | |
| 185 | ||
| 186 | #define MDRV_CPU_IO_MAP(readmem, writemem) \ | |
| 187 | if (cpu) \ | |
| 188 | { \ | |
| 189 | cpu->construct_map[ADDRESS_SPACE_IO][0] = (construct_map_##readmem); \ | |
| 190 | cpu->construct_map[ADDRESS_SPACE_IO][1] = (construct_map_##writemem); \ | |
| 191 | } \ | |
| 192 | ||
| 193 | #define MDRV_CPU_VBLANK_INT(func, rate) \ | |
| 194 | if (cpu) \ | |
| 195 | { \ | |
| 196 | cpu->vblank_interrupt = func; \ | |
| 197 | cpu->vblank_interrupts_per_frame = (rate); \ | |
| 198 | } \ | |
| 199 | ||
| 200 | #define MDRV_CPU_PERIODIC_INT(func, rate) \ | |
| 201 | if (cpu) \ | |
| 202 | { \ | |
| 203 | cpu->timed_interrupt = func; \ | |
| 204 | cpu->timed_interrupt_period = HZ_TO_ATTOSECONDS(rate); \ | |
| 205 | } \ | |
| 206 | ||
| 207 | ||
| 208 | /* core parameters */ | |
| 209 | #define MDRV_DRIVER_DATA(_struct) \ | |
| 210 | machine->driver_data_size = sizeof(_struct); \ | |
| 211 | ||
| 212 | #define MDRV_INTERLEAVE(interleave) \ | |
| 213 | machine->cpu_slices_per_frame = (interleave); \ | |
| 214 | ||
| 215 | #define MDRV_WATCHDOG_VBLANK_INIT(watch_count) \ | |
| 216 | machine->watchdog_vblank_count = (watch_count); \ | |
| 217 | ||
| 218 | #define MDRV_WATCHDOG_TIME_INIT(time) \ | |
| 219 | machine->watchdog_time = (time); \ | |
| 220 | ||
| 221 | ||
| 222 | /* core functions */ | |
| 223 | #define MDRV_MACHINE_START(name) \ | |
| 224 | machine->machine_start = machine_start_##name; \ | |
| 225 | ||
| 226 | #define MDRV_MACHINE_RESET(name) \ | |
| 227 | machine->machine_reset = machine_reset_##name; \ | |
| 228 | ||
| 229 | #define MDRV_NVRAM_HANDLER(name) \ | |
| 230 | machine->nvram_handler = nvram_handler_##name; \ | |
| 231 | ||
| 232 | #define MDRV_MEMCARD_HANDLER(name) \ | |
| 233 | machine->memcard_handler = memcard_handler_##name; \ | |
| 234 | ||
| 235 | ||
| 236 | /* core video parameters */ | |
| 237 | #define MDRV_VIDEO_ATTRIBUTES(flags) \ | |
| 238 | machine->video_attributes = (flags); \ | |
| 239 | ||
| 240 | #define MDRV_GFXDECODE(gfx) \ | |
| 241 | machine->gfxdecodeinfo = (gfxdecodeinfo_##gfx); \ | |
| 242 | ||
| 243 | #define MDRV_PALETTE_LENGTH(length) \ | |
| 244 | machine->total_colors = (length); \ | |
| 245 | ||
| 246 | #define MDRV_DEFAULT_LAYOUT(layout) \ | |
| 247 | machine->default_layout = &(layout)[0]; \ | |
| 248 | ||
| 249 | ||
| 250 | /* core video functions */ | |
| 251 | #define MDRV_PALETTE_INIT(name) \ | |
| 252 | machine->init_palette = palette_init_##name; \ | |
| 253 | ||
| 254 | #define MDRV_VIDEO_START(name) \ | |
| 255 | machine->video_start = video_start_##name; \ | |
| 256 | ||
| 257 | #define MDRV_VIDEO_RESET(name) \ | |
| 258 | machine->video_reset = video_reset_##name; \ | |
| 259 | ||
| 260 | #define MDRV_VIDEO_EOF(name) \ | |
| 261 | machine->video_eof = video_eof_##name; \ | |
| 262 | ||
| 263 | #define MDRV_VIDEO_UPDATE(name) \ | |
| 264 | machine->video_update = video_update_##name; \ | |
| 265 | ||
| 266 | ||
| 267 | /* add/remove screens */ | |
| 268 | #define MDRV_SCREEN_ADD(tag, _type) \ | |
| 269 | MDRV_DEVICE_ADD(tag, VIDEO_SCREEN) \ | |
| 270 | MDRV_DEVICE_CONFIG_DATA(screen_config, type, SCREEN_TYPE_##_type) \ | |
| 271 | ||
| 272 | #define MDRV_SCREEN_REMOVE(tag) \ | |
| 273 | MDRV_DEVICE_REMOVE(tag, VIDEO_SCREEN) \ | |
| 274 | ||
| 275 | #define MDRV_SCREEN_MODIFY(tag) \ | |
| 276 | MDRV_DEVICE_MODIFY(tag, VIDEO_SCREEN) \ | |
| 277 | ||
| 278 | #define MDRV_SCREEN_FORMAT(_format) \ | |
| 279 | MDRV_DEVICE_CONFIG_DATA(screen_config, defstate.format, _format) \ | |
| 280 | ||
| 281 | #define MDRV_SCREEN_TYPE(_type) \ | |
| 282 | MDRV_DEVICE_CONFIG_DATA(screen_config, type, SCREEN_TYPE_##_type) \ | |
| 283 | ||
| 284 | #define MDRV_SCREEN_RAW_PARAMS(pixclock, htotal, hbend, hbstart, vtotal, vbend, vbstart) \ | |
| 285 | MDRV_DEVICE_CONFIG_DATA(screen_config, defstate.refresh, HZ_TO_ATTOSECONDS(pixclock) * (htotal) * (vtotal)) \ | |
| 286 | MDRV_DEVICE_CONFIG_DATA(screen_config, defstate.vblank, ((HZ_TO_ATTOSECONDS(pixclock) * (htotal) * (vtotal)) / (vtotal)) * ((vtotal) - ((vbstart) - (vbend)))) \ | |
| 287 | MDRV_DEVICE_CONFIG_DATA(screen_config, defstate.width, htotal) \ | |
| 288 | MDRV_DEVICE_CONFIG_DATA(screen_config, defstate.height, vtotal) \ | |
| 289 | MDRV_DEVICE_CONFIG_DATA(screen_config, defstate.visarea.min_x, hbend) \ | |
| 290 | MDRV_DEVICE_CONFIG_DATA(screen_config, defstate.visarea.max_x, (hbstart) - 1) \ | |
| 291 | MDRV_DEVICE_CONFIG_DATA(screen_config, defstate.visarea.min_y, vbend) \ | |
| 292 | MDRV_DEVICE_CONFIG_DATA(screen_config, defstate.visarea.max_y, (vbstart) - 1) \ | |
| 293 | ||
| 294 | #define MDRV_SCREEN_REFRESH_RATE(rate) \ | |
| 295 | MDRV_DEVICE_CONFIG_DATA(screen_config, defstate.refresh, HZ_TO_ATTOSECONDS(rate)) \ | |
| 296 | ||
| 297 | #define MDRV_SCREEN_VBLANK_TIME(time) \ | |
| 298 | MDRV_DEVICE_CONFIG_DATA(screen_config, defstate.vblank, time) \ | |
| 299 | MDRV_DEVICE_CONFIG_DATA(screen_config, defstate.oldstyle_vblank_supplied, TRUE) \ | |
| 300 | ||
| 301 | #define MDRV_SCREEN_SIZE(_width, _height) \ | |
| 302 | MDRV_DEVICE_CONFIG_DATA(screen_config, defstate.width, _width) \ | |
| 303 | MDRV_DEVICE_CONFIG_DATA(screen_config, defstate.height, _height) \ | |
| 304 | ||
| 305 | #define MDRV_SCREEN_VISIBLE_AREA(minx, maxx, miny, maxy) \ | |
| 306 | MDRV_DEVICE_CONFIG_DATA(screen_config, defstate.visarea.min_x, minx) \ | |
| 307 | MDRV_DEVICE_CONFIG_DATA(screen_config, defstate.visarea.max_x, maxx) \ | |
| 308 | MDRV_DEVICE_CONFIG_DATA(screen_config, defstate.visarea.min_y, miny) \ | |
| 309 | MDRV_DEVICE_CONFIG_DATA(screen_config, defstate.visarea.max_y, maxy) \ | |
| 310 | ||
| 311 | #define MDRV_SCREEN_DEFAULT_POSITION(_xscale, _xoffs, _yscale, _yoffs) \ | |
| 312 | MDRV_DEVICE_CONFIG_DATA(screen_config, xoffset, (float)(_xoffs)) \ | |
| 313 | MDRV_DEVICE_CONFIG_DATA(screen_config, xscale, (float)(_xscale)) \ | |
| 314 | MDRV_DEVICE_CONFIG_DATA(screen_config, yoffset, (float)(_yoffs)) \ | |
| 315 | MDRV_DEVICE_CONFIG_DATA(screen_config, yscale, (float)(_yscale)) \ | |
| 316 | ||
| 317 | ||
| 318 | /* add/remove speakers */ | |
| 319 | #define MDRV_SPEAKER_ADD(tag, x, y, z) \ | |
| 320 | machine_config_add_speaker(machine, (tag), (float)(x), (float)(y), (float)(z)); \ | |
| 321 | ||
| 322 | #define MDRV_SPEAKER_REMOVE(tag) \ | |
| 323 | machine_config_remove_speaker(machine, (tag)); \ | |
| 324 | ||
| 325 | #define MDRV_SPEAKER_STANDARD_MONO(tag) \ | |
| 326 | MDRV_SPEAKER_ADD(tag, 0.0, 0.0, 1.0) \ | |
| 327 | ||
| 328 | #define MDRV_SPEAKER_STANDARD_STEREO(tagl, tagr) \ | |
| 329 | MDRV_SPEAKER_ADD(tagl, -0.2, 0.0, 1.0) \ | |
| 330 | MDRV_SPEAKER_ADD(tagr, 0.2, 0.0, 1.0) \ | |
| 331 | ||
| 332 | ||
| 333 | /* core sound functions */ | |
| 334 | #define MDRV_SOUND_START(name) \ | |
| 335 | machine->sound_start = sound_start_##name; \ | |
| 336 | ||
| 337 | #define MDRV_SOUND_RESET(name) \ | |
| 338 | machine->sound_reset = sound_reset_##name; \ | |
| 339 | ||
| 340 | ||
| 341 | /* add/remove/replace sounds */ | |
| 342 | #define MDRV_SOUND_ADD_TAG(tag, type, clock) \ | |
| 343 | sound = machine_config_add_sound(machine, (tag), SOUND_##type, (clock)); \ | |
| 344 | ||
| 345 | #define MDRV_SOUND_ADD(type, clock) \ | |
| 346 | MDRV_SOUND_ADD_TAG(NULL, type, clock) \ | |
| 347 | ||
| 348 | #define MDRV_SOUND_REMOVE(tag) \ | |
| 349 | machine_config_remove_sound(machine, tag); \ | |
| 350 | ||
| 351 | #define MDRV_SOUND_MODIFY(tag) \ | |
| 352 | sound = machine_config_find_sound(machine, tag); \ | |
| 353 | sound->routes = 0; \ | |
| 354 | ||
| 355 | #define MDRV_SOUND_CONFIG(_config) \ | |
| 356 | if (sound) \ | |
| 357 | sound->config = &(_config); \ | |
| 358 | ||
| 359 | #define MDRV_SOUND_REPLACE(tag, _type, _clock) \ | |
| 360 | sound = machine_config_find_sound(machine, tag); \ | |
| 361 | if (sound) \ | |
| 362 | { \ | |
| 363 | sound->type = SOUND_##_type; \ | |
| 364 | sound->clock = (_clock); \ | |
| 365 | sound->config = NULL; \ | |
| 366 | sound->routes = 0; \ | |
| 367 | } \ | |
| 368 | ||
| 369 | #define MDRV_SOUND_ROUTE_EX(_output, _target, _gain, _input) \ | |
| 370 | if (sound) \ | |
| 371 | { \ | |
| 372 | sound->route[sound->routes].output = (_output); \ | |
| 373 | sound->route[sound->routes].target = (_target); \ | |
| 374 | sound->route[sound->routes].gain = (float)(_gain); \ | |
| 375 | sound->route[sound->routes].input = (_input); \ | |
| 376 | sound->routes++; \ | |
| 377 | } \ | |
| 378 | ||
| 379 | #define MDRV_SOUND_ROUTE(_output, _target, _gain) \ | |
| 380 | MDRV_SOUND_ROUTE_EX(_output, _target, _gain, -1) \ | |
| 381 | ||
| 382 | ||
| 383 | ||
| 384 | /*************************************************************************** | |
| 385 | FUNCTION PROTOTYPES | |
| 386 | ***************************************************************************/ | |
| 387 | ||
| 388 | ||
| 389 | /* ----- machine configurations ----- */ | |
| 390 | ||
| 391 | /* allocate a new machine configuration and populate it using the supplied constructor */ | |
| 392 | machine_config *machine_config_alloc(void (*constructor)(machine_config *)); | |
| 393 | ||
| 394 | /* release memory allocated for a machine configuration */ | |
| 395 | void machine_config_free(machine_config *config); | |
| 396 | ||
| 397 | ||
| 398 | ||
| 399 | ||
| 400 | ||
| 401 | cpu_config *machine_config_add_cpu(machine_config *machine, const char *tag, cpu_type type, int cpuclock); | |
| 402 | cpu_config *machine_config_find_cpu(machine_config *machine, const char *tag); | |
| 403 | void machine_config_remove_cpu(machine_config *machine, const char *tag); | |
| 404 | ||
| 405 | speaker_config *machine_config_add_speaker(machine_config *machine, const char *tag, float x, float y, float z); | |
| 406 | speaker_config *machine_config_find_speaker(machine_config *machine, const char *tag); | |
| 407 | void machine_config_remove_speaker(machine_config *machine, const char *tag); | |
| 408 | ||
| 409 | sound_config *machine_config_add_sound(machine_config *machine, const char *tag, sound_type type, int clock); | |
| 410 | sound_config *machine_config_find_sound(machine_config *machine, const char *tag); | |
| 411 | void machine_config_remove_sound(machine_config *machine, const char *tag); | |
| 412 | ||
| 413 | ||
| 414 | #endif /* __MCONFIG_H__ */ |
| r1711 | r1712 | |
|---|---|---|
| 174 | 174 | /* configure groups in a tilemap to represent transparency based on colortable entries (each group maps to a gfx color) */ |
| 175 | 175 | void colortable_configure_tilemap_groups(colortable_t *ctable, tilemap *tmap, const gfx_element *gfx, int transcolor); |
| 176 | 176 | |
| 177 | /* return the number of entries in a colortable */ | |
| 178 | UINT32 colortable_palette_get_size(colortable_t *ctable); | |
| 177 | 179 | |
| 178 | 180 | |
| 181 | ||
| 179 | 182 | /* ----- utilities ----- */ |
| 180 | 183 | |
| 181 | 184 | /* return the pen for a fixed black color */ |
| r1711 | r1712 | |
|---|---|---|
| 38 | 38 | MDRV_MACHINE_START(empty) |
| 39 | 39 | |
| 40 | 40 | /* video hardware */ |
| 41 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 42 | ||
| 43 | MDRV_SCREEN_ADD("main", 0) | |
| 41 | MDRV_SCREEN_ADD("main", RASTER) | |
| 44 | 42 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 45 | 43 | MDRV_SCREEN_SIZE(640,480) |
| 46 | 44 | MDRV_SCREEN_VISIBLE_AREA(0,639, 0,479) |
| r1711 | r1712 | |
|---|---|---|
| 48 | 48 | XTAL_2_4576MHz = 2457600, /* Atari ST MFP */ |
| 49 | 49 | XTAL_3MHz = 3000000, /* Probably only used to drive 68705 or similar MCUs on 80's Taito PCBs */ |
| 50 | 50 | XTAL_3_52128MHz = 3521280, /* RCA COSMAC VIP */ |
| 51 | XTAL_3_579545MHz = 3579545, /* NTSC color subcarrier, | |
| 51 | XTAL_3_579545MHz = 3579545, /* NTSC color subcarrier, extremely common, used on 100's | |
| 52 | 52 | XTAL_3_6864MHz = 3686400, /* CPS3 */ |
| 53 | 53 | XTAL_4MHz = 4000000, |
| 54 | 54 | XTAL_4_224MHz = 4224000, /* Used to drive OKI M6295 chips, usually with /4 divider */ |
| 55 | 55 | XTAL_4_433619MHz = 4433619, /* PAL color subcarrier */ |
| 56 | XTAL_4_436MHz = 4436000, | |
| 57 | 56 | XTAL_4_9152MHz = 4915200, |
| 58 | 57 | XTAL_5MHz = 5000000, /* Mutant Night */ |
| 59 | 58 | XTAL_6MHz = 6000000, |
| 60 | 59 | XTAL_6_144MHz = 6144000, /* Used on Alpha Denshi early 80's games sound board */ |
| 61 | 60 | XTAL_7_15909MHz = 7159090, /* Blood Bros */ |
| 62 | 61 | XTAL_7_3728MHz = 7372800, |
| 63 | XTAL_8MHz = 8000000, | |
| 62 | XTAL_8MHz = 8000000, /* Extremely common, used on 100's of PCBs */ | |
| 64 | 63 | XTAL_9_987MHz = 9987000, /* Crazy Balloon */ |
| 65 | 64 | XTAL_10MHz = 10000000, |
| 65 | XTAL_10_595MHz = 10595000, /* Mad Alien */ | |
| 66 | 66 | XTAL_10_738635MHz = 10738635, /* TMS9918 family */ |
| 67 | XTAL_10_595MHz = 10595000, /* Mad Alien */ | |
| 68 | 67 | XTAL_11MHz = 11000000, /* Mario I8039 sound */ |
| 69 | 68 | XTAL_11_0592MHz = 11059200, /* Lethal Justice */ |
| 70 | 69 | XTAL_11_2MHz = 11200000, /* New York, New York */ |
| 71 | 70 | XTAL_11_289MHz = 11289000, /* Vanguard */ |
| 72 | XTAL_12MHz = 12000000, | |
| 71 | XTAL_11_6688MHz = 11668800, /* Gameplan pixel clock */ | |
| 72 | XTAL_12MHz = 12000000, /* Extremely common, used on 100's of PCBs */ | |
| 73 | 73 | XTAL_12_096MHz = 12096000, /* Some early 80's Atari games */ |
| 74 | 74 | XTAL_12_288MHz = 12288000, /* Sega Model 3 digital audio board */ |
| 75 | 75 | XTAL_12_5MHz = 12500000, /* Red Alert audio board */ |
| r1711 | r1712 | |
| 78 | 78 | XTAL_13_33056MHz = 13330560, /* Taito L */ |
| 79 | 79 | XTAL_13_4MHz = 13400000, /* TNK3, Ikari Warriors h/w */ |
| 80 | 80 | XTAL_14MHz = 14000000, |
| 81 | XTAL_14_31818MHz = 14318180, | |
| 81 | XTAL_14_31818MHz = 14318180, /* Extremely common, used on 100's of PCBs */ | |
| 82 | 82 | XTAL_14_705882MHz = 14705882, /* Aleck64 */ |
| 83 | 83 | XTAL_14_7456MHz = 14745600, /* Namco System 12 & System Super 22/23 for H8/3002 CPU */ |
| 84 | 84 | XTAL_15MHz = 15000000, /* Sinclair QL */ |
| 85 | 85 | XTAL_15_468MHz = 15468000, /* Bank Panic h/w, Sega G80 */ |
| 86 | XTAL_16MHz = 16000000, | |
| 86 | XTAL_16MHz = 16000000, /* Extremely common, used on 100's of PCBs */ | |
| 87 | 87 | XTAL_16_9344MHz = 16934400, /* Usually used to drive 90's Yamaha OPL/FM chips */ |
| 88 | 88 | XTAL_17_73447MHz = 17734470, /* 4 times the PAL subcarrier */ |
| 89 | 89 | XTAL_18MHz = 18000000, /* S.A.R, Ikari Warriors 3 */ |
| 90 | XTAL_18_432MHz = 18432000, | |
| 90 | XTAL_18_432MHz = 18432000, /* Extremely common, used on 100's of PCBs */ | |
| 91 | 91 | XTAL_19_968MHz = 19968000, /* Used mostly by Space Invaders games by Taito/Midway and clones */ |
| 92 | 92 | XTAL_20MHz = 20000000, |
| 93 | 93 | XTAL_21MHz = 21000000, /* Lock-On pixel clock */ |
| r1711 | r1712 | |
| 118 | 118 | XTAL_42_9545MHz = 42954500, /* CPS3 */ |
| 119 | 119 | XTAL_45MHz = 45000000, /* Eolith with Hyperstone CPUs */ |
| 120 | 120 | XTAL_45_158MHz = 45158000, /* Sega Model 2A video board, Model 3 CPU board */ |
| 121 | XTAL_48MHz = 48000000, | |
| 121 | XTAL_48MHz = 48000000, /* Williams/Midway Y/Z-unit system */ | |
| 122 | 122 | XTAL_48_66MHz = 48660000, /* Zaxxon */ |
| 123 | 123 | XTAL_49_152MHz = 49152000, /* Used on some Namco PCBs, Baraduke h/w, System 21, Super System 22 */ |
| 124 | XTAL_50MHz = 50000000, | |
| 124 | XTAL_50MHz = 50000000, /* Williams/Midway T/W/V-unit system */ | |
| 125 | 125 | XTAL_52MHz = 52000000, /* Cojag */ |
| 126 | 126 | XTAL_53_693175MHz = 53693175, /* PSX-based h/w, Sony ZN1-2-based */ |
| 127 | 127 | XTAL_54MHz = 54000000, /* Taito JC */ |
| r1711 | r1712 | |
|---|---|---|
| 451 | 451 | /* if this is a CPU region, override with the CPU width and endianness */ |
| 452 | 452 | if (type >= REGION_CPU1 && type < REGION_CPU1 + MAX_CPU) |
| 453 | 453 | { |
| 454 | cpu_type cputype = Machine-> | |
| 454 | cpu_type cputype = Machine->config->cpu[type - REGION_CPU1].type; | |
| 455 | 455 | if (cputype != CPU_DUMMY) |
| 456 | 456 | { |
| 457 | 457 | datawidth = cputype_databus_width(cputype, ADDRESS_SPACE_PROGRAM) / 8; |
| r1711 | r1712 | |
|---|---|---|
| 566 | 566 | { |
| 567 | 567 | char *text; |
| 568 | 568 | |
| 569 | /* just to | |
| 569 | /* just tolower() on all characters */ | |
| 570 | 570 | for (text = str->text; *text != 0; text++) |
| 571 | 571 | *text = tolower(*text); |
| 572 | 572 |
| r1711 | r1712 | |
|---|---|---|
| 15 | 15 | |
| 16 | 16 | enum |
| 17 | 17 | { |
| 18 | DEVINFO_PTR_SNAPSHOT_LOAD = DEVINFO_PTR_DEV_SPECIFIC, | |
| 19 | DEVINFO_PTR_QUICKLOAD_LOAD = DEVINFO_PTR_DEV_SPECIFIC, | |
| 18 | MESS_DEVINFO_PTR_SNAPSHOT_LOAD = MESS_DEVINFO_PTR_DEV_SPECIFIC, | |
| 19 | MESS_DEVINFO_PTR_QUICKLOAD_LOAD = MESS_DEVINFO_PTR_DEV_SPECIFIC, | |
| 20 | 20 | |
| 21 | DEVINFO_FLOAT_SNAPSHOT_DELAY = DEVINFO_FLOAT_DEV_SPECIFIC, | |
| 22 | DEVINFO_FLOAT_QUICKLOAD_DELAY = DEVINFO_FLOAT_DEV_SPECIFIC | |
| 21 | MESS_DEVINFO_FLOAT_SNAPSHOT_DELAY = MESS_DEVINFO_FLOAT_DEV_SPECIFIC, | |
| 22 | MESS_DEVINFO_FLOAT_QUICKLOAD_DELAY = MESS_DEVINFO_FLOAT_DEV_SPECIFIC | |
| 23 | 23 | }; |
| 24 | 24 | |
| 25 | 25 | typedef int (*snapquick_loadproc)(mess_image *image, const char *file_type, int file_size); |
| r1711 | r1712 | |
|---|---|---|
| 275 | 275 | switch(state) |
| 276 | 276 | { |
| 277 | 277 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 278 | case DEVINFO_INT_TYPE: info->i = IO_HARDDISK; break; | |
| 279 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 280 | case DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 281 | case DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 282 | case DEVINFO_INT_CREATE_OPTCOUNT: info->i = 1; break; | |
| 278 | case MESS_DEVINFO_INT_TYPE: info->i = IO_HARDDISK; break; | |
| 279 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 280 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 281 | case MESS_DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 282 | case MESS_DEVINFO_INT_CREATE_OPTCOUNT: info->i = 1; break; | |
| 283 | 283 | |
| 284 | 284 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 285 | case DEVINFO_PTR_INIT: info->init = device_init_mess_hd; break; | |
| 286 | case DEVINFO_PTR_LOAD: info->load = device_load_mess_hd; break; | |
| 287 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_mess_hd; break; | |
| 288 | case DEVINFO_PTR_CREATE_OPTGUIDE: info->p = (void *) mess_hd_option_guide; break; | |
| 289 | case DEVINFO_PTR_CREATE_OPTSPEC+0: info->p = (void *) mess_hd_option_spec; | |
| 285 | case MESS_DEVINFO_PTR_INIT: info->init = device_init_mess_hd; break; | |
| 286 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_mess_hd; break; | |
| 287 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_mess_hd; break; | |
| 288 | case MESS_DEVINFO_PTR_CREATE_OPTGUIDE: info->p = (void *) mess_hd_option_guide; break; | |
| 289 | case MESS_DEVINFO_PTR_CREATE_OPTSPEC+0: info->p = (void *) mess_hd_option_spec; | |
| 290 | 290 | |
| 291 | 291 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 292 | case DEVINFO_STR_DEV_FILE: strcpy(info->s = device_temp_str(), __FILE__); break; | |
| 293 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "chd,hd"); break; | |
| 294 | case DEVINFO_STR_CREATE_OPTNAME+0: strcpy(info->s = device_temp_str(), "chd"); break; | |
| 295 | case DEVINFO_STR_CREATE_OPTDESC+0: strcpy(info->s = device_temp_str(), "MAME/MESS CHD Hard drive"); break; | |
| 296 | case DEVINFO_STR_CREATE_OPTEXTS+0: strcpy(info->s = device_temp_str(), "chd,hd"); break; | |
| 292 | case MESS_DEVINFO_STR_DEV_FILE: strcpy(info->s = device_temp_str(), __FILE__); break; | |
| 293 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "chd,hd"); break; | |
| 294 | case MESS_DEVINFO_STR_CREATE_OPTNAME+0: strcpy(info->s = device_temp_str(), "chd"); break; | |
| 295 | case MESS_DEVINFO_STR_CREATE_OPTDESC+0: strcpy(info->s = device_temp_str(), "MAME/MESS CHD Hard drive"); break; | |
| 296 | case MESS_DEVINFO_STR_CREATE_OPTEXTS+0: strcpy(info->s = device_temp_str(), "chd,hd"); break; | |
| 297 | 297 | } |
| 298 | 298 | } |
| 299 | 299 |
| r1711 | r1712 | |
|---|---|---|
| 52 | 52 | switch(state) |
| 53 | 53 | { |
| 54 | 54 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 55 | case DEVINFO_STR_DEV_FILE: strcpy(info->s = device_temp_str(), __FILE__); break; | |
| 56 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "bin"); break; | |
| 55 | case MESS_DEVINFO_STR_DEV_FILE: strcpy(info->s = device_temp_str(), __FILE__); break; | |
| 56 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "bin"); break; | |
| 57 | 57 | |
| 58 | 58 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 59 | case DEVINFO_PTR_QUICKLOAD_LOAD: info->f = (genf *) quickload_load_z80bin; break; | |
| 59 | case MESS_DEVINFO_PTR_QUICKLOAD_LOAD: info->f = (genf *) quickload_load_z80bin; break; | |
| 60 | 60 | |
| 61 | 61 | default: quickload_device_getinfo(devclass, state, info); break; |
| 62 | 62 | } |
| r1711 | r1712 | |
|---|---|---|
| 44 | 44 | static cassette_state get_default_state(const struct IODevice *dev) |
| 45 | 45 | { |
| 46 | 46 | assert(dev->type == IO_CASSETTE); |
| 47 | return (cassette_state) (int) device_get_info_int(&dev->devclass, DEVINFO_INT_CASSETTE_DEFAULT_STATE); | |
| 47 | return (cassette_state) (int) mess_device_get_info_int(&dev->devclass, MESS_DEVINFO_INT_CASSETTE_DEFAULT_STATE); | |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | |
| r1711 | r1712 | |
| 260 | 260 | |
| 261 | 261 | /* figure out the cassette format */ |
| 262 | 262 | dev = device_find(Machine->devices, IO_CASSETTE); |
| 263 | formats = device_get_info_ptr(&dev->devclass, DEVINFO_PTR_CASSETTE_FORMATS); | |
| 263 | formats = mess_device_get_info_ptr(&dev->devclass, MESS_DEVINFO_PTR_CASSETTE_FORMATS); | |
| 264 | 264 | |
| 265 | 265 | if (image_has_been_created(image)) |
| 266 | 266 | { |
| 267 | 267 | /* creating an image */ |
| 268 | create_opts = (const struct CassetteOptions *) device_get_info_ptr(&dev->devclass, DEVINFO_PTR_CASSETTE_OPTIONS); | |
| 268 | create_opts = (const struct CassetteOptions *) mess_device_get_info_ptr(&dev->devclass, MESS_DEVINFO_PTR_CASSETTE_OPTIONS); | |
| 269 | 269 | err = cassette_create(image, &mess_ioprocs, &wavfile_format, create_opts, CASSETTE_FLAG_READWRITE|CASSETTE_FLAG_SAVEONEXIT, &tag->cassette); |
| 270 | 270 | if (err) |
| 271 | 271 | goto error; |
| r1711 | r1712 | |
| 381 | 381 | switch(state) |
| 382 | 382 | { |
| 383 | 383 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 384 | case DEVINFO_INT_TYPE: info->i = IO_CASSETTE; break; | |
| 385 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 386 | case DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 387 | case DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 388 | case DEVINFO_INT_CASSETTE_DEFAULT_STATE: info->i = CASSETTE_PLAY; break; | |
| 384 | case MESS_DEVINFO_INT_TYPE: info->i = IO_CASSETTE; break; | |
| 385 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 386 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 387 | case MESS_DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 388 | case MESS_DEVINFO_INT_CASSETTE_DEFAULT_STATE: info->i = CASSETTE_PLAY; break; | |
| 389 | 389 | |
| 390 | 390 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 391 | case DEVINFO_PTR_INIT: info->init = device_init_cassette; break; | |
| 392 | case DEVINFO_PTR_LOAD: info->load = device_load_cassette; break; | |
| 393 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_cassette; break; | |
| 394 | case DEVINFO_PTR_DISPLAY: info->display = device_display_cassette; break; | |
| 395 | case DEVINFO_PTR_CASSETTE_FORMATS: info->p = (void *) cassette_default_formats; break; | |
| 391 | case MESS_DEVINFO_PTR_INIT: info->init = device_init_cassette; break; | |
| 392 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_cassette; break; | |
| 393 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_cassette; break; | |
| 394 | case MESS_DEVINFO_PTR_DISPLAY: info->display = device_display_cassette; break; | |
| 395 | case MESS_DEVINFO_PTR_CASSETTE_FORMATS: info->p = (void *) cassette_default_formats; break; | |
| 396 | 396 | |
| 397 | 397 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 398 | case DEVINFO_STR_DEV_FILE: strcpy(info->s = device_temp_str(), __FILE__); break; | |
| 399 | case DEVINFO_STR_FILE_EXTENSIONS: | |
| 400 | formats = device_get_info_ptr(devclass, DEVINFO_PTR_CASSETTE_FORMATS); | |
| 398 | case MESS_DEVINFO_STR_DEV_FILE: strcpy(info->s = device_temp_str(), __FILE__); break; | |
| 399 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: | |
| 400 | formats = mess_device_get_info_ptr(devclass, MESS_DEVINFO_PTR_CASSETTE_FORMATS); | |
| 401 | 401 | |
| 402 | 402 | /* set up a temporary string */ |
| 403 | 403 | s = device_temp_str(); |
| r1711 | r1712 | |
|---|---|---|
| 497 | 497 | save_track_data(id); |
| 498 | 498 | memset(&sony_floppy[id], 0, sizeof(sony_floppy[id])); |
| 499 | 499 | |
| 500 | parent_unload = (device_unload_handler) device_get_info_fct(&parent_devclass, DEVINFO_PTR_UNLOAD); | |
| 500 | parent_unload = (device_unload_handler) mess_device_get_info_fct(&parent_devclass, MESS_DEVINFO_PTR_UNLOAD); | |
| 501 | 501 | parent_unload(image); |
| 502 | 502 | } |
| 503 | 503 | |
| r1711 | r1712 | |
| 508 | 508 | switch(state) |
| 509 | 509 | { |
| 510 | 510 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 511 | case DEVINFO_INT_COUNT: info->i = 2; break; | |
| 511 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 512 | 512 | |
| 513 | 513 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 514 | case DEVINFO_STR_DEV_TAG: strcpy(info->s = device_temp_str(), "sonydriv"); break; | |
| 514 | case MESS_DEVINFO_STR_DEV_TAG: strcpy(info->s = device_temp_str(), "sonydriv"); break; | |
| 515 | 515 | |
| 516 | 516 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 517 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_sonydriv_floppy; break; | |
| 518 | case DEVINFO_PTR_FLOPPY_OPTIONS: | |
| 519 | if (device_get_info_int(devclass, DEVINFO_INT_SONYDRIV_ALLOWABLE_SIZES) & SONY_FLOPPY_SUPPORT2IMG) | |
| 517 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_sonydriv_floppy; break; | |
| 518 | case MESS_DEVINFO_PTR_FLOPPY_OPTIONS: | |
| 519 | if (mess_device_get_info_int(devclass, MESS_DEVINFO_INT_SONYDRIV_ALLOWABLE_SIZES) & SONY_FLOPPY_SUPPORT2IMG) | |
| 520 | 520 | info->p = (void *) floppyoptions_apple35_iigs; |
| 521 | 521 | else |
| 522 | 522 | info->p = (void *) floppyoptions_apple35_mac; |
| r1711 | r1712 | |
|---|---|---|
| 16 | 16 | |
| 17 | 17 | enum |
| 18 | 18 | { |
| 19 | DEVINFO_INT_CASSETTE_DEFAULT_STATE = DEVINFO_INT_DEV_SPECIFIC, | |
| 19 | MESS_DEVINFO_INT_CASSETTE_DEFAULT_STATE = MESS_DEVINFO_INT_DEV_SPECIFIC, | |
| 20 | 20 | |
| 21 | DEVINFO_PTR_CASSETTE_FORMATS = DEVINFO_PTR_DEV_SPECIFIC, | |
| 22 | DEVINFO_PTR_CASSETTE_OPTIONS | |
| 21 | MESS_DEVINFO_PTR_CASSETTE_FORMATS = MESS_DEVINFO_PTR_DEV_SPECIFIC, | |
| 22 | MESS_DEVINFO_PTR_CASSETTE_OPTIONS | |
| 23 | 23 | }; |
| 24 | 24 | |
| 25 | 25 | typedef enum |
| r1711 | r1712 | |
|---|---|---|
| 15 | 15 | |
| 16 | 16 | enum |
| 17 | 17 | { |
| 18 | DEVINFO_INT_SONYDRIV_ALLOWABLE_SIZES = DEVINFO_INT_DEV_SPECIFIC | |
| 18 | MESS_DEVINFO_INT_SONYDRIV_ALLOWABLE_SIZES = MESS_DEVINFO_INT_DEV_SPECIFIC | |
| 19 | 19 | }; |
| 20 | 20 | |
| 21 | 21 | /* defines for the allowablesizes param below */ |
| r1711 | r1712 | |
|---|---|---|
| 24 | 24 | device_class parent_devclass; |
| 25 | 25 | |
| 26 | 26 | *which_bus = image_index_in_device(image); |
| 27 | *which_address = (int) device_get_info_int(devclass, DEVINFO_INT_IDEDRIVE_ADDRESS); | |
| 28 | *intf = (struct ide_interface *) device_get_info_ptr(devclass, DEVINFO_PTR_IDEDRIVE_INTERFACE); | |
| 27 | *which_address = (int) mess_device_get_info_int(devclass, DEVINFO_INT_IDEDRIVE_ADDRESS); | |
| 28 | *intf = (struct ide_interface *) mess_device_get_info_ptr(devclass, DEVINFO_PTR_IDEDRIVE_INTERFACE); | |
| 29 | 29 | |
| 30 | 30 | parent_devclass = *devclass; |
| 31 | 31 | parent_devclass.get_info = harddisk_device_getinfo; |
| 32 | 32 | |
| 33 | 33 | if (parent_init) |
| 34 | *parent_init = (device_init_handler) device_get_info_fct(&parent_devclass, DEVINFO_PTR_INIT); | |
| 34 | *parent_init = (device_init_handler) mess_device_get_info_fct(&parent_devclass, MESS_DEVINFO_PTR_INIT); | |
| 35 | 35 | if (parent_load) |
| 36 | *parent_load = (device_load_handler) device_get_info_fct(&parent_devclass, DEVINFO_PTR_LOAD); | |
| 36 | *parent_load = (device_load_handler) mess_device_get_info_fct(&parent_devclass, MESS_DEVINFO_PTR_LOAD); | |
| 37 | 37 | if (parent_unload) |
| 38 | *parent_unload = (device_unload_handler) device_get_info_fct(&parent_devclass, DEVINFO_PTR_UNLOAD); | |
| 38 | *parent_unload = (device_unload_handler) mess_device_get_info_fct(&parent_devclass, MESS_DEVINFO_PTR_UNLOAD); | |
| 39 | 39 | |
| 40 | 40 | assert(*which_address == 0); |
| 41 | 41 | assert(*intf); |
| r1711 | r1712 | |
| 128 | 128 | INT64 count; |
| 129 | 129 | struct ide_interface *intf; |
| 130 | 130 | |
| 131 | which_address = (int) device_get_info_int(devclass, DEVINFO_INT_IDEDRIVE_ADDRESS); | |
| 132 | intf = (struct ide_interface *) device_get_info_ptr(devclass, DEVINFO_PTR_IDEDRIVE_INTERFACE); | |
| 133 | count = device_get_info_int(devclass, DEVINFO_INT_COUNT); | |
| 131 | which_address = (int) mess_device_get_info_int(devclass, DEVINFO_INT_IDEDRIVE_ADDRESS); | |
| 132 | intf = (struct ide_interface *) mess_device_get_info_ptr(devclass, DEVINFO_PTR_IDEDRIVE_INTERFACE); | |
| 133 | count = mess_device_get_info_int(devclass, MESS_DEVINFO_INT_COUNT); | |
| 134 | 134 | |
| 135 | 135 | if (which_address != 0) |
| 136 | 136 | { |
| r1711 | r1712 | |
| 164 | 164 | switch(state) |
| 165 | 165 | { |
| 166 | 166 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 167 | case DEVINFO_PTR_INIT: info->init = ide_hd_init; break; | |
| 168 | case DEVINFO_PTR_LOAD: info->load = ide_hd_load; break; | |
| 169 | case DEVINFO_PTR_UNLOAD: info->unload = ide_hd_unload; break; | |
| 170 | case DEVINFO_PTR_VALIDITY_CHECK: info->validity_check = ide_hd_validity_check; break; | |
| 167 | case MESS_DEVINFO_PTR_INIT: info->init = ide_hd_init; break; | |
| 168 | case MESS_DEVINFO_PTR_LOAD: info->load = ide_hd_load; break; | |
| 169 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = ide_hd_unload; break; | |
| 170 | case MESS_DEVINFO_PTR_VALIDITY_CHECK: info->validity_check = ide_hd_validity_check; break; | |
| 171 | 171 | |
| 172 | 172 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 173 | case DEVINFO_STR_NAME: strcpy(info->s = device_temp_str(), "ideharddrive"); break; | |
| 174 | case DEVINFO_STR_SHORT_NAME: strcpy(info->s = device_temp_str(), "idehd"); break; | |
| 175 | case DEVINFO_STR_DESCRIPTION: strcpy(info->s = device_temp_str(), "IDE Hard Disk"); break; | |
| 173 | case MESS_DEVINFO_STR_NAME: strcpy(info->s = device_temp_str(), "ideharddrive"); break; | |
| 174 | case MESS_DEVINFO_STR_SHORT_NAME: strcpy(info->s = device_temp_str(), "idehd"); break; | |
| 175 | case MESS_DEVINFO_STR_DESCRIPTION: strcpy(info->s = device_temp_str(), "IDE Hard Disk"); break; | |
| 176 | 176 | |
| 177 | 177 | default: harddisk_device_getinfo(devclass, state, info); break; |
| 178 | 178 | } |
| r1711 | r1712 | |
|---|---|---|
| 76 | 76 | /* if the region is inverted, do that now */ |
| 77 | 77 | if (type >= REGION_CPU1 && type < REGION_CPU1 + MAX_CPU) |
| 78 | 78 | { |
| 79 | int cputype = Machine-> | |
| 79 | int cputype = Machine->config->cpu[type - REGION_CPU1].type; | |
| 80 | 80 | if (cputype != 0) |
| 81 | 81 | { |
| 82 | 82 | datawidth = cputype_databus_width(cputype, ADDRESS_SPACE_PROGRAM) / 8; |
| r1711 | r1712 | |
| 197 | 197 | switch(state) |
| 198 | 198 | { |
| 199 | 199 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 200 | case DEVINFO_INT_COUNT: info->i = count; break; | |
| 201 | case DEVINFO_INT_TYPE: info->i = IO_CARTSLOT; break; | |
| 202 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 203 | case DEVINFO_INT_WRITEABLE: info->i = 0; break; | |
| 204 | case DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 205 | case DEVINFO_INT_RESET_ON_LOAD: info->i = 1; break; | |
| 206 | case DEVINFO_INT_LOAD_AT_INIT: info->i = 1; break; | |
| 207 | case DEVINFO_INT_MUST_BE_LOADED: info->i = must_be_loaded; break; | |
| 200 | case MESS_DEVINFO_INT_COUNT: info->i = count; break; | |
| 201 | case MESS_DEVINFO_INT_TYPE: info->i = IO_CARTSLOT; break; | |
| 202 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 203 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 0; break; | |
| 204 | case MESS_DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 205 | case MESS_DEVINFO_INT_RESET_ON_LOAD: info->i = 1; break; | |
| 206 | case MESS_DEVINFO_INT_LOAD_AT_INIT: info->i = 1; break; | |
| 207 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = must_be_loaded; break; | |
| 208 | 208 | |
| 209 | 209 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 210 | case DEVINFO_PTR_INIT: info->init = (count > 0) ? device_init_cartslot_specified : NULL; break; | |
| 211 | case DEVINFO_PTR_LOAD: info->load = (count > 0) ? device_load_cartslot_specified : NULL; break; | |
| 212 | case DEVINFO_PTR_UNLOAD: info->unload = (count > 0) ? device_unload_cartslot_specified : NULL; break; | |
| 210 | case MESS_DEVINFO_PTR_INIT: info->init = (count > 0) ? device_init_cartslot_specified : NULL; break; | |
| 211 | case MESS_DEVINFO_PTR_LOAD: info->load = (count > 0) ? device_load_cartslot_specified : NULL; break; | |
| 212 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = (count > 0) ? device_unload_cartslot_specified : NULL; break; | |
| 213 | 213 | |
| 214 | 214 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 215 | case DEVINFO_STR_DEV_FILE: strcpy(info->s = device_temp_str(), __FILE__); break; | |
| 216 | case DEVINFO_STR_FILE_EXTENSIONS: | |
| 215 | case MESS_DEVINFO_STR_DEV_FILE: strcpy(info->s = device_temp_str(), __FILE__); break; | |
| 216 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: | |
| 217 | 217 | info->s = device_temp_str(); |
| 218 | 218 | strcpy(info->s, file_extensions); |
| 219 | 219 | break; |
| r1711 | r1712 | |
|---|---|---|
| 15 | 15 | |
| 16 | 16 | enum |
| 17 | 17 | { |
| 18 | DEVINFO_INT_IDEDRIVE_ADDRESS = DEVINFO_INT_DEV_SPECIFIC, | |
| 18 | DEVINFO_INT_IDEDRIVE_ADDRESS = MESS_DEVINFO_INT_DEV_SPECIFIC, | |
| 19 | 19 | |
| 20 | DEVINFO_PTR_IDEDRIVE_INTERFACE = DEVINFO_PTR_DEV_SPECIFIC | |
| 20 | DEVINFO_PTR_IDEDRIVE_INTERFACE = MESS_DEVINFO_PTR_DEV_SPECIFIC | |
| 21 | 21 | }; |
| 22 | 22 | |
| 23 | 23 | void ide_harddisk_device_getinfo(const device_class *devclass, UINT32 state, union devinfo *info); |
| r1711 | r1712 | |
|---|---|---|
| 216 | 216 | switch(state) |
| 217 | 217 | { |
| 218 | 218 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 219 | case DEVINFO_INT_TYPE: info->i = IO_CDROM; break; | |
| 220 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 221 | case DEVINFO_INT_WRITEABLE: info->i = 0; break; | |
| 222 | case DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 223 | case DEVINFO_INT_CREATE_OPTCOUNT: info->i = 1; break; | |
| 219 | case MESS_DEVINFO_INT_TYPE: info->i = IO_CDROM; break; | |
| 220 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 221 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 0; break; | |
| 222 | case MESS_DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 223 | case MESS_DEVINFO_INT_CREATE_OPTCOUNT: info->i = 1; break; | |
| 224 | 224 | |
| 225 | 225 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 226 | case DEVINFO_PTR_INIT: info->init = device_init_mess_cd; break; | |
| 227 | case DEVINFO_PTR_LOAD: info->load = device_load_mess_cd; break; | |
| 228 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_mess_cd; break; | |
| 229 | case DEVINFO_PTR_CREATE_OPTGUIDE: info->p = (void *) mess_cd_option_guide; break; | |
| 230 | case DEVINFO_PTR_CREATE_OPTSPEC+0: info->p = (void *) mess_cd_option_spec; | |
| 226 | case MESS_DEVINFO_PTR_INIT: info->init = device_init_mess_cd; break; | |
| 227 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_mess_cd; break; | |
| 228 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_mess_cd; break; | |
| 229 | case MESS_DEVINFO_PTR_CREATE_OPTGUIDE: info->p = (void *) mess_cd_option_guide; break; | |
| 230 | case MESS_DEVINFO_PTR_CREATE_OPTSPEC+0: info->p = (void *) mess_cd_option_spec; | |
| 231 | 231 | |
| 232 | 232 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 233 | case DEVINFO_STR_DEV_FILE: strcpy(info->s = device_temp_str(), __FILE__); break; | |
| 234 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "chd"); break; | |
| 235 | case DEVINFO_STR_CREATE_OPTNAME+0: strcpy(info->s = device_temp_str(), "chdcd"); break; | |
| 236 | case DEVINFO_STR_CREATE_OPTDESC+0: strcpy(info->s = device_temp_str(), "MAME/MESS CHD CD-ROM drive"); break; | |
| 237 | case DEVINFO_STR_CREATE_OPTEXTS+0: strcpy(info->s = device_temp_str(), "chd"); break; | |
| 233 | case MESS_DEVINFO_STR_DEV_FILE: strcpy(info->s = device_temp_str(), __FILE__); break; | |
| 234 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "chd"); break; | |
| 235 | case MESS_DEVINFO_STR_CREATE_OPTNAME+0: strcpy(info->s = device_temp_str(), "chdcd"); break; | |
| 236 | case MESS_DEVINFO_STR_CREATE_OPTDESC+0: strcpy(info->s = device_temp_str(), "MAME/MESS CHD CD-ROM drive"); break; | |
| 237 | case MESS_DEVINFO_STR_CREATE_OPTEXTS+0: strcpy(info->s = device_temp_str(), "chd"); break; | |
| 238 | 238 | } |
| 239 | 239 | } |
| 240 | 240 |
| r1711 | r1712 | |
|---|---|---|
| 281 | 281 | |
| 282 | 282 | /* figure out the floppy options */ |
| 283 | 283 | dev = image_device(image); |
| 284 | floppy_options = device_get_info_ptr(&dev->devclass, DEVINFO_PTR_FLOPPY_OPTIONS); | |
| 284 | floppy_options = mess_device_get_info_ptr(&dev->devclass, MESS_DEVINFO_PTR_FLOPPY_OPTIONS); | |
| 285 | 285 | |
| 286 | 286 | if (image_has_been_created(image)) |
| 287 | 287 | { |
| r1711 | r1712 | |
| 309 | 309 | apply double steps. Setting the track count of the drive to the |
| 310 | 310 | medium track count will then lead to unreachable tracks. |
| 311 | 311 | */ |
| 312 | keep_geometry = (int)device_get_info_int(&image_device(image)->devclass, DEVINFO_INT_KEEP_DRIVE_GEOMETRY); | |
| 312 | keep_geometry = (int)mess_device_get_info_int(&image_device(image)->devclass, MESS_DEVINFO_INT_KEEP_DRIVE_GEOMETRY); | |
| 313 | 313 | |
| 314 | 314 | if (!keep_geometry |
| 315 | 315 | && floppy_callbacks(flopimg->floppy)->get_heads_per_disk |
| r1711 | r1712 | |
| 398 | 398 | switch(state) |
| 399 | 399 | { |
| 400 | 400 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 401 | case DEVINFO_INT_TYPE: info->i = IO_FLOPPY; break; | |
| 402 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 403 | case DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 404 | case DEVINFO_INT_CREATABLE: | |
| 405 | floppy_options = device_get_info_ptr(devclass, DEVINFO_PTR_FLOPPY_OPTIONS); | |
| 401 | case MESS_DEVINFO_INT_TYPE: info->i = IO_FLOPPY; break; | |
| 402 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 403 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 404 | case MESS_DEVINFO_INT_CREATABLE: | |
| 405 | floppy_options = mess_device_get_info_ptr(devclass, MESS_DEVINFO_PTR_FLOPPY_OPTIONS); | |
| 406 | 406 | info->i = floppy_options->param_guidelines ? 1 : 0; |
| 407 | 407 | break; |
| 408 | 408 | |
| 409 | case DEVINFO_INT_CREATE_OPTCOUNT: | |
| 409 | case MESS_DEVINFO_INT_CREATE_OPTCOUNT: | |
| 410 | 410 | /* count total floppy options */ |
| 411 | floppy_options = device_get_info_ptr(devclass, DEVINFO_PTR_FLOPPY_OPTIONS); | |
| 411 | floppy_options = mess_device_get_info_ptr(devclass, MESS_DEVINFO_PTR_FLOPPY_OPTIONS); | |
| 412 | 412 | for (count = 0; floppy_options[count].construct; count++) |
| 413 | 413 | ; |
| 414 | 414 | info->i = count; |
| 415 | 415 | break; |
| 416 | 416 | |
| 417 | case DEVINFO_INT_KEEP_DRIVE_GEOMETRY: | |
| 417 | case MESS_DEVINFO_INT_KEEP_DRIVE_GEOMETRY: | |
| 418 | 418 | info->i = 0; |
| 419 | 419 | break; |
| 420 | 420 | |
| 421 | 421 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 422 | case DEVINFO_STR_FILE_EXTENSIONS: | |
| 422 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: | |
| 423 | 423 | /* retrieve the floppy options */ |
| 424 | floppy_options = device_get_info_ptr(devclass, DEVINFO_PTR_FLOPPY_OPTIONS); | |
| 424 | floppy_options = mess_device_get_info_ptr(devclass, MESS_DEVINFO_PTR_FLOPPY_OPTIONS); | |
| 425 | 425 | |
| 426 | 426 | /* set up a temporary string */ |
| 427 | 427 | s = device_temp_str(); |
| r1711 | r1712 | |
| 434 | 434 | break; |
| 435 | 435 | |
| 436 | 436 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 437 | case DEVINFO_PTR_INIT: info->init = device_init_floppy; break; | |
| 438 | case DEVINFO_PTR_LOAD: info->load = device_load_floppy; break; | |
| 439 | case DEVINFO_PTR_CREATE: info->create = device_create_floppy; break; | |
| 440 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_floppy; break; | |
| 441 | case DEVINFO_PTR_CREATE_OPTGUIDE: info->p = (void *) floppy_option_guide; break; | |
| 437 | case MESS_DEVINFO_PTR_INIT: info->init = device_init_floppy; break; | |
| 438 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_floppy; break; | |
| 439 | case MESS_DEVINFO_PTR_CREATE: info->create = device_create_floppy; break; | |
| 440 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_floppy; break; | |
| 441 | case MESS_DEVINFO_PTR_CREATE_OPTGUIDE: info->p = (void *) floppy_option_guide; break; | |
| 442 | 442 | |
| 443 | 443 | default: |
| 444 | floppy_options = device_get_info_ptr(devclass, DEVINFO_PTR_FLOPPY_OPTIONS); | |
| 445 | if ((state >= DEVINFO_STR_CREATE_OPTNAME) && (state < DEVINFO_STR_CREATE_OPTNAME + DEVINFO_CREATE_OPTMAX)) | |
| 444 | floppy_options = mess_device_get_info_ptr(devclass, MESS_DEVINFO_PTR_FLOPPY_OPTIONS); | |
| 445 | if ((state >= MESS_DEVINFO_STR_CREATE_OPTNAME) && (state < MESS_DEVINFO_STR_CREATE_OPTNAME + MESS_DEVINFO_CREATE_OPTMAX)) | |
| 446 | 446 | { |
| 447 | info->s = (void *) floppy_options[state - DEVINFO_STR_CREATE_OPTNAME].name; | |
| 447 | info->s = (void *) floppy_options[state - MESS_DEVINFO_STR_CREATE_OPTNAME].name; | |
| 448 | 448 | } |
| 449 | else if ((state >= DEVINFO_STR_CREATE_OPTDESC) && (state < DEVINFO_STR_CREATE_OPTDESC + DEVINFO_CREATE_OPTMAX)) | |
| 449 | else if ((state >= MESS_DEVINFO_STR_CREATE_OPTDESC) && (state < MESS_DEVINFO_STR_CREATE_OPTDESC + MESS_DEVINFO_CREATE_OPTMAX)) | |
| 450 | 450 | { |
| 451 | info->s = (void *) floppy_options[state - DEVINFO_STR_CREATE_OPTDESC].description; | |
| 451 | info->s = (void *) floppy_options[state - MESS_DEVINFO_STR_CREATE_OPTDESC].description; | |
| 452 | 452 | } |
| 453 | else if ((state >= DEVINFO_STR_CREATE_OPTEXTS) && (state < DEVINFO_STR_CREATE_OPTEXTS + DEVINFO_CREATE_OPTMAX)) | |
| 453 | else if ((state >= MESS_DEVINFO_STR_CREATE_OPTEXTS) && (state < MESS_DEVINFO_STR_CREATE_OPTEXTS + MESS_DEVINFO_CREATE_OPTMAX)) | |
| 454 | 454 | { |
| 455 | info->s = (void *) floppy_options[state - DEVINFO_STR_CREATE_OPTEXTS].extensions; | |
| 455 | info->s = (void *) floppy_options[state - MESS_DEVINFO_STR_CREATE_OPTEXTS].extensions; | |
| 456 | 456 | } |
| 457 | else if ((state >= DEVINFO_PTR_CREATE_OPTSPEC) && (state < DEVINFO_PTR_CREATE_OPTSPEC + DEVINFO_CREATE_OPTMAX)) | |
| 457 | else if ((state >= MESS_DEVINFO_PTR_CREATE_OPTSPEC) && (state < MESS_DEVINFO_PTR_CREATE_OPTSPEC + MESS_DEVINFO_CREATE_OPTMAX)) | |
| 458 | 458 | { |
| 459 | info->p = (void *) floppy_options[state - DEVINFO_PTR_CREATE_OPTSPEC].param_guidelines; | |
| 459 | info->p = (void *) floppy_options[state - MESS_DEVINFO_PTR_CREATE_OPTSPEC].param_guidelines; | |
| 460 | 460 | } |
| 461 | 461 | break; |
| 462 | 462 | } |
| r1711 | r1712 | |
|---|---|---|
| 17 | 17 | |
| 18 | 18 | enum |
| 19 | 19 | { |
| 20 | DEVINFO_PTR_FLOPPY_OPTIONS = DEVINFO_PTR_DEV_SPECIFIC, | |
| 21 | DEVINFO_INT_KEEP_DRIVE_GEOMETRY = DEVINFO_INT_DEV_SPECIFIC | |
| 20 | MESS_DEVINFO_PTR_FLOPPY_OPTIONS = MESS_DEVINFO_PTR_DEV_SPECIFIC, | |
| 21 | MESS_DEVINFO_INT_KEEP_DRIVE_GEOMETRY = MESS_DEVINFO_INT_DEV_SPECIFIC | |
| 22 | 22 | }; |
| 23 | 23 | |
| 24 | 24 | floppy_image *flopimg_get_image(mess_image *image); |
| r1711 | r1712 | |
|---|---|---|
| 538 | 538 | switch(state) |
| 539 | 539 | { |
| 540 | 540 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 541 | case DEVINFO_INT_TYPE: info->i = IO_FLOPPY; break; | |
| 542 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 543 | case DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 544 | case DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 541 | case MESS_DEVINFO_INT_TYPE: info->i = IO_FLOPPY; break; | |
| 542 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 543 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 544 | case MESS_DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 545 | 545 | |
| 546 | 546 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 547 | case DEVINFO_PTR_INIT: info->init = device_init_dsk_floppy; break; | |
| 548 | case DEVINFO_PTR_LOAD: info->load = device_load_dsk_floppy; break; | |
| 549 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_dsk_floppy; break; | |
| 550 | case DEVINFO_PTR_STATUS: /* info->status = floppy_status; */ break; | |
| 547 | case MESS_DEVINFO_PTR_INIT: info->init = device_init_dsk_floppy; break; | |
| 548 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_dsk_floppy; break; | |
| 549 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_dsk_floppy; break; | |
| 550 | case MESS_DEVINFO_PTR_STATUS: /* info->status = floppy_status; */ break; | |
| 551 | 551 | |
| 552 | 552 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 553 | case DEVINFO_STR_DEV_FILE: strcpy(info->s = device_temp_str(), __FILE__); break; | |
| 554 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "dsk"); break; | |
| 553 | case MESS_DEVINFO_STR_DEV_FILE: strcpy(info->s = device_temp_str(), __FILE__); break; | |
| 554 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "dsk"); break; | |
| 555 | 555 | } |
| 556 | 556 | } |
| 557 | 557 |
| r1711 | r1712 | |
|---|---|---|
| 176 | 176 | |
| 177 | 177 | disk = (struct apple525_disk *) image_lookuptag(img, APPLE525TAG); |
| 178 | 178 | dev = image_device(img); |
| 179 | spinfract_dividend = (int) device_get_info_int(&dev->devclass, DEVINFO_INT_APPLE525_SPINFRACT_DIVIDEND); | |
| 180 | spinfract_divisor = (int) device_get_info_int(&dev->devclass, DEVINFO_INT_APPLE525_SPINFRACT_DIVISOR); | |
| 179 | spinfract_dividend = (int) mess_device_get_info_int(&dev->devclass, MESS_DEVINFO_INT_APPLE525_SPINFRACT_DIVIDEND); | |
| 180 | spinfract_divisor = (int) mess_device_get_info_int(&dev->devclass, MESS_DEVINFO_INT_APPLE525_SPINFRACT_DIVISOR); | |
| 181 | 181 | |
| 182 | 182 | /* no image initialized for that drive ? */ |
| 183 | 183 | if (!image_exists(img)) |
| r1711 | r1712 | |
| 283 | 283 | if (!image_alloctag(image, APPLE525TAG, sizeof(struct apple525_disk))) |
| 284 | 284 | return INIT_FAIL; |
| 285 | 285 | |
| 286 | parent_init = (device_init_handler) device_get_info_fct(&parent_devclass, DEVINFO_PTR_INIT); | |
| 286 | parent_init = (device_init_handler) mess_device_get_info_fct(&parent_devclass, MESS_DEVINFO_PTR_INIT); | |
| 287 | 287 | return parent_init(image); |
| 288 | 288 | } |
| 289 | 289 | |
| r1711 | r1712 | |
| 294 | 294 | int result; |
| 295 | 295 | device_load_handler parent_load; |
| 296 | 296 | |
| 297 | parent_load = (device_load_handler) device_get_info_fct(&parent_devclass, DEVINFO_PTR_LOAD); | |
| 297 | parent_load = (device_load_handler) mess_device_get_info_fct(&parent_devclass, MESS_DEVINFO_PTR_LOAD); | |
| 298 | 298 | result = parent_load(image); |
| 299 | 299 | |
| 300 | 300 | floppy_drive_seek(image, -999); |
| r1711 | r1712 | |
| 310 | 310 | |
| 311 | 311 | apple525_save_current_track(image, TRUE); |
| 312 | 312 | |
| 313 | parent_unload = (device_unload_handler) device_get_info_fct(&parent_devclass, DEVINFO_PTR_UNLOAD); | |
| 313 | parent_unload = (device_unload_handler) mess_device_get_info_fct(&parent_devclass, MESS_DEVINFO_PTR_UNLOAD); | |
| 314 | 314 | parent_unload(image); |
| 315 | 315 | } |
| 316 | 316 | |
| r1711 | r1712 | |
| 321 | 321 | switch(state) |
| 322 | 322 | { |
| 323 | 323 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 324 | case DEVINFO_INT_COUNT: info->i = 2; break; | |
| 324 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 325 | 325 | |
| 326 | 326 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 327 | case DEVINFO_STR_DEV_TAG: strcpy(info->s = device_temp_str(), APPLE525TAG); break; | |
| 327 | case MESS_DEVINFO_STR_DEV_TAG: strcpy(info->s = device_temp_str(), APPLE525TAG); break; | |
| 328 | 328 | |
| 329 | 329 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 330 | case DEVINFO_PTR_INIT: info->init = device_init_apple525_floppy; break; | |
| 331 | case DEVINFO_PTR_LOAD: info->load = device_load_apple525_floppy; break; | |
| 332 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_apple525_floppy; break; | |
| 333 | case DEVINFO_PTR_FLOPPY_OPTIONS: info->p = (void *) floppyoptions_apple2; break; | |
| 330 | case MESS_DEVINFO_PTR_INIT: info->init = device_init_apple525_floppy; break; | |
| 331 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_apple525_floppy; break; | |
| 332 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_apple525_floppy; break; | |
| 333 | case MESS_DEVINFO_PTR_FLOPPY_OPTIONS: info->p = (void *) floppyoptions_apple2; break; | |
| 334 | 334 | |
| 335 | 335 | default: floppy_device_getinfo(devclass, state, info); break; |
| 336 | 336 | } |
| r1711 | r1712 | |
|---|---|---|
| 31 | 31 | switch(state) |
| 32 | 32 | { |
| 33 | 33 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 34 | case DEVINFO_INT_TYPE: info->i = IO_PRINTER; break; | |
| 35 | case DEVINFO_INT_READABLE: info->i = 0; break; | |
| 36 | case DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 37 | case DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 34 | case MESS_DEVINFO_INT_TYPE: info->i = IO_PRINTER; break; | |
| 35 | case MESS_DEVINFO_INT_READABLE: info->i = 0; break; | |
| 36 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 37 | case MESS_DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 38 | 38 | |
| 39 | 39 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 40 | case DEVINFO_STR_DEV_FILE: strcpy(info->s = device_temp_str(), __FILE__); break; | |
| 41 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "prn"); break; | |
| 40 | case MESS_DEVINFO_STR_DEV_FILE: strcpy(info->s = device_temp_str(), __FILE__); break; | |
| 41 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "prn"); break; | |
| 42 | 42 | } |
| 43 | 43 | } |
| r1711 | r1712 | |
|---|---|---|
| 580 | 580 | switch(state) |
| 581 | 581 | { |
| 582 | 582 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 583 | case DEVINFO_INT_TYPE: info->i = IO_FLOPPY; break; | |
| 584 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 585 | case DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 586 | case DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 583 | case MESS_DEVINFO_INT_TYPE: info->i = IO_FLOPPY; break; | |
| 584 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 585 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 586 | case MESS_DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 587 | 587 | |
| 588 | 588 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 589 | case DEVINFO_PTR_INIT: info->init = device_init_basicdsk_floppy; break; | |
| 590 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_basicdsk_floppy; break; | |
| 591 | case DEVINFO_PTR_STATUS: /* info->status = floppy_status; */ break; | |
| 589 | case MESS_DEVINFO_PTR_INIT: info->init = device_init_basicdsk_floppy; break; | |
| 590 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_basicdsk_floppy; break; | |
| 591 | case MESS_DEVINFO_PTR_STATUS: /* info->status = floppy_status; */ break; | |
| 592 | 592 | |
| 593 | 593 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 594 | case DEVINFO_STR_DEV_FILE: strcpy(info->s = device_temp_str(), __FILE__); break; | |
| 594 | case MESS_DEVINFO_STR_DEV_FILE: strcpy(info->s = device_temp_str(), __FILE__); break; | |
| 595 | 595 | } |
| 596 | 596 | } |
| 597 | 597 |
| r1711 | r1712 | |
|---|---|---|
| 240 | 240 | switch(state) |
| 241 | 241 | { |
| 242 | 242 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 243 | case DEVINFO_INT_TYPE: info->i = IO_VHD; break; | |
| 244 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 245 | case DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 246 | case DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 247 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 243 | case MESS_DEVINFO_INT_TYPE: info->i = IO_VHD; break; | |
| 244 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 245 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 246 | case MESS_DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 247 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 248 | 248 | |
| 249 | 249 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 250 | case DEVINFO_PTR_INIT: info->init = device_init_coco_vhd; break; | |
| 251 | case DEVINFO_PTR_LOAD: info->load = device_load_coco_vhd; break; | |
| 250 | case MESS_DEVINFO_PTR_INIT: info->init = device_init_coco_vhd; break; | |
| 251 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_coco_vhd; break; | |
| 252 | 252 | |
| 253 | 253 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 254 | case DEVINFO_STR_DEV_FILE: strcpy(info->s = device_temp_str(), __FILE__); break; | |
| 255 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "vhd"); break; | |
| 256 | case DEVINFO_STR_DESCRIPTION+0: strcpy(info->s = device_temp_str(), "Virtual Hard Disk"); break; | |
| 254 | case MESS_DEVINFO_STR_DEV_FILE: strcpy(info->s = device_temp_str(), __FILE__); break; | |
| 255 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "vhd"); break; | |
| 256 | case MESS_DEVINFO_STR_DESCRIPTION+0: strcpy(info->s = device_temp_str(), "Virtual Hard Disk"); break; | |
| 257 | 257 | } |
| 258 | 258 | } |
| 259 | 259 |
| r1711 | r1712 | |
|---|---|---|
| 15 | 15 | |
| 16 | 16 | enum |
| 17 | 17 | { |
| 18 | DEVINFO_INT_APPLE525_SPINFRACT_DIVIDEND = DEVINFO_INT_DEV_SPECIFIC, | |
| 19 | DEVINFO_INT_APPLE525_SPINFRACT_DIVISOR | |
| 18 | MESS_DEVINFO_INT_APPLE525_SPINFRACT_DIVIDEND = MESS_DEVINFO_INT_DEV_SPECIFIC, | |
| 19 | MESS_DEVINFO_INT_APPLE525_SPINFRACT_DIVISOR | |
| 20 | 20 | }; |
| 21 | 21 | |
| 22 | 22 | void apple525_device_getinfo(const device_class *devclass, UINT32 state, union devinfo *info); |
| r1711 | r1712 | |
|---|---|---|
| 37 | 37 | const struct IODevice *dev; |
| 38 | 38 | |
| 39 | 39 | dev = image_device(img); |
| 40 | config = (const struct bitbanger_config *) device_get_info_ptr(&dev->devclass, DEVINFO_PTR_BITBANGER_CONFIG); | |
| 40 | config = (const struct bitbanger_config *) mess_device_get_info_ptr(&dev->devclass, MESS_DEVINFO_PTR_BITBANGER_CONFIG); | |
| 41 | 41 | |
| 42 | 42 | bi = (struct bitbanger_info *) auto_malloc(sizeof(struct bitbanger_info)); |
| 43 | 43 | bi->pulses = (double *) auto_malloc(config->maximum_pulses * sizeof(double)); |
| r1711 | r1712 | |
| 162 | 162 | switch(state) |
| 163 | 163 | { |
| 164 | 164 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 165 | case DEVINFO_INT_TYPE: info->i = IO_BITBANGER; break; | |
| 166 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 167 | case DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 168 | case DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 165 | case MESS_DEVINFO_INT_TYPE: info->i = IO_BITBANGER; break; | |
| 166 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 167 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 168 | case MESS_DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 169 | 169 | |
| 170 | 170 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 171 | case DEVINFO_PTR_INIT: info->init = bitbanger_init; break; | |
| 171 | case MESS_DEVINFO_PTR_INIT: info->init = bitbanger_init; break; | |
| 172 | 172 | |
| 173 | 173 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 174 | case DEVINFO_STR_DEV_FILE: strcpy(info->s = device_temp_str(), __FILE__); break; | |
| 175 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "prn"); break; | |
| 174 | case MESS_DEVINFO_STR_DEV_FILE: strcpy(info->s = device_temp_str(), __FILE__); break; | |
| 175 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "prn"); break; | |
| 176 | 176 | } |
| 177 | 177 | } |
| r1711 | r1712 | |
|---|---|---|
| 30 | 30 | snapquick_loadproc loadproc; |
| 31 | 31 | const char *file_type; |
| 32 | 32 | |
| 33 | loadproc = (snapquick_loadproc) device_get_info_fct(&si->dev->devclass, DEVINFO_PTR_SNAPSHOT_LOAD); | |
| 33 | loadproc = (snapquick_loadproc) mess_device_get_info_fct(&si->dev->devclass, MESS_DEVINFO_PTR_SNAPSHOT_LOAD); | |
| 34 | 34 | file_type = image_filetype(si->img); |
| 35 | 35 | loadproc(si->img, file_type, si->file_size); |
| 36 | 36 | image_unload(si->img); |
| r1711 | r1712 | |
| 62 | 62 | si->next = snapquick_infolist; |
| 63 | 63 | snapquick_infolist = si; |
| 64 | 64 | |
| 65 | delay = device_get_info_double(&si->dev->devclass, DEVINFO_FLOAT_SNAPSHOT_DELAY); | |
| 65 | delay = mess_device_get_info_double(&si->dev->devclass, MESS_DEVINFO_FLOAT_SNAPSHOT_DELAY); | |
| 66 | 66 | |
| 67 | 67 | timer_set(double_to_attotime(delay), si, 0, snapquick_processsnapshot); |
| 68 | 68 | return INIT_PASS; |
| r1711 | r1712 | |
| 89 | 89 | switch(state) |
| 90 | 90 | { |
| 91 | 91 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 92 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 93 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 94 | case DEVINFO_INT_WRITEABLE: info->i = 0; break; | |
| 95 | case DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 92 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 93 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 94 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 0; break; | |
| 95 | case MESS_DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 96 | 96 | |
| 97 | 97 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 98 | case DEVINFO_PTR_LOAD: info->load = device_load_snapquick; break; | |
| 99 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_snapquick; break; | |
| 98 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_snapquick; break; | |
| 99 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_snapquick; break; | |
| 100 | 100 | |
| 101 | 101 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 102 | case DEVINFO_STR_DEV_FILE: strcpy(info->s = device_temp_str(), __FILE__); break; | |
| 102 | case MESS_DEVINFO_STR_DEV_FILE: strcpy(info->s = device_temp_str(), __FILE__); break; | |
| 103 | 103 | } |
| 104 | 104 | } |
| 105 | 105 | |
| r1711 | r1712 | |
| 110 | 110 | switch(state) |
| 111 | 111 | { |
| 112 | 112 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 113 | case DEVINFO_INT_TYPE: info->i = IO_SNAPSHOT; break; | |
| 113 | case MESS_DEVINFO_INT_TYPE: info->i = IO_SNAPSHOT; break; | |
| 114 | 114 | |
| 115 | 115 | /* --- the following bits of info are returned as doubles --- */ |
| 116 | case DEVINFO_FLOAT_SNAPSHOT_DELAY: info->d = 0.0; break; | |
| 116 | case MESS_DEVINFO_FLOAT_SNAPSHOT_DELAY: info->d = 0.0; break; | |
| 117 | 117 | |
| 118 | 118 | default: snapquick_device_getinfo(devclass, state, info); |
| 119 | 119 | } |
| r1711 | r1712 | |
| 126 | 126 | switch(state) |
| 127 | 127 | { |
| 128 | 128 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 129 | case DEVINFO_INT_TYPE: info->i = IO_QUICKLOAD; break; | |
| 129 | case MESS_DEVINFO_INT_TYPE: info->i = IO_QUICKLOAD; break; | |
| 130 | 130 | |
| 131 | 131 | /* --- the following bits of info are returned as doubles --- */ |
| 132 | case DEVINFO_FLOAT_QUICKLOAD_DELAY: info->d = 0.0; break; | |
| 132 | case MESS_DEVINFO_FLOAT_QUICKLOAD_DELAY: info->d = 0.0; break; | |
| 133 | 133 | |
| 134 | 134 | default: snapquick_device_getinfo(devclass, state, info); |
| 135 | 135 | } |
| r1711 | r1712 | |
|---|---|---|
| 29 | 29 | |
| 30 | 30 | enum |
| 31 | 31 | { |
| 32 | DEVINFO_PTR_BITBANGER_CONFIG = DEVINFO_PTR_DEV_SPECIFIC | |
| 32 | MESS_DEVINFO_PTR_BITBANGER_CONFIG = MESS_DEVINFO_PTR_DEV_SPECIFIC | |
| 33 | 33 | }; |
| 34 | 34 | |
| 35 | 35 | void bitbanger_device_getinfo(const device_class *devclass, UINT32 state, union devinfo *info); |
| r1711 | r1712 | |
|---|---|---|
| 8 | 8 | *********************************************************************/ |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "deprecat.h" | |
| 11 | 12 | #include "mslegacy.h" |
| 12 | 13 | #include "video/mc6845.h" |
| 13 | 14 | |
| r1711 | r1712 | |
| 112 | 113 | |
| 113 | 114 | void crtc6845_config(int index, const mc6845_interface *intf) |
| 114 | 115 | { |
| 116 | /* NPW 23-Feb-2008 - All usage of 6845 devices has probably been broken here */ | |
| 115 | 117 | assert(index == 0); |
| 116 | mslegacy_mc6845 = | |
| 118 | mslegacy_mc6845 = devtag_get_token | |
| 117 | 119 | } |
| 118 | 120 | |
| 119 | 121 |
| r1711 | r1712 | |
|---|---|---|
| 300 | 300 | seen_first_update = FALSE; |
| 301 | 301 | videoram = NULL; |
| 302 | 302 | videoram_size = 0; |
| 303 | dirtybuffer = NULL; | |
| 304 | 303 | |
| 305 | 304 | /* set up options */ |
| 306 | 305 | opts = mame_options_init(win_mess_opts); |
| r1711 | r1712 | |
|---|---|---|
| 11 | 11 | #ifndef CBMB_H_ |
| 12 | 12 | #define CBMB_H_ |
| 13 | 13 | |
| 14 | #include "video/mc6845.h" | |
| 14 | 15 | |
| 16 | ||
| 15 | 17 | #define C64_DIPS \ |
| 16 | 18 | PORT_START /* 13 */ \ |
| 17 | 19 | PORT_BIT( 0x800, IP_ACTIVE_HIGH, IPT_BUTTON1) \ |
| r1711 | r1712 | |
| 128 | 130 | |
| 129 | 131 | /*----------- defined in video/cbmb.c -----------*/ |
| 130 | 132 | |
| 131 | void cbm600_update_row(mame_bitmap *bitmap, const rectangle *cliprect, UINT16 ma, | |
| 133 | void cbm600_update_row(running_machine *machine, mc6845_t *mc6845, mame_bitmap *bitmap, const rectangle *cliprect, UINT16 ma, | |
| 132 | 134 | UINT8 ra, UINT16 y, UINT8 x_count, void *param); |
| 133 | void cbm700_update_row(mame_bitmap *bitmap, const rectangle *cliprect, UINT16 ma, | |
| 135 | void cbm700_update_row(running_machine *machine, mc6845_t *mc6845, mame_bitmap *bitmap, const rectangle *cliprect, UINT16 ma, | |
| 134 | 136 | UINT8 ra, UINT16 y, UINT8 x_count, void *param); |
| 135 | 137 | |
| 136 | 138 | void cbm600_vh_init(void); |
| r1711 | r1712 | |
|---|---|---|
| 41 | 41 | |
| 42 | 42 | enum |
| 43 | 43 | { |
| 44 | DEVINFO_PTR_VC1541_CONFIG = DEVINFO_PTR_DEV_SPECIFIC | |
| 44 | DEVINFO_PTR_VC1541_CONFIG = MESS_DEVINFO_PTR_DEV_SPECIFIC | |
| 45 | 45 | }; |
| 46 | 46 | |
| 47 | 47 | void vc1541_device_getinfo(const device_class *devclass, UINT32 state, union devinfo *info); |
| r1711 | r1712 | |
|---|---|---|
| 7 | 7 | #ifndef PET_H_ |
| 8 | 8 | #define PET_H_ |
| 9 | 9 | |
| 10 | #include "video/mc6845.h" | |
| 10 | 11 | |
| 12 | ||
| 11 | 13 | /*----------- defined in video/pet.c -----------*/ |
| 12 | 14 | |
| 13 | 15 | /* call to init videodriver */ |
| r1711 | r1712 | |
| 15 | 17 | extern void pet80_vh_init (void); |
| 16 | 18 | extern void superpet_vh_init (void); |
| 17 | 19 | extern VIDEO_UPDATE( pet ); |
| 18 | void pet40_update_row(mame_bitmap *bitmap, const rectangle *cliprect, UINT16 ma, | |
| 20 | void pet40_update_row(running_machine *machine, mc6845_t *mc6845, mame_bitmap *bitmap, const rectangle *cliprect, UINT16 ma, | |
| 19 | 21 | UINT8 ra, UINT16 y, UINT8 x_count, void *param); |
| 20 | void pet80_update_row(mame_bitmap *bitmap, const rectangle *cliprect, UINT16 ma, | |
| 22 | void pet80_update_row(running_machine *machine, mc6845_t *mc6845, mame_bitmap *bitmap, const rectangle *cliprect, UINT16 ma, | |
| 21 | 23 | UINT8 ra, UINT16 y, UINT8 x_count, void *param); |
| 22 | 24 | |
| 23 | 25 | extern int pet_font; |
| r1711 | r1712 | |
|---|---|---|
| 11 | 11 | 37,42,64 /* lcd dark */ |
| 12 | 12 | }; |
| 13 | 13 | |
| 14 | /* 32 contrast steps */ | |
| 15 | const UINT16 hp48_colortable[0x20][2] = { | |
| 16 | { 0, 2 }, | |
| 17 | { 0, 2 }, | |
| 18 | { 0, 2 }, | |
| 19 | { 0, 2 }, | |
| 20 | { 0, 2 }, | |
| 21 | { 0, 2 }, | |
| 22 | { 0, 2 }, | |
| 23 | { 0, 2 }, | |
| 24 | ||
| 25 | { 0, 2 }, | |
| 26 | { 0, 2 }, | |
| 27 | { 0, 2 }, | |
| 28 | { 0, 3 }, | |
| 29 | { 0, 3 }, | |
| 30 | { 0, 3 }, | |
| 31 | { 0, 3 }, | |
| 32 | { 0, 3 }, | |
| 33 | ||
| 34 | { 0, 3 }, | |
| 35 | { 0, 3 }, | |
| 36 | { 0, 3 }, | |
| 37 | { 0, 3 }, | |
| 38 | { 0, 3 }, | |
| 39 | { 0, 3 }, | |
| 40 | { 2, 3 }, | |
| 41 | { 2, 3 }, | |
| 42 | ||
| 43 | { 2, 3 }, | |
| 44 | { 2, 3 }, | |
| 45 | { 2, 3 }, | |
| 46 | { 2, 3 }, | |
| 47 | { 2, 3 }, | |
| 48 | { 2, 3 }, | |
| 49 | { 2, 3 }, | |
| 50 | { 2, 3 } | |
| 51 | }; | |
| 52 | ||
| 53 | 14 | PALETTE_INIT( hp48 ) |
| 54 | 15 | { |
| 55 | 16 | palette_set_colors_rgb(machine, 0, hp48_palette, sizeof(hp48_palette) / 3); |
| 56 | memcpy(colortable,hp48_colortable,sizeof(hp48_colortable)); | |
| 57 | 17 | } |
| 58 | 18 | |
| 59 | 19 | VIDEO_START( hp48 ) |
| r1711 | r1712 | |
|---|---|---|
| 134 | 134 | { |
| 135 | 135 | // memcpy(palette, & vdt911_palette, sizeof(vdt911_palette)); |
| 136 | 136 | palette_set_colors_rgb(machine, 0, vdt911_palette, vdt911_palette_size); |
| 137 | ||
| 138 | memcpy(colortable, &vdt911_colortable, sizeof(vdt911_colortable)); | |
| 139 | 137 | } |
| 140 | 138 | |
| 141 | 139 | /* |
| r1711 | r1712 | |
|---|---|---|
| 40 | 40 | 0xff, 0xff, 0xff, /* 15 White */ |
| 41 | 41 | }; |
| 42 | 42 | |
| 43 | const unsigned short dai_colortable[1][16] = | |
| 44 | { | |
| 45 | { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 } | |
| 46 | }; | |
| 47 | ||
| 48 | 43 | static unsigned short dai_4_colours_palette[4]; |
| 49 | 44 | |
| 50 | 45 | PALETTE_INIT( dai ) |
| 51 | 46 | { |
| 52 | 47 | palette_set_colors_rgb(machine, 0, dai_palette, sizeof(dai_palette) / 3); |
| 53 | memcpy(colortable, dai_colortable, sizeof (dai_colortable)); | |
| 54 | 48 | } |
| 55 | 49 | |
| 56 | 50 |
| r1711 | r1712 | |
|---|---|---|
| 37 | 37 | PALETTE_INIT( nc ) |
| 38 | 38 | { |
| 39 | 39 | palette_set_colors(machine, 0, nc_palette, ARRAY_LENGTH(nc_palette)); |
| 40 | memcpy(colortable, nc_colour_table, sizeof (nc_colour_table)); | |
| 41 | 40 | } |
| 42 | 41 | |
| 43 | 42 | extern int nc_display_memory_start; |
| r1711 | r1712 | |
|---|---|---|
| 61 | 61 | cbmb_font=font; |
| 62 | 62 | } |
| 63 | 63 | |
| 64 | void cbm600_update_row(mame_bitmap *bitmap, const rectangle *cliprect, UINT16 ma, | |
| 64 | void cbm600_update_row(running_machine *machine, mc6845_t *mc6845, mame_bitmap *bitmap, const rectangle *cliprect, UINT16 ma, | |
| 65 | 65 | UINT8 ra, UINT16 y, UINT8 x_count, void *param) { |
| 66 | 66 | int i; |
| 67 | 67 | |
| 68 | 68 | for( i = 0; i < x_count; i++ ) { |
| 69 | 69 | // if ( ma + i == cursor_ma ) { |
| 70 | // plot_box( bitmap, | |
| 70 | // plot_box( bitmap, machine->gfx[cbmb_font]->width * i, y, machine->gfx[cbmb_font]->width, 1, machine->pens[1] ); | |
| 71 | 71 | // } else { |
| 72 | drawgfx( bitmap, | |
| 72 | drawgfx( bitmap, machine->gfx[cbmb_font], videoram[(ma+i )& 0x7ff], 0, 0, 0, machine->gfx[cbmb_font]->width * i, y-ra, cliprect, TRANSPARENCY_NONE, 0 ); | |
| 73 | 73 | // } |
| 74 | 74 | } |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | void cbm700_update_row(mame_bitmap *bitmap, const rectangle *cliprect, UINT16 ma, | |
| 77 | void cbm700_update_row(running_machine *machine, mc6845_t *mc6845, mame_bitmap *bitmap, const rectangle *cliprect, UINT16 ma, | |
| 78 | 78 | UINT8 ra, UINT16 y, UINT8 x_count, void *param) { |
| 79 | 79 | int i; |
| 80 | 80 | |
| 81 | 81 | for( i = 0; i < x_count; i++ ) { |
| 82 | 82 | // if ( ma + i == cursor_ma ) { |
| 83 | // plot_box( bitmap, | |
| 83 | // plot_box( bitmap, machine->gfx[cbmb_font]->width * i, y, machine->gfx[cbmb_font]->width, 1, machine->pens[1] ); | |
| 84 | 84 | // } else { |
| 85 | drawgfx( bitmap, | |
| 85 | drawgfx( bitmap, machine->gfx[cbmb_font], videoram[(ma+i) & 0x7ff], 0, 0, 0, machine->gfx[cbmb_font]->width * i, y-ra, cliprect, TRANSPARENCY_NONE, 0 ); | |
| 86 | 86 | // } |
| 87 | 87 | } |
| 88 | 88 | } |
| r1711 | r1712 | |
|---|---|---|
| 34 | 34 | PALETTE_INIT( pocketc ) |
| 35 | 35 | { |
| 36 | 36 | palette_set_colors_rgb(machine, 0, pocketc_palette, sizeof(pocketc_palette) / 3); |
| 37 | memcpy(colortable,pocketc_colortable,sizeof(pocketc_colortable)); | |
| 38 | 37 | } |
| 39 | 38 | |
| 40 | 39 | VIDEO_START( pocketc ) |
| r1711 | r1712 | |
|---|---|---|
| 40 | 40 | PALETTE_INIT( z88 ) |
| 41 | 41 | { |
| 42 | 42 | palette_set_colors(machine, 0, z88_palette, ARRAY_LENGTH(z88_palette)); |
| 43 | memcpy(colortable, z88_colour_table, sizeof (z88_colour_table)); | |
| 44 | 43 | } |
| 45 | 44 | |
| 46 | 45 | extern struct blink_hw blink; |
| r1711 | r1712 | |
|---|---|---|
| 154 | 154 | }; |
| 155 | 155 | |
| 156 | 156 | MACHINE_DRIVER_START( pcvideo_vga ) |
| 157 | MDRV_ | |
| 157 | MDRV_SC | |
| 158 | 158 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 159 | 159 | MDRV_SCREEN_SIZE(720, 480) |
| 160 | 160 | MDRV_SCREEN_VISIBLE_AREA(0,720-1, 0,480-1) |
| 161 | 161 | MDRV_PALETTE_LENGTH(0x100) |
| 162 | MDRV_COLORTABLE_LENGTH(0x100*2 /*sizeof(vga_colortable) / sizeof(vga_colortable[0])*/) | |
| 163 | 162 | MDRV_PALETTE_INIT(vga) |
| 164 | 163 | |
| 165 | 164 | MDRV_VIDEO_START(vga) |
| r1711 | r1712 | |
| 168 | 167 | MACHINE_DRIVER_END |
| 169 | 168 | |
| 170 | 169 | MACHINE_DRIVER_START( pcvideo_pc1640 ) |
| 171 | MDRV_ | |
| 170 | MDRV_SC | |
| 172 | 171 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 173 | 172 | MDRV_SCREEN_SIZE(720, 350) |
| 174 | 173 | MDRV_SCREEN_VISIBLE_AREA(0,720-1, 0,350-1) |
| 175 | 174 | MDRV_PALETTE_LENGTH(sizeof(ega_palette) / 3) |
| 176 | MDRV_COLORTABLE_LENGTH(0x100*2 /*sizeof(vga_colortable) / sizeof(vga_colortable[0])*/) | |
| 177 | 175 | MDRV_PALETTE_INIT(ega) |
| 178 | 176 | |
| 179 | 177 | MDRV_VIDEO_START(ega) |
| r1711 | r1712 | |
| 186 | 184 | static PALETTE_INIT( ega ) |
| 187 | 185 | { |
| 188 | 186 | palette_set_colors_rgb(machine, 0, ega_palette, sizeof(ega_palette) / 3); |
| 189 | memcpy(colortable, vga_colortable,0x200); | |
| 190 | 187 | } |
| 191 | 188 | |
| 192 | 189 | static PALETTE_INIT( vga ) |
| r1711 | r1712 | |
| 194 | 191 | int i; |
| 195 | 192 | for (i = 0; i < 0x100; i++) |
| 196 | 193 | palette_set_color_rgb(machine, i, 0, 0, 0); |
| 197 | ||
| 198 | memcpy(colortable, vga_colortable,0x200); | |
| 199 | 194 | } |
| 200 | 195 | |
| 201 | 196 | static UINT8 color_bitplane_to_packed[4/*plane*/][8/*pixel*/][256]; |
| r1711 | r1712 | |
| 603 | 598 | } |
| 604 | 599 | } |
| 605 | 600 | |
| 606 | buswidth = cputype_databus_width(Machine-> | |
| 601 | buswidth = cputype_databus_width(Machine->config->cpu[0].type, ADDRESS_SPACE_PROGRAM); | |
| 607 | 602 | switch(buswidth) |
| 608 | 603 | { |
| 609 | 604 | case 8: |
| r1711 | r1712 | |
| 1138 | 1133 | memset(vga.crtc.data, '\0', vga.svga_intf.crtc_regcount); |
| 1139 | 1134 | memset(vga.gc.data, '\0', vga.svga_intf.gc_regcount); |
| 1140 | 1135 | |
| 1141 | buswidth = cputype_databus_width(Machine-> | |
| 1136 | buswidth = cputype_databus_width(Machine->config->cpu[0].type, ADDRESS_SPACE_PROGRAM); | |
| 1142 | 1137 | switch(buswidth) |
| 1143 | 1138 | { |
| 1144 | 1139 | case 8: |
| r1711 | r1712 | |
|---|---|---|
| 59 | 59 | PALETTE_INIT( pcw16 ) |
| 60 | 60 | { |
| 61 | 61 | palette_set_colors(machine, 0, pcw16_palette, ARRAY_LENGTH(pcw16_palette)); |
| 62 | memcpy(colortable, pcw16_colour_table, sizeof (pcw16_colour_table)); | |
| 63 | 62 | } |
| 64 | 63 | |
| 65 | 64 | VIDEO_START( pcw16 ) |
| r1711 | r1712 | |
|---|---|---|
| 21 | 21 | 24 + (i + 1) * (i + 1) - 1, |
| 22 | 22 | (i + 1) * (i + 1) / 4, |
| 23 | 23 | 0); |
| 24 | colortable[2 * i + 0] = 1; | |
| 25 | colortable[2 * i + 1] = i; | |
| 26 | 24 | } |
| 27 | 25 | |
| 28 | 26 | palette_set_color_rgb(machine, 16, 0, 0, 0); |
| r1711 | r1712 | |
| 30 | 28 | palette_set_color_rgb(machine, 18, 90, 90, 90); |
| 31 | 29 | palette_set_color_rgb(machine, 19, 50, 50, 50); |
| 32 | 30 | palette_set_color_rgb(machine, 20, 255, 255, 255); |
| 33 | ||
| 34 | colortable[2 * 16 + 0 * 4 + 0] = 17; | |
| 35 | colortable[2 * 16 + 0 * 4 + 1] = 18; | |
| 36 | colortable[2 * 16 + 0 * 4 + 2] = 19; | |
| 37 | colortable[2 * 16 + 0 * 4 + 3] = 20; | |
| 38 | ||
| 39 | colortable[2 * 16 + 1 * 4 + 0] = 17; | |
| 40 | colortable[2 * 16 + 1 * 4 + 1] = 17; | |
| 41 | colortable[2 * 16 + 1 * 4 + 2] = 19; | |
| 42 | colortable[2 * 16 + 1 * 4 + 3] = 15; | |
| 43 | 31 | } |
| 44 | 32 | |
| 45 | 33 | VIDEO_START( kim1 ) |
| r1711 | r1712 | |
|---|---|---|
| 43 | 43 | { |
| 44 | 44 | /* 8 shades of RED */ |
| 45 | 45 | palette_set_color_rgb(machine, i, i * 0x22, 0x00, 0x00); |
| 46 | colortable[i*2+0] = 0; | |
| 47 | colortable[i*2+0] = i; | |
| 48 | 46 | } |
| 49 | 47 | |
| 50 | 48 | palette_set_color_rgb(machine, 8, 0x55, 0x55, 0x55); /* DK GREY - for MAME text only */ |
| r1711 | r1712 | |
|---|---|---|
| 29 | 29 | { |
| 30 | 30 | palette_set_color_rgb(machine, i, (i & 2) ? 0xff : 0x00, (i & 4) ? 0xff : 0x00, (i & 1) ? 0xff : 0x00); |
| 31 | 31 | } |
| 32 | ||
| 33 | for (i = 0; i < 256; i++) | |
| 34 | { | |
| 35 | colortable[i*2+0] = i & 7; | |
| 36 | colortable[i*2+1] = (i >> 4) & 7; | |
| 37 | } | |
| 38 | 32 | } |
| 39 | 33 | |
| 40 | 34 |
| r1711 | r1712 | |
|---|---|---|
| 701 | 701 | h=arcadia_video.doublescan?16:8; |
| 702 | 702 | |
| 703 | 703 | if (bitmap->height-arcadia_video.line<h) h=bitmap->height-arcadia_video.line; |
| 704 | plot_box(bitmap, 0, y, bitmap->width, h, | |
| 704 | plot_box(bitmap, 0, y, bitmap->width, h, | |
| 705 | 705 | memset(arcadia_video.bg[y], 0, sizeof(arcadia_video.bg[0])*h); |
| 706 | 706 | for (x=XPOS+arcadia_video.shift, j=0; j<16;j++,x+=8) { |
| 707 | 707 | ch=chars1[j]; |
| r1711 | r1712 | |
| 826 | 826 | |
| 827 | 827 | if (arcadia_video.line<arcadia_video.ypos) |
| 828 | 828 | { |
| 829 | plot_box(arcadia_video.bitmap, 0, arcadia_video.line, machine->screen[0].width, 1, | |
| 829 | plot_box(arcadia_video.bitmap, 0, arcadia_video.line, machine->screen[0].width, 1, | |
| 830 | 830 | memset(arcadia_video.bg[arcadia_video.line], 0, sizeof(arcadia_video.bg[0])); |
| 831 | 831 | } |
| 832 | 832 | else |
| r1711 | r1712 | |
| 854 | 854 | else |
| 855 | 855 | { |
| 856 | 856 | arcadia_video.charline=0xd; |
| 857 | plot_box(arcadia_video.bitmap, 0, arcadia_video.line, machine->screen[0].width, 1, | |
| 857 | plot_box(arcadia_video.bitmap, 0, arcadia_video.line, machine->screen[0].width, 1, | |
| 858 | 858 | memset(arcadia_video.bg[arcadia_video.line], 0, sizeof(arcadia_video.bg[0])); |
| 859 | 859 | } |
| 860 | 860 | } |
| r1711 | r1712 | |
|---|---|---|
| 20 | 20 | 0xff, 0xff, 0xff |
| 21 | 21 | }; |
| 22 | 22 | |
| 23 | const unsigned short pmd85_colortable[1][3] ={ | |
| 24 | { 0, 1, 2 } | |
| 25 | }; | |
| 26 | ||
| 27 | 23 | PALETTE_INIT( pmd85 ) |
| 28 | 24 | { |
| 29 | 25 | palette_set_colors_rgb(machine, 0, pmd85_palette, sizeof(pmd85_palette) / 3); |
| 30 | memcpy(colortable, pmd85_colortable, sizeof (pmd85_colortable)); | |
| 31 | 26 | } |
| 32 | 27 | |
| 33 | 28 | VIDEO_START( pmd85 ) |
| r1711 | r1712 | |
|---|---|---|
| 14 | 14 | static int abc80_bank; |
| 15 | 15 | static int abc80_row; |
| 16 | 16 | |
| 17 | static const unsigned short abc80_colortable[] = | |
| 18 | { | |
| 19 | 0x00, 0x01, | |
| 20 | 0x01, 0x00, | |
| 21 | }; | |
| 22 | ||
| 23 | 17 | PALETTE_INIT( abc80 ) |
| 24 | 18 | { |
| 25 | 19 | palette_set_color(machine, 0, RGB_BLACK); |
| 26 | 20 | palette_set_color(machine, 1, RGB_WHITE); |
| 27 | ||
| 28 | memcpy(colortable, abc80_colortable, sizeof(abc80_colortable)); | |
| 29 | 21 | } |
| 30 | 22 | |
| 31 | 23 | static TILE_GET_INFO(abc80_get_tile_info) |
| r1711 | r1712 | |
|---|---|---|
| 48 | 48 | |
| 49 | 49 | enum { FAKE_BLK,FAKE_YLW,FAKE_BLU,FAKE_RED,FAKE_WHT }; |
| 50 | 50 | |
| 51 | static unsigned short fake_colortable[] = | |
| 52 | { | |
| 53 | FAKE_BLK,FAKE_YLW,FAKE_BLU,FAKE_RED, | |
| 54 | FAKE_BLK,FAKE_WHT,FAKE_BLK,FAKE_RED /* not used by the game, here only for the dip switch menu */ | |
| 55 | }; | |
| 56 | ||
| 57 | 51 | PALETTE_INIT( astrocade ) |
| 58 | 52 | { |
| 59 | 53 | /* This routine builds a palette using a transformation from */ |
| r1711 | r1712 | |
| 120 | 114 | } |
| 121 | 115 | |
| 122 | 116 | /* Set the fake colortable for the dip switch menus, etc. */ |
| 123 | ||
| 124 | colortable = fake_colortable; | |
| 125 | 117 | } |
| 126 | 118 | |
| 127 | 119 | WRITE8_HANDLER ( astrocade_vertical_blank_w ) |
| r1711 | r1712 | |
|---|---|---|
| 32 | 32 | PALETTE_INIT( lviv ) |
| 33 | 33 | { |
| 34 | 34 | palette_set_colors_rgb(machine, 0, lviv_palette, sizeof(lviv_palette) / 3); |
| 35 | memcpy(colortable, lviv_colortable, sizeof (lviv_colortable)); | |
| 36 | 35 | } |
| 37 | 36 | |
| 38 | 37 |
| r1711 | r1712 | |
|---|---|---|
| 114 | 114 | |
| 115 | 115 | ***************************************************************************/ |
| 116 | 116 | |
| 117 | static void mscrtc6845_state_postload(void) | |
| 118 | { | |
| 119 | if (dirtybuffer && videoram_size) | |
| 120 | memset(dirtybuffer, 1, videoram_size); | |
| 121 | } | |
| 122 | ||
| 123 | 117 | struct mscrtc6845 *mscrtc6845_init(const struct mscrtc6845_config *config) |
| 124 | 118 | { |
| 125 | 119 | struct mscrtc6845 *crtc; |
| r1711 | r1712 | |
| 142 | 136 | |
| 143 | 137 | state_save_register_item_array("mscrtc6845", 0, crtc->reg); |
| 144 | 138 | state_save_register_item("mscrtc6845", 0, crtc->idx); |
| 145 | state_save_register_func_postload(mscrtc6845_state_postload); | |
| 146 | 139 | return crtc; |
| 147 | 140 | } |
| 148 | 141 |
| r1711 | r1712 | |
|---|---|---|
| 612 | 612 | (i & 2) ? 0xff : 0x00, |
| 613 | 613 | (i & 4) ? 0xff : 0x00, |
| 614 | 614 | (i & 1) ? 0xff : 0x00); |
| 615 | colortable[i*2+0] = 0; | |
| 616 | colortable[i*2+1] = i+8; | |
| 617 | colortable[(i+8)*2+0] = i+8; | |
| 618 | colortable[(i+8)*2+1] = 0; | |
| 619 | 615 | } |
| 620 | 616 | |
| 621 | 617 | /* for background and scanline */ |
| r1711 | r1712 | |
|---|---|---|
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | |
| 87 | void pet40_update_row(mame_bitmap *bitmap, const rectangle *cliprect, UINT16 ma, | |
| 87 | void pet40_update_row(running_machine *machine, mc6845_t *mc6845, mame_bitmap *bitmap, const rectangle *cliprect, UINT16 ma, | |
| 88 | 88 | UINT8 ra, UINT16 y, UINT8 x_count, void *param) { |
| 89 | 89 | int i; |
| 90 | 90 | |
| 91 | 91 | for( i = 0; i < x_count; i++ ) { |
| 92 | drawgfx( bitmap, | |
| 92 | drawgfx( bitmap, machine->gfx[pet_font], videoram[(ma+i)&0x3ff], 0, 0, 0, 8 * i, y-ra, cliprect, TRANSPARENCY_NONE, 0 ); | |
| 93 | 93 | } |
| 94 | 94 | } |
| 95 | 95 | |
| 96 | void pet80_update_row(mame_bitmap *bitmap, const rectangle *cliprect, UINT16 ma, | |
| 96 | void pet80_update_row(running_machine *machine, mc6845_t *mc6845, mame_bitmap *bitmap, const rectangle *cliprect, UINT16 ma, | |
| 97 | 97 | UINT8 ra, UINT16 y, UINT8 x_count, void *param) { |
| 98 | 98 | int i; |
| 99 | 99 | |
| 100 | 100 | for( i = 0; i < x_count; i++ ) { |
| 101 | drawgfx( bitmap, Machine->gfx[pet_font], videoram[((ma+i)<<1)&0x7ff], 0, 0, 0, 16 * i, y-ra, cliprect, TRANSPARENCY_NONE, 0 ); | |
| 102 | drawgfx( bitmap, Machine->gfx[pet_font], videoram[(((ma+i)<<1)+1)&0x7ff], 0, 0, 0, 16 * i + 8, y-ra, cliprect, TRANSPARENCY_NONE, 0 ); | |
| 101 | drawgfx( bitmap, machine->gfx[pet_font], videoram[((ma+i)<<1)&0x7ff], 0, 0, 0, 16 * i, y-ra, cliprect, TRANSPARENCY_NONE, 0 ); | |
| 102 | drawgfx( bitmap, machine->gfx[pet_font], videoram[(((ma+i)<<1)+1)&0x7ff], 0, 0, 0, 16 * i + 8, y-ra, cliprect, TRANSPARENCY_NONE, 0 ); | |
| 103 | 103 | } |
| 104 | 104 | } |
| 105 | 105 |
| r1711 | r1712 | |
|---|---|---|
| 124 | 124 | if (videoram && videoram[offset] != data) |
| 125 | 125 | { |
| 126 | 126 | videoram[offset] = data; |
| 127 | if (dirtybuffer) | |
| 128 | dirtybuffer[offset] = 1; | |
| 129 | 127 | pc_anythingdirty = 1; |
| 130 | 128 | } |
| 131 | 129 | } |
| r1711 | r1712 | |
| 137 | 135 | { |
| 138 | 136 | COMBINE_DATA(((UINT32 *) videoram) + offset); |
| 139 | 137 | pc_anythingdirty = 1; |
| 140 | if (dirtybuffer) | |
| 141 | { | |
| 142 | if ((mem_mask & 0x000000FF) == 0) | |
| 143 | dirtybuffer[offset * 4 + 0] = 1; | |
| 144 | if ((mem_mask & 0x0000FF00) == 0) | |
| 145 | dirtybuffer[offset * 4 + 1] = 1; | |
| 146 | if ((mem_mask & 0x00FF0000) == 0) | |
| 147 | dirtybuffer[offset * 4 + 2] = 1; | |
| 148 | if ((mem_mask & 0xFF000000) == 0) | |
| 149 | dirtybuffer[offset * 4 + 3] = 1; | |
| 150 | } | |
| 151 | 138 | } |
| 152 | 139 | |
| 153 | 140 |
| r1711 | r1712 | |
|---|---|---|
| 44 | 44 | PALETTE_INIT( pcw ) |
| 45 | 45 | { |
| 46 | 46 | palette_set_colors(machine, 0, pcw_palette, ARRAY_LENGTH(pcw_palette)); |
| 47 | memcpy(colortable, pcw_colour_table, sizeof (pcw_colour_table)); | |
| 48 | 47 | } |
| 49 | 48 | |
| 50 | 49 | /*************************************************************************** |
| r1711 | r1712 | |
|---|---|---|
| 23 | 23 | 24 + (i + 1) * (i + 1) - 1, |
| 24 | 24 | (i + 1) * (i + 1) / 4, |
| 25 | 25 | 0); |
| 26 | ||
| 27 | colortable[2 * i + 0] = 1; | |
| 28 | colortable[2 * i + 1] = i; | |
| 29 | 26 | } |
| 30 | 27 | |
| 31 | 28 | palette_set_color_rgb(machine, 16, 0, 0, 0); |
| r1711 | r1712 | |
| 33 | 30 | palette_set_color_rgb(machine, 18, 90, 90, 90); |
| 34 | 31 | palette_set_color_rgb(machine, 19, 50, 50, 50); |
| 35 | 32 | palette_set_color_rgb(machine, 20, 255, 255, 255); |
| 36 | ||
| 37 | colortable[2 * 16 + 0 * 4 + 0] = 17; | |
| 38 | colortable[2 * 16 + 0 * 4 + 1] = 18; | |
| 39 | colortable[2 * 16 + 0 * 4 + 2] = 19; | |
| 40 | colortable[2 * 16 + 0 * 4 + 3] = 20; | |
| 41 | ||
| 42 | colortable[2 * 16 + 1 * 4 + 0] = 17; | |
| 43 | colortable[2 * 16 + 1 * 4 + 1] = 17; | |
| 44 | colortable[2 * 16 + 1 * 4 + 2] = 19; | |
| 45 | colortable[2 * 16 + 1 * 4 + 3] = 15; | |
| 46 | 33 | } |
| 47 | 34 | |
| 48 | 35 | VIDEO_START( mekd2 ) |
| r1711 | r1712 | |
|---|---|---|
| 84 | 84 | int i; |
| 85 | 85 | for(i = 0; i < (sizeof(cga_palette) / 3); i++) |
| 86 | 86 | palette_set_color_rgb(machine, i, cga_palette[i][0], cga_palette[i][1], cga_palette[i][2]); |
| 87 | memcpy(colortable, mda_colortable, sizeof(mda_colortable)); | |
| 88 | 87 | } |
| 89 | 88 | |
| 90 | 89 | static struct |
| r1711 | r1712 | |
| 110 | 109 | ***************************************************************************/ |
| 111 | 110 | static void pc_mda_blink_textcolors(int on) |
| 112 | 111 | { |
| 113 | int | |
| 112 | int | |
| 114 | 113 | |
| 115 | 114 | if (mda.pc_blink == on) return; |
| 116 | 115 | |
| 117 | 116 | mda.pc_blink = on; |
| 118 | 117 | offs = (mscrtc6845_get_start(mscrtc6845)*2)% videoram_size; |
| 119 | 118 | size = mscrtc6845_get_char_lines(mscrtc6845)*mscrtc6845_get_char_columns(mscrtc6845); |
| 120 | ||
| 121 | if (dirtybuffer) | |
| 122 | { | |
| 123 | for (i = 0; i < size; i++) | |
| 124 | { | |
| 125 | if (videoram[offs+1] & 0x80) | |
| 126 | dirtybuffer[offs+1] = 1; | |
| 127 | if ((offs += 2) == videoram_size) | |
| 128 | offs = 0; | |
| 129 | } | |
| 130 | } | |
| 131 | 119 | } |
| 132 | 120 | |
| 133 | 121 | extern void pc_mda_timer(void) |
| r1711 | r1712 | |
| 139 | 127 | |
| 140 | 128 | void pc_mda_cursor(struct mscrtc6845_cursor *cursor) |
| 141 | 129 | { |
| 142 | if (dirtybuffer) | |
| 143 | dirtybuffer[cursor->pos*2]=1; | |
| 144 | 130 | } |
| 145 | 131 | |
| 146 | 132 | static const struct mscrtc6845_config config= { 14318180 /*?*/, pc_mda_cursor }; |
| r1711 | r1712 | |
| 183 | 169 | { |
| 184 | 170 | int buswidth; |
| 185 | 171 | |
| 186 | buswidth = cputype_databus_width(machine-> | |
| 172 | buswidth = cputype_databus_width(machine->config->cpu[0].type, ADDRESS_SPACE_PROGRAM); | |
| 187 | 173 | switch(buswidth) |
| 188 | 174 | { |
| 189 | 175 | case 8: |
| r1711 | r1712 | |
| 307 | 293 | mscrtc6845_time(crtc); |
| 308 | 294 | mscrtc6845_get_cursor(crtc, &cursor); |
| 309 | 295 | |
| 310 | for (sy=0, r.min_y=0, r.max_y=height-1; sy<lines; sy++, r.min_y+=height,r.max_y+=height) { | |
| 311 | ||
| 296 | for (sy=0, r.min_y=0, r.max_y=height-1; sy<lines; sy++, r.min_y+=height,r.max_y+=height) | |
| 297 | { | |
| 312 | 298 | for (sx=0, r.min_x=0, r.max_x = char_width-1; sx<columns; |
| 313 | sx++, offs=(offs+2)&0x3fff, r.min_x += char_width, r.max_x += char_width) { | |
| 314 | if (!dirtybuffer || dirtybuffer[offs] || dirtybuffer[offs+1]) { | |
| 299 | sx++, offs=(offs+2)&0x3fff, r.min_x += char_width, r.max_x += char_width) | |
| 300 | { | |
| 301 | attr = videoram[offs+1]; | |
| 302 | drawgfx(bitmap, mda.gfx_char[CGA_FONT], videoram[offs], attr, | |
| 303 | 0,0,r.min_x,r.min_y,&r,TRANSPARENCY_NONE,0); | |
| 304 | /* Underlining */ | |
| 305 | if ((attr & 7) == 1) | |
| 306 | plot_box(bitmap, r.min_x, r.min_y + 12, char_width, | |
| 307 | 1, Machine->pens[2 + (attr & 8)]); | |
| 315 | 308 | |
| 316 | attr = videoram[offs+1]; | |
| 317 | drawgfx(bitmap, mda.gfx_char[CGA_FONT], videoram[offs], attr, | |
| 318 | 0,0,r.min_x,r.min_y,&r,TRANSPARENCY_NONE,0); | |
| 319 | /* Underlining */ | |
| 320 | if ((attr & 7) == 1) | |
| 321 | plot_box(bitmap, r.min_x, r.min_y + 12, char_width, | |
| 322 | 1, Machine->pens[2 + (attr & 8)]); | |
| 309 | if (cursor.on&&(mda.pc_framecnt&32)&&(offs==cursor.pos*2)) { | |
| 310 | int k=height-cursor.top; | |
| 311 | rectangle rect2=r; | |
| 312 | rect2.min_y+=cursor.top; | |
| 313 | if (cursor.bottom<height) k=cursor.bottom-cursor.top+1; | |
| 323 | 314 | |
| 324 | if (cursor.on&&(mda.pc_framecnt&32)&&(offs==cursor.pos*2)) { | |
| 325 | int k=height-cursor.top; | |
| 326 | rectangle rect2=r; | |
| 327 | rect2.min_y+=cursor.top; | |
| 328 | if (cursor.bottom<height) k=cursor.bottom-cursor.top+1; | |
| 329 | ||
| 330 | if (k>0) | |
| 331 | plot_box(bitmap, r.min_x, | |
| 332 | r.min_y+cursor.top, | |
| 333 | char_width, k, Machine->pens[2/*?*/]); | |
| 334 | } | |
| 335 | ||
| 336 | if (dirtybuffer) | |
| 337 | dirtybuffer[offs] = dirtybuffer[offs+1] = 0; | |
| 315 | if (k>0) | |
| 316 | plot_box(bitmap, r.min_x, | |
| 317 | r.min_y+cursor.top, | |
| 318 | char_width, k, Machine->pens[2/*?*/]); | |
| 338 | 319 | } |
| 339 | 320 | } |
| 340 | 321 | } |
| r1711 | r1712 | |
| 362 | 343 | mscrtc6845_time(crtc); |
| 363 | 344 | mscrtc6845_get_cursor(crtc, &cursor); |
| 364 | 345 | |
| 365 | for (sy=0, r.min_y=0, r.max_y=height-1; sy<lines; sy++, r.min_y+=height,r.max_y+=height) { | |
| 366 | ||
| 346 | for (sy=0, r.min_y=0, r.max_y=height-1; sy<lines; sy++, r.min_y+=height,r.max_y+=height) | |
| 347 | { | |
| 367 | 348 | for (sx=0, r.min_x=0, r.max_x = char_width-1; sx<columns; |
| 368 | sx++, offs=(offs+2)&0x3fff, r.min_x += char_width, r.max_x += char_width) { | |
| 349 | sx++, offs=(offs+2)&0x3fff, r.min_x += char_width, r.max_x += char_width) | |
| 350 | { | |
| 351 | int attr = videoram[offs+1]; | |
| 352 | if (attr & 0x80) /* blinking ? */ | |
| 353 | { | |
| 354 | if (mda.pc_blink) attr = 0; | |
| 355 | } | |
| 369 | 356 | |
| 370 | if (!dirtybuffer || dirtybuffer[offs] || dirtybuffer[offs+1]) { | |
| 357 | drawgfx(bitmap, mda.gfx_char[CGA_FONT], videoram[offs], attr, | |
| 358 | 0,0,r.min_x,r.min_y,&r,TRANSPARENCY_NONE,0); | |
| 359 | /* Underlining */ | |
| 360 | if ((attr & 7) == 1) | |
| 361 | plot_box(bitmap, r.min_x, r.min_y + 12, char_width, | |
| 362 | 1, Machine->pens[2 + (attr & 8)]); | |
| 371 | 363 | |
| 372 | int attr = videoram[offs+1]; | |
| 373 | if (attr & 0x80) /* blinking ? */ | |
| 374 | { | |
| 375 | if (mda.pc_blink) attr = 0; | |
| 376 | } | |
| 377 | ||
| 378 | drawgfx(bitmap, mda.gfx_char[CGA_FONT], videoram[offs], attr, | |
| 379 | 0,0,r.min_x,r.min_y,&r,TRANSPARENCY_NONE,0); | |
| 380 | /* Underlining */ | |
| 381 | if ((attr & 7) == 1) | |
| 382 | plot_box(bitmap, r.min_x, r.min_y + 12, char_width, | |
| 383 | 1, Machine->pens[2 + (attr & 8)]); | |
| 384 | ||
| 385 | 364 | // if ((cursor.on)&&(offs==cursor.pos*2)) { |
| 386 | if (cursor.on&&(mda.pc_framecnt&32)&&(offs==cursor.pos*2)) { | |
| 387 | int k=height-cursor.top; | |
| 388 | rectangle rect2=r; | |
| 389 | rect2.min_y+=cursor.top; | |
| 390 | if (cursor.bottom<height) k=cursor.bottom-cursor.top+1; | |
| 365 | if (cursor.on&&(mda.pc_framecnt&32)&&(offs==cursor.pos*2)) { | |
| 366 | int k=height-cursor.top; | |
| 367 | rectangle rect2=r; | |
| 368 | rect2.min_y+=cursor.top; | |
| 369 | if (cursor.bottom<height) k=cursor.bottom-cursor.top+1; | |
| 391 | 370 | |
| 392 | if (k>0) | |
| 393 | plot_box(bitmap, r.min_x, | |
| 394 | r.min_y+cursor.top, | |
| 395 | char_width, k, Machine->pens[2/*?*/]); | |
| 396 | } | |
| 397 | ||
| 398 | if (dirtybuffer) | |
| 399 | dirtybuffer[offs] = dirtybuffer[offs+1] = 0; | |
| 371 | if (k>0) | |
| 372 | plot_box(bitmap, r.min_x, | |
| 373 | r.min_y+cursor.top, | |
| 374 | char_width, k, Machine->pens[2/*?*/]); | |
| 400 | 375 | } |
| 401 | 376 | } |
| 402 | 377 | } |
| r1711 | r1712 | |
|---|---|---|
| 105 | 105 | GFXDECODE_END |
| 106 | 106 | |
| 107 | 107 | MACHINE_DRIVER_START( pcvideo_t1000hx ) |
| 108 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 109 | 108 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 110 | 109 | MDRV_SCREEN_SIZE(80*8, 25*9) |
| 111 | 110 | MDRV_SCREEN_VISIBLE_AREA(0,80*8-1, 0,25*9-1) |
| 112 | 111 | MDRV_GFXDECODE(t1000hx) |
| 113 | 112 | MDRV_PALETTE_LENGTH(sizeof(cga_palette) / sizeof(cga_palette[0])) |
| 114 | MDRV_COLORTABLE_LENGTH(sizeof(pcjr_colortable) / sizeof(pcjr_colortable[0])) | |
| 115 | 113 | MDRV_PALETTE_INIT(pcjr) |
| 116 | 114 | |
| 117 | 115 | MDRV_VIDEO_START(pc_t1t) |
| r1711 | r1712 | |
| 135 | 133 | int i; |
| 136 | 134 | for(i = 0; i < (sizeof(cga_palette) / 3); i++) |
| 137 | 135 | palette_set_color_rgb(machine, i, cga_palette[i][0], cga_palette[i][1], cga_palette[i][2]); |
| 138 | memcpy(colortable, pcjr_colortable, sizeof(pcjr_colortable)); | |
| 139 | 136 | } |
| 140 | 137 | |
| 141 | 138 | static struct { |
| r1711 | r1712 | |
| 510 | 507 | |
| 511 | 508 | if (height > 8) |
| 512 | 509 | { |
| 513 | bgcolor = | |
| 510 | bgcolor = | |
| 514 | 511 | plot_box(bitmap, r->min_x, r->min_y + 8, width, height - 8, bgcolor); |
| 515 | 512 | } |
| 516 | 513 | } |
| r1711 | r1712 | |
|---|---|---|
| 114 | 114 | int i; |
| 115 | 115 | for(i = 0; i < (sizeof(cga_palette) / 3); i++) |
| 116 | 116 | palette_set_color_rgb(machine, i, cga_palette[i][0], cga_palette[i][1], cga_palette[i][2]); |
| 117 | memcpy(colortable,cga_colortable,sizeof(cga_colortable)); | |
| 118 | memcpy((char*)colortable+sizeof(cga_colortable), mda_colortable, sizeof(mda_colortable)); | |
| 119 | 117 | } |
| 120 | 118 | |
| 121 | 119 | static struct { |
| r1711 | r1712 | |
| 215 | 213 | |
| 216 | 214 | pc_mda_europc_init(); |
| 217 | 215 | |
| 218 | buswidth = cputype_databus_width(machine-> | |
| 216 | buswidth = cputype_databus_width(machine->config->cpu[0].type, ADDRESS_SPACE_PROGRAM); | |
| 219 | 217 | switch(buswidth) |
| 220 | 218 | { |
| 221 | 219 | case 8: |
| r1711 | r1712 | |
| 248 | 246 | |
| 249 | 247 | VIDEO_START_CALL(pc_aga); |
| 250 | 248 | |
| 251 | buswidth = cputype_databus_width(machine-> | |
| 249 | buswidth = cputype_databus_width(machine->config->cpu[0].type, ADDRESS_SPACE_PROGRAM); | |
| 252 | 250 | switch(buswidth) |
| 253 | 251 | { |
| 254 | 252 | case 8: |
| r1711 | r1712 | |
|---|---|---|
| 166 | 166 | GFXDECODE_END |
| 167 | 167 | |
| 168 | 168 | MACHINE_DRIVER_START( pcvideo_cga ) |
| 169 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 170 | 169 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 171 | 170 | MDRV_SCREEN_SIZE(80*8, 25*8) |
| 172 | 171 | MDRV_SCREEN_VISIBLE_AREA(0,80*8-1, 0,25*8-1) |
| 173 | 172 | MDRV_GFXDECODE(CGA) |
| 174 | 173 | MDRV_PALETTE_LENGTH(sizeof(cga_palette) / (CGA_PALETTE_SETS * sizeof(cga_palette[0]))) |
| 175 | MDRV_COLORTABLE_LENGTH(sizeof(cga_colortable) / sizeof(cga_colortable[0])) | |
| 176 | 174 | |
| 177 | 175 | MDRV_PALETTE_INIT(pc_cga) |
| 178 | 176 | MDRV_VIDEO_START(pc_cga) |
| r1711 | r1712 | |
| 240 | 238 | /* Initialise the cga palette */ |
| 241 | 239 | static PALETTE_INIT( pc_cga ) |
| 242 | 240 | { |
| 243 | memcpy(colortable, cga_colortable, sizeof(cga_colortable)); | |
| 244 | 241 | } |
| 245 | 242 | |
| 246 | 243 | |
| 247 | 244 | |
| 248 | 245 | void pc_cga_cursor(struct mscrtc6845_cursor *cursor) |
| 249 | 246 | { |
| 250 | if (dirtybuffer && (videoram_size > cursor->pos*2)) | |
| 251 | dirtybuffer[cursor->pos*2]=1; | |
| 252 | 247 | } |
| 253 | 248 | |
| 254 | 249 | |
| r1711 | r1712 | |
| 283 | 278 | * Plantronics chipset. |
| 284 | 279 | * TODO: Cards which don't support Plantronics should repeat at |
| 285 | 280 | * BC000h */ |
| 286 | buswidth = cputype_databus_width(machine-> | |
| 281 | buswidth = cputype_databus_width(machine->config->cpu[0].type, ADDRESS_SPACE_PROGRAM); | |
| 287 | 282 | switch(buswidth) |
| 288 | 283 | { |
| 289 | 284 | case 8: |
| r1711 | r1712 | |
| 365 | 360 | cga_palette[i + p][1], |
| 366 | 361 | cga_palette[i + p][2]); |
| 367 | 362 | cga.palette = p; |
| 368 | if (dirtybuffer) memset(dirtybuffer, 1, videoram_size); | |
| 369 | 363 | } |
| 370 | 364 | } |
| 371 | 365 | |
| r1711 | r1712 | |
| 384 | 378 | /* CGA composite: Switching between mono & colour behaves like a |
| 385 | 379 | * mode change */ |
| 386 | 380 | if(CGA_MONITOR == CGA_MONITOR_COMPOSITE) mask = 0x3F; |
| 387 | ||
| 388 | if ((cga.mode_control ^ data) & mask) /* text/gfx/width change */ | |
| 389 | { | |
| 390 | if (dirtybuffer) memset(dirtybuffer, 1, videoram_size); | |
| 391 | } | |
| 392 | 381 | cga.mode_control = data; |
| 393 | 382 | } |
| 394 | 383 | |
| r1711 | r1712 | |
| 403 | 392 | if( cga.color_select == data ) |
| 404 | 393 | return; |
| 405 | 394 | cga.color_select = data; |
| 406 | if (dirtybuffer) memset(dirtybuffer, 1, videoram_size); | |
| 407 | 395 | } |
| 408 | 396 | |
| 409 | 397 | |
| r1711 | r1712 | |
| 420 | 408 | data &= 0x70; /* Only bits 6-4 are used */ |
| 421 | 409 | if (cga.plantronics == data) return; |
| 422 | 410 | cga.plantronics = data; |
| 423 | if (dirtybuffer) memset(dirtybuffer, 1, videoram_size); | |
| 424 | 411 | } |
| 425 | 412 | |
| 426 | 413 | |
| r1711 | r1712 | |
| 481 | 468 | switch(offset) { |
| 482 | 469 | case 0: case 2: case 4: case 6: |
| 483 | 470 | case 1: case 3: case 5: case 7: |
| 484 | if (mscrtc6845_port_w(mscrtc6845, offset, data)) | |
| 485 | { | |
| 486 | if (dirtybuffer) memset(dirtybuffer, 1, videoram_size); | |
| 487 | } | |
| 471 | mscrtc6845_port_w(mscrtc6845, offset, data); | |
| 488 | 472 | break; |
| 489 | 473 | case 8: |
| 490 | 474 | pc_cga_mode_control_w(data); |
| r1711 | r1712 | |
| 533 | 517 | for (sx=0, r.min_x=0, r.max_x=7; sx<columns; |
| 534 | 518 | sx++, offs=(offs+2)&0x3fff, r.min_x+=8, r.max_x+=8) |
| 535 | 519 | { |
| 536 | if (!dirtybuffer || dirtybuffer[offs] || dirtybuffer[offs+1]) | |
| 520 | drawgfx(bitmap, Machine->gfx[CGA_FONT], videoram[offs], videoram[offs+1], | |
| 521 | 0,0,r.min_x,r.min_y,&r,TRANSPARENCY_NONE,0); | |
| 522 | if (height > 16) | |
| 537 | 523 | { |
| 524 | r.min_y+=16; | |
| 538 | 525 | drawgfx(bitmap, Machine->gfx[CGA_FONT], videoram[offs], videoram[offs+1], |
| 539 | 0,0,r.min_x,r.min_y,&r,TRANSPARENCY_NONE,0); | |
| 540 | if (height > 16) | |
| 541 | { | |
| 542 | r.min_y+=16; | |
| 543 | drawgfx(bitmap, Machine->gfx[CGA_FONT], videoram[offs], videoram[offs+1], | |
| 544 | 0,0,r.min_x,r.min_y,&r,TRANSPARENCY_NONE,0); | |
| 545 | r.min_y-=16; | |
| 546 | } | |
| 526 | 0,0,r.min_x,r.min_y,&r,TRANSPARENCY_NONE,0); | |
| 527 | r.min_y-=16; | |
| 528 | } | |
| 547 | 529 | |
| 548 | if (cursor.on && cga_blinkthisframe() && (offs==cursor.pos*2)) | |
| 549 | { | |
| 550 | int k=height-cursor.top; | |
| 551 | if (cursor.bottom<height) k=cursor.bottom-cursor.top+1; | |
| 530 | if (cursor.on && cga_blinkthisframe() && (offs==cursor.pos*2)) | |
| 531 | { | |
| 532 | int k=height-cursor.top; | |
| 533 | if (cursor.bottom<height) k=cursor.bottom-cursor.top+1; | |
| 552 | 534 | |
| 553 | if (k>0) | |
| 554 | { | |
| 555 | plot_box(bitmap, r.min_x, | |
| 556 | r.min_y+cursor.top, | |
| 557 | 8, k, Machine->pens[7]); | |
| 558 | } | |
| 535 | if (k>0) | |
| 536 | { | |
| 537 | plot_box(bitmap, r.min_x, | |
| 538 | r.min_y+cursor.top, | |
| 539 | 8, k, Machine->pens[7]); | |
| 559 | 540 | } |
| 560 | ||
| 561 | 541 | } |
| 562 | 542 | } |
| 563 | 543 | } |
| 564 | if (dirtybuffer) | |
| 565 | memset(dirtybuffer, 0, videoram_size); | |
| 566 | 544 | } |
| 567 | 545 | |
| 568 | 546 | |
| r1711 | r1712 | |
| 597 | 575 | for (sx=0, r.min_x=0, r.max_x=7; sx<columns; |
| 598 | 576 | sx++, offs=(offs+2)&0x3fff, r.min_x+=8, r.max_x+=8) |
| 599 | 577 | { |
| 600 | if (!dirtybuffer || dirtybuffer[offs] || dirtybuffer[offs+1]) | |
| 578 | drawgfx(bitmap, Machine->gfx[CGA_FONT], videoram[offs], (videoram[offs+1] & 15), | |
| 579 | 0,0,r.min_x,r.min_y,&r,TRANSPARENCY_NONE,0); | |
| 580 | if (cursor.on && cga_blinkthisframe() && (offs==cursor.pos*2)) | |
| 601 | 581 | { |
| 602 | drawgfx(bitmap, Machine->gfx[CGA_FONT], videoram[offs], (videoram[offs+1] & 15), | |
| 603 | 0,0,r.min_x,r.min_y,&r,TRANSPARENCY_NONE,0); | |
| 604 | if (cursor.on && cga_blinkthisframe() && (offs==cursor.pos*2)) | |
| 605 | { | |
| 606 | int k=height-cursor.top; | |
| 607 | if (cursor.bottom<height) k=cursor.bottom-cursor.top+1; | |
| 582 | int k=height-cursor.top; | |
| 583 | if (cursor.bottom<height) k=cursor.bottom-cursor.top+1; | |
| 608 | 584 | |
| 609 | if (k>0) | |
| 610 | { | |
| 611 | plot_box(bitmap, r.min_x, | |
| 612 | r.min_y+cursor.top, | |
| 613 | 8, k, Machine->pens[7]); | |
| 614 | } | |
| 585 | if (k>0) | |
| 586 | { | |
| 587 | plot_box(bitmap, r.min_x, | |
| 588 | r.min_y+cursor.top, | |
| 589 | 8, k, Machine->pens[7]); | |
| 615 | 590 | } |
| 616 | ||
| 617 | if (dirtybuffer) | |
| 618 | dirtybuffer[offs] = dirtybuffer[offs+1] = 0; | |
| 619 | 591 | } |
| 620 | 592 | } |
| 621 | 593 | } |
| r1711 | r1712 | |
| 649 | 621 | for (sx=0, r.min_x=0, r.max_x=7; sx<columns; |
| 650 | 622 | sx++, offs=(offs+2)&0x3fff, r.min_x+=8, r.max_x+=8) |
| 651 | 623 | { |
| 652 | if (!dirtybuffer || dirtybuffer[offs] || dirtybuffer[offs+1]) | |
| 624 | int attr = videoram[offs+1]; | |
| 625 | ||
| 626 | if (attr & 0x80) /* blinking ? */ | |
| 653 | 627 | { |
| 628 | if (cga.pc_blink) | |
| 629 | attr = (attr & 0x70) | ((attr & 0x70) >> 4); | |
| 630 | else | |
| 631 | attr = attr & 0x7f; | |
| 632 | } | |
| 654 | 633 | |
| 655 | int attr = videoram[offs+1]; | |
| 634 | drawgfx(bitmap, Machine->gfx[CGA_FONT], videoram[offs], attr, | |
| 635 | 0,0,r.min_x,r.min_y,&r,TRANSPARENCY_NONE,0); | |
| 636 | if (height>16) | |
| 637 | { | |
| 638 | r.min_y+=16; | |
| 639 | drawgfx(bitmap, Machine->gfx[CGA_FONT], videoram[offs], videoram[offs+1], | |
| 640 | 0,0,r.min_x,r.min_y,&r,TRANSPARENCY_NONE,0); | |
| 641 | r.min_y-=16; | |
| 642 | } | |
| 656 | 643 | |
| 657 | if (attr & 0x80) /* blinking ? */ | |
| 658 | { | |
| 659 | if (cga.pc_blink) | |
| 660 | attr = (attr & 0x70) | ((attr & 0x70) >> 4); | |
| 661 | else | |
| 662 | attr = attr & 0x7f; | |
| 663 | } | |
| 644 | if (cursor.on && cga_blinkthisframe() && (offs==cursor.pos*2)) | |
| 645 | { | |
| 646 | int k=height-cursor.top; | |
| 647 | if (cursor.bottom<height) k=cursor.bottom-cursor.top+1; | |
| 664 | 648 | |
| 665 | drawgfx(bitmap, Machine->gfx[CGA_FONT], videoram[offs], attr, | |
| 666 | 0,0,r.min_x,r.min_y,&r,TRANSPARENCY_NONE,0); | |
| 667 | if (height>16) | |
| 649 | if (k > 0) | |
| 668 | 650 | { |
| 669 | r.min_y+=16; | |
| 670 | drawgfx(bitmap, Machine->gfx[CGA_FONT], videoram[offs], videoram[offs+1], | |
| 671 | 0,0,r.min_x,r.min_y,&r,TRANSPARENCY_NONE,0); | |
| 672 | r.min_y-=16; | |
| 651 | plot_box(bitmap, r.min_x, | |
| 652 | r.min_y+cursor.top, | |
| 653 | 8, k, Machine->pens[7]); | |
| 673 | 654 | } |
| 674 | ||
| 675 | if (cursor.on && cga_blinkthisframe() && (offs==cursor.pos*2)) | |
| 676 | { | |
| 677 | int k=height-cursor.top; | |
| 678 | if (cursor.bottom<height) k=cursor.bottom-cursor.top+1; | |
| 679 | ||
| 680 | if (k > 0) | |
| 681 | { | |
| 682 | plot_box(bitmap, r.min_x, | |
| 683 | r.min_y+cursor.top, | |
| 684 | 8, k, Machine->pens[7]); | |
| 685 | } | |
| 686 | } | |
| 687 | ||
| 688 | 655 | } |
| 689 | 656 | } |
| 690 | 657 | } |
| 691 | if (dirtybuffer) | |
| 692 | memset(dirtybuffer, 0, videoram_size); | |
| 693 | 658 | } |
| 694 | 659 | |
| 695 | 660 | |
| r1711 | r1712 | |
| 727 | 692 | for (sx=0, r.min_x=0, r.max_x=7; sx<columns; |
| 728 | 693 | sx++, offs=(offs+2)&0x3fff, r.min_x+=8, r.max_x+=8) |
| 729 | 694 | { |
| 730 | if (!dirtybuffer || dirtybuffer[offs] || dirtybuffer[offs+1]) | |
| 731 | { | |
| 695 | int attr = videoram[offs+1]; | |
| 732 | 696 | |
| 733 | int attr = videoram[offs+1]; | |
| 697 | if ((attr & 0x80) && cga.pc_blink) /* blinking ? */ | |
| 698 | attr = (attr & 0x70) >> 4; | |
| 699 | else | |
| 700 | attr = attr & 0x0F; | |
| 734 | 701 | |
| 735 | if ((attr & 0x80) && cga.pc_blink) /* blinking ? */ | |
| 736 | attr = (attr & 0x70) >> 4; | |
| 737 | else | |
| 738 | attr = attr & 0x0F; | |
| 702 | drawgfx(bitmap, Machine->gfx[CGA_FONT], videoram[offs], attr, | |
| 703 | 0,0,r.min_x,r.min_y,&r,TRANSPARENCY_NONE,0); | |
| 739 | 704 | |
| 740 | drawgfx(bitmap, Machine->gfx[CGA_FONT], videoram[offs], attr, | |
| 741 | 0,0,r.min_x,r.min_y,&r,TRANSPARENCY_NONE,0); | |
| 705 | if (cga_blinkthisframe() && (offs==cursor.pos*2)) | |
| 706 | { | |
| 707 | int k=height-cursor.top; | |
| 708 | if (cursor.bottom<height) k=cursor.bottom-cursor.top+1; | |
| 742 | 709 | |
| 743 | if ( | |
| 710 | if ( | |
| 744 | 711 | { |
| 745 | int k=height-cursor.top; | |
| 746 | if (cursor.bottom<height) k=cursor.bottom-cursor.top+1; | |
| 747 | ||
| 748 | if (k > 0) | |
| 749 | { | |
| 750 | plot_box(bitmap, r.min_x, | |
| 751 | r.min_y+cursor.top, | |
| 752 | 8, k, Machine->pens[7]); | |
| 753 | } | |
| 712 | plot_box(bitmap, r.min_x, | |
| 713 | r.min_y+cursor.top, | |
| 714 | 8, k, Machine->pens[7]); | |
| 754 | 715 | } |
| 755 | ||
| 756 | if (dirtybuffer) | |
| 757 | dirtybuffer[offs]=dirtybuffer[offs+1]=0; | |
| 758 | 716 | } |
| 759 | 717 | } |
| 760 | 718 | } |
| r1711 | r1712 | |
| 858 | 816 | { |
| 859 | 817 | for (i=offs, sx=0; sx<columns; sx++, i=(i+1)&0x1fff) |
| 860 | 818 | { |
| 861 | if (!dirtybuffer || dirtybuffer[i]) | |
| 862 | { | |
| 863 | cga_plot_unit_4bpp(bitmap, sx*scale, sy*height+sh, i, scale/2); | |
| 864 | if (dirtybuffer) | |
| 865 | dirtybuffer[i]=0; | |
| 866 | } | |
| 819 | cga_plot_unit_4bpp(bitmap, sx*scale, sy*height+sh, i, scale/2); | |
| 867 | 820 | } |
| 868 | 821 | } |
| 869 | 822 | else |
| 870 | 823 | { |
| 871 | 824 | for (i=offs|0x2000, sx=0; sx<columns; sx++, i=((i+1)&0x1fff)|0x2000) |
| 872 | 825 | { |
| 873 | if (!dirtybuffer || dirtybuffer[i]) | |
| 874 | { | |
| 875 | cga_plot_unit_4bpp(bitmap, sx*scale, sy*height+sh, i, scale/2); | |
| 876 | if (dirtybuffer) | |
| 877 | dirtybuffer[i]=0; | |
| 878 | } | |
| 826 | cga_plot_unit_4bpp(bitmap, sx*scale, sy*height+sh, i, scale/2); | |
| 879 | 827 | } |
| 880 | 828 | } |
| 881 | 829 | } |
| r1711 | r1712 | |
| 957 | 905 | { |
| 958 | 906 | for (i=offs, sx=0; sx<columns; sx++, i=(i+1)&0x1fff) |
| 959 | 907 | { |
| 960 | if (!dirtybuffer || dirtybuffer[i]) | |
| 961 | { | |
| 962 | pgfx_plot_unit_4bpp(bitmap, sx*4, sy*height+sh, i); | |
| 963 | if (dirtybuffer) | |
| 964 | dirtybuffer[i]=0; | |
| 965 | } | |
| 908 | pgfx_plot_unit_4bpp(bitmap, sx*4, sy*height+sh, i); | |
| 966 | 909 | } |
| 967 | 910 | } |
| 968 | 911 | else |
| 969 | 912 | { |
| 970 | 913 | for (i=offs|0x2000, sx=0; sx<columns; sx++, i=((i+1)&0x1fff)|0x2000) |
| 971 | 914 | { |
| 972 | if (!dirtybuffer || dirtybuffer[i]) | |
| 973 | { | |
| 974 | pgfx_plot_unit_4bpp(bitmap, sx*4, sy*height+sh, i); | |
| 975 | if (dirtybuffer) | |
| 976 | dirtybuffer[i]=0; | |
| 977 | } | |
| 915 | pgfx_plot_unit_4bpp(bitmap, sx*4, sy*height+sh, i); | |
| 978 | 916 | } |
| 979 | 917 | } |
| 980 | 918 | } |
| r1711 | r1712 | |
| 1074 | 1012 | if (!(sh&1)) { // char line 0 used as a12 line in graphic mode |
| 1075 | 1013 | for (i=offs, sx=0; sx<columns; sx++, i=(i+1)&0x1fff) |
| 1076 | 1014 | { |
| 1077 | if (!dirtybuffer || dirtybuffer[i]) | |
| 1078 | { | |
| 1079 | pgfx_plot_unit_2bpp(bitmap, sx*8, sy*height+sh, palette, i); | |
| 1080 | if (dirtybuffer) | |
| 1081 | dirtybuffer[i]=0; | |
| 1082 | } | |
| 1015 | pgfx_plot_unit_2bpp(bitmap, sx*8, sy*height+sh, palette, i); | |
| 1083 | 1016 | } |
| 1084 | 1017 | } |
| 1085 | 1018 | else |
| 1086 | 1019 | { |
| 1087 | 1020 | for (i=offs|0x2000, sx=0; sx<columns; sx++, i=((i+1)&0x1fff)|0x2000) |
| 1088 | 1021 | { |
| 1089 | if (!dirtybuffer || dirtybuffer[i]) | |
| 1090 | { | |
| 1091 | pgfx_plot_unit_2bpp(bitmap, sx*8, sy*height+sh, palette, i); | |
| 1092 | if (dirtybuffer) | |
| 1093 | dirtybuffer[i]=0; | |
| 1094 | } | |
| 1022 | pgfx_plot_unit_2bpp(bitmap, sx*8, sy*height+sh, palette, i); | |
| 1095 | 1023 | } |
| 1096 | 1024 | } |
| 1097 | 1025 | } |
| r1711 | r1712 | |
| 1155 | 1083 | { |
| 1156 | 1084 | for (i=offs, sx=0; sx<columns; sx++, i=(i+1)&0x1fff) |
| 1157 | 1085 | { |
| 1158 | if (!dirtybuffer || dirtybuffer[i]) | |
| 1159 | { | |
| 1160 | pc1512_plot_unit(bitmap, sx*8, sy*height+sh, i); | |
| 1161 | } | |
| 1086 | pc1512_plot_unit(bitmap, sx*8, sy*height+sh, i); | |
| 1162 | 1087 | } |
| 1163 | 1088 | } |
| 1164 | 1089 | else |
| 1165 | 1090 | { |
| 1166 | 1091 | for (i=offs|0x2000, sx=0; sx<columns; sx++, i=((i+1)&0x1fff)|0x2000) |
| 1167 | 1092 | { |
| 1168 | if (!dirtybuffer || dirtybuffer[i]) | |
| 1169 | { | |
| 1170 | pc1512_plot_unit(bitmap, sx*8, sy*height+sh, i); | |
| 1171 | } | |
| 1093 | pc1512_plot_unit(bitmap, sx*8, sy*height+sh, i); | |
| 1172 | 1094 | } |
| 1173 | 1095 | } |
| 1174 | 1096 | } |
| 1175 | 1097 | if (sy*height >= bitmap->height) |
| 1176 | 1098 | break; |
| 1177 | 1099 | } |
| 1178 | if (dirtybuffer) | |
| 1179 | memset(dirtybuffer, 0, videoram_size); | |
| 1180 | 1100 | } |
| 1181 | 1101 | |
| 1182 | 1102 | |
| r1711 | r1712 | |
| 1187 | 1107 | |
| 1188 | 1108 | static void pc_cga_blink_textcolors(int on) |
| 1189 | 1109 | { |
| 1190 | int | |
| 1110 | int | |
| 1191 | 1111 | |
| 1192 | 1112 | if (cga.pc_blink == on) return; |
| 1193 | 1113 | |
| 1194 | 1114 | cga.pc_blink = on; |
| 1195 | 1115 | offs = (mscrtc6845_get_start(mscrtc6845)*2) & 0x3fff; |
| 1196 | 1116 | size = mscrtc6845_get_char_lines(mscrtc6845)*mscrtc6845_get_char_columns(mscrtc6845); |
| 1197 | ||
| 1198 | if (dirtybuffer) | |
| 1199 | { | |
| 1200 | for (i = 0; i < size; i++) | |
| 1201 | { | |
| 1202 | if (videoram[offs+1] & 0x80) dirtybuffer[offs+1] = 1; | |
| 1203 | offs=(offs+2)&0x3fff; | |
| 1204 | } | |
| 1205 | } | |
| 1206 | 1117 | } |
| 1207 | 1118 | |
| 1208 | 1119 | |
| r1711 | r1712 | |
| 1397 | 1308 | videoram[offset+videoram_offset[2]] = data; /* red */ |
| 1398 | 1309 | if (pc1512.write & 8) |
| 1399 | 1310 | videoram[offset+videoram_offset[3]] = data; /* intensity (text, 4color) */ |
| 1400 | ||
| 1401 | if (dirtybuffer) | |
| 1402 | dirtybuffer[offset] = 1; | |
| 1403 | 1311 | } |
| 1404 | 1312 | |
| 1405 | 1313 |
| r1711 | r1712 | |
|---|---|---|
| 516 | 516 | decodechar(Machine->gfx[1], |
| 517 | 517 | code, |
| 518 | 518 | intv_gram, |
| 519 | Machine-> | |
| 519 | Machine->config->gfxdecodeinfo[1].gfxlayout); | |
| 520 | 520 | intv_gramdirtybytes[code] = 0; |
| 521 | 521 | } |
| 522 | 522 | // Draw GRAM char |
| r1711 | r1712 | |
| 571 | 571 | decodechar(Machine->gfx[1], |
| 572 | 572 | code, |
| 573 | 573 | intv_gram, |
| 574 | Machine-> | |
| 574 | Machine->config->gfxdecodeinfo[1].gfxlayout); | |
| 575 | 575 | intv_gramdirtybytes[code] = 0; |
| 576 | 576 | } |
| 577 | 577 | // Draw GRAM char |
| r1711 | r1712 | |
| 619 | 619 | decodechar(Machine->gfx[1], |
| 620 | 620 | code, |
| 621 | 621 | intv_gram, |
| 622 | Machine-> | |
| 622 | Machine->config->gfxdecodeinfo[1].gfxlayout); | |
| 623 | 623 | intv_gramdirtybytes[code] = 0; |
| 624 | 624 | } |
| 625 | 625 | // Draw GRAM char |
| r1711 | r1712 | |
| 638 | 638 | decodechar(Machine->gfx[1], |
| 639 | 639 | code, |
| 640 | 640 | intv_gram, |
| 641 | Machine-> | |
| 641 | Machine->config->gfxdecodeinfo[1].gfxlayout); | |
| 642 | 642 | decodechar(Machine->gfx[1], |
| 643 | 643 | code+1, |
| 644 | 644 | intv_gram, |
| 645 | Machine-> | |
| 645 | Machine->config->gfxdecodeinfo[1].gfxlayout); | |
| 646 | 646 | intv_gramdirtybytes[code] = 0; |
| 647 | 647 | intv_gramdirtybytes[code+1] = 0; |
| 648 | 648 | } |
| r1711 | r1712 | |
|---|---|---|
| 17 | 17 | 0,12,12 |
| 18 | 18 | }; |
| 19 | 19 | |
| 20 | static const unsigned short ssystem3_colortable[1][2] = { | |
| 21 | { 0, 1 }, | |
| 22 | }; | |
| 23 | ||
| 24 | 20 | PALETTE_INIT( ssystem3 ) |
| 25 | 21 | { |
| 26 | 22 | palette_set_colors_rgb(machine, 0, ssystem3_palette, sizeof(ssystem3_palette) / 3); |
| 27 | memcpy(colortable,ssystem3_colortable,sizeof(ssystem3_colortable)); | |
| 28 | 23 | } |
| 29 | 24 | |
| 30 | 25 | VIDEO_START( ssystem3 ) |
| r1711 | r1712 | |
|---|---|---|
| 244 | 244 | |
| 245 | 245 | for (i=0; i<32; i++) |
| 246 | 246 | { |
| 247 | colortable[i] = i; | |
| 248 | 247 | palette_set_color_rgb(machine, i, |
| 249 | 248 | kccomp_get_colour_element((color_prom[i]>>2) & 0x03), |
| 250 | 249 | kccomp_get_colour_element((color_prom[i]>>4) & 0x03), |
| r1711 | r1712 | |
| 277 | 276 | b = ( b << 4 ) | ( b ); |
| 278 | 277 | |
| 279 | 278 | palette_set_color_rgb(machine, i+48, g, r, b); |
| 280 | colortable[i+48] = i+48; // take into account the original palette, and sprite palette | |
| 281 | 279 | } |
| 282 | 280 | } |
| 283 | 281 | |
| r1711 | r1712 | |
| 301 | 299 | b = (b << 6); |
| 302 | 300 | |
| 303 | 301 | palette_set_color_rgb(machine, i+32, r, g, b); |
| 304 | colortable[i+32] = i+32; // take into account the CPC and MSX palette | |
| 305 | 302 | } |
| 306 | 303 | } |
| 307 | 304 |
| r1711 | r1712 | |
|---|---|---|
| 153 | 153 | /* char *backdrop_name; |
| 154 | 154 | int used = 2; */ |
| 155 | 155 | palette_set_colors_rgb(machine, 0, avigo_palette, sizeof(avigo_palette) / 3); |
| 156 | memcpy(colortable, avigo_colour_table, sizeof (avigo_colour_table)); | |
| 157 | 156 | |
| 158 | 157 | /* load backdrop */ |
| 159 | 158 | #if 0 |
| r1711 | r1712 | |
| 166 | 165 | |
| 167 | 166 | logerror("%s\n",backdrop_name); |
| 168 | 167 | |
| 169 | artwork_load(&avigo_backdrop, backdrop_name, used,machine-> | |
| 168 | artwork_load(&avigo_backdrop, backdrop_name, used,machine->config->total_colors-used); | |
| 170 | 169 | |
| 171 | 170 | if (avigo_backdrop) |
| 172 | 171 | { |
| r1711 | r1712 | |
|---|---|---|
| 1342 | 1342 | } |
| 1343 | 1343 | |
| 1344 | 1344 | MACHINE_DRIVER_START( vh_vic2 ) |
| 1345 | MDRV_ | |
| 1345 | MDRV_SC | |
| 1346 | 1346 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1347 | 1347 | MDRV_SCREEN_SIZE(336, 216) |
| 1348 | 1348 | MDRV_SCREEN_VISIBLE_AREA(0, 336 - 1, 0, 216 - 1) |
| r1711 | r1712 | |
|---|---|---|
| 211 | 211 | PALETTE_INIT( odyssey2 ) |
| 212 | 212 | { |
| 213 | 213 | palette_set_colors_rgb(machine, 0, odyssey2_colors, sizeof(odyssey2_colors) / 3); |
| 214 | colortable[0] = 0; | |
| 215 | colortable[1] = 1; | |
| 216 | 214 | } |
| 217 | 215 | |
| 218 | 216 | extern READ8_HANDLER( odyssey2_video_r ) |
| r1711 | r1712 | |
|---|---|---|
| 198 | 198 | */ |
| 199 | 199 | MACHINE_DRIVER_START( tms3556 ) |
| 200 | 200 | /* video hardware */ |
| 201 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK | |
| 201 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK | |
| 202 | 202 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 203 | 203 | #if DOUBLE_WIDTH |
| 204 | 204 | MDRV_SCREEN_SIZE(TOTAL_WIDTH*2, TOTAL_HEIGHT*2) |
| r1711 | r1712 | |
| 208 | 208 | MDRV_SCREEN_VISIBLE_AREA(0, TOTAL_WIDTH-1, 0, TOTAL_HEIGHT*2-1) |
| 209 | 209 | #endif |
| 210 | 210 | MDRV_PALETTE_LENGTH(8) |
| 211 | MDRV_COLORTABLE_LENGTH(0) | |
| 212 | 211 | MDRV_PALETTE_INIT(tms3556) |
| 213 | 212 | |
| 214 | 213 | MDRV_VIDEO_START(generic_bitmapped) |
| r1711 | r1712 | |
|---|---|---|
| 109 | 109 | |
| 110 | 110 | for (i = 0; i < used; i++) |
| 111 | 111 | palette_set_color_rgb(machine, i, ti85_palette[i][0], ti85_palette[i][1], ti85_palette[i][2]); |
| 112 | memcpy (colortable, ti85_colortable, sizeof (ti85_colortable)); | |
| 113 | 112 | |
| 114 | 113 | if (!strncmp(machine->gamedrv->name, "ti81", 4)) |
| 115 | 114 | { |
| r1711 | r1712 | |
|---|---|---|
| 110 | 110 | #ifndef BRIGHTNESS_DOES_NOT_WORK |
| 111 | 111 | palette_set_brightness( machine, i, 1.0 * i / (4 - 1)); |
| 112 | 112 | #endif |
| 113 | colortable[i] = i; | |
| 114 | 113 | } |
| 115 | 114 | } |
| 116 | 115 |
| r1711 | r1712 | |
|---|---|---|
| 102 | 102 | static PALETTE_INIT( saa5050 ) |
| 103 | 103 | { |
| 104 | 104 | palette_set_colors_rgb(machine, 0, saa5050_palette, sizeof(saa5050_palette) / 3); |
| 105 | memcpy(colortable, saa5050_colortable, sizeof (saa5050_colortable)); | |
| 106 | 105 | } |
| 107 | 106 | |
| 108 | 107 | static VIDEO_START( saa5050 ) |
| r1711 | r1712 | |
| 240 | 239 | } |
| 241 | 240 | |
| 242 | 241 | MACHINE_DRIVER_START( vh_saa5050 ) |
| 242 | MDRV_SCREEN_ADD("main", RASTER) | |
| 243 | 243 | MDRV_SCREEN_REFRESH_RATE(50) |
| 244 | 244 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(SAA5050_VBLANK)) |
| 245 | 245 | MDRV_INTERLEAVE(1) |
| 246 | 246 | |
| 247 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 248 | 247 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 249 | 248 | MDRV_SCREEN_SIZE(40 * 6, 24 * 10) |
| 250 | 249 | MDRV_SCREEN_VISIBLE_AREA(0, 40 * 6 - 1, 0, 24 * 10 - 1) |
| 251 | 250 | MDRV_GFXDECODE( saa5050 ) |
| 252 | 251 | MDRV_PALETTE_LENGTH(8) |
| 253 | MDRV_COLORTABLE_LENGTH(128) | |
| 254 | 252 | MDRV_PALETTE_INIT(saa5050) |
| 255 | 253 | |
| 256 | 254 | MDRV_VIDEO_START(saa5050) |
| r1711 | r1712 | |
|---|---|---|
| 114 | 114 | PALETTE_INIT( asr733 ) |
| 115 | 115 | { |
| 116 | 116 | palette_set_colors_rgb(machine, 0, asr_palette, asr733_palette_size); |
| 117 | ||
| 118 | memcpy(colortable, & asr_colortable, sizeof(asr_colortable)); | |
| 119 | 117 | } |
| 120 | 118 | |
| 121 | 119 | /* |
| r1711 | r1712 | |
|---|---|---|
| 32 | 32 | 0x00, 0x00, 0x00 /* Black */ |
| 33 | 33 | }; |
| 34 | 34 | |
| 35 | const unsigned short galaxy_colortable[1][2] = | |
| 36 | { | |
| 37 | {0, 1} | |
| 38 | }; | |
| 39 | ||
| 40 | 35 | PALETTE_INIT( galaxy ) |
| 41 | 36 | { |
| 42 | 37 | palette_set_colors_rgb(machine, 0, galaxy_palette, sizeof(galaxy_palette) / 3); |
| 43 | memcpy(colortable, galaxy_colortable, sizeof (galaxy_colortable)); | |
| 44 | 38 | } |
| 45 | 39 | |
| 46 | 40 | VIDEO_START( galaxy ) |
| r1711 | r1712 | |
|---|---|---|
| 50 | 50 | VIDEO_START( laser ) |
| 51 | 51 | { |
| 52 | 52 | videoram_size = 0x04000; |
| 53 | dirtybuffer = (UINT8*) auto_malloc(videoram_size); | |
| 54 | 53 | } |
| 55 | 54 | |
| 56 | 55 | static const int offs_2[192] = { |
| r1711 | r1712 | |
| 130 | 129 | if( full_refresh ) |
| 131 | 130 | { |
| 132 | 131 | fillbitmap(bitmap, machine->pens[(laser_bg_mode >> 4) & 15], &machine->screen[0].visarea); |
| 133 | memset(dirtybuffer, 1, videoram_size); | |
| 134 | 132 | } |
| 135 | 133 | |
| 136 | 134 | if (laser_latch & 0x08) |
| r1711 | r1712 | |
| 149 | 147 | offs = offs_2[y]; |
| 150 | 148 | for( x = 0; x < 80; x++, offs++ ) |
| 151 | 149 | { |
| 152 | if( dirtybuffer[offs] ) | |
| 153 | { | |
| 154 | int sx, sy, code, color = laser_two_color; | |
| 155 | sy = BORDER_V/2 + y; | |
| 156 | sx = BORDER_H/2 + x * 8; | |
| 157 | code = videoram[offs]; | |
| 158 | drawgfx(bitmap,machine->gfx[2],code,color,0,0,sx,sy, | |
| 159 | &machine->screen[0].visarea,TRANSPARENCY_NONE,0); | |
| 160 | dirtybuffer[offs] = 0; | |
| 161 | } | |
| 150 | int sx, sy, code, color = laser_two_color; | |
| 151 | sy = BORDER_V/2 + y; | |
| 152 | sx = BORDER_H/2 + x * 8; | |
| 153 | code = videoram[offs]; | |
| 154 | drawgfx(bitmap,machine->gfx[2],code,color,0,0,sx,sy, | |
| 155 | &machine->screen[0].visarea,TRANSPARENCY_NONE,0); | |
| 162 | 156 | } |
| 163 | 157 | } |
| 164 | 158 | break; |
| r1711 | r1712 | |
| 173 | 167 | offs = offs_2[y]; |
| 174 | 168 | for( x = 0; x < 40; x++, offs += 2 ) |
| 175 | 169 | { |
| 176 | if( dirtybuffer[offs] || dirtybuffer[offs+1] ) | |
| 177 | { | |
| 178 | int sx, sy, code, color; | |
| 179 | sy = BORDER_V/2 + y; | |
| 180 | sx = BORDER_H/2 + x * 16; | |
| 181 | code = videoram[offs]; | |
| 182 | color = videoram[offs+1]; | |
| 183 | drawgfx(bitmap,machine->gfx[3],code,color,0,0,sx,sy, | |
| 184 | &machine->screen[0].visarea,TRANSPARENCY_NONE,0); | |
| 185 | dirtybuffer[offs] = dirtybuffer[offs+1] = 0; | |
| 186 | } | |
| 170 | int sx, sy, code, color; | |
| 171 | sy = BORDER_V/2 + y; | |
| 172 | sx = BORDER_H/2 + x * 16; | |
| 173 | code = videoram[offs]; | |
| 174 | color = videoram[offs+1]; | |
| 175 | drawgfx(bitmap,machine->gfx[3],code,color,0,0,sx,sy, | |
| 176 | &machine->screen[0].visarea,TRANSPARENCY_NONE,0); | |
| 187 | 177 | } |
| 188 | 178 | } |
| 189 | 179 | break; |
| r1711 | r1712 | |
| 198 | 188 | offs = offs_2[y]; |
| 199 | 189 | for( x = 0; x < 80; x++, offs++ ) |
| 200 | 190 | { |
| 201 | if( dirtybuffer[offs] ) | |
| 202 | { | |
| 203 | int sx, sy, code; | |
| 204 | sy = BORDER_V/2 + y; | |
| 205 | sx = BORDER_H/2 + x * 8; | |
| 206 | code = videoram[offs]; | |
| 207 | drawgfx(bitmap,machine->gfx[5],code,0,0,0,sx,sy, | |
| 208 | &machine->screen[0].visarea,TRANSPARENCY_NONE,0); | |
| 209 | dirtybuffer[offs] = 0; | |
| 210 | } | |
| 191 | int sx, sy, code; | |
| 192 | sy = BORDER_V/2 + y; | |
| 193 | sx = BORDER_H/2 + x * 8; | |
| 194 | code = videoram[offs]; | |
| 195 | drawgfx(bitmap,machine->gfx[5],code,0,0,0,sx,sy, | |
| 196 | &machine->screen[0].visarea,TRANSPARENCY_NONE,0); | |
| 211 | 197 | } |
| 212 | 198 | } |
| 213 | 199 | break; |
| r1711 | r1712 | |
| 223 | 209 | offs = offs_0[y]; |
| 224 | 210 | for( x = 0; x < 80; x++, offs++ ) |
| 225 | 211 | { |
| 226 | if( dirtybuffer[offs] ) | |
| 227 | { | |
| 228 | int sx, sy, code; | |
| 229 | sy = BORDER_V/2 + y * 2; | |
| 230 | sx = BORDER_H/2 + x * 8; | |
| 231 | code = videoram[offs]; | |
| 232 | drawgfx(bitmap,machine->gfx[6],code,0,0,0,sx,sy, | |
| 233 | &machine->screen[0].visarea,TRANSPARENCY_NONE,0); | |
| 234 | dirtybuffer[offs] = 0; | |
| 235 | } | |
| 212 | int sx, sy, code; | |
| 213 | sy = BORDER_V/2 + y * 2; | |
| 214 | sx = BORDER_H/2 + x * 8; | |
| 215 | code = videoram[offs]; | |
| 216 | drawgfx(bitmap,machine->gfx[6],code,0,0,0,sx,sy, | |
| 217 | &machine->screen[0].visarea,TRANSPARENCY_NONE,0); | |
| 236 | 218 | } |
| 237 | 219 | } |
| 238 | 220 | break; |
| r1711 | r1712 | |
| 247 | 229 | offs = offs_1[y]; |
| 248 | 230 | for( x = 0; x < 40; x++, offs++ ) |
| 249 | 231 | { |
| 250 | if( dirtybuffer[offs] ) | |
| 251 | { | |
| 252 | int sx, sy, code, color = laser_two_color; | |
| 253 | sy = BORDER_V/2 + y; | |
| 254 | sx = BORDER_H/2 + x * 16; | |
| 255 | code = videoram[offs]; | |
| 256 | drawgfx(bitmap,machine->gfx[3],code,color,0,0,sx,sy, | |
| 257 | &machine->screen[0].visarea,TRANSPARENCY_NONE,0); | |
| 258 | dirtybuffer[offs] = 0; | |
| 259 | } | |
| 232 | int sx, sy, code, color = laser_two_color; | |
| 233 | sy = BORDER_V/2 + y; | |
| 234 | sx = BORDER_H/2 + x * 16; | |
| 235 | code = videoram[offs]; | |
| 236 | drawgfx(bitmap,machine->gfx[3],code,color,0,0,sx,sy, | |
| 237 | &machine->screen[0].visarea,TRANSPARENCY_NONE,0); | |
| 260 | 238 | } |
| 261 | 239 | } |
| 262 | 240 | break; |
| r1711 | r1712 | |
| 271 | 249 | offs = offs_1[y]; |
| 272 | 250 | for( x = 0; x < 20; x++, offs += 2 ) |
| 273 | 251 | { |
| 274 | if( dirtybuffer[offs] || dirtybuffer[offs+1] ) | |
| 275 | { | |
| 276 | int sx, sy, code, color; | |
| 277 | sy = BORDER_V/2 + y; | |
| 278 | sx = BORDER_H/2 + x * 32; | |
| 279 | code = videoram[offs]; | |
| 280 | color = videoram[offs+1]; | |
| 281 | drawgfx(bitmap,machine->gfx[4],code,color,0,0,sx,sy, | |
| 282 | &machine->screen[0].visarea,TRANSPARENCY_NONE,0); | |
| 283 | dirtybuffer[offs] = dirtybuffer[offs+1] = 0; | |
| 284 | } | |
| 252 | int sx, sy, code, color; | |
| 253 | sy = BORDER_V/2 + y; | |
| 254 | sx = BORDER_H/2 + x * 32; | |
| 255 | code = videoram[offs]; | |
| 256 | color = videoram[offs+1]; | |
| 257 | drawgfx(bitmap,machine->gfx[4],code,color,0,0,sx,sy, | |
| 258 | &machine->screen[0].visarea,TRANSPARENCY_NONE,0); | |
| 285 | 259 | } |
| 286 | 260 | } |
| 287 | 261 | break; |
| r1711 | r1712 | |
| 298 | 272 | offs = ((y & 7) << 8) + ((y >> 3) * 80); |
| 299 | 273 | for( x = 0; x < 80; x++, offs++ ) |
| 300 | 274 | { |
| 301 | if( dirtybuffer[0x3800+offs] ) | |
| 302 | { | |
| 303 | int sx, sy, code, color = laser_two_color; | |
| 304 | sy = BORDER_V/2 + y * 8; | |
| 305 | sx = BORDER_H/2 + x * 8; | |
| 306 | code = videoram[0x3800+offs]; | |
| 307 | drawgfx(bitmap,machine->gfx[0],code,color,0,0,sx,sy, | |
| 308 | &machine->screen[0].visarea,TRANSPARENCY_NONE,0); | |
| 309 | dirtybuffer[offs] = 0; | |
| 310 | } | |
| 275 | int sx, sy, code, color = laser_two_color; | |
| 276 | sy = BORDER_V/2 + y * 8; | |
| 277 | sx = BORDER_H/2 + x * 8; | |
| 278 | code = videoram[0x3800+offs]; | |
| 279 | drawgfx(bitmap,machine->gfx[0],code,color,0,0,sx,sy, | |
| 280 | &machine->screen[0].visarea,TRANSPARENCY_NONE,0); | |
| 311 | 281 | } |
| 312 | 282 | } |
| 313 | 283 | } |
| r1711 | r1712 | |
| 319 | 289 | offs = ((y & 7) << 8) + ((y >> 3) * 80); |
| 320 | 290 | for( x = 0; x < 40; x++, offs += 2 ) |
| 321 | 291 | { |
| 322 | if( dirtybuffer[0x3800+offs] || dirtybuffer[0x3801+offs] ) | |
| 323 | { | |
| 324 | int sx, sy, code, color = 0; | |
| 325 | sy = BORDER_V/2 + y * 8; | |
| 326 | sx = BORDER_H/2 + x * 16; | |
| 327 | code = videoram[0x3800+offs]; | |
| 328 | color = videoram[0x3801+offs]; | |
| 329 | drawgfx(bitmap,machine->gfx[1],code,color,0,0,sx,sy, | |
| 330 | &machine->screen[0].visarea,TRANSPARENCY_NONE,0); | |
| 331 | dirtybuffer[0x3800+offs] = dirtybuffer[0x3801+offs] = 0; | |
| 332 | } | |
| 292 | int sx, sy, code, color = 0; | |
| 293 | sy = BORDER_V/2 + y * 8; | |
| 294 | sx = BORDER_H/2 + x * 16; | |
| 295 | code = videoram[0x3800+offs]; | |
| 296 | color = videoram[0x3801+offs]; | |
| 297 | drawgfx(bitmap,machine->gfx[1],code,color,0,0,sx,sy, | |
| 298 | &machine->screen[0].visarea,TRANSPARENCY_NONE,0); | |
| 333 | 299 | } |
| 334 | 300 | } |
| 335 | 301 | } |
| r1711 | r1712 | |
|---|---|---|
| 97 | 97 | PALETTE_INIT( kc85 ) |
| 98 | 98 | { |
| 99 | 99 | palette_set_colors_rgb(machine, 0, kc85_palette, sizeof(kc85_palette) / 3); |
| 100 | memcpy(colortable, kc85_colour_table, sizeof (kc85_colour_table)); | |
| 101 | 100 | } |
| 102 | 101 | |
| 103 | 102 | static int kc85_blink_state; |
| r1711 | r1712 | |
|---|---|---|
| 54 | 54 | #define PORT_CHAR(ch) \ |
| 55 | 55 | INPUT_PORT_UINT32_PAIR(INPUT_TOKEN_CHAR, ch), |
| 56 | 56 | |
| 57 | /* config definition */ | |
| 58 | #define PORT_CONFNAME(mask,default,name) \ | |
| 59 | INPUT_PORT_UINT32(INPUT_TOKEN_CONFNAME), INPUT_PORT_UINT32_PAIR(mask, default), INPUT_PORT_PTR(name), | |
| 60 | 57 | |
| 61 | #define PORT_CONFSETTING(default,name) \ | |
| 62 | INPUT_PORT_UINT32_PAIR(INPUT_TOKEN_CONFSETTING, default), INPUT_PORT_PTR(name), | |
| 63 | 58 | |
| 64 | /* categories */ | |
| 65 | #define PORT_CATEGORY(category) \ | |
| 66 | INPUT_PORT_UINT32_PAIR(INPUT_TOKEN_CATEGORY, category), | |
| 67 | ||
| 68 | #define PORT_CATEGORY_CLASS(mask,default,name) \ | |
| 69 | INPUT_PORT_UINT32(INPUT_TOKEN_CATEGORY_NAME), INPUT_PORT_UINT32_PAIR(mask, default), INPUT_PORT_PTR(name), | |
| 70 | ||
| 71 | #define PORT_CATEGORY_ITEM(default,name,category) \ | |
| 72 | INPUT_PORT_UINT32_PAIR(INPUT_TOKEN_CATEGORY_SETTING, default), INPUT_PORT_PTR(name), INPUT_PORT_UINT32_PAIR(INPUT_TOKEN_CATEGORY, category), | |
| 73 | ||
| 74 | ||
| 75 | ||
| 76 | 59 | /*************************************************************************** |
| 77 | 60 | |
| 78 | 61 | Prototypes |
| r1711 | r1712 | |
|---|---|---|
| 98 | 98 | char *s; |
| 99 | 99 | |
| 100 | 100 | /* retrieve info about the device instance */ |
| 101 | result = device_get_info_string(devclass, base + id); | |
| 101 | result = mess_device_get_info_string(devclass, base + id); | |
| 102 | 102 | if (!result) |
| 103 | 103 | { |
| 104 | 104 | /* not specified? default to device names based on the device type */ |
| 105 | type = (iodevice_t) (int) device_get_info_int(devclass, DEVINFO_INT_TYPE); | |
| 106 | count = (int) device_get_info_int(devclass, DEVINFO_INT_COUNT); | |
| 105 | type = (iodevice_t) (int) mess_device_get_info_int(devclass, MESS_DEVINFO_INT_TYPE); | |
| 106 | count = (int) mess_device_get_info_int(devclass, MESS_DEVINFO_INT_COUNT); | |
| 107 | 107 | result = get_dev_typename(type); |
| 108 | 108 | |
| 109 | 109 | /* need to number if there is more than one device */ |
| r1711 | r1712 | |
| 121 | 121 | |
| 122 | 122 | const char *device_instancename(const device_class *devclass, int id) |
| 123 | 123 | { |
| 124 | return internal_device_instancename(devclass, id, DEVINFO_STR_NAME, device_typename); | |
| 124 | return internal_device_instancename(devclass, id, MESS_DEVINFO_STR_NAME, device_typename); | |
| 125 | 125 | } |
| 126 | 126 | |
| 127 | 127 | |
| 128 | 128 | |
| 129 | 129 | const char *device_briefinstancename(const device_class *devclass, int id) |
| 130 | 130 | { |
| 131 | return internal_device_instancename(devclass, id, DEVINFO_STR_SHORT_NAME, device_brieftypename); | |
| 131 | return internal_device_instancename(devclass, id, MESS_DEVINFO_STR_SHORT_NAME, device_brieftypename); | |
| 132 | 132 | } |
| 133 | 133 | |
| 134 | 134 | |
| r1711 | r1712 | |
| 152 | 152 | const char *name; |
| 153 | 153 | |
| 154 | 154 | /* use the cool new device string technique */ |
| 155 | name = device_get_info_string(&dev->devclass, DEVINFO_STR_DESCRIPTION+id); | |
| 155 | name = mess_device_get_info_string(&dev->devclass, MESS_DEVINFO_STR_DESCRIPTION+id); | |
| 156 | 156 | if (name) |
| 157 | 157 | { |
| 158 | 158 | snprintf(buf, bufsize, "%s", name); |
| r1711 | r1712 | |
| 240 | 240 | |
| 241 | 241 | /* convert file extensions from comma delimited to null delimited */ |
| 242 | 242 | converted_file_extensions = NULL; |
| 243 | file_extensions = device_get_info_string(&devices[i].devclass, DEVINFO_STR_FILE_EXTENSIONS); | |
| 243 | file_extensions = mess_device_get_info_string(&devices[i].devclass, MESS_DEVINFO_STR_FILE_EXTENSIONS); | |
| 244 | 244 | if (file_extensions) |
| 245 | 245 | { |
| 246 | 246 | converted_file_extensions = pool_malloc(pool, strlen(file_extensions) + 2); |
| r1711 | r1712 | |
| 253 | 253 | converted_file_extensions[j + 1] = '\0'; |
| 254 | 254 | } |
| 255 | 255 | |
| 256 | info_string = device_get_info_string(&devices[i].devclass, DEVINFO_STR_DEV_TAG); | |
| 256 | info_string = mess_device_get_info_string(&devices[i].devclass, MESS_DEVINFO_STR_DEV_TAG); | |
| 257 | 257 | devices[i].tag = info_string ? pool_strdup(pool, info_string) : NULL; |
| 258 | devices[i].type = device_get_info_int(&devices[i].devclass, DEVINFO_INT_TYPE); | |
| 259 | devices[i].count = device_get_info_int(&devices[i].devclass, DEVINFO_INT_COUNT); | |
| 258 | devices[i].type = mess_device_get_info_int(&devices[i].devclass, MESS_DEVINFO_INT_TYPE); | |
| 259 | devices[i].count = mess_device_get_info_int(&devices[i].devclass, MESS_DEVINFO_INT_COUNT); | |
| 260 | 260 | devices[i].position = position; |
| 261 | 261 | devices[i].file_extensions = converted_file_extensions; |
| 262 | 262 | |
| 263 | devices[i].readable = device_get_info_int(&devices[i].devclass, DEVINFO_INT_READABLE) ? 1 : 0; | |
| 264 | devices[i].writeable = device_get_info_int(&devices[i].devclass, DEVINFO_INT_WRITEABLE) ? 1 : 0; | |
| 265 | devices[i].creatable = device_get_info_int(&devices[i].devclass, DEVINFO_INT_CREATABLE) ? 1 : 0; | |
| 266 | devices[i].reset_on_load = device_get_info_int(&devices[i].devclass, DEVINFO_INT_RESET_ON_LOAD) ? 1 : 0; | |
| 267 | devices[i].must_be_loaded = device_get_info_int(&devices[i].devclass, DEVINFO_INT_MUST_BE_LOADED) ? 1 : 0; | |
| 268 | devices[i].load_at_init = device_get_info_int(&devices[i].devclass, DEVINFO_INT_LOAD_AT_INIT) ? 1 : 0; | |
| 269 | devices[i].not_working = device_get_info_int(&devices[i].devclass, DEVINFO_INT_NOT_WORKING) ? 1 : 0; | |
| 263 | devices[i].readable = mess_device_get_info_int(&devices[i].devclass, MESS_DEVINFO_INT_READABLE) ? 1 : 0; | |
| 264 | devices[i].writeable = mess_device_get_info_int(&devices[i].devclass, MESS_DEVINFO_INT_WRITEABLE) ? 1 : 0; | |
| 265 | devices[i].creatable = mess_device_get_info_int(&devices[i].devclass, MESS_DEVINFO_INT_CREATABLE) ? 1 : 0; | |
| 266 | devices[i].reset_on_load = mess_device_get_info_int(&devices[i].devclass, MESS_DEVINFO_INT_RESET_ON_LOAD) ? 1 : 0; | |
| 267 | devices[i].must_be_loaded = mess_device_get_info_int(&devices[i].devclass, MESS_DEVINFO_INT_MUST_BE_LOADED) ? 1 : 0; | |
| 268 | devices[i].load_at_init = mess_device_get_info_int(&devices[i].devclass, MESS_DEVINFO_INT_LOAD_AT_INIT) ? 1 : 0; | |
| 269 | devices[i].not_working = mess_device_get_info_int(&devices[i].devclass, MESS_DEVINFO_INT_NOT_WORKING) ? 1 : 0; | |
| 270 | 270 | |
| 271 | devices[i].init = (device_init_handler) device_get_info_fct(&devices[i].devclass, DEVINFO_PTR_INIT); | |
| 272 | devices[i].exit = (device_exit_handler) device_get_info_fct(&devices[i].devclass, DEVINFO_PTR_EXIT); | |
| 273 | devices[i].load = (device_load_handler) device_get_info_fct(&devices[i].devclass, DEVINFO_PTR_LOAD); | |
| 274 | devices[i].create = (device_create_handler) device_get_info_fct(&devices[i].devclass, DEVINFO_PTR_CREATE); | |
| 275 | devices[i].unload = (device_unload_handler) device_get_info_fct(&devices[i].devclass, DEVINFO_PTR_UNLOAD); | |
| 276 | devices[i].imgverify = (device_verify_handler) device_get_info_fct(&devices[i].devclass, DEVINFO_PTR_VERIFY); | |
| 277 | devices[i].partialhash = (device_partialhash_handler) device_get_info_fct(&devices[i].devclass, DEVINFO_PTR_PARTIAL_HASH); | |
| 278 | devices[i].getdispositions = (device_getdispositions_handler) device_get_info_fct(&devices[i].devclass, DEVINFO_PTR_GET_DISPOSITIONS); | |
| 271 | devices[i].init = (device_init_handler) mess_device_get_info_fct(&devices[i].devclass, MESS_DEVINFO_PTR_INIT); | |
| 272 | devices[i].exit = (device_exit_handler) mess_device_get_info_fct(&devices[i].devclass, MESS_DEVINFO_PTR_EXIT); | |
| 273 | devices[i].load = (device_load_handler) mess_device_get_info_fct(&devices[i].devclass, MESS_DEVINFO_PTR_LOAD); | |
| 274 | devices[i].create = (device_create_handler) mess_device_get_info_fct(&devices[i].devclass, MESS_DEVINFO_PTR_CREATE); | |
| 275 | devices[i].unload = (device_unload_handler) mess_device_get_info_fct(&devices[i].devclass, MESS_DEVINFO_PTR_UNLOAD); | |
| 276 | devices[i].imgverify = (device_verify_handler) mess_device_get_info_fct(&devices[i].devclass, MESS_DEVINFO_PTR_VERIFY); | |
| 277 | devices[i].partialhash = (device_partialhash_handler) mess_device_get_info_fct(&devices[i].devclass, MESS_DEVINFO_PTR_PARTIAL_HASH); | |
| 278 | devices[i].getdispositions = (device_getdispositions_handler) mess_device_get_info_fct(&devices[i].devclass, MESS_DEVINFO_PTR_GET_DISPOSITIONS); | |
| 279 | 279 | |
| 280 | devices[i].display = (device_display_handler) device_get_info_fct(&devices[i].devclass, DEVINFO_PTR_DISPLAY); | |
| 280 | devices[i].display = (device_display_handler) mess_device_get_info_fct(&devices[i].devclass, MESS_DEVINFO_PTR_DISPLAY); | |
| 281 | 281 | devices[i].name = default_device_name; |
| 282 | 282 | |
| 283 | devices[i].createimage_optguide = (const struct OptionGuide *) device_get_info_ptr(&devices[i].devclass, DEVINFO_PTR_CREATE_OPTGUIDE); | |
| 283 | devices[i].createimage_optguide = (const struct OptionGuide *) mess_device_get_info_ptr(&devices[i].devclass, MESS_DEVINFO_PTR_CREATE_OPTGUIDE); | |
| 284 | 284 | |
| 285 | createimage_optcount = (int) device_get_info_int(&devices[i].devclass, DEVINFO_INT_CREATE_OPTCOUNT); | |
| 285 | createimage_optcount = (int) mess_device_get_info_int(&devices[i].devclass, MESS_DEVINFO_INT_CREATE_OPTCOUNT); | |
| 286 | 286 | if (createimage_optcount > 0) |
| 287 | 287 | { |
| 288 | if (createimage_optcount > DEVINFO_CREATE_OPTMAX) | |
| 289 | fatalerror("DEVINFO_INT_CREATE_OPTCOUNT: Too many options"); | |
| 288 | if (createimage_optcount > MESS_DEVINFO_CREATE_OPTMAX) | |
| 289 | fatalerror("MESS_DEVINFO_INT_CREATE_OPTCOUNT: Too many options"); | |
| 290 | 290 | |
| 291 | 291 | devices[i].createimage_options = pool_malloc(pool, (createimage_optcount + 1) * |
| 292 | 292 | sizeof(*devices[i].createimage_options)); |
| r1711 | r1712 | |
| 295 | 295 | |
| 296 | 296 | for (j = 0; j < createimage_optcount; j++) |
| 297 | 297 | { |
| 298 | info_string = device_get_info_string(&devices[i].devclass, DEVINFO_STR_CREATE_OPTNAME + j); | |
| 298 | info_string = mess_device_get_info_string(&devices[i].devclass, MESS_DEVINFO_STR_CREATE_OPTNAME + j); | |
| 299 | 299 | devices[i].createimage_options[j].name = info_string ? pool_strdup(pool, info_string) : NULL; |
| 300 | info_string = device_get_info_string(&devices[i].devclass, DEVINFO_STR_CREATE_OPTDESC + j); | |
| 300 | info_string = mess_device_get_info_string(&devices[i].devclass, MESS_DEVINFO_STR_CREATE_OPTDESC + j); | |
| 301 | 301 | devices[i].createimage_options[j].description = info_string ? pool_strdup(pool, info_string) : NULL; |
| 302 | info_string = device_get_info_string(&devices[i].devclass, DEVINFO_STR_CREATE_OPTEXTS + j); | |
| 302 | info_string = mess_device_get_info_string(&devices[i].devclass, MESS_DEVINFO_STR_CREATE_OPTEXTS + j); | |
| 303 | 303 | devices[i].createimage_options[j].extensions = info_string ? pool_strdup(pool, info_string) : NULL; |
| 304 | devices[i].createimage_options[j].optspec = device_get_info_ptr(&devices[i].devclass, DEVINFO_PTR_CREATE_OPTSPEC + j); | |
| 304 | devices[i].createimage_options[j].optspec = mess_device_get_info_ptr(&devices[i].devclass, MESS_DEVINFO_PTR_CREATE_OPTSPEC + j); | |
| 305 | 305 | } |
| 306 | 306 | |
| 307 | 307 | /* terminate the list */ |
| r1711 | r1712 | |
|---|---|---|
| 23 | 23 | |
| 24 | 24 | enum |
| 25 | 25 | { |
| 26 | DEVINFO_CREATE_OPTMAX = 32, | |
| 26 | MESS_DEVINFO_CREATE_OPTMAX = 32, | |
| 27 | 27 | |
| 28 | 28 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 29 | DEVINFO_INT_FIRST = 0x00000, | |
| 29 | MESS_DEVINFO_INT_FIRST = 0x00000, | |
| 30 | 30 | |
| 31 | DEVINFO_INT_TYPE, | |
| 32 | DEVINFO_INT_READABLE, | |
| 33 | DEVINFO_INT_WRITEABLE, | |
| 34 | DEVINFO_INT_CREATABLE, | |
| 35 | DEVINFO_INT_COUNT, | |
| 36 | DEVINFO_INT_MUST_BE_LOADED, | |
| 37 | DEVINFO_INT_RESET_ON_LOAD, | |
| 38 | DEVINFO_INT_LOAD_AT_INIT, | |
| 39 | DEVINFO_INT_NOT_WORKING, | |
| 40 | DEVINFO_INT_CREATE_OPTCOUNT, | |
| 31 | MESS_DEVINFO_INT_TYPE, | |
| 32 | MESS_DEVINFO_INT_READABLE, | |
| 33 | MESS_DEVINFO_INT_WRITEABLE, | |
| 34 | MESS_DEVINFO_INT_CREATABLE, | |
| 35 | MESS_DEVINFO_INT_COUNT, | |
| 36 | MESS_DEVINFO_INT_MUST_BE_LOADED, | |
| 37 | MESS_DEVINFO_INT_RESET_ON_LOAD, | |
| 38 | MESS_DEVINFO_INT_LOAD_AT_INIT, | |
| 39 | MESS_DEVINFO_INT_NOT_WORKING, | |
| 40 | MESS_DEVINFO_INT_CREATE_OPTCOUNT, | |
| 41 | 41 | |
| 42 | DEVINFO_INT_DEV_SPECIFIC = 0x08000, /* R/W: Device-specific values start here */ | |
| 42 | MESS_DEVINFO_INT_DEV_SPECIFIC = 0x08000, /* R/W: Device-specific values start here */ | |
| 43 | 43 | |
| 44 | 44 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 45 | DEVINFO_PTR_FIRST = 0x10000, | |
| 45 | MESS_DEVINFO_PTR_FIRST = 0x10000, | |
| 46 | 46 | |
| 47 | DEVINFO_PTR_INIT, | |
| 48 | DEVINFO_PTR_EXIT, | |
| 49 | DEVINFO_PTR_LOAD, | |
| 50 | DEVINFO_PTR_UNLOAD, | |
| 51 | DEVINFO_PTR_CREATE, | |
| 52 | DEVINFO_PTR_STATUS, | |
| 53 | DEVINFO_PTR_DISPLAY, | |
| 54 | DEVINFO_PTR_PARTIAL_HASH, | |
| 55 | DEVINFO_PTR_VERIFY, | |
| 56 | DEVINFO_PTR_GET_DISPOSITIONS, | |
| 57 | DEVINFO_PTR_CREATE_OPTGUIDE, | |
| 58 | DEVINFO_PTR_CREATE_OPTSPEC, | |
| 59 | DEVINFO_PTR_VALIDITY_CHECK = DEVINFO_PTR_CREATE_OPTSPEC + DEVINFO_CREATE_OPTMAX, /* R/O: int (*validity_check)(const device_class *devclass) */ | |
| 47 | MESS_DEVINFO_PTR_INIT, | |
| 48 | MESS_DEVINFO_PTR_EXIT, | |
| 49 | MESS_DEVINFO_PTR_LOAD, | |
| 50 | MESS_DEVINFO_PTR_UNLOAD, | |
| 51 | MESS_DEVINFO_PTR_CREATE, | |
| 52 | MESS_DEVINFO_PTR_STATUS, | |
| 53 | MESS_DEVINFO_PTR_DISPLAY, | |
| 54 | MESS_DEVINFO_PTR_PARTIAL_HASH, | |
| 55 | MESS_DEVINFO_PTR_VERIFY, | |
| 56 | MESS_DEVINFO_PTR_GET_DISPOSITIONS, | |
| 57 | MESS_DEVINFO_PTR_CREATE_OPTGUIDE, | |
| 58 | MESS_DEVINFO_PTR_CREATE_OPTSPEC, | |
| 59 | MESS_DEVINFO_PTR_VALIDITY_CHECK = MESS_DEVINFO_PTR_CREATE_OPTSPEC + MESS_DEVINFO_CREATE_OPTMAX, /* R/O: int (*validity_check)(const device_class *devclass) */ | |
| 60 | 60 | |
| 61 | DEVINFO_PTR_DEV_SPECIFIC = 0x18000, /* R/W: Device-specific values start here */ | |
| 61 | MESS_DEVINFO_PTR_DEV_SPECIFIC = 0x18000, /* R/W: Device-specific values start here */ | |
| 62 | 62 | |
| 63 | 63 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 64 | DEVINFO_STR_FIRST = 0x20000, | |
| 64 | MESS_DEVINFO_STR_FIRST = 0x20000, | |
| 65 | 65 | |
| 66 | DEVINFO_STR_DEV_FILE, | |
| 67 | DEVINFO_STR_DEV_TAG, | |
| 68 | DEVINFO_STR_FILE_EXTENSIONS, | |
| 66 | MESS_DEVINFO_STR_DEV_FILE, | |
| 67 | MESS_DEVINFO_STR_DEV_TAG, | |
| 68 | MESS_DEVINFO_STR_FILE_EXTENSIONS, | |
| 69 | 69 | |
| 70 | DEVINFO_STR_CREATE_OPTNAME, | |
| 71 | DEVINFO_STR_CREATE_OPTDESC = DEVINFO_STR_CREATE_OPTNAME + DEVINFO_CREATE_OPTMAX, | |
| 72 | DEVINFO_STR_CREATE_OPTEXTS = DEVINFO_STR_CREATE_OPTDESC + DEVINFO_CREATE_OPTMAX, | |
| 70 | MESS_DEVINFO_STR_CREATE_OPTNAME, | |
| 71 | MESS_DEVINFO_STR_CREATE_OPTDESC = MESS_DEVINFO_STR_CREATE_OPTNAME + MESS_DEVINFO_CREATE_OPTMAX, | |
| 72 | MESS_DEVINFO_STR_CREATE_OPTEXTS = MESS_DEVINFO_STR_CREATE_OPTDESC + MESS_DEVINFO_CREATE_OPTMAX, | |
| 73 | 73 | |
| 74 | DEVINFO_STR_NAME = DEVINFO_STR_CREATE_OPTEXTS + DEVINFO_CREATE_OPTMAX, | |
| 75 | DEVINFO_STR_SHORT_NAME = DEVINFO_STR_NAME + DEVINFO_CREATE_OPTMAX, | |
| 76 | DEVINFO_STR_DESCRIPTION = DEVINFO_STR_SHORT_NAME + MAX_DEV_INSTANCES, | |
| 74 | MESS_DEVINFO_STR_NAME = MESS_DEVINFO_STR_CREATE_OPTEXTS + MESS_DEVINFO_CREATE_OPTMAX, | |
| 75 | MESS_DEVINFO_STR_SHORT_NAME = MESS_DEVINFO_STR_NAME + MESS_DEVINFO_CREATE_OPTMAX, | |
| 76 | MESS_DEVINFO_STR_DESCRIPTION = MESS_DEVINFO_STR_SHORT_NAME + MAX_DEV_INSTANCES, | |
| 77 | 77 | |
| 78 | DEVINFO_STR_DEV_SPECIFIC = 0x28000, /* R/W: Device-specific values start here */ | |
| 78 | MESS_DEVINFO_STR_DEV_SPECIFIC = 0x28000, /* R/W: Device-specific values start here */ | |
| 79 | 79 | |
| 80 | 80 | /* --- the following bits of info are returned as doubles --- */ |
| 81 | DEVINFO_FLOAT_FIRST = 0x30000, | |
| 81 | MESS_DEVINFO_FLOAT_FIRST = 0x30000, | |
| 82 | 82 | |
| 83 | DEVINFO_FLOAT_DEV_SPECIFIC = 0x38000 /* R/W: Device-specific values start here */ | |
| 83 | MESS_DEVINFO_FLOAT_DEV_SPECIFIC = 0x38000 /* R/W: Device-specific values start here */ | |
| 84 | 84 | }; |
| 85 | 85 | |
| 86 | 86 | |
| r1711 | r1712 | |
| 140 | 140 | * |
| 141 | 141 | *************************************/ |
| 142 | 142 | |
| 143 | INLINE INT64 device_get_info_int(const device_class *devclass, UINT32 state) | |
| 143 | INLINE INT64 mess_device_get_info_int(const device_class *devclass, UINT32 state) | |
| 144 | 144 | { |
| 145 | 145 | union devinfo info; |
| 146 | 146 | info.i = 0; |
| r1711 | r1712 | |
| 150 | 150 | |
| 151 | 151 | |
| 152 | 152 | |
| 153 | INLINE void *device_get_info_ptr(const device_class *devclass, UINT32 state) | |
| 153 | INLINE void *mess_device_get_info_ptr(const device_class *devclass, UINT32 state) | |
| 154 | 154 | { |
| 155 | 155 | union devinfo info; |
| 156 | 156 | info.p = NULL; |
| r1711 | r1712 | |
| 158 | 158 | return info.p; |
| 159 | 159 | } |
| 160 | 160 | |
| 161 | INLINE genf *device_get_info_fct(const device_class *devclass, UINT32 state) | |
| 161 | INLINE genf *mess_device_get_info_fct(const device_class *devclass, UINT32 state) | |
| 162 | 162 | { |
| 163 | 163 | union devinfo info; |
| 164 | 164 | info.f = NULL; |
| r1711 | r1712 | |
| 166 | 166 | return info.f; |
| 167 | 167 | } |
| 168 | 168 | |
| 169 | INLINE const char *device_get_info_string(const device_class *devclass, UINT32 state) | |
| 169 | INLINE const char *mess_device_get_info_string(const device_class *devclass, UINT32 state) | |
| 170 | 170 | { |
| 171 | 171 | union devinfo info; |
| 172 | 172 | info.s = NULL; |
| r1711 | r1712 | |
| 174 | 174 | return info.s; |
| 175 | 175 | } |
| 176 | 176 | |
| 177 | INLINE double device_get_info_double(const device_class *devclass, UINT32 state) | |
| 177 | INLINE double mess_device_get_info_double(const device_class *devclass, UINT32 state) | |
| 178 | 178 | { |
| 179 | 179 | union devinfo info; |
| 180 | 180 | info.d = 0.0; |
| r1711 | r1712 | |
|---|---|---|
| 67 | 67 | { |
| 68 | 68 | |
| 69 | 69 | if (!CyclesPerFrame) |
| 70 | CyclesPerFrame = (int)(cpunum_get_clock(0) / Machine->screen[0].refresh); //totalcycles(); //_(int)(cpunum_get_clock(0) / Machine-> | |
| 70 | CyclesPerFrame = (int)(cpunum_get_clock(0) / Machine->screen[0].refresh); //totalcycles(); //_(int)(cpunum_get_clock(0) / Machine->config->frames_per_second); | |
| 71 | 71 | |
| 72 | 72 | if (NumEvents < TotalEvents) |
| 73 | 73 | { |
| r1711 | r1712 | |
|---|---|---|
| 33 | 33 | int (*validity_check)(const device_class *devclass); |
| 34 | 34 | |
| 35 | 35 | /* critical information */ |
| 36 | devtype = (iodevice_t) (int) device_get_info_int(devclass, DEVINFO_INT_TYPE); | |
| 37 | devcount = device_get_info_int(devclass, DEVINFO_INT_COUNT); | |
| 36 | devtype = (iodevice_t) (int) mess_device_get_info_int(devclass, MESS_DEVINFO_INT_TYPE); | |
| 37 | devcount = mess_device_get_info_int(devclass, MESS_DEVINFO_INT_COUNT); | |
| 38 | 38 | |
| 39 | 39 | /* sanity check device type */ |
| 40 | 40 | if (devtype >= IO_COUNT) |
| r1711 | r1712 | |
| 58 | 58 | * 2. Checks for duplicate extensions |
| 59 | 59 | * 3. Makes sure that all extensions are either lower case chars or numbers |
| 60 | 60 | */ |
| 61 | s = device_get_info_string(devclass, DEVINFO_STR_FILE_EXTENSIONS); | |
| 61 | s = mess_device_get_info_string(devclass, MESS_DEVINFO_STR_FILE_EXTENSIONS); | |
| 62 | 62 | if (!s) |
| 63 | 63 | { |
| 64 | 64 | mame_printf_error("%s: device type '%s' has null file extensions\n", devclass->gamedrv->name, device_typename(devtype)); |
| r1711 | r1712 | |
| 126 | 126 | /* fallthrough */ |
| 127 | 127 | |
| 128 | 128 | case IO_CARTSLOT: |
| 129 | if (!device_get_info_int(devclass, DEVINFO_INT_READABLE) | |
| 130 | || device_get_info_int(devclass, DEVINFO_INT_WRITEABLE) | |
| 131 | || device_get_info_int(devclass, DEVINFO_INT_CREATABLE)) | |
| 129 | if (!mess_device_get_info_int(devclass, MESS_DEVINFO_INT_READABLE) | |
| 130 | || mess_device_get_info_int(devclass, MESS_DEVINFO_INT_WRITEABLE) | |
| 131 | || mess_device_get_info_int(devclass, MESS_DEVINFO_INT_CREATABLE)) | |
| 132 | 132 | { |
| 133 | 133 | mame_printf_error("%s: devices of type '%s' has invalid open modes\n", devclass->gamedrv->name, device_typename(devtype)); |
| 134 | 134 | error = 1; |
| r1711 | r1712 | |
| 140 | 140 | } |
| 141 | 141 | |
| 142 | 142 | /* check creation options */ |
| 143 | optcount = device_get_info_int(devclass, DEVINFO_INT_CREATE_OPTCOUNT); | |
| 144 | if ((optcount < 0) || (optcount >= DEVINFO_CREATE_OPTMAX)) | |
| 143 | optcount = mess_device_get_info_int(devclass, MESS_DEVINFO_INT_CREATE_OPTCOUNT); | |
| 144 | if ((optcount < 0) || (optcount >= MESS_DEVINFO_CREATE_OPTMAX)) | |
| 145 | 145 | { |
| 146 | 146 | mame_printf_error("%s: device type '%s' has an invalid creation optcount\n", devclass->gamedrv->name, device_typename(devtype)); |
| 147 | 147 | error = 1; |
| r1711 | r1712 | |
| 150 | 150 | { |
| 151 | 151 | for (i = 0; i < (int) optcount; i++) |
| 152 | 152 | { |
| 153 | if (!device_get_info_string(devclass, DEVINFO_STR_CREATE_OPTNAME + i)) | |
| 153 | if (!mess_device_get_info_string(devclass, MESS_DEVINFO_STR_CREATE_OPTNAME + i)) | |
| 154 | 154 | { |
| 155 | 155 | mame_printf_error("%s: device type '%s' create option #%d: name not present\n", |
| 156 | 156 | devclass->gamedrv->name, device_typename(devtype), i); |
| 157 | 157 | error = 1; |
| 158 | 158 | } |
| 159 | if (!device_get_info_string(devclass, DEVINFO_STR_CREATE_OPTDESC + i)) | |
| 159 | if (!mess_device_get_info_string(devclass, MESS_DEVINFO_STR_CREATE_OPTDESC + i)) | |
| 160 | 160 | { |
| 161 | 161 | mame_printf_error("%s: device type '%s' create option #%d: description not present\n", |
| 162 | 162 | devclass->gamedrv->name, device_typename(devtype), i); |
| 163 | 163 | error = 1; |
| 164 | 164 | } |
| 165 | if (!device_get_info_string(devclass, DEVINFO_STR_CREATE_OPTEXTS + i)) | |
| 165 | if (!mess_device_get_info_string(devclass, MESS_DEVINFO_STR_CREATE_OPTEXTS + i)) | |
| 166 | 166 | { |
| 167 | 167 | mame_printf_error("%s: device type '%s' create option #%d: extensions not present\n", |
| 168 | 168 | devclass->gamedrv->name, device_typename(devtype), i); |
| r1711 | r1712 | |
| 172 | 172 | } |
| 173 | 173 | |
| 174 | 174 | /* is there a custom validity check? */ |
| 175 | validity_check = (int (*)(const device_class *)) device_get_info_fct(devclass, DEVINFO_PTR_VALIDITY_CHECK); | |
| 175 | validity_check = (int (*)(const device_class *)) mess_device_get_info_fct(devclass, MESS_DEVINFO_PTR_VALIDITY_CHECK); | |
| 176 | 176 | if (validity_check) |
| 177 | 177 | { |
| 178 | 178 | if (validity_check(devclass)) |
| r1711 | r1712 | |
|---|---|---|
| 799 | 799 | s = filter; |
| 800 | 800 | |
| 801 | 801 | // common image types |
| 802 | file_extensions = device_get_info_string(&dev->devclass, DEVINFO_STR_FILE_EXTENSIONS); | |
| 802 | file_extensions = mess_device_get_info_string(&dev->devclass, MESS_DEVINFO_STR_FILE_EXTENSIONS); | |
| 803 | 803 | s += add_filter_entry(filter, filter_len, "Common image types", file_extensions); |
| 804 | 804 | |
| 805 | 805 | // all files |
| r1711 | r1712 | |
|---|---|---|
| 15 | 15 | #include <stdlib.h> /* For malloc and free */ |
| 16 | 16 | #include <string.h> |
| 17 | 17 | |
| 18 | #include "driver.h" | |
| 18 | 19 | #include "bitmask.h" |
| 19 | 20 | #include "TreeView.h" |
| 20 | 21 | #include "mui_util.h" |
| r1711 | r1712 | |
|---|---|---|
| 178 | 178 | devclass = &pPickerInfo->ppIndex[nIndex]->devclass; |
| 179 | 179 | if (!devclass->gamedrv) |
| 180 | 180 | return -1; |
| 181 | return (iodevice_t) (int) device_get_info_int(devclass, DEVINFO_INT_TYPE); | |
| 181 | return (iodevice_t) (int) mess_device_get_info_int(devclass, MESS_DEVINFO_INT_TYPE); | |
| 182 | 182 | } |
| 183 | 183 | |
| 184 | 184 | |
| r1711 | r1712 | |
| 237 | 237 | iodevice_t type; |
| 238 | 238 | device_partialhash_handler partialhash; |
| 239 | 239 | |
| 240 | type = (iodevice_t) (int) device_get_info_int(&pFileInfo->devclass, DEVINFO_INT_TYPE); | |
| 241 | partialhash = (device_partialhash_handler) device_get_info_fct(&pFileInfo->devclass, DEVINFO_PTR_PARTIAL_HASH); | |
| 240 | type = (iodevice_t) (int) mess_device_get_info_int(&pFileInfo->devclass, MESS_DEVINFO_INT_TYPE); | |
| 241 | partialhash = (device_partialhash_handler) mess_device_get_info_fct(&pFileInfo->devclass, MESS_DEVINFO_PTR_PARTIAL_HASH); | |
| 242 | 242 | |
| 243 | 243 | nFunctions = hashfile_functions_used(pPickerInfo->pHashFile, type); |
| 244 | 244 | |
| r1711 | r1712 | |
| 363 | 363 | // have already been calculated |
| 364 | 364 | if ((pPickerInfo->pHashFile != NULL) && (pFileInfo->devclass.get_info != NULL)) |
| 365 | 365 | { |
| 366 | type = (iodevice_t) (int) device_get_info_int(&pFileInfo->devclass, DEVINFO_INT_TYPE); | |
| 366 | type = (iodevice_t) (int) mess_device_get_info_int(&pFileInfo->devclass, MESS_DEVINFO_INT_TYPE); | |
| 367 | 367 | if (type < IO_COUNT) |
| 368 | 368 | nHashFunctionsUsed = hashfile_functions_used(pPickerInfo->pHashFile, type); |
| 369 | 369 | nCalculatedHashes = hash_data_used_functions(pFileInfo->szHash); |
| r1711 | r1712 | |
| 447 | 447 | |
| 448 | 448 | // set up device and CRC, if specified |
| 449 | 449 | pInfo->devclass = devclass; |
| 450 | if (devclass.gamedrv && device_get_info_fct(&devclass, DEVINFO_PTR_PARTIAL_HASH)) | |
| 450 | if (devclass.gamedrv && mess_device_get_info_fct(&devclass, MESS_DEVINFO_PTR_PARTIAL_HASH)) | |
| 451 | 451 | nCrc = 0; |
| 452 | 452 | if (nCrc != 0) |
| 453 | 453 | snprintf(pInfo->szHash, sizeof(pInfo->szHash) / sizeof(pInfo->szHash[0]), "c:%08x#", nCrc); |
| r1711 | r1712 | |
| 728 | 728 | pFileInfo = pPickerInfo->ppIndex[pPickerInfo->nCurrentPosition]; |
| 729 | 729 | if (!pFileInfo->bHashRealized) |
| 730 | 730 | { |
| 731 | type = (iodevice_t) (int) device_get_info_int(&pFileInfo->devclass, DEVINFO_INT_TYPE); | |
| 731 | type = (iodevice_t) (int) mess_device_get_info_int(&pFileInfo->devclass, MESS_DEVINFO_INT_TYPE); | |
| 732 | 732 | if (hashfile_functions_used(pPickerInfo->pHashFile, type)) |
| 733 | 733 | { |
| 734 | 734 | // only calculate the hash if it is appropriate for this device |
| r1711 | r1712 | |
|---|---|---|
| 8 | 8 | #include <wingdi.h> |
| 9 | 9 | #include <winuser.h> |
| 10 | 10 | |
| 11 | #include "driver.h" | |
| 11 | 12 | #include "mui_util.h" |
| 12 | 13 | #include "mui_opts.h" |
| 13 | 14 | #include "optionsms.h" |
| 14 | 15 | #include "emuopts.h" |
| 15 | #include "driver.h" | |
| 16 | 16 | #include "messopts.h" |
| 17 | 17 | #include "osd/windows/configms.h" |
| 18 | 18 | #include "winmain.h" |
| r1711 | r1712 | |
|---|---|---|
| 92 | 92 | devclass.get_info = handlers[i]; |
| 93 | 93 | |
| 94 | 94 | /* how many of this device exist? */ |
| 95 | count = (int) device_get_info_int(&devclass, DEVINFO_INT_COUNT); | |
| 95 | count = (int) mess_device_get_info_int(&devclass, MESS_DEVINFO_INT_COUNT); | |
| 96 | 96 | |
| 97 | 97 | /* loop on each device instance */ |
| 98 | 98 | for (j = 0; j < count; j++) |
| r1711 | r1712 | |
| 215 | 215 | assert_always(options_get_bool(opts, OPTION_ADDED_DEVICE_OPTIONS), "extract_device_options_for_device() called without device options"); |
| 216 | 216 | |
| 217 | 217 | /* identify the correct image */ |
| 218 | dev_tag = device_get_info_string(devclass, DEVINFO_STR_DEV_TAG); | |
| 218 | dev_tag = mess_device_get_info_string(devclass, MESS_DEVINFO_STR_DEV_TAG); | |
| 219 | 219 | if (dev_tag != NULL) |
| 220 | 220 | { |
| 221 | 221 | image = image_from_devtag_and_index(dev_tag, device_index); |
| 222 | 222 | } |
| 223 | 223 | else |
| 224 | 224 | { |
| 225 | dev_type = (iodevice_t) (int) device_get_info_int(devclass, DEVINFO_INT_TYPE); | |
| 225 | dev_type = (iodevice_t) (int) mess_device_get_info_int(devclass, MESS_DEVINFO_INT_TYPE); | |
| 226 | 226 | image = image_from_devtype_and_index(dev_type, device_index); |
| 227 | 227 | } |
| 228 | 228 |
| r1711 | r1712 | |
|---|---|---|
| 329 | 329 | switch(state) |
| 330 | 330 | { |
| 331 | 331 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 332 | case DEVINFO_INT_COUNT: info->i = 2; break; | |
| 332 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 333 | 333 | |
| 334 | 334 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 335 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "crt"); break; | |
| 335 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "crt"); break; | |
| 336 | 336 | |
| 337 | 337 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 338 | case DEVINFO_PTR_INIT: info->init = device_init_cbm_rom; break; | |
| 339 | case DEVINFO_PTR_LOAD: info->load = device_load_cbm_rom; break; | |
| 340 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_cbm_rom; break; | |
| 338 | case MESS_DEVINFO_PTR_INIT: info->init = device_init_cbm_rom; break; | |
| 339 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_cbm_rom; break; | |
| 340 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_cbm_rom; break; | |
| 341 | 341 | |
| 342 | 342 | default: cartslot_device_getinfo(devclass, state, info); |
| 343 | 343 | } |
| r1711 | r1712 | |
|---|---|---|
| 249 | 249 | cbm_ieee_open(); |
| 250 | 250 | } |
| 251 | 251 | |
| 252 | static void cbmb_display_enable_changed(int display_enabled) { | |
| 252 | static void cbmb_display_enable_changed(running_machine *machine, mc6845_t *mc6845, int display_enabled) | |
| 253 | { | |
| 253 | 254 | } |
| 254 | 255 | |
| 255 | 256 | //static const struct mscrtc6845_config cbm600_crtc= { 1600000 /*?*/, cbmb_vh_cursor }; |
| r1711 | r1712 | |
|---|---|---|
| 913 | 913 | switch(state) |
| 914 | 914 | { |
| 915 | 915 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 916 | case DEVINFO_INT_TYPE: info->i = IO_CASSETTE; break; | |
| 917 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 918 | case DEVINFO_INT_WRITEABLE: info->i = 0; break; | |
| 919 | case DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 920 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 921 | case DEVINFO_INT_RESET_ON_LOAD: info->i = 1; break; | |
| 916 | case MESS_DEVINFO_INT_TYPE: info->i = IO_CASSETTE; break; | |
| 917 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 918 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 0; break; | |
| 919 | case MESS_DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 920 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 921 | case MESS_DEVINFO_INT_RESET_ON_LOAD: info->i = 1; break; | |
| 922 | 922 | |
| 923 | 923 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 924 | case DEVINFO_PTR_LOAD: info->load = device_load_kim1_cassette; break; | |
| 924 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_kim1_cassette; break; | |
| 925 | 925 | |
| 926 | 926 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 927 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "kim1"); break; | |
| 927 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "kim1"); break; | |
| 928 | 928 | } |
| 929 | 929 | } |
| 930 | 930 |
| r1711 | r1712 | |
|---|---|---|
| 407 | 407 | switch(state) |
| 408 | 408 | { |
| 409 | 409 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 410 | case DEVINFO_INT_TYPE: info->i = IO_FLOPPY; break; | |
| 411 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 412 | case DEVINFO_INT_WRITEABLE: info->i = 0; break; | |
| 413 | case DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 414 | case DEVINFO_INT_COUNT: info->i = 2; break; | |
| 410 | case MESS_DEVINFO_INT_TYPE: info->i = IO_FLOPPY; break; | |
| 411 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 412 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 0; break; | |
| 413 | case MESS_DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 414 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 415 | 415 | |
| 416 | 416 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 417 | case DEVINFO_PTR_INIT: info->init = device_init_cbm_drive; break; | |
| 418 | case DEVINFO_PTR_EXIT: info->exit = device_exit_cbm_drive; break; | |
| 419 | case DEVINFO_PTR_LOAD: info->load = device_load_cbm_drive; break; | |
| 417 | case MESS_DEVINFO_PTR_INIT: info->init = device_init_cbm_drive; break; | |
| 418 | case MESS_DEVINFO_PTR_EXIT: info->exit = device_exit_cbm_drive; break; | |
| 419 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_cbm_drive; break; | |
| 420 | 420 | |
| 421 | 421 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 422 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "d64"); break; | |
| 422 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "d64"); break; | |
| 423 | 423 | } |
| 424 | 424 | } |
| 425 | 425 |
| r1711 | r1712 | |
|---|---|---|
| 1073 | 1073 | switch(state) |
| 1074 | 1074 | { |
| 1075 | 1075 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 1076 | case DEVINFO_INT_TYPE: info->i = IO_FLOPPY; break; | |
| 1077 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 1078 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 1079 | case DEVINFO_INT_WRITEABLE: info->i = 0; break; | |
| 1080 | case DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 1081 | case DEVINFO_INT_RESET_ON_LOAD: info->i = 1; break; | |
| 1076 | case MESS_DEVINFO_INT_TYPE: info->i = IO_FLOPPY; break; | |
| 1077 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 1078 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 1079 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 0; break; | |
| 1080 | case MESS_DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 1081 | case MESS_DEVINFO_INT_RESET_ON_LOAD: info->i = 1; break; | |
| 1082 | 1082 | |
| 1083 | 1083 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 1084 | case DEVINFO_PTR_LOAD: info->load = device_load_vc1541; break; | |
| 1085 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_vc1541; break; | |
| 1084 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_vc1541; break; | |
| 1085 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_vc1541; break; | |
| 1086 | 1086 | case DEVINFO_PTR_VC1541_CONFIG: info->f = (genf *) vc1541_config; break; |
| 1087 | 1087 | |
| 1088 | 1088 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 1089 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "d64"); break; | |
| 1089 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "d64"); break; | |
| 1090 | 1090 | } |
| 1091 | 1091 | } |
| 1092 | 1092 |
| r1711 | r1712 | |
|---|---|---|
| 64 | 64 | { |
| 65 | 65 | CurrentScan++; |
| 66 | 66 | |
| 67 | if (CurrentScan == machine-> | |
| 67 | if (CurrentScan == machine->config->cpu[0].vblank_interrupts_per_frame) | |
| 68 | 68 | CurrentScan = 0; |
| 69 | 69 | |
| 70 | 70 | if (CurrentScan < 204) astrocade_copy_line(CurrentScan); |
| r1711 | r1712 | |
|---|---|---|
| 495 | 495 | } |
| 496 | 496 | |
| 497 | 497 | //static const struct mscrtc6845_config crtc_pet = { 800000 /*?*/}; |
| 498 | static void pet_display_enable_changed(int display_enabled) { | |
| 498 | static void pet_display_enable_changed(running_machine *machine, mc6845_t *mc6845, int display_enabled) | |
| 499 | { | |
| 499 | 500 | } |
| 500 | 501 | |
| 501 | 502 | static const mc6845_interface crtc_pet40 = { |
| r1711 | r1712 | |
|---|---|---|
| 95 | 95 | static void at_map_vga_memory(offs_t begin, offs_t end, read8_handler rh, write8_handler wh) |
| 96 | 96 | { |
| 97 | 97 | int buswidth; |
| 98 | buswidth = cputype_databus_width(Machine-> | |
| 98 | buswidth = cputype_databus_width(Machine->config->cpu[0].type, ADDRESS_SPACE_PROGRAM); | |
| 99 | 99 | switch(buswidth) |
| 100 | 100 | { |
| 101 | 101 | case 8: |
| r1711 | r1712 | |
|---|---|---|
| 374 | 374 | switch(state) |
| 375 | 375 | { |
| 376 | 376 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 377 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 377 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 378 | 378 | |
| 379 | 379 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 380 | 380 | case DEVINFO_PTR_IDEDRIVE_INTERFACE: info->p = (void *) &ti99_ide_interface; break; |
| 381 | 381 | |
| 382 | 382 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 383 | case DEVINFO_STR_DEV_TAG: strcpy(info->s = device_temp_str(), "99_ide"); break; | |
| 383 | case MESS_DEVINFO_STR_DEV_TAG: strcpy(info->s = device_temp_str(), "99_ide"); break; | |
| 384 | 384 | |
| 385 | 385 | default: ide_harddisk_device_getinfo(devclass, state, info); break; |
| 386 | 386 | } |
| r1711 | r1712 | |
|---|---|---|
| 752 | 752 | switch(state) |
| 753 | 753 | { |
| 754 | 754 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 755 | case DEVINFO_INT_TYPE: info->i = IO_FLOPPY; break; | |
| 756 | case DEVINFO_INT_COUNT: info->i = NUM_DRIVES; break; | |
| 757 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 758 | case DEVINFO_INT_WRITEABLE: info->i = 0; break; | |
| 759 | case DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 755 | case MESS_DEVINFO_INT_TYPE: info->i = IO_FLOPPY; break; | |
| 756 | case MESS_DEVINFO_INT_COUNT: info->i = NUM_DRIVES; break; | |
| 757 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 758 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 0; break; | |
| 759 | case MESS_DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 760 | 760 | |
| 761 | 761 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 762 | case DEVINFO_PTR_INIT: info->init = device_init_amiga_fdc; break; | |
| 763 | case DEVINFO_PTR_LOAD: info->load = device_load_amiga_fdc; break; | |
| 764 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_amiga_fdc; break; | |
| 762 | case MESS_DEVINFO_PTR_INIT: info->init = device_init_amiga_fdc; break; | |
| 763 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_amiga_fdc; break; | |
| 764 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_amiga_fdc; break; | |
| 765 | 765 | |
| 766 | 766 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 767 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "adf"); break; | |
| 767 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "adf"); break; | |
| 768 | 768 | } |
| 769 | 769 | } |
| r1711 | r1712 | |
|---|---|---|
| 768 | 768 | for (i = 0; i < 32*16; i++) |
| 769 | 769 | { |
| 770 | 770 | microtan_chunky_buffer[i] = (snapshot_buff[base+i/8] >> (i&7)) & 1; |
| 771 | dirtybuffer[i] = 1; | |
| 772 | 771 | } |
| 773 | 772 | base += 64; |
| 774 | 773 | microtan_set_cpu_regs(snapshot_buff, base); |
| r1711 | r1712 | |
| 838 | 837 | for (i = 0; i < 32*16; i++) |
| 839 | 838 | { |
| 840 | 839 | microtan_chunky_buffer[i] = (snapshot_buff[base+i/8] >> (i&7)) & 1; |
| 841 | dirtybuffer[i] = 1; | |
| 842 | 840 | } |
| 843 | 841 | base += 64; |
| 844 | 842 |
| r1711 | r1712 | |
|---|---|---|
| 550 | 550 | } |
| 551 | 551 | } |
| 552 | 552 | |
| 553 | /* font width change ? (32<->64 characters per line) */ | |
| 554 | if( changes & 0x08 ) | |
| 555 | memset(dirtybuffer, 1, 64 * 16); | |
| 556 | ||
| 557 | 553 | trs80_port_ff = data; |
| 558 | 554 | } |
| 559 | 555 |
| r1711 | r1712 | |
|---|---|---|
| 119 | 119 | decodegfx(Machine->gfx[gfx_index] , (UINT8 *)¤t_vdp->genesis_vdp_vram, 0, 1); |
| 120 | 120 | |
| 121 | 121 | /* set the color information */ |
| 122 | Machine->gfx[gfx_index]->colortable = Machine->remapped_colortable; | |
| 123 | 122 | Machine->gfx[gfx_index]->total_colors = 0x4; |
| 124 | 123 | current_vdp -> genesis_vdp_index = gfx_index; |
| 125 | 124 |
| r1711 | r1712 | |
|---|---|---|
| 429 | 429 | return INIT_PASS; |
| 430 | 430 | } |
| 431 | 431 | |
| 432 | static void svi806_crtc6845_update_row(mame_bitmap *bitmap, const rectangle *cliprect, UINT16 ma, | |
| 432 | static void svi806_crtc6845_update_row(running_machine *machine, mc6845_t *mc6845, mame_bitmap *bitmap, const rectangle *cliprect, UINT16 ma, | |
| 433 | 433 | UINT8 ra, UINT16 y, UINT8 x_count, void *param ) { |
| 434 | 434 | int i; |
| 435 | 435 | |
| 436 | for( i = 0; i < x_count; i++ ) { | |
| 436 | for( i = 0; i < x_count; i++ ) | |
| 437 | { | |
| 437 | 438 | int j; |
| 438 | 439 | UINT8 data = svi.svi806_gfx[ svi.svi806_ram[ ( ma + i ) & 0x7FF ] * 16 + ra ]; |
| 439 | 440 | |
| 440 | for( j=0; j < 8; j++ ) { | |
| 441 | for( j=0; j < 8; j++ ) | |
| 442 | { | |
| 441 | 443 | *BITMAP_ADDR16(bitmap, y, i * 8 + j ) = TMS9928A_PALETTE_SIZE + ( ( data & 0x80 ) ? 1 : 0 ); |
| 442 | 444 | data = data << 1; |
| 443 | 445 | } |
| r1711 | r1712 | |
|---|---|---|
| 152 | 152 | static void pc_map_vga_memory(offs_t begin, offs_t end, read8_handler rh, write8_handler wh) |
| 153 | 153 | { |
| 154 | 154 | int buswidth; |
| 155 | buswidth = cputype_databus_width(Machine-> | |
| 155 | buswidth = cputype_databus_width(Machine->config->cpu[0].type, ADDRESS_SPACE_PROGRAM); | |
| 156 | 156 | switch(buswidth) |
| 157 | 157 | { |
| 158 | 158 | case 8: |
| r1711 | r1712 | |
|---|---|---|
| 1100 | 1100 | switch(state) |
| 1101 | 1101 | { |
| 1102 | 1102 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 1103 | case DEVINFO_INT_TYPE: info->i = IO_CASSETTE; break; | |
| 1104 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 1103 | case MESS_DEVINFO_INT_TYPE: info->i = IO_CASSETTE; break; | |
| 1104 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 1105 | 1105 | |
| 1106 | 1106 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 1107 | case DEVINFO_PTR_LOAD: info->load = device_load_vc20_tape; break; | |
| 1108 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_vc20_tape; break; | |
| 1107 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_vc20_tape; break; | |
| 1108 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_vc20_tape; break; | |
| 1109 | 1109 | |
| 1110 | 1110 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 1111 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "wav"); break; | |
| 1111 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "wav"); break; | |
| 1112 | 1112 | } |
| 1113 | 1113 | } |
| 1114 | 1114 |
| r1711 | r1712 | |
|---|---|---|
| 330 | 330 | if( laser_bank[bank] == laser_video_bank && mem[offs] != data ) |
| 331 | 331 | { |
| 332 | 332 | logerror("bank #%d write to videoram [$%05X] $%02X\n", bank+1, offs, data); |
| 333 | dirtybuffer[offs&0x3fff] = 1; | |
| 334 | 333 | } |
| 335 | 334 | mem[offs] = data; |
| 336 | 335 | break; |
| r1711 | r1712 | |
|---|---|---|
| 915 | 915 | { |
| 916 | 916 | switch ( state ) |
| 917 | 917 | { |
| 918 | case DEVINFO_INT_TYPE: | |
| 918 | case MESS_DEVINFO_INT_TYPE: | |
| 919 | 919 | info->i = IO_FLOPPY; |
| 920 | 920 | break; |
| 921 | case DEVINFO_INT_READABLE: | |
| 921 | case MESS_DEVINFO_INT_READABLE: | |
| 922 | 922 | info->i = 1; |
| 923 | 923 | break; |
| 924 | case DEVINFO_INT_WRITEABLE: | |
| 924 | case MESS_DEVINFO_INT_WRITEABLE: | |
| 925 | 925 | info->i = 1; |
| 926 | 926 | break; |
| 927 | case DEVINFO_INT_CREATABLE: | |
| 927 | case MESS_DEVINFO_INT_CREATABLE: | |
| 928 | 928 | info->i = 1; |
| 929 | 929 | break; |
| 930 | case DEVINFO_PTR_INIT: | |
| 930 | case MESS_DEVINFO_PTR_INIT: | |
| 931 | 931 | info->init = thom_floppy_init; |
| 932 | 932 | break; |
| 933 | case DEVINFO_PTR_LOAD: | |
| 933 | case MESS_DEVINFO_PTR_LOAD: | |
| 934 | 934 | info->load = thom_floppy_load; |
| 935 | 935 | break; |
| 936 | case DEVINFO_PTR_UNLOAD: | |
| 936 | case MESS_DEVINFO_PTR_UNLOAD: | |
| 937 | 937 | info->unload = thom_floppy_unload; |
| 938 | 938 | break; |
| 939 | case DEVINFO_PTR_CREATE: | |
| 939 | case MESS_DEVINFO_PTR_CREATE: | |
| 940 | 940 | info->create = thom_floppy_create; |
| 941 | 941 | break; |
| 942 | case DEVINFO_INT_COUNT: | |
| 942 | case MESS_DEVINFO_INT_COUNT: | |
| 943 | 943 | info->i = 4; |
| 944 | 944 | break; |
| 945 | case DEVINFO_STR_NAME+0: | |
| 946 | case DEVINFO_STR_NAME+1: | |
| 947 | case DEVINFO_STR_NAME+2: | |
| 948 | case DEVINFO_STR_NAME+3: | |
| 945 | case MESS_DEVINFO_STR_NAME+0: | |
| 946 | case MESS_DEVINFO_STR_NAME+1: | |
| 947 | case MESS_DEVINFO_STR_NAME+2: | |
| 948 | case MESS_DEVINFO_STR_NAME+3: | |
| 949 | 949 | strcpy( info->s = device_temp_str(), "floppydisk0" ); |
| 950 | info->s[ strlen( info->s ) - 1 ] += state - DEVINFO_STR_NAME; | |
| 950 | info->s[ strlen( info->s ) - 1 ] += state - MESS_DEVINFO_STR_NAME; | |
| 951 | 951 | break; |
| 952 | case DEVINFO_STR_SHORT_NAME+0: | |
| 953 | case DEVINFO_STR_SHORT_NAME+1: | |
| 954 | case DEVINFO_STR_SHORT_NAME+2: | |
| 955 | case DEVINFO_STR_SHORT_NAME+3: | |
| 952 | case MESS_DEVINFO_STR_SHORT_NAME+0: | |
| 953 | case MESS_DEVINFO_STR_SHORT_NAME+1: | |
| 954 | case MESS_DEVINFO_STR_SHORT_NAME+2: | |
| 955 | case MESS_DEVINFO_STR_SHORT_NAME+3: | |
| 956 | 956 | strcpy( info->s = device_temp_str(), "flop0"); |
| 957 | info->s[ strlen( info->s ) - 1 ] += state - DEVINFO_STR_SHORT_NAME; | |
| 957 | info->s[ strlen( info->s ) - 1 ] += state - MESS_DEVINFO_STR_SHORT_NAME; | |
| 958 | 958 | break; |
| 959 | case DEVINFO_STR_DESCRIPTION+0: | |
| 960 | case DEVINFO_STR_DESCRIPTION+1: | |
| 961 | case DEVINFO_STR_DESCRIPTION+2: | |
| 962 | case DEVINFO_STR_DESCRIPTION+3: | |
| 959 | case MESS_DEVINFO_STR_DESCRIPTION+0: | |
| 960 | case MESS_DEVINFO_STR_DESCRIPTION+1: | |
| 961 | case MESS_DEVINFO_STR_DESCRIPTION+2: | |
| 962 | case MESS_DEVINFO_STR_DESCRIPTION+3: | |
| 963 | 963 | strcpy( info->s = device_temp_str(), "Floppy #0" ); |
| 964 | info->s[ strlen( info->s ) - 1 ] += state - DEVINFO_STR_DESCRIPTION; | |
| 964 | info->s[ strlen( info->s ) - 1 ] += state - MESS_DEVINFO_STR_DESCRIPTION; | |
| 965 | 965 | break; |
| 966 | case DEVINFO_STR_DEV_FILE: | |
| 966 | case MESS_DEVINFO_STR_DEV_FILE: | |
| 967 | 967 | strcpy( info->s = device_temp_str(), __FILE__ ); |
| 968 | 968 | break; |
| 969 | case DEVINFO_STR_FILE_EXTENSIONS: | |
| 969 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: | |
| 970 | 970 | strcpy( info->s = device_temp_str(), "fd,qd,sap" ); |
| 971 | 971 | break; |
| 972 | 972 | } |
| r1711 | r1712 | |
|---|---|---|
| 990 | 990 | { |
| 991 | 991 | switch ( state ) |
| 992 | 992 | { |
| 993 | case DEVINFO_INT_COUNT: | |
| 993 | case MESS_DEVINFO_INT_COUNT: | |
| 994 | 994 | info->i = 1; |
| 995 | 995 | break; |
| 996 | case DEVINFO_PTR_CASSETTE_FORMATS: | |
| 996 | case MESS_DEVINFO_PTR_CASSETTE_FORMATS: | |
| 997 | 997 | info->p = (void *) to7_cassette_formats; |
| 998 | 998 | break; |
| 999 | case DEVINFO_INT_CASSETTE_DEFAULT_STATE: | |
| 999 | case MESS_DEVINFO_INT_CASSETTE_DEFAULT_STATE: | |
| 1000 | 1000 | info->i = |
| 1001 | 1001 | CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED; |
| 1002 | 1002 | break; |
| 1003 | case DEVINFO_STR_DEV_FILE: | |
| 1003 | case MESS_DEVINFO_STR_DEV_FILE: | |
| 1004 | 1004 | strcpy( info->s = device_temp_str(), __FILE__ ); |
| 1005 | 1005 | break; |
| 1006 | 1006 | default: |
| 1007 | 1007 | cassette_device_getinfo( devclass, state, info ); |
| 1008 | break; | |
| 1008 | 1009 | } |
| 1009 | 1010 | } |
| 1010 | 1011 | |
| r1711 | r1712 | |
| 1013 | 1014 | { |
| 1014 | 1015 | switch ( state ) |
| 1015 | 1016 | { |
| 1016 | case DEVINFO_INT_COUNT: | |
| 1017 | case MESS_DEVINFO_INT_COUNT: | |
| 1017 | 1018 | info->i = 1; |
| 1018 | 1019 | break; |
| 1019 | case DEVINFO_PTR_CASSETTE_FORMATS: | |
| 1020 | case MESS_DEVINFO_PTR_CASSETTE_FORMATS: | |
| 1020 | 1021 | info->p = (void *) mo5_cassette_formats; |
| 1021 | 1022 | break; |
| 1022 | case DEVINFO_INT_CASSETTE_DEFAULT_STATE: | |
| 1023 | case MESS_DEVINFO_INT_CASSETTE_DEFAULT_STATE: | |
| 1023 | 1024 | info->i = |
| 1024 | 1025 | CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED; |
| 1025 | 1026 | break; |
| 1026 | case DEVINFO_STR_DEV_FILE: | |
| 1027 | case MESS_DEVINFO_STR_DEV_FILE: | |
| 1027 | 1028 | strcpy( info->s = device_temp_str(), __FILE__ ); |
| 1028 | 1029 | break; |
| 1029 | 1030 | default: |
| r1711 | r1712 | |
|---|---|---|
| 317 | 317 | SOUNDS += SID6581 |
| 318 | 318 | SOUNDS += SID8580 |
| 319 | 319 | SOUNDS += SP0256 |
| 320 | SOUNDS += AICA | |
| 320 | 321 | |
| 321 | 322 | |
| 322 | 323 |
| r1711 | r1712 | |
|---|---|---|
| 186 | 186 | MDRV_MACHINE_RESET(vip) |
| 187 | 187 | |
| 188 | 188 | /* video hardware */ |
| 189 | MDRV_SCREEN_ADD("main", | |
| 189 | MDRV_SCREEN_ADD("main", RASTER) | |
| 190 | 190 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 191 | 191 | MDRV_SCREEN_RAW_PARAMS(XTAL/2, CDP1861_SCREEN_WIDTH, CDP1861_HBLANK_END, CDP1861_HBLANK_START, CDP1861_TOTAL_SCANLINES, CDP1861_SCANLINE_VBLANK_END, CDP1861_SCANLINE_VBLANK_START) |
| 192 | 192 | |
| r1711 | r1712 | |
| 231 | 231 | switch(state) |
| 232 | 232 | { |
| 233 | 233 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 234 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "cos"); break; | |
| 234 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "cos"); break; | |
| 235 | 235 | |
| 236 | 236 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 237 | case DEVINFO_PTR_QUICKLOAD_LOAD: info->f = (genf *) quickload_load_vip; break; | |
| 237 | case MESS_DEVINFO_PTR_QUICKLOAD_LOAD: info->f = (genf *) quickload_load_vip; break; | |
| 238 | 238 | |
| 239 | 239 | default: quickload_device_getinfo(devclass, state, info); break; |
| 240 | 240 | } |
| r1711 | r1712 | |
| 246 | 246 | switch(state) |
| 247 | 247 | { |
| 248 | 248 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 249 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 249 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 250 | 250 | |
| 251 | 251 | default: cassette_device_getinfo(devclass, state, info); break; |
| 252 | 252 | } |
| r1711 | r1712 | |
|---|---|---|
| 131 | 131 | MDRV_CPU_IO_MAP(wswan_io, 0) |
| 132 | 132 | MDRV_CPU_VBLANK_INT(wswan_scanline_interrupt, 159) /* 1 int each scanline */ |
| 133 | 133 | |
| 134 | MDRV_SCREEN_ADD("main", RASTER) | |
| 134 | 135 | MDRV_SCREEN_REFRESH_RATE(75) |
| 135 | 136 | MDRV_SCREEN_VBLANK_TIME(0) |
| 136 | 137 | MDRV_INTERLEAVE(1) |
| r1711 | r1712 | |
| 143 | 144 | MDRV_VIDEO_START( generic_bitmapped ) |
| 144 | 145 | MDRV_VIDEO_UPDATE( generic_bitmapped ) |
| 145 | 146 | |
| 146 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 147 | 147 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 148 | 148 | MDRV_SCREEN_SIZE( WSWAN_X_PIXELS, WSWAN_X_PIXELS ) |
| 149 | 149 | MDRV_SCREEN_VISIBLE_AREA(0*8, WSWAN_X_PIXELS - 1, 0, WSWAN_X_PIXELS - 1) |
| 150 | 150 | MDRV_GFXDECODE(wswan) |
| 151 | 151 | MDRV_PALETTE_LENGTH(16) |
| 152 | MDRV_COLORTABLE_LENGTH(4*16) | |
| 153 | 152 | MDRV_PALETTE_INIT(wswan) |
| 154 | 153 | |
| 155 | 154 | /* sound hardware */ |
| r1711 | r1712 | |
| 175 | 174 | switch(state) |
| 176 | 175 | { |
| 177 | 176 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 178 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 179 | case DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 177 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 178 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 180 | 179 | |
| 181 | 180 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 182 | case DEVINFO_PTR_INIT: info->init = device_init_wswan_cart; break; | |
| 183 | case DEVINFO_PTR_LOAD: info->load = device_load_wswan_cart; break; | |
| 181 | case MESS_DEVINFO_PTR_INIT: info->init = device_init_wswan_cart; break; | |
| 182 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_wswan_cart; break; | |
| 184 | 183 | |
| 185 | 184 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 186 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "ws,wsc,bin"); break; | |
| 185 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "ws,wsc,bin"); break; | |
| 187 | 186 | |
| 188 | 187 | default: cartslot_device_getinfo(devclass, state, info); break; |
| 189 | 188 | } |
| r1711 | r1712 | |
|---|---|---|
| 247 | 247 | MDRV_MACHINE_RESET( comquest ) |
| 248 | 248 | |
| 249 | 249 | /* video hardware */ |
| 250 | MDRV_ | |
| 250 | MDRV_SC | |
| 251 | 251 | MDRV_SCREEN_REFRESH_RATE(LCD_FRAMES_PER_SECOND) |
| 252 | 252 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 253 | 253 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
|---|---|---|
| 353 | 353 | 0, 0, 0, /* black */ |
| 354 | 354 | }; |
| 355 | 355 | |
| 356 | static const unsigned short zx_colortable[] = | |
| 357 | { | |
| 358 | 0, 1, /* white on black */ | |
| 359 | 1, 0 /* black on white */ | |
| 360 | }; | |
| 361 | ||
| 362 | 356 | static PALETTE_INIT( zx80 ) |
| 363 | 357 | { |
| 364 | 358 | palette_set_colors_rgb(machine, 0, zx80_palette, sizeof(zx80_palette) / 3); |
| 365 | memcpy(colortable, zx_colortable, sizeof (zx_colortable)); | |
| 366 | 359 | } |
| 367 | 360 | |
| 368 | 361 | static PALETTE_INIT( zx81 ) |
| 369 | 362 | { |
| 370 | 363 | palette_set_colors_rgb(machine, 0, zx81_palette, sizeof(zx81_palette) / 3); |
| 371 | memcpy(colortable, zx_colortable, sizeof (zx_colortable)); | |
| 372 | 364 | } |
| 373 | 365 | |
| 374 | 366 | static PALETTE_INIT( ts1000 ) |
| 375 | 367 | { |
| 376 | 368 | palette_set_colors_rgb(machine, 0, ts1000_palette, sizeof(ts1000_palette) / 3); |
| 377 | memcpy(colortable, zx_colortable, sizeof (zx_colortable)); | |
| 378 | 369 | } |
| 379 | 370 | |
| 380 | 371 | |
| r1711 | r1712 | |
| 398 | 389 | MDRV_CPU_ADD_TAG("main", Z80, ZX81_CPU_CLOCK) |
| 399 | 390 | MDRV_CPU_PROGRAM_MAP(zx80_map, 0) |
| 400 | 391 | MDRV_CPU_IO_MAP(zx80_io_map, 0) |
| 392 | MDRV_SCREEN_ADD("main", RASTER) | |
| 401 | 393 | MDRV_SCREEN_REFRESH_RATE(ZX81_PAL_FRAMES_PER_SECOND) |
| 402 | 394 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(ZX81_VBLANK_DURATION)) |
| 403 | 395 | |
| 404 | 396 | MDRV_MACHINE_RESET(zx80) |
| 405 | 397 | |
| 406 | 398 | // video hardware |
| 407 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 408 | 399 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 409 | 400 | MDRV_SCREEN_SIZE(ZX81_PIXELS_PER_SCANLINE, ZX81_PAL_SCANLINES) |
| 410 | 401 | MDRV_SCREEN_VISIBLE_AREA(0, ZX81_PIXELS_PER_SCANLINE-1, 0, ZX81_PAL_SCANLINES-1) |
| 411 | 402 | MDRV_GFXDECODE(zx80) |
| 412 | 403 | MDRV_PALETTE_LENGTH(6) |
| 413 | MDRV_COLORTABLE_LENGTH(4) | |
| 414 | 404 | MDRV_PALETTE_INIT(zx80) |
| 415 | 405 | |
| 416 | 406 | MDRV_VIDEO_START(zx) |
| r1711 | r1712 | |
| 543 | 533 | switch(state) |
| 544 | 534 | { |
| 545 | 535 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 546 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 536 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 547 | 537 | |
| 548 | 538 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 549 | case DEVINFO_PTR_CASSETTE_FORMATS: info->p = (void *) zx80_o_format; break; | |
| 550 | case DEVINFO_PTR_CASSETTE_OPTIONS: info->p = (void *) &zx81_cassette_options; break; | |
| 539 | case MESS_DEVINFO_PTR_CASSETTE_FORMATS: info->p = (void *) zx80_o_format; break; | |
| 540 | case MESS_DEVINFO_PTR_CASSETTE_OPTIONS: info->p = (void *) &zx81_cassette_options; break; | |
| 551 | 541 | |
| 552 | 542 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 553 | case DEVINFO_INT_CASSETTE_DEFAULT_STATE: info->i = CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED; break; | |
| 543 | case MESS_DEVINFO_INT_CASSETTE_DEFAULT_STATE: info->i = CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED; break; | |
| 554 | 544 | |
| 555 | 545 | default: cassette_device_getinfo(devclass, state, info); break; |
| 556 | 546 | } |
| r1711 | r1712 | |
| 568 | 558 | switch(state) |
| 569 | 559 | { |
| 570 | 560 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 571 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 561 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 572 | 562 | |
| 573 | 563 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 574 | case DEVINFO_PTR_CASSETTE_FORMATS: info->p = (void *) zx81_p_format; break; | |
| 575 | case DEVINFO_PTR_CASSETTE_OPTIONS: info->p = (void *) &zx81_cassette_options; break; | |
| 564 | case MESS_DEVINFO_PTR_CASSETTE_FORMATS: info->p = (void *) zx81_p_format; break; | |
| 565 | case MESS_DEVINFO_PTR_CASSETTE_OPTIONS: info->p = (void *) &zx81_cassette_options; break; | |
| 576 | 566 | |
| 577 | 567 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 578 | case DEVINFO_INT_CASSETTE_DEFAULT_STATE: info->i = CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED; break; | |
| 568 | case MESS_DEVINFO_INT_CASSETTE_DEFAULT_STATE: info->i = CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED; break; | |
| 579 | 569 | |
| 580 | 570 | default: cassette_device_getinfo(devclass, state, info); break; |
| 581 | 571 | } |
| r1711 | r1712 | |
|---|---|---|
| 293 | 293 | switch(state) |
| 294 | 294 | { |
| 295 | 295 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 296 | case DEVINFO_INT_COUNT: info->i = 4; break; | |
| 296 | case MESS_DEVINFO_INT_COUNT: info->i = 4; break; | |
| 297 | 297 | |
| 298 | 298 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 299 | case DEVINFO_PTR_FLOPPY_OPTIONS: info->p = (void *) floppyoptions_coco; break; | |
| 299 | case MESS_DEVINFO_PTR_FLOPPY_OPTIONS: info->p = (void *) floppyoptions_coco; break; | |
| 300 | 300 | |
| 301 | 301 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 302 | case DEVINFO_STR_NAME+0: strcpy(info->s = device_temp_str(), "floppydisk0"); break; | |
| 303 | case DEVINFO_STR_NAME+1: strcpy(info->s = device_temp_str(), "floppydisk1"); break; | |
| 304 | case DEVINFO_STR_NAME+2: strcpy(info->s = device_temp_str(), "floppydisk2"); break; | |
| 305 | case DEVINFO_STR_NAME+3: strcpy(info->s = device_temp_str(), "floppydisk3"); break; | |
| 306 | case DEVINFO_STR_SHORT_NAME+0: strcpy(info->s = device_temp_str(), "flop0"); break; | |
| 307 | case DEVINFO_STR_SHORT_NAME+1: strcpy(info->s = device_temp_str(), "flop1"); break; | |
| 308 | case DEVINFO_STR_SHORT_NAME+2: strcpy(info->s = device_temp_str(), "flop2"); break; | |
| 309 | case DEVINFO_STR_SHORT_NAME+3: strcpy(info->s = device_temp_str(), "flop3"); break; | |
| 310 | case DEVINFO_STR_DESCRIPTION+0: strcpy(info->s = device_temp_str(), "Floppy #0"); break; | |
| 311 | case DEVINFO_STR_DESCRIPTION+1: strcpy(info->s = device_temp_str(), "Floppy #1"); break; | |
| 312 | case DEVINFO_STR_DESCRIPTION+2: strcpy(info->s = device_temp_str(), "Floppy #2"); break; | |
| 313 | case DEVINFO_STR_DESCRIPTION+3: strcpy(info->s = device_temp_str(), "Floppy #3"); break; | |
| 302 | case MESS_DEVINFO_STR_NAME+0: strcpy(info->s = device_temp_str(), "floppydisk0"); break; | |
| 303 | case MESS_DEVINFO_STR_NAME+1: strcpy(info->s = device_temp_str(), "floppydisk1"); break; | |
| 304 | case MESS_DEVINFO_STR_NAME+2: strcpy(info->s = device_temp_str(), "floppydisk2"); break; | |
| 305 | case MESS_DEVINFO_STR_NAME+3: strcpy(info->s = device_temp_str(), "floppydisk3"); break; | |
| 306 | case MESS_DEVINFO_STR_SHORT_NAME+0: strcpy(info->s = device_temp_str(), "flop0"); break; | |
| 307 | case MESS_DEVINFO_STR_SHORT_NAME+1: strcpy(info->s = device_temp_str(), "flop1"); break; | |
| 308 | case MESS_DEVINFO_STR_SHORT_NAME+2: strcpy(info->s = device_temp_str(), "flop2"); break; | |
| 309 | case MESS_DEVINFO_STR_SHORT_NAME+3: strcpy(info->s = device_temp_str(), "flop3"); break; | |
| 310 | case MESS_DEVINFO_STR_DESCRIPTION+0: strcpy(info->s = device_temp_str(), "Floppy #0"); break; | |
| 311 | case MESS_DEVINFO_STR_DESCRIPTION+1: strcpy(info->s = device_temp_str(), "Floppy #1"); break; | |
| 312 | case MESS_DEVINFO_STR_DESCRIPTION+2: strcpy(info->s = device_temp_str(), "Floppy #2"); break; | |
| 313 | case MESS_DEVINFO_STR_DESCRIPTION+3: strcpy(info->s = device_temp_str(), "Floppy #3"); break; | |
| 314 | 314 | |
| 315 | 315 | default: floppy_device_getinfo(devclass, state, info); break; |
| 316 | 316 | } |
| r1711 | r1712 | |
| 330 | 330 | MDRV_CPU_ADD_TAG("dma", M6809E, DGNBETA_CPU_SPEED_HZ) /* 2 Mhz */ |
| 331 | 331 | MDRV_CPU_PROGRAM_MAP(dgnbeta_map,0) |
| 332 | 332 | |
| 333 | MDRV_SCREEN_ADD("main", RASTER) | |
| 333 | 334 | MDRV_SCREEN_REFRESH_RATE(DGNBETA_FRAMES_PER_SECOND) |
| 334 | 335 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(100)) |
| 335 | 336 | |
| r1711 | r1712 | |
| 341 | 342 | MDRV_SCREEN_VISIBLE_AREA(0, 699, 0, 549) |
| 342 | 343 | MDRV_PALETTE_LENGTH(sizeof (dgnbeta_palette) / sizeof (dgnbeta_palette[0]) / 3) |
| 343 | 344 | MDRV_PALETTE_INIT( dgnbeta ) |
| 344 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 345 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 345 | 346 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 346 | 347 | |
| 347 | 348 | MDRV_VIDEO_UPDATE( dgnbeta ) |
| r1711 | r1712 | |
|---|---|---|
| 352 | 352 | |
| 353 | 353 | /* load static palette */ |
| 354 | 354 | palette_set_colors_rgb(machine, pen_crt_num_levels, palette, sizeof(palette) / sizeof(palette[0]) / 3); |
| 355 | ||
| 356 | memcpy(colortable, pdp1_colortable, sizeof(pdp1_colortable)); | |
| 357 | 355 | } |
| 358 | 356 | |
| 359 | 357 | |
| r1711 | r1712 | |
| 405 | 403 | MDRV_MACHINE_RESET( pdp1 ) |
| 406 | 404 | |
| 407 | 405 | /* video hardware (includes the control panel and typewriter output) */ |
| 408 | MDRV_ | |
| 406 | MDRV_SC | |
| 409 | 407 | MDRV_SCREEN_REFRESH_RATE(refresh_rate) |
| 410 | 408 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 411 | 409 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
| 414 | 412 | |
| 415 | 413 | MDRV_GFXDECODE(pdp1) |
| 416 | 414 | MDRV_PALETTE_LENGTH(pen_crt_num_levels + (sizeof(palette) / sizeof(palette[0]) / 3)) |
| 417 | MDRV_COLORTABLE_LENGTH(sizeof(pdp1_colortable) / sizeof(pdp1_colortable[0])) | |
| 418 | 415 | |
| 419 | 416 | MDRV_PALETTE_INIT(pdp1) |
| 420 | 417 | MDRV_VIDEO_START(pdp1) |
| r1711 | r1712 | |
| 436 | 433 | switch(state) |
| 437 | 434 | { |
| 438 | 435 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 439 | case DEVINFO_INT_TYPE: info->i = IO_PUNCHTAPE; break; | |
| 440 | case DEVINFO_INT_COUNT: info->i = 2; break; | |
| 436 | case MESS_DEVINFO_INT_TYPE: info->i = IO_PUNCHTAPE; break; | |
| 437 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 441 | 438 | |
| 442 | 439 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 443 | case DEVINFO_PTR_INIT: info->init = device_init_pdp1_tape; break; | |
| 444 | case DEVINFO_PTR_LOAD: info->load = device_load_pdp1_tape; break; | |
| 445 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_pdp1_tape; break; | |
| 446 | case DEVINFO_PTR_GET_DISPOSITIONS: info->getdispositions = pdp1_get_open_mode; break; | |
| 440 | case MESS_DEVINFO_PTR_INIT: info->init = device_init_pdp1_tape; break; | |
| 441 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_pdp1_tape; break; | |
| 442 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_pdp1_tape; break; | |
| 443 | case MESS_DEVINFO_PTR_GET_DISPOSITIONS: info->getdispositions = pdp1_get_open_mode; break; | |
| 447 | 444 | |
| 448 | 445 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 449 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "tap,rim"); break; | |
| 446 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "tap,rim"); break; | |
| 450 | 447 | } |
| 451 | 448 | } |
| 452 | 449 | |
| r1711 | r1712 | |
| 456 | 453 | switch(state) |
| 457 | 454 | { |
| 458 | 455 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 459 | case DEVINFO_INT_TYPE: info->i = IO_PRINTER; break; | |
| 460 | case DEVINFO_INT_READABLE: info->i = 0; break; | |
| 461 | case DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 462 | case DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 463 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 456 | case MESS_DEVINFO_INT_TYPE: info->i = IO_PRINTER; break; | |
| 457 | case MESS_DEVINFO_INT_READABLE: info->i = 0; break; | |
| 458 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 459 | case MESS_DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 460 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 464 | 461 | |
| 465 | 462 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 466 | case DEVINFO_PTR_LOAD: info->load = device_load_pdp1_typewriter; break; | |
| 467 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_pdp1_typewriter; break; | |
| 463 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_pdp1_typewriter; break; | |
| 464 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_pdp1_typewriter; break; | |
| 468 | 465 | |
| 469 | 466 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 470 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "typ"); break; | |
| 467 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "typ"); break; | |
| 471 | 468 | } |
| 472 | 469 | } |
| 473 | 470 | |
| r1711 | r1712 | |
| 477 | 474 | switch(state) |
| 478 | 475 | { |
| 479 | 476 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 480 | case DEVINFO_INT_TYPE: info->i = IO_CYLINDER; break; | |
| 481 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 482 | case DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 483 | case DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 484 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 477 | case MESS_DEVINFO_INT_TYPE: info->i = IO_CYLINDER; break; | |
| 478 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 479 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 480 | case MESS_DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 481 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 485 | 482 | |
| 486 | 483 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 487 | case DEVINFO_PTR_LOAD: info->load = device_load_pdp1_drum; break; | |
| 488 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_pdp1_drum; break; | |
| 484 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_pdp1_drum; break; | |
| 485 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_pdp1_drum; break; | |
| 489 | 486 | |
| 490 | 487 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 491 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "drm"); break; | |
| 488 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "drm"); break; | |
| 492 | 489 | } |
| 493 | 490 | } |
| 494 | 491 |
| r1711 | r1712 | |
|---|---|---|
| 458 | 458 | MDRV_MACHINE_RESET(jaguar) |
| 459 | 459 | |
| 460 | 460 | /* video hardware */ |
| 461 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 461 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 462 | MDRV_SCREEN_ADD("main", RASTER) | |
| 462 | 463 | MDRV_SCREEN_REFRESH_RATE(60) |
| 463 | 464 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 464 | MDRV_SCREEN_ADD("main", 0) | |
| 465 | 465 | MDRV_SCREEN_RAW_PARAMS(COJAG_PIXEL_CLOCK/2, 456, 42, 402, 262, 17, 257) |
| 466 | 466 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 467 | 467 | |
| r1711 | r1712 | |
| 524 | 524 | switch(state) |
| 525 | 525 | { |
| 526 | 526 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 527 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "bin"); break; | |
| 527 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "bin"); break; | |
| 528 | 528 | |
| 529 | 529 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 530 | case DEVINFO_PTR_QUICKLOAD_LOAD: info->f = (genf *) quickload_load_jaguar; break; | |
| 530 | case MESS_DEVINFO_PTR_QUICKLOAD_LOAD: info->f = (genf *) quickload_load_jaguar; break; | |
| 531 | 531 | |
| 532 | 532 | default: quickload_device_getinfo(devclass, state, info); break; |
| 533 | 533 | } |
| r1711 | r1712 | |
|---|---|---|
| 148 | 148 | MDRV_IMPORT_FROM( apple2e ) |
| 149 | 149 | MDRV_CPU_REPLACE("main", G65816, APPLE2GS_14M/5) |
| 150 | 150 | |
| 151 | MDRV_SCREEN_ADD("main", RASTER) | |
| 151 | 152 | MDRV_SCREEN_SIZE(704, 262) // 640+32+32 for the borders |
| 152 | 153 | MDRV_SCREEN_VISIBLE_AREA(0,703,0,230) |
| 153 | 154 | MDRV_PALETTE_LENGTH( 16+256 ) |
| r1711 | r1712 | |
| 218 | 219 | switch(state) |
| 219 | 220 | { |
| 220 | 221 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 221 | case DEVINFO_INT_SONYDRIV_ALLOWABLE_SIZES: info->i = SONY_FLOPPY_ALLOW400K | SONY_FLOPPY_ALLOW800K | SONY_FLOPPY_SUPPORT2IMG; break; | |
| 222 | case MESS_DEVINFO_INT_SONYDRIV_ALLOWABLE_SIZES: info->i = SONY_FLOPPY_ALLOW400K | SONY_FLOPPY_ALLOW800K | SONY_FLOPPY_SUPPORT2IMG; break; | |
| 222 | 223 | |
| 223 | 224 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 224 | case DEVINFO_STR_NAME+0: strcpy(info->s = device_temp_str(), "slot5disk1"); break; | |
| 225 | case DEVINFO_STR_NAME+1: strcpy(info->s = device_temp_str(), "slot5disk2"); break; | |
| 226 | case DEVINFO_STR_SHORT_NAME+0: strcpy(info->s = device_temp_str(), "s5d1"); break; | |
| 227 | case DEVINFO_STR_SHORT_NAME+1: strcpy(info->s = device_temp_str(), "s5d2"); break; | |
| 228 | case DEVINFO_STR_DESCRIPTION+0: strcpy(info->s = device_temp_str(), "Slot 5 Disk #1"); break; | |
| 229 | case DEVINFO_STR_DESCRIPTION+1: strcpy(info->s = device_temp_str(), "Slot 5 Disk #2"); break; | |
| 225 | case MESS_DEVINFO_STR_NAME+0: strcpy(info->s = device_temp_str(), "slot5disk1"); break; | |
| 226 | case MESS_DEVINFO_STR_NAME+1: strcpy(info->s = device_temp_str(), "slot5disk2"); break; | |
| 227 | case MESS_DEVINFO_STR_SHORT_NAME+0: strcpy(info->s = device_temp_str(), "s5d1"); break; | |
| 228 | case MESS_DEVINFO_STR_SHORT_NAME+1: strcpy(info->s = device_temp_str(), "s5d2"); break; | |
| 229 | case MESS_DEVINFO_STR_DESCRIPTION+0: strcpy(info->s = device_temp_str(), "Slot 5 Disk #1"); break; | |
| 230 | case MESS_DEVINFO_STR_DESCRIPTION+1: strcpy(info->s = device_temp_str(), "Slot 5 Disk #2"); break; | |
| 230 | 231 | |
| 231 | 232 | default: sonydriv_device_getinfo(devclass, state, info); break; |
| 232 | 233 | } |
| r1711 | r1712 | |
| 240 | 241 | switch(state) |
| 241 | 242 | { |
| 242 | 243 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 243 | case DEVINFO_INT_NOT_WORKING: /* info->i = 1; */ break; | |
| 244 | case DEVINFO_INT_APPLE525_SPINFRACT_DIVIDEND: info->i = 15; break; | |
| 245 | case DEVINFO_INT_APPLE525_SPINFRACT_DIVISOR: info->i = 16; break; | |
| 244 | case MESS_DEVINFO_INT_NOT_WORKING: /* info->i = 1; */ break; | |
| 245 | case MESS_DEVINFO_INT_APPLE525_SPINFRACT_DIVIDEND: info->i = 15; break; | |
| 246 | case MESS_DEVINFO_INT_APPLE525_SPINFRACT_DIVISOR: info->i = 16; break; | |
| 246 | 247 | |
| 247 | 248 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 248 | case DEVINFO_STR_NAME+0: strcpy(info->s = device_temp_str(), "slot6disk1"); break; | |
| 249 | case DEVINFO_STR_NAME+1: strcpy(info->s = device_temp_str(), "slot6disk2"); break; | |
| 250 | case DEVINFO_STR_SHORT_NAME+0: strcpy(info->s = device_temp_str(), "s6d1"); break; | |
| 251 | case DEVINFO_STR_SHORT_NAME+1: strcpy(info->s = device_temp_str(), "s6d2"); break; | |
| 252 | case DEVINFO_STR_DESCRIPTION+0: strcpy(info->s = device_temp_str(), "Slot 6 Disk #1"); break; | |
| 253 | case DEVINFO_STR_DESCRIPTION+1: strcpy(info->s = device_temp_str(), "Slot 6 Disk #2"); break; | |
| 249 | case MESS_DEVINFO_STR_NAME+0: strcpy(info->s = device_temp_str(), "slot6disk1"); break; | |
| 250 | case MESS_DEVINFO_STR_NAME+1: strcpy(info->s = device_temp_str(), "slot6disk2"); break; | |
| 251 | case MESS_DEVINFO_STR_SHORT_NAME+0: strcpy(info->s = device_temp_str(), "s6d1"); break; | |
| 252 | case MESS_DEVINFO_STR_SHORT_NAME+1: strcpy(info->s = device_temp_str(), "s6d2"); break; | |
| 253 | case MESS_DEVINFO_STR_DESCRIPTION+0: strcpy(info->s = device_temp_str(), "Slot 6 Disk #1"); break; | |
| 254 | case MESS_DEVINFO_STR_DESCRIPTION+1: strcpy(info->s = device_temp_str(), "Slot 6 Disk #2"); break; | |
| 254 | 255 | |
| 255 | 256 | default: apple525_device_getinfo(devclass, state, info); break; |
| 256 | 257 | } |
| r1711 | r1712 | |
|---|---|---|
| 181 | 181 | |
| 182 | 182 | /* video hardware (well, actually there was no video ;) */ |
| 183 | 183 | /* scanned with 300 dpi, scaled x 55%, y 55% for perfect display 2x2 pixels */ |
| 184 | MDRV_ | |
| 184 | MDRV_SC | |
| 185 | 185 | MDRV_SCREEN_REFRESH_RATE(64) |
| 186 | 186 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 187 | 187 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
| 189 | 189 | MDRV_SCREEN_VISIBLE_AREA(0, 339-1, 0, 775-1) |
| 190 | 190 | MDRV_GFXDECODE( hp48 ) |
| 191 | 191 | MDRV_PALETTE_LENGTH( 248 ) |
| 192 | MDRV_COLORTABLE_LENGTH( sizeof (hp48_colortable) / sizeof(hp48_colortable[0][0]) ) | |
| 193 | 192 | MDRV_PALETTE_INIT( hp48 ) |
| 194 | 193 | |
| 195 | 194 | MDRV_VIDEO_START( hp48 ) |
| r1711 | r1712 | |
|---|---|---|
| 41 | 41 | MDRV_MACHINE_RESET( apple3 ) |
| 42 | 42 | |
| 43 | 43 | /* video hardware */ |
| 44 | MDRV_ | |
| 44 | MDRV_SC | |
| 45 | 45 | MDRV_SCREEN_REFRESH_RATE(60) |
| 46 | 46 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 47 | 47 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 48 | 48 | MDRV_SCREEN_SIZE(280*2, 192) |
| 49 | 49 | MDRV_SCREEN_VISIBLE_AREA(0, (280*2)-1,0,192-1) |
| 50 | 50 | MDRV_PALETTE_LENGTH(16) |
| 51 | MDRV_COLORTABLE_LENGTH(512) | |
| 52 | 51 | MDRV_PALETTE_INIT( apple2 ) |
| 53 | 52 | |
| 54 | 53 | MDRV_VIDEO_START( apple3 ) |
| r1711 | r1712 | |
| 150 | 149 | switch(state) |
| 151 | 150 | { |
| 152 | 151 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 153 | case DEVINFO_INT_COUNT: info->i = 4; break; | |
| 152 | case MESS_DEVINFO_INT_COUNT: info->i = 4; break; | |
| 154 | 153 | |
| 155 | 154 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 156 | case DEVINFO_INT_APPLE525_SPINFRACT_DIVIDEND: info->i = 1; break; | |
| 157 | case DEVINFO_INT_APPLE525_SPINFRACT_DIVISOR: info->i = 4; break; | |
| 155 | case MESS_DEVINFO_INT_APPLE525_SPINFRACT_DIVIDEND: info->i = 1; break; | |
| 156 | case MESS_DEVINFO_INT_APPLE525_SPINFRACT_DIVISOR: info->i = 4; break; | |
| 158 | 157 | |
| 159 | 158 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 160 | case DEVINFO_STR_NAME+0: strcpy(info->s = device_temp_str(), "slot6disk1"); break; | |
| 161 | case DEVINFO_STR_NAME+1: strcpy(info->s = device_temp_str(), "slot6disk2"); break; | |
| 162 | case DEVINFO_STR_SHORT_NAME+0: strcpy(info->s = device_temp_str(), "s6d1"); break; | |
| 163 | case DEVINFO_STR_SHORT_NAME+1: strcpy(info->s = device_temp_str(), "s6d2"); break; | |
| 164 | case DEVINFO_STR_DESCRIPTION+0: strcpy(info->s = device_temp_str(), "Slot 6 Disk #1"); break; | |
| 165 | case DEVINFO_STR_DESCRIPTION+1: strcpy(info->s = device_temp_str(), "Slot 6 Disk #2"); break; | |
| 159 | case MESS_DEVINFO_STR_NAME+0: strcpy(info->s = device_temp_str(), "slot6disk1"); break; | |
| 160 | case MESS_DEVINFO_STR_NAME+1: strcpy(info->s = device_temp_str(), "slot6disk2"); break; | |
| 161 | case MESS_DEVINFO_STR_SHORT_NAME+0: strcpy(info->s = device_temp_str(), "s6d1"); break; | |
| 162 | case MESS_DEVINFO_STR_SHORT_NAME+1: strcpy(info->s = device_temp_str(), "s6d2"); break; | |
| 163 | case MESS_DEVINFO_STR_DESCRIPTION+0: strcpy(info->s = device_temp_str(), "Slot 6 Disk #1"); break; | |
| 164 | case MESS_DEVINFO_STR_DESCRIPTION+1: strcpy(info->s = device_temp_str(), "Slot 6 Disk #2"); break; | |
| 166 | 165 | |
| 167 | 166 | default: apple525_device_getinfo(devclass, state, info); break; |
| 168 | 167 | } |
| r1711 | r1712 | |
|---|---|---|
| 146 | 146 | MDRV_VIDEO_START( generic_bitmapped ) |
| 147 | 147 | MDRV_VIDEO_UPDATE( generic_bitmapped ) |
| 148 | 148 | |
| 149 | MDRV_ | |
| 149 | MDRV_SCREEN_ADD | |
| 150 | 150 | MDRV_SCREEN_FORMAT( BITMAP_FORMAT_RGB32 ) |
| 151 | 151 | MDRV_SCREEN_SIZE( 640, 525 ) |
| 152 | 152 | MDRV_SCREEN_VISIBLE_AREA( 0,639,0,479 ) |
| r1711 | r1712 | |
| 163 | 163 | MDRV_VIDEO_START( generic_bitmapped ) |
| 164 | 164 | MDRV_VIDEO_UPDATE( generic_bitmapped ) |
| 165 | 165 | |
| 166 | MDRV_VIDEO_ATTRIBUTES( VIDEO_TYPE_RASTER ) | |
| 167 | 166 | MDRV_SCREEN_FORMAT( BITMAP_FORMAT_RGB32 ) |
| 168 | 167 | MDRV_SCREEN_SIZE( 640, 625 ) |
| 169 | 168 | MDRV_SCREEN_VISIBLE_AREA( 0, 639, 0, 479 ) |
| r1711 | r1712 | |
| 197 | 196 | static void chdcd_3do_getinfo( const device_class *devclass, UINT32 state, union devinfo *info ) { |
| 198 | 197 | /* CHD CD-ROM */ |
| 199 | 198 | switch( state ) { |
| 200 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 199 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 201 | 200 | default: cdrom_device_getinfo( devclass, state, info ); break; |
| 202 | 201 | } |
| 203 | 202 | } |
| r1711 | r1712 | |
|---|---|---|
| 322 | 322 | |
| 323 | 323 | /* video hardware */ |
| 324 | 324 | MDRV_IMPORT_FROM( vh_vic2 ) |
| 325 | MDRV_SCREEN_ADD("main", RASTER) | |
| 325 | 326 | MDRV_SCREEN_REFRESH_RATE(VIC6567_VRETRACERATE) |
| 326 | 327 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 327 | 328 | MDRV_SCREEN_SIZE(656, 416) |
| r1711 | r1712 | |
| 357 | 358 | switch(state) |
| 358 | 359 | { |
| 359 | 360 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 360 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "p00,prg"); break; | |
| 361 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "p00,prg"); break; | |
| 361 | 362 | |
| 362 | 363 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 363 | case DEVINFO_PTR_QUICKLOAD_LOAD: info->f = (genf *) quickload_load_cbm_c65; break; | |
| 364 | case MESS_DEVINFO_PTR_QUICKLOAD_LOAD: info->f = (genf *) quickload_load_cbm_c65; break; | |
| 364 | 365 | |
| 365 | 366 | /* --- the following bits of info are returned as doubles --- */ |
| 366 | case DEVINFO_FLOAT_QUICKLOAD_DELAY: info->d = CBM_QUICKLOAD_DELAY; break; | |
| 367 | case MESS_DEVINFO_FLOAT_QUICKLOAD_DELAY: info->d = CBM_QUICKLOAD_DELAY; break; | |
| 367 | 368 | |
| 368 | 369 | default: quickload_device_getinfo(devclass, state, info); break; |
| 369 | 370 | } |
| r1711 | r1712 | |
|---|---|---|
| 185 | 185 | MDRV_MACHINE_START( dai ) |
| 186 | 186 | |
| 187 | 187 | /* video hardware */ |
| 188 | MDRV_ | |
| 188 | MDRV_SC | |
| 189 | 189 | MDRV_SCREEN_REFRESH_RATE(50) |
| 190 | 190 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 191 | 191 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 192 | 192 | MDRV_SCREEN_SIZE(1056, 542) |
| 193 | 193 | MDRV_SCREEN_VISIBLE_AREA(0, 1056-1, 0, 302-1) |
| 194 | 194 | MDRV_PALETTE_LENGTH(sizeof (dai_palette) / 3) |
| 195 | MDRV_COLORTABLE_LENGTH(sizeof (dai_colortable)) | |
| 196 | 195 | MDRV_PALETTE_INIT( dai ) |
| 197 | 196 | |
| 198 | 197 | MDRV_VIDEO_START( dai ) |
| r1711 | r1712 | |
| 229 | 228 | switch(state) |
| 230 | 229 | { |
| 231 | 230 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 232 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 231 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 233 | 232 | |
| 234 | 233 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 235 | case DEVINFO_PTR_CASSETTE_OPTIONS: info->p = (void *) &dai_cassette_options; break; | |
| 234 | case MESS_DEVINFO_PTR_CASSETTE_OPTIONS: info->p = (void *) &dai_cassette_options; break; | |
| 236 | 235 | |
| 237 | 236 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 238 | case DEVINFO_INT_CASSETTE_DEFAULT_STATE: info->i = CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED; break; | |
| 237 | case MESS_DEVINFO_INT_CASSETTE_DEFAULT_STATE: info->i = CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED; break; | |
| 239 | 238 | |
| 240 | 239 | default: cassette_device_getinfo(devclass, state, info); break; |
| 241 | 240 | } |
| r1711 | r1712 | |
|---|---|---|
| 70 | 70 | /* basic machine hardware */ |
| 71 | 71 | MDRV_CPU_ADD_TAG("main", M68000, 7833600) /* 7.8336 Mhz */ |
| 72 | 72 | MDRV_CPU_PROGRAM_MAP(mac512ke_map, 0) |
| 73 | MDRV_SCREEN_ADD("main", RASTER) | |
| 73 | 74 | MDRV_SCREEN_REFRESH_RATE(60.15) |
| 74 | 75 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(1260)) |
| 75 | 76 | MDRV_INTERLEAVE(1) |
| r1711 | r1712 | |
| 77 | 78 | MDRV_MACHINE_RESET( mac ) |
| 78 | 79 | |
| 79 | 80 | /* video hardware */ |
| 80 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 81 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 81 | 82 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 82 | 83 | MDRV_SCREEN_SIZE(MAC_H_TOTAL, MAC_V_TOTAL) |
| 83 | 84 | MDRV_SCREEN_VISIBLE_AREA(0, MAC_H_VIS-1, 0, MAC_V_VIS-1) |
| 84 | 85 | MDRV_PALETTE_LENGTH(2) |
| 85 | MDRV_COLORTABLE_LENGTH(2) | |
| 86 | 86 | MDRV_PALETTE_INIT(mac) |
| 87 | 87 | |
| 88 | 88 | MDRV_VIDEO_START(mac) |
| r1711 | r1712 | |
| 287 | 287 | switch(state) |
| 288 | 288 | { |
| 289 | 289 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 290 | case DEVINFO_INT_SONYDRIV_ALLOWABLE_SIZES: info->i = SONY_FLOPPY_ALLOW400K; break; | |
| 290 | case MESS_DEVINFO_INT_SONYDRIV_ALLOWABLE_SIZES: info->i = SONY_FLOPPY_ALLOW400K; break; | |
| 291 | 291 | |
| 292 | 292 | default: sonydriv_device_getinfo(devclass, state, info); break; |
| 293 | 293 | } |
| r1711 | r1712 | |
| 299 | 299 | switch(state) |
| 300 | 300 | { |
| 301 | 301 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 302 | case DEVINFO_INT_SONYDRIV_ALLOWABLE_SIZES: info->i = SONY_FLOPPY_ALLOW400K | SONY_FLOPPY_ALLOW800K; break; | |
| 302 | case MESS_DEVINFO_INT_SONYDRIV_ALLOWABLE_SIZES: info->i = SONY_FLOPPY_ALLOW400K | SONY_FLOPPY_ALLOW800K; break; | |
| 303 | 303 | |
| 304 | 304 | default: sonydriv_device_getinfo(devclass, state, info); break; |
| 305 | 305 | } |
| r1711 | r1712 | |
| 311 | 311 | switch(state) |
| 312 | 312 | { |
| 313 | 313 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 314 | case DEVINFO_INT_COUNT: info->i = 2; break; | |
| 314 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 315 | 315 | |
| 316 | 316 | default: harddisk_device_getinfo(devclass, state, info); break; |
| 317 | 317 | } |
| r1711 | r1712 | |
| 403 | 403 | 2, 2, /* number of colors, colortable size */ |
| 404 | 404 | mac_init_palette, /* convert color prom */ |
| 405 | 405 | |
| 406 | VIDEO_ | |
| 406 | VIDEO_ | |
| 407 | 407 | 0, |
| 408 | 408 | mac_vh_start, |
| 409 | 409 | mac_vh_stop, |
| r1711 | r1712 | |
|---|---|---|
| 665 | 665 | static PALETTE_INIT( atari ) |
| 666 | 666 | { |
| 667 | 667 | palette_set_colors_rgb(machine, 0, atari_palette, sizeof(atari_palette) / 3); |
| 668 | memcpy(colortable,atari_colortable,sizeof(atari_colortable)); | |
| 669 | 668 | } |
| 670 | 669 | |
| 671 | 670 | |
| r1711 | r1712 | |
| 704 | 703 | static MACHINE_DRIVER_START( atari_common_nodac ) |
| 705 | 704 | /* basic machine hardware */ |
| 706 | 705 | MDRV_CPU_ADD_TAG("main", M6510, FREQ_17_EXACT) |
| 707 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(1)) | |
| 708 | 706 | |
| 709 | 707 | /* video hardware */ |
| 710 | MDRV_VIDEO_ATTRIBUTES( VIDEO_TYPE_RASTER ) | |
| 708 | MDRV_SCREEN_ADD("main", RASTER) | |
| 709 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(1)) | |
| 711 | 710 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 712 | 711 | MDRV_SCREEN_VISIBLE_AREA(MIN_X, MAX_X, MIN_Y, MAX_Y) |
| 713 | 712 | MDRV_PALETTE_LENGTH(sizeof(atari_palette) / sizeof(atari_palette[0]) / 3) |
| 714 | MDRV_COLORTABLE_LENGTH(sizeof(atari_colortable) / sizeof(atari_colortable[0])) | |
| 715 | 713 | MDRV_PALETTE_INIT(atari) |
| 716 | 714 | |
| 717 | 715 | MDRV_VIDEO_START(atari) |
| r1711 | r1712 | |
| 805 | 803 | MDRV_CPU_VBLANK_INT(a5200_interrupt, TOTAL_LINES_60HZ) |
| 806 | 804 | |
| 807 | 805 | MDRV_MACHINE_START( a5200 ) |
| 806 | ||
| 807 | MDRV_SCREEN_MODIFY( "main" ) | |
| 808 | 808 | MDRV_SCREEN_REFRESH_RATE(FRAME_RATE_60HZ) |
| 809 | 809 | MDRV_SCREEN_SIZE(HWIDTH*8, TOTAL_LINES_60HZ) |
| 810 | 810 | MACHINE_DRIVER_END |
| r1711 | r1712 | |
| 856 | 856 | switch(state) |
| 857 | 857 | { |
| 858 | 858 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 859 | case DEVINFO_INT_TYPE: info->i = IO_FLOPPY; break; | |
| 860 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 861 | case DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 862 | case DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 863 | case DEVINFO_INT_COUNT: info->i = 4; break; | |
| 859 | case MESS_DEVINFO_INT_TYPE: info->i = IO_FLOPPY; break; | |
| 860 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 861 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 862 | case MESS_DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 863 | case MESS_DEVINFO_INT_COUNT: info->i = 4; break; | |
| 864 | 864 | |
| 865 | 865 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 866 | case DEVINFO_PTR_LOAD: info->load = device_load_a800_floppy; break; | |
| 866 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_a800_floppy; break; | |
| 867 | 867 | |
| 868 | 868 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 869 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "atr,dsk,xfd"); break; | |
| 869 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "atr,dsk,xfd"); break; | |
| 870 | 870 | } |
| 871 | 871 | } |
| 872 | 872 | |
| r1711 | r1712 | |
| 880 | 880 | switch(state) |
| 881 | 881 | { |
| 882 | 882 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 883 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 883 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 884 | 884 | |
| 885 | 885 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 886 | case DEVINFO_PTR_LOAD: info->load = device_load_a800_cart; break; | |
| 887 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_a800_cart; break; | |
| 886 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_a800_cart; break; | |
| 887 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_a800_cart; break; | |
| 888 | 888 | |
| 889 | 889 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 890 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "rom,bin"); break; | |
| 890 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "rom,bin"); break; | |
| 891 | 891 | |
| 892 | 892 | default: cartslot_device_getinfo(devclass, state, info); break; |
| 893 | 893 | } |
| r1711 | r1712 | |
| 905 | 905 | switch(state) |
| 906 | 906 | { |
| 907 | 907 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 908 | case DEVINFO_INT_COUNT: info->i = 2; break; | |
| 908 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 909 | 909 | |
| 910 | 910 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 911 | case DEVINFO_PTR_LOAD: info->load = device_load_a800_cart; break; | |
| 912 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_a800_cart; break; | |
| 911 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_a800_cart; break; | |
| 912 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_a800_cart; break; | |
| 913 | 913 | |
| 914 | 914 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 915 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "rom,bin"); break; | |
| 915 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "rom,bin"); break; | |
| 916 | 916 | |
| 917 | 917 | default: cartslot_device_getinfo(devclass, state, info); break; |
| 918 | 918 | } |
| r1711 | r1712 | |
| 930 | 930 | switch(state) |
| 931 | 931 | { |
| 932 | 932 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 933 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 933 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 934 | 934 | |
| 935 | 935 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 936 | case DEVINFO_PTR_LOAD: info->load = device_load_a5200_cart; break; | |
| 937 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_a5200_cart; break; | |
| 936 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_a5200_cart; break; | |
| 937 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_a5200_cart; break; | |
| 938 | 938 | |
| 939 | 939 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 940 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "rom,bin,a52"); break; | |
| 940 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "rom,bin,a52"); break; | |
| 941 | 941 | |
| 942 | 942 | default: cartslot_device_getinfo(devclass, state, info); break; |
| 943 | 943 | } |
| r1711 | r1712 | |
|---|---|---|
| 1667 | 1667 | MDRV_MACHINE_RESET( nc100 ) |
| 1668 | 1668 | |
| 1669 | 1669 | /* video hardware */ |
| 1670 | MDRV_ | |
| 1670 | MDRV_SC | |
| 1671 | 1671 | MDRV_SCREEN_REFRESH_RATE(50) |
| 1672 | 1672 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 1673 | 1673 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1674 | 1674 | MDRV_SCREEN_SIZE(640 /*NC_SCREEN_WIDTH*/, 480 /*NC_SCREEN_HEIGHT*/) |
| 1675 | 1675 | MDRV_SCREEN_VISIBLE_AREA(0, 640-1, 0, 480-1) |
| 1676 | 1676 | MDRV_PALETTE_LENGTH(NC_NUM_COLOURS) |
| 1677 | MDRV_COLORTABLE_LENGTH(NC_NUM_COLOURS) | |
| 1678 | 1677 | MDRV_PALETTE_INIT( nc ) |
| 1679 | 1678 | |
| 1680 | 1679 | MDRV_VIDEO_START( nc ) |
| r1711 | r1712 | |
| 1701 | 1700 | MDRV_SCREEN_SIZE(NC200_SCREEN_WIDTH, NC200_SCREEN_HEIGHT) |
| 1702 | 1701 | MDRV_SCREEN_VISIBLE_AREA(0, NC200_SCREEN_WIDTH-1, 0, NC200_SCREEN_HEIGHT-1) |
| 1703 | 1702 | MDRV_PALETTE_LENGTH(NC200_NUM_COLOURS) |
| 1704 | MDRV_COLORTABLE_LENGTH(NC200_NUM_COLOURS) | |
| 1705 | 1703 | MACHINE_DRIVER_END |
| 1706 | 1704 | |
| 1707 | 1705 | |
| r1711 | r1712 | |
| 1730 | 1728 | switch(state) |
| 1731 | 1729 | { |
| 1732 | 1730 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 1733 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 1731 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 1734 | 1732 | |
| 1735 | 1733 | default: printer_device_getinfo(devclass, state, info); break; |
| 1736 | 1734 | } |
| r1711 | r1712 | |
| 1742 | 1740 | switch(state) |
| 1743 | 1741 | { |
| 1744 | 1742 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 1745 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 1743 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 1746 | 1744 | |
| 1747 | 1745 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 1748 | case DEVINFO_PTR_INIT: info->init = device_init_nc_pcmcia_card; break; | |
| 1749 | case DEVINFO_PTR_LOAD: info->load = device_load_nc_pcmcia_card; break; | |
| 1750 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_nc_pcmcia_card; break; | |
| 1746 | case MESS_DEVINFO_PTR_INIT: info->init = device_init_nc_pcmcia_card; break; | |
| 1747 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_nc_pcmcia_card; break; | |
| 1748 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_nc_pcmcia_card; break; | |
| 1751 | 1749 | |
| 1752 | 1750 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 1753 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "crd,card"); break; | |
| 1751 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "crd,card"); break; | |
| 1754 | 1752 | |
| 1755 | 1753 | default: cartslot_device_getinfo(devclass, state, info); break; |
| 1756 | 1754 | } |
| r1711 | r1712 | |
| 1762 | 1760 | switch(state) |
| 1763 | 1761 | { |
| 1764 | 1762 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 1765 | case DEVINFO_INT_TYPE: info->i = IO_SERIAL; break; | |
| 1766 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 1767 | case DEVINFO_INT_WRITEABLE: info->i = 0; break; | |
| 1768 | case DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 1769 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 1763 | case MESS_DEVINFO_INT_TYPE: info->i = IO_SERIAL; break; | |
| 1764 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 1765 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 0; break; | |
| 1766 | case MESS_DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 1767 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 1770 | 1768 | |
| 1771 | 1769 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 1772 | case DEVINFO_PTR_INIT: info->init = serial_device_init; break; | |
| 1773 | case DEVINFO_PTR_LOAD: info->load = device_load_nc_serial; break; | |
| 1774 | case DEVINFO_PTR_UNLOAD: info->unload = serial_device_unload; break; | |
| 1770 | case MESS_DEVINFO_PTR_INIT: info->init = serial_device_init; break; | |
| 1771 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_nc_serial; break; | |
| 1772 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = serial_device_unload; break; | |
| 1775 | 1773 | |
| 1776 | 1774 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 1777 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "txt"); break; | |
| 1775 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "txt"); break; | |
| 1778 | 1776 | } |
| 1779 | 1777 | } |
| 1780 | 1778 | |
| r1711 | r1712 | |
| 1795 | 1793 | switch(state) |
| 1796 | 1794 | { |
| 1797 | 1795 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 1798 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 1796 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 1799 | 1797 | |
| 1800 | 1798 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 1801 | case DEVINFO_PTR_FLOPPY_OPTIONS: info->p = (void *) floppyoptions_pc; break; | |
| 1799 | case MESS_DEVINFO_PTR_FLOPPY_OPTIONS: info->p = (void *) floppyoptions_pc; break; | |
| 1802 | 1800 | |
| 1803 | 1801 | default: floppy_device_getinfo(devclass, state, info); break; |
| 1804 | 1802 | } |
| r1711 | r1712 | |
|---|---|---|
| 631 | 631 | //MDRV_CPU_PROGRAM_MAP(master6801_mem, 0) |
| 632 | 632 | |
| 633 | 633 | MDRV_CPU_VBLANK_INT(adam_interrupt,1) |
| 634 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 635 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ | |
| 636 | MDRV_INTERLEAVE(1) | |
| 637 | 634 | |
| 638 | 635 | MDRV_MACHINE_START( adam ) |
| 639 | 636 | MDRV_MACHINE_RESET( adam ) |
| r1711 | r1712 | |
| 693 | 690 | switch(state) |
| 694 | 691 | { |
| 695 | 692 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 696 | case DEVINFO_PTR_VERIFY: info->imgverify = adam_cart_verify; break; | |
| 693 | case MESS_DEVINFO_PTR_VERIFY: info->imgverify = adam_cart_verify; break; | |
| 697 | 694 | |
| 698 | 695 | default: cartslot_device_getinfo(devclass, state, info); break; |
| 699 | 696 | } |
| r1711 | r1712 | |
| 705 | 702 | switch(state) |
| 706 | 703 | { |
| 707 | 704 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 708 | case DEVINFO_INT_COUNT: info->i = 4; break; | |
| 705 | case MESS_DEVINFO_INT_COUNT: info->i = 4; break; | |
| 709 | 706 | |
| 710 | 707 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 711 | case DEVINFO_PTR_FLOPPY_OPTIONS: info->p = (void *) floppyoptions_adam; break; | |
| 708 | case MESS_DEVINFO_PTR_FLOPPY_OPTIONS: info->p = (void *) floppyoptions_adam; break; | |
| 712 | 709 | |
| 713 | 710 | default: floppy_device_getinfo(devclass, state, info); break; |
| 714 | 711 | } |
| r1711 | r1712 | |
|---|---|---|
| 469 | 469 | static PALETTE_INIT( cbm700 ) |
| 470 | 470 | { |
| 471 | 471 | palette_set_colors_rgb(machine, 0, cbm700_palette, sizeof(cbm700_palette) / 3); |
| 472 | memcpy(colortable,cbmb_colortable,sizeof(cbmb_colortable)); | |
| 473 | 472 | } |
| 474 | 473 | |
| 475 | 474 | ROM_START (cbm610) |
| r1711 | r1712 | |
| 611 | 610 | MDRV_MACHINE_RESET( cbmb ) |
| 612 | 611 | |
| 613 | 612 | /* video hardware */ |
| 614 | MDRV_ | |
| 613 | MDRV_SC | |
| 615 | 614 | MDRV_SCREEN_REFRESH_RATE(60) |
| 616 | 615 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 617 | 616 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
| 619 | 618 | MDRV_SCREEN_VISIBLE_AREA(0, 640 - 1, 0, 200 - 1) |
| 620 | 619 | MDRV_GFXDECODE( cbm600 ) |
| 621 | 620 | MDRV_PALETTE_LENGTH(sizeof (cbm700_palette) / sizeof (cbm700_palette[0]) / 3) |
| 622 | MDRV_COLORTABLE_LENGTH(sizeof (cbmb_colortable) / sizeof(cbmb_colortable[0])) | |
| 623 | 621 | MDRV_PALETTE_INIT( cbm700 ) |
| 624 | 622 | |
| 625 | 623 | MDRV_VIDEO_START( generic ) |
| r1711 | r1712 | |
| 679 | 677 | switch(state) |
| 680 | 678 | { |
| 681 | 679 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 682 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "crt,10,20,40,60"); break; | |
| 680 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "crt,10,20,40,60"); break; | |
| 683 | 681 | |
| 684 | 682 | default: cbmcartslot_device_getinfo(devclass, state, info); break; |
| 685 | 683 | } |
| r1711 | r1712 | |
| 690 | 688 | switch(state) |
| 691 | 689 | { |
| 692 | 690 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 693 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "p00,prg"); break; | |
| 691 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "p00,prg"); break; | |
| 694 | 692 | |
| 695 | 693 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 696 | case DEVINFO_PTR_QUICKLOAD_LOAD: info->f = (genf *) quickload_load_cbmb; break; | |
| 694 | case MESS_DEVINFO_PTR_QUICKLOAD_LOAD: info->f = (genf *) quickload_load_cbmb; break; | |
| 697 | 695 | |
| 698 | 696 | /* --- the following bits of info are returned as doubles --- */ |
| 699 | case DEVINFO_FLOAT_QUICKLOAD_DELAY: info->d = CBM_QUICKLOAD_DELAY; break; | |
| 697 | case MESS_DEVINFO_FLOAT_QUICKLOAD_DELAY: info->d = CBM_QUICKLOAD_DELAY; break; | |
| 700 | 698 | |
| 701 | 699 | default: quickload_device_getinfo(devclass, state, info); break; |
| 702 | 700 | } |
| r1711 | r1712 | |
| 716 | 714 | switch(state) |
| 717 | 715 | { |
| 718 | 716 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 719 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "p00,prg"); break; | |
| 717 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "p00,prg"); break; | |
| 720 | 718 | |
| 721 | 719 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 722 | case DEVINFO_PTR_QUICKLOAD_LOAD: info->f = (genf *) quickload_load_cbm500; break; | |
| 720 | case MESS_DEVINFO_PTR_QUICKLOAD_LOAD: info->f = (genf *) quickload_load_cbm500; break; | |
| 723 | 721 | |
| 724 | 722 | /* --- the following bits of info are returned as doubles --- */ |
| 725 | case DEVINFO_FLOAT_QUICKLOAD_DELAY: info->d = CBM_QUICKLOAD_DELAY; break; | |
| 723 | case MESS_DEVINFO_FLOAT_QUICKLOAD_DELAY: info->d = CBM_QUICKLOAD_DELAY; break; | |
| 726 | 724 | |
| 727 | 725 | default: quickload_device_getinfo(devclass, state, info); break; |
| 728 | 726 | } |
| r1711 | r1712 | |
|---|---|---|
| 634 | 634 | |
| 635 | 635 | /* video hardware */ |
| 636 | 636 | MDRV_IMPORT_FROM(tms9928a) |
| 637 | MDRV_SCREEN_ADD("main", RASTER) | |
| 637 | 638 | MDRV_SCREEN_REFRESH_RATE(50) |
| 638 | 639 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 639 | 640 | |
| r1711 | r1712 | |
| 696 | 697 | switch(state) |
| 697 | 698 | { |
| 698 | 699 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 699 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 700 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 700 | 701 | |
| 701 | 702 | default: printer_device_getinfo(devclass, state, info); break; |
| 702 | 703 | } |
| r1711 | r1712 | |
| 708 | 709 | switch(state) |
| 709 | 710 | { |
| 710 | 711 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 711 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 712 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 712 | 713 | |
| 713 | 714 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 714 | case DEVINFO_PTR_CASSETTE_FORMATS: info->p = (void *) sordm5_cassette_formats; break; | |
| 715 | case MESS_DEVINFO_PTR_CASSETTE_FORMATS: info->p = (void *) sordm5_cassette_formats; break; | |
| 715 | 716 | |
| 716 | 717 | default: cassette_device_getinfo(devclass, state, info); break; |
| 717 | 718 | } |
| r1711 | r1712 | |
| 730 | 731 | switch(state) |
| 731 | 732 | { |
| 732 | 733 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 733 | case DEVINFO_INT_COUNT: info->i = 4; break; | |
| 734 | case MESS_DEVINFO_INT_COUNT: info->i = 4; break; | |
| 734 | 735 | |
| 735 | 736 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 736 | case DEVINFO_PTR_FLOPPY_OPTIONS: info->p = (void *) floppyoptions_sordm5; break; | |
| 737 | case MESS_DEVINFO_PTR_FLOPPY_OPTIONS: info->p = (void *) floppyoptions_sordm5; break; | |
| 737 | 738 | |
| 738 | 739 | default: floppy_device_getinfo(devclass, state, info); break; |
| 739 | 740 | } |
| r1711 | r1712 | |
|---|---|---|
| 220 | 220 | |
| 221 | 221 | static PALETTE_INIT( mbee ) |
| 222 | 222 | { |
| 223 | int i; | |
| 224 | 223 | palette_set_colors_rgb(machine, 0, palette, sizeof(palette) / 3); |
| 225 | for( i = 0; i < 256; i++ ) | |
| 226 | { | |
| 227 | colortable[2*i+0] = i / 32; | |
| 228 | colortable[2*i+1] = i & 31; | |
| 229 | } | |
| 230 | 224 | } |
| 231 | 225 | |
| 232 | 226 | static const struct z80_irq_daisy_chain mbee_daisy_chain[] = |
| r1711 | r1712 | |
| 250 | 244 | MDRV_MACHINE_START( mbee ) |
| 251 | 245 | |
| 252 | 246 | MDRV_GFXDECODE(mbee) |
| 253 | MDRV_ | |
| 247 | MDRV_SC | |
| 254 | 248 | MDRV_SCREEN_REFRESH_RATE(50) |
| 255 | 249 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 256 | 250 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 257 | 251 | MDRV_SCREEN_SIZE(70*8, 310) |
| 258 | 252 | MDRV_SCREEN_VISIBLE_AREA(0*8, 70*8-1, 0, 19*16-1) |
| 259 | 253 | MDRV_PALETTE_LENGTH(sizeof(palette)/sizeof(palette[0])/3) |
| 260 | MDRV_COLORTABLE_LENGTH(256 * 2) | |
| 261 | 254 | MDRV_PALETTE_INIT(mbee) |
| 262 | 255 | |
| 263 | 256 | MDRV_VIDEO_START(mbee) |
| r1711 | r1712 | |
| 322 | 315 | switch(state) |
| 323 | 316 | { |
| 324 | 317 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 325 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 318 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 326 | 319 | |
| 327 | 320 | default: cassette_device_getinfo(devclass, state, info); break; |
| 328 | 321 | } |
| r1711 | r1712 | |
| 334 | 327 | switch(state) |
| 335 | 328 | { |
| 336 | 329 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 337 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 330 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 338 | 331 | |
| 339 | 332 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 340 | case DEVINFO_PTR_LOAD: info->load = device_load_mbee_cart; break; | |
| 333 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_mbee_cart; break; | |
| 341 | 334 | |
| 342 | 335 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 343 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "rom"); break; | |
| 336 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "rom"); break; | |
| 344 | 337 | |
| 345 | 338 | default: cartslot_device_getinfo(devclass, state, info); break; |
| 346 | 339 | } |
| r1711 | r1712 | |
| 352 | 345 | switch(state) |
| 353 | 346 | { |
| 354 | 347 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 355 | case DEVINFO_INT_COUNT: info->i = 4; break; | |
| 348 | case MESS_DEVINFO_INT_COUNT: info->i = 4; break; | |
| 356 | 349 | |
| 357 | 350 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 358 | case DEVINFO_PTR_LOAD: info->load = device_load_basicdsk_floppy; break; | |
| 351 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_basicdsk_floppy; break; | |
| 359 | 352 | |
| 360 | 353 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 361 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "dsk"); break; | |
| 354 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "dsk"); break; | |
| 362 | 355 | |
| 363 | 356 | default: legacybasicdsk_device_getinfo(devclass, state, info); break; |
| 364 | 357 | } |
| r1711 | r1712 | |
|---|---|---|
| 58 | 58 | MDRV_VIDEO_UPDATE( generic_bitmapped ) |
| 59 | 59 | |
| 60 | 60 | /* This still needs to be improved to actually match the hardware */ |
| 61 | MDRV_ | |
| 61 | MDRV_SCREEN_ADD | |
| 62 | 62 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 63 | 63 | MDRV_SCREEN_SIZE( 96, 64 ) |
| 64 | 64 | MDRV_SCREEN_VISIBLE_AREA( 0, 95, 0, 63 ) |
| 65 | 65 | MDRV_PALETTE_LENGTH( 4 ) |
| 66 | MDRV_COLORTABLE_LENGTH( 4 ) | |
| 67 | 66 | MDRV_PALETTE_INIT( pokemini ) |
| 68 | 67 | MDRV_SCREEN_REFRESH_RATE( 30 ) |
| 69 | 68 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| r1711 | r1712 | |
| 77 | 76 | |
| 78 | 77 | static void pokemini_cartslot_getinfo( const device_class *devclass, UINT32 state, union devinfo *info ) { |
| 79 | 78 | switch( state ) { |
| 80 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 81 | case DEVINFO_INT_MUST_BE_LOADED: info->i = 0; break; | |
| 82 | case DEVINFO_PTR_INIT: info->init = device_init_pokemini_cart; break; | |
| 83 | case DEVINFO_PTR_LOAD: info->load = device_load_pokemini_cart; break; | |
| 84 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy( info->s = device_temp_str(), "min"); break; | |
| 79 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 80 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 0; break; | |
| 81 | case MESS_DEVINFO_PTR_INIT: info->init = device_init_pokemini_cart; break; | |
| 82 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_pokemini_cart; break; | |
| 83 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy( info->s = device_temp_str(), "min"); break; | |
| 85 | 84 | default: cartslot_device_getinfo( devclass, state, info ); break; |
| 86 | 85 | } |
| 87 | 86 | } |
| r1711 | r1712 | |
|---|---|---|
| 584 | 584 | /* basic machine hardware */ |
| 585 | 585 | MDRV_CPU_ADD_TAG("main", M6809E, COCO_CPU_SPEED_HZ) /* 0,894886 Mhz */ |
| 586 | 586 | MDRV_CPU_PROGRAM_MAP(coco_map, 0) |
| 587 | MDRV_SCREEN_ADD("main", RASTER) | |
| 587 | 588 | MDRV_SCREEN_REFRESH_RATE(M6847_PAL_FRAMES_PER_SECOND) |
| 588 | 589 | |
| 589 | 590 | MDRV_MACHINE_START( dragon32 ) |
| r1711 | r1712 | |
| 591 | 592 | /* video hardware */ |
| 592 | 593 | MDRV_VIDEO_START(dragon) |
| 593 | 594 | MDRV_VIDEO_UPDATE(m6847) |
| 594 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 595 | 595 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 596 | 596 | MDRV_SCREEN_SIZE(320, 25+192+26) |
| 597 | 597 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 1, 239) |
| r1711 | r1712 | |
| 604 | 604 | /* basic machine hardware */ |
| 605 | 605 | MDRV_CPU_ADD_TAG("main", M6809E, COCO_CPU_SPEED_HZ) /* 0,894886 Mhz */ |
| 606 | 606 | MDRV_CPU_PROGRAM_MAP(d64_map, 0) |
| 607 | MDRV_SCREEN_REFRESH_RATE(M6847_PAL_FRAMES_PER_SECOND) | |
| 608 | 607 | |
| 609 | 608 | MDRV_MACHINE_START( dragon64 ) |
| 610 | 609 | |
| 611 | 610 | /* video hardware */ |
| 612 | 611 | MDRV_VIDEO_START(dragon) |
| 613 | 612 | MDRV_VIDEO_UPDATE(m6847) |
| 614 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 613 | MDRV_SCREEN_ADD("main", RASTER) | |
| 614 | MDRV_SCREEN_REFRESH_RATE(M6847_PAL_FRAMES_PER_SECOND) | |
| 615 | 615 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 616 | 616 | MDRV_SCREEN_SIZE(320, 25+192+26) |
| 617 | 617 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 1, 239) |
| r1711 | r1712 | |
| 624 | 624 | /* basic machine hardware */ |
| 625 | 625 | MDRV_CPU_ADD_TAG("main", M6809E, COCO_CPU_SPEED_HZ) /* 0,894886 Mhz */ |
| 626 | 626 | MDRV_CPU_PROGRAM_MAP(d64_plus_map, 0) |
| 627 | MDRV_SCREEN_REFRESH_RATE(M6847_PAL_FRAMES_PER_SECOND) | |
| 628 | 627 | |
| 629 | 628 | MDRV_MACHINE_START( dragon64 ) |
| 630 | 629 | |
| 631 | 630 | /* video hardware */ |
| 632 | 631 | MDRV_VIDEO_START(dragon) |
| 633 | 632 | MDRV_VIDEO_UPDATE(m6847) |
| 634 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 633 | MDRV_SCREEN_ADD("main", RASTER) | |
| 634 | MDRV_SCREEN_REFRESH_RATE(M6847_PAL_FRAMES_PER_SECOND) | |
| 635 | 635 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 636 | 636 | MDRV_SCREEN_SIZE(320, 25+192+26) |
| 637 | 637 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 1, 239) |
| r1711 | r1712 | |
| 644 | 644 | /* basic machine hardware */ |
| 645 | 645 | MDRV_CPU_ADD_TAG("main", M6809E, COCO_CPU_SPEED_HZ) /* 0,894886 Mhz */ |
| 646 | 646 | MDRV_CPU_PROGRAM_MAP(dgnalpha_map, 0) |
| 647 | MDRV_SCREEN_REFRESH_RATE(M6847_PAL_FRAMES_PER_SECOND) | |
| 648 | 647 | |
| 649 | 648 | MDRV_MACHINE_START( dgnalpha ) |
| 650 | 649 | |
| 651 | 650 | /* video hardware */ |
| 652 | 651 | MDRV_VIDEO_START(dragon) |
| 653 | 652 | MDRV_VIDEO_UPDATE(m6847) |
| 654 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 653 | MDRV_SCREEN_ADD("main", RASTER) | |
| 654 | MDRV_SCREEN_REFRESH_RATE(M6847_PAL_FRAMES_PER_SECOND) | |
| 655 | 655 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 656 | 656 | MDRV_SCREEN_SIZE(320, 25+192+26) |
| 657 | 657 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 1, 239) |
| r1711 | r1712 | |
| 667 | 667 | /* basic machine hardware */ |
| 668 | 668 | MDRV_CPU_ADD_TAG("main", M6809E, COCO_CPU_SPEED_HZ) /* 0,894886 Mhz */ |
| 669 | 669 | MDRV_CPU_PROGRAM_MAP(d64_map, 0) |
| 670 | MDRV_SCREEN_REFRESH_RATE(COCO_FRAMES_PER_SECOND) /* Tano Dragon 64 is NTSC */ | |
| 671 | 670 | |
| 672 | 671 | MDRV_MACHINE_START( tanodr64 ) |
| 673 | 672 | |
| 674 | 673 | /* video hardware */ |
| 675 | 674 | MDRV_VIDEO_START(dragon) |
| 676 | 675 | MDRV_VIDEO_UPDATE(m6847) |
| 677 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 676 | MDRV_SCREEN_ADD("main", RASTER) | |
| 677 | MDRV_SCREEN_REFRESH_RATE(COCO_FRAMES_PER_SECOND) /* Tano Dragon 64 is NTSC */ | |
| 678 | 678 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 679 | 679 | MDRV_SCREEN_SIZE(320, 25+192+26) |
| 680 | 680 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 1, 239) |
| r1711 | r1712 | |
| 687 | 687 | /* basic machine hardware */ |
| 688 | 688 | MDRV_CPU_ADD_TAG("main", M6809E, COCO_CPU_SPEED_HZ) /* 0,894886 Mhz */ |
| 689 | 689 | MDRV_CPU_PROGRAM_MAP(coco_map, 0) |
| 690 | MDRV_SCREEN_REFRESH_RATE(M6847_NTSC_FRAMES_PER_SECOND) | |
| 691 | 690 | |
| 692 | 691 | MDRV_MACHINE_START( coco ) |
| 693 | 692 | |
| 694 | 693 | /* video hardware */ |
| 694 | MDRV_SCREEN_ADD("main", RASTER) | |
| 695 | MDRV_SCREEN_REFRESH_RATE(M6847_NTSC_FRAMES_PER_SECOND) | |
| 695 | 696 | MDRV_VIDEO_START(coco) |
| 696 | 697 | MDRV_VIDEO_UPDATE(m6847) |
| 697 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 698 | 698 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 699 | 699 | MDRV_SCREEN_SIZE(320, 25+192+26) |
| 700 | 700 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 1, 239) |
| r1711 | r1712 | |
| 707 | 707 | /* basic machine hardware */ |
| 708 | 708 | MDRV_CPU_ADD_TAG("main", M6809E, COCO_CPU_SPEED_HZ) /* 0,894886 Mhz */ |
| 709 | 709 | MDRV_CPU_PROGRAM_MAP(coco_map, 0) |
| 710 | MDRV_SCREEN_REFRESH_RATE(M6847_NTSC_FRAMES_PER_SECOND) | |
| 711 | 710 | |
| 712 | 711 | MDRV_MACHINE_START( coco2 ) |
| 713 | 712 | |
| 714 | 713 | /* video hardware */ |
| 715 | MDRV_VIDEO_START(coco) | |
| 716 | MDRV_VIDEO_UPDATE(m6847) | |
| 717 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 714 | MDRV_SCREEN_ADD("main", RASTER) | |
| 715 | MDRV_SCREEN_REFRESH_RATE(M6847_NTSC_FRAMES_PER_SECOND) | |
| 718 | 716 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 719 | 717 | MDRV_SCREEN_SIZE(320, 25+192+26) |
| 720 | 718 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 1, 239) |
| 719 | MDRV_VIDEO_START(coco) | |
| 720 | MDRV_VIDEO_UPDATE(m6847) | |
| 721 | 721 | |
| 722 | 722 | /* sound hardware */ |
| 723 | 723 | MDRV_IMPORT_FROM( coco_sound ) |
| r1711 | r1712 | |
| 727 | 727 | /* basic machine hardware */ |
| 728 | 728 | MDRV_CPU_ADD_TAG("main", M6809E, COCO_CPU_SPEED_HZ) /* 0,894886 Mhz */ |
| 729 | 729 | MDRV_CPU_PROGRAM_MAP(coco_map, 0) |
| 730 | MDRV_SCREEN_REFRESH_RATE(M6847_NTSC_FRAMES_PER_SECOND) | |
| 731 | 730 | |
| 732 | 731 | MDRV_MACHINE_START( coco2 ) |
| 733 | 732 | |
| 734 | 733 | /* video hardware */ |
| 735 | MDRV_VIDEO_START(coco2b) | |
| 736 | MDRV_VIDEO_UPDATE(m6847) | |
| 737 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 734 | MDRV_SCREEN_ADD("main", RASTER) | |
| 735 | MDRV_SCREEN_REFRESH_RATE(M6847_NTSC_FRAMES_PER_SECOND) | |
| 738 | 736 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 739 | 737 | MDRV_SCREEN_SIZE(320, 25+192+26) |
| 740 | 738 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 1, 239) |
| 739 | MDRV_VIDEO_START(coco2b) | |
| 740 | MDRV_VIDEO_UPDATE(m6847) | |
| 741 | 741 | |
| 742 | 742 | /* sound hardware */ |
| 743 | 743 | MDRV_IMPORT_FROM( coco_sound ) |
| r1711 | r1712 | |
| 754 | 754 | /* video hardware */ |
| 755 | 755 | MDRV_VIDEO_START(coco3) |
| 756 | 756 | MDRV_VIDEO_UPDATE(coco3) |
| 757 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 758 | 757 | MDRV_DEFAULT_LAYOUT(layout_coco3) |
| 759 | 758 | |
| 760 | MDRV_SCREEN_ADD("composite", | |
| 759 | MDRV_SCREEN_ADD("composite", RASTER) | |
| 761 | 760 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 762 | 761 | MDRV_SCREEN_REFRESH_RATE(M6847_NTSC_FRAMES_PER_SECOND) |
| 763 | 762 | MDRV_SCREEN_SIZE(640, 25+192+26) |
| 764 | 763 | MDRV_SCREEN_VISIBLE_AREA(0, 639, 0, 239) |
| 765 | 764 | |
| 766 | MDRV_SCREEN_ADD("rgb", | |
| 765 | MDRV_SCREEN_ADD("rgb", RASTER) | |
| 767 | 766 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 768 | 767 | MDRV_SCREEN_REFRESH_RATE(M6847_NTSC_FRAMES_PER_SECOND) |
| 769 | 768 | MDRV_SCREEN_SIZE(640, 25+192+26) |
| r1711 | r1712 | |
| 775 | 774 | |
| 776 | 775 | static MACHINE_DRIVER_START( coco3p ) |
| 777 | 776 | MDRV_IMPORT_FROM( coco3 ) |
| 778 | MDRV_SCREEN_REFRESH_RATE(M6847_PAL_FRAMES_PER_SECOND) | |
| 779 | 777 | |
| 780 | 778 | /* video hardware */ |
| 781 | 779 | MDRV_VIDEO_START(coco3p) |
| 782 | 780 | MDRV_VIDEO_UPDATE(coco3) |
| 783 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 784 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) | |
| 785 | MDRV_SCREEN_SIZE(640, 25+192+26) | |
| 786 | MDRV_SCREEN_VISIBLE_AREA(0, 639, 1, 239) | |
| 781 | MDRV_SCREEN_MODIFY("composite") | |
| 782 | MDRV_SCREEN_REFRESH_RATE(M6847_PAL_FRAMES_PER_SECOND) | |
| 783 | MDRV_SCREEN_MODIFY("rgb") | |
| 784 | MDRV_SCREEN_REFRESH_RATE(M6847_PAL_FRAMES_PER_SECOND) | |
| 787 | 785 | MACHINE_DRIVER_END |
| 788 | 786 | |
| 789 | 787 | static MACHINE_DRIVER_START( coco3h ) |
| r1711 | r1712 | |
| 937 | 935 | switch(state) |
| 938 | 936 | { |
| 939 | 937 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 940 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 938 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 941 | 939 | |
| 942 | 940 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 943 | case DEVINFO_PTR_BITBANGER_CONFIG: info->p = (void *) &coco_bitbanger_config; break; | |
| 941 | case MESS_DEVINFO_PTR_BITBANGER_CONFIG: info->p = (void *) &coco_bitbanger_config; break; | |
| 944 | 942 | |
| 945 | 943 | default: bitbanger_device_getinfo(devclass, state, info); break; |
| 946 | 944 | } |
| r1711 | r1712 | |
| 954 | 952 | switch(state) |
| 955 | 953 | { |
| 956 | 954 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 957 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 955 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 958 | 956 | |
| 959 | 957 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 960 | case DEVINFO_PTR_CASSETTE_FORMATS: info->p = (void *) coco_cassette_formats; break; | |
| 958 | case MESS_DEVINFO_PTR_CASSETTE_FORMATS: info->p = (void *) coco_cassette_formats; break; | |
| 961 | 959 | |
| 962 | 960 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 963 | case DEVINFO_INT_CASSETTE_DEFAULT_STATE: info->i = CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_MUTED; break; | |
| 961 | case MESS_DEVINFO_INT_CASSETTE_DEFAULT_STATE: info->i = CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_MUTED; break; | |
| 964 | 962 | |
| 965 | 963 | default: cassette_device_getinfo(devclass, state, info); break; |
| 966 | 964 | } |
| r1711 | r1712 | |
| 974 | 972 | switch(state) |
| 975 | 973 | { |
| 976 | 974 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 977 | case DEVINFO_INT_COUNT: info->i = 4; break; | |
| 975 | case MESS_DEVINFO_INT_COUNT: info->i = 4; break; | |
| 978 | 976 | |
| 979 | 977 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 980 | case DEVINFO_PTR_FLOPPY_OPTIONS: info->p = (void *) floppyoptions_coco; break; | |
| 978 | case MESS_DEVINFO_PTR_FLOPPY_OPTIONS: info->p = (void *) floppyoptions_coco; break; | |
| 981 | 979 | |
| 982 | 980 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 983 | case DEVINFO_STR_NAME+0: strcpy(info->s = device_temp_str(), "floppydisk0"); break; | |
| 984 | case DEVINFO_STR_NAME+1: strcpy(info->s = device_temp_str(), "floppydisk1"); break; | |
| 985 | case DEVINFO_STR_NAME+2: strcpy(info->s = device_temp_str(), "floppydisk2"); break; | |
| 986 | case DEVINFO_STR_NAME+3: strcpy(info->s = device_temp_str(), "floppydisk3"); break; | |
| 987 | case DEVINFO_STR_SHORT_NAME+0: strcpy(info->s = device_temp_str(), "flop0"); break; | |
| 988 | case DEVINFO_STR_SHORT_NAME+1: strcpy(info->s = device_temp_str(), "flop1"); break; | |
| 989 | case DEVINFO_STR_SHORT_NAME+2: strcpy(info->s = device_temp_str(), "flop2"); break; | |
| 990 | case DEVINFO_STR_SHORT_NAME+3: strcpy(info->s = device_temp_str(), "flop3"); break; | |
| 991 | case DEVINFO_STR_DESCRIPTION+0: strcpy(info->s = device_temp_str(), "Floppy #0"); break; | |
| 992 | case DEVINFO_STR_DESCRIPTION+1: strcpy(info->s = device_temp_str(), "Floppy #1"); break; | |
| 993 | case DEVINFO_STR_DESCRIPTION+2: strcpy(info->s = device_temp_str(), "Floppy #2"); break; | |
| 994 | case DEVINFO_STR_DESCRIPTION+3: strcpy(info->s = device_temp_str(), "Floppy #3"); break; | |
| 981 | case MESS_DEVINFO_STR_NAME+0: strcpy(info->s = device_temp_str(), "floppydisk0"); break; | |
| 982 | case MESS_DEVINFO_STR_NAME+1: strcpy(info->s = device_temp_str(), "floppydisk1"); break; | |
| 983 | case MESS_DEVINFO_STR_NAME+2: strcpy(info->s = device_temp_str(), "floppydisk2"); break; | |
| 984 | case MESS_DEVINFO_STR_NAME+3: strcpy(info->s = device_temp_str(), "floppydisk3"); break; | |
| 985 | case MESS_DEVINFO_STR_SHORT_NAME+0: strcpy(info->s = device_temp_str(), "flop0"); break; | |
| 986 | case MESS_DEVINFO_STR_SHORT_NAME+1: strcpy(info->s = device_temp_str(), "flop1"); break; | |
| 987 | case MESS_DEVINFO_STR_SHORT_NAME+2: strcpy(info->s = device_temp_str(), "flop2"); break; | |
| 988 | case MESS_DEVINFO_STR_SHORT_NAME+3: strcpy(info->s = device_temp_str(), "flop3"); break; | |
| 989 | case MESS_DEVINFO_STR_DESCRIPTION+0: strcpy(info->s = device_temp_str(), "Floppy #0"); break; | |
| 990 | case MESS_DEVINFO_STR_DESCRIPTION+1: strcpy(info->s = device_temp_str(), "Floppy #1"); break; | |
| 991 | case MESS_DEVINFO_STR_DESCRIPTION+2: strcpy(info->s = device_temp_str(), "Floppy #2"); break; | |
| 992 | case MESS_DEVINFO_STR_DESCRIPTION+3: strcpy(info->s = device_temp_str(), "Floppy #3"); break; | |
| 995 | 993 | |
| 996 | 994 | default: floppy_device_getinfo(devclass, state, info); break; |
| 997 | 995 | } |
| r1711 | r1712 | |
| 1004 | 1002 | switch(state) |
| 1005 | 1003 | { |
| 1006 | 1004 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 1007 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 1005 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 1008 | 1006 | |
| 1009 | 1007 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 1010 | case DEVINFO_PTR_LOAD: info->load = device_load_coco_rom; break; | |
| 1011 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_coco_rom; break; | |
| 1008 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_coco_rom; break; | |
| 1009 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_coco_rom; break; | |
| 1012 | 1010 | |
| 1013 | 1011 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 1014 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "ccc,rom"); break; | |
| 1012 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "ccc,rom"); break; | |
| 1015 | 1013 | |
| 1016 | 1014 | default: cartslot_device_getinfo(devclass, state, info); break; |
| 1017 | 1015 | } |
| r1711 | r1712 | |
| 1024 | 1022 | switch(state) |
| 1025 | 1023 | { |
| 1026 | 1024 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 1027 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 1025 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 1028 | 1026 | |
| 1029 | 1027 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 1030 | case DEVINFO_PTR_LOAD: info->load = device_load_coco3_rom; break; | |
| 1031 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_coco3_rom; break; | |
| 1028 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_coco3_rom; break; | |
| 1029 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_coco3_rom; break; | |
| 1032 | 1030 | |
| 1033 | 1031 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 1034 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "ccc,rom"); break; | |
| 1032 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "ccc,rom"); break; | |
| 1035 | 1033 | |
| 1036 | 1034 | default: cartslot_device_getinfo(devclass, state, info); break; |
| 1037 | 1035 | } |
| r1711 | r1712 | |
| 1044 | 1042 | switch(state) |
| 1045 | 1043 | { |
| 1046 | 1044 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 1047 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "pak"); break; | |
| 1045 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "pak"); break; | |
| 1048 | 1046 | |
| 1049 | 1047 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 1050 | case DEVINFO_PTR_SNAPSHOT_LOAD: info->f = (genf *) snapshot_load_coco_pak; break; | |
| 1048 | case MESS_DEVINFO_PTR_SNAPSHOT_LOAD: info->f = (genf *) snapshot_load_coco_pak; break; | |
| 1051 | 1049 | |
| 1052 | 1050 | default: snapshot_device_getinfo(devclass, state, info); break; |
| 1053 | 1051 | } |
| r1711 | r1712 | |
| 1060 | 1058 | switch(state) |
| 1061 | 1059 | { |
| 1062 | 1060 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 1063 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "pak"); break; | |
| 1061 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "pak"); break; | |
| 1064 | 1062 | |
| 1065 | 1063 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 1066 | case DEVINFO_PTR_SNAPSHOT_LOAD: info->f = (genf *) snapshot_load_coco3_pak; break; | |
| 1064 | case MESS_DEVINFO_PTR_SNAPSHOT_LOAD: info->f = (genf *) snapshot_load_coco3_pak; break; | |
| 1067 | 1065 | |
| 1068 | 1066 | default: snapshot_device_getinfo(devclass, state, info); break; |
| 1069 | 1067 | } |
| r1711 | r1712 | |
| 1081 | 1079 | switch(state) |
| 1082 | 1080 | { |
| 1083 | 1081 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 1084 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 1082 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 1085 | 1083 | |
| 1086 | 1084 | default: printer_device_getinfo(devclass, state, info); break; |
| 1087 | 1085 | } |
| r1711 | r1712 | |
|---|---|---|
| 410 | 410 | |
| 411 | 411 | /* video hardware */ |
| 412 | 412 | MDRV_IMPORT_FROM(tms9928a) |
| 413 | MDRV_SCREEN_ADD("main", RASTER) | |
| 413 | 414 | MDRV_SCREEN_REFRESH_RATE(60) |
| 414 | 415 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 415 | 416 | |
| r1711 | r1712 | |
| 493 | 494 | switch(state) |
| 494 | 495 | { |
| 495 | 496 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 496 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 497 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 497 | 498 | |
| 498 | 499 | default: cassette_device_getinfo(devclass, state, info); break; |
| 499 | 500 | } |
| r1711 | r1712 | |
| 505 | 506 | switch(state) |
| 506 | 507 | { |
| 507 | 508 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 508 | case DEVINFO_INT_TYPE: info->i = IO_CARTSLOT; break; | |
| 509 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 510 | case DEVINFO_INT_WRITEABLE: info->i = 0; break; | |
| 511 | case DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 512 | case DEVINFO_INT_COUNT: info->i = 3; break; | |
| 509 | case MESS_DEVINFO_INT_TYPE: info->i = IO_CARTSLOT; break; | |
| 510 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 511 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 0; break; | |
| 512 | case MESS_DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 513 | case MESS_DEVINFO_INT_COUNT: info->i = 3; break; | |
| 513 | 514 | |
| 514 | 515 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 515 | case DEVINFO_PTR_LOAD: info->load = device_load_ti99_cart; break; | |
| 516 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_ti99_cart; break; | |
| 516 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_ti99_cart; break; | |
| 517 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_ti99_cart; break; | |
| 517 | 518 | |
| 518 | 519 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 519 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "bin,c,d,g,m,crom,drom,grom,mrom"); break; | |
| 520 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "bin,c,d,g,m,crom,drom,grom,mrom"); break; | |
| 520 | 521 | } |
| 521 | 522 | } |
| 522 | 523 | |
| r1711 | r1712 | |
| 526 | 527 | switch(state) |
| 527 | 528 | { |
| 528 | 529 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 529 | case DEVINFO_INT_COUNT: info->i = 4; break; | |
| 530 | case MESS_DEVINFO_INT_COUNT: info->i = 4; break; | |
| 530 | 531 | |
| 531 | 532 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 532 | case DEVINFO_PTR_FLOPPY_OPTIONS: info->p = (void *) floppyoptions_ti99; break; | |
| 533 | case MESS_DEVINFO_PTR_FLOPPY_OPTIONS: info->p = (void *) floppyoptions_ti99; break; | |
| 533 | 534 | |
| 534 | 535 | default: floppy_device_getinfo(devclass, state, info); break; |
| 535 | 536 | } |
| r1711 | r1712 | |
| 541 | 542 | switch(state) |
| 542 | 543 | { |
| 543 | 544 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 544 | case DEVINFO_INT_TYPE: info->i = IO_HARDDISK; break; | |
| 545 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 546 | case DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 547 | case DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 548 | case DEVINFO_INT_COUNT: info->i = 3; break; | |
| 545 | case MESS_DEVINFO_INT_TYPE: info->i = IO_HARDDISK; break; | |
| 546 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 547 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 548 | case MESS_DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 549 | case MESS_DEVINFO_INT_COUNT: info->i = 3; break; | |
| 549 | 550 | |
| 550 | 551 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 551 | case DEVINFO_PTR_INIT: info->init = device_init_mess_hd; break; | |
| 552 | case DEVINFO_PTR_LOAD: info->load = device_load_ti99_hd; break; | |
| 553 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_ti99_hd; break; | |
| 552 | case MESS_DEVINFO_PTR_INIT: info->init = device_init_mess_hd; break; | |
| 553 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_ti99_hd; break; | |
| 554 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_ti99_hd; break; | |
| 554 | 555 | |
| 555 | 556 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 556 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "hd"); break; | |
| 557 | case DEVINFO_STR_DEV_TAG: strcpy(info->s = device_temp_str(), "ti99_8_hd"); break; | |
| 557 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "hd"); break; | |
| 558 | case MESS_DEVINFO_STR_DEV_TAG: strcpy(info->s = device_temp_str(), "ti99_8_hd"); break; | |
| 558 | 559 | } |
| 559 | 560 | } |
| 560 | 561 | |
| r1711 | r1712 | |
| 564 | 565 | switch(state) |
| 565 | 566 | { |
| 566 | 567 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 567 | case DEVINFO_INT_TYPE: info->i = IO_PARALLEL; break; | |
| 568 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 569 | case DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 570 | case DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 571 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 568 | case MESS_DEVINFO_INT_TYPE: info->i = IO_PARALLEL; break; | |
| 569 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 570 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 571 | case MESS_DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 572 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 572 | 573 | |
| 573 | 574 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 574 | case DEVINFO_PTR_LOAD: info->load = device_load_ti99_4_pio; break; | |
| 575 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_ti99_4_pio; break; | |
| 575 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_ti99_4_pio; break; | |
| 576 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_ti99_4_pio; break; | |
| 576 | 577 | |
| 577 | 578 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 578 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), ""); break; | |
| 579 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), ""); break; | |
| 579 | 580 | } |
| 580 | 581 | } |
| 581 | 582 | |
| r1711 | r1712 | |
| 585 | 586 | switch(state) |
| 586 | 587 | { |
| 587 | 588 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 588 | case DEVINFO_INT_TYPE: info->i = IO_SERIAL; break; | |
| 589 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 590 | case DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 591 | case DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 592 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 589 | case MESS_DEVINFO_INT_TYPE: info->i = IO_SERIAL; break; | |
| 590 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 591 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 592 | case MESS_DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 593 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 593 | 594 | |
| 594 | 595 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 595 | case DEVINFO_PTR_LOAD: info->load = device_load_ti99_4_rs232; break; | |
| 596 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_ti99_4_rs232; break; | |
| 596 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_ti99_4_rs232; break; | |
| 597 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_ti99_4_rs232; break; | |
| 597 | 598 | |
| 598 | 599 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 599 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), ""); break; | |
| 600 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), ""); break; | |
| 600 | 601 | } |
| 601 | 602 | } |
| 602 | 603 | |
| r1711 | r1712 | |
| 607 | 608 | switch(state) |
| 608 | 609 | { |
| 609 | 610 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 610 | case DEVINFO_INT_TYPE: info->i = IO_QUICKLOAD; break; | |
| 611 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 612 | case DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 613 | case DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 614 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 615 | case DEVINFO_INT_RESET_ON_LOAD: info->i = 1; break; | |
| 611 | case MESS_DEVINFO_INT_TYPE: info->i = IO_QUICKLOAD; break; | |
| 612 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 613 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 614 | case MESS_DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 615 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 616 | case MESS_DEVINFO_INT_RESET_ON_LOAD: info->i = 1; break; | |
| 616 | 617 | |
| 617 | 618 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 618 | case DEVINFO_PTR_LOAD: info->load = device_load_ti99_hsgpl; break; | |
| 619 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_ti99_hsgpl; break; | |
| 619 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_ti99_hsgpl; break; | |
| 620 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_ti99_hsgpl; break; | |
| 620 | 621 | |
| 621 | 622 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 622 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), ""); break; | |
| 623 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), ""); break; | |
| 623 | 624 | } |
| 624 | 625 | } |
| 625 | 626 | #endif |
| r1711 | r1712 | |
| 630 | 631 | switch(state) |
| 631 | 632 | { |
| 632 | 633 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 633 | case DEVINFO_INT_TYPE: info->i = IO_MEMCARD; break; | |
| 634 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 635 | case DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 636 | case DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 637 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 634 | case MESS_DEVINFO_INT_TYPE: info->i = IO_MEMCARD; break; | |
| 635 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 636 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 637 | case MESS_DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 638 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 638 | 639 | |
| 639 | 640 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 640 | case DEVINFO_PTR_INIT: info->init = device_init_smartmedia; break; | |
| 641 | case DEVINFO_PTR_LOAD: info->load = device_load_smartmedia; break; | |
| 642 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_smartmedia; break; | |
| 641 | case MESS_DEVINFO_PTR_INIT: info->init = device_init_smartmedia; break; | |
| 642 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_smartmedia; break; | |
| 643 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_smartmedia; break; | |
| 643 | 644 | |
| 644 | 645 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 645 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), ""); break; | |
| 646 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), ""); break; | |
| 646 | 647 | } |
| 647 | 648 | } |
| 648 | 649 |
| r1711 | r1712 | |
|---|---|---|
| 294 | 294 | /* basic machine hardware */ |
| 295 | 295 | MDRV_CPU_ADD_TAG("main", N2A03, NTSC_CLOCK) |
| 296 | 296 | MDRV_CPU_PROGRAM_MAP(nes_map, 0) |
| 297 | MDRV_SCREEN_ADD("main", RASTER) | |
| 297 | 298 | MDRV_SCREEN_REFRESH_RATE(60.098) |
| 298 | 299 | // This isn't used so much to calulate the vblank duration (the PPU code tracks that manually) but to determine |
| 299 | 300 | // the number of cycles in each scanline for the PPU scanline timer. Since the PPU has 20 vblank scanlines + 2 |
| r1711 | r1712 | |
| 304 | 305 | MDRV_MACHINE_START( nes ) |
| 305 | 306 | MDRV_MACHINE_RESET( nes ) |
| 306 | 307 | |
| 307 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 308 | 308 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 309 | 309 | MDRV_SCREEN_SIZE(32*8, 262) |
| 310 | 310 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 30*8-1) |
| r1711 | r1712 | |
| 313 | 313 | MDRV_VIDEO_UPDATE(nes) |
| 314 | 314 | |
| 315 | 315 | MDRV_PALETTE_LENGTH(4*16*8) |
| 316 | MDRV_COLORTABLE_LENGTH(4*8) | |
| 317 | 316 | |
| 318 | 317 | /* sound hardware */ |
| 319 | 318 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| r1711 | r1712 | |
| 327 | 326 | |
| 328 | 327 | /* basic machine hardware */ |
| 329 | 328 | MDRV_CPU_REPLACE("main", N2A03, PAL_CLOCK) |
| 329 | ||
| 330 | /* video hardware */ | |
| 331 | MDRV_SCREEN_MODIFY("main") | |
| 330 | 332 | MDRV_SCREEN_REFRESH_RATE(53.355) |
| 331 | 333 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC((106.53/(PAL_CLOCK/1000000)) * (PPU_VBLANK_LAST_SCANLINE_PAL-PPU_VBLANK_FIRST_SCANLINE+1+2))) |
| 332 | ||
| 333 | 334 | MDRV_VIDEO_START(nes_pal) |
| 334 | 335 | |
| 335 | 336 | /* sound hardware */ |
| r1711 | r1712 | |
| 344 | 345 | switch(state) |
| 345 | 346 | { |
| 346 | 347 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 347 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 348 | case DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 348 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 349 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 349 | 350 | |
| 350 | 351 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 351 | case DEVINFO_PTR_LOAD: info->load = device_load_nes_cart; break; | |
| 352 | case DEVINFO_PTR_PARTIAL_HASH: info->partialhash = nes_partialhash; break; | |
| 352 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_nes_cart; break; | |
| 353 | case MESS_DEVINFO_PTR_PARTIAL_HASH: info->partialhash = nes_partialhash; break; | |
| 353 | 354 | |
| 354 | 355 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 355 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "nes"); break; | |
| 356 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "nes"); break; | |
| 356 | 357 | |
| 357 | 358 | default: cartslot_device_getinfo(devclass, state, info); break; |
| 358 | 359 | } |
| r1711 | r1712 | |
| 368 | 369 | switch(state) |
| 369 | 370 | { |
| 370 | 371 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 371 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 372 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 372 | 373 | |
| 373 | 374 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 374 | case DEVINFO_PTR_LOAD: info->load = device_load_nes_cart; break; | |
| 375 | case DEVINFO_PTR_PARTIAL_HASH: info->partialhash = nes_partialhash; break; | |
| 375 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_nes_cart; break; | |
| 376 | case MESS_DEVINFO_PTR_PARTIAL_HASH: info->partialhash = nes_partialhash; break; | |
| 376 | 377 | |
| 377 | 378 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 378 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "nes"); break; | |
| 379 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "nes"); break; | |
| 379 | 380 | |
| 380 | 381 | default: cartslot_device_getinfo(devclass, state, info); break; |
| 381 | 382 | } |
| r1711 | r1712 | |
| 387 | 388 | switch(state) |
| 388 | 389 | { |
| 389 | 390 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 390 | case DEVINFO_INT_TYPE: info->i = IO_FLOPPY; break; | |
| 391 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 392 | case DEVINFO_INT_WRITEABLE: info->i = 0; break; | |
| 393 | case DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 394 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 391 | case MESS_DEVINFO_INT_TYPE: info->i = IO_FLOPPY; break; | |
| 392 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 393 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 0; break; | |
| 394 | case MESS_DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 395 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 395 | 396 | |
| 396 | 397 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 397 | case DEVINFO_PTR_INIT: info->init = device_init_nes_disk; break; | |
| 398 | case DEVINFO_PTR_LOAD: info->load = device_load_nes_disk; break; | |
| 399 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_nes_disk; break; | |
| 398 | case MESS_DEVINFO_PTR_INIT: info->init = device_init_nes_disk; break; | |
| 399 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_nes_disk; break; | |
| 400 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_nes_disk; break; | |
| 400 | 401 | |
| 401 | 402 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 402 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "dsk,fds"); break; | |
| 403 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "dsk,fds"); break; | |
| 403 | 404 | } |
| 404 | 405 | } |
| 405 | 406 |
| r1711 | r1712 | |
|---|---|---|
| 521 | 521 | (lcd dot displayed as 2x3 pixel) |
| 522 | 522 | it seams to have 3/4 ratio in the real pc1401 */ |
| 523 | 523 | /* video hardware */ |
| 524 | MDRV_ | |
| 524 | MDRV_SC | |
| 525 | 525 | MDRV_SCREEN_REFRESH_RATE(20) /* very early and slow lcd */ |
| 526 | 526 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 527 | 527 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
| 531 | 531 | // MDRV_SCREEN_VISIBLE_AREA(0, 640-1, 0, 273-1) |
| 532 | 532 | MDRV_GFXDECODE( pc1401 ) |
| 533 | 533 | MDRV_PALETTE_LENGTH(248 + 32768) |
| 534 | MDRV_COLORTABLE_LENGTH( 16 ) | |
| 535 | 534 | MDRV_PALETTE_INIT( pocketc ) |
| 536 | 535 | |
| 537 | 536 | MDRV_VIDEO_START( pocketc ) |
| r1711 | r1712 | |
|---|---|---|
| 175 | 175 | |
| 176 | 176 | /* video hardware */ |
| 177 | 177 | MDRV_DEFAULT_LAYOUT( layout_mk1 ) |
| 178 | MDRV_SCREEN_ADD("main", RASTER) | |
| 178 | 179 | MDRV_SCREEN_REFRESH_RATE( LCD_FRAMES_PER_SECOND ) |
| 179 | 180 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 180 | 181 | MACHINE_DRIVER_END |
| r1711 | r1712 | |
|---|---|---|
| 558 | 558 | MDRV_CPU_CONFIG(dmg_cpu_reset) |
| 559 | 559 | MDRV_CPU_VBLANK_INT(gb_scanline_interrupt, 1) /* 1 dummy int each frame */ |
| 560 | 560 | |
| 561 | MDRV_SCREEN_ADD("main", RASTER) | |
| 561 | 562 | MDRV_SCREEN_REFRESH_RATE(DMG_FRAMES_PER_SECOND) |
| 562 | 563 | MDRV_SCREEN_VBLANK_TIME(0) |
| 563 | 564 | MDRV_INTERLEAVE(1) |
| r1711 | r1712 | |
| 568 | 569 | MDRV_VIDEO_START( generic_bitmapped ) |
| 569 | 570 | MDRV_VIDEO_UPDATE( generic_bitmapped ) |
| 570 | 571 | |
| 571 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 572 | 572 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 573 | 573 | MDRV_DEFAULT_LAYOUT(layout_gb) |
| 574 | 574 | // MDRV_SCREEN_SIZE(20*8, 18*8) |
| r1711 | r1712 | |
| 576 | 576 | MDRV_SCREEN_VISIBLE_AREA(0*8, 20*8-1, 0*8, 18*8-1) |
| 577 | 577 | MDRV_GFXDECODE(gb) |
| 578 | 578 | MDRV_PALETTE_LENGTH(4) |
| 579 | MDRV_COLORTABLE_LENGTH(4) | |
| 580 | 579 | MDRV_PALETTE_INIT(gb) |
| 581 | 580 | |
| 582 | 581 | /* sound hardware */ |
| r1711 | r1712 | |
| 598 | 597 | MDRV_MACHINE_RESET( sgb ) |
| 599 | 598 | |
| 600 | 599 | MDRV_DEFAULT_LAYOUT(layout_horizont) /* runs on a TV, not an LCD */ |
| 600 | ||
| 601 | MDRV_SCREEN_MODIFY("main") | |
| 601 | 602 | MDRV_SCREEN_SIZE(32*8, 28*8) |
| 602 | 603 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 28*8-1) |
| 603 | 604 | MDRV_PALETTE_LENGTH(32768) |
| 604 | MDRV_COLORTABLE_LENGTH(8*16) /* 8 palettes of 16 colours */ | |
| 605 | 605 | MDRV_PALETTE_INIT(sgb) |
| 606 | 606 | MACHINE_DRIVER_END |
| 607 | 607 | |
| r1711 | r1712 | |
| 622 | 622 | MDRV_MACHINE_RESET(gbc) |
| 623 | 623 | |
| 624 | 624 | MDRV_PALETTE_LENGTH(32768) |
| 625 | MDRV_COLORTABLE_LENGTH(16*4) /* 16 palettes of 4 colours */ | |
| 626 | 625 | MDRV_PALETTE_INIT(gbc) |
| 627 | 626 | MACHINE_DRIVER_END |
| 628 | 627 | |
| r1711 | r1712 | |
| 632 | 631 | switch(state) |
| 633 | 632 | { |
| 634 | 633 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 635 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 636 | case DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 634 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 635 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 637 | 636 | |
| 638 | 637 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 639 | case DEVINFO_PTR_INIT: info->init = device_init_gb_cart; break; | |
| 640 | case DEVINFO_PTR_LOAD: info->load = device_load_gb_cart; break; | |
| 638 | case MESS_DEVINFO_PTR_INIT: info->init = device_init_gb_cart; break; | |
| 639 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_gb_cart; break; | |
| 641 | 640 | |
| 642 | 641 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 643 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "gb,gmb,cgb,gbc,sgb"); break; | |
| 642 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "gb,gmb,cgb,gbc,sgb"); break; | |
| 644 | 643 | |
| 645 | 644 | default: cartslot_device_getinfo(devclass, state, info); break; |
| 646 | 645 | } |
| r1711 | r1712 | |
| 651 | 650 | switch(state) |
| 652 | 651 | { |
| 653 | 652 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 654 | case DEVINFO_INT_MUST_BE_LOADED: info->i = 0; break; | |
| 653 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 0; break; | |
| 655 | 654 | |
| 656 | 655 | default: gameboy_cartslot_getinfo(devclass, state, info); break; |
| 657 | 656 | } |
| r1711 | r1712 | |
| 677 | 676 | MDRV_CPU_VBLANK_INT(gb_scanline_interrupt, 1) /* 1 int each scanline ! */ |
| 678 | 677 | MDRV_CPU_CONFIG(megaduck_cpu_reset) |
| 679 | 678 | |
| 679 | MDRV_SCREEN_ADD("main", RASTER) | |
| 680 | 680 | MDRV_SCREEN_REFRESH_RATE(DMG_FRAMES_PER_SECOND) |
| 681 | 681 | MDRV_SCREEN_VBLANK_TIME(0) |
| 682 | 682 | MDRV_INTERLEAVE(1) |
| r1711 | r1712 | |
| 686 | 686 | MDRV_VIDEO_START( generic_bitmapped ) |
| 687 | 687 | MDRV_VIDEO_UPDATE( generic_bitmapped ) |
| 688 | 688 | |
| 689 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 690 | 689 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 691 | 690 | MDRV_SCREEN_SIZE(20*8, 18*8) |
| 692 | 691 | MDRV_SCREEN_VISIBLE_AREA(0*8, 20*8-1, 0*8, 18*8-1) |
| 693 | 692 | MDRV_DEFAULT_LAYOUT(layout_gb) |
| 694 | 693 | MDRV_GFXDECODE(gb) |
| 695 | 694 | MDRV_PALETTE_LENGTH(4) |
| 696 | MDRV_COLORTABLE_LENGTH(4) | |
| 697 | 695 | MDRV_PALETTE_INIT(megaduck) |
| 698 | 696 | |
| 699 | 697 | MDRV_SPEAKER_STANDARD_STEREO("left", "right") |
| r1711 | r1712 | |
| 709 | 707 | switch(state) |
| 710 | 708 | { |
| 711 | 709 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 712 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 713 | case DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 710 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 711 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 714 | 712 | |
| 715 | 713 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 716 | case DEVINFO_PTR_LOAD: info->load = device_load_megaduck_cart; break; | |
| 714 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_megaduck_cart; break; | |
| 717 | 715 | |
| 718 | 716 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 719 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "bin"); break; | |
| 717 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "bin"); break; | |
| 720 | 718 | |
| 721 | 719 | default: cartslot_device_getinfo(devclass, state, info); break; |
| 722 | 720 | } |
| r1711 | r1712 | |
|---|---|---|
| 718 | 718 | MDRV_MACHINE_RESET( z88 ) |
| 719 | 719 | |
| 720 | 720 | /* video hardware */ |
| 721 | MDRV_ | |
| 721 | MDRV_SC | |
| 722 | 722 | MDRV_SCREEN_REFRESH_RATE(50) |
| 723 | 723 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) |
| 724 | 724 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 725 | 725 | MDRV_SCREEN_SIZE(Z88_SCREEN_WIDTH, 480) |
| 726 | 726 | MDRV_SCREEN_VISIBLE_AREA(0, (Z88_SCREEN_WIDTH - 1), 0, (480 - 1)) |
| 727 | 727 | MDRV_PALETTE_LENGTH(Z88_NUM_COLOURS) |
| 728 | MDRV_COLORTABLE_LENGTH(Z88_NUM_COLOURS) | |
| 729 | 728 | MDRV_PALETTE_INIT( z88 ) |
| 730 | 729 | |
| 731 | 730 | MDRV_VIDEO_EOF( z88 ) |
| r1711 | r1712 | |
|---|---|---|
| 63 | 63 | MDRV_MACHINE_START(concept) |
| 64 | 64 | |
| 65 | 65 | /* video hardware */ |
| 66 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 66 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 67 | MDRV_SCREEN_ADD("main", RASTER) | |
| 67 | 68 | MDRV_SCREEN_REFRESH_RATE(60) /* 50 or 60, jumper-selectable */ |
| 68 | 69 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 69 | 70 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 70 | 71 | MDRV_SCREEN_SIZE(720, 560) |
| 71 | 72 | MDRV_SCREEN_VISIBLE_AREA(0, 720-1, 0, 560-1) |
| 72 | 73 | MDRV_PALETTE_LENGTH(2) |
| 73 | MDRV_COLORTABLE_LENGTH(2) | |
| 74 | 74 | MDRV_PALETTE_INIT(concept) |
| 75 | 75 | |
| 76 | 76 | MDRV_VIDEO_START(concept) |
| r1711 | r1712 | |
| 305 | 305 | switch(state) |
| 306 | 306 | { |
| 307 | 307 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 308 | case DEVINFO_INT_COUNT: info->i = 4; break; | |
| 308 | case MESS_DEVINFO_INT_COUNT: info->i = 4; break; | |
| 309 | 309 | |
| 310 | 310 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 311 | case DEVINFO_PTR_FLOPPY_OPTIONS: info->p = (void *) floppyoptions_concept; break; | |
| 311 | case MESS_DEVINFO_PTR_FLOPPY_OPTIONS: info->p = (void *) floppyoptions_concept; break; | |
| 312 | 312 | |
| 313 | 313 | default: floppy_device_getinfo(devclass, state, info); break; |
| 314 | 314 | } |
| r1711 | r1712 | |
| 320 | 320 | switch(state) |
| 321 | 321 | { |
| 322 | 322 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 323 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 323 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 324 | 324 | |
| 325 | 325 | default: harddisk_device_getinfo(devclass, state, info); break; |
| 326 | 326 | } |
| r1711 | r1712 | |
|---|---|---|
| 1405 | 1405 | MDRV_NVRAM_HANDLER( pcw16 ) |
| 1406 | 1406 | |
| 1407 | 1407 | /* video hardware */ |
| 1408 | MDRV_ | |
| 1408 | MDRV_SC | |
| 1409 | 1409 | MDRV_SCREEN_REFRESH_RATE(50) |
| 1410 | 1410 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 1411 | 1411 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1412 | 1412 | MDRV_SCREEN_SIZE(PCW16_SCREEN_WIDTH, PCW16_SCREEN_HEIGHT) |
| 1413 | 1413 | MDRV_SCREEN_VISIBLE_AREA(0, PCW16_SCREEN_WIDTH-1, 0, PCW16_SCREEN_HEIGHT-1) |
| 1414 | 1414 | MDRV_PALETTE_LENGTH(PCW16_NUM_COLOURS) |
| 1415 | MDRV_COLORTABLE_LENGTH(PCW16_NUM_COLOURS) | |
| 1416 | 1415 | MDRV_PALETTE_INIT( pcw16 ) |
| 1417 | 1416 | |
| 1418 | 1417 | MDRV_VIDEO_START( pcw16 ) |
| r1711 | r1712 | |
| 1452 | 1451 | switch(state) |
| 1453 | 1452 | { |
| 1454 | 1453 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 1455 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 1454 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 1456 | 1455 | |
| 1457 | 1456 | default: printer_device_getinfo(devclass, state, info); break; |
| 1458 | 1457 | } |
| r1711 | r1712 | |
| 1465 | 1464 | switch(state) |
| 1466 | 1465 | { |
| 1467 | 1466 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 1468 | case DEVINFO_INT_COUNT: info->i = 2; break; | |
| 1467 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 1469 | 1468 | |
| 1470 | 1469 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 1471 | case DEVINFO_PTR_FLOPPY_OPTIONS: info->p = (void *) floppyoptions_pc; break; | |
| 1470 | case MESS_DEVINFO_PTR_FLOPPY_OPTIONS: info->p = (void *) floppyoptions_pc; break; | |
| 1472 | 1471 | |
| 1473 | 1472 | default: floppy_device_getinfo(devclass, state, info); break; |
| 1474 | 1473 | } |
| r1711 | r1712 | |
|---|---|---|
| 225 | 225 | MDRV_MACHINE_RESET( ti990_4 ) |
| 226 | 226 | |
| 227 | 227 | /* video hardware - we emulate a single 911 vdt display */ |
| 228 | MDRV_ | |
| 228 | MDRV_SC | |
| 229 | 229 | MDRV_SCREEN_REFRESH_RATE(60) |
| 230 | 230 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 231 | 231 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
| 241 | 241 | #if VIDEO_911 |
| 242 | 242 | MDRV_GFXDECODE(vdt911) |
| 243 | 243 | MDRV_PALETTE_LENGTH(vdt911_palette_size) |
| 244 | MDRV_COLORTABLE_LENGTH(vdt911_colortable_size) | |
| 245 | 244 | #else |
| 246 | 245 | MDRV_GFXDECODE(asr733) |
| 247 | 246 | MDRV_PALETTE_LENGTH(asr733_palette_size) |
| 248 | MDRV_COLORTABLE_LENGTH(asr733_colortable_size) | |
| 249 | 247 | #endif |
| 250 | 248 | |
| 251 | 249 | #if VIDEO_911 |
| r1711 | r1712 | |
| 329 | 327 | switch(state) |
| 330 | 328 | { |
| 331 | 329 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 332 | case DEVINFO_INT_COUNT: info->i = 4; break; | |
| 330 | case MESS_DEVINFO_INT_COUNT: info->i = 4; break; | |
| 333 | 331 | |
| 334 | 332 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 335 | case DEVINFO_PTR_FLOPPY_OPTIONS: info->p = (void *) floppyoptions_fd800; break; | |
| 333 | case MESS_DEVINFO_PTR_FLOPPY_OPTIONS: info->p = (void *) floppyoptions_fd800; break; | |
| 336 | 334 | |
| 337 | 335 | default: floppy_device_getinfo(devclass, state, info); break; |
| 338 | 336 | } |
| r1711 | r1712 | |
|---|---|---|
| 168 | 168 | MDRV_MACHINE_RESET( kim1 ) |
| 169 | 169 | |
| 170 | 170 | /* video hardware (well, actually there was no video ;) */ |
| 171 | MDRV_ | |
| 171 | MDRV_SC | |
| 172 | 172 | MDRV_SCREEN_REFRESH_RATE(60) |
| 173 | 173 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 174 | 174 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
| 176 | 176 | MDRV_SCREEN_VISIBLE_AREA(0, 600 - 1, 0, 768 - 1) |
| 177 | 177 | MDRV_GFXDECODE( kim1 ) |
| 178 | 178 | MDRV_PALETTE_LENGTH(32768+21) |
| 179 | MDRV_COLORTABLE_LENGTH(256) | |
| 180 | 179 | MDRV_PALETTE_INIT( kim1 ) |
| 181 | 180 | |
| 182 | 181 | MDRV_VIDEO_START( kim1 ) |
| r1711 | r1712 | |
|---|---|---|
| 875 | 875 | MDRV_MACHINE_RESET(glasgow) |
| 876 | 876 | |
| 877 | 877 | /* video hardware */ |
| 878 | ||
| 878 | MDRV_SC | |
| 879 | 879 | MDRV_SCREEN_REFRESH_RATE(60) |
| 880 | 880 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) |
| 881 | 881 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| r1711 | r1712 | |
|---|---|---|
| 734 | 734 | |
| 735 | 735 | /* video hardware */ |
| 736 | 736 | MDRV_IMPORT_FROM(tms9928a) |
| 737 | MDRV_SCREEN_ADD("main", RASTER) | |
| 737 | 738 | MDRV_SCREEN_REFRESH_RATE(60) |
| 738 | 739 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 739 | 740 | MDRV_SCREEN_SIZE(MSX_TOTAL_XRES_PIXELS, MSX_TOTAL_YRES_PIXELS) |
| r1711 | r1712 | |
| 778 | 779 | MDRV_MACHINE_RESET( msx2 ) |
| 779 | 780 | |
| 780 | 781 | /* video hardware */ |
| 781 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK | |
| 782 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK | |
| 782 | 783 | MDRV_SCREEN_REFRESH_RATE(60) |
| 783 | 784 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 784 | 785 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 785 | 786 | MDRV_SCREEN_SIZE(MSX2_TOTAL_XRES_PIXELS, MSX2_TOTAL_YRES_PIXELS) |
| 786 | 787 | MDRV_SCREEN_VISIBLE_AREA(MSX2_XBORDER_PIXELS - MSX2_VISIBLE_XBORDER_PIXELS, MSX2_TOTAL_XRES_PIXELS - MSX2_XBORDER_PIXELS + MSX2_VISIBLE_XBORDER_PIXELS - 1, MSX2_YBORDER_PIXELS - MSX2_VISIBLE_YBORDER_PIXELS, MSX2_TOTAL_YRES_PIXELS - MSX2_YBORDER_PIXELS + MSX2_VISIBLE_YBORDER_PIXELS - 1) |
| 787 | 788 | MDRV_PALETTE_LENGTH(512) |
| 788 | MDRV_COLORTABLE_LENGTH(512) | |
| 789 | 789 | MDRV_PALETTE_INIT( v9938 ) |
| 790 | 790 | |
| 791 | 791 | MDRV_VIDEO_START( msx2 ) |
| r1711 | r1712 | |
| 2137 | 2137 | switch(state) |
| 2138 | 2138 | { |
| 2139 | 2139 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 2140 | case DEVINFO_INT_COUNT: info->i = 2; break; | |
| 2140 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 2141 | 2141 | |
| 2142 | 2142 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 2143 | case DEVINFO_PTR_LOAD: info->load = device_load_msx_floppy; break; | |
| 2143 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_msx_floppy; break; | |
| 2144 | 2144 | |
| 2145 | 2145 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 2146 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "dsk"); break; | |
| 2146 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "dsk"); break; | |
| 2147 | 2147 | |
| 2148 | 2148 | default: legacybasicdsk_device_getinfo(devclass, state, info); break; |
| 2149 | 2149 | } |
| r1711 | r1712 | |
| 2155 | 2155 | switch(state) |
| 2156 | 2156 | { |
| 2157 | 2157 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 2158 | case DEVINFO_INT_COUNT: info->i = MSX_MAX_CARTS; break; | |
| 2158 | case MESS_DEVINFO_INT_COUNT: info->i = MSX_MAX_CARTS; break; | |
| 2159 | 2159 | |
| 2160 | 2160 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 2161 | case DEVINFO_PTR_LOAD: info->load = device_load_msx_cart; break; | |
| 2162 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_msx_cart; break; | |
| 2161 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_msx_cart; break; | |
| 2162 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_msx_cart; break; | |
| 2163 | 2163 | |
| 2164 | 2164 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 2165 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "mx1,rom"); break; | |
| 2165 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "mx1,rom"); break; | |
| 2166 | 2166 | |
| 2167 | 2167 | default: cartslot_device_getinfo(devclass, state, info); break; |
| 2168 | 2168 | } |
| r1711 | r1712 | |
| 2174 | 2174 | switch(state) |
| 2175 | 2175 | { |
| 2176 | 2176 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 2177 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 2177 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 2178 | 2178 | |
| 2179 | 2179 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 2180 | case DEVINFO_PTR_CASSETTE_FORMATS: info->p = (void *) fmsx_cassette_formats; break; | |
| 2180 | case MESS_DEVINFO_PTR_CASSETTE_FORMATS: info->p = (void *) fmsx_cassette_formats; break; | |
| 2181 | 2181 | |
| 2182 | 2182 | default: cassette_device_getinfo(devclass, state, info); break; |
| 2183 | 2183 | } |
| r1711 | r1712 | |
| 2189 | 2189 | switch(state) |
| 2190 | 2190 | { |
| 2191 | 2191 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 2192 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 2192 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 2193 | 2193 | |
| 2194 | 2194 | default: printer_device_getinfo(devclass, state, info); break; |
| 2195 | 2195 | } |
| r1711 | r1712 | |
|---|---|---|
| 84 | 84 | for ( index = 0; index < GAMECOM_PALETTE_LENGTH; index++ ) |
| 85 | 85 | { |
| 86 | 86 | palette_set_color_rgb(machine, 4-index, palette[index*3+0], palette[index*3+1], palette[index*3+2] ); |
| 87 | colortable[index] = index; | |
| 88 | 87 | } |
| 89 | 88 | } |
| 90 | 89 | |
| r1711 | r1712 | |
| 95 | 94 | MDRV_CPU_CONFIG( gamecom_cpu_config ) |
| 96 | 95 | MDRV_CPU_VBLANK_INT( gamecom_scanline, 200 ) |
| 97 | 96 | |
| 97 | MDRV_SCREEN_ADD("main", RASTER) | |
| 98 | 98 | MDRV_SCREEN_REFRESH_RATE( 59.732155 ) |
| 99 | 99 | MDRV_SCREEN_VBLANK_TIME(0) |
| 100 | 100 | MDRV_INTERLEAVE(1) |
| r1711 | r1712 | |
| 105 | 105 | MDRV_VIDEO_START( generic_bitmapped ) |
| 106 | 106 | MDRV_VIDEO_UPDATE( generic_bitmapped ) |
| 107 | 107 | |
| 108 | MDRV_VIDEO_ATTRIBUTES( VIDEO_TYPE_RASTER ) | |
| 109 | 108 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 110 | 109 | MDRV_SCREEN_SIZE( 200, 200 ) |
| 111 | 110 | MDRV_SCREEN_VISIBLE_AREA( 0, 199, 0, 159 ) |
| 112 | 111 | MDRV_GFXDECODE( gamecom ) |
| 113 | 112 | MDRV_PALETTE_LENGTH( GAMECOM_PALETTE_LENGTH ) |
| 114 | MDRV_COLORTABLE_LENGTH( GAMECOM_PALETTE_LENGTH ) | |
| 115 | 113 | MDRV_PALETTE_INIT( gamecom ) |
| 116 | 114 | |
| 117 | 115 | /* sound hardware */ |
| r1711 | r1712 | |
| 124 | 122 | |
| 125 | 123 | static void gamecom_cartslot_getinfo( const device_class *devclass, UINT32 state, union devinfo *info ) { |
| 126 | 124 | switch( state ) { |
| 127 | case DEVINFO_INT_COUNT: | |
| 125 | case MESS_DEVINFO_INT_COUNT: | |
| 128 | 126 | info->i = 1; |
| 129 | 127 | break; |
| 130 | case DEVINFO_PTR_INIT: | |
| 128 | case MESS_DEVINFO_PTR_INIT: | |
| 131 | 129 | info->init = device_init_gamecom_cart; |
| 132 | 130 | break; |
| 133 | case DEVINFO_PTR_LOAD: | |
| 131 | case MESS_DEVINFO_PTR_LOAD: | |
| 134 | 132 | info->load = device_load_gamecom_cart; |
| 135 | 133 | break; |
| 136 | case DEVINFO_STR_FILE_EXTENSIONS: | |
| 134 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: | |
| 137 | 135 | strcpy(info->s = device_temp_str(), "bin,tgc"); |
| 138 | 136 | break; |
| 139 | 137 | default: |
| r1711 | r1712 | |
|---|---|---|
| 348 | 348 | |
| 349 | 349 | // video hardware |
| 350 | 350 | |
| 351 | MDRV_ | |
| 351 | MDRV_SC | |
| 352 | 352 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 353 | 353 | MDRV_PALETTE_LENGTH(8+64) |
| 354 | 354 | MDRV_PALETTE_INIT(cdp1869) |
| 355 | 355 | MDRV_VIDEO_START(cdp1869) |
| 356 | 356 | MDRV_VIDEO_UPDATE(cdp1869) |
| 357 | ||
| 358 | MDRV_SCREEN_ADD("main", 0) | |
| 359 | 357 | MDRV_SCREEN_RAW_PARAMS(CDP1869_DOT_CLK_PAL, CDP1869_SCREEN_WIDTH, CDP1869_HBLANK_END, CDP1869_HBLANK_START, CDP1869_TOTAL_SCANLINES_PAL, CDP1869_SCANLINE_VBLANK_END_PAL, CDP1869_SCANLINE_VBLANK_START_PAL) |
| 360 | 358 | |
| 361 | 359 | // sound hardware |
| r1711 | r1712 | |
| 407 | 405 | switch(state) |
| 408 | 406 | { |
| 409 | 407 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 410 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 408 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 411 | 409 | |
| 412 | 410 | default: cassette_device_getinfo(devclass, state, info); break; |
| 413 | 411 | } |
| r1711 | r1712 | |
| 419 | 417 | switch(state) |
| 420 | 418 | { |
| 421 | 419 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 422 | case DEVINFO_INT_COUNT: info->i = 4; break; | |
| 420 | case MESS_DEVINFO_INT_COUNT: info->i = 4; break; | |
| 423 | 421 | |
| 424 | 422 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 425 | case DEVINFO_PTR_LOAD: info->load = device_load_basicdsk_floppy; break; | |
| 423 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_basicdsk_floppy; break; | |
| 426 | 424 | |
| 427 | 425 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 428 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "dsk"); break; | |
| 426 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "dsk"); break; | |
| 429 | 427 | |
| 430 | 428 | default: legacybasicdsk_device_getinfo(devclass, state, info); break; |
| 431 | 429 | } |
| r1711 | r1712 | |
| 437 | 435 | switch(state) |
| 438 | 436 | { |
| 439 | 437 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 440 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 438 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 441 | 439 | |
| 442 | 440 | default: printer_device_getinfo(devclass, state, info); break; |
| 443 | 441 | } |
| r1711 | r1712 | |
| 449 | 447 | switch(state) |
| 450 | 448 | { |
| 451 | 449 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 452 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "sbp"); break; | |
| 450 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "sbp"); break; | |
| 453 | 451 | |
| 454 | 452 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 455 | case DEVINFO_PTR_QUICKLOAD_LOAD: info->f = (genf *) quickload_load_tmc600; break; | |
| 453 | case MESS_DEVINFO_PTR_QUICKLOAD_LOAD: info->f = (genf *) quickload_load_tmc600; break; | |
| 456 | 454 | |
| 457 | 455 | default: quickload_device_getinfo(devclass, state, info); break; |
| 458 | 456 | } |
| r1711 | r1712 | |
|---|---|---|
| 111 | 111 | MDRV_MACHINE_RESET( advision ) |
| 112 | 112 | |
| 113 | 113 | /* video hardware */ |
| 114 | MDRV_ | |
| 114 | MDRV_SC | |
| 115 | 115 | MDRV_SCREEN_REFRESH_RATE(8*15) |
| 116 | 116 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 117 | 117 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 118 | 118 | MDRV_SCREEN_SIZE(320, 200) |
| 119 | 119 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 0, 200-1) |
| 120 | 120 | MDRV_PALETTE_LENGTH(8+2) |
| 121 | MDRV_COLORTABLE_LENGTH(8*2) | |
| 122 | 121 | MDRV_PALETTE_INIT(advision) |
| 123 | 122 | |
| 124 | 123 | MDRV_VIDEO_START(advision) |
| r1711 | r1712 | |
|---|---|---|
| 256 | 256 | MDRV_MACHINE_RESET( mz700 ) |
| 257 | 257 | |
| 258 | 258 | /* video hardware - include overscan */ |
| 259 | MDRV_ | |
| 259 | MDRV_SC | |
| 260 | 260 | MDRV_SCREEN_REFRESH_RATE(50) |
| 261 | 261 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 262 | 262 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
| 265 | 265 | |
| 266 | 266 | MDRV_GFXDECODE(mz700) |
| 267 | 267 | MDRV_PALETTE_LENGTH(8) |
| 268 | MDRV_COLORTABLE_LENGTH(2*256) | |
| 269 | 268 | |
| 270 | 269 | MDRV_PALETTE_INIT(mz700) |
| 271 | 270 | MDRV_VIDEO_UPDATE(mz700) |
| r1711 | r1712 | |
| 286 | 285 | MDRV_MACHINE_RESET( mz700 ) |
| 287 | 286 | |
| 288 | 287 | /* video hardware - include overscan */ |
| 289 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 290 | 288 | MDRV_SCREEN_REFRESH_RATE(50) |
| 291 | 289 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 292 | 290 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
| 295 | 293 | |
| 296 | 294 | MDRV_GFXDECODE(mz700) |
| 297 | 295 | MDRV_PALETTE_LENGTH(8) |
| 298 | MDRV_COLORTABLE_LENGTH(2*256) | |
| 299 | 296 | |
| 300 | 297 | MDRV_PALETTE_INIT(mz700) |
| 301 | 298 | MDRV_VIDEO_UPDATE(mz700) |
| r1711 | r1712 | |
| 338 | 335 | switch(state) |
| 339 | 336 | { |
| 340 | 337 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 341 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 338 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 342 | 339 | |
| 343 | 340 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 344 | case DEVINFO_PTR_CASSETTE_FORMATS: info->p = (void *) mz700_cassette_formats; break; | |
| 341 | case MESS_DEVINFO_PTR_CASSETTE_FORMATS: info->p = (void *) mz700_cassette_formats; break; | |
| 345 | 342 | |
| 346 | 343 | default: cassette_device_getinfo(devclass, state, info); break; |
| 347 | 344 | } |
| r1711 | r1712 | |
|---|---|---|
| 97 | 97 | MDRV_CPU_ADD_TAG("main", M6809, 1500000) /* 1.5 Mhz */ |
| 98 | 98 | MDRV_CPU_PROGRAM_MAP(vectrex_map, 0) |
| 99 | 99 | |
| 100 | MDRV_SCREEN_ADD("main", VECTOR) | |
| 100 | 101 | MDRV_SCREEN_REFRESH_RATE(60) |
| 101 | 102 | |
| 102 | 103 | /* video hardware */ |
| 103 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_VECTOR) | |
| 104 | 104 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 105 | 105 | MDRV_SCREEN_SIZE(400, 300) |
| 106 | 106 | MDRV_SCREEN_VISIBLE_AREA(0, 399, 0, 299) |
| r1711 | r1712 | |
| 125 | 125 | switch(state) |
| 126 | 126 | { |
| 127 | 127 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 128 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 128 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 129 | 129 | |
| 130 | 130 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 131 | case DEVINFO_PTR_LOAD: info->load = device_load_vectrex_cart; break; | |
| 131 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_vectrex_cart; break; | |
| 132 | 132 | |
| 133 | 133 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 134 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "bin,gam,vec"); break; | |
| 134 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "bin,gam,vec"); break; | |
| 135 | 135 | |
| 136 | 136 | default: cartslot_device_getinfo(devclass, state, info); break; |
| 137 | 137 | } |
| r1711 | r1712 | |
|---|---|---|
| 159 | 159 | MDRV_DEFAULT_LAYOUT(layout_aim65) |
| 160 | 160 | |
| 161 | 161 | /* dummy values */ |
| 162 | MDRV_SCREEN_ADD("main", RASTER) | |
| 162 | 163 | MDRV_SCREEN_REFRESH_RATE(60) |
| 163 | 164 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 164 | 165 |
| r1711 | r1712 | |
|---|---|---|
| 248 | 248 | static PALETTE_INIT( tm990_189 ) |
| 249 | 249 | { |
| 250 | 250 | palette_set_colors_rgb(machine, 0, tm990_189_palette, tm990_189_palette_size); |
| 251 | ||
| 252 | /*memcpy(colortable, & tm990_189_colortable, sizeof(tm990_189_colortable));*/ | |
| 253 | 251 | } |
| 254 | 252 | |
| 255 | 253 | static VIDEO_EOF( tm990_189 ) |
| r1711 | r1712 | |
| 792 | 790 | MDRV_MACHINE_RESET( tm990_189 ) |
| 793 | 791 | |
| 794 | 792 | /* video hardware - we emulate a 8-segment LED display */ |
| 795 | MDRV_ | |
| 793 | MDRV_SC | |
| 796 | 794 | MDRV_SCREEN_REFRESH_RATE(75) |
| 797 | 795 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 798 | 796 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
| 801 | 799 | |
| 802 | 800 | /*MDRV_GFXDECODE(tm990_189)*/ |
| 803 | 801 | MDRV_PALETTE_LENGTH(tm990_189_palette_size) |
| 804 | MDRV_COLORTABLE_LENGTH(/*tm990_189_colortable_size*/0) | |
| 805 | 802 | |
| 806 | 803 | MDRV_PALETTE_INIT(tm990_189) |
| 807 | 804 | /*MDRV_VIDEO_START(tm990_189)*/ |
| r1711 | r1712 | |
| 983 | 980 | switch(state) |
| 984 | 981 | { |
| 985 | 982 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 986 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 983 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 987 | 984 | |
| 988 | 985 | default: cassette_device_getinfo(devclass, state, info); break; |
| 989 | 986 | } |
| r1711 | r1712 | |
| 995 | 992 | switch(state) |
| 996 | 993 | { |
| 997 | 994 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 998 | case DEVINFO_INT_TYPE: info->i = IO_SERIAL; break; | |
| 999 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 1000 | case DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 1001 | case DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 1002 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 995 | case MESS_DEVINFO_INT_TYPE: info->i = IO_SERIAL; break; | |
| 996 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 997 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 998 | case MESS_DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 999 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 1003 | 1000 | |
| 1004 | 1001 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 1005 | case DEVINFO_PTR_LOAD: info->load = device_load_tm990_189_rs232; break; | |
| 1006 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_tm990_189_rs232; break; | |
| 1002 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_tm990_189_rs232; break; | |
| 1003 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_tm990_189_rs232; break; | |
| 1007 | 1004 | |
| 1008 | 1005 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 1009 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), ""); break; | |
| 1006 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), ""); break; | |
| 1010 | 1007 | } |
| 1011 | 1008 | } |
| 1012 | 1009 |
| r1711 | r1712 | |
|---|---|---|
| 329 | 329 | static PALETTE_INIT( arcadia ) |
| 330 | 330 | { |
| 331 | 331 | palette_set_colors(machine, 0, arcadia_palette, ARRAY_LENGTH(arcadia_palette)); |
| 332 | memcpy(colortable, arcadia_colortable,sizeof(arcadia_colortable)); | |
| 333 | 332 | } |
| 334 | 333 | |
| 335 | 334 | static MACHINE_DRIVER_START( arcadia ) |
| r1711 | r1712 | |
| 341 | 340 | MDRV_INTERLEAVE(1) |
| 342 | 341 | |
| 343 | 342 | /* video hardware */ |
| 344 | MDRV_ | |
| 343 | MDRV_SC | |
| 345 | 344 | MDRV_SCREEN_REFRESH_RATE(60) |
| 346 | 345 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) |
| 347 | 346 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
| 349 | 348 | MDRV_SCREEN_VISIBLE_AREA(0, 2*XPOS+128-1, 0, 262-1) |
| 350 | 349 | MDRV_GFXDECODE( arcadia ) |
| 351 | 350 | MDRV_PALETTE_LENGTH(ARRAY_LENGTH(arcadia_palette)) |
| 352 | MDRV_COLORTABLE_LENGTH(sizeof (arcadia_colortable) / sizeof(arcadia_colortable[0][0])) | |
| 353 | 351 | MDRV_PALETTE_INIT( arcadia ) |
| 354 | 352 | |
| 355 | 353 | MDRV_VIDEO_START( arcadia ) |
| r1711 | r1712 | |
| 440 | 438 | switch(state) |
| 441 | 439 | { |
| 442 | 440 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 443 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 444 | case DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 441 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 442 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 445 | 443 | |
| 446 | 444 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 447 | case DEVINFO_PTR_LOAD: info->load = device_load_arcadia_cart; break; | |
| 445 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_arcadia_cart; break; | |
| 448 | 446 | |
| 449 | 447 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 450 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "bin"); break; | |
| 448 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "bin"); break; | |
| 451 | 449 | |
| 452 | 450 | default: cartslot_device_getinfo(devclass, state, info); break; |
| 453 | 451 | } |
| r1711 | r1712 | |
|---|---|---|
| 60 | 60 | MDRV_MACHINE_RESET( dc ) |
| 61 | 61 | |
| 62 | 62 | /* video hardware */ |
| 63 | MDRV_ | |
| 63 | MDRV_SC | |
| 64 | 64 | MDRV_SCREEN_REFRESH_RATE(60) |
| 65 | 65 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) |
| 66 | 66 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| r1711 | r1712 | |
|---|---|---|
| 213 | 213 | static void to7_cartridge_getinfo( const device_class *devclass, UINT32 state, union devinfo *info ) |
| 214 | 214 | { |
| 215 | 215 | switch ( state ) { |
| 216 | case DEVINFO_INT_COUNT: | |
| 216 | case MESS_DEVINFO_INT_COUNT: | |
| 217 | 217 | info->i = 1; |
| 218 | 218 | break; |
| 219 | case DEVINFO_PTR_LOAD: | |
| 219 | case MESS_DEVINFO_PTR_LOAD: | |
| 220 | 220 | info->load = to7_cartridge_load; |
| 221 | 221 | break; |
| 222 | case DEVINFO_STR_FILE_EXTENSIONS: | |
| 222 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: | |
| 223 | 223 | strcpy( info->s = device_temp_str(), "m7,rom" ); |
| 224 | 224 | break; |
| 225 | 225 | default: |
| r1711 | r1712 | |
| 230 | 230 | static void mo5_cartridge_getinfo( const device_class *devclass, UINT32 state, union devinfo *info ) |
| 231 | 231 | { |
| 232 | 232 | switch ( state ) { |
| 233 | case DEVINFO_INT_COUNT: | |
| 233 | case MESS_DEVINFO_INT_COUNT: | |
| 234 | 234 | info->i = 1; |
| 235 | 235 | break; |
| 236 | case DEVINFO_PTR_LOAD: | |
| 236 | case MESS_DEVINFO_PTR_LOAD: | |
| 237 | 237 | info->load = mo5_cartridge_load; |
| 238 | 238 | break; |
| 239 | case DEVINFO_STR_FILE_EXTENSIONS: | |
| 239 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: | |
| 240 | 240 | strcpy( info->s = device_temp_str(), "m5,rom" ); |
| 241 | 241 | break; |
| 242 | 242 | default: |
| r1711 | r1712 | |
| 250 | 250 | static void thom_printer_getinfo ( const device_class *devclass, UINT32 state, union devinfo *info ) |
| 251 | 251 | { |
| 252 | 252 | switch ( state ) { |
| 253 | case DEVINFO_INT_COUNT: | |
| 253 | case MESS_DEVINFO_INT_COUNT: | |
| 254 | 254 | info->i = 1; |
| 255 | 255 | break; |
| 256 | 256 | default: |
| r1711 | r1712 | |
| 271 | 271 | static void thom_serial_getinfo ( const device_class *devclass, UINT32 state, union devinfo *info ) |
| 272 | 272 | { |
| 273 | 273 | switch ( state ) { |
| 274 | case DEVINFO_INT_COUNT: | |
| 274 | case MESS_DEVINFO_INT_COUNT: | |
| 275 | 275 | info->i = 3; |
| 276 | 276 | break; |
| 277 | case DEVINFO_INT_TYPE: | |
| 277 | case MESS_DEVINFO_INT_TYPE: | |
| 278 | 278 | info->i = IO_SERIAL; |
| 279 | 279 | break; |
| 280 | case DEVINFO_INT_READABLE: | |
| 280 | case MESS_DEVINFO_INT_READABLE: | |
| 281 | 281 | info->i = 1; |
| 282 | 282 | break; |
| 283 | case DEVINFO_INT_WRITEABLE: | |
| 283 | case MESS_DEVINFO_INT_WRITEABLE: | |
| 284 | 284 | info->i = 1; |
| 285 | 285 | break; |
| 286 | case DEVINFO_INT_CREATABLE: | |
| 286 | case MESS_DEVINFO_INT_CREATABLE: | |
| 287 | 287 | info->i = 1; |
| 288 | 288 | break; |
| 289 | 289 | |
| 290 | case DEVINFO_PTR_INIT: | |
| 290 | case MESS_DEVINFO_PTR_INIT: | |
| 291 | 291 | info->init = thom_serial_init; |
| 292 | 292 | break; |
| 293 | case DEVINFO_PTR_LOAD: | |
| 293 | case MESS_DEVINFO_PTR_LOAD: | |
| 294 | 294 | info->load = thom_serial_load; |
| 295 | 295 | break; |
| 296 | case DEVINFO_PTR_UNLOAD: | |
| 296 | case MESS_DEVINFO_PTR_UNLOAD: | |
| 297 | 297 | info->unload = thom_serial_unload; |
| 298 | 298 | break; |
| 299 | 299 | |
| 300 | case DEVINFO_STR_NAME+0: | |
| 301 | case DEVINFO_STR_NAME+1: | |
| 302 | case DEVINFO_STR_NAME+2: | |
| 300 | case MESS_DEVINFO_STR_NAME+0: | |
| 301 | case MESS_DEVINFO_STR_NAME+1: | |
| 302 | case MESS_DEVINFO_STR_NAME+2: | |
| 303 | 303 | strcpy( info->s = device_temp_str(), |
| 304 | thom_serial_names[ state - DEVINFO_STR_NAME ][ 0 ] ); | |
| 304 | thom_serial_names[ state - MESS_DEVINFO_STR_NAME ][ 0 ] ); | |
| 305 | 305 | break; |
| 306 | case DEVINFO_STR_SHORT_NAME+0: | |
| 307 | case DEVINFO_STR_SHORT_NAME+1: | |
| 308 | case DEVINFO_STR_SHORT_NAME+2: | |
| 306 | case MESS_DEVINFO_STR_SHORT_NAME+0: | |
| 307 | case MESS_DEVINFO_STR_SHORT_NAME+1: | |
| 308 | case MESS_DEVINFO_STR_SHORT_NAME+2: | |
| 309 | 309 | strcpy( info->s = device_temp_str(), |
| 310 | thom_serial_names[ state - DEVINFO_STR_SHORT_NAME ][ 1 ] ); | |
| 310 | thom_serial_names[ state - MESS_DEVINFO_STR_SHORT_NAME ][ 1 ] ); | |
| 311 | 311 | break; |
| 312 | case DEVINFO_STR_DESCRIPTION+0: | |
| 313 | case DEVINFO_STR_DESCRIPTION+1: | |
| 314 | case DEVINFO_STR_DESCRIPTION+2: | |
| 312 | case MESS_DEVINFO_STR_DESCRIPTION+0: | |
| 313 | case MESS_DEVINFO_STR_DESCRIPTION+1: | |
| 314 | case MESS_DEVINFO_STR_DESCRIPTION+2: | |
| 315 | 315 | strcpy( info->s = device_temp_str(), |
| 316 | thom_serial_names[ state - DEVINFO_STR_DESCRIPTION ][ 2 ] ); | |
| 316 | thom_serial_names[ state - MESS_DEVINFO_STR_DESCRIPTION ][ 2 ] ); | |
| 317 | 317 | break; |
| 318 | 318 | |
| 319 | case DEVINFO_STR_DEV_FILE: | |
| 319 | case MESS_DEVINFO_STR_DEV_FILE: | |
| 320 | 320 | strcpy( info->s = device_temp_str(), "serial" ); |
| 321 | 321 | break; |
| 322 | case DEVINFO_STR_FILE_EXTENSIONS: | |
| 322 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: | |
| 323 | 323 | strcpy( info->s = device_temp_str(), "txt" ); |
| 324 | 324 | break; |
| 325 | 325 | |
| r1711 | r1712 | |
| 747 | 747 | framerate from 50 Hz to 1/0.019968 Hz to get 312 64us lines per frame, |
| 748 | 748 | i.e., 19.968 ms per frame, not 20 ms |
| 749 | 749 | */ |
| 750 | MDRV_SCREEN_ADD("main", RASTER) | |
| 750 | 751 | MDRV_SCREEN_REFRESH_RATE ( /*50*/ 1./0.019968 ) |
| 751 | 752 | MDRV_INTERLEAVE ( 0 ) |
| 752 | MDRV_VIDEO_ATTRIBUTES ( VIDEO_TYPE_RASTER ) | |
| 753 | 753 | MDRV_SCREEN_FORMAT( BITMAP_FORMAT_INDEXED16 ) |
| 754 | 754 | MDRV_SCREEN_SIZE ( THOM_TOTAL_WIDTH * 2, THOM_TOTAL_HEIGHT ) |
| 755 | 755 | MDRV_SCREEN_VISIBLE_AREA ( 0, THOM_TOTAL_WIDTH * 2 - 1, |
| r1711 | r1712 | |
|---|---|---|
| 45 | 45 | MDRV_INTERLEAVE(1) |
| 46 | 46 | MDRV_MACHINE_RESET( lisa ) |
| 47 | 47 | |
| 48 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER | VIDEO_UPDATE_BEFORE_VBLANK) | |
| 48 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 49 | MDRV_SCREEN_ADD("main", RASTER) | |
| 49 | 50 | MDRV_SCREEN_REFRESH_RATE(60) |
| 50 | 51 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 51 | 52 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
| 251 | 252 | switch(state) |
| 252 | 253 | { |
| 253 | 254 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 254 | case DEVINFO_INT_SONYDRIV_ALLOWABLE_SIZES: info->i = SONY_FLOPPY_ALLOW400K | SONY_FLOPPY_ALLOW800K; break; | |
| 255 | case MESS_DEVINFO_INT_SONYDRIV_ALLOWABLE_SIZES: info->i = SONY_FLOPPY_ALLOW400K | SONY_FLOPPY_ALLOW800K; break; | |
| 255 | 256 | |
| 256 | 257 | default: sonydriv_device_getinfo(devclass, state, info); break; |
| 257 | 258 | } |
| r1711 | r1712 | |
|---|---|---|
| 126 | 126 | |
| 127 | 127 | /* "video" hardware */ |
| 128 | 128 | MDRV_DEFAULT_LAYOUT(layout_sym1) |
| 129 | MDRV_SCREEN_ADD("main", RASTER) | |
| 129 | 130 | MDRV_SCREEN_REFRESH_RATE(60) |
| 130 | 131 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 131 | 132 | |
| r1711 | r1712 | |
| 160 | 161 | switch(state) |
| 161 | 162 | { |
| 162 | 163 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 163 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "60,0080,c0"); break; | |
| 164 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "60,0080,c0"); break; | |
| 164 | 165 | |
| 165 | 166 | default: cbmcartslot_device_getinfo(devclass, state, info); break; |
| 166 | 167 | } |
| r1711 | r1712 | |
|---|---|---|
| 221 | 221 | MDRV_MACHINE_START( lynx ) |
| 222 | 222 | |
| 223 | 223 | /* video hardware */ |
| 224 | MDRV_ | |
| 224 | MDRV_SC | |
| 225 | 225 | MDRV_SCREEN_REFRESH_RATE(LCD_FRAMES_PER_SECOND) |
| 226 | 226 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 227 | 227 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
| 229 | 229 | MDRV_SCREEN_SIZE(160, 160) |
| 230 | 230 | MDRV_SCREEN_VISIBLE_AREA(0, 160-1, 0, 102-1) |
| 231 | 231 | MDRV_PALETTE_LENGTH(0x1000) |
| 232 | MDRV_COLORTABLE_LENGTH(0) | |
| 233 | 232 | MDRV_PALETTE_INIT( lynx ) |
| 234 | 233 | |
| 235 | 234 | MDRV_VIDEO_START( generic_bitmapped ) |
| r1711 | r1712 | |
| 397 | 396 | switch(state) |
| 398 | 397 | { |
| 399 | 398 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 400 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 399 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 401 | 400 | |
| 402 | 401 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 403 | case DEVINFO_PTR_LOAD: info->load = device_load_lynx_cart; break; | |
| 404 | case DEVINFO_PTR_PARTIAL_HASH: info->partialhash = lynx_partialhash; break; | |
| 402 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_lynx_cart; break; | |
| 403 | case MESS_DEVINFO_PTR_PARTIAL_HASH: info->partialhash = lynx_partialhash; break; | |
| 405 | 404 | |
| 406 | 405 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 407 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "lnx"); break; | |
| 406 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "lnx"); break; | |
| 408 | 407 | |
| 409 | 408 | default: cartslot_device_getinfo(devclass, state, info); break; |
| 410 | 409 | } |
| r1711 | r1712 | |
| 416 | 415 | switch(state) |
| 417 | 416 | { |
| 418 | 417 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 419 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "o"); break; | |
| 418 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "o"); break; | |
| 420 | 419 | |
| 421 | 420 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 422 | case DEVINFO_PTR_QUICKLOAD_LOAD: info->f = (genf *) quickload_load_lynx; break; | |
| 421 | case MESS_DEVINFO_PTR_QUICKLOAD_LOAD: info->f = (genf *) quickload_load_lynx; break; | |
| 423 | 422 | |
| 424 | 423 | default: quickload_device_getinfo(devclass, state, info); break; |
| 425 | 424 | } |
| r1711 | r1712 | |
|---|---|---|
| 112 | 112 | static PALETTE_INIT( aquarius ) |
| 113 | 113 | { |
| 114 | 114 | palette_set_colors(machine, 0, aquarius_palette, ARRAY_LENGTH(aquarius_palette)); |
| 115 | memcpy(colortable, aquarius_colortable, sizeof (aquarius_colortable)); | |
| 116 | 115 | } |
| 117 | 116 | |
| 118 | 117 | /* Keyboard input */ |
| r1711 | r1712 | |
| 222 | 221 | MDRV_MACHINE_RESET( aquarius ) |
| 223 | 222 | |
| 224 | 223 | /* video hardware */ |
| 225 | MDRV_ | |
| 224 | MDRV_SC | |
| 226 | 225 | MDRV_SCREEN_REFRESH_RATE(60) |
| 227 | 226 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 228 | 227 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
| 230 | 229 | MDRV_SCREEN_VISIBLE_AREA(0, 40 * 8 - 1, 0, 24 * 8 - 1) |
| 231 | 230 | MDRV_GFXDECODE( aquarius ) |
| 232 | 231 | MDRV_PALETTE_LENGTH(ARRAY_LENGTH(aquarius_palette)) |
| 233 | MDRV_COLORTABLE_LENGTH(sizeof (aquarius_colortable)) | |
| 234 | 232 | MDRV_PALETTE_INIT( aquarius ) |
| 235 | 233 | |
| 236 | 234 | MDRV_VIDEO_START( aquarius ) |
| r1711 | r1712 | |
|---|---|---|
| 354 | 354 | static PALETTE_INIT( cgenie ) |
| 355 | 355 | { |
| 356 | 356 | palette_set_colors_rgb(machine, 0, cgenie_palette, sizeof(cgenie_palette) / 3); |
| 357 | memcpy(colortable, cgenie_colortable, sizeof(cgenie_colortable)); | |
| 358 | 357 | } |
| 359 | 358 | |
| 360 | 359 | |
| r1711 | r1712 | |
| 381 | 380 | MDRV_MACHINE_RESET( cgenie ) |
| 382 | 381 | |
| 383 | 382 | /* video hardware */ |
| 384 | MDRV_ | |
| 383 | MDRV_SC | |
| 385 | 384 | MDRV_SCREEN_REFRESH_RATE(60) |
| 386 | 385 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 387 | 386 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
| 389 | 388 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1,0*8,32*8-1) |
| 390 | 389 | MDRV_GFXDECODE( cgenie ) |
| 391 | 390 | MDRV_PALETTE_LENGTH(sizeof(cgenie_palette) / sizeof(cgenie_palette[0]) / 3) |
| 392 | MDRV_COLORTABLE_LENGTH(sizeof(cgenie_colortable) / sizeof(cgenie_colortable[0])) | |
| 393 | 391 | MDRV_PALETTE_INIT( cgenie ) |
| 394 | 392 | |
| 395 | 393 | MDRV_VIDEO_START( cgenie ) |
| r1711 | r1712 | |
| 430 | 428 | switch(state) |
| 431 | 429 | { |
| 432 | 430 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 433 | case DEVINFO_INT_COUNT: info->i = 4; break; | |
| 431 | case MESS_DEVINFO_INT_COUNT: info->i = 4; break; | |
| 434 | 432 | |
| 435 | 433 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 436 | case DEVINFO_PTR_LOAD: info->load = device_load_cgenie_floppy; break; | |
| 434 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_cgenie_floppy; break; | |
| 437 | 435 | |
| 438 | 436 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 439 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "dsk"); break; | |
| 437 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "dsk"); break; | |
| 440 | 438 | |
| 441 | 439 | default: legacybasicdsk_device_getinfo(devclass, state, info); break; |
| 442 | 440 | } |
| r1711 | r1712 | |
| 448 | 446 | switch(state) |
| 449 | 447 | { |
| 450 | 448 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 451 | case DEVINFO_INT_TYPE: info->i = IO_CASSETTE; break; | |
| 452 | case DEVINFO_INT_READABLE: info->i = 0; /* INVALID */ break; | |
| 453 | case DEVINFO_INT_WRITEABLE: info->i = 0; /* INVALID */ break; | |
| 454 | case DEVINFO_INT_CREATABLE: info->i = 0; /* INVALID */ break; | |
| 455 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 449 | case MESS_DEVINFO_INT_TYPE: info->i = IO_CASSETTE; break; | |
| 450 | case MESS_DEVINFO_INT_READABLE: info->i = 0; /* INVALID */ break; | |
| 451 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 0; /* INVALID */ break; | |
| 452 | case MESS_DEVINFO_INT_CREATABLE: info->i = 0; /* INVALID */ break; | |
| 453 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 456 | 454 | |
| 457 | 455 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 458 | case DEVINFO_PTR_LOAD: info->load = device_load_cgenie_cassette; break; | |
| 456 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_cgenie_cassette; break; | |
| 459 | 457 | |
| 460 | 458 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 461 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "cas"); break; | |
| 459 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "cas"); break; | |
| 462 | 460 | } |
| 463 | 461 | } |
| 464 | 462 |
| r1711 | r1712 | |
|---|---|---|
| 525 | 525 | MDRV_CPU_ADD_TAG("main", 8080, 2000000) /* 2.048MHz ??? */ |
| 526 | 526 | MDRV_CPU_PROGRAM_MAP(pmd85_mem, 0) |
| 527 | 527 | MDRV_CPU_IO_MAP(pmd85_readport, pmd85_writeport) |
| 528 | MDRV_SCREEN_ADD("main", RASTER) | |
| 528 | 529 | MDRV_SCREEN_REFRESH_RATE(50) |
| 529 | 530 | MDRV_SCREEN_VBLANK_TIME(0) |
| 530 | 531 | MDRV_INTERLEAVE(1) |
| r1711 | r1712 | |
| 532 | 533 | MDRV_MACHINE_RESET( pmd85 ) |
| 533 | 534 | |
| 534 | 535 | /* video hardware */ |
| 535 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 536 | 536 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 537 | 537 | MDRV_SCREEN_SIZE(288, 256) |
| 538 | 538 | MDRV_SCREEN_VISIBLE_AREA(0, 288-1, 0, 256-1) |
| 539 | 539 | MDRV_PALETTE_LENGTH(sizeof (pmd85_palette) / 3) |
| 540 | MDRV_COLORTABLE_LENGTH(sizeof (pmd85_colortable)) | |
| 541 | 540 | MDRV_PALETTE_INIT( pmd85 ) |
| 542 | 541 | |
| 543 | 542 | MDRV_VIDEO_START( pmd85 ) |
| r1711 | r1712 | |
| 637 | 636 | switch(state) |
| 638 | 637 | { |
| 639 | 638 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 640 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 639 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 641 | 640 | |
| 642 | 641 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 643 | case DEVINFO_PTR_CASSETTE_FORMATS: info->p = (void *) pmd85_pmd_format; break; | |
| 644 | case DEVINFO_PTR_CASSETTE_OPTIONS: info->p = (void *) &pmd85_cassette_options; break; | |
| 642 | case MESS_DEVINFO_PTR_CASSETTE_FORMATS: info->p = (void *) pmd85_pmd_format; break; | |
| 643 | case MESS_DEVINFO_PTR_CASSETTE_OPTIONS: info->p = (void *) &pmd85_cassette_options; break; | |
| 645 | 644 | |
| 646 | 645 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 647 | case DEVINFO_INT_CASSETTE_DEFAULT_STATE: info->i = CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED; break; | |
| 646 | case MESS_DEVINFO_INT_CASSETTE_DEFAULT_STATE: info->i = CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED; break; | |
| 648 | 647 | |
| 649 | 648 | default: cassette_device_getinfo(devclass, state, info); break; |
| 650 | 649 | } |
| r1711 | r1712 | |
|---|---|---|
| 465 | 465 | |
| 466 | 466 | // video hardware |
| 467 | 467 | |
| 468 | MDRV_ | |
| 468 | MDRV_SC | |
| 469 | 469 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 470 | 470 | MDRV_GFXDECODE(abc80) |
| 471 | MDRV_COLORTABLE_LENGTH(2*2) | |
| 472 | 471 | MDRV_PALETTE_LENGTH(2) |
| 473 | 472 | |
| 474 | 473 | MDRV_PALETTE_INIT(abc80) |
| 475 | 474 | MDRV_VIDEO_START(abc80) |
| 476 | 475 | MDRV_VIDEO_UPDATE(abc80) |
| 477 | 476 | |
| 478 | MDRV_SCREEN_ADD("main", 0) | |
| 479 | 477 | MDRV_SCREEN_RAW_PARAMS(ABC80_XTAL/2, ABC80_HTOTAL, ABC80_HBEND, ABC80_HBSTART, ABC80_VTOTAL, ABC80_VBEND, ABC80_VBSTART) |
| 480 | 478 | |
| 481 | 479 | // sound hardware |
| r1711 | r1712 | |
| 523 | 521 | switch(state) |
| 524 | 522 | { |
| 525 | 523 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 526 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 524 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 527 | 525 | |
| 528 | 526 | default: printer_device_getinfo(devclass, state, info); break; |
| 529 | 527 | } |
| r1711 | r1712 | |
| 536 | 534 | switch(state) |
| 537 | 535 | { |
| 538 | 536 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 539 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 537 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 540 | 538 | |
| 541 | 539 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 542 | case DEVINFO_PTR_CASSETTE_FORMATS: info->p = (void *) abc80_cassette_formats; break; | |
| 540 | case MESS_DEVINFO_PTR_CASSETTE_FORMATS: info->p = (void *) abc80_cassette_formats; break; | |
| 543 | 541 | |
| 544 | 542 | default: cassette_device_getinfo(devclass, state, info); break; |
| 545 | 543 | } |
| r1711 | r1712 | |
| 552 | 550 | switch(state) |
| 553 | 551 | { |
| 554 | 552 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 555 | case DEVINFO_INT_COUNT: info->i = 2; break; | |
| 553 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 556 | 554 | |
| 557 | 555 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 558 | case DEVINFO_PTR_LOAD: info->load = device_load_abc_floppy; break; | |
| 556 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_abc_floppy; break; | |
| 559 | 557 | |
| 560 | 558 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 561 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "dsk"); break; | |
| 559 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "dsk"); break; | |
| 562 | 560 | |
| 563 | 561 | default: legacybasicdsk_device_getinfo(devclass, state, info); break; |
| 564 | 562 | } |
| r1711 | r1712 | |
|---|---|---|
| 485 | 485 | static PALETTE_INIT( apexc ) |
| 486 | 486 | { |
| 487 | 487 | palette_set_colors(machine, 0, apexc_palette, APEXC_PALETTE_SIZE); |
| 488 | ||
| 489 | memcpy(colortable, & apexc_colortable, sizeof(apexc_colortable)); | |
| 490 | 488 | } |
| 491 | 489 | |
| 492 | 490 | static VIDEO_START( apexc ) |
| r1711 | r1712 | |
| 810 | 808 | MDRV_MACHINE_START( apexc ) |
| 811 | 809 | |
| 812 | 810 | /* video hardware does not exist, but we display a control panel and the typewriter output */ |
| 813 | MDRV_ | |
| 811 | MDRV_SC | |
| 814 | 812 | MDRV_SCREEN_REFRESH_RATE(60) |
| 815 | 813 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 816 | 814 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
| 819 | 817 | |
| 820 | 818 | MDRV_GFXDECODE(apexc) |
| 821 | 819 | MDRV_PALETTE_LENGTH(APEXC_PALETTE_SIZE) |
| 822 | MDRV_COLORTABLE_LENGTH(APEXC_COLORTABLE_SIZE) | |
| 823 | 820 | |
| 824 | 821 | MDRV_PALETTE_INIT(apexc) |
| 825 | 822 | MDRV_VIDEO_START(apexc) |
| r1711 | r1712 | |
| 842 | 839 | switch(state) |
| 843 | 840 | { |
| 844 | 841 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 845 | case DEVINFO_INT_TYPE: info->i = IO_CYLINDER; break; | |
| 846 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 847 | case DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 848 | case DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 849 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 850 | case DEVINFO_INT_RESET_ON_LOAD: info->i = 1; break; | |
| 842 | case MESS_DEVINFO_INT_TYPE: info->i = IO_CYLINDER; break; | |
| 843 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 844 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 845 | case MESS_DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 846 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 847 | case MESS_DEVINFO_INT_RESET_ON_LOAD: info->i = 1; break; | |
| 851 | 848 | |
| 852 | 849 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 853 | case DEVINFO_PTR_LOAD: info->load = device_load_apexc_cylinder; break; | |
| 854 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_apexc_cylinder; break; | |
| 850 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_apexc_cylinder; break; | |
| 851 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_apexc_cylinder; break; | |
| 855 | 852 | |
| 856 | 853 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 857 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "apc"); break; | |
| 854 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "apc"); break; | |
| 858 | 855 | } |
| 859 | 856 | } |
| 860 | 857 | |
| r1711 | r1712 | |
| 864 | 861 | switch(state) |
| 865 | 862 | { |
| 866 | 863 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 867 | case DEVINFO_INT_TYPE: info->i = IO_PUNCHTAPE; break; | |
| 868 | case DEVINFO_INT_COUNT: info->i = 2; break; | |
| 864 | case MESS_DEVINFO_INT_TYPE: info->i = IO_PUNCHTAPE; break; | |
| 865 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 869 | 866 | |
| 870 | 867 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 871 | case DEVINFO_PTR_INIT: info->init = device_init_apexc_tape; break; | |
| 872 | case DEVINFO_PTR_LOAD: info->load = device_load_apexc_tape; break; | |
| 873 | case DEVINFO_PTR_GET_DISPOSITIONS: info->getdispositions = apexc_get_open_mode; break; | |
| 868 | case MESS_DEVINFO_PTR_INIT: info->init = device_init_apexc_tape; break; | |
| 869 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_apexc_tape; break; | |
| 870 | case MESS_DEVINFO_PTR_GET_DISPOSITIONS: info->getdispositions = apexc_get_open_mode; break; | |
| 874 | 871 | |
| 875 | 872 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 876 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "tap"); break; | |
| 873 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "tap"); break; | |
| 877 | 874 | } |
| 878 | 875 | } |
| 879 | 876 |
| r1711 | r1712 | |
|---|---|---|
| 1839 | 1839 | { |
| 1840 | 1840 | switch(state) |
| 1841 | 1841 | { |
| 1842 | case DEVINFO_INT_COUNT: | |
| 1842 | case MESS_DEVINFO_INT_COUNT: | |
| 1843 | 1843 | info->i = 4; |
| 1844 | 1844 | break; |
| 1845 | case DEVINFO_PTR_LOAD: | |
| 1845 | case MESS_DEVINFO_PTR_LOAD: | |
| 1846 | 1846 | info->load = device_load_x68k_floppy; |
| 1847 | 1847 | break; |
| 1848 | case DEVINFO_PTR_UNLOAD: | |
| 1848 | case MESS_DEVINFO_PTR_UNLOAD: | |
| 1849 | 1849 | info->unload = device_unload_x68k_floppy; |
| 1850 | 1850 | break; |
| 1851 | case DEVINFO_STR_FILE_EXTENSIONS: | |
| 1851 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: | |
| 1852 | 1852 | strcpy(info->s = device_temp_str(), "xdf,hdm,2hd,dim"); |
| 1853 | 1853 | break; |
| 1854 | 1854 | default: |
| r1711 | r1712 | |
| 1994 | 1994 | MDRV_MACHINE_RESET( x68000 ) |
| 1995 | 1995 | |
| 1996 | 1996 | /* video hardware */ |
| 1997 | MDRV_ | |
| 1997 | MDRV_SC | |
| 1998 | 1998 | MDRV_SCREEN_REFRESH_RATE(55.45) |
| 1999 | 1999 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 2000 | 2000 | // MDRV_GFXDECODE(x68k) |
| r1711 | r1712 | |
| 2002 | 2002 | MDRV_SCREEN_VISIBLE_AREA(0, 767, 0, 511) |
| 2003 | 2003 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2004 | 2004 | MDRV_PALETTE_LENGTH(65536) |
| 2005 | MDRV_COLORTABLE_LENGTH(65536 + 512) | |
| 2006 | 2005 | MDRV_PALETTE_INIT( x68000 ) |
| 2007 | 2006 | |
| 2008 | 2007 | MDRV_VIDEO_START( x68000 ) |
| r1711 | r1712 | |
|---|---|---|
| 1947 | 1947 | static PALETTE_INIT( spectrum ) |
| 1948 | 1948 | { |
| 1949 | 1949 | palette_set_colors_rgb(machine, 0, spectrum_palette, sizeof(spectrum_palette) / 3); |
| 1950 | memcpy(colortable, spectrum_colortable, sizeof(spectrum_colortable)); | |
| 1951 | 1950 | } |
| 1952 | 1951 | |
| 1953 | 1952 | static INTERRUPT_GEN( spec_interrupt ) |
| r1711 | r1712 | |
| 1968 | 1967 | MDRV_MACHINE_RESET( spectrum ) |
| 1969 | 1968 | |
| 1970 | 1969 | /* video hardware */ |
| 1971 | MDRV_ | |
| 1970 | MDRV_SC | |
| 1972 | 1971 | MDRV_SCREEN_REFRESH_RATE(50.08) |
| 1973 | 1972 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 1974 | 1973 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
| 1976 | 1975 | MDRV_SCREEN_VISIBLE_AREA(0, SPEC_SCREEN_WIDTH-1, 0, SPEC_SCREEN_HEIGHT-1) |
| 1977 | 1976 | MDRV_GFXDECODE( spectrum ) |
| 1978 | 1977 | MDRV_PALETTE_LENGTH(16) |
| 1979 | MDRV_COLORTABLE_LENGTH(256) | |
| 1980 | 1978 | MDRV_PALETTE_INIT( spectrum ) |
| 1981 | 1979 | |
| 1982 | 1980 | MDRV_VIDEO_START( spectrum ) |
| r1711 | r1712 | |
| 2033 | 2031 | MDRV_MACHINE_RESET( ts2068 ) |
| 2034 | 2032 | |
| 2035 | 2033 | /* video hardware */ |
| 2036 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2037 | 2034 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2038 | 2035 | MDRV_SCREEN_SIZE(TS2068_SCREEN_WIDTH, TS2068_SCREEN_HEIGHT) |
| 2039 | 2036 | MDRV_SCREEN_VISIBLE_AREA(0, TS2068_SCREEN_WIDTH-1, 0, TS2068_SCREEN_HEIGHT-1) |
| r1711 | r1712 | |
| 2059 | 2056 | MDRV_MACHINE_RESET( tc2048 ) |
| 2060 | 2057 | |
| 2061 | 2058 | /* video hardware */ |
| 2062 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2063 | 2059 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2064 | 2060 | MDRV_SCREEN_SIZE(TS2068_SCREEN_WIDTH, SPEC_SCREEN_HEIGHT) |
| 2065 | 2061 | MDRV_SCREEN_VISIBLE_AREA(0, TS2068_SCREEN_WIDTH-1, 0, SPEC_SCREEN_HEIGHT-1) |
| r1711 | r1712 | |
| 2265 | 2261 | switch(state) |
| 2266 | 2262 | { |
| 2267 | 2263 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 2268 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 2269 | case DEVINFO_INT_CASSETTE_DEFAULT_STATE: info->i = CASSETTE_PLAY | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_DISABLED; break; | |
| 2270 | case DEVINFO_PTR_CASSETTE_FORMATS: info->p = (void *)tzx_cassette_formats; break; | |
| 2264 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 2265 | case MESS_DEVINFO_INT_CASSETTE_DEFAULT_STATE: info->i = CASSETTE_PLAY | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_DISABLED; break; | |
| 2266 | case MESS_DEVINFO_PTR_CASSETTE_FORMATS: info->p = (void *)tzx_cassette_formats; break; | |
| 2271 | 2267 | default: cassette_device_getinfo(devclass, state, info); break; |
| 2272 | 2268 | } |
| 2273 | 2269 | } |
| r1711 | r1712 | |
| 2278 | 2274 | switch(state) |
| 2279 | 2275 | { |
| 2280 | 2276 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 2281 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "sna,z80,sp"); break; | |
| 2277 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "sna,z80,sp"); break; | |
| 2282 | 2278 | |
| 2283 | 2279 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 2284 | case DEVINFO_PTR_SNAPSHOT_LOAD: info->f = (genf *) snapshot_load_spectrum; break; | |
| 2280 | case MESS_DEVINFO_PTR_SNAPSHOT_LOAD: info->f = (genf *) snapshot_load_spectrum; break; | |
| 2285 | 2281 | |
| 2286 | 2282 | default: snapshot_device_getinfo(devclass, state, info); break; |
| 2287 | 2283 | } |
| r1711 | r1712 | |
| 2293 | 2289 | switch(state) |
| 2294 | 2290 | { |
| 2295 | 2291 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 2296 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "scr"); break; | |
| 2292 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "scr"); break; | |
| 2297 | 2293 | |
| 2298 | 2294 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 2299 | case DEVINFO_PTR_QUICKLOAD_LOAD: info->f = (genf *) quickload_load_spectrum; break; | |
| 2295 | case MESS_DEVINFO_PTR_QUICKLOAD_LOAD: info->f = (genf *) quickload_load_spectrum; break; | |
| 2300 | 2296 | |
| 2301 | 2297 | default: quickload_device_getinfo(devclass, state, info); break; |
| 2302 | 2298 | } |
| r1711 | r1712 | |
| 2319 | 2315 | switch(state) |
| 2320 | 2316 | { |
| 2321 | 2317 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 2322 | case DEVINFO_INT_COUNT: info->i = 2; break; | |
| 2318 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 2323 | 2319 | |
| 2324 | 2320 | default: legacydsk_device_getinfo(devclass, state, info); break; |
| 2325 | 2321 | } |
| r1711 | r1712 | |
| 2336 | 2332 | switch(state) |
| 2337 | 2333 | { |
| 2338 | 2334 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 2339 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 2335 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 2340 | 2336 | |
| 2341 | 2337 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 2342 | case DEVINFO_PTR_LOAD: info->load = device_load_timex_cart; break; | |
| 2343 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_timex_cart; break; | |
| 2338 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_timex_cart; break; | |
| 2339 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_timex_cart; break; | |
| 2344 | 2340 | |
| 2345 | 2341 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 2346 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "dck"); break; | |
| 2342 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "dck"); break; | |
| 2347 | 2343 | |
| 2348 | 2344 | default: cartslot_device_getinfo(devclass, state, info); break; |
| 2349 | 2345 | } |
| r1711 | r1712 | |
|---|---|---|
| 546 | 546 | MDRV_MACHINE_RESET( mpf1 ) |
| 547 | 547 | |
| 548 | 548 | // video hardware |
| 549 | MDRV_ | |
| 549 | MDRV_SC | |
| 550 | 550 | MDRV_SCREEN_REFRESH_RATE(60) |
| 551 | 551 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) |
| 552 | 552 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
|---|---|---|
| 176 | 176 | MDRV_INTERLEAVE(1) |
| 177 | 177 | |
| 178 | 178 | /* video hardware */ |
| 179 | MDRV_ | |
| 179 | MDRV_SC | |
| 180 | 180 | MDRV_SCREEN_REFRESH_RATE(60) |
| 181 | 181 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 182 | 182 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 183 | 183 | MDRV_SCREEN_SIZE(320, 204) |
| 184 | 184 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 0, 204-1) |
| 185 | 185 | MDRV_PALETTE_LENGTH(8*32) |
| 186 | MDRV_COLORTABLE_LENGTH(8) | |
| 187 | 186 | MDRV_PALETTE_INIT( astrocade ) |
| 188 | 187 | |
| 189 | 188 | MDRV_VIDEO_START( generic ) |
| r1711 | r1712 | |
| 212 | 211 | switch(state) |
| 213 | 212 | { |
| 214 | 213 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 215 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 214 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 216 | 215 | |
| 217 | 216 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 218 | case DEVINFO_PTR_LOAD: info->load = device_load_astrocade_rom; break; | |
| 217 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_astrocade_rom; break; | |
| 219 | 218 | |
| 220 | 219 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 221 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "bin"); break; | |
| 220 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "bin"); break; | |
| 222 | 221 | |
| 223 | 222 | default: cartslot_device_getinfo(devclass, state, info); break; |
| 224 | 223 | } |
| r1711 | r1712 | |
|---|---|---|
| 228 | 228 | static PALETTE_INIT( kaypro ) |
| 229 | 229 | { |
| 230 | 230 | palette_set_colors_rgb(machine, 0, kaypro_palette, sizeof(kaypro_palette) / 3); |
| 231 | memcpy(colortable, kaypro_colortable, sizeof(kaypro_colortable)); | |
| 232 | 231 | } |
| 233 | 232 | |
| 234 | 233 | static MACHINE_DRIVER_START( kaypro ) |
| r1711 | r1712 | |
| 242 | 241 | MDRV_MACHINE_RESET( kaypro ) |
| 243 | 242 | |
| 244 | 243 | /* video hardware */ |
| 245 | MDRV_ | |
| 244 | MDRV_SC | |
| 246 | 245 | MDRV_SCREEN_REFRESH_RATE(60) |
| 247 | 246 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 248 | 247 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
| 250 | 249 | MDRV_SCREEN_VISIBLE_AREA(0*KAYPRO_FONT_W, 80*KAYPRO_FONT_W-1, 0*KAYPRO_FONT_H, 25*KAYPRO_FONT_H-1) |
| 251 | 250 | MDRV_GFXDECODE( kaypro ) |
| 252 | 251 | MDRV_PALETTE_LENGTH(sizeof(kaypro_palette) / 3) |
| 253 | MDRV_COLORTABLE_LENGTH(sizeof(kaypro_colortable) / sizeof(kaypro_colortable[0])) | |
| 254 | 252 | MDRV_PALETTE_INIT( kaypro ) |
| 255 | 253 | |
| 256 | 254 | MDRV_VIDEO_START( kaypro ) |
| r1711 | r1712 | |
| 275 | 273 | switch(state) |
| 276 | 274 | { |
| 277 | 275 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 278 | case DEVINFO_INT_COUNT: info->i = 4; break; | |
| 276 | case MESS_DEVINFO_INT_COUNT: info->i = 4; break; | |
| 279 | 277 | |
| 280 | 278 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 281 | case DEVINFO_PTR_LOAD: info->load = device_load_cpm_floppy; break; | |
| 279 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_cpm_floppy; break; | |
| 282 | 280 | |
| 283 | 281 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 284 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "dsk"); break; | |
| 282 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "dsk"); break; | |
| 285 | 283 | |
| 286 | 284 | default: legacybasicdsk_device_getinfo(devclass, state, info); break; |
| 287 | 285 | } |
| r1711 | r1712 | |
|---|---|---|
| 289 | 289 | 0xff,0xff,0xff /* white */ |
| 290 | 290 | }; |
| 291 | 291 | |
| 292 | static const unsigned short bw_colortable[] = | |
| 293 | { | |
| 294 | 0, 1, | |
| 295 | 1, 0 | |
| 296 | }; | |
| 297 | ||
| 298 | 292 | static PALETTE_INIT( super80_bw ) |
| 299 | 293 | { |
| 300 | 294 | palette_set_colors_rgb(machine, 0, bw_palette, sizeof(bw_palette) / 3); |
| 301 | memcpy(colortable, & bw_colortable, sizeof(bw_colortable)); | |
| 302 | 295 | } |
| 303 | 296 | |
| 304 | 297 | static const struct z80_irq_daisy_chain super80_daisy_chain[] = |
| r1711 | r1712 | |
| 321 | 314 | MDRV_MACHINE_RESET( super80 ) |
| 322 | 315 | |
| 323 | 316 | MDRV_GFXDECODE(super80) |
| 324 | MDRV_ | |
| 317 | MDRV_SC | |
| 325 | 318 | MDRV_SCREEN_REFRESH_RATE(50) |
| 326 | 319 | // MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 327 | 320 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 328 | 321 | MDRV_SCREEN_SIZE(32*8, 16*10) |
| 329 | 322 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0, 16*10-1) |
| 330 | 323 | MDRV_PALETTE_LENGTH(sizeof(bw_palette)/sizeof(bw_palette[0])/3) |
| 331 | MDRV_COLORTABLE_LENGTH(sizeof(bw_colortable)/sizeof(bw_colortable[0])) | |
| 332 | 324 | MDRV_PALETTE_INIT(super80_bw) |
| 333 | 325 | |
| 334 | 326 | MDRV_VIDEO_START(super80) |
| r1711 | r1712 | |
|---|---|---|
| 94 | 94 | MDRV_INTERLEAVE(10) |
| 95 | 95 | |
| 96 | 96 | /* video hardware */ |
| 97 | MDRV_ | |
| 97 | MDRV_SC | |
| 98 | 98 | MDRV_SCREEN_REFRESH_RATE(60) |
| 99 | 99 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) |
| 100 | 100 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| r1711 | r1712 | |
| 172 | 172 | switch(state) |
| 173 | 173 | { |
| 174 | 174 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 175 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 176 | case DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 175 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 176 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 177 | 177 | |
| 178 | 178 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 179 | case DEVINFO_PTR_LOAD: info->load = device_load_n64_cart; break; | |
| 179 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_n64_cart; break; | |
| 180 | 180 | |
| 181 | 181 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 182 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "v64,z64,rom,n64,bin"); break; | |
| 182 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "v64,z64,rom,n64,bin"); break; | |
| 183 | 183 | |
| 184 | 184 | default: cartslot_device_getinfo(devclass, state, info); break; |
| 185 | 185 | } |
| r1711 | r1712 | |
|---|---|---|
| 1747 | 1747 | MDRV_MACHINE_START(atarist) |
| 1748 | 1748 | |
| 1749 | 1749 | // video hardware |
| 1750 | MDRV_ | |
| 1750 | MDRV_SC | |
| 1751 | 1751 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 1752 | 1752 | MDRV_PALETTE_LENGTH(16) |
| 1753 | 1753 | MDRV_VIDEO_START( atarist ) |
| 1754 | 1754 | MDRV_VIDEO_UPDATE( generic_bitmapped ) |
| 1755 | 1755 | |
| 1756 | MDRV_SCREEN_ADD("main", 0) | |
| 1757 | 1756 | MDRV_SCREEN_RAW_PARAMS(Y2/4, ATARIST_HTOT_PAL, ATARIST_HBEND_PAL, ATARIST_HBSTART_PAL, ATARIST_VTOT_PAL, ATARIST_VBEND_PAL, ATARIST_VBSTART_PAL) |
| 1758 | 1757 | |
| 1759 | 1758 | // sound hardware |
| r1711 | r1712 | |
| 1784 | 1783 | MDRV_MACHINE_START(atariste) |
| 1785 | 1784 | |
| 1786 | 1785 | // video hardware |
| 1787 | MDRV_ | |
| 1786 | MDRV_SC | |
| 1788 | 1787 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 1789 | 1788 | MDRV_PALETTE_LENGTH(512) |
| 1790 | 1789 | MDRV_VIDEO_START( atarist ) |
| 1791 | 1790 | MDRV_VIDEO_UPDATE( generic_bitmapped ) |
| 1792 | 1791 | |
| 1793 | MDRV_SCREEN_ADD("main", 0) | |
| 1794 | 1792 | MDRV_SCREEN_RAW_PARAMS(Y2/4, ATARIST_HTOT_PAL, ATARIST_HBEND_PAL, ATARIST_HBSTART_PAL, ATARIST_VTOT_PAL, ATARIST_VBEND_PAL, ATARIST_VBSTART_PAL) |
| 1795 | 1793 | |
| 1796 | 1794 | // sound hardware |
| r1711 | r1712 | |
| 1826 | 1824 | MDRV_MACHINE_START(stbook) |
| 1827 | 1825 | |
| 1828 | 1826 | // video hardware |
| 1827 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1829 | 1828 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1830 | 1829 | MDRV_SCREEN_REFRESH_RATE(60) |
| 1831 | 1830 | MDRV_SCREEN_SIZE(640, 400) |
| r1711 | r1712 | |
| 2014 | 2013 | switch(state) |
| 2015 | 2014 | { |
| 2016 | 2015 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 2017 | case DEVINFO_INT_COUNT: info->i = 2; break; | |
| 2016 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 2018 | 2017 | |
| 2019 | 2018 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 2020 | case DEVINFO_PTR_LOAD: info->load = device_load_atarist_floppy; break; | |
| 2019 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_atarist_floppy; break; | |
| 2021 | 2020 | |
| 2022 | 2021 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 2023 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "st"); break; | |
| 2022 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "st"); break; | |
| 2024 | 2023 | |
| 2025 | 2024 | default: legacybasicdsk_device_getinfo(devclass, state, info); break; |
| 2026 | 2025 | } |
| r1711 | r1712 | |
| 2032 | 2031 | switch(state) |
| 2033 | 2032 | { |
| 2034 | 2033 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 2035 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 2034 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 2036 | 2035 | |
| 2037 | 2036 | default: printer_device_getinfo(devclass, state, info); break; |
| 2038 | 2037 | } |
| r1711 | r1712 | |
| 2063 | 2062 | switch(state) |
| 2064 | 2063 | { |
| 2065 | 2064 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 2066 | case DEVINFO_INT_TYPE: info->i = IO_SERIAL; break; | |
| 2067 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 2065 | case MESS_DEVINFO_INT_TYPE: info->i = IO_SERIAL; break; | |
| 2066 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 2068 | 2067 | |
| 2069 | 2068 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 2070 | case DEVINFO_PTR_INIT: info->init = serial_device_init; break; | |
| 2071 | case DEVINFO_PTR_LOAD: info->load = device_load_atarist_serial; break; | |
| 2072 | case DEVINFO_PTR_UNLOAD: info->unload = serial_device_unload; break; | |
| 2069 | case MESS_DEVINFO_PTR_INIT: info->init = serial_device_init; break; | |
| 2070 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_atarist_serial; break; | |
| 2071 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = serial_device_unload; break; | |
| 2073 | 2072 | |
| 2074 | 2073 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 2075 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "txt"); break; | |
| 2074 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "txt"); break; | |
| 2076 | 2075 | } |
| 2077 | 2076 | } |
| 2078 | 2077 | |
| r1711 | r1712 | |
| 2082 | 2081 | switch(state) |
| 2083 | 2082 | { |
| 2084 | 2083 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 2085 | case DEVINFO_INT_TYPE: info->i = IO_SERIAL; break; | |
| 2086 | case DEVINFO_INT_COUNT: info->i = 2; break; | |
| 2084 | case MESS_DEVINFO_INT_TYPE: info->i = IO_SERIAL; break; | |
| 2085 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 2087 | 2086 | |
| 2088 | 2087 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 2089 | case DEVINFO_PTR_INIT: info->init = serial_device_init; break; | |
| 2090 | case DEVINFO_PTR_LOAD: info->load = device_load_atarist_serial; break; | |
| 2091 | case DEVINFO_PTR_UNLOAD: info->unload = serial_device_unload; break; | |
| 2088 | case MESS_DEVINFO_PTR_INIT: info->init = serial_device_init; break; | |
| 2089 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_atarist_serial; break; | |
| 2090 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = serial_device_unload; break; | |
| 2092 | 2091 | |
| 2093 | 2092 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 2094 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "txt"); break; | |
| 2093 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "txt"); break; | |
| 2095 | 2094 | } |
| 2096 | 2095 | } |
| 2097 | 2096 | |
| r1711 | r1712 | |
| 2117 | 2116 | { |
| 2118 | 2117 | switch( state ) |
| 2119 | 2118 | { |
| 2120 | case DEVINFO_INT_COUNT: | |
| 2119 | case MESS_DEVINFO_INT_COUNT: | |
| 2121 | 2120 | info->i = 1; |
| 2122 | 2121 | break; |
| 2123 | case DEVINFO_PTR_LOAD: | |
| 2122 | case MESS_DEVINFO_PTR_LOAD: | |
| 2124 | 2123 | info->load = device_load_atarist_cart; |
| 2125 | 2124 | break; |
| 2126 | case DEVINFO_STR_FILE_EXTENSIONS: | |
| 2125 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: | |
| 2127 | 2126 | strcpy(info->s = device_temp_str(), "stc"); |
| 2128 | 2127 | break; |
| 2129 | 2128 | default: |
| r1711 | r1712 | |
|---|---|---|
| 456 | 456 | MDRV_MACHINE_RESET( geneve ) |
| 457 | 457 | |
| 458 | 458 | /* video hardware */ |
| 459 | MDRV_ | |
| 459 | MDRV_SC | |
| 460 | 460 | MDRV_SCREEN_REFRESH_RATE(60) /* or 50Hz */ |
| 461 | 461 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 462 | 462 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
| 464 | 464 | MDRV_SCREEN_VISIBLE_AREA(0, 512 + 32 - 1, 0, (212 + 28) * 2 - 1) |
| 465 | 465 | |
| 466 | 466 | MDRV_PALETTE_LENGTH(512) |
| 467 | MDRV_COLORTABLE_LENGTH(512) | |
| 468 | 467 | |
| 469 | 468 | MDRV_PALETTE_INIT(v9938) |
| 470 | 469 | MDRV_VIDEO_START(geneve) |
| r1711 | r1712 | |
| 531 | 530 | switch(state) |
| 532 | 531 | { |
| 533 | 532 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 534 | case DEVINFO_INT_COUNT: info->i = 4; break; | |
| 533 | case MESS_DEVINFO_INT_COUNT: info->i = 4; break; | |
| 535 | 534 | |
| 536 | 535 | /* Used within mflopimg.c. */ |
| 537 | case DEVINFO_INT_KEEP_DRIVE_GEOMETRY: info->i = 1; break; | |
| 536 | case MESS_DEVINFO_INT_KEEP_DRIVE_GEOMETRY: info->i = 1; break; | |
| 538 | 537 | |
| 539 | 538 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 540 | case DEVINFO_PTR_FLOPPY_OPTIONS: info->p = (void *) floppyoptions_ti99; break; | |
| 539 | case MESS_DEVINFO_PTR_FLOPPY_OPTIONS: info->p = (void *) floppyoptions_ti99; break; | |
| 541 | 540 | |
| 542 | 541 | default: floppy_device_getinfo(devclass, state, info); break; |
| 543 | 542 | } |
| r1711 | r1712 | |
| 549 | 548 | switch(state) |
| 550 | 549 | { |
| 551 | 550 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 552 | case DEVINFO_INT_TYPE: info->i = IO_HARDDISK; break; | |
| 553 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 554 | case DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 555 | case DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 556 | case DEVINFO_INT_COUNT: info->i = 3; break; | |
| 551 | case MESS_DEVINFO_INT_TYPE: info->i = IO_HARDDISK; break; | |
| 552 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 553 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 554 | case MESS_DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 555 | case MESS_DEVINFO_INT_COUNT: info->i = 3; break; | |
| 557 | 556 | |
| 558 | 557 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 559 | case DEVINFO_PTR_INIT: info->init = device_init_mess_hd; break; | |
| 560 | case DEVINFO_PTR_LOAD: info->load = device_load_ti99_hd; break; | |
| 561 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_ti99_hd; break; | |
| 558 | case MESS_DEVINFO_PTR_INIT: info->init = device_init_mess_hd; break; | |
| 559 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_ti99_hd; break; | |
| 560 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_ti99_hd; break; | |
| 562 | 561 | |
| 563 | 562 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 564 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "hd"); break; | |
| 565 | case DEVINFO_STR_DEV_TAG: strcpy(info->s = device_temp_str(), "geneve_hd"); break; | |
| 563 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "hd"); break; | |
| 564 | case MESS_DEVINFO_STR_DEV_TAG: strcpy(info->s = device_temp_str(), "geneve_hd"); break; | |
| 566 | 565 | } |
| 567 | 566 | } |
| 568 | 567 | |
| r1711 | r1712 | |
| 572 | 571 | switch(state) |
| 573 | 572 | { |
| 574 | 573 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 575 | case DEVINFO_INT_TYPE: info->i = IO_PARALLEL; break; | |
| 576 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 577 | case DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 578 | case DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 579 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 574 | case MESS_DEVINFO_INT_TYPE: info->i = IO_PARALLEL; break; | |
| 575 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 576 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 577 | case MESS_DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 578 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 580 | 579 | |
| 581 | 580 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 582 | case DEVINFO_PTR_LOAD: info->load = device_load_ti99_4_pio; break; | |
| 583 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_ti99_4_pio; break; | |
| 581 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_ti99_4_pio; break; | |
| 582 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_ti99_4_pio; break; | |
| 584 | 583 | |
| 585 | 584 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 586 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), ""); break; | |
| 585 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), ""); break; | |
| 587 | 586 | } |
| 588 | 587 | } |
| 589 | 588 | |
| r1711 | r1712 | |
| 593 | 592 | switch(state) |
| 594 | 593 | { |
| 595 | 594 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 596 | case DEVINFO_INT_TYPE: info->i = IO_SERIAL; break; | |
| 597 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 598 | case DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 599 | case DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 600 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 595 | case MESS_DEVINFO_INT_TYPE: info->i = IO_SERIAL; break; | |
| 596 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 597 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 598 | case MESS_DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 599 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 601 | 600 | |
| 602 | 601 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 603 | case DEVINFO_PTR_LOAD: info->load = device_load_ti99_4_rs232; break; | |
| 604 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_ti99_4_rs232; break; | |
| 602 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_ti99_4_rs232; break; | |
| 603 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_ti99_4_rs232; break; | |
| 605 | 604 | |
| 606 | 605 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 607 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), ""); break; | |
| 606 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), ""); break; | |
| 608 | 607 | } |
| 609 | 608 | } |
| 610 | 609 | |
| r1711 | r1712 | |
| 614 | 613 | switch(state) |
| 615 | 614 | { |
| 616 | 615 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 617 | case DEVINFO_INT_TYPE: info->i = IO_MEMCARD; break; | |
| 618 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 619 | case DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 620 | case DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 621 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 616 | case MESS_DEVINFO_INT_TYPE: info->i = IO_MEMCARD; break; | |
| 617 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 618 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 619 | case MESS_DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 620 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 622 | 621 | |
| 623 | 622 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 624 | case DEVINFO_PTR_INIT: info->init = device_init_smartmedia; break; | |
| 625 | case DEVINFO_PTR_LOAD: info->load = device_load_smartmedia; break; | |
| 626 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_smartmedia; break; | |
| 623 | case MESS_DEVINFO_PTR_INIT: info->init = device_init_smartmedia; break; | |
| 624 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_smartmedia; break; | |
| 625 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_smartmedia; break; | |
| 627 | 626 | |
| 628 | 627 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 629 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), ""); break; | |
| 628 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), ""); break; | |
| 630 | 629 | } |
| 631 | 630 | } |
| 632 | 631 |
| r1711 | r1712 | |
|---|---|---|
| 563 | 563 | |
| 564 | 564 | // video hardware |
| 565 | 565 | MDRV_IMPORT_FROM(tms9928a) |
| 566 | MDRV_SCREEN_MODIFY("main") | |
| 566 | 567 | MDRV_SCREEN_REFRESH_RATE(10738635.0/2/342/262) |
| 567 | 568 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 568 | 569 | |
| r1711 | r1712 | |
| 583 | 584 | |
| 584 | 585 | // video hardware |
| 585 | 586 | MDRV_IMPORT_FROM(tms9928a) |
| 587 | MDRV_SCREEN_MODIFY("main") | |
| 586 | 588 | MDRV_SCREEN_REFRESH_RATE(10738635.0/2/342/262) |
| 587 | 589 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 588 | 590 | |
| r1711 | r1712 | |
| 604 | 606 | |
| 605 | 607 | // video hardware |
| 606 | 608 | MDRV_IMPORT_FROM(tms9928a) |
| 609 | MDRV_SCREEN_MODIFY("main") | |
| 607 | 610 | MDRV_SCREEN_REFRESH_RATE(10738635.0/2/342/262) |
| 608 | 611 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 609 | 612 | |
| r1711 | r1712 | |
| 690 | 693 | { |
| 691 | 694 | switch( state ) |
| 692 | 695 | { |
| 693 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 694 | case DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 695 | case DEVINFO_PTR_LOAD: info->load = device_load_sg1000_cart; break; | |
| 696 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "sg"); break; | |
| 696 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 697 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 698 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_sg1000_cart; break; | |
| 699 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "sg"); break; | |
| 697 | 700 | |
| 698 | 701 | default: cartslot_device_getinfo( devclass, state, info ); break; |
| 699 | 702 | } |
| r1711 | r1712 | |
| 750 | 753 | { |
| 751 | 754 | switch( state ) |
| 752 | 755 | { |
| 753 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 754 | case DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 755 | case DEVINFO_PTR_LOAD: info->load = device_load_sc3000_cart; break; | |
| 756 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "sg,sc"); break; | |
| 756 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 757 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 758 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_sc3000_cart; break; | |
| 759 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "sg,sc"); break; | |
| 757 | 760 | |
| 758 | 761 | default: cartslot_device_getinfo( devclass, state, info ); break; |
| 759 | 762 | } |
| r1711 | r1712 | |
| 763 | 766 | { |
| 764 | 767 | switch(state) |
| 765 | 768 | { |
| 766 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 769 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 767 | 770 | |
| 768 | 771 | default: cassette_device_getinfo(devclass, state, info); break; |
| 769 | 772 | } |
| r1711 | r1712 | |
| 773 | 776 | { |
| 774 | 777 | switch(state) |
| 775 | 778 | { |
| 776 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 779 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 777 | 780 | |
| 778 | 781 | default: printer_device_getinfo(devclass, state, info); break; |
| 779 | 782 | } |
| r1711 | r1712 | |
| 783 | 786 | { |
| 784 | 787 | switch(state) |
| 785 | 788 | { |
| 786 | case DEVINFO_INT_COUNT: info->i = 2; break; | |
| 789 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 787 | 790 | |
| 788 | 791 | default: printer_device_getinfo(devclass, state, info); break; |
| 789 | 792 | } |
| r1711 | r1712 | |
| 812 | 815 | { |
| 813 | 816 | switch(state) |
| 814 | 817 | { |
| 815 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 816 | case DEVINFO_PTR_LOAD: info->load = device_load_sf7000_floppy; break; | |
| 817 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "sf7"); break; | |
| 818 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 819 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_sf7000_floppy; break; | |
| 820 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "sf7"); break; | |
| 818 | 821 | |
| 819 | 822 | default: legacybasicdsk_device_getinfo(devclass, state, info); break; |
| 820 | 823 | } |
| r1711 | r1712 | |
| 848 | 851 | switch(state) |
| 849 | 852 | { |
| 850 | 853 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 851 | case DEVINFO_INT_TYPE: info->i = IO_SERIAL; break; | |
| 852 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 854 | case MESS_DEVINFO_INT_TYPE: info->i = IO_SERIAL; break; | |
| 855 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 853 | 856 | |
| 854 | 857 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 855 | case DEVINFO_PTR_INIT: info->init = serial_device_init; break; | |
| 856 | case DEVINFO_PTR_LOAD: info->load = device_load_sf7000_serial; break; | |
| 857 | case DEVINFO_PTR_UNLOAD: info->unload = serial_device_unload; break; | |
| 858 | case MESS_DEVINFO_PTR_INIT: info->init = serial_device_init; break; | |
| 859 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_sf7000_serial; break; | |
| 860 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = serial_device_unload; break; | |
| 858 | 861 | |
| 859 | 862 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 860 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "txt"); break; | |
| 863 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "txt"); break; | |
| 861 | 864 | } |
| 862 | 865 | } |
| 863 | 866 |
| r1711 | r1712 | |
|---|---|---|
| 303 | 303 | |
| 304 | 304 | /* load static palette */ |
| 305 | 305 | palette_set_colors_rgb(machine, pen_crt_num_levels, palette, sizeof(palette) / sizeof(palette[0]) / 3); |
| 306 | ||
| 307 | memcpy(colortable, tx0_colortable, sizeof(tx0_colortable)); | |
| 308 | 306 | } |
| 309 | 307 | |
| 310 | 308 | |
| r1711 | r1712 | |
| 339 | 337 | MDRV_MACHINE_RESET( tx0 ) |
| 340 | 338 | |
| 341 | 339 | /* video hardware (includes the control panel and typewriter output) */ |
| 342 | MDRV_ | |
| 340 | MDRV_SC | |
| 343 | 341 | MDRV_SCREEN_REFRESH_RATE(refresh_rate) |
| 344 | 342 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 345 | 343 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
| 348 | 346 | |
| 349 | 347 | MDRV_GFXDECODE(tx0) |
| 350 | 348 | MDRV_PALETTE_LENGTH(pen_crt_num_levels + (sizeof(palette) / sizeof(palette[0]) / 3)) |
| 351 | MDRV_COLORTABLE_LENGTH(sizeof(tx0_colortable) / sizeof(tx0_colortable[0])) | |
| 352 | 349 | |
| 353 | 350 | MDRV_PALETTE_INIT(tx0) |
| 354 | 351 | MDRV_VIDEO_START(tx0) |
| r1711 | r1712 | |
| 392 | 389 | switch(state) |
| 393 | 390 | { |
| 394 | 391 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 395 | case DEVINFO_INT_TYPE: info->i = IO_PUNCHTAPE; break; | |
| 396 | case DEVINFO_INT_COUNT: info->i = 2; break; | |
| 392 | case MESS_DEVINFO_INT_TYPE: info->i = IO_PUNCHTAPE; break; | |
| 393 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 397 | 394 | |
| 398 | 395 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 399 | case DEVINFO_PTR_INIT: info->init = device_init_tx0_tape; break; | |
| 400 | case DEVINFO_PTR_LOAD: info->load = device_load_tx0_tape; break; | |
| 401 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_tx0_tape; break; | |
| 402 | case DEVINFO_PTR_GET_DISPOSITIONS: info->getdispositions = tx0_tape_get_open_mode; break; | |
| 396 | case MESS_DEVINFO_PTR_INIT: info->init = device_init_tx0_tape; break; | |
| 397 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_tx0_tape; break; | |
| 398 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_tx0_tape; break; | |
| 399 | case MESS_DEVINFO_PTR_GET_DISPOSITIONS: info->getdispositions = tx0_tape_get_open_mode; break; | |
| 403 | 400 | |
| 404 | 401 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 405 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "tap,rim"); break; | |
| 402 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "tap,rim"); break; | |
| 406 | 403 | } |
| 407 | 404 | } |
| 408 | 405 | |
| r1711 | r1712 | |
| 412 | 409 | switch(state) |
| 413 | 410 | { |
| 414 | 411 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 415 | case DEVINFO_INT_TYPE: info->i = IO_PRINTER; break; | |
| 416 | case DEVINFO_INT_READABLE: info->i = 0; break; | |
| 417 | case DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 418 | case DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 419 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 412 | case MESS_DEVINFO_INT_TYPE: info->i = IO_PRINTER; break; | |
| 413 | case MESS_DEVINFO_INT_READABLE: info->i = 0; break; | |
| 414 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 415 | case MESS_DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 416 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 420 | 417 | |
| 421 | 418 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 422 | case DEVINFO_PTR_LOAD: info->load = device_load_tx0_typewriter; break; | |
| 423 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_tx0_typewriter; break; | |
| 419 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_tx0_typewriter; break; | |
| 420 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_tx0_typewriter; break; | |
| 424 | 421 | |
| 425 | 422 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 426 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "typ"); break; | |
| 423 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "typ"); break; | |
| 427 | 424 | } |
| 428 | 425 | } |
| 429 | 426 | |
| r1711 | r1712 | |
| 433 | 430 | switch(state) |
| 434 | 431 | { |
| 435 | 432 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 436 | case DEVINFO_INT_TYPE: info->i = IO_CASSETTE; break; | |
| 437 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 438 | case DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 439 | case DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 440 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 433 | case MESS_DEVINFO_INT_TYPE: info->i = IO_CASSETTE; break; | |
| 434 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 435 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 436 | case MESS_DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 437 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 441 | 438 | |
| 442 | 439 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 443 | case DEVINFO_PTR_INIT: info->init = device_init_tx0_magtape; break; | |
| 444 | case DEVINFO_PTR_LOAD: info->load = device_load_tx0_magtape; break; | |
| 445 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_tx0_magtape; break; | |
| 440 | case MESS_DEVINFO_PTR_INIT: info->init = device_init_tx0_magtape; break; | |
| 441 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_tx0_magtape; break; | |
| 442 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_tx0_magtape; break; | |
| 446 | 443 | |
| 447 | 444 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 448 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "tap"); break; | |
| 445 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "tap"); break; | |
| 449 | 446 | } |
| 450 | 447 | } |
| 451 | 448 |
| r1711 | r1712 | |
|---|---|---|
| 1557 | 1557 | switch(state) |
| 1558 | 1558 | { |
| 1559 | 1559 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 1560 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 1560 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 1561 | 1561 | |
| 1562 | 1562 | default: cdrom_device_getinfo(devclass, state, info); break; |
| 1563 | 1563 | } |
| r1711 | r1712 | |
| 1570 | 1570 | switch(state) |
| 1571 | 1571 | { |
| 1572 | 1572 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 1573 | case DEVINFO_INT_COUNT: info->i = 2; break; | |
| 1573 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 1574 | 1574 | |
| 1575 | 1575 | default: harddisk_device_getinfo(devclass, state, info); break; |
| 1576 | 1576 | } |
| r1711 | r1712 | |
| 1587 | 1587 | MDRV_NVRAM_HANDLER( ip22 ) |
| 1588 | 1588 | |
| 1589 | 1589 | /* video hardware */ |
| 1590 | MDRV_ | |
| 1590 | MDRV_SC | |
| 1591 | 1591 | MDRV_SCREEN_REFRESH_RATE( 60 ) |
| 1592 | 1592 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 1593 | 1593 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) |
| r1711 | r1712 | |
|---|---|---|
| 932 | 932 | |
| 933 | 933 | static PALETTE_INIT( c128 ) |
| 934 | 934 | { |
| 935 | int i; | |
| 936 | ||
| 937 | 935 | palette_set_colors_rgb(machine, 0, vic2_palette, sizeof(vic2_palette) / 3); |
| 938 | 936 | palette_set_colors_rgb(machine, sizeof(vic2_palette) / 3, vdc8563_palette, sizeof(vdc8563_palette) / 3); |
| 939 | ||
| 940 | for (i=0; i<0x100; i++) { | |
| 941 | colortable[i*2]=0x10+((i&0xf0)>>4); | |
| 942 | colortable[i*2+1]=0x10+(i&0xf); | |
| 943 | } | |
| 944 | 937 | } |
| 945 | 938 | |
| 946 | 939 | static const gfx_layout c128_charlayout = |
| r1711 | r1712 | |
| 1190 | 1183 | MDRV_MACHINE_RESET( c128 ) |
| 1191 | 1184 | |
| 1192 | 1185 | /* video hardware */ |
| 1193 | MDRV_ | |
| 1186 | MDRV_SC | |
| 1194 | 1187 | MDRV_SCREEN_REFRESH_RATE(VIC6567_VRETRACERATE) |
| 1195 | 1188 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 1196 | 1189 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
| 1198 | 1191 | MDRV_SCREEN_VISIBLE_AREA(0, 656 - 1, 0, 216 - 1) |
| 1199 | 1192 | MDRV_GFXDECODE( c128 ) |
| 1200 | 1193 | MDRV_PALETTE_LENGTH((sizeof (vic2_palette) +sizeof(vdc8563_palette))/ sizeof (vic2_palette[0]) / 3 ) |
| 1201 | MDRV_COLORTABLE_LENGTH( 0x100*2 ) | |
| 1202 | 1194 | MDRV_PALETTE_INIT( c128 ) |
| 1203 | 1195 | |
| 1204 | 1196 | MDRV_VIDEO_START( c128 ) |
| r1711 | r1712 | |
| 1236 | 1228 | switch(state) |
| 1237 | 1229 | { |
| 1238 | 1230 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 1239 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "crt,80"); break; | |
| 1231 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "crt,80"); break; | |
| 1240 | 1232 | |
| 1241 | 1233 | default: cbmcartslot_device_getinfo(devclass, state, info); break; |
| 1242 | 1234 | } |
| r1711 | r1712 | |
| 1247 | 1239 | switch(state) |
| 1248 | 1240 | { |
| 1249 | 1241 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 1250 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "p00,prg"); break; | |
| 1242 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "p00,prg"); break; | |
| 1251 | 1243 | |
| 1252 | 1244 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 1253 | case DEVINFO_PTR_QUICKLOAD_LOAD: info->f = (genf *) quickload_load_cbm_c64; break; | |
| 1245 | case MESS_DEVINFO_PTR_QUICKLOAD_LOAD: info->f = (genf *) quickload_load_cbm_c64; break; | |
| 1254 | 1246 | |
| 1255 | 1247 | /* --- the following bits of info are returned as doubles --- */ |
| 1256 | case DEVINFO_FLOAT_QUICKLOAD_DELAY: info->d = CBM_QUICKLOAD_DELAY; break; | |
| 1248 | case MESS_DEVINFO_FLOAT_QUICKLOAD_DELAY: info->d = CBM_QUICKLOAD_DELAY; break; | |
| 1257 | 1249 | |
| 1258 | 1250 | default: quickload_device_getinfo(devclass, state, info); break; |
| 1259 | 1251 | } |
| r1711 | r1712 | |
|---|---|---|
| 423 | 423 | MDRV_CPU_ADD(8080, 2500000) |
| 424 | 424 | MDRV_CPU_PROGRAM_MAP(lviv_mem, 0) |
| 425 | 425 | MDRV_CPU_IO_MAP(lviv_readport, lviv_writeport) |
| 426 | MDRV_SCREEN_ADD("main", RASTER) | |
| 426 | 427 | MDRV_SCREEN_REFRESH_RATE(50) |
| 427 | 428 | MDRV_SCREEN_VBLANK_TIME(0) |
| 428 | 429 | MDRV_INTERLEAVE(1) |
| r1711 | r1712 | |
| 430 | 431 | MDRV_MACHINE_RESET( lviv ) |
| 431 | 432 | |
| 432 | 433 | /* video hardware */ |
| 433 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 434 | 434 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 435 | 435 | MDRV_SCREEN_SIZE(256, 256) |
| 436 | 436 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0, 256-1) |
| 437 | 437 | MDRV_PALETTE_LENGTH(sizeof (lviv_palette) / 3) |
| 438 | MDRV_COLORTABLE_LENGTH(sizeof (lviv_colortable)) | |
| 439 | 438 | MDRV_PALETTE_INIT( lviv ) |
| 440 | 439 | |
| 441 | 440 | MDRV_VIDEO_START( lviv ) |
| r1711 | r1712 | |
| 456 | 455 | switch(state) |
| 457 | 456 | { |
| 458 | 457 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 459 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 458 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 460 | 459 | |
| 461 | 460 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 462 | case DEVINFO_PTR_CASSETTE_FORMATS: info->p = (void *) lviv_lvt_format; break; | |
| 461 | case MESS_DEVINFO_PTR_CASSETTE_FORMATS: info->p = (void *) lviv_lvt_format; break; | |
| 463 | 462 | |
| 464 | 463 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 465 | case DEVINFO_INT_CASSETTE_DEFAULT_STATE: info->i = CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED; break; | |
| 464 | case MESS_DEVINFO_INT_CASSETTE_DEFAULT_STATE: info->i = CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED; break; | |
| 466 | 465 | |
| 467 | 466 | default: cassette_device_getinfo(devclass, state, info); break; |
| 468 | 467 | } |
| r1711 | r1712 | |
| 474 | 473 | switch(state) |
| 475 | 474 | { |
| 476 | 475 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 477 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "sav"); break; | |
| 476 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "sav"); break; | |
| 478 | 477 | |
| 479 | 478 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 480 | case DEVINFO_PTR_SNAPSHOT_LOAD: info->f = (genf *) snapshot_load_lviv; break; | |
| 479 | case MESS_DEVINFO_PTR_SNAPSHOT_LOAD: info->f = (genf *) snapshot_load_lviv; break; | |
| 481 | 480 | |
| 482 | 481 | default: snapshot_device_getinfo(devclass, state, info); break; |
| 483 | 482 | } |
| r1711 | r1712 | |
|---|---|---|
| 789 | 789 | MDRV_CPU_ADD_TAG("main", Z80, 12638000/6) |
| 790 | 790 | MDRV_CPU_PROGRAM_MAP(exidy_mem, 0) |
| 791 | 791 | MDRV_CPU_IO_MAP(exidy_io, 0) |
| 792 | MDRV_SCREEN_ADD("main", RASTER) | |
| 792 | 793 | MDRV_SCREEN_REFRESH_RATE(50) |
| 793 | 794 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(200)) |
| 794 | 795 | MDRV_INTERLEAVE(1) |
| r1711 | r1712 | |
| 797 | 798 | MDRV_MACHINE_RESET( exidy ) |
| 798 | 799 | |
| 799 | 800 | /* video hardware */ |
| 800 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 801 | 801 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 802 | 802 | MDRV_SCREEN_SIZE(EXIDY_SCREEN_WIDTH, EXIDY_SCREEN_HEIGHT) |
| 803 | 803 | MDRV_SCREEN_VISIBLE_AREA(0, EXIDY_SCREEN_WIDTH-1, 0, EXIDY_SCREEN_HEIGHT-1) |
| r1711 | r1712 | |
| 874 | 874 | switch(state) |
| 875 | 875 | { |
| 876 | 876 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 877 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 877 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 878 | 878 | |
| 879 | 879 | default: printer_device_getinfo(devclass, state, info); break; |
| 880 | 880 | } |
| r1711 | r1712 | |
| 886 | 886 | switch(state) |
| 887 | 887 | { |
| 888 | 888 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 889 | case DEVINFO_INT_COUNT: info->i = 4; break; | |
| 889 | case MESS_DEVINFO_INT_COUNT: info->i = 4; break; | |
| 890 | 890 | |
| 891 | 891 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 892 | case DEVINFO_PTR_LOAD: info->load = device_load_exidy_floppy; break; | |
| 892 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_exidy_floppy; break; | |
| 893 | 893 | |
| 894 | 894 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 895 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "dsk"); break; | |
| 895 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "dsk"); break; | |
| 896 | 896 | |
| 897 | 897 | default: legacybasicdsk_device_getinfo(devclass, state, info); break; |
| 898 | 898 | } |
| r1711 | r1712 | |
| 904 | 904 | switch(state) |
| 905 | 905 | { |
| 906 | 906 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 907 | case DEVINFO_INT_COUNT: info->i = 2; break; | |
| 907 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 908 | 908 | |
| 909 | 909 | default: cassette_device_getinfo(devclass, state, info); break; |
| 910 | 910 | } |
| r1711 | r1712 | |
|---|---|---|
| 520 | 520 | MDRV_MACHINE_RESET( pc88srl ) |
| 521 | 521 | |
| 522 | 522 | /* video hardware */ |
| 523 | MDRV_ | |
| 523 | MDRV_SC | |
| 524 | 524 | MDRV_SCREEN_REFRESH_RATE(60) |
| 525 | 525 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 526 | 526 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
| 529 | 529 | MDRV_SCREEN_VISIBLE_AREA(0, 640-1, 0, 200-1) |
| 530 | 530 | MDRV_GFXDECODE( pc8801 ) |
| 531 | 531 | MDRV_PALETTE_LENGTH(18) |
| 532 | MDRV_COLORTABLE_LENGTH(32) | |
| 533 | 532 | MDRV_PALETTE_INIT( pc8801 ) |
| 534 | 533 | |
| 535 | 534 | MDRV_VIDEO_START(pc8801) |
| r1711 | r1712 | |
| 552 | 551 | |
| 553 | 552 | MDRV_MACHINE_RESET( pc88srh ) |
| 554 | 553 | |
| 555 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 556 | 554 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 557 | 555 | /*MDRV_ASPECT_RATIO(8, 5)*/ |
| 558 | 556 | MDRV_SCREEN_SIZE(640, 440) |
| r1711 | r1712 | |
| 565 | 563 | switch(state) |
| 566 | 564 | { |
| 567 | 565 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 568 | case DEVINFO_INT_TYPE: info->i = IO_FLOPPY; break; | |
| 569 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 570 | case DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 571 | case DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 572 | case DEVINFO_INT_COUNT: info->i = 2; break; | |
| 566 | case MESS_DEVINFO_INT_TYPE: info->i = IO_FLOPPY; break; | |
| 567 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 568 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 569 | case MESS_DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 570 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 573 | 571 | |
| 574 | 572 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 575 | case DEVINFO_PTR_INIT: info->init = device_init_d88image_floppy; break; | |
| 576 | case DEVINFO_PTR_LOAD: info->load = device_load_d88image_floppy; break; | |
| 577 | case DEVINFO_PTR_STATUS: /* info->status = floppy_status; */ break; | |
| 573 | case MESS_DEVINFO_PTR_INIT: info->init = device_init_d88image_floppy; break; | |
| 574 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_d88image_floppy; break; | |
| 575 | case MESS_DEVINFO_PTR_STATUS: /* info->status = floppy_status; */ break; | |
| 578 | 576 | |
| 579 | 577 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 580 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "d88"); break; | |
| 578 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "d88"); break; | |
| 581 | 579 | } |
| 582 | 580 | } |
| 583 | 581 |
| r1711 | r1712 | |
|---|---|---|
| 91 | 91 | 0xff, 0xff, 0xff |
| 92 | 92 | }; |
| 93 | 93 | |
| 94 | static const unsigned short p2000m_colortable[2 * 2] = | |
| 95 | { | |
| 96 | 1,0, 0,1 | |
| 97 | }; | |
| 98 | ||
| 99 | 94 | static PALETTE_INIT( p2000m ) |
| 100 | 95 | { |
| 101 | 96 | palette_set_colors_rgb(machine, 0, p2000m_palette, sizeof(p2000m_palette) / 3); |
| 102 | memcpy(colortable, p2000m_colortable, sizeof (p2000m_colortable)); | |
| 103 | 97 | } |
| 104 | 98 | |
| 105 | 99 | /* Keyboard input */ |
| r1711 | r1712 | |
| 232 | 226 | MDRV_INTERLEAVE(1) |
| 233 | 227 | |
| 234 | 228 | /* video hardware */ |
| 235 | MDRV_ | |
| 229 | MDRV_SC | |
| 236 | 230 | MDRV_SCREEN_REFRESH_RATE(50) |
| 237 | 231 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 238 | 232 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
| 240 | 234 | MDRV_SCREEN_VISIBLE_AREA(0, 80 * 6 - 1, 0, 24 * 10 - 1) |
| 241 | 235 | MDRV_GFXDECODE( p2000m ) |
| 242 | 236 | MDRV_PALETTE_LENGTH(2) |
| 243 | MDRV_COLORTABLE_LENGTH(4) | |
| 244 | 237 | MDRV_PALETTE_INIT(p2000m) |
| 245 | 238 | |
| 246 | 239 | MDRV_VIDEO_START(p2000m) |
| r1711 | r1712 | |
|---|---|---|
| 532 | 532 | static PALETTE_INIT( pet ) |
| 533 | 533 | { |
| 534 | 534 | palette_set_colors_rgb(machine, 0, pet_palette, sizeof(pet_palette) / 3); |
| 535 | memcpy(colortable, pet_colortable, sizeof(colortable)); | |
| 536 | 535 | } |
| 537 | 536 | |
| 538 | 537 | /* basic 1 */ |
| r1711 | r1712 | |
| 798 | 797 | MDRV_MACHINE_RESET( pet ) |
| 799 | 798 | |
| 800 | 799 | /* video hardware */ |
| 801 | MDRV_ | |
| 800 | MDRV_SC | |
| 802 | 801 | MDRV_SCREEN_REFRESH_RATE(60) |
| 803 | 802 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 804 | 803 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
| 806 | 805 | MDRV_SCREEN_VISIBLE_AREA(0, 320 - 1, 0, 200 - 1) |
| 807 | 806 | MDRV_GFXDECODE( pet ) |
| 808 | 807 | MDRV_PALETTE_LENGTH(sizeof (pet_palette) / sizeof (pet_palette[0]) / 3) |
| 809 | MDRV_COLORTABLE_LENGTH(sizeof (pet_colortable) / sizeof(pet_colortable[0][0])) | |
| 810 | 808 | MDRV_PALETTE_INIT( pet ) |
| 811 | 809 | |
| 812 | 810 | MDRV_VIDEO_START( generic ) |
| r1711 | r1712 | |
| 834 | 832 | MDRV_CPU_PROGRAM_MAP( pet80_mem, 0 ) |
| 835 | 833 | |
| 836 | 834 | /* video hardware */ |
| 837 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 838 | 835 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 839 | 836 | MDRV_SCREEN_SIZE(640, 250) |
| 840 | 837 | MDRV_SCREEN_VISIBLE_AREA(0, 640 - 1, 0, 250 - 1) |
| r1711 | r1712 | |
| 879 | 876 | switch(state) |
| 880 | 877 | { |
| 881 | 878 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 882 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "crt,a0,b0"); break; | |
| 879 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "crt,a0,b0"); break; | |
| 883 | 880 | |
| 884 | 881 | default: cbmcartslot_device_getinfo(devclass, state, info); break; |
| 885 | 882 | } |
| r1711 | r1712 | |
| 890 | 887 | switch(state) |
| 891 | 888 | { |
| 892 | 889 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 893 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "p00,prg"); break; | |
| 890 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "p00,prg"); break; | |
| 894 | 891 | |
| 895 | 892 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 896 | case DEVINFO_PTR_QUICKLOAD_LOAD: info->f = (genf *) quickload_load_cbm_pet; break; | |
| 893 | case MESS_DEVINFO_PTR_QUICKLOAD_LOAD: info->f = (genf *) quickload_load_cbm_pet; break; | |
| 897 | 894 | |
| 898 | 895 | /* --- the following bits of info are returned as doubles --- */ |
| 899 | case DEVINFO_FLOAT_QUICKLOAD_DELAY: info->d = CBM_QUICKLOAD_DELAY; break; | |
| 896 | case MESS_DEVINFO_FLOAT_QUICKLOAD_DELAY: info->d = CBM_QUICKLOAD_DELAY; break; | |
| 900 | 897 | |
| 901 | 898 | default: quickload_device_getinfo(devclass, state, info); break; |
| 902 | 899 | } |
| r1711 | r1712 | |
| 907 | 904 | switch(state) |
| 908 | 905 | { |
| 909 | 906 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 910 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "p00,prg"); break; | |
| 907 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "p00,prg"); break; | |
| 911 | 908 | |
| 912 | 909 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 913 | case DEVINFO_PTR_QUICKLOAD_LOAD: info->f = (genf *) quickload_load_cbm_pet1; break; | |
| 910 | case MESS_DEVINFO_PTR_QUICKLOAD_LOAD: info->f = (genf *) quickload_load_cbm_pet1; break; | |
| 914 | 911 | |
| 915 | 912 | /* --- the following bits of info are returned as doubles --- */ |
| 916 | case DEVINFO_FLOAT_QUICKLOAD_DELAY: info->d = CBM_QUICKLOAD_DELAY; break; | |
| 913 | case MESS_DEVINFO_FLOAT_QUICKLOAD_DELAY: info->d = CBM_QUICKLOAD_DELAY; break; | |
| 917 | 914 | |
| 918 | 915 | default: quickload_device_getinfo(devclass, state, info); break; |
| 919 | 916 | } |
| r1711 | r1712 | |
| 944 | 941 | switch(state) |
| 945 | 942 | { |
| 946 | 943 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 947 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "crt,a0"); break; | |
| 944 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "crt,a0"); break; | |
| 948 | 945 | |
| 949 | 946 | default: cbmcartslot_device_getinfo(devclass, state, info); break; |
| 950 | 947 | } |
| r1711 | r1712 | |
|---|---|---|
| 1946 | 1946 | MDRV_MACHINE_RESET(a2600) |
| 1947 | 1947 | |
| 1948 | 1948 | /* video hardware */ |
| 1949 | MDRV_ | |
| 1949 | MDRV_SC | |
| 1950 | 1950 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1951 | MDRV_SCREEN_ADD("main",0) | |
| 1952 | 1951 | MDRV_SCREEN_RAW_PARAMS( MASTER_CLOCK_NTSC, 228, 26, 26 + 160 + 16, 262, 24 , 24 + 192 + 31 ) |
| 1953 | 1952 | MDRV_PALETTE_LENGTH( TIA_PALETTE_LENGTH ) |
| 1954 | 1953 | MDRV_PALETTE_INIT(tia_NTSC) |
| r1711 | r1712 | |
| 1973 | 1972 | MDRV_MACHINE_RESET(a2600) |
| 1974 | 1973 | |
| 1975 | 1974 | /* video hardware */ |
| 1976 | MDRV_ | |
| 1975 | MDRV_SC | |
| 1977 | 1976 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1978 | MDRV_SCREEN_ADD("main",0) | |
| 1979 | 1977 | MDRV_SCREEN_RAW_PARAMS( MASTER_CLOCK_PAL, 228, 26, 26 + 160 + 16, 312, 32, 32 + 228 + 31 ) |
| 1980 | 1978 | MDRV_PALETTE_LENGTH( TIA_PALETTE_LENGTH ) |
| 1981 | 1979 | MDRV_PALETTE_INIT(tia_PAL) |
| r1711 | r1712 | |
| 2007 | 2005 | switch(state) |
| 2008 | 2006 | { |
| 2009 | 2007 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 2010 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 2011 | case DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 2008 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 2009 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 2012 | 2010 | |
| 2013 | 2011 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 2014 | case DEVINFO_PTR_INIT: info->init = device_init_a2600_cart; break; | |
| 2015 | case DEVINFO_PTR_LOAD: info->load = device_load_a2600_cart; break; | |
| 2012 | case MESS_DEVINFO_PTR_INIT: info->init = device_init_a2600_cart; break; | |
| 2013 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_a2600_cart; break; | |
| 2016 | 2014 | |
| 2017 | 2015 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 2018 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "bin,a26"); break; | |
| 2016 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "bin,a26"); break; | |
| 2019 | 2017 | |
| 2020 | 2018 | default: cartslot_device_getinfo(devclass, state, info); break; |
| 2021 | 2019 | } |
| r1711 | r1712 | |
| 2023 | 2021 | |
| 2024 | 2022 | static void a2600_cassette_getinfo( const device_class *devclass, UINT32 state, union devinfo *info ) { |
| 2025 | 2023 | switch( state ) { |
| 2026 | case DEVINFO_INT_COUNT: | |
| 2024 | case MESS_DEVINFO_INT_COUNT: | |
| 2027 | 2025 | info->i = 1; |
| 2028 | 2026 | break; |
| 2029 | case DEVINFO_INT_WRITEABLE: | |
| 2027 | case MESS_DEVINFO_INT_WRITEABLE: | |
| 2030 | 2028 | info->i = 0; |
| 2031 | 2029 | break; |
| 2032 | case DEVINFO_INT_CREATABLE: | |
| 2030 | case MESS_DEVINFO_INT_CREATABLE: | |
| 2033 | 2031 | info->i = 0; |
| 2034 | 2032 | break; |
| 2035 | case DEVINFO_INT_CASSETTE_DEFAULT_STATE: | |
| 2033 | case MESS_DEVINFO_INT_CASSETTE_DEFAULT_STATE: | |
| 2036 | 2034 | info->i = CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED; |
| 2037 | 2035 | break; |
| 2038 | case DEVINFO_PTR_CASSETTE_FORMATS: | |
| 2036 | case MESS_DEVINFO_PTR_CASSETTE_FORMATS: | |
| 2039 | 2037 | info->p = (void *)a26_cassette_formats; |
| 2040 | 2038 | break; |
| 2041 | 2039 | default: |
| r1711 | r1712 | |
|---|---|---|
| 268 | 268 | |
| 269 | 269 | // video hardware |
| 270 | 270 | |
| 271 | MDRV_SCREEN_ADD("main", | |
| 271 | MDRV_SCREEN_ADD("main", RASTER) | |
| 272 | 272 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 273 | 273 | MDRV_SCREEN_RAW_PARAMS(3579545/2, CDP1861_SCREEN_WIDTH, CDP1861_HBLANK_END, CDP1861_HBLANK_START, CDP1861_TOTAL_SCANLINES, CDP1861_SCANLINE_VBLANK_END, CDP1861_SCANLINE_VBLANK_START) |
| 274 | 274 | |
| r1711 | r1712 | |
| 296 | 296 | |
| 297 | 297 | // video hardware |
| 298 | 298 | |
| 299 | MDRV_SCREEN_ADD("main", | |
| 299 | MDRV_SCREEN_ADD("main", RASTER) | |
| 300 | 300 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 301 | 301 | MDRV_SCREEN_RAW_PARAMS(CDP1864_CLK_FREQ, CDP1864_SCREEN_WIDTH, CDP1864_HBLANK_END, CDP1864_HBLANK_START, CDP1864_TOTAL_SCANLINES, CDP1864_SCANLINE_VBLANK_END, CDP1864_SCANLINE_VBLANK_START) |
| 302 | 302 | |
| r1711 | r1712 | |
| 365 | 365 | { |
| 366 | 366 | switch( state ) |
| 367 | 367 | { |
| 368 | case DEVINFO_INT_COUNT: | |
| 368 | case MESS_DEVINFO_INT_COUNT: | |
| 369 | 369 | info->i = 1; |
| 370 | 370 | break; |
| 371 | case DEVINFO_PTR_LOAD: | |
| 371 | case MESS_DEVINFO_PTR_LOAD: | |
| 372 | 372 | info->load = device_load_studio2_cart; |
| 373 | 373 | break; |
| 374 | case DEVINFO_STR_FILE_EXTENSIONS: | |
| 374 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: | |
| 375 | 375 | strcpy(info->s = device_temp_str(), "st2"); |
| 376 | 376 | break; |
| 377 | 377 | default: |
| r1711 | r1712 | |
|---|---|---|
| 981 | 981 | MDRV_INTERLEAVE(1) |
| 982 | 982 | |
| 983 | 983 | /* video hardware */ |
| 984 | MDRV_ | |
| 984 | MDRV_SC | |
| 985 | 985 | MDRV_SCREEN_REFRESH_RATE(50) |
| 986 | 986 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 987 | 987 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 988 | 988 | MDRV_SCREEN_SIZE(PCW_SCREEN_WIDTH, PCW_SCREEN_HEIGHT) |
| 989 | 989 | MDRV_SCREEN_VISIBLE_AREA(0, PCW_SCREEN_WIDTH-1, 0, PCW_SCREEN_HEIGHT-1) |
| 990 | 990 | MDRV_PALETTE_LENGTH(PCW_NUM_COLOURS) |
| 991 | MDRV_COLORTABLE_LENGTH(PCW_NUM_COLOURS) | |
| 992 | 991 | MDRV_PALETTE_INIT( pcw ) |
| 993 | 992 | |
| 994 | 993 | MDRV_VIDEO_START( pcw ) |
| r1711 | r1712 | |
| 1037 | 1036 | switch(state) |
| 1038 | 1037 | { |
| 1039 | 1038 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 1040 | case DEVINFO_INT_COUNT: info->i = 2; break; | |
| 1039 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 1041 | 1040 | |
| 1042 | 1041 | default: legacydsk_device_getinfo(devclass, state, info); break; |
| 1043 | 1042 | } |
| r1711 | r1712 | |
|---|---|---|
| 114 | 114 | |
| 115 | 115 | /* video hardware */ |
| 116 | 116 | MDRV_DEFAULT_LAYOUT(layout_mk2) |
| 117 | MDRV_SCREEN_ADD("main", RASTER) | |
| 117 | 118 | MDRV_SCREEN_REFRESH_RATE(60) |
| 118 | 119 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 119 | 120 |
| r1711 | r1712 | |
|---|---|---|
| 695 | 695 | MDRV_MACHINE_RESET( c16 ) |
| 696 | 696 | |
| 697 | 697 | /* video hardware */ |
| 698 | MDRV_ | |
| 698 | MDRV_SC | |
| 699 | 699 | MDRV_SCREEN_REFRESH_RATE(TED7360PAL_VRETRACERATE) |
| 700 | 700 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 701 | 701 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
| 798 | 798 | switch(state) |
| 799 | 799 | { |
| 800 | 800 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 801 | case DEVINFO_INT_COUNT: info->i = 2; break; | |
| 801 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 802 | 802 | |
| 803 | 803 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 804 | case DEVINFO_PTR_LOAD: info->load = device_load_c16_rom; break; | |
| 804 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_c16_rom; break; | |
| 805 | 805 | |
| 806 | 806 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 807 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "bin,rom"); break; | |
| 807 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "bin,rom"); break; | |
| 808 | 808 | |
| 809 | 809 | default: cartslot_device_getinfo(devclass, state, info); break; |
| 810 | 810 | } |
| r1711 | r1712 | |
| 815 | 815 | switch(state) |
| 816 | 816 | { |
| 817 | 817 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 818 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "p00,prg"); break; | |
| 818 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "p00,prg"); break; | |
| 819 | 819 | |
| 820 | 820 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 821 | case DEVINFO_PTR_QUICKLOAD_LOAD: info->f = (genf *) quickload_load_cbm_c16; break; | |
| 821 | case MESS_DEVINFO_PTR_QUICKLOAD_LOAD: info->f = (genf *) quickload_load_cbm_c16; break; | |
| 822 | 822 | |
| 823 | 823 | /* --- the following bits of info are returned as doubles --- */ |
| 824 | case DEVINFO_FLOAT_QUICKLOAD_DELAY: info->d = CBM_QUICKLOAD_DELAY; break; | |
| 824 | case MESS_DEVINFO_FLOAT_QUICKLOAD_DELAY: info->d = CBM_QUICKLOAD_DELAY; break; | |
| 825 | 825 | |
| 826 | 826 | default: quickload_device_getinfo(devclass, state, info); break; |
| 827 | 827 | } |
| r1711 | r1712 | |
|---|---|---|
| 368 | 368 | // basic machine hardware |
| 369 | 369 | MDRV_CPU_ADD(M6502, X1/4) // .98304 MHz |
| 370 | 370 | MDRV_CPU_PROGRAM_MAP(sb2m600_mem, 0) |
| 371 | MDRV_SCREEN_ADD("main", RASTER) | |
| 371 | 372 | MDRV_SCREEN_REFRESH_RATE(X1/256/256) // 60 Hz |
| 372 | 373 | |
| 373 | 374 | MDRV_MACHINE_START(sb2m600) |
| 374 | 375 | |
| 375 | 376 | // video hardware |
| 376 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 377 | 377 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 378 | 378 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 379 | 379 | MDRV_SCREEN_VISIBLE_AREA(0, 32*8-1, 0, 32*8-1) |
| r1711 | r1712 | |
| 402 | 402 | MDRV_MACHINE_START(uk101) |
| 403 | 403 | |
| 404 | 404 | // video hardware |
| 405 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 406 | 405 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 407 | 406 | MDRV_SCREEN_SIZE(64*8, 16*16) |
| 408 | 407 | MDRV_SCREEN_VISIBLE_AREA(0, 64*8-1, 0, 16*16-1) |
| r1711 | r1712 | |
| 473 | 472 | switch(state) |
| 474 | 473 | { |
| 475 | 474 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 476 | case DEVINFO_INT_TYPE: info->i = IO_CASSETTE; break; | |
| 477 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 478 | case DEVINFO_INT_WRITEABLE: info->i = 0; break; | |
| 479 | case DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 480 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 475 | case MESS_DEVINFO_INT_TYPE: info->i = IO_CASSETTE; break; | |
| 476 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 477 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 0; break; | |
| 478 | case MESS_DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 479 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 481 | 480 | |
| 482 | 481 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 483 | case DEVINFO_PTR_LOAD: info->load = device_load_sb2m600_cassette; break; | |
| 484 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_sb2m600_cassette; break; | |
| 482 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_sb2m600_cassette; break; | |
| 483 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_sb2m600_cassette; break; | |
| 485 | 484 | |
| 486 | 485 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 487 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "bas"); break; | |
| 486 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "bas"); break; | |
| 488 | 487 | } |
| 489 | 488 | } |
| 490 | 489 |
| r1711 | r1712 | |
|---|---|---|
| 419 | 419 | 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, |
| 420 | 420 | }; |
| 421 | 421 | |
| 422 | static const unsigned short oric_colortable[8] = | |
| 423 | { | |
| 424 | 0,1,2,3,4,5,6,7 | |
| 425 | }; | |
| 426 | ||
| 427 | 422 | /* Initialise the palette */ |
| 428 | 423 | static PALETTE_INIT( oric ) |
| 429 | 424 | { |
| 430 | 425 | palette_set_colors_rgb(machine, 0, oric_palette, sizeof(oric_palette) / 3); |
| 431 | memcpy(colortable, oric_colortable,sizeof(oric_colortable)); | |
| 432 | 426 | } |
| 433 | 427 | |
| 434 | 428 | |
| r1711 | r1712 | |
| 452 | 446 | MDRV_MACHINE_RESET( oric ) |
| 453 | 447 | |
| 454 | 448 | /* video hardware */ |
| 455 | MDRV_ | |
| 449 | MDRV_SC | |
| 456 | 450 | MDRV_SCREEN_REFRESH_RATE(60) |
| 457 | 451 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 458 | 452 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 459 | 453 | MDRV_SCREEN_SIZE(40*6, 28*8) |
| 460 | 454 | MDRV_SCREEN_VISIBLE_AREA(0, 40*6-1, 0, 28*8-1) |
| 461 | 455 | MDRV_PALETTE_LENGTH(8) |
| 462 | MDRV_COLORTABLE_LENGTH(8) | |
| 463 | 456 | MDRV_PALETTE_INIT( oric ) |
| 464 | 457 | |
| 465 | 458 | MDRV_VIDEO_START( oric ) |
| r1711 | r1712 | |
| 534 | 527 | switch(state) |
| 535 | 528 | { |
| 536 | 529 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 537 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 538 | case DEVINFO_INT_CASSETTE_DEFAULT_STATE: info->i = CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED; break; | |
| 530 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 531 | case MESS_DEVINFO_INT_CASSETTE_DEFAULT_STATE: info->i = CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED; break; | |
| 539 | 532 | |
| 540 | 533 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 541 | case DEVINFO_PTR_CASSETTE_FORMATS: info->p = (void *) oric_cassette_formats; break; | |
| 534 | case MESS_DEVINFO_PTR_CASSETTE_FORMATS: info->p = (void *) oric_cassette_formats; break; | |
| 542 | 535 | |
| 543 | 536 | default: cassette_device_getinfo(devclass, state, info); break; |
| 544 | 537 | } |
| r1711 | r1712 | |
| 550 | 543 | switch(state) |
| 551 | 544 | { |
| 552 | 545 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 553 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 546 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 554 | 547 | |
| 555 | 548 | default: printer_device_getinfo(devclass, state, info); break; |
| 556 | 549 | } |
| r1711 | r1712 | |
| 567 | 560 | switch(state) |
| 568 | 561 | { |
| 569 | 562 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 570 | case DEVINFO_INT_TYPE: info->i = IO_FLOPPY; break; | |
| 571 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 572 | case DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 573 | case DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 574 | case DEVINFO_INT_COUNT: info->i = 4; break; | |
| 563 | case MESS_DEVINFO_INT_TYPE: info->i = IO_FLOPPY; break; | |
| 564 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 565 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 566 | case MESS_DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 567 | case MESS_DEVINFO_INT_COUNT: info->i = 4; break; | |
| 575 | 568 | |
| 576 | 569 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 577 | case DEVINFO_PTR_INIT: info->init = device_init_oric_floppy; break; | |
| 578 | case DEVINFO_PTR_LOAD: info->load = device_load_oric_floppy; break; | |
| 579 | case DEVINFO_PTR_STATUS: /* info->status = floppy_status; */ break; | |
| 570 | case MESS_DEVINFO_PTR_INIT: info->init = device_init_oric_floppy; break; | |
| 571 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_oric_floppy; break; | |
| 572 | case MESS_DEVINFO_PTR_STATUS: /* info->status = floppy_status; */ break; | |
| 580 | 573 | |
| 581 | 574 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 582 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "dsk"); break; | |
| 575 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "dsk"); break; | |
| 583 | 576 | } |
| 584 | 577 | } |
| 585 | 578 | |
| r1711 | r1712 | |
| 594 | 587 | switch(state) |
| 595 | 588 | { |
| 596 | 589 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 597 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 590 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 598 | 591 | |
| 599 | 592 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 600 | case DEVINFO_PTR_FLOPPY_OPTIONS: info->p = (void *) floppyoptions_apple2; break; | |
| 593 | case MESS_DEVINFO_PTR_FLOPPY_OPTIONS: info->p = (void *) floppyoptions_apple2; break; | |
| 601 | 594 | |
| 602 | 595 | default: floppy_device_getinfo(devclass, state, info); break; |
| 603 | 596 | } |
| r1711 | r1712 | |
|---|---|---|
| 540 | 540 | MDRV_MACHINE_START( enterprise ) |
| 541 | 541 | |
| 542 | 542 | /* video hardware */ |
| 543 | MDRV_ | |
| 543 | MDRV_SC | |
| 544 | 544 | MDRV_SCREEN_REFRESH_RATE(50) |
| 545 | 545 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 546 | 546 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
| 548 | 548 | MDRV_SCREEN_VISIBLE_AREA(0, ENTERPRISE_SCREEN_WIDTH-1, 0, ENTERPRISE_SCREEN_HEIGHT-1) |
| 549 | 549 | /* MDRV_GFXDECODE( enterprise ) */ |
| 550 | 550 | MDRV_PALETTE_LENGTH(NICK_PALETTE_SIZE) |
| 551 | MDRV_COLORTABLE_LENGTH(NICK_COLOURTABLE_SIZE) | |
| 552 | 551 | MDRV_PALETTE_INIT( nick ) |
| 553 | 552 | |
| 554 | 553 | MDRV_VIDEO_START( enterprise ) |
| r1711 | r1712 | |
| 589 | 588 | switch(state) |
| 590 | 589 | { |
| 591 | 590 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 592 | case DEVINFO_INT_COUNT: info->i = 4; break; | |
| 591 | case MESS_DEVINFO_INT_COUNT: info->i = 4; break; | |
| 593 | 592 | |
| 594 | 593 | default: legacydsk_device_getinfo(devclass, state, info); break; |
| 595 | 594 | } |
| r1711 | r1712 | |
| 602 | 601 | switch(state) |
| 603 | 602 | { |
| 604 | 603 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 605 | case DEVINFO_INT_COUNT: info->i = 4; break; | |
| 604 | case MESS_DEVINFO_INT_COUNT: info->i = 4; break; | |
| 606 | 605 | |
| 607 | 606 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 608 | case DEVINFO_PTR_LOAD: info->load = enterprise_floppy_init; break; | |
| 607 | case MESS_DEVINFO_PTR_LOAD: info->load = enterprise_floppy_init; break; | |
| 609 | 608 | |
| 610 | 609 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 611 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "dsk"); break; | |
| 610 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "dsk"); break; | |
| 612 | 611 | |
| 613 | 612 | default: legacybasicdsk_device_getinfo(devclass, state, info); break; |
| 614 | 613 | } |
| r1711 | r1712 | |
|---|---|---|
| 209 | 209 | MDRV_CPU_ADD_TAG("main", M6803, XTAL_3_579545MHz) /* 0,894886 Mhz */ |
| 210 | 210 | MDRV_CPU_PROGRAM_MAP(mc10_mem, 0) |
| 211 | 211 | MDRV_CPU_IO_MAP(mc10_io, 0) |
| 212 | MDRV_SCREEN_ADD("main", RASTER) | |
| 212 | 213 | MDRV_SCREEN_REFRESH_RATE(60) |
| 213 | 214 | |
| 214 | 215 | MDRV_MACHINE_START(mc10) |
| r1711 | r1712 | |
| 216 | 217 | /* video hardware */ |
| 217 | 218 | MDRV_VIDEO_START(mc10) |
| 218 | 219 | MDRV_VIDEO_UPDATE(m6847) |
| 219 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 220 | 220 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 221 | 221 | MDRV_SCREEN_SIZE(320, 25+192+26) |
| 222 | 222 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 1, 239) |
| r1711 | r1712 | |
| 258 | 258 | switch(state) |
| 259 | 259 | { |
| 260 | 260 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 261 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 261 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 262 | 262 | |
| 263 | 263 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 264 | case DEVINFO_PTR_CASSETTE_FORMATS: info->p = (void *) coco_cassette_formats; break; | |
| 264 | case MESS_DEVINFO_PTR_CASSETTE_FORMATS: info->p = (void *) coco_cassette_formats; break; | |
| 265 | 265 | |
| 266 | 266 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 267 | case DEVINFO_INT_CASSETTE_DEFAULT_STATE: info->i = CASSETTE_PLAY; break; | |
| 267 | case MESS_DEVINFO_INT_CASSETTE_DEFAULT_STATE: info->i = CASSETTE_PLAY; break; | |
| 268 | 268 | |
| 269 | 269 | default: cassette_device_getinfo(devclass, state, info); break; |
| 270 | 270 | } |
| r1711 | r1712 | |
|---|---|---|
| 254 | 254 | /* basic machine hardware */ |
| 255 | 255 | MDRV_CPU_ADD_TAG("main", M65C02, 1000000) /* 0,894886 Mhz */ |
| 256 | 256 | MDRV_CPU_PROGRAM_MAP(atom_mem, 0) |
| 257 | MDRV_SCREEN_ADD("main", RASTER) | |
| 257 | 258 | MDRV_SCREEN_REFRESH_RATE(M6847_PAL_FRAMES_PER_SECOND) |
| 258 | 259 | |
| 259 | 260 | MDRV_MACHINE_RESET( atom ) |
| r1711 | r1712 | |
| 261 | 262 | /* video hardware */ |
| 262 | 263 | MDRV_VIDEO_START(atom) |
| 263 | 264 | MDRV_VIDEO_UPDATE(m6847) |
| 264 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 265 | 265 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 266 | 266 | MDRV_SCREEN_SIZE(320, 25+192+26) |
| 267 | 267 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 1, 239) |
| r1711 | r1712 | |
| 314 | 314 | switch(state) |
| 315 | 315 | { |
| 316 | 316 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 317 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 317 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 318 | 318 | |
| 319 | 319 | default: cassette_device_getinfo(devclass, state, info); break; |
| 320 | 320 | } |
| r1711 | r1712 | |
| 326 | 326 | switch(state) |
| 327 | 327 | { |
| 328 | 328 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 329 | case DEVINFO_INT_COUNT: info->i = 2; break; | |
| 329 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 330 | 330 | |
| 331 | 331 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 332 | case DEVINFO_PTR_LOAD: info->load = device_load_atom_floppy; break; | |
| 332 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_atom_floppy; break; | |
| 333 | 333 | |
| 334 | 334 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 335 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "ssd"); break; | |
| 335 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "ssd"); break; | |
| 336 | 336 | |
| 337 | 337 | default: legacybasicdsk_device_getinfo(devclass, state, info); break; |
| 338 | 338 | } |
| r1711 | r1712 | |
| 344 | 344 | switch(state) |
| 345 | 345 | { |
| 346 | 346 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 347 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 347 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 348 | 348 | |
| 349 | 349 | default: printer_device_getinfo(devclass, state, info); break; |
| 350 | 350 | } |
| r1711 | r1712 | |
| 356 | 356 | switch(state) |
| 357 | 357 | { |
| 358 | 358 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 359 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "atm"); break; | |
| 359 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "atm"); break; | |
| 360 | 360 | |
| 361 | 361 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 362 | case DEVINFO_PTR_QUICKLOAD_LOAD: info->f = (genf *) quickload_load_atom; break; | |
| 362 | case MESS_DEVINFO_PTR_QUICKLOAD_LOAD: info->f = (genf *) quickload_load_atom; break; | |
| 363 | 363 | |
| 364 | 364 | default: quickload_device_getinfo(devclass, state, info); break; |
| 365 | 365 | } |
| r1711 | r1712 | |
|---|---|---|
| 149 | 149 | MDRV_INTERLEAVE(1) |
| 150 | 150 | |
| 151 | 151 | /* video hardware */ |
| 152 | MDRV_ | |
| 152 | MDRV_SC | |
| 153 | 153 | MDRV_SCREEN_REFRESH_RATE(60) |
| 154 | 154 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 155 | 155 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
| 157 | 157 | MDRV_SCREEN_VISIBLE_AREA(0, 600-1, 0, 768-1) |
| 158 | 158 | MDRV_GFXDECODE( mekd2 ) |
| 159 | 159 | MDRV_PALETTE_LENGTH(21 + 32768) |
| 160 | MDRV_COLORTABLE_LENGTH(256) | |
| 161 | 160 | MDRV_PALETTE_INIT( mekd2 ) |
| 162 | 161 | |
| 163 | 162 | MDRV_VIDEO_START( mekd2 ) |
| r1711 | r1712 | |
| 186 | 185 | switch(state) |
| 187 | 186 | { |
| 188 | 187 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 189 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 188 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 190 | 189 | |
| 191 | 190 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 192 | case DEVINFO_PTR_LOAD: info->load = device_load_mekd2_cart; break; | |
| 191 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_mekd2_cart; break; | |
| 193 | 192 | |
| 194 | 193 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 195 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "d2"); break; | |
| 194 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "d2"); break; | |
| 196 | 195 | |
| 197 | 196 | default: cartslot_device_getinfo(devclass, state, info); break; |
| 198 | 197 | } |
| r1711 | r1712 | |
|---|---|---|
| 416 | 416 | /* basic machine hardware */ |
| 417 | 417 | MDRV_CPU_ATPC(at, at, I80286, 12000000, NULL) |
| 418 | 418 | |
| 419 | MDRV_SCREEN_ADD("main", RASTER) | |
| 419 | 420 | MDRV_SCREEN_REFRESH_RATE(60) |
| 420 | 421 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 421 | 422 | |
| r1711 | r1712 | |
| 677 | 678 | switch(state) |
| 678 | 679 | { |
| 679 | 680 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 680 | case DEVINFO_INT_COUNT: info->i = 3; break; | |
| 681 | case MESS_DEVINFO_INT_COUNT: info->i = 3; break; | |
| 681 | 682 | |
| 682 | 683 | default: printer_device_getinfo(devclass, state, info); break; |
| 683 | 684 | } |
| r1711 | r1712 | |
| 689 | 690 | switch(state) |
| 690 | 691 | { |
| 691 | 692 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 692 | case DEVINFO_INT_COUNT: info->i = 2; break; | |
| 693 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 693 | 694 | |
| 694 | 695 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 695 | case DEVINFO_PTR_FLOPPY_OPTIONS: info->p = (void *) floppyoptions_pc; break; | |
| 696 | case MESS_DEVINFO_PTR_FLOPPY_OPTIONS: info->p = (void *) floppyoptions_pc; break; | |
| 696 | 697 | |
| 697 | 698 | default: floppy_device_getinfo(devclass, state, info); break; |
| 698 | 699 | } |
| r1711 | r1712 | |
| 704 | 705 | switch(state) |
| 705 | 706 | { |
| 706 | 707 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 707 | case DEVINFO_INT_COUNT: info->i = 4; break; | |
| 708 | case MESS_DEVINFO_INT_COUNT: info->i = 4; break; | |
| 708 | 709 | |
| 709 | 710 | default: harddisk_device_getinfo(devclass, state, info); break; |
| 710 | 711 | } |
| r1711 | r1712 | |
|---|---|---|
| 244 | 244 | |
| 245 | 245 | // video hardware |
| 246 | 246 | MDRV_IMPORT_FROM(tms9928a) |
| 247 | MDRV_SCREEN_MODIFY("main") | |
| 247 | 248 | MDRV_SCREEN_REFRESH_RATE(60) |
| 248 | 249 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 249 | 250 | |
| r1711 | r1712 | |
| 278 | 279 | switch(state) |
| 279 | 280 | { |
| 280 | 281 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 281 | case DEVINFO_PTR_VERIFY: info->imgverify = coleco_cart_verify; break; | |
| 282 | case MESS_DEVINFO_PTR_VERIFY: info->imgverify = coleco_cart_verify; break; | |
| 282 | 283 | |
| 283 | 284 | default: cartslot_device_getinfo(devclass, state, info); break; |
| 284 | 285 | } |
| r1711 | r1712 | |
|---|---|---|
| 459 | 459 | MDRV_MACHINE_START(ex800) |
| 460 | 460 | |
| 461 | 461 | /* "video" hardware */ |
| 462 | MDRV_SCREEN_ADD("main", RASTER) | |
| 462 | 463 | MDRV_SCREEN_REFRESH_RATE(60) |
| 463 | 464 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) |
| 464 | // MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 465 | 465 | // MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 466 | 466 | // MDRV_SCREEN_SIZE(480, 640) |
| 467 | 467 | // MDRV_SCREEN_VISIBLE_AREA(0, 479, 0, 639) |
| r1711 | r1712 | |
|---|---|---|
| 635 | 635 | MDRV_CPU_ADD_TAG("main", M6800, 3750000) /* 7.8336 Mhz */ |
| 636 | 636 | // MDRV_CPU_ADD_TAG("main", M6800, (3750000/2) ) /* backgammon uses timing from vertical interrupt to switch between video modes during frame */ |
| 637 | 637 | MDRV_CPU_PROGRAM_MAP(apf_imagination_map, 0) |
| 638 | MDRV_SCREEN_ADD("main", RASTER) | |
| 638 | 639 | MDRV_SCREEN_REFRESH_RATE(M6847_NTSC_FRAMES_PER_SECOND) |
| 639 | 640 | MDRV_INTERLEAVE(0) |
| 640 | 641 | |
| r1711 | r1712 | |
| 643 | 644 | /* video hardware */ |
| 644 | 645 | MDRV_VIDEO_START(apf) |
| 645 | 646 | MDRV_VIDEO_UPDATE(m6847) |
| 646 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 647 | 647 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 648 | 648 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 649 | 649 | MDRV_SCREEN_SIZE(320, 25+192+26) |
| r1711 | r1712 | |
| 690 | 690 | switch(state) |
| 691 | 691 | { |
| 692 | 692 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 693 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 693 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 694 | 694 | |
| 695 | 695 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 696 | case DEVINFO_PTR_CASSETTE_FORMATS: info->p = (void *) apf_cassette_formats; break; | |
| 696 | case MESS_DEVINFO_PTR_CASSETTE_FORMATS: info->p = (void *) apf_cassette_formats; break; | |
| 697 | 697 | |
| 698 | 698 | default: cassette_device_getinfo(devclass, state, info); break; |
| 699 | 699 | } |
| r1711 | r1712 | |
| 705 | 705 | switch(state) |
| 706 | 706 | { |
| 707 | 707 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 708 | case DEVINFO_INT_COUNT: info->i = 2; break; | |
| 708 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 709 | 709 | |
| 710 | 710 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 711 | case DEVINFO_PTR_LOAD: info->load = device_load_apfimag_floppy; break; | |
| 711 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_apfimag_floppy; break; | |
| 712 | 712 | |
| 713 | 713 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 714 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "apd"); break; | |
| 714 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "apd"); break; | |
| 715 | 715 | |
| 716 | 716 | default: legacybasicdsk_device_getinfo(devclass, state, info); break; |
| 717 | 717 | } |
| r1711 | r1712 | |
|---|---|---|
| 172 | 172 | b = ((i >> 10) & 0x1F) << 3; |
| 173 | 173 | palette_set_color_rgb(machine, i, r, g, b ); |
| 174 | 174 | } |
| 175 | ||
| 176 | /* The colortable can be black */ | |
| 177 | for( i = 0; i < 256; i++ ) | |
| 178 | colortable[i] = 0; | |
| 179 | 175 | } |
| 180 | 176 | |
| 181 | 177 | |
| r1711 | r1712 | |
| 479 | 475 | MDRV_VIDEO_START( generic_bitmapped ) |
| 480 | 476 | MDRV_VIDEO_UPDATE( snes ) |
| 481 | 477 | |
| 482 | MDRV_ | |
| 478 | MDRV_SC | |
| 483 | 479 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 484 | 480 | MDRV_GFXDECODE(snes) |
| 485 | 481 | MDRV_PALETTE_LENGTH(32768) |
| 486 | MDRV_COLORTABLE_LENGTH(257) | |
| 487 | 482 | MDRV_PALETTE_INIT( snes ) |
| 488 | 483 | |
| 489 | MDRV_SCREEN_ADD("main", 0) | |
| 490 | 484 | MDRV_SCREEN_RAW_PARAMS(DOTCLK_NTSC, SNES_HTOTAL, 0, SNES_SCR_WIDTH, SNES_VTOTAL_NTSC, 0, SNES_SCR_HEIGHT_NTSC) |
| 491 | 485 | |
| 492 | 486 | /* sound hardware */ |
| r1711 | r1712 | |
| 511 | 505 | switch(state) |
| 512 | 506 | { |
| 513 | 507 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 514 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 515 | case DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 508 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 509 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 516 | 510 | |
| 517 | 511 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 518 | case DEVINFO_PTR_LOAD: info->load = device_load_snes_cart; break; | |
| 512 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_snes_cart; break; | |
| 519 | 513 | |
| 520 | 514 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 521 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "smc,sfc,fig,swc"); break; | |
| 515 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "smc,sfc,fig,swc"); break; | |
| 522 | 516 | |
| 523 | 517 | default: cartslot_device_getinfo(devclass, state, info); break; |
| 524 | 518 | } |
| r1711 | r1712 | |
|---|---|---|
| 610 | 610 | static PALETTE_INIT( vc20 ) |
| 611 | 611 | { |
| 612 | 612 | palette_set_colors_rgb(machine, 0, vic6560_palette, sizeof(vic6560_palette) / 3); |
| 613 | /* memcpy(sys_colortable,colortable,sizeof(colortable)); */ | |
| 614 | 613 | } |
| 615 | 614 | |
| 616 | 615 | #if 0 |
| r1711 | r1712 | |
| 712 | 711 | MDRV_MACHINE_RESET( vc20 ) |
| 713 | 712 | |
| 714 | 713 | /* video hardware */ |
| 715 | MDRV_ | |
| 714 | MDRV_SC | |
| 716 | 715 | MDRV_SCREEN_REFRESH_RATE(VIC6560_VRETRACERATE) |
| 717 | 716 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 718 | 717 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
| 786 | 785 | switch(state) |
| 787 | 786 | { |
| 788 | 787 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 789 | case DEVINFO_INT_COUNT: info->i = 2; break; | |
| 788 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 790 | 789 | |
| 791 | 790 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 792 | case DEVINFO_PTR_INIT: info->init = device_init_vc20_rom; break; | |
| 793 | case DEVINFO_PTR_LOAD: info->load = device_load_vc20_rom; break; | |
| 791 | case MESS_DEVINFO_PTR_INIT: info->init = device_init_vc20_rom; break; | |
| 792 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_vc20_rom; break; | |
| 794 | 793 | |
| 795 | 794 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 796 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "a0,20,40,60,rom,bin"); break; | |
| 795 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "a0,20,40,60,rom,bin"); break; | |
| 797 | 796 | |
| 798 | 797 | default: cartslot_device_getinfo(devclass, state, info); break; |
| 799 | 798 | } |
| r1711 | r1712 | |
| 804 | 803 | switch(state) |
| 805 | 804 | { |
| 806 | 805 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 807 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "p00,prg"); break; | |
| 806 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "p00,prg"); break; | |
| 808 | 807 | |
| 809 | 808 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 810 | case DEVINFO_PTR_QUICKLOAD_LOAD: info->f = (genf *) quickload_load_cbm_vc20; break; | |
| 809 | case MESS_DEVINFO_PTR_QUICKLOAD_LOAD: info->f = (genf *) quickload_load_cbm_vc20; break; | |
| 811 | 810 | |
| 812 | 811 | /* --- the following bits of info are returned as doubles --- */ |
| 813 | case DEVINFO_FLOAT_QUICKLOAD_DELAY: info->d = CBM_QUICKLOAD_DELAY; break; | |
| 812 | case MESS_DEVINFO_FLOAT_QUICKLOAD_DELAY: info->d = CBM_QUICKLOAD_DELAY; break; | |
| 814 | 813 | |
| 815 | 814 | default: quickload_device_getinfo(devclass, state, info); break; |
| 816 | 815 | } |
| r1711 | r1712 | |
|---|---|---|
| 46 | 46 | static PALETTE_INIT( electron ) |
| 47 | 47 | { |
| 48 | 48 | palette_set_colors(machine, 0, electron_palette, ARRAY_LENGTH(electron_palette)); |
| 49 | memcpy(colortable,electron_colour_table,sizeof(electron_colour_table)); | |
| 50 | 49 | } |
| 51 | 50 | |
| 52 | 51 | static ADDRESS_MAP_START(electron_mem, ADDRESS_SPACE_PROGRAM, 8) |
| r1711 | r1712 | |
| 189 | 188 | MDRV_CPU_ADD_TAG( "main", M6502, 2000000 ) |
| 190 | 189 | MDRV_CPU_PROGRAM_MAP( electron_mem, 0 ) |
| 191 | 190 | MDRV_CPU_VBLANK_INT( electron_scanline_interrupt, 312 ) /* scanline interrupt */ |
| 191 | MDRV_SCREEN_ADD("main", RASTER) | |
| 192 | 192 | MDRV_SCREEN_REFRESH_RATE( 50.08 ) |
| 193 | 193 | |
| 194 | 194 | MDRV_MACHINE_START( electron ) |
| 195 | 195 | |
| 196 | MDRV_VIDEO_ATTRIBUTES( VIDEO_TYPE_RASTER ) | |
| 197 | 196 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 198 | 197 | MDRV_SCREEN_SIZE( 640, 312 ) |
| 199 | 198 | MDRV_SCREEN_VISIBLE_AREA( 0, 640-1, 0, 256-1 ) |
| 200 | 199 | MDRV_PALETTE_LENGTH( 16 ) |
| 201 | MDRV_COLORTABLE_LENGTH( 16 ) | |
| 202 | 200 | MDRV_PALETTE_INIT(electron) |
| 203 | 201 | |
| 204 | 202 | MDRV_VIDEO_START( generic_bitmapped ) |
| r1711 | r1712 | |
| 211 | 209 | |
| 212 | 210 | static void electron_cassette_getinfo( const device_class *devclass, UINT32 state, union devinfo *info ) { |
| 213 | 211 | switch( state ) { |
| 214 | case DEVINFO_INT_COUNT: | |
| 212 | case MESS_DEVINFO_INT_COUNT: | |
| 215 | 213 | info->i = 1; |
| 216 | 214 | break; |
| 217 | case DEVINFO_PTR_CASSETTE_FORMATS: | |
| 215 | case MESS_DEVINFO_PTR_CASSETTE_FORMATS: | |
| 218 | 216 | info->p = (void *)uef_cassette_formats; |
| 219 | 217 | break; |
| 220 | 218 | default: |
| r1711 | r1712 | |
|---|---|---|
| 2292 | 2292 | MDRV_CPU_ADD(M68000, MASTER_CLOCK_352/5) //11.46 MHz |
| 2293 | 2293 | MDRV_CPU_PROGRAM_MAP(sound_mem, 0) |
| 2294 | 2294 | |
| 2295 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2295 | 2296 | MDRV_SCREEN_REFRESH_RATE(60) |
| 2296 | 2297 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(192)) // guess, needed to force video update after V-Blank OUT interrupt |
| 2297 | 2298 | |
| r1711 | r1712 | |
| 2301 | 2302 | MDRV_NVRAM_HANDLER(saturn) |
| 2302 | 2303 | |
| 2303 | 2304 | /* video hardware */ |
| 2304 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2305 | 2305 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15) |
| 2306 | 2306 | MDRV_SCREEN_SIZE(1024, 1024) |
| 2307 | 2307 | MDRV_SCREEN_VISIBLE_AREA(0*8, 703, 0*8, 512) // we need to use a resolution as high as the max size it can change to |
| r1711 | r1712 | |
| 2388 | 2388 | switch(state) |
| 2389 | 2389 | { |
| 2390 | 2390 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 2391 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 2391 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 2392 | 2392 | |
| 2393 | 2393 | default: cdrom_device_getinfo(devclass, state, info); |
| 2394 | 2394 | } |
| r1711 | r1712 | |
|---|---|---|
| 918 | 918 | MDRV_MACHINE_START(ql) |
| 919 | 919 | |
| 920 | 920 | // video hardware |
| 921 | MDRV_ | |
| 921 | MDRV_SC | |
| 922 | 922 | MDRV_SCREEN_REFRESH_RATE(50) |
| 923 | 923 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 924 | 924 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
| 1084 | 1084 | switch(state) |
| 1085 | 1085 | { |
| 1086 | 1086 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 1087 | case DEVINFO_INT_TYPE: info->i = IO_CASSETTE; break; | |
| 1088 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 1087 | case MESS_DEVINFO_INT_TYPE: info->i = IO_CASSETTE; break; | |
| 1088 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 1089 | 1089 | |
| 1090 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 1091 | case DEVINFO_INT_WRITEABLE: info->i = 0; break; | |
| 1092 | case DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 1090 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 1091 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 0; break; | |
| 1092 | case MESS_DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 1093 | 1093 | |
| 1094 | 1094 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 1095 | case DEVINFO_PTR_LOAD: info->load = device_load_ql_microdrive; break; | |
| 1095 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_ql_microdrive; break; | |
| 1096 | 1096 | |
| 1097 | 1097 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 1098 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "mdv"); break; | |
| 1098 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "mdv"); break; | |
| 1099 | 1099 | } |
| 1100 | 1100 | } |
| 1101 | 1101 | |
| r1711 | r1712 | |
| 1124 | 1124 | switch(state) |
| 1125 | 1125 | { |
| 1126 | 1126 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 1127 | case DEVINFO_INT_TYPE: info->i = IO_SERIAL; break; | |
| 1128 | case DEVINFO_INT_COUNT: info->i = 2; break; | |
| 1127 | case MESS_DEVINFO_INT_TYPE: info->i = IO_SERIAL; break; | |
| 1128 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 1129 | 1129 | |
| 1130 | 1130 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 1131 | case DEVINFO_PTR_INIT: info->init = serial_device_init; break; | |
| 1132 | case DEVINFO_PTR_LOAD: info->load = device_load_ql_serial; break; | |
| 1133 | case DEVINFO_PTR_UNLOAD: info->unload = serial_device_unload; break; | |
| 1131 | case MESS_DEVINFO_PTR_INIT: info->init = serial_device_init; break; | |
| 1132 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_ql_serial; break; | |
| 1133 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = serial_device_unload; break; | |
| 1134 | 1134 | |
| 1135 | 1135 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 1136 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "txt"); break; | |
| 1136 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "txt"); break; | |
| 1137 | 1137 | } |
| 1138 | 1138 | } |
| 1139 | 1139 | |
| r1711 | r1712 | |
| 1157 | 1157 | { |
| 1158 | 1158 | switch( state ) |
| 1159 | 1159 | { |
| 1160 | case DEVINFO_INT_COUNT: | |
| 1160 | case MESS_DEVINFO_INT_COUNT: | |
| 1161 | 1161 | info->i = 1; |
| 1162 | 1162 | break; |
| 1163 | case DEVINFO_PTR_LOAD: | |
| 1163 | case MESS_DEVINFO_PTR_LOAD: | |
| 1164 | 1164 | info->load = device_load_ql_cart; |
| 1165 | 1165 | break; |
| 1166 | case DEVINFO_STR_FILE_EXTENSIONS: | |
| 1166 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: | |
| 1167 | 1167 | strcpy(info->s = device_temp_str(), "bin"); |
| 1168 | 1168 | break; |
| 1169 | 1169 | default: |
| r1711 | r1712 | |
|---|---|---|
| 203 | 203 | MDRV_MACHINE_RESET( ti990_10 ) |
| 204 | 204 | |
| 205 | 205 | /* video hardware - we emulate a single 911 vdt display */ |
| 206 | MDRV_ | |
| 206 | MDRV_SC | |
| 207 | 207 | MDRV_SCREEN_REFRESH_RATE(60) |
| 208 | 208 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 209 | 209 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
| 212 | 212 | |
| 213 | 213 | MDRV_GFXDECODE(vdt911) |
| 214 | 214 | MDRV_PALETTE_LENGTH(vdt911_palette_size) |
| 215 | MDRV_COLORTABLE_LENGTH(vdt911_colortable_size) | |
| 216 | 215 | |
| 217 | 216 | MDRV_PALETTE_INIT(vdt911) |
| 218 | 217 | MDRV_VIDEO_START(ti990_10) |
| r1711 | r1712 | |
| 291 | 290 | switch(state) |
| 292 | 291 | { |
| 293 | 292 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 294 | case DEVINFO_INT_TYPE: info->i = IO_HARDDISK; break; | |
| 295 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 296 | case DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 297 | case DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 298 | case DEVINFO_INT_COUNT: info->i = 4; break; | |
| 293 | case MESS_DEVINFO_INT_TYPE: info->i = IO_HARDDISK; break; | |
| 294 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 295 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 296 | case MESS_DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 297 | case MESS_DEVINFO_INT_COUNT: info->i = 4; break; | |
| 299 | 298 | |
| 300 | 299 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 301 | case DEVINFO_PTR_INIT: info->init = device_init_ti990_hd; break; | |
| 302 | case DEVINFO_PTR_LOAD: info->load = device_load_ti990_hd; break; | |
| 303 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_ti990_hd; break; | |
| 300 | case MESS_DEVINFO_PTR_INIT: info->init = device_init_ti990_hd; break; | |
| 301 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_ti990_hd; break; | |
| 302 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_ti990_hd; break; | |
| 304 | 303 | |
| 305 | 304 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 306 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "hd"); break; | |
| 305 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "hd"); break; | |
| 307 | 306 | } |
| 308 | 307 | } |
| 309 | 308 | |
| r1711 | r1712 | |
| 313 | 312 | switch(state) |
| 314 | 313 | { |
| 315 | 314 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 316 | case DEVINFO_INT_TYPE: info->i = IO_CASSETTE; break; | |
| 317 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 318 | case DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 319 | case DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 320 | case DEVINFO_INT_COUNT: info->i = 4; break; | |
| 315 | case MESS_DEVINFO_INT_TYPE: info->i = IO_CASSETTE; break; | |
| 316 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 317 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 318 | case MESS_DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 319 | case MESS_DEVINFO_INT_COUNT: info->i = 4; break; | |
| 321 | 320 | |
| 322 | 321 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 323 | case DEVINFO_PTR_INIT: info->init = device_init_ti990_tape; break; | |
| 324 | case DEVINFO_PTR_LOAD: info->load = device_load_ti990_tape; break; | |
| 325 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_ti990_tape; break; | |
| 322 | case MESS_DEVINFO_PTR_INIT: info->init = device_init_ti990_tape; break; | |
| 323 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_ti990_tape; break; | |
| 324 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_ti990_tape; break; | |
| 326 | 325 | |
| 327 | 326 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 328 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "tap"); break; | |
| 327 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "tap"); break; | |
| 329 | 328 | } |
| 330 | 329 | } |
| 331 | 330 |
| r1711 | r1712 | |
|---|---|---|
| 194 | 194 | MDRV_CPU_PROGRAM_MAP(amiga_mem, 0) |
| 195 | 195 | MDRV_CPU_VBLANK_INT(amiga_scanline_callback, 262) |
| 196 | 196 | |
| 197 | MDRV_SCREEN_ADD("main", RASTER) | |
| 197 | 198 | MDRV_SCREEN_REFRESH_RATE(59.997) |
| 198 | 199 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) |
| 199 | 200 | |
| 200 | 201 | MDRV_MACHINE_RESET( amiga ) |
| 201 | 202 | |
| 202 | 203 | /* video hardware */ |
| 203 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 204 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ | |
| 204 | 205 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 205 | 206 | MDRV_SCREEN_SIZE(228*4, 262) |
| 206 | 207 | MDRV_SCREEN_VISIBLE_AREA(214, (228*4)-1, 34, 262-1) |
| r1711 | r1712 | |
| 514 | 515 | switch(state) |
| 515 | 516 | { |
| 516 | 517 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 517 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 518 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 518 | 519 | |
| 519 | 520 | default: cdrom_device_getinfo(devclass, state, info); break; |
| 520 | 521 | } |
| r1711 | r1712 | |
|---|---|---|
| 239 | 239 | MDRV_INTERLEAVE(1) |
| 240 | 240 | |
| 241 | 241 | /* video hardware */ |
| 242 | MDRV_ | |
| 242 | MDRV_SC | |
| 243 | 243 | MDRV_SCREEN_REFRESH_RATE(60) |
| 244 | 244 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 245 | 245 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 246 | 246 | MDRV_SCREEN_SIZE(128, 64) |
| 247 | 247 | MDRV_SCREEN_VISIBLE_AREA(4, 112 - 7, 4, 64 - 3) |
| 248 | 248 | MDRV_PALETTE_LENGTH(8) |
| 249 | MDRV_COLORTABLE_LENGTH(0) | |
| 250 | 249 | MDRV_PALETTE_INIT( channelf ) |
| 251 | 250 | |
| 252 | 251 | MDRV_VIDEO_START( channelf ) |
| r1711 | r1712 | |
|---|---|---|
| 138 | 138 | RGB_WHITE |
| 139 | 139 | }; |
| 140 | 140 | |
| 141 | static const unsigned short apple1_colortable[] = | |
| 142 | { | |
| 143 | 0, 1 | |
| 144 | }; | |
| 145 | ||
| 146 | 141 | static PALETTE_INIT( apple1 ) |
| 147 | 142 | { |
| 148 | 143 | palette_set_colors(machine, 0, apple1_palette, ARRAY_LENGTH(apple1_palette)); |
| 149 | memcpy(colortable, apple1_colortable, sizeof (apple1_colortable)); | |
| 150 | 144 | } |
| 151 | 145 | |
| 152 | 146 | /* keyboard input */ |
| r1711 | r1712 | |
| 234 | 228 | slows it to 960 kHz. */ |
| 235 | 229 | MDRV_CPU_ADD_TAG("main", M6502, 960000) /* 1.023 Mhz */ |
| 236 | 230 | MDRV_CPU_PROGRAM_MAP(apple1_map, 0) |
| 231 | MDRV_SCREEN_ADD("main", RASTER) | |
| 237 | 232 | MDRV_SCREEN_REFRESH_RATE(60) |
| 238 | 233 | /* Video is blanked for 70 out of 262 scanlines per refresh cycle. |
| 239 | 234 | Each scanline is composed of 65 character times, 40 of which |
| r1711 | r1712 | |
| 245 | 240 | |
| 246 | 241 | MDRV_MACHINE_RESET( apple1 ) |
| 247 | 242 | |
| 248 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 249 | 243 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 250 | 244 | /* It would be nice if we could implement some sort of display |
| 251 | 245 | overscan here. */ |
| r1711 | r1712 | |
| 253 | 247 | MDRV_SCREEN_VISIBLE_AREA(0, 40 * 7 - 1, 0, 24 * 8 - 1) |
| 254 | 248 | MDRV_GFXDECODE(apple1) |
| 255 | 249 | MDRV_PALETTE_LENGTH(ARRAY_LENGTH(apple1_palette)) |
| 256 | MDRV_COLORTABLE_LENGTH(sizeof(apple1_colortable)/sizeof(unsigned short)) | |
| 257 | 250 | MDRV_PALETTE_INIT(apple1) |
| 258 | 251 | |
| 259 | 252 | MDRV_VIDEO_START(apple1) |
| r1711 | r1712 | |
| 276 | 269 | switch(state) |
| 277 | 270 | { |
| 278 | 271 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 279 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "snp"); break; | |
| 272 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "snp"); break; | |
| 280 | 273 | |
| 281 | 274 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 282 | case DEVINFO_PTR_SNAPSHOT_LOAD: info->f = (genf *) snapshot_load_apple1; break; | |
| 275 | case MESS_DEVINFO_PTR_SNAPSHOT_LOAD: info->f = (genf *) snapshot_load_apple1; break; | |
| 283 | 276 | |
| 284 | 277 | default: snapshot_device_getinfo(devclass, state, info); break; |
| 285 | 278 | } |
| r1711 | r1712 | |
| 291 | 284 | switch(state) |
| 292 | 285 | { |
| 293 | 286 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 294 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 295 | case DEVINFO_INT_CASSETTE_DEFAULT_STATE: info->i = CASSETTE_STOPPED; break; | |
| 287 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 288 | case MESS_DEVINFO_INT_CASSETTE_DEFAULT_STATE: info->i = CASSETTE_STOPPED; break; | |
| 296 | 289 | |
| 297 | 290 | default: cassette_device_getinfo(devclass, state, info); break; |
| 298 | 291 | } |
| r1711 | r1712 | |
|---|---|---|
| 715 | 715 | MDRV_MACHINE_START(abc800) |
| 716 | 716 | |
| 717 | 717 | // video hardware |
| 718 | MDRV_ | |
| 718 | MDRV_SC | |
| 719 | 719 | MDRV_SCREEN_REFRESH_RATE(50) |
| 720 | 720 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) |
| 721 | 721 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
| 911 | 911 | switch(state) |
| 912 | 912 | { |
| 913 | 913 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 914 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 914 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 915 | 915 | |
| 916 | 916 | default: cassette_device_getinfo(devclass, state, info); break; |
| 917 | 917 | } |
| r1711 | r1712 | |
| 923 | 923 | switch(state) |
| 924 | 924 | { |
| 925 | 925 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 926 | case DEVINFO_INT_COUNT: info->i = 2; break; | |
| 926 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 927 | 927 | |
| 928 | 928 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 929 | case DEVINFO_PTR_LOAD: info->load = device_load_abc_floppy; break; | |
| 929 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_abc_floppy; break; | |
| 930 | 930 | |
| 931 | 931 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 932 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "dsk"); break; | |
| 932 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "dsk"); break; | |
| 933 | 933 | |
| 934 | 934 | default: legacybasicdsk_device_getinfo(devclass, state, info); break; |
| 935 | 935 | } |
| r1711 | r1712 | |
| 941 | 941 | switch(state) |
| 942 | 942 | { |
| 943 | 943 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 944 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 944 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 945 | 945 | |
| 946 | 946 | default: printer_device_getinfo(devclass, state, info); break; |
| 947 | 947 | } |
| r1711 | r1712 | |
| 972 | 972 | switch(state) |
| 973 | 973 | { |
| 974 | 974 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 975 | case DEVINFO_INT_TYPE: info->i = IO_SERIAL; break; | |
| 976 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 975 | case MESS_DEVINFO_INT_TYPE: info->i = IO_SERIAL; break; | |
| 976 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 977 | 977 | |
| 978 | 978 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 979 | case DEVINFO_PTR_INIT: info->init = serial_device_init; break; | |
| 980 | case DEVINFO_PTR_LOAD: info->load = device_load_abc800_serial; break; | |
| 981 | case DEVINFO_PTR_UNLOAD: info->unload = serial_device_unload; break; | |
| 979 | case MESS_DEVINFO_PTR_INIT: info->init = serial_device_init; break; | |
| 980 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_abc800_serial; break; | |
| 981 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = serial_device_unload; break; | |
| 982 | 982 | |
| 983 | 983 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 984 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "txt"); break; | |
| 984 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "txt"); break; | |
| 985 | 985 | } |
| 986 | 986 | } |
| 987 | 987 |
| r1711 | r1712 | |
|---|---|---|
| 178 | 178 | |
| 179 | 179 | // video hardware |
| 180 | 180 | |
| 181 | MDRV_SCREEN_ADD("main", 0) | |
| 182 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 181 | MDRV_SCREEN_ADD("main", RASTER) | |
| 183 | 182 | MDRV_SCREEN_RAW_PARAMS(CDP1864_CLK_FREQ, CDP1864_SCREEN_WIDTH, CDP1864_HBLANK_END, CDP1864_HBLANK_START, CDP1864_TOTAL_SCANLINES, CDP1864_SCANLINE_VBLANK_END, CDP1864_SCANLINE_VBLANK_START) |
| 184 | 183 | |
| 185 | 184 | MDRV_VIDEO_START(cdp1864) |
| r1711 | r1712 | |
| 210 | 209 | switch(state) |
| 211 | 210 | { |
| 212 | 211 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 213 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 212 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 214 | 213 | |
| 215 | 214 | default: cassette_device_getinfo(devclass, state, info); break; |
| 216 | 215 | } |
| r1711 | r1712 | |
| 222 | 221 | switch(state) |
| 223 | 222 | { |
| 224 | 223 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 225 | case DEVINFO_INT_COUNT: info->i = 4; break; | |
| 224 | case MESS_DEVINFO_INT_COUNT: info->i = 4; break; | |
| 226 | 225 | |
| 227 | 226 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 228 | case DEVINFO_PTR_LOAD: info->load = device_load_basicdsk_floppy; break; | |
| 227 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_basicdsk_floppy; break; | |
| 229 | 228 | |
| 230 | 229 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 231 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "dsk"); break; | |
| 230 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "dsk"); break; | |
| 232 | 231 | |
| 233 | 232 | default: legacybasicdsk_device_getinfo(devclass, state, info); break; |
| 234 | 233 | } |
| r1711 | r1712 | |
| 240 | 239 | switch(state) |
| 241 | 240 | { |
| 242 | 241 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 243 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 242 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 244 | 243 | |
| 245 | 244 | default: printer_device_getinfo(devclass, state, info); break; |
| 246 | 245 | } |
| r1711 | r1712 | |
|---|---|---|
| 417 | 417 | |
| 418 | 418 | // video hardware |
| 419 | 419 | MDRV_IMPORT_FROM(tms9928a) |
| 420 | MDRV_SCREEN_ADD("main", RASTER) | |
| 420 | 421 | MDRV_SCREEN_REFRESH_RATE(10738635.0/2/342/262) |
| 421 | 422 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 422 | 423 | |
| r1711 | r1712 | |
| 515 | 516 | switch(state) |
| 516 | 517 | { |
| 517 | 518 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 518 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 519 | case DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 519 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 520 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 520 | 521 | |
| 521 | 522 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 522 | case DEVINFO_PTR_LOAD: info->load = device_load_crvision_cart; break; | |
| 523 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_crvision_cart; break; | |
| 523 | 524 | |
| 524 | 525 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 525 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "rom"); break; | |
| 526 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "rom"); break; | |
| 526 | 527 | |
| 527 | 528 | default: cartslot_device_getinfo(devclass, state, info); break; |
| 528 | 529 | } |
| r1711 | r1712 | |
| 534 | 535 | switch(state) |
| 535 | 536 | { |
| 536 | 537 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 537 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 538 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 538 | 539 | |
| 539 | 540 | default: cassette_device_getinfo(devclass, state, info); break; |
| 540 | 541 | } |
| r1711 | r1712 | |
|---|---|---|
| 295 | 295 | |
| 296 | 296 | // video hardware |
| 297 | 297 | |
| 298 | MDRV_ | |
| 298 | MDRV_SC | |
| 299 | 299 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 300 | 300 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 199) |
| 301 | 301 | |
| r1711 | r1712 | |
| 319 | 319 | |
| 320 | 320 | // video hardware |
| 321 | 321 | |
| 322 | MDRV_SCREEN_ADD("main", | |
| 322 | MDRV_SCREEN_ADD("main", RASTER) | |
| 323 | 323 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 324 | 324 | MDRV_SCREEN_RAW_PARAMS(CDP1864_CLK_FREQ, CDP1864_SCREEN_WIDTH, CDP1864_HBLANK_END, CDP1864_HBLANK_START, CDP1864_TOTAL_SCANLINES, CDP1864_SCANLINE_VBLANK_END, CDP1864_SCANLINE_VBLANK_START) |
| 325 | 325 | |
| r1711 | r1712 | |
| 362 | 362 | switch(state) |
| 363 | 363 | { |
| 364 | 364 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 365 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 365 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 366 | 366 | |
| 367 | 367 | default: cassette_device_getinfo(devclass, state, info); break; |
| 368 | 368 | } |
| r1711 | r1712 | |
| 380 | 380 | switch(state) |
| 381 | 381 | { |
| 382 | 382 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 383 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 383 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 384 | 384 | |
| 385 | 385 | default: cassette_device_getinfo(devclass, state, info); break; |
| 386 | 386 | } |
| r1711 | r1712 | |
|---|---|---|
| 106 | 106 | |
| 107 | 107 | /* video hardware */ |
| 108 | 108 | MDRV_IMPORT_FROM( pcvideo_vga ) |
| 109 | MDRV_SCREEN_ADD("main", RASTER) | |
| 109 | 110 | MDRV_SCREEN_REFRESH_RATE(60) |
| 110 | 111 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 111 | 112 | |
| r1711 | r1712 | |
| 151 | 152 | switch(state) |
| 152 | 153 | { |
| 153 | 154 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 154 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 155 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 155 | 156 | |
| 156 | 157 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 157 | case DEVINFO_PTR_FLOPPY_OPTIONS: info->p = (void *) floppyoptions_pc; break; | |
| 158 | case MESS_DEVINFO_PTR_FLOPPY_OPTIONS: info->p = (void *) floppyoptions_pc; break; | |
| 158 | 159 | |
| 159 | 160 | default: floppy_device_getinfo(devclass, state, info); break; |
| 160 | 161 | } |
| r1711 | r1712 | |
| 166 | 167 | switch(state) |
| 167 | 168 | { |
| 168 | 169 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 169 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 170 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 170 | 171 | |
| 171 | 172 | default: cdrom_device_getinfo(devclass, state, info); break; |
| 172 | 173 | } |
| r1711 | r1712 | |
| 178 | 179 | switch(state) |
| 179 | 180 | { |
| 180 | 181 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 181 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 182 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 182 | 183 | |
| 183 | 184 | default: harddisk_device_getinfo(devclass, state, info); break; |
| 184 | 185 | } |
| r1711 | r1712 | |
|---|---|---|
| 245 | 245 | static PALETTE_INIT(a7800) |
| 246 | 246 | { |
| 247 | 247 | palette_set_colors(machine, 0, a7800_palette, ARRAY_LENGTH(a7800_palette)); |
| 248 | memcpy(colortable,a7800_colortable,sizeof(a7800_colortable)); | |
| 249 | 248 | } |
| 250 | 249 | |
| 251 | 250 | |
| 252 | 251 | static PALETTE_INIT(a7800p) |
| 253 | 252 | { |
| 254 | 253 | palette_set_colors(machine, 0, a7800p_palette, ARRAY_LENGTH(a7800p_palette)); |
| 255 | memcpy(colortable,a7800_colortable,sizeof(a7800_colortable)); | |
| 256 | 254 | } |
| 257 | 255 | |
| 258 | 256 | |
| r1711 | r1712 | |
| 273 | 271 | MDRV_MACHINE_RESET( a7800 ) |
| 274 | 272 | |
| 275 | 273 | /* video hardware */ |
| 276 | MDRV_ | |
| 274 | MDRV_SC | |
| 277 | 275 | MDRV_SCREEN_REFRESH_RATE(60) |
| 278 | 276 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 279 | 277 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 280 | 278 | MDRV_SCREEN_SIZE(640,262) |
| 281 | 279 | MDRV_SCREEN_VISIBLE_AREA(0,319,25,45+204) |
| 282 | 280 | MDRV_PALETTE_LENGTH(ARRAY_LENGTH(a7800_palette)) |
| 283 | MDRV_COLORTABLE_LENGTH(sizeof(a7800_colortable) / sizeof(a7800_colortable[0])) | |
| 284 | 281 | MDRV_PALETTE_INIT(a7800) |
| 285 | 282 | |
| 286 | 283 | MDRV_VIDEO_START(a7800) |
| r1711 | r1712 | |
| 303 | 300 | MDRV_CPU_REPLACE("main", M6502, CLK_PAL) /* 1.79Mhz (note: The clock switches to 1.19Mhz |
| 304 | 301 | * when the TIA or RIOT are accessed) */ |
| 305 | 302 | MDRV_CPU_VBLANK_INT(a7800_interrupt,312) |
| 303 | ||
| 304 | MDRV_SCREEN_MODIFY( "main" ) | |
| 306 | 305 | MDRV_SCREEN_REFRESH_RATE(50) |
| 307 | 306 | MDRV_SCREEN_SIZE(640,312) |
| 308 | 307 | MDRV_SCREEN_VISIBLE_AREA(0,319,50,50+225) |
| r1711 | r1712 | |
| 342 | 341 | switch(state) |
| 343 | 342 | { |
| 344 | 343 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 345 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 346 | case DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 344 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 345 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 347 | 346 | |
| 348 | 347 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 349 | case DEVINFO_PTR_INIT: info->init = device_init_a7800_cart; break; | |
| 350 | case DEVINFO_PTR_LOAD: info->load = device_load_a7800_cart; break; | |
| 351 | case DEVINFO_PTR_PARTIAL_HASH: info->partialhash = a7800_partialhash; break; | |
| 348 | case MESS_DEVINFO_PTR_INIT: info->init = device_init_a7800_cart; break; | |
| 349 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_a7800_cart; break; | |
| 350 | case MESS_DEVINFO_PTR_PARTIAL_HASH: info->partialhash = a7800_partialhash; break; | |
| 352 | 351 | |
| 353 | 352 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 354 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "a78"); break; | |
| 353 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "a78"); break; | |
| 355 | 354 | |
| 356 | 355 | default: cartslot_device_getinfo(devclass, state, info); break; |
| 357 | 356 | } |
| r1711 | r1712 | |
| 367 | 366 | switch(state) |
| 368 | 367 | { |
| 369 | 368 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 370 | case DEVINFO_INT_MUST_BE_LOADED: info->i = 0; break; | |
| 369 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 0; break; | |
| 371 | 370 | default: a7800_ntsc_cartslot_getinfo( devclass, state, info); break; |
| 372 | 371 | } |
| 373 | 372 | } |
| r1711 | r1712 | |
|---|---|---|
| 255 | 255 | MDRV_CPU_IO_MAP(nascom1_io, 0) |
| 256 | 256 | |
| 257 | 257 | /* video hardware */ |
| 258 | MDRV_ | |
| 258 | MDRV_SC | |
| 259 | 259 | MDRV_SCREEN_REFRESH_RATE(50) |
| 260 | 260 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 261 | 261 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
| 330 | 330 | switch(state) |
| 331 | 331 | { |
| 332 | 332 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 333 | case DEVINFO_INT_TYPE: info->i = IO_CASSETTE; break; | |
| 334 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 335 | case DEVINFO_INT_WRITEABLE: info->i = 0; break; | |
| 336 | case DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 337 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 333 | case MESS_DEVINFO_INT_TYPE: info->i = IO_CASSETTE; break; | |
| 334 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 335 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 0; break; | |
| 336 | case MESS_DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 337 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 338 | 338 | |
| 339 | 339 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 340 | case DEVINFO_PTR_LOAD: info->load = device_load_nascom1_cassette; break; | |
| 341 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_nascom1_cassette; break; | |
| 340 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_nascom1_cassette; break; | |
| 341 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_nascom1_cassette; break; | |
| 342 | 342 | |
| 343 | 343 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 344 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "cas"); break; | |
| 344 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "cas"); break; | |
| 345 | 345 | } |
| 346 | 346 | } |
| 347 | 347 | |
| r1711 | r1712 | |
| 351 | 351 | switch(state) |
| 352 | 352 | { |
| 353 | 353 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 354 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "nas"); break; | |
| 354 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "nas"); break; | |
| 355 | 355 | |
| 356 | 356 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 357 | case DEVINFO_PTR_SNAPSHOT_LOAD: info->f = (genf *) snapshot_load_nascom1; break; | |
| 357 | case MESS_DEVINFO_PTR_SNAPSHOT_LOAD: info->f = (genf *) snapshot_load_nascom1; break; | |
| 358 | 358 | |
| 359 | 359 | /* --- the following bits of info are returned as doubles --- */ |
| 360 | case DEVINFO_FLOAT_SNAPSHOT_DELAY: info->d = 0.5; break; | |
| 360 | case MESS_DEVINFO_FLOAT_SNAPSHOT_DELAY: info->d = 0.5; break; | |
| 361 | 361 | |
| 362 | 362 | default: snapshot_device_getinfo(devclass, state, info); break; |
| 363 | 363 | } |
| r1711 | r1712 | |
| 370 | 370 | switch(state) |
| 371 | 371 | { |
| 372 | 372 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 373 | case DEVINFO_INT_COUNT: info->i = 4; break; | |
| 373 | case MESS_DEVINFO_INT_COUNT: info->i = 4; break; | |
| 374 | 374 | |
| 375 | 375 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 376 | case DEVINFO_PTR_LOAD: info->load = device_load_nascom2_floppy; break; | |
| 376 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_nascom2_floppy; break; | |
| 377 | 377 | |
| 378 | 378 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 379 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "dsk"); break; | |
| 379 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "dsk"); break; | |
| 380 | 380 | |
| 381 | 381 | default: legacybasicdsk_device_getinfo(devclass, state, info); break; |
| 382 | 382 | } |
| r1711 | r1712 | |
|---|---|---|
| 188 | 188 | |
| 189 | 189 | /* "video" hardware */ |
| 190 | 190 | MDRV_DEFAULT_LAYOUT(layout_acrnsys1) |
| 191 | MDRV_SCREEN_ADD("main", RASTER) | |
| 191 | 192 | MDRV_SCREEN_REFRESH_RATE(60) |
| 192 | 193 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 193 | 194 | MACHINE_DRIVER_END |
| r1711 | r1712 | |
|---|---|---|
| 240 | 240 | MDRV_CPU_CONFIG(mtx_daisy_chain) |
| 241 | 241 | |
| 242 | 242 | /* video hardware */ |
| 243 | MDRV_SCREEN_ADD("main", RASTER) | |
| 243 | 244 | MDRV_SCREEN_REFRESH_RATE(50) |
| 244 | 245 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 245 | 246 | MDRV_IMPORT_FROM(tms9928a) |
| r1711 | r1712 | |
| 290 | 291 | switch(state) |
| 291 | 292 | { |
| 292 | 293 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 293 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 294 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 294 | 295 | |
| 295 | 296 | default: printer_device_getinfo(devclass, state, info); break; |
| 296 | 297 | } |
| r1711 | r1712 | |
| 302 | 303 | switch(state) |
| 303 | 304 | { |
| 304 | 305 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 305 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "mtb"); break; | |
| 306 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "mtb"); break; | |
| 306 | 307 | |
| 307 | 308 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 308 | case DEVINFO_PTR_SNAPSHOT_LOAD: info->f = (genf *) snapshot_load_mtx; break; | |
| 309 | case MESS_DEVINFO_PTR_SNAPSHOT_LOAD: info->f = (genf *) snapshot_load_mtx; break; | |
| 309 | 310 | |
| 310 | 311 | /* --- the following bits of info are returned as doubles --- */ |
| 311 | case DEVINFO_FLOAT_SNAPSHOT_DELAY: info->d = 0.5; break; | |
| 312 | case MESS_DEVINFO_FLOAT_SNAPSHOT_DELAY: info->d = 0.5; break; | |
| 312 | 313 | |
| 313 | 314 | default: snapshot_device_getinfo(devclass, state, info); break; |
| 314 | 315 | } |
| r1711 | r1712 | |
|---|---|---|
| 216 | 216 | MDRV_MACHINE_RESET(microtan) |
| 217 | 217 | |
| 218 | 218 | // video hardware - include overscan |
| 219 | MDRV_ | |
| 219 | MDRV_SC | |
| 220 | 220 | MDRV_SCREEN_REFRESH_RATE(60) |
| 221 | 221 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 222 | 222 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
| 224 | 224 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*16, 16*16-1) |
| 225 | 225 | MDRV_GFXDECODE(microtan) |
| 226 | 226 | MDRV_PALETTE_LENGTH(2) |
| 227 | MDRV_COLORTABLE_LENGTH(2) | |
| 228 | 227 | |
| 229 | 228 | MDRV_PALETTE_INIT(black_and_white) |
| 230 | 229 | MDRV_VIDEO_START(microtan) |
| r1711 | r1712 | |
| 267 | 266 | switch(state) |
| 268 | 267 | { |
| 269 | 268 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 270 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 269 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 271 | 270 | |
| 272 | 271 | default: cassette_device_getinfo(devclass, state, info); break; |
| 273 | 272 | } |
| r1711 | r1712 | |
| 279 | 278 | switch(state) |
| 280 | 279 | { |
| 281 | 280 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 282 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "m65"); break; | |
| 281 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "m65"); break; | |
| 283 | 282 | |
| 284 | 283 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 285 | case DEVINFO_PTR_SNAPSHOT_LOAD: info->f = (genf *) snapshot_load_microtan; break; | |
| 284 | case MESS_DEVINFO_PTR_SNAPSHOT_LOAD: info->f = (genf *) snapshot_load_microtan; break; | |
| 286 | 285 | |
| 287 | 286 | /* --- the following bits of info are returned as doubles --- */ |
| 288 | case DEVINFO_FLOAT_SNAPSHOT_DELAY: info->d = 0.5; break; | |
| 287 | case MESS_DEVINFO_FLOAT_SNAPSHOT_DELAY: info->d = 0.5; break; | |
| 289 | 288 | |
| 290 | 289 | default: snapshot_device_getinfo(devclass, state, info); break; |
| 291 | 290 | } |
| r1711 | r1712 | |
| 297 | 296 | switch(state) |
| 298 | 297 | { |
| 299 | 298 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 300 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "hex"); break; | |
| 299 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "hex"); break; | |
| 301 | 300 | |
| 302 | 301 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 303 | case DEVINFO_PTR_QUICKLOAD_LOAD: info->f = (genf *) quickload_load_microtan_hexfile; break; | |
| 302 | case MESS_DEVINFO_PTR_QUICKLOAD_LOAD: info->f = (genf *) quickload_load_microtan_hexfile; break; | |
| 304 | 303 | |
| 305 | 304 | /* --- the following bits of info are returned as doubles --- */ |
| 306 | case DEVINFO_FLOAT_QUICKLOAD_DELAY: info->d = 0.5; break; | |
| 305 | case MESS_DEVINFO_FLOAT_QUICKLOAD_DELAY: info->d = 0.5; break; | |
| 307 | 306 | |
| 308 | 307 | default: quickload_device_getinfo(devclass, state, info); break; |
| 309 | 308 | } |
| r1711 | r1712 | |
|---|---|---|
| 228 | 228 | // 0,// Cursor status |
| 229 | 229 | //}; |
| 230 | 230 | |
| 231 | static void einstein_6845_update_row(mame_bitmap *bitmap, const rectangle *cliprect, UINT16 ma, | |
| 231 | static void einstein_6845_update_row(running_machine *machine, mc6845_t *mc6845, mame_bitmap *bitmap, const rectangle *cliprect, UINT16 ma, | |
| 232 | 232 | UINT8 ra, UINT16 y, UINT8 x_count, void *param) { |
| 233 | 233 | /* TODO: Verify implementation */ |
| 234 | 234 | unsigned char *data = memory_region(REGION_CPU1) + 0x012000; |
| r1711 | r1712 | |
| 236 | 236 | int char_code; |
| 237 | 237 | int i, x; |
| 238 | 238 | |
| 239 | for ( i = 0, x = 0; i < x_count; i++, x+=8 ) { | |
| 239 | for ( i = 0, x = 0; i < x_count; i++, x+=8 ) | |
| 240 | { | |
| 240 | 241 | int w; |
| 241 | 242 | char_code = einstein_80col_ram[(ma + i)&0x07ff]; |
| 242 | 243 | data_byte = data[(char_code<<3) + ra]; |
| 243 | for (w=0; w<8;w++) { | |
| 244 | for (w=0; w<8;w++) | |
| 245 | { | |
| 244 | 246 | *BITMAP_ADDR16(bitmap, y, x+w) = (data_byte & 0x080) ? 1 : 0; |
| 245 | 247 | data_byte = data_byte<<1; |
| 246 | 248 | } |
| 247 | 249 | } |
| 248 | 250 | } |
| 249 | 251 | |
| 250 | static void einstein_6845_display_enable_changed(int display_enabled) { | |
| 252 | static void einstein_6845_display_enable_changed(running_machine *machine, mc6845_t *mc6845, int display_enabled) | |
| 253 | { | |
| 251 | 254 | /* TODO: Implement me properly */ |
| 252 | 255 | if ( display_enabled ) { |
| 253 | 256 | Einstein_scr_y = ( Einstein_scr_y + 1 ) % 240 /*?*/; |
| r1711 | r1712 | |
| 1722 | 1725 | |
| 1723 | 1726 | /* video hardware */ |
| 1724 | 1727 | MDRV_IMPORT_FROM(tms9928a) |
| 1728 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1725 | 1729 | MDRV_SCREEN_REFRESH_RATE(50) |
| 1726 | 1730 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 1727 | 1731 | |
| r1711 | r1712 | |
| 1770 | 1774 | switch(state) |
| 1771 | 1775 | { |
| 1772 | 1776 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 1773 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 1777 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 1774 | 1778 | |
| 1775 | 1779 | default: printer_device_getinfo(devclass, state, info); break; |
| 1776 | 1780 | } |
| r1711 | r1712 | |
| 1782 | 1786 | switch(state) |
| 1783 | 1787 | { |
| 1784 | 1788 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 1785 | case DEVINFO_INT_COUNT: info->i = 4; break; | |
| 1789 | case MESS_DEVINFO_INT_COUNT: info->i = 4; break; | |
| 1786 | 1790 | |
| 1787 | 1791 | default: legacydsk_device_getinfo(devclass, state, info); break; |
| 1788 | 1792 | } |
| r1711 | r1712 | |
|---|---|---|
| 132 | 132 | 0, 0, 0 |
| 133 | 133 | }; |
| 134 | 134 | |
| 135 | static const unsigned short ti99_2_colortable[] = | |
| 136 | { | |
| 137 | 0, 1 | |
| 138 | }; | |
| 139 | ||
| 140 | 135 | #define TI99_2_PALETTE_SIZE sizeof(ti99_2_palette)/3 |
| 141 | #define TI99_2_COLORTABLE_SIZE sizeof(ti99_2_colortable)/2 | |
| 142 | 136 | |
| 143 | 137 | static PALETTE_INIT(ti99_2) |
| 144 | 138 | { |
| 145 | 139 | palette_set_colors_rgb(machine, 0, ti99_2_palette, TI99_2_PALETTE_SIZE); |
| 146 | memcpy(colortable, & ti99_2_colortable, sizeof(ti99_2_colortable)); | |
| 147 | 140 | } |
| 148 | 141 | |
| 149 | 142 | |
| r1711 | r1712 | |
| 380 | 373 | |
| 381 | 374 | /* video hardware */ |
| 382 | 375 | /*MDRV_TMS9928A( &tms9918_interface )*/ |
| 383 | MDRV_ | |
| 376 | MDRV_SC | |
| 384 | 377 | MDRV_SCREEN_REFRESH_RATE(60) |
| 385 | 378 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 386 | 379 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
| 388 | 381 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0, 192-1) |
| 389 | 382 | MDRV_GFXDECODE(ti99_2) |
| 390 | 383 | MDRV_PALETTE_LENGTH(TI99_2_PALETTE_SIZE) |
| 391 | MDRV_COLORTABLE_LENGTH(TI99_2_COLORTABLE_SIZE) | |
| 392 | 384 | MDRV_PALETTE_INIT(ti99_2) |
| 393 | 385 | |
| 394 | 386 | MDRV_VIDEO_UPDATE(ti99_2) |
| r1711 | r1712 | |
|---|---|---|
| 56 | 56 | |
| 57 | 57 | static PALETTE_INIT( intv ) |
| 58 | 58 | { |
| 59 | int i,j; | |
| 60 | ||
| 61 | 59 | /* Two copies of the palette */ |
| 62 | 60 | palette_set_colors_rgb(machine, 0, intv_palette, sizeof(intv_palette) / 3); |
| 63 | 61 | palette_set_colors_rgb(machine, sizeof(intv_palette) / 3, intv_palette, sizeof(intv_palette) / 3); |
| 64 | ||
| 65 | /* Two copies of the color table */ | |
| 66 | for(i=0;i<16;i++) | |
| 67 | { | |
| 68 | for(j=0;j<16;j++) | |
| 69 | { | |
| 70 | *colortable++ = i; | |
| 71 | *colortable++ = j; | |
| 72 | } | |
| 73 | } | |
| 74 | for(i=0;i<16;i++) | |
| 75 | { | |
| 76 | for(j=0;j<16;j++) | |
| 77 | { | |
| 78 | *colortable++ = i+16; | |
| 79 | *colortable++ = j+16; | |
| 80 | } | |
| 81 | } | |
| 82 | 62 | } |
| 83 | 63 | |
| 84 | 64 | static const struct AY8910interface ay8910_interface = |
| r1711 | r1712 | |
| 351 | 331 | MDRV_MACHINE_RESET( intv ) |
| 352 | 332 | |
| 353 | 333 | /* video hardware */ |
| 354 | MDRV_ | |
| 334 | MDRV_SC | |
| 355 | 335 | MDRV_SCREEN_REFRESH_RATE(59.92) |
| 356 | 336 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 357 | 337 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
| 359 | 339 | MDRV_SCREEN_VISIBLE_AREA(0, 40*8-1, 0, 24*8-1) |
| 360 | 340 | MDRV_GFXDECODE( intv ) |
| 361 | 341 | MDRV_PALETTE_LENGTH(32) |
| 362 | MDRV_COLORTABLE_LENGTH(2 * 2 * 16 * 16) | |
| 363 | 342 | MDRV_PALETTE_INIT( intv ) |
| 364 | 343 | |
| 365 | 344 | MDRV_VIDEO_START( intv ) |
| r1711 | r1712 | |
| 426 | 405 | switch(state) |
| 427 | 406 | { |
| 428 | 407 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 429 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 430 | case DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 408 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 409 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 431 | 410 | |
| 432 | 411 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 433 | case DEVINFO_PTR_INIT: info->init = device_init_intv_cart; break; | |
| 434 | case DEVINFO_PTR_LOAD: info->load = device_load_intv_cart; break; | |
| 412 | case MESS_DEVINFO_PTR_INIT: info->init = device_init_intv_cart; break; | |
| 413 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_intv_cart; break; | |
| 435 | 414 | |
| 436 | 415 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 437 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "int,rom"); break; | |
| 416 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "int,rom"); break; | |
| 438 | 417 | |
| 439 | 418 | default: cartslot_device_getinfo(devclass, state, info); break; |
| 440 | 419 | } |
| r1711 | r1712 | |
| 450 | 429 | switch(state) |
| 451 | 430 | { |
| 452 | 431 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 453 | case DEVINFO_INT_COUNT: info->i = 2; break; | |
| 432 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 454 | 433 | |
| 455 | 434 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 456 | case DEVINFO_PTR_LOAD: info->load = device_load_intvkbd_cart; break; | |
| 435 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_intvkbd_cart; break; | |
| 457 | 436 | |
| 458 | 437 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 459 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "int,rom,bin"); break; | |
| 438 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "int,rom,bin"); break; | |
| 460 | 439 | |
| 461 | 440 | default: cartslot_device_getinfo(devclass, state, info); break; |
| 462 | 441 | } |
| r1711 | r1712 | |
| 469 | 448 | switch(state) |
| 470 | 449 | { |
| 471 | 450 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 472 | case DEVINFO_INT_TYPE: info->i = IO_CASSETTE; break; | |
| 473 | case DEVINFO_INT_READABLE: info->i = 0; /* INVALID */ break; | |
| 474 | case DEVINFO_INT_WRITEABLE: info->i = 0; /* INVALID */ break; | |
| 475 | case DEVINFO_INT_CREATABLE: info->i = 0; /* INVALID */ break; | |
| 476 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 477 | case DEVINFO_INT_RESET_ON_LOAD: info->i = 1; break; | |
| 451 | case MESS_DEVINFO_INT_TYPE: info->i = IO_CASSETTE; break; | |
| 452 | case MESS_DEVINFO_INT_READABLE: info->i = 0; /* INVALID */ break; | |
| 453 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 0; /* INVALID */ break; | |
| 454 | case MESS_DEVINFO_INT_CREATABLE: info->i = 0; /* INVALID */ break; | |
| 455 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 456 | case MESS_DEVINFO_INT_RESET_ON_LOAD: info->i = 1; break; | |
| 478 | 457 | |
| 479 | 458 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 480 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "tap"); break; | |
| 459 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "tap"); break; | |
| 481 | 460 | } |
| 482 | 461 | } |
| 483 | 462 | #endif |
| r1711 | r1712 | |
|---|---|---|
| 86 | 86 | 0xff, 0xff, 0xff /* White */ |
| 87 | 87 | }; |
| 88 | 88 | |
| 89 | static const unsigned short jupiter_colortable[] = | |
| 90 | { | |
| 91 | 0, 1, | |
| 92 | 1, 0 | |
| 93 | }; | |
| 94 | ||
| 95 | 89 | static PALETTE_INIT( jupiter ) |
| 96 | 90 | { |
| 97 | 91 | palette_set_colors_rgb(machine, 0, jupiter_palette, sizeof(jupiter_palette) / 3); |
| 98 | memcpy (colortable, jupiter_colortable, sizeof (jupiter_colortable)); | |
| 99 | 92 | } |
| 100 | 93 | |
| 101 | 94 | /* keyboard input */ |
| r1711 | r1712 | |
| 182 | 175 | MDRV_MACHINE_START( jupiter ) |
| 183 | 176 | |
| 184 | 177 | /* video hardware */ |
| 185 | MDRV_ | |
| 178 | MDRV_SC | |
| 186 | 179 | MDRV_SCREEN_REFRESH_RATE(50) |
| 187 | 180 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 188 | 181 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
| 190 | 183 | MDRV_SCREEN_VISIBLE_AREA(0, 32 * 8 - 1, 0, 24 * 8 - 1) |
| 191 | 184 | MDRV_GFXDECODE( jupiter ) |
| 192 | 185 | MDRV_PALETTE_LENGTH(sizeof(jupiter_palette) / 3) |
| 193 | MDRV_COLORTABLE_LENGTH(sizeof (jupiter_colortable)) | |
| 194 | 186 | MDRV_PALETTE_INIT( jupiter ) |
| 195 | 187 | |
| 196 | 188 | MDRV_VIDEO_START( jupiter ) |
| r1711 | r1712 | |
| 214 | 206 | switch(state) |
| 215 | 207 | { |
| 216 | 208 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 217 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 209 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 218 | 210 | |
| 219 | 211 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 220 | case DEVINFO_PTR_LOAD: info->load = device_load_jupiter_ace; break; | |
| 212 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_jupiter_ace; break; | |
| 221 | 213 | |
| 222 | 214 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 223 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "ace"); break; | |
| 215 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "ace"); break; | |
| 224 | 216 | |
| 225 | 217 | default: cartslot_device_getinfo(devclass, state, info); break; |
| 226 | 218 | } |
| r1711 | r1712 | |
| 232 | 224 | switch(state) |
| 233 | 225 | { |
| 234 | 226 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 235 | case DEVINFO_INT_TYPE: info->i = IO_CASSETTE; break; | |
| 236 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 237 | case DEVINFO_INT_WRITEABLE: info->i = 0; break; | |
| 238 | case DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 239 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 240 | case DEVINFO_INT_RESET_ON_LOAD: info->i = 1; break; | |
| 227 | case MESS_DEVINFO_INT_TYPE: info->i = IO_CASSETTE; break; | |
| 228 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 229 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 0; break; | |
| 230 | case MESS_DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 231 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 232 | case MESS_DEVINFO_INT_RESET_ON_LOAD: info->i = 1; break; | |
| 241 | 233 | |
| 242 | 234 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 243 | case DEVINFO_PTR_LOAD: info->load = device_load_jupiter_tap; break; | |
| 244 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_jupiter_tap; break; | |
| 235 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_jupiter_tap; break; | |
| 236 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_jupiter_tap; break; | |
| 245 | 237 | |
| 246 | 238 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 247 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "tap"); break; | |
| 239 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "tap"); break; | |
| 248 | 240 | } |
| 249 | 241 | } |
| 250 | 242 |
| r1711 | r1712 | |
|---|---|---|
| 552 | 552 | |
| 553 | 553 | /* video hardware */ |
| 554 | 554 | MDRV_IMPORT_FROM(tms3556) |
| 555 | MDRV_SCREEN_ADD("main", RASTER) | |
| 555 | 556 | MDRV_SCREEN_REFRESH_RATE(50) |
| 556 | 557 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 557 | 558 |
| r1711 | r1712 | |
|---|---|---|
| 148 | 148 | |
| 149 | 149 | MDRV_MACHINE_RESET( osborne1 ) |
| 150 | 150 | |
| 151 | MDRV_ | |
| 151 | MDRV_SCREEN_ADD | |
| 152 | 152 | MDRV_SCREEN_FORMAT( BITMAP_FORMAT_INDEXED16 ) |
| 153 | MDRV_SCREEN_ADD( "main",0 ) | |
| 154 | 153 | MDRV_SCREEN_RAW_PARAMS( MAIN_CLOCK/2, 512, 0, 416, 260, 0, 240 ) |
| 155 | 154 | MDRV_VIDEO_START( generic_bitmapped ) |
| 156 | 155 | MDRV_VIDEO_UPDATE( generic_bitmapped ) |
| r1711 | r1712 | |
| 184 | 183 | |
| 185 | 184 | static void osborne1_floppy_getinfo( const device_class *devclass, UINT32 state, union devinfo *info ) { |
| 186 | 185 | switch( state ) { |
| 187 | case DEVINFO_INT_COUNT: info->i = 2; break; | |
| 188 | case DEVINFO_PTR_LOAD: info->load = device_load_osborne1_floppy; break; | |
| 189 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy( info->s = device_temp_str(), "img" ); break; | |
| 186 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 187 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_osborne1_floppy; break; | |
| 188 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy( info->s = device_temp_str(), "img" ); break; | |
| 190 | 189 | default: legacybasicdsk_device_getinfo( devclass, state, info ); break; |
| 191 | 190 | } |
| 192 | 191 | } |
| r1711 | r1712 | |
|---|---|---|
| 206 | 206 | |
| 207 | 207 | /* video hardware */ |
| 208 | 208 | MDRV_DEFAULT_LAYOUT(layout_mephisto) |
| 209 | MDRV_SCREEN_ADD("main", RASTER) | |
| 209 | 210 | MDRV_SCREEN_REFRESH_RATE(60) |
| 210 | 211 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 211 | 212 |
| r1711 | r1712 | |
|---|---|---|
| 127 | 127 | MDRV_MACHINE_RESET( ssystem3 ) |
| 128 | 128 | |
| 129 | 129 | /* video hardware */ |
| 130 | MDRV_ | |
| 130 | MDRV_SC | |
| 131 | 131 | MDRV_SCREEN_REFRESH_RATE(LCD_FRAMES_PER_SECOND) |
| 132 | 132 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 133 | 133 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 134 | 134 | MDRV_SCREEN_SIZE(728, 437) |
| 135 | 135 | MDRV_SCREEN_VISIBLE_AREA(0, 728-1, 0, 437-1) |
| 136 | 136 | MDRV_PALETTE_LENGTH(242 + 32768) |
| 137 | MDRV_COLORTABLE_LENGTH(2) | |
| 138 | 137 | MDRV_PALETTE_INIT( ssystem3 ) |
| 139 | 138 | |
| 140 | 139 | MDRV_VIDEO_START( ssystem3 ) |
| r1711 | r1712 | |
|---|---|---|
| 295 | 295 | MDRV_CPU_ADD_TAG("main", Z80, VTECH1_CLK) /* 3.57950 Mhz */ |
| 296 | 296 | MDRV_CPU_PROGRAM_MAP(laser110_mem, 0) |
| 297 | 297 | MDRV_CPU_IO_MAP(vtech1_io, 0) |
| 298 | MDRV_SCREEN_ADD("main", RASTER) | |
| 298 | 299 | MDRV_SCREEN_REFRESH_RATE(M6847_PAL_FRAMES_PER_SECOND) |
| 299 | 300 | MDRV_INTERLEAVE(1) |
| 300 | 301 | |
| r1711 | r1712 | |
| 303 | 304 | /* video hardware */ |
| 304 | 305 | MDRV_VIDEO_START(vtech1_monochrome) |
| 305 | 306 | MDRV_VIDEO_UPDATE(m6847) |
| 306 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 307 | 307 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 308 | 308 | MDRV_SCREEN_SIZE(320, 25+192+26) |
| 309 | 309 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 1, 239) |
| r1711 | r1712 | |
| 400 | 400 | switch(state) |
| 401 | 401 | { |
| 402 | 402 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 403 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 403 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 404 | 404 | |
| 405 | 405 | default: printer_device_getinfo(devclass, state, info); break; |
| 406 | 406 | } |
| r1711 | r1712 | |
| 412 | 412 | switch(state) |
| 413 | 413 | { |
| 414 | 414 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 415 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 415 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 416 | 416 | |
| 417 | 417 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 418 | case DEVINFO_PTR_CASSETTE_FORMATS: info->p = (void *) vtech1_cassette_formats; break; | |
| 418 | case MESS_DEVINFO_PTR_CASSETTE_FORMATS: info->p = (void *) vtech1_cassette_formats; break; | |
| 419 | 419 | |
| 420 | 420 | default: cassette_device_getinfo(devclass, state, info); break; |
| 421 | 421 | } |
| r1711 | r1712 | |
| 427 | 427 | switch(state) |
| 428 | 428 | { |
| 429 | 429 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 430 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "vz"); break; | |
| 430 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "vz"); break; | |
| 431 | 431 | |
| 432 | 432 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 433 | case DEVINFO_PTR_SNAPSHOT_LOAD: info->f = (genf *) snapshot_load_vtech1; break; | |
| 433 | case MESS_DEVINFO_PTR_SNAPSHOT_LOAD: info->f = (genf *) snapshot_load_vtech1; break; | |
| 434 | 434 | |
| 435 | 435 | /* --- the following bits of info are returned as doubles --- */ |
| 436 | case DEVINFO_FLOAT_SNAPSHOT_DELAY: info->d = 0.5; break; | |
| 436 | case MESS_DEVINFO_FLOAT_SNAPSHOT_DELAY: info->d = 0.5; break; | |
| 437 | 437 | |
| 438 | 438 | default: snapshot_device_getinfo(devclass, state, info); break; |
| 439 | 439 | } |
| r1711 | r1712 | |
| 445 | 445 | switch(state) |
| 446 | 446 | { |
| 447 | 447 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 448 | case DEVINFO_INT_TYPE: info->i = IO_FLOPPY; break; | |
| 449 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 450 | case DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 451 | case DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 452 | case DEVINFO_INT_COUNT: info->i = 2; break; | |
| 448 | case MESS_DEVINFO_INT_TYPE: info->i = IO_FLOPPY; break; | |
| 449 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 450 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 451 | case MESS_DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 452 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 453 | 453 | |
| 454 | 454 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 455 | case DEVINFO_PTR_LOAD: info->load = device_load_vtech1_floppy; break; | |
| 455 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_vtech1_floppy; break; | |
| 456 | 456 | |
| 457 | 457 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 458 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "dsk"); break; | |
| 458 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "dsk"); break; | |
| 459 | 459 | } |
| 460 | 460 | } |
| 461 | 461 |
| r1711 | r1712 | |
|---|---|---|
| 2899 | 2899 | MDRV_CPU_PROGRAM_MAP(amstrad_mem, 0) |
| 2900 | 2900 | MDRV_CPU_IO_MAP(amstrad_io, 0) |
| 2901 | 2901 | |
| 2902 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2902 | 2903 | MDRV_SCREEN_REFRESH_RATE(AMSTRAD_FPS) |
| 2903 | 2904 | MDRV_INTERLEAVE(1) |
| 2904 | 2905 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(19968)) |
| r1711 | r1712 | |
| 2906 | 2907 | MDRV_MACHINE_RESET( amstrad ) |
| 2907 | 2908 | |
| 2908 | 2909 | /* video hardware */ |
| 2909 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 2910 | 2910 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2911 | 2911 | MDRV_SCREEN_SIZE(800, 312) |
| 2912 | 2912 | /* Amstrad Monitor Visible AREA : 768x272 */ |
| 2913 | 2913 | MDRV_SCREEN_VISIBLE_AREA(0, ((AMSTRAD_SCREEN_WIDTH-32) - 1), 0, ((AMSTRAD_SCREEN_HEIGHT-40) - 1)) |
| 2914 | 2914 | MDRV_PALETTE_LENGTH(32) |
| 2915 | MDRV_COLORTABLE_LENGTH(32) | |
| 2916 | 2915 | MDRV_PALETTE_INIT(amstrad_cpc) |
| 2917 | 2916 | |
| 2918 | 2917 | MDRV_VIDEO_START(amstrad) |
| r1711 | r1712 | |
| 2946 | 2945 | MDRV_MACHINE_RESET(plus) |
| 2947 | 2946 | MDRV_SCREEN_SIZE(800, 312) |
| 2948 | 2947 | MDRV_PALETTE_LENGTH(4096+48) // extended 12-bit palette, and standard 32 colour palette |
| 2949 | MDRV_COLORTABLE_LENGTH(4096+48) | |
| 2950 | 2948 | MDRV_PALETTE_INIT(amstrad_plus) |
| 2951 | 2949 | MACHINE_DRIVER_END |
| 2952 | 2950 | |
| r1711 | r1712 | |
| 2960 | 2958 | MDRV_MACHINE_RESET(gx4000) |
| 2961 | 2959 | MDRV_SCREEN_SIZE(800, 312) |
| 2962 | 2960 | MDRV_PALETTE_LENGTH(4096+48) // extended 12-bit palette, and standard 32 colour palette |
| 2963 | MDRV_COLORTABLE_LENGTH(4096+48) | |
| 2964 | 2961 | MDRV_PALETTE_INIT(amstrad_plus) |
| 2965 | 2962 | MACHINE_DRIVER_END |
| 2966 | 2963 | |
| r1711 | r1712 | |
| 2971 | 2968 | MDRV_SOUND_CONFIG(ay8912_interface) |
| 2972 | 2969 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) |
| 2973 | 2970 | MDRV_PALETTE_LENGTH(32+64) |
| 2974 | MDRV_COLORTABLE_LENGTH(32+64) // standard CPC palette, and 6-bit MSX palette | |
| 2975 | 2971 | MDRV_PALETTE_INIT(aleste) |
| 2976 | 2972 | MDRV_NVRAM_HANDLER(mc146818) |
| 2977 | 2973 | MACHINE_DRIVER_END |
| r1711 | r1712 | |
| 3090 | 3086 | switch(state) |
| 3091 | 3087 | { |
| 3092 | 3088 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 3093 | case DEVINFO_INT_COUNT: info->i = 2; break; | |
| 3089 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 3094 | 3090 | |
| 3095 | 3091 | default: legacydsk_device_getinfo(devclass, state, info); break; |
| 3096 | 3092 | } |
| r1711 | r1712 | |
| 3103 | 3099 | switch(state) |
| 3104 | 3100 | { |
| 3105 | 3101 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 3106 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 3107 | case DEVINFO_INT_CASSETTE_DEFAULT_STATE: info->i = CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED; break; | |
| 3108 | case DEVINFO_PTR_CASSETTE_FORMATS: info->p = (void *)cdt_cassette_formats; break; | |
| 3102 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 3103 | case MESS_DEVINFO_INT_CASSETTE_DEFAULT_STATE: info->i = CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED; break; | |
| 3104 | case MESS_DEVINFO_PTR_CASSETTE_FORMATS: info->p = (void *)cdt_cassette_formats; break; | |
| 3109 | 3105 | |
| 3110 | 3106 | default: cassette_device_getinfo(devclass, state, info); break; |
| 3111 | 3107 | } |
| r1711 | r1712 | |
| 3118 | 3114 | switch(state) |
| 3119 | 3115 | { |
| 3120 | 3116 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 3121 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 3117 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 3122 | 3118 | |
| 3123 | 3119 | default: printer_device_getinfo(devclass, state, info); break; |
| 3124 | 3120 | } |
| r1711 | r1712 | |
| 3131 | 3127 | switch(state) |
| 3132 | 3128 | { |
| 3133 | 3129 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 3134 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 3135 | case DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 3130 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 3131 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 3136 | 3132 | |
| 3137 | 3133 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 3138 | case DEVINFO_PTR_LOAD: info->load = device_load_amstrad_plus_cartridge; break; | |
| 3134 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_amstrad_plus_cartridge; break; | |
| 3139 | 3135 | |
| 3140 | 3136 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 3141 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "cpr,bin"); break; | |
| 3137 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "cpr,bin"); break; | |
| 3142 | 3138 | |
| 3143 | 3139 | default: cartslot_device_getinfo(devclass, state, info); break; |
| 3144 | 3140 | } |
| r1711 | r1712 | |
| 3151 | 3147 | switch(state) |
| 3152 | 3148 | { |
| 3153 | 3149 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 3154 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "sna"); break; | |
| 3150 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "sna"); break; | |
| 3155 | 3151 | |
| 3156 | 3152 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 3157 | case DEVINFO_PTR_SNAPSHOT_LOAD: info->f = (genf *) snapshot_load_amstrad; break; | |
| 3153 | case MESS_DEVINFO_PTR_SNAPSHOT_LOAD: info->f = (genf *) snapshot_load_amstrad; break; | |
| 3158 | 3154 | |
| 3159 | 3155 | default: snapshot_device_getinfo(devclass, state, info); break; |
| 3160 | 3156 | } |
| r1711 | r1712 | |
| 3167 | 3163 | switch(state) |
| 3168 | 3164 | { |
| 3169 | 3165 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 3170 | case DEVINFO_INT_COUNT: info->i = 2; break; | |
| 3171 | case DEVINFO_PTR_LOAD: info->load = device_load_msx_floppy; break; | |
| 3172 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "dsk"); break; | |
| 3166 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 3167 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_msx_floppy; break; | |
| 3168 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "dsk"); break; | |
| 3173 | 3169 | |
| 3174 | 3170 | default: legacybasicdsk_device_getinfo(devclass, state, info); break; |
| 3175 | 3171 | } |
| r1711 | r1712 | |
|---|---|---|
| 303 | 303 | MDRV_MACHINE_RESET(sms) |
| 304 | 304 | |
| 305 | 305 | /* video hardware */ |
| 306 | MDRV_ | |
| 306 | MDRV_SC | |
| 307 | 307 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 308 | MDRV_SCREEN_ADD("main",0) | |
| 309 | 308 | MDRV_SCREEN_RAW_PARAMS(XTAL_53_693175MHz/10, SMS_X_PIXELS, LBORDER_START + LBORDER_X_PIXELS - 2, LBORDER_START + LBORDER_X_PIXELS + 256 + 10, NTSC_Y_PIXELS, TBORDER_START + NTSC_224_TBORDER_Y_PIXELS, TBORDER_START + NTSC_224_TBORDER_Y_PIXELS + 224) |
| 310 | 309 | |
| 311 | 310 | MDRV_PALETTE_LENGTH(64+16) |
| 312 | MDRV_COLORTABLE_LENGTH(0) | |
| 313 | 311 | MDRV_PALETTE_INIT(sms) |
| 314 | 312 | |
| 315 | 313 | MDRV_VIDEO_START(sega_315_5124) |
| r1711 | r1712 | |
| 350 | 348 | MDRV_MACHINE_RESET(sms) |
| 351 | 349 | |
| 352 | 350 | /* video hardware */ |
| 353 | MDRV_ | |
| 351 | MDRV_SC | |
| 354 | 352 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 355 | MDRV_SCREEN_ADD("main",0) | |
| 356 | 353 | MDRV_SCREEN_RAW_PARAMS(MASTER_CLOCK_PAL/10, SMS_X_PIXELS, LBORDER_START + LBORDER_X_PIXELS - 2, LBORDER_START + LBORDER_X_PIXELS + 256 + 10, PAL_Y_PIXELS, TBORDER_START + PAL_240_TBORDER_Y_PIXELS, TBORDER_START + PAL_240_TBORDER_Y_PIXELS + 240) |
| 357 | 354 | |
| 358 | 355 | MDRV_PALETTE_LENGTH(64+16) |
| 359 | MDRV_COLORTABLE_LENGTH(0) | |
| 360 | 356 | MDRV_PALETTE_INIT(sms) |
| 361 | 357 | |
| 362 | 358 | MDRV_VIDEO_START(sega_315_5124) |
| r1711 | r1712 | |
| 399 | 395 | MDRV_MACHINE_RESET(sms) |
| 400 | 396 | |
| 401 | 397 | /* video hardware */ |
| 402 | MDRV_ | |
| 398 | MDRV_SC | |
| 403 | 399 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 404 | MDRV_SCREEN_ADD("main",0) | |
| 405 | 400 | MDRV_SCREEN_RAW_PARAMS(XTAL_53_693175MHz/10, SMS_X_PIXELS, LBORDER_START + LBORDER_X_PIXELS + 6*8, LBORDER_START + LBORDER_X_PIXELS + 26*8, NTSC_Y_PIXELS, TBORDER_START + NTSC_192_TBORDER_Y_PIXELS + 3*8, TBORDER_START + NTSC_192_TBORDER_Y_PIXELS + 21*8 ) |
| 406 | 401 | MDRV_PALETTE_LENGTH(4096) |
| 407 | MDRV_COLORTABLE_LENGTH(0) | |
| 408 | 402 | MDRV_PALETTE_INIT(gamegear) |
| 409 | 403 | |
| 410 | 404 | MDRV_VIDEO_START(sega_315_5378) |
| r1711 | r1712 | |
| 511 | 505 | switch(state) |
| 512 | 506 | { |
| 513 | 507 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 514 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 515 | case DEVINFO_INT_MUST_BE_LOADED: info->i = 0; break; | |
| 508 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 509 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 0; break; | |
| 516 | 510 | |
| 517 | 511 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 518 | case DEVINFO_PTR_INIT: info->init = device_init_sms_cart; break; | |
| 519 | case DEVINFO_PTR_LOAD: info->load = device_load_sms_cart; break; | |
| 512 | case MESS_DEVINFO_PTR_INIT: info->init = device_init_sms_cart; break; | |
| 513 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_sms_cart; break; | |
| 520 | 514 | |
| 521 | 515 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 522 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "sms"); break; | |
| 516 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "sms"); break; | |
| 523 | 517 | |
| 524 | 518 | default: cartslot_device_getinfo(devclass, state, info); break; |
| 525 | 519 | } |
| r1711 | r1712 | |
| 532 | 526 | static void sg1000_cartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) { |
| 533 | 527 | /* cartslot */ |
| 534 | 528 | switch(state) { |
| 535 | case DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 529 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 536 | 530 | default: sms_cartslot_getinfo(devclass, state, info); break; |
| 537 | 531 | } |
| 538 | 532 | } |
| r1711 | r1712 | |
| 543 | 537 | |
| 544 | 538 | static void smssdisp_cartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) { |
| 545 | 539 | switch(state) { |
| 546 | case DEVINFO_INT_COUNT: info->i = 5; break; | |
| 547 | case DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 540 | case MESS_DEVINFO_INT_COUNT: info->i = 5; break; | |
| 541 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 548 | 542 | default: sms_cartslot_getinfo(devclass, state, info); break; |
| 549 | 543 | } |
| 550 | 544 | } |
| r1711 | r1712 | |
| 558 | 552 | switch(state) |
| 559 | 553 | { |
| 560 | 554 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 561 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 562 | case DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 563 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "gg"); break; | |
| 555 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 556 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 557 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "gg"); break; | |
| 564 | 558 | |
| 565 | 559 | default: sms_cartslot_getinfo(devclass, state, info); break; |
| 566 | 560 | } |
| r1711 | r1712 | |
|---|---|---|
| 867 | 867 | MDRV_MACHINE_START( a310 ) |
| 868 | 868 | |
| 869 | 869 | /* video hardware */ |
| 870 | MDRV_ | |
| 870 | MDRV_SC | |
| 871 | 871 | MDRV_SCREEN_REFRESH_RATE(60) |
| 872 | 872 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 873 | 873 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
|---|---|---|
| 873 | 873 | MDRV_NVRAM_HANDLER( avigo ) |
| 874 | 874 | |
| 875 | 875 | /* video hardware */ |
| 876 | MDRV_ | |
| 876 | MDRV_SC | |
| 877 | 877 | MDRV_SCREEN_REFRESH_RATE(50) |
| 878 | 878 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 879 | 879 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 880 | 880 | MDRV_SCREEN_SIZE(640, 480) |
| 881 | 881 | MDRV_SCREEN_VISIBLE_AREA(0, 640-1, 0, 480-1) |
| 882 | 882 | MDRV_PALETTE_LENGTH(256) |
| 883 | MDRV_COLORTABLE_LENGTH(256) | |
| 884 | 883 | MDRV_PALETTE_INIT( avigo ) |
| 885 | 884 | |
| 886 | 885 | MDRV_VIDEO_START( avigo ) |
| r1711 | r1712 | |
|---|---|---|
| 777 | 777 | MDRV_CPU_PROGRAM_MAP( psx_map, 0 ) |
| 778 | 778 | MDRV_CPU_VBLANK_INT( psx_vblank, 1 ) |
| 779 | 779 | |
| 780 | MDRV_SCREEN_ADD("main", RASTER) | |
| 780 | 781 | MDRV_SCREEN_REFRESH_RATE( 60 ) |
| 781 | 782 | MDRV_SCREEN_VBLANK_TIME(0) |
| 782 | 783 | |
| 783 | 784 | MDRV_MACHINE_RESET( psx ) |
| 784 | 785 | |
| 785 | 786 | /* video hardware */ |
| 786 | MDRV_VIDEO_ATTRIBUTES( VIDEO_TYPE_RASTER ) | |
| 787 | 787 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 788 | 788 | MDRV_SCREEN_SIZE( 1024, 512 ) |
| 789 | 789 | MDRV_SCREEN_VISIBLE_AREA( 0, 639, 0, 479 ) |
| r1711 | r1712 | |
| 813 | 813 | MDRV_MACHINE_RESET( psx ) |
| 814 | 814 | |
| 815 | 815 | /* video hardware */ |
| 816 | MDRV_VIDEO_ATTRIBUTES( VIDEO_TYPE_RASTER ) | |
| 817 | 816 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 818 | 817 | MDRV_SCREEN_SIZE( 1024, 512 ) |
| 819 | 818 | MDRV_SCREEN_VISIBLE_AREA( 0, 639, 0, 511 ) |
| r1711 | r1712 | |
| 924 | 923 | switch(state) |
| 925 | 924 | { |
| 926 | 925 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 927 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "exe,psx"); break; | |
| 926 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "exe,psx"); break; | |
| 928 | 927 | |
| 929 | 928 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 930 | case DEVINFO_PTR_QUICKLOAD_LOAD: info->f = (genf *) quickload_load_psx_exe_load; break; | |
| 929 | case MESS_DEVINFO_PTR_QUICKLOAD_LOAD: info->f = (genf *) quickload_load_psx_exe_load; break; | |
| 931 | 930 | |
| 932 | 931 | default: quickload_device_getinfo(devclass, state, info); break; |
| 933 | 932 | } |
| r1711 | r1712 | |
|---|---|---|
| 398 | 398 | palette_set_color_rgb(machine, a, red, green, blue); |
| 399 | 399 | coupe_colortable[a]=a; |
| 400 | 400 | } |
| 401 | memcpy(colortable,coupe_colortable,sizeof(coupe_colortable)); | |
| 402 | 401 | } |
| 403 | 402 | |
| 404 | 403 | |
| r1711 | r1712 | |
| 409 | 408 | MDRV_CPU_PROGRAM_MAP(coupe_mem, 0) |
| 410 | 409 | MDRV_CPU_IO_MAP(coupe_io, 0) |
| 411 | 410 | MDRV_CPU_VBLANK_INT(coupe_line_interrupt, 192 + 10) /* 192 scanlines + 10 lines of vblank (approx).. */ |
| 411 | MDRV_SCREEN_ADD("main", RASTER) | |
| 412 | 412 | MDRV_SCREEN_REFRESH_RATE(50) |
| 413 | 413 | MDRV_SCREEN_VBLANK_TIME(0) |
| 414 | 414 | MDRV_INTERLEAVE(1) |
| r1711 | r1712 | |
| 416 | 416 | MDRV_MACHINE_START( coupe ) |
| 417 | 417 | |
| 418 | 418 | /* video hardware */ |
| 419 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 420 | 419 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 421 | 420 | MDRV_SCREEN_SIZE(64*8, 24*8) |
| 422 | 421 | MDRV_SCREEN_VISIBLE_AREA(0, 64*8-1, 0, 24*8-1) |
| 423 | 422 | MDRV_GFXDECODE( coupe_gfxdecodeinfo ) |
| 424 | 423 | MDRV_PALETTE_LENGTH(128) |
| 425 | MDRV_COLORTABLE_LENGTH(128) | |
| 426 | 424 | MDRV_PALETTE_INIT(coupe) |
| 427 | 425 | |
| 428 | 426 | MDRV_VIDEO_START( generic_bitmapped ) |
| r1711 | r1712 | |
| 454 | 452 | switch(state) |
| 455 | 453 | { |
| 456 | 454 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 457 | case DEVINFO_INT_COUNT: info->i = 2; break; | |
| 455 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 458 | 456 | |
| 459 | 457 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 460 | case DEVINFO_PTR_LOAD: info->load = device_load_coupe_floppy; break; | |
| 458 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_coupe_floppy; break; | |
| 461 | 459 | |
| 462 | 460 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 463 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "dsk"); break; | |
| 461 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "dsk"); break; | |
| 464 | 462 | |
| 465 | 463 | default: legacybasicdsk_device_getinfo(devclass, state, info); break; |
| 466 | 464 | } |
| r1711 | r1712 | |
|---|---|---|
| 575 | 575 | |
| 576 | 576 | /* video hardware */ |
| 577 | 577 | MDRV_IMPORT_FROM(tms9928a) |
| 578 | MDRV_SCREEN_ADD("main", RASTER) | |
| 578 | 579 | MDRV_SCREEN_REFRESH_RATE(60) |
| 579 | 580 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 580 | 581 | |
| r1711 | r1712 | |
| 603 | 604 | switch(state) |
| 604 | 605 | { |
| 605 | 606 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 606 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 607 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 607 | 608 | |
| 608 | 609 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 609 | case DEVINFO_PTR_LOAD: info->load = device_load_tutor_cart; break; | |
| 610 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_tutor_cart; break; | |
| 610 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_tutor_cart; break; | |
| 611 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_tutor_cart; break; | |
| 611 | 612 | |
| 612 | 613 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 613 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), ""); break; | |
| 614 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), ""); break; | |
| 614 | 615 | |
| 615 | 616 | default: cartslot_device_getinfo(devclass, state, info); break; |
| 616 | 617 | } |
| r1711 | r1712 | |
| 622 | 623 | switch(state) |
| 623 | 624 | { |
| 624 | 625 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 625 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 626 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 626 | 627 | |
| 627 | 628 | default: cassette_device_getinfo(devclass, state, info); break; |
| 628 | 629 | } |
| r1711 | r1712 | |
| 634 | 635 | switch(state) |
| 635 | 636 | { |
| 636 | 637 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 637 | case DEVINFO_INT_TYPE: info->i = IO_PARALLEL; break; | |
| 638 | case DEVINFO_INT_READABLE: info->i = 0; break; | |
| 639 | case DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 640 | case DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 641 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 638 | case MESS_DEVINFO_INT_TYPE: info->i = IO_PARALLEL; break; | |
| 639 | case MESS_DEVINFO_INT_READABLE: info->i = 0; break; | |
| 640 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 641 | case MESS_DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 642 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 642 | 643 | |
| 643 | 644 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 644 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), ""); break; | |
| 645 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), ""); break; | |
| 645 | 646 | } |
| 646 | 647 | } |
| 647 | 648 |
| r1711 | r1712 | |
|---|---|---|
| 262 | 262 | MDRV_CPU_PROGRAM_MAP( cybikov1_mem, 0) |
| 263 | 263 | MDRV_CPU_IO_MAP( cybikov1_io, 0) |
| 264 | 264 | // screen |
| 265 | MDRV_SCREEN_ADD("main", RASTER) | |
| 265 | 266 | MDRV_SCREEN_REFRESH_RATE( 60) |
| 266 | 267 | MDRV_SCREEN_FORMAT( BITMAP_FORMAT_INDEXED16) |
| 267 | 268 | MDRV_SCREEN_SIZE( HD66421_WIDTH, HD66421_HEIGHT) |
| 268 | 269 | MDRV_SCREEN_VISIBLE_AREA( 0, HD66421_WIDTH - 1, 0, HD66421_HEIGHT - 1) |
| 269 | 270 | // video |
| 270 | MDRV_VIDEO_ATTRIBUTES( VIDEO_TYPE_RASTER) | |
| 271 | 271 | MDRV_PALETTE_LENGTH( 4) |
| 272 | MDRV_COLORTABLE_LENGTH( 4) | |
| 273 | 272 | MDRV_PALETTE_INIT( hd66421) |
| 274 | 273 | MDRV_VIDEO_START( hd66421) |
| 275 | 274 | MDRV_VIDEO_UPDATE( hd66421) |
| r1711 | r1712 | |
|---|---|---|
| 338 | 338 | MDRV_MACHINE_RESET( trs80 ) |
| 339 | 339 | |
| 340 | 340 | /* video hardware */ |
| 341 | MDRV_ | |
| 341 | MDRV_SC | |
| 342 | 342 | MDRV_SCREEN_REFRESH_RATE(60) |
| 343 | 343 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) |
| 344 | 344 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
| 458 | 458 | switch(state) |
| 459 | 459 | { |
| 460 | 460 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 461 | case DEVINFO_INT_TYPE: info->i = IO_CASSETTE; break; | |
| 462 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 463 | case DEVINFO_INT_WRITEABLE: info->i = 0; break; | |
| 464 | case DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 465 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 461 | case MESS_DEVINFO_INT_TYPE: info->i = IO_CASSETTE; break; | |
| 462 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 463 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 0; break; | |
| 464 | case MESS_DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 465 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 466 | 466 | |
| 467 | 467 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 468 | case DEVINFO_PTR_LOAD: info->load = device_load_trs80_cas; break; | |
| 469 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_trs80_cas; break; | |
| 468 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_trs80_cas; break; | |
| 469 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_trs80_cas; break; | |
| 470 | 470 | |
| 471 | 471 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 472 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "cas"); break; | |
| 472 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "cas"); break; | |
| 473 | 473 | } |
| 474 | 474 | } |
| 475 | 475 | |
| r1711 | r1712 | |
| 479 | 479 | switch(state) |
| 480 | 480 | { |
| 481 | 481 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 482 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "cmd"); break; | |
| 482 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "cmd"); break; | |
| 483 | 483 | |
| 484 | 484 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 485 | case DEVINFO_PTR_QUICKLOAD_LOAD: info->f = (genf *) quickload_load_trs80_cmd; break; | |
| 485 | case MESS_DEVINFO_PTR_QUICKLOAD_LOAD: info->f = (genf *) quickload_load_trs80_cmd; break; | |
| 486 | 486 | |
| 487 | 487 | /* --- the following bits of info are returned as doubles --- */ |
| 488 | case DEVINFO_FLOAT_QUICKLOAD_DELAY: info->d = 0.5; break; | |
| 488 | case MESS_DEVINFO_FLOAT_QUICKLOAD_DELAY: info->d = 0.5; break; | |
| 489 | 489 | |
| 490 | 490 | default: quickload_device_getinfo(devclass, state, info); break; |
| 491 | 491 | } |
| r1711 | r1712 | |
| 503 | 503 | switch(state) |
| 504 | 504 | { |
| 505 | 505 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 506 | case DEVINFO_INT_COUNT: info->i = 4; break; | |
| 506 | case MESS_DEVINFO_INT_COUNT: info->i = 4; break; | |
| 507 | 507 | |
| 508 | 508 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 509 | case DEVINFO_PTR_LOAD: info->load = device_load_trs80_floppy; break; | |
| 509 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_trs80_floppy; break; | |
| 510 | 510 | |
| 511 | 511 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 512 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "dsk"); break; | |
| 512 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "dsk"); break; | |
| 513 | 513 | |
| 514 | 514 | default: legacybasicdsk_device_getinfo(devclass, state, info); break; |
| 515 | 515 | } |
| r1711 | r1712 | |
|---|---|---|
| 150 | 150 | MDRV_MACHINE_RESET( odyssey2 ) |
| 151 | 151 | |
| 152 | 152 | /* video hardware */ |
| 153 | MDRV_ | |
| 153 | MDRV_SC | |
| 154 | 154 | MDRV_SCREEN_REFRESH_RATE(60) |
| 155 | 155 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 156 | 156 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
| 159 | 159 | MDRV_SCREEN_VISIBLE_AREA(0,160-1,0,240-1) |
| 160 | 160 | MDRV_GFXDECODE( odyssey2 ) |
| 161 | 161 | MDRV_PALETTE_LENGTH(24) |
| 162 | MDRV_COLORTABLE_LENGTH(2) | |
| 163 | 162 | MDRV_PALETTE_INIT( odyssey2 ) |
| 164 | 163 | |
| 165 | 164 | MDRV_VIDEO_START( odyssey2 ) |
| r1711 | r1712 | |
| 187 | 186 | switch(state) |
| 188 | 187 | { |
| 189 | 188 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 190 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 191 | case DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 189 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 190 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 192 | 191 | |
| 193 | 192 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 194 | case DEVINFO_PTR_VERIFY: info->imgverify = odyssey2_cart_verify; break; | |
| 193 | case MESS_DEVINFO_PTR_VERIFY: info->imgverify = odyssey2_cart_verify; break; | |
| 195 | 194 | |
| 196 | 195 | default: cartslot_device_getinfo(devclass, state, info); break; |
| 197 | 196 | } |
| r1711 | r1712 | |
|---|---|---|
| 621 | 621 | PALETTE_INIT( apple2 ) |
| 622 | 622 | { |
| 623 | 623 | palette_set_colors(machine, 0, apple2_palette, ARRAY_LENGTH(apple2_palette)); |
| 624 | memcpy(colortable, apple2_colortable, sizeof(apple2_colortable)); | |
| 625 | 624 | } |
| 626 | 625 | |
| 627 | 626 | static const struct AY8910interface ay8910_interface = |
| r1711 | r1712 | |
| 638 | 637 | |
| 639 | 638 | MDRV_MACHINE_START( apple2 ) |
| 640 | 639 | |
| 641 | MDRV_ | |
| 640 | MDRV_SC | |
| 642 | 641 | MDRV_SCREEN_REFRESH_RATE(60) |
| 643 | 642 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 644 | 643 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 645 | 644 | MDRV_SCREEN_SIZE(280*2, 192) |
| 646 | 645 | MDRV_SCREEN_VISIBLE_AREA(0, (280*2)-1,0,192-1) |
| 647 | 646 | MDRV_PALETTE_LENGTH(ARRAY_LENGTH(apple2_palette)) |
| 648 | MDRV_COLORTABLE_LENGTH(sizeof(apple2_colortable)/sizeof(unsigned short)) | |
| 649 | 647 | MDRV_PALETTE_INIT(apple2) |
| 650 | 648 | |
| 651 | 649 | MDRV_VIDEO_START(apple2) |
| r1711 | r1712 | |
| 870 | 868 | switch(state) |
| 871 | 869 | { |
| 872 | 870 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 873 | case DEVINFO_INT_APPLE525_SPINFRACT_DIVIDEND: info->i = 15; break; | |
| 874 | case DEVINFO_INT_APPLE525_SPINFRACT_DIVISOR: info->i = 16; break; | |
| 871 | case MESS_DEVINFO_INT_APPLE525_SPINFRACT_DIVIDEND: info->i = 15; break; | |
| 872 | case MESS_DEVINFO_INT_APPLE525_SPINFRACT_DIVISOR: info->i = 16; break; | |
| 875 | 873 | |
| 876 | 874 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 877 | case DEVINFO_STR_NAME+0: strcpy(info->s = device_temp_str(), "slot6disk1"); break; | |
| 878 | case DEVINFO_STR_NAME+1: strcpy(info->s = device_temp_str(), "slot6disk2"); break; | |
| 879 | case DEVINFO_STR_SHORT_NAME+0: strcpy(info->s = device_temp_str(), "s6d1"); break; | |
| 880 | case DEVINFO_STR_SHORT_NAME+1: strcpy(info->s = device_temp_str(), "s6d2"); break; | |
| 881 | case DEVINFO_STR_DESCRIPTION+0: strcpy(info->s = device_temp_str(), "Slot 6 Disk #1"); break; | |
| 882 | case DEVINFO_STR_DESCRIPTION+1: strcpy(info->s = device_temp_str(), "Slot 6 Disk #2"); break; | |
| 875 | case MESS_DEVINFO_STR_NAME+0: strcpy(info->s = device_temp_str(), "slot6disk1"); break; | |
| 876 | case MESS_DEVINFO_STR_NAME+1: strcpy(info->s = device_temp_str(), "slot6disk2"); break; | |
| 877 | case MESS_DEVINFO_STR_SHORT_NAME+0: strcpy(info->s = device_temp_str(), "s6d1"); break; | |
| 878 | case MESS_DEVINFO_STR_SHORT_NAME+1: strcpy(info->s = device_temp_str(), "s6d2"); break; | |
| 879 | case MESS_DEVINFO_STR_DESCRIPTION+0: strcpy(info->s = device_temp_str(), "Slot 6 Disk #1"); break; | |
| 880 | case MESS_DEVINFO_STR_DESCRIPTION+1: strcpy(info->s = device_temp_str(), "Slot 6 Disk #2"); break; | |
| 883 | 881 | |
| 884 | 882 | default: apple525_device_getinfo(devclass, state, info); break; |
| 885 | 883 | } |
| r1711 | r1712 | |
|---|---|---|
| 232 | 232 | MDRV_MACHINE_RESET( primoa ) |
| 233 | 233 | |
| 234 | 234 | /* video hardware */ |
| 235 | MDRV_ | |
| 235 | MDRV_SCREEN_ADD | |
| 236 | 236 | MDRV_SCREEN_REFRESH_RATE( 50 ) |
| 237 | 237 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 238 | 238 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
| 350 | 350 | switch(state) |
| 351 | 351 | { |
| 352 | 352 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 353 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 353 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 354 | 354 | |
| 355 | 355 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 356 | case DEVINFO_PTR_CASSETTE_FORMATS: info->p = (void *) primo_ptp_format; break; | |
| 357 | case DEVINFO_PTR_CASSETTE_OPTIONS: info->p = (void *) &primo_cassette_options; break; | |
| 356 | case MESS_DEVINFO_PTR_CASSETTE_FORMATS: info->p = (void *) primo_ptp_format; break; | |
| 357 | case MESS_DEVINFO_PTR_CASSETTE_OPTIONS: info->p = (void *) &primo_cassette_options; break; | |
| 358 | 358 | |
| 359 | 359 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 360 | case DEVINFO_INT_CASSETTE_DEFAULT_STATE: info->i = CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED; break; | |
| 360 | case MESS_DEVINFO_INT_CASSETTE_DEFAULT_STATE: info->i = CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED; break; | |
| 361 | 361 | |
| 362 | 362 | default: cassette_device_getinfo(devclass, state, info); break; |
| 363 | 363 | } |
| r1711 | r1712 | |
| 369 | 369 | switch(state) |
| 370 | 370 | { |
| 371 | 371 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 372 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "pss"); break; | |
| 372 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "pss"); break; | |
| 373 | 373 | |
| 374 | 374 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 375 | case DEVINFO_PTR_SNAPSHOT_LOAD: info->f = (genf *) snapshot_load_primo; break; | |
| 375 | case MESS_DEVINFO_PTR_SNAPSHOT_LOAD: info->f = (genf *) snapshot_load_primo; break; | |
| 376 | 376 | |
| 377 | 377 | default: snapshot_device_getinfo(devclass, state, info); break; |
| 378 | 378 | } |
| r1711 | r1712 | |
| 384 | 384 | switch(state) |
| 385 | 385 | { |
| 386 | 386 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 387 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "pp"); break; | |
| 387 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "pp"); break; | |
| 388 | 388 | |
| 389 | 389 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 390 | case DEVINFO_PTR_QUICKLOAD_LOAD: info->f = (genf *) quickload_load_primo; break; | |
| 390 | case MESS_DEVINFO_PTR_QUICKLOAD_LOAD: info->f = (genf *) quickload_load_primo; break; | |
| 391 | 391 | |
| 392 | 392 | default: quickload_device_getinfo(devclass, state, info); break; |
| 393 | 393 | } |
| r1711 | r1712 | |
| 399 | 399 | switch(state) |
| 400 | 400 | { |
| 401 | 401 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 402 | case DEVINFO_STR_DESCRIPTION+0: strcpy(info->s = device_temp_str(), "EPROM Expansion Bank #1"); break; | |
| 403 | case DEVINFO_STR_DESCRIPTION+1: strcpy(info->s = device_temp_str(), "EPROM Expansion Bank #2"); break; | |
| 404 | case DEVINFO_STR_DESCRIPTION+2: strcpy(info->s = device_temp_str(), "EPROM Expansion Bank #3"); break; | |
| 405 | case DEVINFO_STR_DESCRIPTION+3: strcpy(info->s = device_temp_str(), "EPROM Expansion Bank #4"); break; | |
| 402 | case MESS_DEVINFO_STR_DESCRIPTION+0: strcpy(info->s = device_temp_str(), "EPROM Expansion Bank #1"); break; | |
| 403 | case MESS_DEVINFO_STR_DESCRIPTION+1: strcpy(info->s = device_temp_str(), "EPROM Expansion Bank #2"); break; | |
| 404 | case MESS_DEVINFO_STR_DESCRIPTION+2: strcpy(info->s = device_temp_str(), "EPROM Expansion Bank #3"); break; | |
| 405 | case MESS_DEVINFO_STR_DESCRIPTION+3: strcpy(info->s = device_temp_str(), "EPROM Expansion Bank #4"); break; | |
| 406 | 406 | |
| 407 | 407 | default: cartslot_device_getinfo(devclass, state, info); break; |
| 408 | 408 | } |
| r1711 | r1712 | |
| 414 | 414 | switch(state) |
| 415 | 415 | { |
| 416 | 416 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 417 | case DEVINFO_INT_NOT_WORKING: info->i = 1; break; | |
| 417 | case MESS_DEVINFO_INT_NOT_WORKING: info->i = 1; break; | |
| 418 | 418 | |
| 419 | 419 | default: cbmfloppy_device_getinfo(devclass, state, info); break; |
| 420 | 420 | } |
| r1711 | r1712 | |
|---|---|---|
| 332 | 332 | MDRV_CPU_ADD_TAG("main", Z80, 2000000) /* 2 MHz */ |
| 333 | 333 | MDRV_CPU_PROGRAM_MAP(ti81_mem, 0) |
| 334 | 334 | MDRV_CPU_IO_MAP(ti81_io, 0) |
| 335 | MDRV_SCREEN_ADD("main", RASTER) | |
| 335 | 336 | MDRV_SCREEN_REFRESH_RATE(50) |
| 336 | 337 | MDRV_SCREEN_VBLANK_TIME(0) |
| 337 | 338 | MDRV_INTERLEAVE(1) |
| r1711 | r1712 | |
| 339 | 340 | MDRV_MACHINE_START( ti81 ) |
| 340 | 341 | |
| 341 | 342 | /* video hardware */ |
| 342 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 343 | 343 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 344 | 344 | MDRV_SCREEN_SIZE(96, 64) |
| 345 | 345 | MDRV_SCREEN_VISIBLE_AREA(0, 96-1, 0, 64-1) |
| 346 | 346 | MDRV_PALETTE_LENGTH(32*7 + 32768) |
| 347 | MDRV_COLORTABLE_LENGTH(32*7 + 32768) | |
| 348 | 347 | MDRV_PALETTE_INIT( ti85 ) |
| 349 | 348 | |
| 350 | 349 | MDRV_VIDEO_START( ti85 ) |
| r1711 | r1712 | |
| 469 | 468 | switch(state) |
| 470 | 469 | { |
| 471 | 470 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 472 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "sav"); break; | |
| 471 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "sav"); break; | |
| 473 | 472 | |
| 474 | 473 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 475 | case DEVINFO_PTR_SNAPSHOT_LOAD: info->f = (genf *) snapshot_load_ti8x; break; | |
| 474 | case MESS_DEVINFO_PTR_SNAPSHOT_LOAD: info->f = (genf *) snapshot_load_ti8x; break; | |
| 476 | 475 | |
| 477 | 476 | default: snapshot_device_getinfo(devclass, state, info); break; |
| 478 | 477 | } |
| r1711 | r1712 | |
| 484 | 483 | switch(state) |
| 485 | 484 | { |
| 486 | 485 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 487 | case DEVINFO_INT_TYPE: info->i = IO_SERIAL; break; | |
| 488 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 489 | case DEVINFO_INT_WRITEABLE: info->i = 0; break; | |
| 490 | case DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 491 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 486 | case MESS_DEVINFO_INT_TYPE: info->i = IO_SERIAL; break; | |
| 487 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 488 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 0; break; | |
| 489 | case MESS_DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 490 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 492 | 491 | |
| 493 | 492 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 494 | case DEVINFO_PTR_INIT: info->init = device_init_ti85_serial; break; | |
| 495 | case DEVINFO_PTR_LOAD: info->load = device_load_ti85_serial; break; | |
| 496 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_ti85_serial; break; | |
| 493 | case MESS_DEVINFO_PTR_INIT: info->init = device_init_ti85_serial; break; | |
| 494 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_ti85_serial; break; | |
| 495 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_ti85_serial; break; | |
| 497 | 496 | |
| 498 | 497 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 499 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "85p,85s,85i,85n,85c,85l,85k,85m,85v,85d,85e,85r,85g,85b"); break; | |
| 498 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "85p,85s,85i,85n,85c,85l,85k,85m,85v,85d,85e,85r,85g,85b"); break; | |
| 500 | 499 | } |
| 501 | 500 | } |
| 502 | 501 | |
| r1711 | r1712 | |
| 511 | 510 | switch(state) |
| 512 | 511 | { |
| 513 | 512 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 514 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "sav"); break; | |
| 513 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "sav"); break; | |
| 515 | 514 | |
| 516 | 515 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 517 | case DEVINFO_PTR_SNAPSHOT_LOAD: info->f = (genf *) snapshot_load_ti8x; break; | |
| 516 | case MESS_DEVINFO_PTR_SNAPSHOT_LOAD: info->f = (genf *) snapshot_load_ti8x; break; | |
| 518 | 517 | |
| 519 | 518 | default: snapshot_device_getinfo(devclass, state, info); break; |
| 520 | 519 | } |
| r1711 | r1712 | |
| 526 | 525 | switch(state) |
| 527 | 526 | { |
| 528 | 527 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 529 | case DEVINFO_INT_TYPE: info->i = IO_SERIAL; break; | |
| 530 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 531 | case DEVINFO_INT_WRITEABLE: info->i = 0; break; | |
| 532 | case DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 533 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 528 | case MESS_DEVINFO_INT_TYPE: info->i = IO_SERIAL; break; | |
| 529 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 530 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 0; break; | |
| 531 | case MESS_DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 532 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 534 | 533 | |
| 535 | 534 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 536 | case DEVINFO_PTR_INIT: info->init = device_init_ti85_serial; break; | |
| 537 | case DEVINFO_PTR_LOAD: info->load = device_load_ti85_serial; break; | |
| 538 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_ti85_serial; break; | |
| 535 | case MESS_DEVINFO_PTR_INIT: info->init = device_init_ti85_serial; break; | |
| 536 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_ti85_serial; break; | |
| 537 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_ti85_serial; break; | |
| 539 | 538 | |
| 540 | 539 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 541 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "86p,86s,86i,86n,86c,86l,86k,86m,86v,86d,86e,86r,86g"); break; | |
| 540 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "86p,86s,86i,86n,86c,86l,86k,86m,86v,86d,86e,86r,86g"); break; | |
| 542 | 541 | } |
| 543 | 542 | } |
| 544 | 543 |
| r1711 | r1712 | |
|---|---|---|
| 481 | 481 | MDRV_CPU_ADD_TAG("main", M65C02, 4000000) /* ? stz used! speed? */ |
| 482 | 482 | MDRV_CPU_PROGRAM_MAP(svision_mem, 0) |
| 483 | 483 | MDRV_CPU_VBLANK_INT(svision_frame_int, 1) |
| 484 | MDRV_SCREEN_ADD("main", RASTER) | |
| 484 | 485 | MDRV_SCREEN_REFRESH_RATE(61) |
| 485 | 486 | |
| 486 | 487 | MDRV_MACHINE_RESET( svision ) |
| 487 | 488 | |
| 488 | 489 | /* video hardware */ |
| 489 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) /* lcd */ | |
| 490 | 490 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 491 | 491 | /*MDRV_ASPECT_RATIO(160, 160)*/ |
| 492 | 492 | MDRV_SCREEN_SIZE(3+160+3, 160) |
| r1711 | r1712 | |
|---|---|---|
| 714 | 714 | |
| 715 | 715 | /* video hardware */ |
| 716 | 716 | MDRV_IMPORT_FROM( vh_vic2 ) |
| 717 | MDRV_SCREEN_ADD("main", RASTER) | |
| 717 | 718 | MDRV_SCREEN_REFRESH_RATE(VIC6567_VRETRACERATE) |
| 718 | 719 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 719 | 720 | |
| r1711 | r1712 | |
| 781 | 782 | switch(state) |
| 782 | 783 | { |
| 783 | 784 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 784 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "crt,80"); break; | |
| 785 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "crt,80"); break; | |
| 785 | 786 | |
| 786 | 787 | default: cbmcartslot_device_getinfo(devclass, state, info); break; |
| 787 | 788 | } |
| r1711 | r1712 | |
| 792 | 793 | switch(state) |
| 793 | 794 | { |
| 794 | 795 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 795 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "p00,prg,t64"); break; | |
| 796 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "p00,prg,t64"); break; | |
| 796 | 797 | |
| 797 | 798 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 798 | case DEVINFO_PTR_QUICKLOAD_LOAD: info->f = (genf *) quickload_load_cbm_c64; break; | |
| 799 | case MESS_DEVINFO_PTR_QUICKLOAD_LOAD: info->f = (genf *) quickload_load_cbm_c64; break; | |
| 799 | 800 | |
| 800 | 801 | /* --- the following bits of info are returned as doubles --- */ |
| 801 | case DEVINFO_FLOAT_QUICKLOAD_DELAY: info->d = CBM_QUICKLOAD_DELAY; break; | |
| 802 | case MESS_DEVINFO_FLOAT_QUICKLOAD_DELAY: info->d = CBM_QUICKLOAD_DELAY; break; | |
| 802 | 803 | |
| 803 | 804 | default: quickload_device_getinfo(devclass, state, info); break; |
| 804 | 805 | } |
| r1711 | r1712 | |
| 822 | 823 | switch(state) |
| 823 | 824 | { |
| 824 | 825 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 825 | case DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 826 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 826 | 827 | |
| 827 | 828 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 828 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "crt,e0,f0"); break; | |
| 829 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "crt,e0,f0"); break; | |
| 829 | 830 | |
| 830 | 831 | default: cbmcartslot_device_getinfo(devclass, state, info); break; |
| 831 | 832 | } |
| r1711 | r1712 | |
|---|---|---|
| 327 | 327 | |
| 328 | 328 | /* Video hardware */ |
| 329 | 329 | MDRV_IMPORT_FROM(tms9928a) |
| 330 | MDRV_SCREEN_ADD("main", RASTER) | |
| 330 | 331 | MDRV_SCREEN_REFRESH_RATE(50) |
| 331 | 332 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 332 | 333 | |
| r1711 | r1712 | |
| 365 | 366 | /* Video hardware */ |
| 366 | 367 | MDRV_DEFAULT_LAYOUT( layout_sv328806 ) |
| 367 | 368 | |
| 368 | MDRV_SCREEN_ADD(" | |
| 369 | MDRV_SCREEN_ADD("svi806", RASTER) | |
| 369 | 370 | MDRV_SCREEN_REFRESH_RATE(50) |
| 370 | 371 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 371 | 372 | MDRV_IMPORT_FROM(tms9928a) |
| 372 | 373 | MDRV_PALETTE_LENGTH(TMS9928A_PALETTE_SIZE + 2) /* 2 additional entries for monochrome svi806 output */ |
| 373 | 374 | |
| 374 | MDRV_SCREEN_ADD("svi806", 0) | |
| 375 | 375 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 376 | 376 | MDRV_SCREEN_REFRESH_RATE(60) |
| 377 | 377 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) |
| r1711 | r1712 | |
| 471 | 471 | switch(state) |
| 472 | 472 | { |
| 473 | 473 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 474 | case DEVINFO_INT_COUNT: | |
| 474 | case MESS_DEVINFO_INT_COUNT: | |
| 475 | 475 | info->i = 1; |
| 476 | 476 | break; |
| 477 | 477 | |
| r1711 | r1712 | |
| 487 | 487 | switch(state) |
| 488 | 488 | { |
| 489 | 489 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 490 | case DEVINFO_INT_COUNT: | |
| 490 | case MESS_DEVINFO_INT_COUNT: | |
| 491 | 491 | info->i = 1; |
| 492 | 492 | break; |
| 493 | 493 | |
| 494 | 494 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 495 | case DEVINFO_PTR_CASSETTE_FORMATS: | |
| 495 | case MESS_DEVINFO_PTR_CASSETTE_FORMATS: | |
| 496 | 496 | info->p = (void *) svi_cassette_formats; |
| 497 | 497 | break; |
| 498 | 498 | |
| r1711 | r1712 | |
| 508 | 508 | switch(state) |
| 509 | 509 | { |
| 510 | 510 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 511 | case DEVINFO_INT_COUNT: | |
| 511 | case MESS_DEVINFO_INT_COUNT: | |
| 512 | 512 | info->i = 1; |
| 513 | 513 | break; |
| 514 | 514 | |
| 515 | 515 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 516 | case DEVINFO_PTR_INIT: | |
| 516 | case MESS_DEVINFO_PTR_INIT: | |
| 517 | 517 | info->init = device_init_svi318_cart; |
| 518 | 518 | break; |
| 519 | case DEVINFO_PTR_LOAD: | |
| 519 | case MESS_DEVINFO_PTR_LOAD: | |
| 520 | 520 | info->load = device_load_svi318_cart; |
| 521 | 521 | break; |
| 522 | case DEVINFO_PTR_UNLOAD: | |
| 522 | case MESS_DEVINFO_PTR_UNLOAD: | |
| 523 | 523 | info->unload = device_unload_svi318_cart; |
| 524 | 524 | break; |
| 525 | 525 | |
| 526 | 526 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 527 | case DEVINFO_STR_FILE_EXTENSIONS: | |
| 527 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: | |
| 528 | 528 | strcpy(info->s = device_temp_str(), "rom"); |
| 529 | 529 | break; |
| 530 | 530 | |
| r1711 | r1712 | |
| 540 | 540 | switch(state) |
| 541 | 541 | { |
| 542 | 542 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 543 | case DEVINFO_INT_COUNT: | |
| 543 | case MESS_DEVINFO_INT_COUNT: | |
| 544 | 544 | info->i = 2; |
| 545 | 545 | break; |
| 546 | 546 | |
| 547 | 547 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 548 | case DEVINFO_PTR_LOAD: | |
| 548 | case MESS_DEVINFO_PTR_LOAD: | |
| 549 | 549 | info->load = device_load_svi318_floppy; |
| 550 | 550 | break; |
| 551 | 551 | |
| 552 | 552 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 553 | case DEVINFO_STR_FILE_EXTENSIONS: | |
| 553 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: | |
| 554 | 554 | strcpy(info->s = device_temp_str(), "dsk"); |
| 555 | 555 | break; |
| 556 | 556 |
| r1711 | r1712 | |
|---|---|---|
| 324 | 324 | switch(state) |
| 325 | 325 | { |
| 326 | 326 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 327 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 328 | case DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 327 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 328 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 329 | 329 | |
| 330 | 330 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 331 | case DEVINFO_PTR_LOAD: info->load = device_load_genesis_cart; break; | |
| 332 | case DEVINFO_PTR_PARTIAL_HASH: info->partialhash = NULL; /*genesis_partialhash*/ break; | |
| 331 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_genesis_cart; break; | |
| 332 | case MESS_DEVINFO_PTR_PARTIAL_HASH: info->partialhash = NULL; /*genesis_partialhash*/ break; | |
| 333 | 333 | |
| 334 | 334 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 335 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "smd,bin,md,gen"); break; | |
| 335 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "smd,bin,md,gen"); break; | |
| 336 | 336 | |
| 337 | 337 | default: cartslot_device_getinfo(devclass, state, info); break; |
| 338 | 338 | } |
| r1711 | r1712 | |
|---|---|---|
| 249 | 249 | MDRV_MACHINE_RESET( ti99 ) |
| 250 | 250 | |
| 251 | 251 | /* video hardware */ |
| 252 | MDRV_ | |
| 252 | MDRV_SC | |
| 253 | 253 | MDRV_SCREEN_REFRESH_RATE(60) /* or 50Hz */ |
| 254 | 254 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 255 | 255 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
| 257 | 257 | MDRV_SCREEN_VISIBLE_AREA(0, 512+32 - 1, 0, (212+16)*2 - 1) |
| 258 | 258 | |
| 259 | 259 | MDRV_PALETTE_LENGTH(512) |
| 260 | MDRV_COLORTABLE_LENGTH(512) | |
| 261 | 260 | |
| 262 | 261 | MDRV_PALETTE_INIT(v9938) |
| 263 | 262 | MDRV_VIDEO_START(ti99_4ev) |
| r1711 | r1712 | |
| 310 | 309 | switch(state) |
| 311 | 310 | { |
| 312 | 311 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 313 | case DEVINFO_INT_COUNT: info->i = 2; break; | |
| 312 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 314 | 313 | |
| 315 | 314 | default: cassette_device_getinfo(devclass, state, info); break; |
| 316 | 315 | } |
| r1711 | r1712 | |
| 323 | 322 | switch(state) |
| 324 | 323 | { |
| 325 | 324 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 326 | case DEVINFO_INT_COUNT: info->i = 4; break; | |
| 325 | case MESS_DEVINFO_INT_COUNT: info->i = 4; break; | |
| 327 | 326 | |
| 328 | 327 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 329 | case DEVINFO_PTR_FLOPPY_OPTIONS: info->p = (void *) floppyoptions_ti99; break; | |
| 328 | case MESS_DEVINFO_PTR_FLOPPY_OPTIONS: info->p = (void *) floppyoptions_ti99; break; | |
| 330 | 329 | |
| 331 | 330 | default: floppy_device_getinfo(devclass, state, info); break; |
| 332 | 331 | } |
| r1711 | r1712 | |
| 338 | 337 | switch(state) |
| 339 | 338 | { |
| 340 | 339 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 341 | case DEVINFO_INT_TYPE: info->i = IO_HARDDISK; break; | |
| 342 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 343 | case DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 344 | case DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 345 | case DEVINFO_INT_COUNT: info->i = 3; break; | |
| 340 | case MESS_DEVINFO_INT_TYPE: info->i = IO_HARDDISK; break; | |
| 341 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 342 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 343 | case MESS_DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 344 | case MESS_DEVINFO_INT_COUNT: info->i = 3; break; | |
| 346 | 345 | |
| 347 | 346 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 348 | case DEVINFO_PTR_INIT: info->init = device_init_mess_hd; break; | |
| 349 | case DEVINFO_PTR_LOAD: info->load = device_load_ti99_hd; break; | |
| 350 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_ti99_hd; break; | |
| 347 | case MESS_DEVINFO_PTR_INIT: info->init = device_init_mess_hd; break; | |
| 348 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_ti99_hd; break; | |
| 349 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_ti99_hd; break; | |
| 351 | 350 | |
| 352 | 351 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 353 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "hd"); break; | |
| 352 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "hd"); break; | |
| 354 | 353 | } |
| 355 | 354 | } |
| 356 | 355 | |
| r1711 | r1712 | |
| 360 | 359 | switch(state) |
| 361 | 360 | { |
| 362 | 361 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 363 | case DEVINFO_INT_TYPE: info->i = IO_PARALLEL; break; | |
| 364 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 365 | case DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 366 | case DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 367 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 362 | case MESS_DEVINFO_INT_TYPE: info->i = IO_PARALLEL; break; | |
| 363 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 364 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 365 | case MESS_DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 366 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 368 | 367 | |
| 369 | 368 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 370 | case DEVINFO_PTR_LOAD: info->load = device_load_ti99_4_pio; break; | |
| 371 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_ti99_4_pio; break; | |
| 369 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_ti99_4_pio; break; | |
| 370 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_ti99_4_pio; break; | |
| 372 | 371 | } |
| 373 | 372 | } |
| 374 | 373 | |
| r1711 | r1712 | |
| 378 | 377 | switch(state) |
| 379 | 378 | { |
| 380 | 379 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 381 | case DEVINFO_INT_TYPE: info->i = IO_SERIAL; break; | |
| 382 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 383 | case DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 384 | case DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 385 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 380 | case MESS_DEVINFO_INT_TYPE: info->i = IO_SERIAL; break; | |
| 381 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 382 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 383 | case MESS_DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 384 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 386 | 385 | |
| 387 | 386 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 388 | case DEVINFO_PTR_LOAD: info->load = device_load_ti99_4_rs232; break; | |
| 389 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_ti99_4_rs232; break; | |
| 387 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_ti99_4_rs232; break; | |
| 388 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_ti99_4_rs232; break; | |
| 390 | 389 | } |
| 391 | 390 | } |
| 392 | 391 | |
| r1711 | r1712 | |
| 397 | 396 | switch(state) |
| 398 | 397 | { |
| 399 | 398 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 400 | case DEVINFO_INT_TYPE: info->i = IO_QUICKLOAD; break; | |
| 401 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 402 | case DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 403 | case DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 404 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 405 | case DEVINFO_INT_RESET_ON_LOAD: info->i = 1; break; | |
| 399 | case MESS_DEVINFO_INT_TYPE: info->i = IO_QUICKLOAD; break; | |
| 400 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 401 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 402 | case MESS_DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 403 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 404 | case MESS_DEVINFO_INT_RESET_ON_LOAD: info->i = 1; break; | |
| 406 | 405 | |
| 407 | 406 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 408 | case DEVINFO_PTR_LOAD: info->load = device_load_ti99_hsgpl; break; | |
| 409 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_ti99_hsgpl; break; | |
| 407 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_ti99_hsgpl; break; | |
| 408 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_ti99_hsgpl; break; | |
| 410 | 409 | } |
| 411 | 410 | } |
| 412 | 411 | #endif |
| r1711 | r1712 | |
| 417 | 416 | switch(state) |
| 418 | 417 | { |
| 419 | 418 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 420 | case DEVINFO_INT_TYPE: info->i = IO_MEMCARD; break; | |
| 421 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 422 | case DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 423 | case DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 424 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 419 | case MESS_DEVINFO_INT_TYPE: info->i = IO_MEMCARD; break; | |
| 420 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 421 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 422 | case MESS_DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 423 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 425 | 424 | |
| 426 | 425 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 427 | case DEVINFO_PTR_INIT: info->init = device_init_smartmedia; break; | |
| 428 | case DEVINFO_PTR_LOAD: info->load = device_load_smartmedia; break; | |
| 429 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_smartmedia; break; | |
| 426 | case MESS_DEVINFO_PTR_INIT: info->init = device_init_smartmedia; break; | |
| 427 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_smartmedia; break; | |
| 428 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_smartmedia; break; | |
| 430 | 429 | } |
| 431 | 430 | } |
| 432 | 431 |
| r1711 | r1712 | |
|---|---|---|
| 1159 | 1159 | MDRV_MACHINE_RESET(pc_mda) |
| 1160 | 1160 | |
| 1161 | 1161 | /* video hardware */ |
| 1162 | MDRV_ | |
| 1162 | MDRV_SC | |
| 1163 | 1163 | MDRV_SCREEN_REFRESH_RATE(60) |
| 1164 | 1164 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 1165 | 1165 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
| 1167 | 1167 | MDRV_SCREEN_VISIBLE_AREA(0,80*9-1, 0,25*14-1) |
| 1168 | 1168 | MDRV_GFXDECODE(pc_mda) |
| 1169 | 1169 | MDRV_PALETTE_LENGTH(sizeof(cga_palette) / sizeof(cga_palette[0])) |
| 1170 | MDRV_COLORTABLE_LENGTH(sizeof(mda_colortable) / sizeof(mda_colortable[0])) | |
| 1171 | 1170 | MDRV_PALETTE_INIT(pc_mda) |
| 1172 | 1171 | |
| 1173 | 1172 | MDRV_VIDEO_START(pc_mda) |
| r1711 | r1712 | |
| 1229 | 1228 | MDRV_MACHINE_RESET(pc_aga) |
| 1230 | 1229 | |
| 1231 | 1230 | /* video hardware */ |
| 1232 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1233 | 1231 | MDRV_SCREEN_REFRESH_RATE(60) |
| 1234 | 1232 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 1235 | 1233 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
| 1237 | 1235 | MDRV_SCREEN_VISIBLE_AREA(0,80*9-1, 0,25*14-1) |
| 1238 | 1236 | MDRV_GFXDECODE(europc) |
| 1239 | 1237 | MDRV_PALETTE_LENGTH(sizeof(cga_palette) / sizeof(cga_palette[0])) |
| 1240 | MDRV_COLORTABLE_LENGTH((sizeof(cga_colortable)+sizeof(mda_colortable) )/sizeof(cga_colortable[0])) | |
| 1241 | 1238 | MDRV_PALETTE_INIT(pc_aga) |
| 1242 | 1239 | |
| 1243 | 1240 | MDRV_VIDEO_START(pc_aga) |
| r1711 | r1712 | |
| 1295 | 1292 | MDRV_MACHINE_RESET(pc_aga) |
| 1296 | 1293 | |
| 1297 | 1294 | /* video hardware */ |
| 1298 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 1299 | 1295 | MDRV_SCREEN_REFRESH_RATE(60) |
| 1300 | 1296 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 1301 | 1297 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
| 1303 | 1299 | MDRV_SCREEN_VISIBLE_AREA(0,80*8-1, 0,25*14-1) |
| 1304 | 1300 | MDRV_GFXDECODE(aga) |
| 1305 | 1301 | MDRV_PALETTE_LENGTH(sizeof(cga_palette) / sizeof(cga_palette[0])) |
| 1306 | MDRV_COLORTABLE_LENGTH((sizeof(cga_colortable)+sizeof(mda_colortable) )/sizeof(cga_colortable[0])) | |
| 1307 | 1302 | MDRV_PALETTE_INIT(pc_aga) |
| 1308 | 1303 | |
| 1309 | 1304 | MDRV_VIDEO_START(pc200) /* PC200 needs its own video init */ |
| r1711 | r1712 | |
| 1681 | 1676 | switch(state) |
| 1682 | 1677 | { |
| 1683 | 1678 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 1684 | case DEVINFO_INT_COUNT: info->i = 2; break; | |
| 1679 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 1685 | 1680 | |
| 1686 | 1681 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 1687 | case DEVINFO_PTR_FLOPPY_OPTIONS: info->p = (void *) floppyoptions_pc; break; | |
| 1682 | case MESS_DEVINFO_PTR_FLOPPY_OPTIONS: info->p = (void *) floppyoptions_pc; break; | |
| 1688 | 1683 | |
| 1689 | 1684 | default: floppy_device_getinfo(devclass, state, info); break; |
| 1690 | 1685 | } |
| r1711 | r1712 | |
| 1696 | 1691 | switch(state) |
| 1697 | 1692 | { |
| 1698 | 1693 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 1699 | case DEVINFO_INT_COUNT: info->i = 3; break; | |
| 1694 | case MESS_DEVINFO_INT_COUNT: info->i = 3; break; | |
| 1700 | 1695 | |
| 1701 | 1696 | default: printer_device_getinfo(devclass, state, info); break; |
| 1702 | 1697 | } |
| r1711 | r1712 | |
| 1708 | 1703 | switch(state) |
| 1709 | 1704 | { |
| 1710 | 1705 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 1711 | case DEVINFO_INT_COUNT: info->i = 4; break; | |
| 1706 | case MESS_DEVINFO_INT_COUNT: info->i = 4; break; | |
| 1712 | 1707 | |
| 1713 | 1708 | default: harddisk_device_getinfo(devclass, state, info); break; |
| 1714 | 1709 | } |
| r1711 | r1712 | |
|---|---|---|
| 149 | 149 | MDRV_MACHINE_RESET( pce ) |
| 150 | 150 | |
| 151 | 151 | /* video hardware */ |
| 152 | MDRV_ | |
| 152 | MDRV_SC | |
| 153 | 153 | MDRV_SCREEN_REFRESH_RATE(60) |
| 154 | 154 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 155 | 155 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 156 | MDRV_SCREEN_ADD("main",0) | |
| 157 | 156 | MDRV_SCREEN_RAW_PARAMS(MAIN_CLOCK/2, VDC_WPF, 70, 70 + 512 + 32, VDC_LPF, 14, 14+242) |
| 158 | 157 | /* MDRV_GFXDECODE( pce ) */ |
| 159 | 158 | MDRV_PALETTE_LENGTH(1024) |
| 160 | 159 | MDRV_PALETTE_INIT( vce ) |
| 161 | MDRV_COLORTABLE_LENGTH(1024) | |
| 162 | 160 | |
| 163 | 161 | MDRV_VIDEO_START( pce ) |
| 164 | 162 | MDRV_VIDEO_UPDATE( pce ) |
| r1711 | r1712 | |
| 190 | 188 | MDRV_MACHINE_RESET( pce ) |
| 191 | 189 | |
| 192 | 190 | /* video hardware */ |
| 193 | MDRV_ | |
| 191 | MDRV_SC | |
| 194 | 192 | MDRV_SCREEN_REFRESH_RATE(60) |
| 195 | 193 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 196 | 194 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 197 | MDRV_SCREEN_ADD("main",0) | |
| 198 | 195 | MDRV_SCREEN_RAW_PARAMS(MAIN_CLOCK/2, VDC_WPF, 70, 70 + 512 + 32, VDC_LPF, 14, 14+242) |
| 199 | 196 | MDRV_PALETTE_LENGTH(1024) |
| 200 | 197 | MDRV_PALETTE_INIT( vce ) |
| 201 | MDRV_COLORTABLE_LENGTH(1024) | |
| 202 | 198 | |
| 203 | 199 | MDRV_VIDEO_START( pce ) |
| 204 | 200 | MDRV_VIDEO_UPDATE( pce ) |
| r1711 | r1712 | |
| 235 | 231 | switch(state) |
| 236 | 232 | { |
| 237 | 233 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 238 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 239 | case DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 234 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 235 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 240 | 236 | |
| 241 | 237 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 242 | case DEVINFO_PTR_LOAD: info->load = device_load_pce_cart; break; | |
| 243 | case DEVINFO_PTR_PARTIAL_HASH: info->partialhash = pce_partialhash; break; | |
| 238 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_pce_cart; break; | |
| 239 | case MESS_DEVINFO_PTR_PARTIAL_HASH: info->partialhash = pce_partialhash; break; | |
| 244 | 240 | |
| 245 | 241 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 246 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "pce"); break; | |
| 242 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "pce"); break; | |
| 247 | 243 | |
| 248 | 244 | default: cartslot_device_getinfo(devclass, state, info); break; |
| 249 | 245 | } |
| r1711 | r1712 | |
| 251 | 247 | |
| 252 | 248 | static void pce_chdcd_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) { |
| 253 | 249 | switch( state ) { |
| 254 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 250 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 255 | 251 | default: cdrom_device_getinfo(devclass, state, info); |
| 256 | 252 | } |
| 257 | 253 | } |
| r1711 | r1712 | |
|---|---|---|
| 512 | 512 | |
| 513 | 513 | /* video hardware */ |
| 514 | 514 | MDRV_IMPORT_FROM(tms9928a) |
| 515 | MDRV_SCREEN_ADD("main", RASTER) | |
| 515 | 516 | MDRV_SCREEN_REFRESH_RATE(60) |
| 516 | 517 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 517 | 518 | |
| r1711 | r1712 | |
| 624 | 625 | MDRV_MACHINE_RESET( ti99 ) |
| 625 | 626 | |
| 626 | 627 | /* video hardware */ |
| 627 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 628 | 628 | MDRV_SCREEN_REFRESH_RATE(60) /* or 50Hz */ |
| 629 | 629 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 630 | 630 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
| 632 | 632 | MDRV_SCREEN_VISIBLE_AREA(0, 512+32 - 1, 0, (212+28)*2 - 1) |
| 633 | 633 | |
| 634 | 634 | MDRV_PALETTE_LENGTH(512) |
| 635 | MDRV_COLORTABLE_LENGTH(512) | |
| 636 | 635 | |
| 637 | 636 | MDRV_PALETTE_INIT(v9938) |
| 638 | 637 | MDRV_VIDEO_START(ti99_4ev) |
| r1711 | r1712 | |
| 758 | 757 | switch(state) |
| 759 | 758 | { |
| 760 | 759 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 761 | case DEVINFO_INT_COUNT: info->i = 2; break; | |
| 760 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 762 | 761 | |
| 763 | 762 | default: cassette_device_getinfo(devclass, state, info); break; |
| 764 | 763 | } |
| r1711 | r1712 | |
| 770 | 769 | switch(state) |
| 771 | 770 | { |
| 772 | 771 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 773 | case DEVINFO_INT_TYPE: info->i = IO_CARTSLOT; break; | |
| 774 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 775 | case DEVINFO_INT_WRITEABLE: info->i = 0; break; | |
| 776 | case DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 777 | case DEVINFO_INT_COUNT: info->i = 3; break; | |
| 772 | case MESS_DEVINFO_INT_TYPE: info->i = IO_CARTSLOT; break; | |
| 773 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 774 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 0; break; | |
| 775 | case MESS_DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 776 | case MESS_DEVINFO_INT_COUNT: info->i = 3; break; | |
| 778 | 777 | |
| 779 | 778 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 780 | case DEVINFO_PTR_INIT: info->init = device_init_ti99_cart; break; | |
| 781 | case DEVINFO_PTR_LOAD: info->load = device_load_ti99_cart; break; | |
| 782 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_ti99_cart; break; | |
| 779 | case MESS_DEVINFO_PTR_INIT: info->init = device_init_ti99_cart; break; | |
| 780 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_ti99_cart; break; | |
| 781 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_ti99_cart; break; | |
| 783 | 782 | |
| 784 | 783 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 785 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "bin,c,d,g,m,crom,drom,grom,mrom"); break; | |
| 784 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "bin,c,d,g,m,crom,drom,grom,mrom"); break; | |
| 786 | 785 | } |
| 787 | 786 | } |
| 788 | 787 | |
| r1711 | r1712 | |
| 792 | 791 | switch(state) |
| 793 | 792 | { |
| 794 | 793 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 795 | case DEVINFO_INT_COUNT: info->i = 4; break; | |
| 794 | case MESS_DEVINFO_INT_COUNT: info->i = 4; break; | |
| 796 | 795 | |
| 797 | 796 | /* Used within mflopimg.c. */ |
| 798 | case DEVINFO_INT_KEEP_DRIVE_GEOMETRY: info->i = 1; break; | |
| 797 | case MESS_DEVINFO_INT_KEEP_DRIVE_GEOMETRY: info->i = 1; break; | |
| 799 | 798 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 800 | case DEVINFO_PTR_FLOPPY_OPTIONS: info->p = (void *) floppyoptions_ti99; break; | |
| 799 | case MESS_DEVINFO_PTR_FLOPPY_OPTIONS: info->p = (void *) floppyoptions_ti99; break; | |
| 801 | 800 | |
| 802 | 801 | default: floppy_device_getinfo(devclass, state, info); break; |
| 803 | 802 | } |
| r1711 | r1712 | |
| 809 | 808 | switch(state) |
| 810 | 809 | { |
| 811 | 810 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 812 | case DEVINFO_INT_TYPE: info->i = IO_HARDDISK; break; | |
| 813 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 814 | case DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 815 | case DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 816 | case DEVINFO_INT_COUNT: info->i = 3; break; | |
| 811 | case MESS_DEVINFO_INT_TYPE: info->i = IO_HARDDISK; break; | |
| 812 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 813 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 814 | case MESS_DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 815 | case MESS_DEVINFO_INT_COUNT: info->i = 3; break; | |
| 817 | 816 | |
| 818 | 817 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 819 | case DEVINFO_PTR_INIT: info->init = device_init_mess_hd; break; | |
| 820 | case DEVINFO_PTR_LOAD: info->load = device_load_ti99_hd; break; | |
| 821 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_ti99_hd; break; | |
| 818 | case MESS_DEVINFO_PTR_INIT: info->init = device_init_mess_hd; break; | |
| 819 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_ti99_hd; break; | |
| 820 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_ti99_hd; break; | |
| 822 | 821 | |
| 823 | 822 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 824 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "hd"); break; | |
| 825 | case DEVINFO_STR_DEV_TAG: strcpy(info->s = device_temp_str(), "ti99_4x_hd"); break; | |
| 823 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "hd"); break; | |
| 824 | case MESS_DEVINFO_STR_DEV_TAG: strcpy(info->s = device_temp_str(), "ti99_4x_hd"); break; | |
| 826 | 825 | } |
| 827 | 826 | } |
| 828 | 827 | |
| r1711 | r1712 | |
| 832 | 831 | switch(state) |
| 833 | 832 | { |
| 834 | 833 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 835 | case DEVINFO_INT_TYPE: info->i = IO_PARALLEL; break; | |
| 836 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 837 | case DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 838 | case DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 839 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 834 | case MESS_DEVINFO_INT_TYPE: info->i = IO_PARALLEL; break; | |
| 835 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 836 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 837 | case MESS_DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 838 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 840 | 839 | |
| 841 | 840 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 842 | case DEVINFO_PTR_LOAD: info->load = device_load_ti99_4_pio; break; | |
| 843 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_ti99_4_pio; break; | |
| 841 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_ti99_4_pio; break; | |
| 842 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_ti99_4_pio; break; | |
| 844 | 843 | |
| 845 | 844 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 846 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), ""); break; | |
| 845 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), ""); break; | |
| 847 | 846 | } |
| 848 | 847 | } |
| 849 | 848 | |
| r1711 | r1712 | |
| 853 | 852 | switch(state) |
| 854 | 853 | { |
| 855 | 854 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 856 | case DEVINFO_INT_TYPE: info->i = IO_SERIAL; break; | |
| 857 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 858 | case DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 859 | case DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 860 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 855 | case MESS_DEVINFO_INT_TYPE: info->i = IO_SERIAL; break; | |
| 856 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 857 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 858 | case MESS_DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 859 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 861 | 860 | |
| 862 | 861 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 863 | case DEVINFO_PTR_LOAD: info->load = device_load_ti99_4_rs232; break; | |
| 864 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_ti99_4_rs232; break; | |
| 862 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_ti99_4_rs232; break; | |
| 863 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_ti99_4_rs232; break; | |
| 865 | 864 | |
| 866 | 865 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 867 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), ""); break; | |
| 866 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), ""); break; | |
| 868 | 867 | } |
| 869 | 868 | } |
| 870 | 869 | |
| r1711 | r1712 | |
| 875 | 874 | switch(state) |
| 876 | 875 | { |
| 877 | 876 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 878 | case DEVINFO_INT_TYPE: info->i = IO_QUICKLOAD; break; | |
| 879 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 880 | case DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 881 | case DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 882 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 883 | case DEVINFO_INT_RESET_ON_LOAD: info->i = 1; break; | |
| 877 | case MESS_DEVINFO_INT_TYPE: info->i = IO_QUICKLOAD; break; | |
| 878 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 879 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 880 | case MESS_DEVINFO_INT_CREATABLE: info->i = 1; break; | |
| 881 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 882 | case MESS_DEVINFO_INT_RESET_ON_LOAD: info->i = 1; break; | |
| 884 | 883 | |
| 885 | 884 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 886 | case DEVINFO_PTR_LOAD: info->load = device_load_ti99_hsgpl; break; | |
| 887 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_ti99_hsgpl; break; | |
| 885 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_ti99_hsgpl; break; | |
| 886 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_ti99_hsgpl; break; | |
| 888 | 887 | } |
| 889 | 888 | } |
| 890 | 889 | #endif |
| r1711 | r1712 | |
| 895 | 894 | switch(state) |
| 896 | 895 | { |
| 897 | 896 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 898 | case DEVINFO_INT_TYPE: info->i = IO_MEMCARD; break; | |
| 899 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 900 | case DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 901 | case DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 902 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 897 | case MESS_DEVINFO_INT_TYPE: info->i = IO_MEMCARD; break; | |
| 898 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 899 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 1; break; | |
| 900 | case MESS_DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 901 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 903 | 902 | |
| 904 | 903 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 905 | case DEVINFO_PTR_INIT: info->init = device_init_smartmedia; break; | |
| 906 | case DEVINFO_PTR_LOAD: info->load = device_load_smartmedia; break; | |
| 907 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_smartmedia; break; | |
| 904 | case MESS_DEVINFO_PTR_INIT: info->init = device_init_smartmedia; break; | |
| 905 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_smartmedia; break; | |
| 906 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_smartmedia; break; | |
| 908 | 907 | |
| 909 | 908 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 910 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), ""); break; | |
| 909 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), ""); break; | |
| 911 | 910 | } |
| 912 | 911 | } |
| 913 | 912 |
| r1711 | r1712 | |
|---|---|---|
| 597 | 597 | switch(state) |
| 598 | 598 | { |
| 599 | 599 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 600 | case DEVINFO_INT_COUNT: info->i = 4; break; | |
| 600 | case MESS_DEVINFO_INT_COUNT: info->i = 4; break; | |
| 601 | 601 | |
| 602 | 602 | default: cdrom_device_getinfo(devclass, state, info); |
| 603 | 603 | } |
| r1711 | r1712 | |
| 620 | 620 | MDRV_NVRAM_HANDLER(93C56) |
| 621 | 621 | |
| 622 | 622 | /* video hardware */ |
| 623 | MDRV_ | |
| 623 | MDRV_SC | |
| 624 | 624 | MDRV_SCREEN_REFRESH_RATE( 60 ) |
| 625 | 625 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 626 | 626 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
|---|---|---|
| 166 | 166 | 0, 0, 0 // black |
| 167 | 167 | }; |
| 168 | 168 | |
| 169 | static const unsigned short vc4000_colortable[1][2] = | |
| 170 | { | |
| 171 | { 0, 1 }, | |
| 172 | }; | |
| 173 | ||
| 174 | 169 | static PALETTE_INIT( vc4000 ) |
| 175 | 170 | { |
| 176 | 171 | palette_set_colors_rgb(machine, 0, vc4000_palette, sizeof(vc4000_palette) / 3); |
| 177 | memcpy(colortable, vc4000_colortable,sizeof(vc4000_colortable)); | |
| 178 | 172 | } |
| 179 | 173 | |
| 180 | 174 | static MACHINE_DRIVER_START( vc4000 ) |
| r1711 | r1712 | |
| 186 | 180 | MDRV_INTERLEAVE(1) |
| 187 | 181 | |
| 188 | 182 | /* video hardware */ |
| 189 | MDRV_ | |
| 183 | MDRV_SC | |
| 190 | 184 | MDRV_SCREEN_REFRESH_RATE(50) |
| 191 | 185 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) |
| 192 | 186 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| r1711 | r1712 | |
| 194 | 188 | MDRV_SCREEN_VISIBLE_AREA(10, 182, 0, 269) |
| 195 | 189 | MDRV_GFXDECODE( vc4000 ) |
| 196 | 190 | MDRV_PALETTE_LENGTH(sizeof(vc4000_palette) / 3) |
| 197 | MDRV_COLORTABLE_LENGTH(sizeof (vc4000_colortable) / sizeof(vc4000_colortable[0][0])) | |
| 198 | 191 | MDRV_PALETTE_INIT( vc4000 ) |
| 199 | 192 | |
| 200 | 193 | MDRV_VIDEO_START( vc4000 ) |
| r1711 | r1712 | |
|---|---|---|
| 123 | 123 | MDRV_CPU_PROGRAM_MAP(galaxy_mem, 0) |
| 124 | 124 | MDRV_CPU_IO_MAP(galaxy_readport, galaxy_writeport) |
| 125 | 125 | MDRV_CPU_VBLANK_INT(galaxy_interrupt, 1) |
| 126 | MDRV_SCREEN_ADD("main", RASTER) | |
| 126 | 127 | MDRV_SCREEN_REFRESH_RATE(50) |
| 127 | 128 | MDRV_SCREEN_VBLANK_TIME(0) |
| 128 | 129 | MDRV_INTERLEAVE(1) |
| r1711 | r1712 | |
| 130 | 131 | MDRV_MACHINE_RESET( galaxy ) |
| 131 | 132 | |
| 132 | 133 | /* video hardware */ |
| 133 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 134 | 134 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 135 | 135 | MDRV_SCREEN_SIZE(256, 218) |
| 136 | 136 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0, 218-1) |
| 137 | 137 | MDRV_GFXDECODE( galaxy ) |
| 138 | 138 | MDRV_PALETTE_LENGTH(sizeof (galaxy_palette) / 3) |
| 139 | MDRV_COLORTABLE_LENGTH(sizeof (galaxy_colortable)) | |
| 140 | 139 | MDRV_PALETTE_INIT( galaxy ) |
| 141 | 140 | |
| 142 | 141 | MDRV_VIDEO_START( galaxy ) |
| r1711 | r1712 | |
| 157 | 156 | switch(state) |
| 158 | 157 | { |
| 159 | 158 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 160 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "gal"); break; | |
| 159 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "gal"); break; | |
| 161 | 160 | |
| 162 | 161 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 163 | case DEVINFO_PTR_SNAPSHOT_LOAD: info->f = (genf *) snapshot_load_galaxy; break; | |
| 162 | case MESS_DEVINFO_PTR_SNAPSHOT_LOAD: info->f = (genf *) snapshot_load_galaxy; break; | |
| 164 | 163 | |
| 165 | 164 | default: snapshot_device_getinfo(devclass, state, info); break; |
| 166 | 165 | } |
| r1711 | r1712 | |
|---|---|---|
| 289 | 289 | |
| 290 | 290 | |
| 291 | 291 | |
| 292 | static const unsigned short bbc_colour_table[8]= | |
| 293 | { | |
| 294 | 0,1,2,3,4,5,6,7 | |
| 295 | }; | |
| 296 | ||
| 297 | 292 | static const rgb_t bbc_palette[8]= |
| 298 | 293 | { |
| 299 | 294 | MAKE_RGB(0x0ff,0x0ff,0x0ff), |
| r1711 | r1712 | |
| 309 | 304 | static PALETTE_INIT( bbc ) |
| 310 | 305 | { |
| 311 | 306 | palette_set_colors(machine, 0, bbc_palette, ARRAY_LENGTH(bbc_palette)); |
| 312 | memcpy(colortable,bbc_colour_table,sizeof(bbc_colour_table)); | |
| 313 | 307 | } |
| 314 | 308 | |
| 315 | 309 | static INPUT_PORTS_START(bbca) |
| r1711 | r1712 | |
| 726 | 720 | MDRV_CPU_PROGRAM_MAP( bbca_mem, 0 ) |
| 727 | 721 | MDRV_CPU_VBLANK_INT(bbcb_vsync, 1) /* screen refresh interrupts */ |
| 728 | 722 | MDRV_CPU_PERIODIC_INT(bbcb_keyscan, 1000) /* scan keyboard */ |
| 723 | MDRV_SCREEN_ADD("main", RASTER) | |
| 729 | 724 | MDRV_SCREEN_REFRESH_RATE(50) |
| 730 | 725 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(128)) |
| 731 | 726 | MDRV_INTERLEAVE(1) |
| r1711 | r1712 | |
| 734 | 729 | MDRV_MACHINE_RESET( bbca ) |
| 735 | 730 | |
| 736 | 731 | /* video hardware */ |
| 737 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 738 | 732 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 739 | 733 | MDRV_SCREEN_SIZE(800,300) |
| 740 | 734 | MDRV_SCREEN_VISIBLE_AREA(0,800-1,0,300-1) |
| 741 | 735 | MDRV_PALETTE_LENGTH(16) |
| 742 | MDRV_COLORTABLE_LENGTH(16) | |
| 743 | 736 | MDRV_PALETTE_INIT(bbc) |
| 744 | 737 | |
| 745 | 738 | MDRV_VIDEO_START(bbca) |
| r1711 | r1712 | |
| 798 | 791 | MDRV_MACHINE_RESET( bbcm ) |
| 799 | 792 | |
| 800 | 793 | /* video hardware */ |
| 801 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 802 | 794 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 803 | 795 | MDRV_SCREEN_SIZE(800,300) |
| 804 | 796 | MDRV_SCREEN_VISIBLE_AREA(0,800-1,0,300-1) |
| 805 | 797 | MDRV_PALETTE_LENGTH(16) |
| 806 | MDRV_COLORTABLE_LENGTH(16) | |
| 807 | 798 | MDRV_PALETTE_INIT(bbc) |
| 808 | 799 | |
| 809 | 800 | MDRV_VIDEO_START(bbcm) |
| r1711 | r1712 | |
| 823 | 814 | switch(state) |
| 824 | 815 | { |
| 825 | 816 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 826 | case DEVINFO_INT_COUNT: info->i = 4; break; | |
| 817 | case MESS_DEVINFO_INT_COUNT: info->i = 4; break; | |
| 827 | 818 | |
| 828 | 819 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 829 | case DEVINFO_PTR_LOAD: info->load = device_load_bbcb_cart; break; | |
| 820 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_bbcb_cart; break; | |
| 830 | 821 | |
| 831 | 822 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 832 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "rom"); break; | |
| 823 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "rom"); break; | |
| 833 | 824 | |
| 834 | 825 | default: cartslot_device_getinfo(devclass, state, info); break; |
| 835 | 826 | } |
| r1711 | r1712 | |
| 841 | 832 | switch(state) |
| 842 | 833 | { |
| 843 | 834 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 844 | case DEVINFO_INT_COUNT: info->i = 2; break; | |
| 835 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 845 | 836 | |
| 846 | 837 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 847 | case DEVINFO_PTR_LOAD: info->load = device_load_bbc_floppy; break; | |
| 838 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_bbc_floppy; break; | |
| 848 | 839 | |
| 849 | 840 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 850 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "ssd,bbc,img"); break; | |
| 841 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "ssd,bbc,img"); break; | |
| 851 | 842 | |
| 852 | 843 | default: legacybasicdsk_device_getinfo(devclass, state, info); break; |
| 853 | 844 | } |
| r1711 | r1712 | |
| 855 | 846 | |
| 856 | 847 | static void bbc_cassette_getinfo( const device_class *devclass, UINT32 state, union devinfo *info ) { |
| 857 | 848 | switch( state ) { |
| 858 | case DEVINFO_INT_COUNT: | |
| 849 | case MESS_DEVINFO_INT_COUNT: | |
| 859 | 850 | info->i = 1; |
| 860 | 851 | break; |
| 861 | case DEVINFO_PTR_CASSETTE_FORMATS: | |
| 852 | case MESS_DEVINFO_PTR_CASSETTE_FORMATS: | |
| 862 | 853 | info->p = (void *)bbc_cassette_formats; |
| 863 | 854 | break; |
| 864 | 855 | default: |
| r1711 | r1712 | |
| 873 | 864 | switch(state) |
| 874 | 865 | { |
| 875 | 866 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 876 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 867 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 877 | 868 | |
| 878 | 869 | default: printer_device_getinfo(devclass, state, info); break; |
| 879 | 870 | } |
| r1711 | r1712 | |
|---|---|---|
| 44 | 44 | |
| 45 | 45 | MDRV_MACHINE_RESET( gamepock ) |
| 46 | 46 | |
| 47 | MDRV_SCREEN_ADD("main", RASTER) | |
| 47 | 48 | MDRV_SCREEN_REFRESH_RATE( 60 ) |
| 48 | MDRV_VIDEO_ATTRIBUTES( VIDEO_TYPE_RASTER ) | |
| 49 | 49 | MDRV_SCREEN_FORMAT( BITMAP_FORMAT_INDEXED16 ) |
| 50 | 50 | MDRV_SCREEN_SIZE( 75, 64 ) |
| 51 | 51 | MDRV_SCREEN_VISIBLE_AREA( 0, 74, 0, 63 ) |
| r1711 | r1712 | |
| 81 | 81 | |
| 82 | 82 | static void gamepock_cartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) { |
| 83 | 83 | switch( state ) { |
| 84 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 85 | case DEVINFO_INT_MUST_BE_LOADED: info->i = 0; break; | |
| 86 | case DEVINFO_PTR_INIT: info->init = device_init_gamepock_cart; break; | |
| 87 | case DEVINFO_PTR_LOAD: info->load = device_load_gamepock_cart; break; | |
| 88 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy( info->s = device_temp_str(), "bin" ); break; | |
| 84 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 85 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 0; break; | |
| 86 | case MESS_DEVINFO_PTR_INIT: info->init = device_init_gamepock_cart; break; | |
| 87 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_gamepock_cart; break; | |
| 88 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy( info->s = device_temp_str(), "bin" ); break; | |
| 89 | 89 | default: cartslot_device_getinfo(devclass, state, info); break; |
| 90 | 90 | } |
| 91 | 91 | } |
| r1711 | r1712 | |
|---|---|---|
| 214 | 214 | MDRV_MACHINE_RESET(compis) |
| 215 | 215 | |
| 216 | 216 | /* video hardware */ |
| 217 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK | VIDEO_TYPE_RASTER) | |
| 217 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 218 | MDRV_SCREEN_ADD("main", RASTER) | |
| 218 | 219 | MDRV_SCREEN_REFRESH_RATE(50) |
| 219 | 220 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 220 | 221 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 221 | 222 | MDRV_SCREEN_SIZE(640, 480) |
| 222 | 223 | MDRV_SCREEN_VISIBLE_AREA(0, 640-1, 0, 480-1) |
| 223 | 224 | MDRV_PALETTE_LENGTH(COMPIS_PALETTE_SIZE) |
| 224 | MDRV_COLORTABLE_LENGTH(0) | |
| 225 | 225 | MDRV_PALETTE_INIT(compis_gdc) |
| 226 | 226 | |
| 227 | 227 | MDRV_VIDEO_START(compis_gdc) |
| r1711 | r1712 | |
| 246 | 246 | switch(state) |
| 247 | 247 | { |
| 248 | 248 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 249 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 249 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 250 | 250 | |
| 251 | 251 | default: printer_device_getinfo(devclass, state, info); break; |
| 252 | 252 | } |
| r1711 | r1712 | |
| 258 | 258 | switch(state) |
| 259 | 259 | { |
| 260 | 260 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 261 | case DEVINFO_INT_COUNT: info->i = 2; break; | |
| 261 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 262 | 262 | |
| 263 | 263 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 264 | case DEVINFO_PTR_FLOPPY_OPTIONS: info->p = (void *) floppyoptions_compis; break; | |
| 264 | case MESS_DEVINFO_PTR_FLOPPY_OPTIONS: info->p = (void *) floppyoptions_compis; break; | |
| 265 | 265 | |
| 266 | 266 | default: floppy_device_getinfo(devclass, state, info); break; |
| 267 | 267 | } |
| r1711 | r1712 | |
|---|---|---|
| 76 | 76 | MDRV_MACHINE_RESET( bbcbc ) |
| 77 | 77 | |
| 78 | 78 | MDRV_CPU_VBLANK_INT( bbcbc_interrupt, 1 ) |
| 79 | MDRV_IMPORT_FROM( tms9928a ) | |
| 80 | MDRV_SCREEN_MODIFY("main") | |
| 79 | 81 | MDRV_SCREEN_REFRESH_RATE( 50 ) |
| 80 | MDRV_IMPORT_FROM( tms9928a ) | |
| 81 | 82 | MACHINE_DRIVER_END |
| 82 | 83 | |
| 83 | 84 |
| r1711 | r1712 | |
|---|---|---|
| 434 | 434 | /* Initialise the palette */ |
| 435 | 435 | static PALETTE_INIT( vtech2 ) |
| 436 | 436 | { |
| 437 | int i; | |
| 438 | ||
| 439 | 437 | palette_set_colors(machine, 0, vt_palette, ARRAY_LENGTH(vt_palette)); |
| 440 | ||
| 441 | for (i = 0; i < 256; i++) | |
| 442 | { | |
| 443 | colortable[2*i] = i%16; | |
| 444 | colortable[2*i+1] = i/16; | |
| 445 | } | |
| 446 | for (i = 0; i < 16; i++) | |
| 447 | colortable[2*256+i] = i; | |
| 448 | 438 | } |
| 449 | 439 | |
| 450 | 440 | static INTERRUPT_GEN( vtech2_interrupt ) |
| r1711 | r1712 | |
| 458 | 448 | MDRV_CPU_PROGRAM_MAP(vtech2_mem, 0) |
| 459 | 449 | MDRV_CPU_IO_MAP(vtech2_io, 0) |
| 460 | 450 | MDRV_CPU_VBLANK_INT(vtech2_interrupt, 1) |
| 451 | MDRV_SCREEN_ADD("main", RASTER) | |
| 461 | 452 | MDRV_SCREEN_REFRESH_RATE(50) |
| 462 | 453 | MDRV_SCREEN_VBLANK_TIME(0) |
| 463 | 454 | MDRV_INTERLEAVE(1) |
| r1711 | r1712 | |
| 465 | 456 | MDRV_MACHINE_RESET( laser350 ) |
| 466 | 457 | |
| 467 | 458 | /* video hardware */ |
| 468 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 469 | 459 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 470 | 460 | MDRV_SCREEN_SIZE(88*8, 24*8+32) |
| 471 | 461 | MDRV_SCREEN_VISIBLE_AREA(0*8, 88*8-1, 0*8, 24*8+32-1) |
| 472 | 462 | MDRV_GFXDECODE( vtech2 ) |
| 473 | 463 | MDRV_PALETTE_LENGTH(ARRAY_LENGTH(vt_palette)) |
| 474 | MDRV_COLORTABLE_LENGTH(256*2+16) | |
| 475 | 464 | MDRV_PALETTE_INIT(vtech2) |
| 476 | 465 | |
| 477 | 466 | MDRV_VIDEO_START(laser) |
| r1711 | r1712 | |
| 539 | 528 | switch(state) |
| 540 | 529 | { |
| 541 | 530 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 542 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 531 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 543 | 532 | |
| 544 | 533 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 545 | case DEVINFO_PTR_CASSETTE_FORMATS: info->p = (void *) vtech2_cassette_formats; break; | |
| 534 | case MESS_DEVINFO_PTR_CASSETTE_FORMATS: info->p = (void *) vtech2_cassette_formats; break; | |
| 546 | 535 | |
| 547 | 536 | default: cassette_device_getinfo(devclass, state, info); break; |
| 548 | 537 | } |
| r1711 | r1712 | |
| 554 | 543 | switch(state) |
| 555 | 544 | { |
| 556 | 545 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 557 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 546 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 558 | 547 | |
| 559 | 548 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 560 | case DEVINFO_PTR_LOAD: info->load = device_load_laser_cart; break; | |
| 561 | case DEVINFO_PTR_UNLOAD: info->unload = device_unload_laser_cart; break; | |
| 549 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_laser_cart; break; | |
| 550 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = device_unload_laser_cart; break; | |
| 562 | 551 | |
| 563 | 552 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 564 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "rom"); break; | |
| 553 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "rom"); break; | |
| 565 | 554 | |
| 566 | 555 | default: cartslot_device_getinfo(devclass, state, info); break; |
| 567 | 556 | } |
| r1711 | r1712 | |
| 573 | 562 | switch(state) |
| 574 | 563 | { |
| 575 | 564 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 576 | case DEVINFO_INT_TYPE: info->i = IO_FLOPPY; break; | |
| 577 | case DEVINFO_INT_READABLE: info->i = 1; break; | |
| 578 | case DEVINFO_INT_WRITEABLE: info->i = 0; break; | |
| 579 | case DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 580 | case DEVINFO_INT_COUNT: info->i = 2; break; | |
| 565 | case MESS_DEVINFO_INT_TYPE: info->i = IO_FLOPPY; break; | |
| 566 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 567 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 0; break; | |
| 568 | case MESS_DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 569 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 581 | 570 | |
| 582 | 571 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 583 | case DEVINFO_PTR_LOAD: info->load = device_load_laser_floppy; break; | |
| 572 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_laser_floppy; break; | |
| 584 | 573 | |
| 585 | 574 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 586 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "dsk"); break; | |
| 575 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "dsk"); break; | |
| 587 | 576 | } |
| 588 | 577 | } |
| 589 | 578 |
| r1711 | r1712 | |
|---|---|---|
| 351 | 351 | |
| 352 | 352 | MDRV_MACHINE_RESET( kc85_3 ) |
| 353 | 353 | |
| 354 | /* video hardware */ | |
| 355 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) | |
| 354 | /* video hardware */ | |
| 355 | MDRV_SCREEN_ADD("main", RASTER) | |
| 356 | 356 | MDRV_SCREEN_REFRESH_RATE(50) |
| 357 | 357 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 358 | 358 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 359 | 359 | MDRV_SCREEN_SIZE(KC85_SCREEN_WIDTH, KC85_SCREEN_HEIGHT) |
| 360 | 360 | MDRV_SCREEN_VISIBLE_AREA(0, (KC85_SCREEN_WIDTH - 1), 0, (KC85_SCREEN_HEIGHT - 1)) |
| 361 | 361 | MDRV_PALETTE_LENGTH(KC85_PALETTE_SIZE) |
| 362 | MDRV_COLORTABLE_LENGTH(KC85_PALETTE_SIZE) | |
| 363 | 362 | MDRV_PALETTE_INIT( kc85 ) |
| 364 | 363 | |
| 365 | 364 | MDRV_VIDEO_START( kc85_3 ) |
| r1711 | r1712 | |
| 427 | 426 | switch(state) |
| 428 | 427 | { |
| 429 | 428 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 430 | case DEVINFO_INT_COUNT: info->i = 1; break; | |
| 429 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 431 | 430 | |
| 432 | 431 | default: cassette_device_getinfo(devclass, state, info); break; |
| 433 | 432 | } |
| r1711 | r1712 | |
| 439 | 438 | switch(state) |
| 440 | 439 | { |
| 441 | 440 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 442 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "kcc"); break; | |
| 441 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "kcc"); break; | |
| 443 | 442 | |
| 444 | 443 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 445 | case DEVINFO_PTR_QUICKLOAD_LOAD: info->f = (genf *) quickload_load_kc; break; | |
| 444 | case MESS_DEVINFO_PTR_QUICKLOAD_LOAD: info->f = (genf *) quickload_load_kc; break; | |
| 446 | 445 | |
| 447 | 446 | default: quickload_device_getinfo(devclass, state, info); break; |
| 448 | 447 | } |
| r1711 | r1712 | |
| 460 | 459 | switch(state) |
| 461 | 460 | { |
| 462 | 461 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 463 | case DEVINFO_INT_COUNT: info->i = 4; break; | |
| 462 | case MESS_DEVINFO_INT_COUNT: info->i = 4; break; | |
| 464 | 463 | |
| 465 | 464 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 466 | case DEVINFO_PTR_LOAD: info->load = device_load_kc85_floppy; break; | |
| 465 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_kc85_floppy; break; | |
| 467 | 466 | |
| 468 | 467 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 469 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "dsk"); break; | |
| 468 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "dsk"); break; | |
| 470 | 469 | |
| 471 | 470 | default: legacybasicdsk_device_getinfo(devclass, state, info); break; |
| 472 | 471 | } |
| r1711 | r1712 | |
|---|---|---|
| 27 | 27 | |
| 28 | 28 | Source Changes: |
| 29 | 29 | ---------------- |
| 30 | - The core is based on MAME 0.123u | |
| 30 | - The core is based on MAME 0.123u2. This incorporates all features of the | |
| 31 | 31 | update to this core. [MAME team] |
| 32 | 32 | |
| 33 | 33 |
| r0 | r1712 | |
|---|---|---|
| 1 | 0.123 | |
| 2 | ----- | |
| 3 | ||
| 4 | ||
| 5 | MAMETesters Bugs Fixed | |
| 6 | ---------------------- | |
| 7 | taito_f3.c0122u8red [Aaron Giles] | |
| 8 | dubugchunklength0122u7gre [Aaron Giles] | |
| 9 | m62.c0122u7yel [Aaron Giles] | |
| 10 | qix.c0122u8red [Atari Ace] | |
| 11 | yard.c0122u7yel [Aaron Giles] | |
| 12 | ||
| 13 | ||
| 14 | ||
| 15 | Source Changes | |
| 16 | -------------- | |
| 17 | Fixed crash in debugcmt with starting with no game on the command-line. | |
| 18 | [Andrew Gardner] | |
| 19 | ||
| 20 | Fixed PSR transfers in the ARM7 core. [R. Belmont] | |
| 21 | ||
| 22 | Fixed regression in cpu_spinuntil* calls that broke a number of games. | |
| 23 | [Aaron Giles] | |
| 24 | ||
| 25 | Fixed ADPCM in m62 games. Did some additional cleanup. [Aaron Giles] | |
| 26 | ||
| 27 | Fixed palette gradient for promutrv. [Pierpaolo Prazzoli] | |
| 28 | ||
| 29 | Fixed watchdog behavior when not explicitly specified. [Aaron Giles] | |
| 30 | ||
| 31 | Fixed sprite placement again in chinagat driver. [Aaron Giles] | |
| 32 | ||
| 33 | Fixed incorrect default screen siz | |
| 34 | ||
| 35 | ||
| 36 | ||
| 37 | New clones added | |
| 38 | ---------------- | |
| 39 | Vs. Janshi Brandnew Stars (MegaSystem32 Version) [David Haywood] | |
| 40 | ||
| 41 | ||
| 42 | ||
| 43 | 0.122u8 | |
| 44 | ------- | |
| 45 | ||
| 46 | ||
| 47 | MAMETesters Bugs Fixed | |
| 48 | ---------------------- | |
| 49 | stadhero0122u3gra [RansAckeR] | |
| 50 | wboy3_0119u3gra [RansAckeR] | |
| 51 | zerohour0122u6gra [RansAckeR] | |
| 52 | strahl0122u6yel [Mamesick] | |
| 53 | cmv801_0116gra [RansAckeR] | |
| 54 | ||
| 55 | ||
| 56 | ||
| 57 | Source Changes | |
| 58 | -------------- | |
| 59 | Added deprecat.h that contains some deprecated/discouraged contructs. | |
| 60 | The idea is to create extra work if a driver wants to use these and | |
| 61 | hopefully gives an incentive to look for an alternate solution. Added | |
| 62 | #include of deprecat.h that rely on these contructs. Removed a bunch | |
| 63 | of unneccassary #include's from these files. [Zsolt Vasvari] | |
| 64 | ||
| 65 | Simplified Star Fire driver. [Zsolt Vasvari] | |
| 66 | ||
| 67 | drawgfx changes: [Zsolt Vasvari] | |
| 68 | - Removed copybitmap_remap and copyscrollbitmap_remap, neither which | |
| 69 | was used by anybody | |
| 70 | - Removed some obsolete commented out code | |
| 71 | - Fixed up some comments | |
| 72 | - Removed TRANSPARENCY_NONE case from copybitmap_core, which can | |
| 73 | never happen | |
| 74 | - Removed TRANSPARENCY_BLEND completely and TRANSPARENCY_BLEND_RAW | |
| 75 | as an option to copybitmap. Source tree needs to be recompiled | |
| 76 | as the transparancy mode enum has changed. | |
| 77 | - Removed TRANSPARENCY_NONE_RAW, TRANSPARENCY_PENS_RAW and | |
| 78 | TRANSPARENCY_PEN_TABLE_RAW as they were no longer used. | |
| 79 | - Changed copybitmap and copyscrollbitmap. There are now 2 versions | |
| 80 | of each, one without and with transparency. | |
| 81 | ||
| 82 | Fixed crash in masao. [couriersud] | |
| 83 | ||
| 84 | Corrected previous i0851 timer fix to use more accurate IE SFRs. | |
| 85 | [Jim Stolis] | |
| 86 | ||
| 87 | jedi.c updates: [Zsolt Vasvari] | |
| 88 | - Changed video code to directly manipulate the game bitmap | |
| 89 | - Background smoothing now happens at the same time as the background | |
| 90 | is drawn | |
| 91 | ||
| 92 | Fixed the CPS driver to at least display the correct clock in the | |
| 93 | driver info, by degrading the clock through alternate means. | |
| 94 | [David Haywood] | |
| 95 | ||
| 96 | m62.c changes: [couriersud] | |
| 97 | * fixed wrong resistor value (22K to 2.2K) - verified on spelunkr | |
| 98 | and kidniki hires pcb pictures | |
| 99 | * Changed resistor network calculation based on assumption that cs | |
| 100 | line is active either on tiles or sprites color prom. | |
| 101 | ||
| 102 | Simplified the video code for crgolf. [Zsolt Vasvari] | |
| 103 | ||
| 104 | Added PCB layouts for Penguin Bros & Puzzle De Bowling based on | |
| 105 | Hi-res pics. Corrected the seta2.c 68301 base clock as 50MHz / 3 | |
| 106 | (16.66666MHz) as all the Seta2 hardware has a 50MHz OSC. Secondary OSC | |
| 107 | are for other chips (28MHz and or 32.53047MHz). [Brian Troha] | |
| 108 | ||
| 109 | Simplified video code and adjusted some set names in the leland | |
| 110 | driver. [Zsolt Vasvari] | |
| 111 | ||
| 112 | Replaced tables with equations in the Sega C2 driver. | |
| 113 | [Nicola Salmoria] | |
| 114 | ||
| 115 | Added checks for CROSS_BUILD=1 to omit building m68kmake.exe, | |
| 116 | verinfo.exe, png2bdc.exe and file2str. Enables building mame using | |
| 117 | mingw on linux. [couriersud] | |
| 118 | ||
| 119 | Various Irem driver updates: [Aaron Giles] | |
| 120 | * Properly tagged m52 and m62 sound boards, plus variants. | |
| 121 | * Updated all connected drivers. | |
| 122 | * Merged memory maps. | |
| 123 | * Proper video timing in 10 yard fight. | |
| 124 | * Converted troangel to tilemaps. | |
| 125 | * Moved definitions to header files. | |
| 126 | * Updated mpatrol, yard to use resnet for colors. | |
| 127 | * Renamed mpatrol -> m52 | |
| 128 | * Renamed troangel -> m57 | |
| 129 | * Renamed yard -> m58 | |
| 130 | ||
| 131 | Cleaned up 20pacgal driver, including driver state. Tried improving | |
| 132 | on the ROM mirroring, without any success. [Zsolt Vasvari] | |
| 133 | ||
| 134 | Removed colortables from a number of drivers, as part of a larger | |
| 135 | move to phase out old-style colortables: gotya, gyruss, ampoker, | |
| 136 | circusc, clshroad, champbas, 1943, lucky8, olibochu, yamato, | |
| 137 | appoooh, bking, bladestl, blueprnt, carpolo, centiped, cop01, | |
| 138 | cosmic, ddrible, irobot, ace, alpha68k, arabian, bfm_sc2, carjmbre, | |
| 139 | cclimber, cherrym2, combatsc, contra, fastlane, hcastle, labyrunr, | |
| 140 | cham24, multigam. [Zsolt Vasvari] | |
| 141 | ||
| 142 | Removed non-existent, second M6295 from Hit the Ice. Fixes missing | |
| 143 | sounds (e.g. team select screen). Hit the Ice/Violence Fight now | |
| 144 | share the same sound CPU memory maps. [Philip Bennett] | |
| 145 | ||
| 146 | Improved DIP switches according to manuals for the following drivers: | |
| 147 | wboy, chplft, extdwnhl, zingzip, zaxxon, congo, vanguard, zarzon, | |
| 148 | nibbler, segag80r.c, yard, kaneko16.c. [RansAckeR] | |
| 149 | ||
| 150 | Verified the sound roms for Rock'n 3 and added proper names. Added | |
| 151 | PCB layout for sound rom board only. [Brian Troha] | |
| 152 | ||
| 153 | Cleaned up Time Pilot sound board implementation: [Aaron Giles] | |
| 154 | * full memory maps | |
| 155 | * partial machine driver removes need for replicating filtering logic | |
| 156 | * updated all relevant drivers | |
| 157 | ||
| 158 | Cleaned up Time Pilot and Tutankham drivers: [Aaron Giles] | |
| 159 | * correct clocks where possible | |
| 160 | * merged memory maps | |
| 161 | * fully decoded memory maps | |
| 162 | * replaced hacky sprite rendering in Time Pilot with partial updates | |
| 163 | * save state support | |
| 164 | * removed Power Surge kludge, replaced with unmapped handler control | |
| 165 | * Tutankham runs at 60fps, with IRQs every other frame | |
| 166 | * Proper IRQ ack in Tutankham | |
| 167 | * Proper NMI generation in Time Pilot | |
| 168 | ||
| 169 | Cleaned up pooyan driver. Save states, full memory maps, proper NMI | |
| 170 | generation, etc. Flipped video to align better with Time Pilot. | |
| 171 | [Aaron Giles] | |
| 172 | ||
| 173 | Changed 6840 interrupt handling to work like the recent 6821 changes. | |
| 174 | Updated MPU4 driver accordingly. Updated Scorpion 2 driver to match | |
| 175 | MPU4 coding style. [James Wallace] | |
| 176 | ||
| 177 | Resolved all unknown dips in the galpani2 driver according to kaneko's | |
| 178 | docs, unified memory maps of both CPUs and repositioned a pair of | |
| 179 | graphic ROMS. [Luis Faria] | |
| 180 | ||
| 181 | Made some minor improvements to 1942.c & 1943.c DIPs. Improved | |
| 182 | segas16a.c, segas16b.c & system16.c DIPs and added DIP locations | |
| 183 | from manuals. [RansAckeR] | |
| 184 | ||
| 185 | Removed distinction between *_gettotalcycles() and | |
| 186 | *_gettotalcycles64(). All functions now return 64-bit results. Updated | |
| 187 | all call sites appropriately. [Aaron Giles] | |
| 188 | ||
| 189 | Further improvements to SCSP FM. [kingshriek] | |
| 190 | ||
| 191 | Moved cpu_getiloops() and cpu_scalebyfcount() to deprecat.h. Added | |
| 192 | #include "deprecat.h" where necessary to make this happen. Cleaned up | |
| 193 | cpuexec.c/.h to latest core style. Cleaned up implementation of | |
| 194 | extended INP header in inptport.c. Removed external access to | |
| 195 | cycles_currently_ran(). Replaced use of cycles_currently_ran() in | |
| 196 | v9938 code with mame_rand(), since that is effectively the same thing. | |
| 197 | [Aaron Giles] | |
| 198 | ||
| 199 | Added dip locations to about half the games in seta.c. [Brian Troha] | |
| 200 | ||
| 201 | Removed champbas color PROM. Now uses TRANSPARENCY_PENS instead of | |
| 202 | TRANSPARENCY_COLOR. Hooked up palette bank selector from schematics, | |
| 203 | though I am not sure if it is actually used by the code. Changed set | |
| 204 | names to match title screen, which is why baseball is spelt as | |
| 205 | "Base Ball". [Zsolt Vasvari] | |
| 206 | ||
| 207 | Some minor cleanup to the equites driver, including memory map | |
| 208 | merging. [Aaron Giles] | |
| 209 | ||
| 210 | Added new option VIDEO_UPDATE_SCANLINE, which cases VIDEO_UPDATE to | |
| 211 | be called for every visible scanline. Removed manual implementation | |
| 212 | of this in timeplt, in favor of using the new flag. There are | |
| 213 | probably many more drivers that can leverage this. [Aaron Giles] | |
| 214 | ||
| 215 | Added stream_get_sample_rate(), stream_get_time(), and | |
| 216 | stream_get_sample_period(). These functions are not really tested yet | |
| 217 | -- make sure they give reasonable results when first used! Updated | |
| 218 | streams.h header to latest core style. [Aaron Giles] | |
| 219 | ||
| 220 | Fixed reset crashes in all Z180 games. Removed the various busy loop | |
| 221 | and non-exact optimzations from the Z180 core. [Zsolt Vasvari] | |
| 222 | ||
| 223 | Correct colors in Birdie King 3 -- just needed a new dump. Fixed | |
| 224 | incorrect ROM names. Switched color decoding to use the resnet code. | |
| 225 | [Zsolt Vasvari] | |
| 226 | ||
| 227 | Cleaned up the rockola.c driver. Fixed dip switches for all games. | |
| 228 | Added notes about the games. [stephh] | |
| 229 | ||
| 230 | Reorganized exidy440 audio code to make it easier to eventually use | |
| 231 | the MC3417/18 emulation directly. Added MC3418 variant support to the | |
| 232 | HC55516 audio code. [Zsolt Vasvari] | |
| 233 | ||
| 234 | Updated williams driver to use VIDEO_UPDATE_SCANLINE (most bitmap- | |
| 235 | based drivers should.) Converted to 32bpp to catch mid-screen palette | |
| 236 | tweaks. Removed some unnecessary read/write handlers. [Aaron Giles] | |
| 237 | ||
| 238 | Improved colors in circusc, gyruss, gotya with the resnet code. | |
| 239 | [Zsolt Vasvari] | |
| 240 | ||
| 241 | Significant improvements to Lock-On. Added POLL input handling to the | |
| 242 | NEC V20/V30 core. [Philip Bennett] | |
| 243 | ||
| 244 | Changed debugger-related code to be based off a new makefile define | |
| 245 | (DEBUGGER) which sets a new compile-time define (ENABLE_DEBUGGER). | |
| 246 | This means that MAME_DEBUG no longer means "enable debugger", it | |
| 247 | simply enables debugging features such as assertions and debug code | |
| 248 | in drivers. Also removed the various levels of opbase protection in | |
| 249 | memory.h and always just turned on full bounds checking. [Aaron Giles] | |
| 250 | ||
| 251 | Added some instructions to the H8/30xx CPU: [Luca Elia] | |
| 252 | or.l ERs, ERd | |
| 253 | rotl/shal.l ERd | |
| 254 | not.l/neg.l ERd | |
| 255 | exts.w Rd | |
| 256 | sub/or/xor.l #Imm:32, ERd | |
| 257 | bset/bnot/bclr.b Rn, @ERd | |
| 258 | bst/bist.b #Imm:3, @ERd | |
| 259 | bnot.b #Imm:3, @ERd | |
| 260 | ||
| 261 | Added H8/3007 & H8/3044 variants with their memory maps. Preliminary | |
| 262 | implementation of the H8/3007 timers. [Luca Elia] | |
| 263 | ||
| 264 | Added AM_WRITEONLY as a shortcut for AM_WRITE(MWAx_RAM). [Aaron Giles] | |
| 265 | ||
| 266 | Cleaned up Kangaroo driver: [Aaron Giles] | |
| 267 | * documented MB8841 (needs to be decapped to get code) | |
| 268 | * proper video timing | |
| 269 | * full memory maps | |
| 270 | * simplified and more accurate video logic | |
| 271 | ||
| 272 | More opcode improvements to Risky Challenge. [robiza] | |
| 273 | ||
| 274 | Added DIP locations to bking.c [RansAckeR] | |
| 275 | ||
| 276 | ||
| 277 | ||
| 278 | New games added or promoted from NOT_WORKING status | |
| 279 | --------------------------------------------------- | |
| 280 | Wheels Runner [Luca Elia] | |
| 281 | ||
| 282 | ||
| 283 | ||
| 284 | New clones added | |
| 285 | ---------------- | |
| 286 | Lock-On (rev. C) [Philip Bennett] | |
| 287 | Progressive Music Trivia (Question set 4) [Andrew Gardner] | |
| 288 | ||
| 289 | ||
| 290 | ||
| 291 | New games marked as GAME_NOT_WORKING | |
| 292 | ------------------------------------ | |
| 293 | Puzzlet (Japan) [Luca Elia] | |
| 294 | Galaxy Games BIOS [Andrew Gardner] | |
| 295 | ||
| 296 | ||
| 297 | ||
| 298 | 0.122u7 | |
| 299 | ------- | |
| 300 | ||
| 301 | ||
| 302 | MAMETesters Bugs Fixed | |
| 303 | ---------------------- | |
| 304 | tylz0122u5red [Zsolt Vasvari] | |
| 305 | stadhero0122u3gre [Zsolt Vasvari] | |
| 306 | stadhero0122u3ora [Zsolt Vasvari] | |
| 307 | asterix_1055gre [couriersud] | |
| 308 | blktiger37b15gre [couriersud] | |
| 309 | newui0118u4ora [Atari Ace] | |
| 310 | mpatrol0117u2gre [Aaron Giles] | |
| 311 | realbrk0111u4gra [Brian Troha] | |
| 312 | schmisr0111u5gra [Brian Troha, partial fix] | |
| 313 | penbros0111u5gra [Brian Troha] | |
| 314 | ninjakd2_0111u3gra [Nicola Salmoria] | |
| 315 | mnight0102gre [Nicola Salmoria] | |
| 316 | toki060gre [robiza, Corrado Tomaselli] | |
| 317 | ||
| 318 | ||
| 319 | ||
| 320 | Source Changes | |
| 321 | -------------- | |
| 322 | Added internal divider on m680* series CPUs (except the original | |
| 323 | m6800). Updated clocks on all games using them to remove the explicit | |
| 324 | divider. [Aaron Giles] | |
| 325 | ||
| 326 | Reverted experimental D3D fix, since it breaks switchres. | |
| 327 | [Aaron Giles] | |
| 328 | ||
| 329 | dkong updates: [couriersud] | |
| 330 | * fix dkong sound following Clock Divider update | |
| 331 | * updated to use XTAL_* | |
| 332 | * revert a change after sound regression in dkong. | |
| 333 | ||
| 334 | i8085.c updates: [couriersud] | |
| 335 | * 8085 has an internal clock divider by 2. Changed i8085.c to reflect | |
| 336 | this for I8085. I8080 still at 1. | |
| 337 | * Changed driver clocks to reflect internal clock divider | |
| 338 | * Added some FIXME: comments where clocks for I8085 are outside specs | |
| 339 | ||
| 340 | Space Fighter Mark II: [Zsolt Vasvari] | |
| 341 | - Changed year to 1979 as per Guru's contact | |
| 342 | - Renamed set 2 ROMs to allow merging | |
| 343 | - Removed experimental code left in there | |
| 344 | ||
| 345 | phoenix.c updates: [couriersud] | |
| 346 | * Modified I8085 clock | |
| 347 | * Added dip locations | |
| 348 | * consolidated inputs | |
| 349 | * tagged inputs | |
| 350 | * combined memory maps | |
| 351 | * fixed sound issue related to (auto) save states | |
| 352 | ||
| 353 | pleiads updates: [couriersud] | |
| 354 | * video timing from schematics | |
| 355 | * palette from schematics (resnet.h) | |
| 356 | * no more colortable | |
| 357 | ||
| 358 | survival updates: [couriersud] | |
| 359 | * palette from schematics (resnet.h) | |
| 360 | ||
| 361 | Removed bogus (bad) dump of Heated Barrel US set 2. [Brian Troha] | |
| 362 | ||
| 363 | RSP Changes: [SGINut, Nicola Salmoria, Ville Linde] | |
| 364 | - Initialize RSP registers to 0 in lieu of mame_rand | |
| 365 | - Re-fix RSP single-stepping mode when set by another CPU | |
| 366 | - Reading the RSP PC returns only the least significant 12 bits | |
| 367 | - Fixed flag behavior when read out via CFC2 | |
| 368 | - Fixed RSP VRCP instruction to match the real hardware results | |
| 369 | - Corrected VRCP element lookup | |
| 370 | - Corrected unaligned DMA behavior | |
| 371 | ||
| 372 | Removed all palette_X_r functions in favor of direct RAM reads. | |
| 373 | [Zsolt Vasvari] | |
| 374 | ||
| 375 | Removed no longer applicable assert from VIDEO_START(generic). Removed | |
| 376 | VIDEO_START(generic) from drivers that didn't need it. Removed | |
| 377 | MDRV_VIDEO_START(generic_bitmapped) from drivers that don't need it. | |
| 378 | [Zsolt Vasvari] | |
| 379 | ||
| 380 | Made detection of dynamic attempts to install ROM/RAM handlers more | |
| 381 | aggressive. Previous checks would not catch modifications in | |
| 382 | DRIVER_INIT or MACHINE_START calls. Fixed a number of cases of | |
| 383 | incorrect usage throughout the drivers. [Aaron Giles] | |
| 384 | ||
| 385 | Changed one of the cheat calls back to using more generic switch | |
| 386 | detection so they can be triggered via joysticks. [Aaron Giles] | |
| 387 | ||
| 388 | Renamed sauro.c sp0256 internal rom to "sp0256-al2.bin". | |
| 389 | Removed BAD_DUMP flag from it as well. [couriersud] | |
| 390 | ||
| 391 | Marked HD6309 as divide-by-4 internally. Updated drivers accordingly. | |
| 392 | [Aaron Giles] | |
| 393 | ||
| 394 | Major cleanup to the ddragon driver: [Aaron Giles] | |
| 395 | - improved video and interrupt timing | |
| 396 | - consolidated common memory maps and input ports | |
| 397 | - added save state support | |
| 398 | - correct clocks | |
| 399 | ||
| 400 | blktiger.c updates: [couriersud] | |
| 401 | * combines memory maps | |
| 402 | * input ports were tagged | |
| 403 | * all reads use input port tags | |
| 404 | * added dip switch locations from Romstar manual | |
| 405 | ||
| 406 | Added all known variants of the tms5110 as proper chips. Updated | |
| 407 | dkong, cvs and scramble to use new chips. [couriersud] | |
| 408 | ||
| 409 | Converted atarifb.c to tilemaps. [Zsolt Vasvari] | |
| 410 | ||
| 411 | Switched namcos11/namcos12 over to memory_configure_bank / | |
| 412 | memory_set_bank. Simplified golgo 13 gun reading. [smf] | |
| 413 | ||
| 414 | mpatrol driver cleanup [Aaron Giles] | |
| 415 | - merged memory maps | |
| 416 | - complete memory map | |
| 417 | - correct video timing | |
| 418 | - correct CPU clocks | |
| 419 | - replaced protection hack with actual implementation | |
| 420 | - cleaned up inputs | |
| 421 | ||
| 422 | Added tilemap_get_scrollx / tilemap_get_scrolly. [Nicola Salmoria] | |
| 423 | ||
| 424 | Preserve fractional part of sample offset when looping in SCSP. Fixes | |
| 425 | remaining pitch stability problems. Fixed minor issue with timers | |
| 426 | B&C expiring. [kingshriek, R. Belmont] | |
| 427 | ||
| 428 | auto_malloc() once again actually fails when out of memory. | |
| 429 | [Aaron Giles] | |
| 430 | ||
| 431 | Switched zn.c to use MDRV_IMPORT_FROM. [smf] | |
| 432 | ||
| 433 | mario.c changes: [couriersud] | |
| 434 | * removed all traces to video/generic.h | |
| 435 | * fix flipscreen issue with autosave | |
| 436 | * on a hires pcb picture, verified resistor and capacitor values | |
| 437 | ||
| 438 | Added dip locations to Real Break. Filled in a couple of dips for the | |
| 439 | Pachinko Gindama Shoubu games. [Brian Troha] | |
| 440 | ||
| 441 | Fixed invalid memory_install_*_handler calls in drivers/williams.c. | |
| 442 | Emulated external OR circuit for all drivers using the PIA chip. This | |
| 443 | used to be internal to the PIA emulation, but, in fact, this is | |
| 444 | external logic. The PIA has two seperate INTA and INTB out lines. | |
| 445 | This fixes at least PlayBall. [Zsolt Vasvari] | |
| 446 | ||
| 447 | Added the ability to the HC55516 emulator to take an external | |
| 448 | osciallator. Updated Mouse Trap to use the new interface. | |
| 449 | [Zsolt Vasvari] | |
| 450 | ||
| 451 | Cleaned up and merged ninjakd2, mnight and omegaf drivers into a | |
| 452 | single driver. Additionally: [Nicola Salmoria] | |
| 453 | - added flip screen support to all games | |
| 454 | - fixed sprite overdraw mode: | |
| 455 | - ninjakd2 congratulations screen (e.g. stage 3) shows japanese | |
| 456 | characters which were previously missing | |
| 457 | - in ninjakd2, at the beginning of a level items are visible | |
| 458 | during the initial fade in. I'm not sure if this is correct | |
| 459 | but the other effects wouldn't work otherwise | |
| 460 | - in mnight attract mode, when the big ship is firing the other | |
| 461 | sprites no longer leave trails | |
| 462 | - in mnight at the end of a level the screen is slowly filled | |
| 463 | with balls and then slowly cleared to begin the following | |
| 464 | level. Same effect in the death sequence during attract mode. | |
| 465 | - added proper computation of sprites to be drawn taking into | |
| 466 | account double size sprites. This fixes sticking shots in mnight | |
| 467 | without need for a hack. | |
| 468 | - lowered ninjakd2 PCM playback rate to 13020 (from 16000). This | |
| 469 | seems to sound better and is a round division from one of the | |
| 470 | master clocks. | |
| 471 | - removed ROM patch that was used to avoid the input protection in | |
| 472 | omegaf, added a rough but effective protection simulation. | |
| 473 | - corrected some dip switches | |
| 474 | - hooked up sound cpu reset line | |
| 475 | - simplified ROM loading for the older games swizzling address lines | |
| 476 | in driver init. | |
| 477 | ||
| 478 | Added MDRV_SOUND_ROUTE_EX to specify target input channel. Added | |
| 479 | input id to route struct. Fixed DISCRETE_INPUT_STREAM and added input | |
| 480 | channel # to DISCRETE_INPUT_STREAM. [couriersud] | |
| 481 | ||
| 482 | Fixed default debugger memory view width for CPUs with >byte-sized | |
| 483 | minimum. Made menu updating dynamic at click time, fixing issues with | |
| 484 | incorrect checkmarks. [Aaron Giles] | |
| 485 | ||
| 486 | Fixed Ninja Kuna. Cleaned up memory maps. Renamed files to ninjakun.c. | |
| 487 | [Zsolt Vasvari] | |
| 488 | ||
| 489 | Added MC3417 and MC3418 variants to the HC55516 sound emulation. | |
| 490 | Changed Mouse Trap to use MC3417. [Zsolt Vasvari] | |
| 491 | ||
| 492 | Fixed saving i8085 callbacks across a reset. Added 'pull' callback for | |
| 493 | the SID pin. This is needed by the Red Alert voice board. | |
| 494 | [Zsolt Vasvari] | |
| 495 | ||
| 496 | Made the text displayed by the various UI sliders more intelligent. | |
| 497 | Basically, it will only print an index for an item if there are | |
| 498 | multiple of a given type. [Zsolt Vasvari] | |
| 499 | ||
| 500 | Updated jailbrek clocks and video timing based on measurements. | |
| 501 | [Aaron Giles] | |
| 502 | ||
| 503 | Fixed i8051 timers from firing when not enabled. Checking TCON alone | |
| 504 | is not enough to invoke timers. Added IE SFR flags in conditional. | |
| 505 | [Jim Stolis] | |
| 506 | ||
| 507 | Added a _CALL variant to all prototype macros. The use of these | |
| 508 | should make it easier to change the signiture of these functions in | |
| 509 | the future. Replaced existing calls with macro where appropriate. | |
| 510 | [Zsolt Vasvari] | |
| 511 | ||
| 512 | Removed VIDEO_START_CALL(generic) from all drivers not needing it, | |
| 513 | which were all of them. Removed VIDEO_START_CALL(generic_bitmapped) | |
| 514 | from jpmimpct. [Zsolt Vasvari] | |
| 515 | ||
| 516 | Changed YM2203 clock in stfight to 3MHz (compared against OST) | |
| 517 | [Yasuhiro Ogawa] | |
| 518 | ||
| 519 | Improved linear zoom effect resolution to address gaps in CPS3 | |
| 520 | rendering. [OopsWare] | |
| 521 | ||
| 522 | Rewrote and modernized the redalert driver: [Zsolt Vasvari] | |
| 523 | - correct colors -- in places different from the manual's description, | |
| 524 | but matches the flyer perfectly | |
| 525 | - added speech | |
| 526 | - fixed AY-8910 sounds | |
| 527 | - odds and ends | |
| 528 | - corrected colors in Demoneye-X | |
| 529 | - added some sound to Demoneye-X | |
| 530 | - marked Demoneye-X it NOT_WORKING, due to the (still) missing 3rd | |
| 531 | gfx layer that makes it impossible to pass the 2nd level. | |
| 532 | ||
| 533 | Added all the known Naomi BIOS dumps along with descriptions and | |
| 534 | information about region bytes & version numbers. [Brian Troha] | |
| 535 | ||
| 536 | Removed the freely distributable Exidy games' dependency on Berzerk. | |
| 537 | [Zsolt Vasvari] | |
| 538 | ||
| 539 | Added support for the BLX opcode in ARM7 THUMB mode. [SGINut] | |
| 540 | ||
| 541 | Verified DIP locations from manuals for scramble and 800fath. | |
| 542 | [RansAckeR] | |
| 543 | ||
| 544 | Changed S14001A emulator to allow setting the clock frequency instead | |
| 545 | of the clock multiplier. This is how the real chip works. Changed the | |
| 546 | Berzerk driver to set the S14001A clock as per the schematics. | |
| 547 | [Zsolt Vasvari] | |
| 548 | ||
| 549 | Removed the use of the global Machine from a number of places in the | |
| 550 | code. [Zsolt Vasvari] | |
| 551 | ||
| 552 | Fixed issues flagged by MSVC warning C4305 (type truncation). Almost | |
| 553 | all of these are harmless double->float narrowing in initializers, but | |
| 554 | one warning spotlighted a bug in segasyse.c, where code to use a | |
| 555 | higher sprite number had no effect due to the insufficient range of | |
| 556 | UINT8. [Atari Ace] | |
| 557 | ||
| 558 | Removed /wd4550 for VS7/VS71 compilers (expression evaluates to a | |
| 559 | function which is missing an argument list). Fixed some VS7-specific | |
| 560 | issues (OPTIMIZE=0 at least compiles now). [Atari Ace] | |
| 561 | ||
| 562 | Added a missing case statement in sm8500d.c, noticed while reviewing | |
| 563 | dead code warnings. [Atari Ace] | |
| 564 | ||
| 565 | Corrected Diet gogo h6280 clock so that it behaves correctly with | |
| 566 | Charles Macdonald fix to the cpu core. Verified and corrected | |
| 567 | frequencies and pin 7 okim6295 on the following games: | |
| 568 | The new zealand story (3 z80 version), Trio The punch, Vandyke, | |
| 569 | paradise.c games, Downtown, Shaolin's Road and Twins. | |
| 570 | [Corrado Tomaselli] | |
| 571 | ||
| 572 | Removed all peplus memory hacks and game specific DRIVER_INIT. There | |
| 573 | are now just two DRIVER_INIT, one for normal boards and one for | |
| 574 | superboards. Temporarily disabled AutoHold Cheat but documented | |
| 575 | addresses for future update. [Jim Stolis] | |
| 576 | ||
| 577 | Added further unencrypted opcodes to risky challenge. The game now | |
| 578 | boots with the intro animation. [robiza] | |
| 579 | ||
| 580 | ||
| 581 | ||
| 582 | New clones added | |
| 583 | ---------------- | |
| 584 | Jokers Wild Poker (PP0065) [Jim Stolis] | |
| 585 | Double Down Stud Poker (PP0250) [Jim Stolis] | |
| 586 | Standard Draw Poker (PP0447) [Jim Stolis] | |
| 587 | Night Stocker (set 2) [Andrew Gardner] | |
| 588 | Trivial Pursuit (Genus I) (set 2) [Andrew Gardner] | |
| 589 | ||
| 590 | ||
| 591 | ||
| 592 | 0.122u6 | |
| 593 | ------- | |
| 594 | ||
| 595 | ||
| 596 | MAMETesters Bugs Fixed | |
| 597 | ---------------------- | |
| 598 | pangpoms098u3ora [Brian Troha] | |
| 599 | cuebrckj0102u5gre [Zsolt Vasvari] | |
| 600 | astinvad0106u11gre [Aaron Giles] | |
| 601 | victory137b4gre [Zsolt Vasvari] | |
| 602 | victory37b16gre [Zsolt Vasvari] | |
| 603 | dcs057ora [Aaron Giles] | |
| 604 | pleiads0111u4gre [Robbert] | |
| 605 | armwrest35b9yel [David Haywood] | |
| 606 | gstrik20105u4gra [Brian Troha] | |
| 607 | narc060gra [Aaron Giles] | |
| 608 | mia0106u5gra [RansAckeR] | |
| 609 | nss_smw0115ora [Atari Ace] | |
| 610 | darkplnt0119u3yel [Atari Ace] | |
| 611 | mhhonban0120u3gra [RansAckeR] | |
| 612 | rollerg0111u5gra [RansAckeR] | |
| 613 | bionicc0109ora [RansAckeR] | |
| 614 | lcasino0111ora [RansAckeR] | |
| 615 | megaplay.c0122u4red [Atari Ace] | |
| 616 | nmnlnd0122u3yel [Mamesick] | |
| 617 | cocktail0119yel [Robbert] | |
| 618 | tokisens0122u3gra [RansAckeR] | |
| 619 | alleymas0119u3gre [RansAckeR] | |
| 620 | crbaloon36finalgre [Zsolt Vasvari] | |
| 621 | topsecrt0109gre2 [Bryan McPhail] | |
| 622 | quasar0122u5red [Zsolt Vasvari] | |
| 623 | stadhero0122u3gra [RansAckeR] | |
| 624 | ||
| 625 | ||
| 626 | ||
| 627 | Source Changes | |
| 628 | -------------- | |
| 629 | Swinging Singles cleanup: [Tomasz Slanina] | |
| 630 | - hooked up crt6845 | |
| 631 | - converted to tilemaps | |
| 632 | - simplified protection(?) emulation | |
| 633 | - removed tilemap, a bit more low level video hw emulation | |
| 634 | - fake colors | |
| 635 | ||
| 636 | Lowerd FPS in lasso.c to avoid corrupting Chameleon's high score | |
| 637 | table. [Zsolt Vasvari] | |
| 638 | ||
| 639 | Removed obsolete uitext.c and all references to it. [Aaron Giles] | |
| 640 | ||
| 641 | Some more modernization/clean-up in the exidy driver. [Zsolt Vasvari] | |
| 642 | ||
| 643 | Added VIDEO_ALWAYS_UPDATED for reliable collision detection in the | |
| 644 | CVS driver. [Zsolt Vasvari] | |
| 645 | ||
| 646 | Cleaned up astinvad driver: [Aaron Giles] | |
| 647 | * Proper video timing | |
| 648 | * Hooked up 8255 PPIs | |
| 649 | * Correct interrupt timing | |
| 650 | * Consolidated code into single file | |
| 651 | ||
| 652 | i8039.c/mario.c updates: [couriersud] | |
| 653 | * fixed movd instructions | |
| 654 | * add MB8884 and M58715 cpu types | |
| 655 | * moved timer hack to M58715 | |
| 656 | * added ram_mask for internal ram access | |
| 657 | * added R.A11 as 'M' to dasm flags | |
| 658 | * added EA "IO" port | |
| 659 | * mario now uses M58715 as sound cpu | |
| 660 | * hooked up EA line for M58715 | |
| 661 | * fixed portA startup value | |
| 662 | * documented hardware changes to use a I8039 on a mario board | |
| 663 | ||
| 664 | sauro.c: [couriersud] | |
| 665 | * revert promsize to 256 for trckydoc | |
| 666 | ||
| 667 | Added XTAL clocks to zaxxon.c. [Aaron Giles] | |
| 668 | ||
| 669 | Cleaned up cojag/jaguar driver: [Aaron Giles] | |
| 670 | * proper video timing, configured by the chipset | |
| 671 | * 32-bit rendering, removing 16bpp hacks | |
| 672 | * support for borders | |
| 673 | * proper object processor timing, including multiple passes per line | |
| 674 | * added R3041 as a clone of the R3000 | |
| 675 | * fixed XTALs based on documentation | |
| 676 | ||
| 677 | Consolidated exidy and victory drivers. Removed complicated dirty | |
| 678 | tracking from victory.c. Reorganized the exidy audio hardware code. | |
| 679 | Changed Targ to use a loaded PROM instead of a hard-coded one. Renamed | |
| 680 | Side Trak to Side Track as per the title screen. [Zsolt Vasvari] | |
| 681 | ||
| 682 | 6821 PIA changes: [Zsolt Vasvari] | |
| 683 | - Added orthogonal accessors | |
| 684 | - Removed hacky update_shared_irq_handler(), now the same | |
| 685 | IRQ callback maybe called multiple times, but this shouldn't | |
| 686 | be a problem | |
| 687 | - IRQ lines are cleared on a reset | |
| 688 | ||
| 689 | Disabled code in the TMS5220 that set the Buffer Empty flag after a | |
| 690 | stop frame. This fixes Victory. This might be the incorrect fix but | |
| 691 | the old code wasn't working either. [Zsolt Vasvari] | |
| 692 | ||
| 693 | Hooked up revx dcs reset line. Signaled IRQ on correct CPU when DCS | |
| 694 | sends data back (duh). [Aaron Giles] | |
| 695 | ||
| 696 | Removed unnecessary check that could cause SCSP hangs in grdforce. | |
| 697 | [kingshriek] | |
| 698 | ||
| 699 | Tweaked deco156 clock speed to be 28 to prevent the games from running | |
| 700 | in slow motion. I suspect the 156 chip has an internal multiplier, the | |
| 701 | usual input pin is 7Mhz IIRC. [David Haywood] | |
| 702 | ||
| 703 | dkong.c changes: [couriersud] | |
| 704 | * added equivalence circuit for Sanyo EZV audio amplifier | |
| 705 | * Set DK_C159 = 0 to avoid over-aggressive high-pass filter. Solely | |
| 706 | based on observations. | |
| 707 | * added comment on above to source | |
| 708 | * Added define DK_NO_FILTERS to turn of DAC filters and post-mixer | |
| 709 | filters for debugging | |
| 710 | ||
| 711 | Adds dips for Water Balls. Adds dip port locations to all dips. | |
| 712 | [Brian Troha] | |
| 713 | ||
| 714 | Added CPUINFO_INT_CLOCK_MULTIPLIER to support CPU clock multipliers. | |
| 715 | Updated all CPU cores to return a CPUINFO_INT_CLOCK_MULTIPLIER of 1. | |
| 716 | Changed the core to actually respect both CPUINFO_INT_CLOCK_MULTIPLIER | |
| 717 | and CPUINFO_INT_CLOCK_DIVIDER. Updated a number of drivers to use | |
| 718 | cpunum_get_clock() instead of Machine->drv->cpu[x].clock. Raw input | |
| 719 | clock speeds should now be specified for all CPUs in the | |
| 720 | MACHINE_DRIVER. [Aaron Giles] | |
| 721 | ||
| 722 | Changed TLC43076 and games using it to RGB32. Removed global Machine | |
| 723 | variable where possible. [Zsolt Vasvari] | |
| 724 | ||
| 725 | Removed dirtybuffer from video/generic.c and all drivers still using | |
| 726 | it. Good riddance... Removed videoram_w, colorram_w and spriteram_w | |
| 727 | and changed all drivers using it to access RAM directly. Removed | |
| 728 | videoram_r, colorram_r, spriteram_r, spriteram16_r and spriteram16_w | |
| 729 | from video/generic.c and changed all games to use (possibly shared) | |
| 730 | RAM. [Zsolt Vasvari] | |
| 731 | ||
| 732 | Cleaned up memory maps in the seibu sound interfaces. Changed to use | |
| 733 | shared sound configs instead of statically copying them in each | |
| 734 | driver. [Aaron Giles] | |
| 735 | ||
| 736 | Verified and changed cpu frequencies and oki m6295 pin 7 on the | |
| 737 | following pcbs: Asuka&Asuka, Cadash, Equites h/w games and sound | |
| 738 | board, F1GP, Super Formula, Gladiator, Ping Pong king, Great | |
| 739 | Swordsman, Irem m52 sound board, Tropical Angel, Explosive Breakers, | |
| 740 | Magical Crystal, Mad Gear, Roller Aces, Chinese Hero, Simpsons, | |
| 741 | Golfing Greats, Time Pilot 84. [Corrado Tomaselli] | |
| 742 | ||
| 743 | Added some more static qualifiers on recent new/changed code. | |
| 744 | [Atari Ace] | |
| 745 | ||
| 746 | Fixed dbreed72 crash introduced in 0.122u5. [Mamesick] | |
| 747 | ||
| 748 | Fixed HuC6280 low-speed mode so it uses 4 cycles instead of 3. | |
| 749 | [Charles MacDonald] | |
| 750 | ||
| 751 | Hand fixed Road Runner's corrupted ROM. We are 99.99% sure that the | |
| 752 | bad bytes are the same as the Desert Gun ones. [Zsolt Vasvari] | |
| 753 | ||
| 754 | Cleaned up leland clocks a little. Made the i186 divide-by-2 clock | |
| 755 | internal. [Aaron Giles] | |
| 756 | ||
| 757 | Added clocks to the MCR sound boards and some of the MCR games. Added | |
| 758 | TMS5220 variants TMS5200 and TMC0285 as proper chips. Changed MCR | |
| 759 | squawk & talk to use the TMS5200 as documented. [Aaron Giles] | |
| 760 | ||
| 761 | Cleaned up Crazy Baloon driver: proper memory maps, crystals, etc. | |
| 762 | Implemented the missing features of the collision detector custom IC. | |
| 763 | [Zsolt Vasvari] | |
| 764 | ||
| 765 | First pass at fixing the cpu clock speeds on the playstation based | |
| 766 | hardware. The system 10 & 12 clock speeds have been raised as they | |
| 767 | run on an upgraded chipset. The internal divide in the CPU core has | |
| 768 | been set to 4 as we have no wait states, incorrect dma timing, | |
| 769 | no gpu timing, no dma bus stealing and no gte timing. [smf] | |
| 770 | ||
| 771 | Fixed RET instruction on the i960 core. [Ernesto Corvi, ElSemi] | |
| 772 | ||
| 773 | Removed speedups in the gstream and limenko drivers which were | |
| 774 | breaking the games. [David Haywood] | |
| 775 | ||
| 776 | Fixed regression on i8039 T1 counter mode. [couriersud] | |
| 777 | ||
| 778 | Added CUSTOM_INPUT macro for defining input port callbacks. Pushed | |
| 779 | its usage throughout the code. [Aaron Giles] | |
| 780 | ||
| 781 | phoenix and clones: [couriersud] | |
| 782 | * video timing from schematics | |
| 783 | * palette from schematics (resnet.h) | |
| 784 | * no more colortable | |
| 785 | * added save state | |
| 786 | ||
| 787 | Minor RSP fixes: [SGINut] | |
| 788 | - Fixed accumulator state on powerup by testing against real hardware | |
| 789 | - Fixed single-step behavior by testing against real hardware | |
| 790 | ||
| 791 | Added save state support to atetris.c. [Svante Gerhard] | |
| 792 | ||
| 793 | Fixed up atetris memory maps and clocks according to schematics. | |
| 794 | [Aaron Giles] | |
| 795 | ||
| 796 | Added targ and spectar to TinyMAME. [neoforma] | |
| 797 | ||
| 798 | ||
| 799 | ||
| 800 | New games added or promoted from NOT_WORKING status | |
| 801 | --------------------------------------------------- | |
| 802 | Ripper Ribbit [Aaron Giles] | |
| 803 | Chicken Farm [Aaron Giles] | |
| 804 | Crazzy Clownz [Aaron Giles] | |
| 805 | Space Fighter Mark II [Zsolt Vasvari, Guru] | |
| 806 | ||
| 807 | ||
| 808 | ||
| 809 | New clones added | |
| 810 | ---------------- | |
| 811 | Heated Barrel (US set 2) [Corrado Tomaselli] | |
| 812 | Player's Edge Plus (XMP00006) Multi-Poker [Jim Stolis] | |
| 813 | ||
| 814 | ||
| 815 | ||
| 816 | New games marked as GAME_NOT_WORKING | |
| 817 | ------------------------------------ | |
| 818 | International Toote (Germany) [Luca Elia] | |
| 819 | Dodge City [Roberto Fresca] | |
| 820 | ||
| 821 | ||
| 822 | ||
| 823 | 0.122u5 | |
| 824 | ------- | |
| 825 | ||
| 826 | ||
| 827 | MAMETesters Bugs Fixed | |
| 828 | ---------------------- | |
| 829 | scorpion0111u5gra [couriersud] | |
| 830 | qbert37b14gre1 [Zsolt Vasvari] | |
| 831 | blktiger060gre [robiza] | |
| 832 | kinstc081u7gre [Aaron Giles] | |
| 833 | kinst2083gre [Aaron Giles] | |
| 834 | umk3059gre [Aaron Giles] | |
| 835 | umk3137b5gre [Aaron Giles] | |
| 836 | lasso056gre_1 [Zsolt Vasvari] | |
| 837 | lasso056gre_2 [Zsolt Vasvari] | |
| 838 | term20103u4gre [Aaron Giles] | |
| 839 | term20104u2gre [Aaron Giles] | |
| 840 | m72_0115u3yel [Mamesick, Aaron Giles] | |
| 841 | deadang0119u2red [David Haywood] | |
| 842 | tmnt095gre [Zsolt Vasvari] | |
| 843 | memleak0122u2ora [Atari Ace] | |
| 844 | junglek055gre [Zsolt Vasvari] | |
| 845 | ||
| 846 | ||
| 847 | ||
| 848 | Source Changes | |
| 849 | -------------- | |
| 850 | Fixed flipped tilemap offset for scramble and clones (playable | |
| 851 | cocktail mode). [couriersud] | |
| 852 | ||
| 853 | Changed Exidy driver to draws the background directly from memory | |
| 854 | avoiding having to decode the gfx repeadately. [Zsolt Vasvari] | |
| 855 | ||
| 856 | Added machine and cpunum parameters to INTERRUPT_GEN callbacks. Fixed | |
| 857 | several places that were not using INTERRUPT_GEN or OPBASE_HANDLER | |
| 858 | macros. [Atari Ace] | |
| 859 | ||
| 860 | Minor bugfixes to the gfxlayout cleanups included in u4. [Atari Ace] | |
| 861 | ||
| 862 | Added code to debug 64-bit builds to allocate all address space below | |
| 863 | 4GB to help find 64-bit errors. Added environment variable | |
| 864 | OSDDEBUGMALLOC which, if set, explicitly overrides the debug malloc | |
| 865 | debug settings. Added environment variable OSDDEBUG4GB which, if set, | |
| 866 | explicitly overrides the new 64-bit address space allocations. (Sadly | |
| 867 | this is necessary due to some D3D drivers being 64-bit unclean....) | |
| 868 | [Aaron Giles] | |
| 869 | ||
| 870 | Fixed winwork to use proper tchar functions for getenv. [Aaron Giles] | |
| 871 | ||
| 872 | Fixed bug where the 64-bit DRC was not saving rbp. [Aaron Giles] | |
| 873 | ||
| 874 | Cleaned up the lasso driver. [Zsolt Vasvari] | |
| 875 | ||
| 876 | Simplified Y-unit DMA rendering, fixing bugs and removing the macro | |
| 877 | voodoo. [Aaron Giles] | |
| 878 | ||
| 879 | Removed a bunch of dead code from othunder.c. [Zsolt Vasvari] | |
| 880 | ||
| 881 | Implemented proper video timing and scanline interrupts in the m72 | |
| 882 | driver. [Mamesick, Aaron Giles] | |
| 883 | ||
| 884 | mario.c improvements: [couriersud] | |
| 885 | * discrete sound | |
| 886 | * hooked up z80dma | |
| 887 | * combined memory maps | |
| 888 | * statics in mario_state struct | |
| 889 | * fixed save state issues | |
| 890 | * combine sh_* writes into one routine | |
| 891 | ||
| 892 | audio/dkong.c: [couriersud] | |
| 893 | * fixed LS123 constant to match TI datasheet diode circuit constant | |
| 894 | ||
| 895 | TX-1 improvements [Philip Bennett, Guru]: | |
| 896 | * Fixed remaining arithmetic unit issues | |
| 897 | * Added correct object colour pixel LUT PROM to tx1a | |
| 898 | * Fixed x-flipping | |
| 899 | * Added engine sounds | |
| 900 | ||
| 901 | Added correct DIP switch settings for Big Fight. Also corrected Cycle | |
| 902 | Warriors DIP switches. [Philip Bennett] | |
| 903 | ||
| 904 | Changed and verified frequencies on Ikari Warriors h/w, Tnk3, Hyper | |
| 905 | Sports, Jackal and S.A.R. [Corrado Tomaselli] | |
| 906 | ||
| 907 | Verified and corrected a lot of frequencies and oki6295 pin 7 on pcbs: | |
| 908 | Double Dribble, Chequered Flag, Diet gogo, Boulderdash, Sly Spy, | |
| 909 | Psycho Nics Oscar, Captain Silver, Magical Cat Adventure, Raiden, | |
| 910 | Superman, Twin Hawk, Vimana, Ghox, Dogyunn, truxton2, Pipi and Bibis, | |
| 911 | Fix Eight and Money Money. [Corrado Tomaselli] | |
| 912 | ||
| 913 | Cleaned up brkthru/darwin memory maps. Changed both games to use | |
| 914 | identical video timing parameters based on measurements of darwin. | |
| 915 | Guessed based on available information at the master clock and | |
| 916 | derived all game clocks from it. [Aaron Giles] | |
| 917 | ||
| 918 | Reogranized and started to clean up the CVS driver. Added emulation | |
| 919 | of the speech CPU. Removed CVS BIOS entry. Removed unnecessary | |
| 920 | patching. [Zsolt Vasvari] | |
| 921 | ||
| 922 | sauro.c: [couriersud] | |
| 923 | * Hooked up sp0256 sound | |
| 924 | * analyzed and commented some ports | |
| 925 | * added palette_bank support without real success | |
| 926 | ||
| 927 | Reorganized the Raiden 2 driver.. a bit of extra documentation of the | |
| 928 | 'V33' based set, which has been renamed. Nothing new working. | |
| 929 | [David Haywood] | |
| 930 | ||
| 931 | Fixed scan functions for kickgoal background, which were swapped. | |
| 932 | [David Haywood] | |
| 933 | ||
| 934 | Fixed 2650 disassembly of the sense and flag bits. Fixed incorrect | |
| 935 | argument order in OUT instruction. Corrected spacing. [Zsolt Vasvari] | |
| 936 | ||
| 937 | Fixed hang/crash on empty config file. [Wilbert Pol] | |
| 938 | ||
| 939 | Cleaned up tceptor memory maps. [Zsolt Vasvari] | |
| 940 | ||
| 941 | Atari System 2 driver cleanup: [Aaron Giles] | |
| 942 | * Proper video timing. | |
| 943 | * Full memory maps. | |
| 944 | * Save state support. | |
| 945 | * Removed 720 sound CPU hack in favor of prepopulated EEPROM like | |
| 946 | the other games. | |
| 947 | ||
| 948 | Added support for outputting 64-bit target addresses in the i386dasm. | |
| 949 | [Aaron Giles] | |
| 950 | ||
| 951 | Added MESS PC-Engine emulatation system. Fixed MAME debug build under | |
| 952 | VC2003. [Mariusz Wojcieszek] | |
| 953 | ||
| 954 | Unified memory maps in tmnt.c and twin16.c. Reversed ROM set names | |
| 955 | of Cuebrick World and Japan versions. Changed some function names to | |
| 956 | reflect parent set. [Zsolt Vasvari] | |
| 957 | ||
| 958 | Changed Konami drivers to allocate and decode graphics using the same | |
| 959 | layouts. Removed the layout parameter from the decodechar() calls. | |
| 960 | [Atari Ace] | |
| 961 | ||
| 962 | Fixed C++ compilation errors. [Dave Dribin] | |
| 963 | ||
| 964 | Made INPs compatible between 64-bit MAME and 32-bit MAME. [Chad] | |
| 965 | ||
| 966 | Complete taitosj memory map from Nicola's ancient notes. General code | |
| 967 | clean-up. [Zsolt Vasvari] | |
| 968 | ||
| 969 | src2html improvments: [Aaron Giles] | |
| 970 | - added line numbers | |
| 971 | - added link to the raw file if the src and dst dirs are the same | |
| 972 | ||
| 973 | "Fix" for full screen switch, which makes no sense, but is included | |
| 974 | based on empirical evidence that is somehow works. [Emuman] | |
| 975 | ||
| 976 | ||
| 977 | ||
| 978 | New games added or promoted from NOT_WORKING status | |
| 979 | --------------------------------------------------- | |
| 980 | Name Club Ver.3 (J 970723 V1.000) [David Haywood, Mariusz Wojcieszek] | |
| 981 | Blazing Lazers [Mariusz Wojcieszek, Charles MacDonald, Mr. Do] | |
| 982 | ||
| 983 | ||
| 984 | ||
| 985 | New clones added | |
| 986 | ---------------- | |
| 987 | Lead Angle (Japan) [Guru] | |
| 988 | A Question of Sport (39-960-107) [Highwayman] | |
| 989 | Gee Bee (F.lli Bertolino license) [Corrado Tomaselli] | |
| 990 | ||
| 991 | ||
| 992 | ||
| 993 | New games marked as GAME_NOT_WORKING | |
| 994 | ------------------------------------ | |
| 995 | Road Runner (Midway) [Zsolt Vasvari, Guru] | |
| 996 | Paranoia [Mariusz Wojcieszek] | |
| 997 | ||
| 998 | ||
| 999 | ||
| 1000 | 0.122u4 | |
| 1001 | ------- | |
| 1002 | ||
| 1003 | ||
| 1004 | MAMETesters Bugs Fixed | |
| 1005 | ---------------------- | |
| 1006 | gui0121u1gre [Aaron Giles] | |
| 1007 | drivedge0121u4gre [Aaron Giles] | |
| 1008 | bking3076u2red [Pierpaolo Prazzoli] | |
| 1009 | btoads0102u5gre [Aaron Giles] | |
| 1010 | btoads0103u1gre [Aaron Giles] | |
| 1011 | editableui0120u4red [Aaron Giles] | |
| 1012 | cheat0118red [Aaron Giles] | |
| 1013 | altf4_0111u4gre [Aaron Giles] | |
| 1014 | beastrzb097u2red [Oliver Stoneberg] | |
| 1015 | memoryleak0118u1ora [Oliver Stoneberg] | |
| 1016 | memory_leak0111u6ora [Oliver Stoneberg] | |
| 1017 | mahoudai0106u7yel [Philip Bennett] | |
| 1018 | gridiron079gre [David Haywood] | |
| 1019 | maniach37b11gre [David Haywood] | |
| 1020 | matmaniac37b14gre [David Haywood] | |
| 1021 | qzkklgy2_0106u6red [David Haywood] | |
| 1022 | warriorb0109u2gre [David Haywood] | |
| 1023 | vball071u1gre [Bryan McPhail] | |
| 1024 | d3dwindow0117u3red [Aaron Giles, Emuman] | |
| 1025 | arkanoid061gre [Bryan McPhail] | |
| 1026 | flkatck058gre [David Haywood] | |
| 1027 | memleak0119u3ora [Oliver Stoneberg] | |
| 1028 | system24_0120u3red [Atari Ace, Aaron Giles] | |
| 1029 | aleck64_0120red [Aaron Giles] | |
| 1030 | mtetrisc0115u1red [Aaron Giles] | |
| 1031 | suratk0122u3gra [Pierpaolo Prazzoli] | |
| 1032 | suratk0122u3ora [Pierpaolo Prazzoli] | |
| 1033 | skychut37b1yel [couriersud] | |
| 1034 | skychut37b6gre [couriersud] | |
| 1035 | darius2_0114gre [Bryan McPhail] | |
| 1036 | ad2083_0111u5gra [couriersud] | |
| 1037 | abaseb0122u3red [Zsolt Vasvari] | |
| 1038 | ladybug080u1gre [Zsolt Vasvari] | |
| 1039 | suprridr0122u2gra [Zsolt Vasvari] | |
| 1040 | invho2_0122u3red [Zsolt Vasvari] | |
| 1041 | narc37b16yel [Aaron Giles] | |
| 1042 | kingofb37b6gre [robiza] | |
| 1043 | stonebal0117u2gre [Aaron Giles] | |
| 1044 | wotw36b1gre [Zsolt Vasvari] | |
| 1045 | wallst071gre [Zsolt Vasvari] | |
| 1046 | mtrap37b14gre [Zsolt Vasvari] | |
| 1047 | pitfight0109u2gre [Aaron Giles] | |
| 1048 | ||
| 1049 | ||
| 1050 | ||
| 1051 | Source Changes | |
| 1052 | -------------- | |
| 1053 | Corrected btoads clocks according XTALs on the PCB. [Aaron Giles] | |
| 1054 | ||
| 1055 | "Simplified" MC8123 decryption, though it's still more complicated | |
| 1056 | than I'd like it to be. [Nicola Salmoria] | |
| 1057 | ||
| 1058 | Cleaned up clocks in the itech32 driver. [Aaron Giles] | |
| 1059 | ||
| 1060 | Added partial key for FD1089B 317-0037. [Nicola Salmoria] | |
| 1061 | ||
| 1062 | Fixed bking3 clocks as per Guru readme. Added GAME_WRONG_COLORS flag | |
| 1063 | to bking3. [Pierpaolo Prazzoli] | |
| 1064 | ||
| 1065 | TMS34020 fixes: [Aaron Giles] | |
| 1066 | * Allowed 32-bit pixel sizes | |
| 1067 | * Fixed RPIX instruction | |
| 1068 | ||
| 1069 | Added new function input_poll_keyboard_switches to poll for only key | |
| 1070 | events. Expanded the size of the maximum simultaneously pressed | |
| 1071 | switches. [Aaron Giles] | |
| 1072 | ||
| 1073 | Removed GAME_IMPERFECT_GRAPHICS from all jpmimpct games bar Cluedo | |
| 1074 | (see driver note). [Philip Bennett] | |
| 1075 | ||
| 1076 | mario driver improvements: [couriersud] | |
| 1077 | - Hooked up flipscreen | |
| 1078 | - Changed monitor orientation to ROT0 | |
| 1079 | ||
| 1080 | Added Z80 DMA chip [couriersud] | |
| 1081 | - only implements intelligence to emulate dkong3 | |
| 1082 | - fixed a misleading comment in 8257dma.h | |
| 1083 | ||
| 1084 | dkong driver improvements: [couriersud] | |
| 1085 | - hooked up z80dma | |
| 1086 | - removed 2nd player inputs from sdbk input_ports | |
| 1087 | - fixed some dump "copy/paste" bugs in dip locations | |
| 1088 | ||
| 1089 | Added redumped Turkey USA to the seta2.c driver. [Brian Troha] | |
| 1090 | ||
| 1091 | Fixed bad ram pages errors in stactics service mode. | |
| 1092 | [Pierpaolo Prazzoli] | |
| 1093 | ||
| 1094 | Atari updates: [Aaron Giles] | |
| 1095 | - Added save state support to slapstic. | |
| 1096 | - Added save state support to YM2413. | |
| 1097 | - Modified slapstic code to support address range mirrors. | |
| 1098 | - Cleaned up Rampart driver: | |
| 1099 | - simplified rendering code | |
| 1100 | - full memory map | |
| 1101 | - added save state support | |
| 1102 | ||
| 1103 | Implemented decent-sounding FM in the SCSP. [kingshriek] | |
| 1104 | ||
| 1105 | Updated Naomi driver, now boots and shows some test menus (press F2 | |
| 1106 | to get into test, use 9 to navigate). Also hooked up ROM board PIO | |
| 1107 | and skeleton for DMA. [R. Belmont, Samuele Zannoli, ElSemi] | |
| 1108 | ||
| 1109 | N64 improvements: [SGINut] | |
| 1110 | - Move texture masking to occur after coordinate adjustment | |
| 1111 | - Fix 32-bit texturing in load_tile (Mario Kart 64 title screen) | |
| 1112 | - Add zero-alpha early-out (Mario 64 trees/stars, Mario Kart 64 | |
| 1113 | trees/karts) | |
| 1114 | ||
| 1115 | ad2083 improvements: [couriersud] | |
| 1116 | * completed tms5110A code | |
| 1117 | * working speech synthesis | |
| 1118 | * documented analysis done on pcb pictures and findings | |
| 1119 | * as a consequence, marked all sound roms as BAD DUMP | |
| 1120 | * created sound driver in scramble.c | |
| 1121 | ||
| 1122 | Cleaned up graphics layouts in preparation for new format. Added new | |
| 1123 | GFXLAYOUT_RAW() macro to normalize definition. Added new validation | |
| 1124 | code. Made all remaining instances of gfx_layouts const. [Atari Ace] | |
| 1125 | ||
| 1126 | Updated Amiga driver to use formal XTALs. [Dirk Best] | |
| 1127 | ||
| 1128 | Changed 6522 emulation such that when writing to the ACR register with | |
| 1129 | the timer 1 in continuous counting mode, the timer 1 value should not | |
| 1130 | be reloaded but keep on counting. [Wilbert Pol] | |
| 1131 | ||
| 1132 | Added XTAL defines to bfm_sc2.c and cleaned up lvcards.c. | |
| 1133 | [James Wallace] | |
| 1134 | ||
| 1135 | Added default layout to neogeo games allowing for either cropping or | |
| 1136 | stretching to the alternate 304x224 layout. Removed default cropping | |
| 1137 | in the driver. [David Haywood, Aaron Giles] | |
| 1138 | ||
| 1139 | Fixed crash when saving state of older DCS-based games. Added save | |
| 1140 | state support to the midvunit driver. [Aaron Giles] | |
| 1141 | ||
| 1142 | Major improvements to Cycle Warriors video code (still not perfect, | |
| 1143 | but road layer works now). [Bryan McPhail] | |
| 1144 | ||
| 1145 | Major rewrite of skychut.c. There are still some glitches and it is | |
| 1146 | not perfect but the following has been achieved: [couriersud] | |
| 1147 | * adds samples to ipm invaders - just rename your old invaders | |
| 1148 | samples to ipminvad to test | |
| 1149 | * added - amongst others - "capsule" dip switch to ipm invaders | |
| 1150 | * sound ports identified | |
| 1151 | * demo sound and cabinet type driver configuration | |
| 1152 | ||
| 1153 | Updated memory configuration for Superboard game versions in peplus | |
| 1154 | driver. Fixes CMOS DATA errors on reload. [Jim Stolis] | |
| 1155 | ||
| 1156 | Rewrote the CVS system video code. [Zsolt Vasvari] | |
| 1157 | ||
| 1158 | Fixed S2650 register window display. [Zsolt Vasvari] | |
| 1159 | ||
| 1160 | Added sound to Cycle Warriors and Big Fight. Corrected OKI M6295 | |
| 1161 | clock values. [Philip Bennett] | |
| 1162 | ||
| 1163 | Fixed missing arrow in Venture on the zoomed out map, and the | |
| 1164 | incorrect fading twister in Hard Hat. [Zsolt Vasvari] | |
| 1165 | ||
| 1166 | ||
| 1167 | ||
| 1168 | New games added or promoted from NOT_WORKING status | |
| 1169 | --------------------------------------------------- | |
| 1170 | Dangerous Curves [Philip Bennett, Dazzer] | |
| 1171 | Big Fight [Bryan McPhail] | |
| 1172 | ||
| 1173 | ||
| 1174 | ||
| 1175 | New clones added | |
| 1176 | ---------------- | |
| 1177 | Invasion - The Abductors (version 5.0) [Brian Troha] | |
| 1178 | Alien Syndrome (set 5, System 16A, FD1089B 317-0037) [Nicola Salmoria] | |
| 1179 | Dragon Spirit (Atari license) [Satoshi Suzuki] | |
| 1180 | ||
| 1181 | ||
| 1182 | ||
| 1183 | 0.122u3 | |
| 1184 | ------- | |
| 1185 | ||
| 1186 | ||
| 1187 | MAMETesters Bugs Fixed | |
| 1188 | ---------------------- | |
| 1189 | hstennis0103u2gra [Brian Troha] | |
| 1190 | edrandy0113gra [Brian Troha] | |
| 1191 | robocop2_0106u3gra [Brian Troha, Bryan McPhail] | |
| 1192 | mario0110u1gre [couriersud] | |
| 1193 | sbrkout0118yel [R. Belmont, Adam Bousley] | |
| 1194 | pestplce0122red [couriersud] | |
| 1195 | funkyjet055yel [Bryan McPhail] | |
| 1196 | liberate074u1gre [Bryan McPhail] | |
| 1197 | tokiu056gre [Bryan McPhail] | |
| 1198 | powerbls0112u4red [Pierpaolo Prazzoli] | |
| 1199 | wwestern0115u1yel [Atari Ace] | |
| 1200 | namcos1_0118u2yel [Atari Ace] | |
| 1201 | victnine0116u2red [Pierpaolo Prazzoli] | |
| 1202 | btoads0103gre [Aaron Giles] | |
| 1203 | ||
| 1204 | ||
| 1205 | ||
| 1206 | Source Changes | |
| 1207 | -------------- | |
| 1208 | Fixes clocks for Orbs. [David Haywood, Tomasz Slanina] | |
| 1209 | ||
| 1210 | Fixed various 64-bit GCC warnings. [R. Belmont] | |
| 1211 | ||
| 1212 | Improves accuracy and documentation of NSS/SNES DSP-1. | |
| 1213 | [Andreas Naive, R. Belmont] | |
| 1214 | ||
| 1215 | Added new file xtal.h, documenting all known arcade PCB clock cystals. | |
| 1216 | Drivers should be updated to use these as a basis for their clocks, | |
| 1217 | and the list should be augmented as additional crystals are found. | |
| 1218 | [Guru, Aaron Giles] | |
| 1219 | ||
| 1220 | suprloco improvements: [Pierpaolo Prazzoli] | |
| 1221 | * Fixed IC.34 memory test | |
| 1222 | * Fixed 2nd player cocktail mode | |
| 1223 | * Changed coin3 to service1 | |
| 1224 | ||
| 1225 | Cleaned up inputs/DIP switches in cninja driver. [Brian Troha] | |
| 1226 | ||
| 1227 | Rewrote mario.c: [couriersud] | |
| 1228 | - rewrote driver, separate MACHINE_DRIVER(mario_audio) | |
| 1229 | - palette from schematics | |
| 1230 | - video timing from schematics | |
| 1231 | - driver configuration switch Nintendo/Std Monitor | |
| 1232 | - got rid of COLORTABLE | |
| 1233 | ||
| 1234 | Fixed typo for IO1 irq callback in hyperstone core. | |
| 1235 | [Pierpaolo Prazzoli] | |
| 1236 | ||
| 1237 | Added memory_get_bank() function. Fixed logging in memory.c to to use | |
| 1238 | %p for pointer values. [Aaron Giles] | |
| 1239 | ||
| 1240 | Fixed save states in i8051 cpu core [Pierpaolo Prazzoli] | |
| 1241 | ||
| 1242 | Implemented a few SysCtrl, Maple, and PVR/HOLLY bits for Naomi. The | |
| 1243 | BIOS gets slightly further but is nowhere near starting up. | |
| 1244 | [R. Belmont] | |
| 1245 | ||
| 1246 | Zeus updates: [Aaron Giles] | |
| 1247 | * Better documented various bit latches. | |
| 1248 | * Hooked up crusnexo lamp board (added layout). | |
| 1249 | * Fixed year in MK4 startup test. | |
| 1250 | ||
| 1251 | Fixed TMS5110 tables. [couriersud, Lord Nightmare] | |
| 1252 | ||
| 1253 | Removed ui_popup(). Drivers should always be using popmessage() | |
| 1254 | instead (has been this way for a while). Augmented popmessage() so | |
| 1255 | that you can pass NULL to immediately dismiss any messages. | |
| 1256 | [Aaron Giles, thanks to Oliver Stoneberg's suggestion] | |
| 1257 | ||
| 1258 | Added ATTR_PRINTF to a number of functions that have printf semantics. | |
| 1259 | [Oliver Stoneberg] | |
| 1260 | ||
| 1261 | Rewrote sbrkout driver based on schematics: [Aaron Giles] | |
| 1262 | * XTAL-based timing | |
| 1263 | * Correct video timing | |
| 1264 | * Full memory map | |
| 1265 | * Correct memory usage ("zero page" RAM is shared with videoram) | |
| 1266 | * Removed all input hacks | |
| 1267 | * Fixed interrupt generation | |
| 1268 | * Connected coin counters | |
| 1269 | * Added save state support | |
| 1270 | ||
| 1271 | Fixed several UNICODE=1 issues in the debugger. Changed the Windows | |
| 1272 | build process to always enable UNICODE=1 for 64-bit builds. | |
| 1273 | [Oliver Stoneberg, Aaron Giles] | |
| 1274 | ||
| 1275 | Added save state support to btoads. [Aaron Giles] | |
| 1276 | ||
| 1277 | Fixed onna34ro mcu simulation properly. [Pierpaolo Prazzoli] | |
| 1278 | ||
| 1279 | ||
| 1280 | ||
| 1281 | New clones added | |
| 1282 | ---------------- | |
| 1283 | Mutant Fighter (World, EM-3) [Stefan Lindberg] | |
| 1284 | The Simpsons (2 Players Asia) [Arzeno Fabrice] | |
| 1285 | ||
| 1286 | ||
| 1287 | ||
| 1288 | 0.122u2 | |
| 1289 | ------- | |
| 1290 | ||
| 1291 | ||
| 1292 | MAMETesters Bugs Fixed | |
| 1293 | ---------------------- | |
| 1294 | pestplce0122red [couriersud] | |
| 1295 | hunchbkd0122red [couriersud] | |
| 1296 | radarscp0122yel [couriersud] | |
| 1297 | mwalk0122red [couriersud] | |
| 1298 | qtheater0122u1ora [Philip Bennett] | |
| 1299 | ||
| 1300 | ||
| 1301 | ||
| 1302 | Source Changes | |
| 1303 | -------------- | |
| 1304 | Fixed M65C02 optimization. [Peter Trauner] | |
| 1305 | ||
| 1306 | TMS51xx and M58817 speech updates: [couriersud] | |
| 1307 | - radarsc1 uses tms5110 speech synth | |
| 1308 | - cvs games: according to PCBInfos speech chip is TMS5100. | |
| 1309 | Changed driver to use TMS5100 and "game system operational" now | |
| 1310 | sounds more natural | |
| 1311 | - removed sound/m58817.* | |
| 1312 | - added support for multiple coefficients maps to tms5110.* | |
| 1313 | - added coefficient maps for TMS5100 and M58817 from documented | |
| 1314 | sources to tms5110r.c | |
| 1315 | - fixed interpolation factors (see tms5110r.c for reason) | |
| 1316 | - made lattice calculation precision 9bit | |
| 1317 | - added support for READBIT and LOADADDRESS commands to tms5110.c | |
| 1318 | - more changes in line with various patents | |
| 1319 | - documented TRS-02, TKG-02/03 "voice" interface | |
| 1320 | ||
| 1321 | Completed the addition of static qualifiers to all MAME symbols that | |
| 1322 | aren't explicitly exported. [Atari Ace] | |
| 1323 | ||
| 1324 | Named the input_seq_type enumeration and used it explicitly in several | |
| 1325 | places. [Nathan Woods] | |
| 1326 | ||
| 1327 | Corrected tx1 and tx1a coinage DSW assignments. Reversed buggyboy/ | |
| 1328 | buggybjr 'Game Time' settings. [Philip Bennett] | |
| 1329 | ||
| 1330 | TMS3203x core updates: [Aaron Giles] | |
| 1331 | * fixed interrupt handling | |
| 1332 | * added support for edge-triggered interrupts on '32 | |
| 1333 | * expanded interrupt support for the '32 | |
| 1334 | * updated drivers using TMS3203x core to deassert interrupts | |
| 1335 | * added externally accessible functions for converting '3x floating point | |
| 1336 | format | |
| 1337 | * updated gaelco3d driver to use new functions | |
| 1338 | ||
| 1339 | Zeus2 (+related) updates: [Aaron Giles] | |
| 1340 | * fixed save states for DCS games | |
| 1341 | * cleaned up Zeus2 waveram handling | |
| 1342 | * added Zeus2 save state support | |
| 1343 | * added preliminary model and quad rendering support for Zeus2 | |
| 1344 | * added support to timekpr for the ZPRAM used on Zeus2 | |
| 1345 | * hooked up ZPRAM in Zeus2 games | |
| 1346 | * hooked up controls in Zeus2 games | |
| 1347 | * updated poly.c to ensure it is idle before saving state | |
| 1348 | * Added artifical Z offset of -2 to make the full screen show in crusnexo | |
| 1349 | ||
| 1350 | Replaced tekken2/tekken2a/tekken2b 'tes1wave.8k' ROM with the | |
| 1351 | correct, non-byte-swapped dump. [Philip Bennett] | |
| 1352 | ||
| 1353 | Added discrete 74LS624(56789) implementation [couriersud] | |
| 1354 | - DISCRETE_74LS624 is a VCO needed for dkongjr | |
| 1355 | - Supports Logic, Energy and Count outputs | |
| 1356 | ||
| 1357 | dkong updates: [couriersud] | |
| 1358 | - Added dkongjr discrete sound | |
| 1359 | - Proper interface Z80 - I8035 for dkongjr | |
| 1360 | - Changed discrete sound output factors | |
| 1361 | - removed samples support for dkongjr | |
| 1362 | - Cosmetic changes | |
| 1363 | - Fixed regression in radarscp sound | |
| 1364 | - Added dipswitch locations to dkong3b | |
| 1365 | ||
| 1366 | Documentation and clock frequency improvements for seta.c: [Brian Troha] | |
| 1367 | - Added the Guru's readme info for Thundercade | |
| 1368 | - Corrected rom name for Thundercade | |
| 1369 | - changed clocks to OSC by divider IE: 16000000/2 /* 8MHz */ | |
| 1370 | - Changed Orbs clock to 16MHz with note about 14.xx MHz | |
| 1371 | - Changed Meta Fox's x0-006 (65c02) to same as Thundercade | |
| 1372 | - Changed the YM3438 in Ultra Toukond Densetsu from 6MHz to 1600000/4 | |
| 1373 | /* 4MHz */ as there is no mention of 6MHz OSC on PCB | |
| 1374 | ||
| 1375 | Verified a number of clock frequencies from real PCBs. | |
| 1376 | [Corrado Tomaselli, Zsolt Vasvari] | |
| 1377 | ||
| 1378 | Fixed several memory leaks related to SCSI CD emulation. | |
| 1379 | [Oliver Stoneberg] | |
| 1380 | ||
| 1381 | Removed the increasing of the R register from each IX/IY related | |
| 1382 | (FD xx or DD xx) instruction on the Z80. According to documentation | |
| 1383 | and the behavior of the Amstrad CPC driver, this is incorrect. | |
| 1384 | [Barry Rodewald] | |
| 1385 | ||
| 1386 | Added initial FPU support to the SH4 core. [Samuele Zannoli] | |
| 1387 | ||
| 1388 | Adjusted most conditional logging in MAME to use the idiom | |
| 1389 | "do { if (VERBOSE) logerror x; } while (0)". This has the benefit that | |
| 1390 | the compiler checks the syntax of the logging even in the case it will | |
| 1391 | be eliminated, and in fact a number of cases here needed adjustments | |
| 1392 | to compile because of this. [Atari Ace] | |
| 1393 | ||
| 1394 | ||
| 1395 | ||
| 1396 | 0.122u1 | |
| 1397 | ------- | |
| 1398 | ||
| 1399 | ||
| 1400 | MAMETesters Bugs Fixed | |
| 1401 | ---------------------- | |
| 1402 | ym2610_0119u2gre [Philip Bennett] | |
| 1403 | ||
| 1404 | ||
| 1405 | ||
| 1406 | Source Changes | |
| 1407 | -------------- | |
| 1408 | Zeus updates: [Aaron Giles] | |
| 1409 | * Figured out data format of 2 matrix form. | |
| 1410 | * Extracted data for lights. | |
| 1411 | * Added backface culling which mostly works but fails sometimes, so | |
| 1412 | it is disabled. | |
| 1413 | * Started on some initial lighting calculations. | |
| 1414 | * Cleaned up zeus wave RAM accessors. | |
| 1415 | * Changed rendering code to allow for greater parallelism on multicore | |
| 1416 | systems. | |
| 1417 | * Removed some vestigial zeus 2 hacks. | |
| 1418 | * Reduced visible area to remove artifacts. | |
| 1419 | * Made right/bottom vertices inclusive to fix some gapping issues. | |
| 1420 | * Fixed invasn lightgun offset. | |
| 1421 | ||
| 1422 | Zeus 2 hardware: | |
| 1423 | * Fixed ROM loading, added banking support. | |
| 1424 | * Separated zeus 2 video implementation from zeus implementation. | |
| 1425 | * Implemented direct pixel accesses; enough to get startup screens | |
| 1426 | to show. | |
| 1427 | * Hooked up ZPRAM. | |
| 1428 | * Fixed digital inputs for crusnexo. | |
| 1429 | * Fixed default screen parameters to match the games. | |
| 1430 | ||
| 1431 | Afega/nmk16 cleanups: [David Haywood, Tomasz Slanina] | |
| 1432 | * Merged afega.c and nmk16.c drivers | |
| 1433 | * Removed many hacks from both. | |
| 1434 | * Fixed a number of games | |
| 1435 | ||
| 1436 | Fixed C219 sample read order and implemented sign+magnitude format. | |
| 1437 | Removed GAME_IMPERFECT_SOUND flag from all Namco NA-1 games. | |
| 1438 | [Philip Bennett] | |
| 1439 | ||
| 1440 | Fixed ROM-based DCS2 system to ignore HLE transfers. (Fixes broken | |
| 1441 | sound in invasn.) Properly reduced internal memory on the ADSP-2104 | |
| 1442 | variants. [Aaron Giles] | |
| 1443 | ||
| 1444 | Fixed bug that would cause events to leak through to the game when the | |
| 1445 | debugger was up. [Aaron Giles] | |
| 1446 | ||
| 1447 | Verified some cpu clocks of original boards using a frequency counter: | |
| 1448 | [Corrado Tomaselli] | |
| 1449 | * Changed Success Joe Ym2203 clock from 3mhz to 4mhz | |
| 1450 | * Changed Pang M6295 clock from 990khz to 1Mhz | |
| 1451 | * Changed Halley Comet main cpu clock to 1.664mhz (it's not a | |
| 1452 | mistake, the clock is very low) | |
| 1453 | * Besides confirming clocks on some games, I modified: | |
| 1454 | * Aerofighters and Turbo Force sound z80 to 5mhz | |
| 1455 | * Midnight Resitance 68k cpu to 10mhz (20mhz crystal) and modified | |
| 1456 | m6295 clock to 1mhz. Also confirmed pin 7 is high. | |
| 1457 | (Midnight resistance has a lot of slow downs on the pcb too) | |
| 1458 | ||
| 1459 | Minor "code quality" improvements: [Atari Ace] | |
| 1460 | * fixed some remaining static/const qualifier missed cases | |
| 1461 | * fixed some missing #include "foo.h" | |
| 1462 | * a few global names were modified to make them less generic/more | |
| 1463 | consistent (voodoo.c, vrender0.c, lethal.c, rungun.c, zac2650.c) | |
| 1464 | * some dead/useless code was removed (i8051.c,model1.c,romcmp.c) | |
| 1465 | ||
| 1466 | ||
| 1467 | ||
| 1468 | New games added or promoted from NOT_WORKING status | |
| 1469 | --------------------------------------------------- | |
| 1470 | Invasion [Aaron Giles] | |
| 1471 | Buggy Boy Junior/Speed Buggy (Upright) [Philip Bennett] | |
| 1472 | Task Force Harrier [David Haywood, Tomasz Slanina] | |
| 1473 | US AAF Mustang [David Haywood, Tomasz Slanina] | |
| 1474 | Black Heart [David Haywood, Tomasz Slanina] | |
| 1475 | Red Hawk [David Haywood, Tomasz Slanina] | |
| 1476 | Stagger I [David Haywood, Tomasz Slanina] | |
| 1477 | Sen Jin - Guardian Storm [David Haywood, Tomasz Slanina] | |
| 1478 | Spectrum 2000 [David Haywood, Tomasz Slanina] | |
| 1479 | Fire Hawk [David Haywood, Tomasz Slanina] | |
| 1480 | ||
| 1481 | ||
| 1482 | ||
| 1483 | New clones added | |
| 1484 | ---------------- | |
| 1485 | World Class Bowling (v1.3) [Brian Troha] | |
| 1486 |
| Previous | 15994 Revisions | Next |