<?xml version="1.0" encoding="utf-8"?>
<datafile>
  <header>
    <name>Irem M-72</name>
    <description>Irem M-72 datafile extracted from mame</description>
    <category>MAME Arcade</category>
    <version>0.226</version>
    <date>20201109</date>
    <author>Eric Bole-Feysot</author>
    <homepage>Romcenter Home Page</homepage>
    <url>http://www.romcenter.com/</url>
    <comment>Datafile made with Romcenter rom manager</comment>
  </header>
  <machine name="airduel" sourcefile="m72.cpp">
    <description>Air Duel (World, M82 hardware)</description>
    <year>1990</year>
    <manufacturer>Irem</manufacturer>
    <rom name="ad_=m82=_a-h0-d.ic52" size="131072" crc="dbecc726" sha1="526e9fdf0ca3af3eae462524df71af8e6bfa85d0" region="maincpu" offset="1" />
    <rom name="ad_=m82=_a-l0-d.ic60" size="131072" crc="6a9fcf59" sha1="a2ae64d290137036c350f84c38054cf6681473a5" region="maincpu" offset="0" />
    <rom name="ad_=m82=_a-h1-d.ic51" size="131072" crc="bafc152a" sha1="e20fa8b832ebfb7a4407fc162f28388858686d61" region="maincpu" offset="40001" />
    <rom name="ad_=m82=_a-l1-d.ic59" size="131072" crc="9e2b1ae7" sha1="838ccffb760b464d7d7e108e033a09e6295e5fc8" region="maincpu" offset="40000" />
    <rom name="ad_=m82=_a-sp-d.ic15" size="65536" crc="16a858a3" sha1="51dbac5b37ecb30b46072f5a300a29dc7f7b8542" region="soundcpu" offset="0" />
    <rom name="ad_=m82=_b-n0-d.ic44" size="131072" crc="2f0d599b" sha1="a966f806b5e25bb98cc63c46c49e0e676a62afcf" region="sprites" offset="0" />
    <rom name="ad_=m82=_b-n1-d.ic45" size="131072" crc="9865856b" sha1="b18a06899ae29d45e2351594df544220f3f4485a" region="sprites" offset="20000" />
    <rom name="ad_=m82=_b-n2-d.ic46" size="131072" crc="d392aef2" sha1="0f639a07066cadddc3884eb490885a8745571567" region="sprites" offset="40000" />
    <rom name="ad_=m82=_b-n3-d.ic36" size="131072" crc="923240c3" sha1="f587a83329087a715a3e42110f74f104e8c8ef1f" region="sprites" offset="60000" />
    <rom name="ad_=m82=_a-c0-d.ic49" size="131072" crc="ce134b47" sha1="841358cc222c81b8a91edc262f355310d50b4dbb" region="gfx2" offset="0" />
    <rom name="ad_=m82=_a-c1-d.ic48" size="131072" crc="097fd853" sha1="8e08f4f4a747c899bb8e21b347635e26af9edc2d" region="gfx2" offset="20000" />
    <rom name="ad_=m82=_a-c2-d.ic57" size="131072" crc="6a94c1b9" sha1="55174acbac54236e5fc1b80d120cd6da9fe5524c" region="gfx2" offset="40000" />
    <rom name="ad_=m82=_a-c3-d.ic56" size="131072" crc="6637c349" sha1="27cb7c89ab73292b43f8ae3c0d803a01ef3d3936" region="gfx2" offset="60000" />
    <rom name="mt_f0.ic38" size="131072" crc="2d5e05d5" sha1="18bdc9c561dbf0f91642161ca985d2154bd58b5d" region="sprites2" offset="0" />
    <rom name="mt_f1.ic39" size="131072" crc="c68cd65f" sha1="8999b558b4af0f453ada9e4ef705163df96844e6" region="sprites2" offset="20000" />
    <rom name="mt_f2.ic40" size="131072" crc="a71feb2d" sha1="47e366b422772bed08ee4d1c338970687d6c3b4c" region="sprites2" offset="40000" />
    <rom name="mt_f3.ic41" size="131072" crc="179f7562" sha1="6d28b199daffc62e8fa9009878ac0bb976ccbb2a" region="sprites2" offset="60000" />
    <rom name="ad_=m82=_a-v0-d.ic12" size="131072" crc="339f474d" sha1="a81bb52598a0e31b2ed6a538755237c5d14d1844" region="samples" offset="0" />
    <device_ref name="v30" />
    <device_ref name="z80" />
    <device_ref name="pic8259" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="m72_audio" />
    <device_ref name="ym2151" />
    <device_ref name="dac_8bit_r2r" />
    <chip type="cpu" tag="maincpu" name="NEC V30" clock="8000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <chip type="audio" tag="dac" name="8-Bit R-2R DAC" />
    <display tag="screen" type="raster" rotate="270" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Lives" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="2" value="2" />
      <dipvalue name="3" value="3" default="yes" />
      <dipvalue name="4" value="1" />
      <dipvalue name="5" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="12">
      <diplocation name="SW1" number="3" />
      <diplocation name="SW1" number="4" />
      <dipvalue name="Very Easy" value="0" />
      <dipvalue name="Easy" value="8" />
      <dipvalue name="Normal" value="12" default="yes" />
      <dipvalue name="Hard" value="4" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="16">
      <diplocation name="SW1" number="5" />
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <diplocation name="SW1" number="6" />
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="64">
      <diplocation name="SW1" number="7" />
      <dipvalue name="Off" value="64" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="128">
      <diplocation name="SW1" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="512">
      <diplocation name="SW1" number="2" />
      <dipvalue name="Off" value="512" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="1024">
      <diplocation name="SW1" number="3" />
      <dipvalue name="Off" value="1024" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="2048">
      <diplocation name="SW2" number="4" />
      <dipvalue name="Mode 1" value="2048" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="12288">
      <condition tag="DSW" mask="2048" relation="eq" value="0" />
      <diplocation name="SW2" number="5" />
      <diplocation name="SW2" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="4096" />
      <dipvalue name="2 Coins/1 Credit" value="8192" />
      <dipvalue name="1 Coin/1 Credit" value="12288" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="49152">
      <condition tag="DSW" mask="2048" relation="eq" value="0" />
      <diplocation name="SW2" number="7" />
      <diplocation name="SW2" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="49152" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="32768" />
      <dipvalue name="1 Coin/5 Credits" value="16384" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="61440">
      <condition tag="DSW" mask="2048" relation="ne" value="0" />
      <diplocation name="SW2" number="5" />
      <diplocation name="SW2" number="6" />
      <diplocation name="SW2" number="7" />
      <diplocation name="SW2" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="40960" />
      <dipvalue name="5 Coins/1 Credit" value="45056" />
      <dipvalue name="4 Coins/1 Credit" value="49152" />
      <dipvalue name="3 Coins/1 Credit" value="53248" />
      <dipvalue name="2 Coins/1 Credit" value="57344" />
      <dipvalue name="3 Coins/2 Credits" value="12288" />
      <dipvalue name="4 Coins/3 Credits" value="8192" />
      <dipvalue name="1 Coin/1 Credit" value="61440" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="16384" />
      <dipvalue name="1 Coin/2 Credits" value="36864" />
      <dipvalue name="1 Coin/3 Credits" value="32768" />
      <dipvalue name="1 Coin/4 Credits" value="28672" />
      <dipvalue name="1 Coin/5 Credits" value="24576" />
      <dipvalue name="1 Coin/6 Credits" value="20480" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="airdueljm72" sourcefile="m72.cpp" cloneof="airduel" romof="airduel">
    <description>Air Duel (Japan, M72 hardware)</description>
    <year>1990</year>
    <manufacturer>Irem</manufacturer>
    <rom name="ad-c-h0.ic40" size="131072" crc="12140276" sha1="f218c5f2e6795b6295dea064817d7d6b1a7762b6" region="maincpu" offset="1" />
    <rom name="ad-c-l0.ic37" size="131072" crc="4ac0b91d" sha1="97e2f633181cd5c25927fd0e2988af2acdb3f388" region="maincpu" offset="0" />
    <rom name="ad-c-h3.ic43" size="131072" crc="9f7cfca3" sha1="becf827aa7749c54f1c435ea224e1fd9c8b3f5f9" region="maincpu" offset="40001" />
    <rom name="ad-c-l3.ic34" size="131072" crc="9dd343f7" sha1="9f499936b6d3807aa5b5c18e9811c73c9a2c99f9" region="maincpu" offset="40000" />
    <rom name="ad_c-pr-.ic1" size="4096" crc="45584e52" sha1="647826f1bec9b39ae971ecb58d921d363ee4cf45" region="mcu" offset="0" />
    <rom name="ad-00.ic53" merge="ad_=m82=_b-n0-d.ic44" size="131072" crc="2f0d599b" sha1="a966f806b5e25bb98cc63c46c49e0e676a62afcf" region="sprites" offset="0" />
    <rom name="ad-10.ic51" merge="ad_=m82=_b-n1-d.ic45" size="131072" crc="9865856b" sha1="b18a06899ae29d45e2351594df544220f3f4485a" region="sprites" offset="20000" />
    <rom name="ad-20.ic49" merge="ad_=m82=_b-n2-d.ic46" size="131072" crc="d392aef2" sha1="0f639a07066cadddc3884eb490885a8745571567" region="sprites" offset="40000" />
    <rom name="ad-30.ic47" merge="ad_=m82=_b-n3-d.ic36" size="131072" crc="923240c3" sha1="f587a83329087a715a3e42110f74f104e8c8ef1f" region="sprites" offset="60000" />
    <rom name="ad-a0.ic21" merge="ad_=m82=_a-c0-d.ic49" size="131072" crc="ce134b47" sha1="841358cc222c81b8a91edc262f355310d50b4dbb" region="gfx2" offset="0" />
    <rom name="ad-a1.ic22" merge="ad_=m82=_a-c1-d.ic48" size="131072" crc="097fd853" sha1="8e08f4f4a747c899bb8e21b347635e26af9edc2d" region="gfx2" offset="20000" />
    <rom name="ad-a2.ic20" merge="ad_=m82=_a-c2-d.ic57" size="131072" crc="6a94c1b9" sha1="55174acbac54236e5fc1b80d120cd6da9fe5524c" region="gfx2" offset="40000" />
    <rom name="ad-a3.ic23" merge="ad_=m82=_a-c3-d.ic56" size="131072" crc="6637c349" sha1="27cb7c89ab73292b43f8ae3c0d803a01ef3d3936" region="gfx2" offset="60000" />
    <rom name="ad-b0.ic26" merge="ad_=m82=_a-c0-d.ic49" size="131072" crc="ce134b47" sha1="841358cc222c81b8a91edc262f355310d50b4dbb" region="gfx3" offset="0" />
    <rom name="ad-b1.ic27" merge="ad_=m82=_a-c1-d.ic48" size="131072" crc="097fd853" sha1="8e08f4f4a747c899bb8e21b347635e26af9edc2d" region="gfx3" offset="20000" />
    <rom name="ad-b2.ic25" merge="ad_=m82=_a-c2-d.ic57" size="131072" crc="6a94c1b9" sha1="55174acbac54236e5fc1b80d120cd6da9fe5524c" region="gfx3" offset="40000" />
    <rom name="ad-b3.ic24" merge="ad_=m82=_a-c3-d.ic56" size="131072" crc="6637c349" sha1="27cb7c89ab73292b43f8ae3c0d803a01ef3d3936" region="gfx3" offset="60000" />
    <rom name="ad-v0.ic44" merge="ad_=m82=_a-v0-d.ic12" size="131072" crc="339f474d" sha1="a81bb52598a0e31b2ed6a538755237c5d14d1844" region="samples" offset="0" />
    <rom name="ad-c-3f.ic13" size="260" status="nodump" region="pals" offset="0" />
    <device_ref name="v30" />
    <device_ref name="z80" />
    <device_ref name="pic8259" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="m72_audio" />
    <device_ref name="ym2151" />
    <device_ref name="dac_8bit_r2r" />
    <device_ref name="mb8421_mb8431_16" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="i8751" />
    <chip type="cpu" tag="maincpu" name="NEC V30" clock="8000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="cpu" tag="mcu" name="Intel 8751" clock="8000000" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <chip type="audio" tag="dac" name="8-Bit R-2R DAC" />
    <display tag="screen" type="raster" rotate="270" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Lives" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="2" value="2" />
      <dipvalue name="3" value="3" default="yes" />
      <dipvalue name="4" value="1" />
      <dipvalue name="5" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="12">
      <diplocation name="SW1" number="3" />
      <diplocation name="SW1" number="4" />
      <dipvalue name="Very Easy" value="0" />
      <dipvalue name="Easy" value="8" />
      <dipvalue name="Normal" value="12" default="yes" />
      <dipvalue name="Hard" value="4" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="16">
      <diplocation name="SW1" number="5" />
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <diplocation name="SW1" number="6" />
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="64">
      <diplocation name="SW1" number="7" />
      <dipvalue name="Off" value="64" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="128">
      <diplocation name="SW1" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="512">
      <diplocation name="SW1" number="2" />
      <dipvalue name="Off" value="512" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="1024">
      <diplocation name="SW1" number="3" />
      <dipvalue name="Off" value="1024" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="2048">
      <diplocation name="SW2" number="4" />
      <dipvalue name="Mode 1" value="2048" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="12288">
      <condition tag="DSW" mask="2048" relation="eq" value="0" />
      <diplocation name="SW2" number="5" />
      <diplocation name="SW2" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="4096" />
      <dipvalue name="2 Coins/1 Credit" value="8192" />
      <dipvalue name="1 Coin/1 Credit" value="12288" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="49152">
      <condition tag="DSW" mask="2048" relation="eq" value="0" />
      <diplocation name="SW2" number="7" />
      <diplocation name="SW2" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="49152" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="32768" />
      <dipvalue name="1 Coin/5 Credits" value="16384" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="61440">
      <condition tag="DSW" mask="2048" relation="ne" value="0" />
      <diplocation name="SW2" number="5" />
      <diplocation name="SW2" number="6" />
      <diplocation name="SW2" number="7" />
      <diplocation name="SW2" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="40960" />
      <dipvalue name="5 Coins/1 Credit" value="45056" />
      <dipvalue name="4 Coins/1 Credit" value="49152" />
      <dipvalue name="3 Coins/1 Credit" value="53248" />
      <dipvalue name="2 Coins/1 Credit" value="57344" />
      <dipvalue name="3 Coins/2 Credits" value="12288" />
      <dipvalue name="4 Coins/3 Credits" value="8192" />
      <dipvalue name="1 Coin/1 Credit" value="61440" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="16384" />
      <dipvalue name="1 Coin/2 Credits" value="36864" />
      <dipvalue name="1 Coin/3 Credits" value="32768" />
      <dipvalue name="1 Coin/4 Credits" value="28672" />
      <dipvalue name="1 Coin/5 Credits" value="24576" />
      <dipvalue name="1 Coin/6 Credits" value="20480" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="airduelm72" sourcefile="m72.cpp" cloneof="airduel" romof="airduel">
    <description>Air Duel (World, M72 hardware)</description>
    <year>1990</year>
    <manufacturer>Irem</manufacturer>
    <rom name="ad-c-h0-c.ic40" size="131072" crc="6467ed0f" sha1="3b6db463168edec0e42247e4d913d9d7615061c1" region="maincpu" offset="1" />
    <rom name="ad-c-l0-c.ic37" size="131072" crc="b90c4ffd" sha1="c95998244c52e95f6612013c23051b293423946f" region="maincpu" offset="0" />
    <rom name="ad-c-h3.ic43" size="131072" crc="9f7cfca3" sha1="becf827aa7749c54f1c435ea224e1fd9c8b3f5f9" region="maincpu" offset="40001" />
    <rom name="ad-c-l3.ic34" size="131072" crc="9dd343f7" sha1="9f499936b6d3807aa5b5c18e9811c73c9a2c99f9" region="maincpu" offset="40000" />
    <rom name="ad_c-pr-c.ic1" size="4096" status="nodump" region="mcu" offset="0" />
    <rom name="ad-00.ic53" merge="ad_=m82=_b-n0-d.ic44" size="131072" crc="2f0d599b" sha1="a966f806b5e25bb98cc63c46c49e0e676a62afcf" region="sprites" offset="0" />
    <rom name="ad-10.ic51" merge="ad_=m82=_b-n1-d.ic45" size="131072" crc="9865856b" sha1="b18a06899ae29d45e2351594df544220f3f4485a" region="sprites" offset="20000" />
    <rom name="ad-20.ic49" merge="ad_=m82=_b-n2-d.ic46" size="131072" crc="d392aef2" sha1="0f639a07066cadddc3884eb490885a8745571567" region="sprites" offset="40000" />
    <rom name="ad-30.ic47" merge="ad_=m82=_b-n3-d.ic36" size="131072" crc="923240c3" sha1="f587a83329087a715a3e42110f74f104e8c8ef1f" region="sprites" offset="60000" />
    <rom name="ad-a0.ic21" merge="ad_=m82=_a-c0-d.ic49" size="131072" crc="ce134b47" sha1="841358cc222c81b8a91edc262f355310d50b4dbb" region="gfx2" offset="0" />
    <rom name="ad-a1.ic22" merge="ad_=m82=_a-c1-d.ic48" size="131072" crc="097fd853" sha1="8e08f4f4a747c899bb8e21b347635e26af9edc2d" region="gfx2" offset="20000" />
    <rom name="ad-a2.ic20" merge="ad_=m82=_a-c2-d.ic57" size="131072" crc="6a94c1b9" sha1="55174acbac54236e5fc1b80d120cd6da9fe5524c" region="gfx2" offset="40000" />
    <rom name="ad-a3.ic23" merge="ad_=m82=_a-c3-d.ic56" size="131072" crc="6637c349" sha1="27cb7c89ab73292b43f8ae3c0d803a01ef3d3936" region="gfx2" offset="60000" />
    <rom name="ad-b0.ic26" merge="ad_=m82=_a-c0-d.ic49" size="131072" crc="ce134b47" sha1="841358cc222c81b8a91edc262f355310d50b4dbb" region="gfx3" offset="0" />
    <rom name="ad-b1.ic27" merge="ad_=m82=_a-c1-d.ic48" size="131072" crc="097fd853" sha1="8e08f4f4a747c899bb8e21b347635e26af9edc2d" region="gfx3" offset="20000" />
    <rom name="ad-b2.ic25" merge="ad_=m82=_a-c2-d.ic57" size="131072" crc="6a94c1b9" sha1="55174acbac54236e5fc1b80d120cd6da9fe5524c" region="gfx3" offset="40000" />
    <rom name="ad-b3.ic24" merge="ad_=m82=_a-c3-d.ic56" size="131072" crc="6637c349" sha1="27cb7c89ab73292b43f8ae3c0d803a01ef3d3936" region="gfx3" offset="60000" />
    <rom name="ad-v0.ic44" merge="ad_=m82=_a-v0-d.ic12" size="131072" crc="339f474d" sha1="a81bb52598a0e31b2ed6a538755237c5d14d1844" region="samples" offset="0" />
    <rom name="ad-c-3f.ic13" size="260" status="nodump" region="pals" offset="0" />
    <device_ref name="v30" />
    <device_ref name="z80" />
    <device_ref name="pic8259" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="m72_audio" />
    <device_ref name="ym2151" />
    <device_ref name="dac_8bit_r2r" />
    <chip type="cpu" tag="maincpu" name="NEC V30" clock="8000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <chip type="audio" tag="dac" name="8-Bit R-2R DAC" />
    <display tag="screen" type="raster" rotate="270" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Lives" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="2" value="2" />
      <dipvalue name="3" value="3" default="yes" />
      <dipvalue name="4" value="1" />
      <dipvalue name="5" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="12">
      <diplocation name="SW1" number="3" />
      <diplocation name="SW1" number="4" />
      <dipvalue name="Very Easy" value="0" />
      <dipvalue name="Easy" value="8" />
      <dipvalue name="Normal" value="12" default="yes" />
      <dipvalue name="Hard" value="4" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="16">
      <diplocation name="SW1" number="5" />
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <diplocation name="SW1" number="6" />
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="64">
      <diplocation name="SW1" number="7" />
      <dipvalue name="Off" value="64" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="128">
      <diplocation name="SW1" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="512">
      <diplocation name="SW1" number="2" />
      <dipvalue name="Off" value="512" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="1024">
      <diplocation name="SW1" number="3" />
      <dipvalue name="Off" value="1024" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="2048">
      <diplocation name="SW2" number="4" />
      <dipvalue name="Mode 1" value="2048" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="12288">
      <condition tag="DSW" mask="2048" relation="eq" value="0" />
      <diplocation name="SW2" number="5" />
      <diplocation name="SW2" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="4096" />
      <dipvalue name="2 Coins/1 Credit" value="8192" />
      <dipvalue name="1 Coin/1 Credit" value="12288" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="49152">
      <condition tag="DSW" mask="2048" relation="eq" value="0" />
      <diplocation name="SW2" number="7" />
      <diplocation name="SW2" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="49152" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="32768" />
      <dipvalue name="1 Coin/5 Credits" value="16384" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="61440">
      <condition tag="DSW" mask="2048" relation="ne" value="0" />
      <diplocation name="SW2" number="5" />
      <diplocation name="SW2" number="6" />
      <diplocation name="SW2" number="7" />
      <diplocation name="SW2" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="40960" />
      <dipvalue name="5 Coins/1 Credit" value="45056" />
      <dipvalue name="4 Coins/1 Credit" value="49152" />
      <dipvalue name="3 Coins/1 Credit" value="53248" />
      <dipvalue name="2 Coins/1 Credit" value="57344" />
      <dipvalue name="3 Coins/2 Credits" value="12288" />
      <dipvalue name="4 Coins/3 Credits" value="8192" />
      <dipvalue name="1 Coin/1 Credit" value="61440" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="16384" />
      <dipvalue name="1 Coin/2 Credits" value="36864" />
      <dipvalue name="1 Coin/3 Credits" value="32768" />
      <dipvalue name="1 Coin/4 Credits" value="28672" />
      <dipvalue name="1 Coin/5 Credits" value="24576" />
      <dipvalue name="1 Coin/6 Credits" value="20480" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="airduelu" sourcefile="m72.cpp" cloneof="airduel" romof="airduel">
    <description>Air Duel (US location test, M82 hardware)</description>
    <year>1990</year>
    <manufacturer>Irem America</manufacturer>
    <rom name="r10-m82a-h0.ic52" size="131072" crc="17f19965" sha1="51f84903eba9b0daa6f91f3578e6fdb9b286ef1c" region="maincpu" offset="1" />
    <rom name="r10-m82a-l0.ic60" size="131072" crc="f8b54d6c" sha1="9796daa6728736258b45e3cf8ead6d6c6481f36b" region="maincpu" offset="0" />
    <rom name="r10-m82-h1.ic51" merge="ad_=m82=_a-h1-d.ic51" size="131072" crc="bafc152a" sha1="e20fa8b832ebfb7a4407fc162f28388858686d61" region="maincpu" offset="40001" />
    <rom name="r10-m82-l1.ic59" merge="ad_=m82=_a-l1-d.ic59" size="131072" crc="9e2b1ae7" sha1="838ccffb760b464d7d7e108e033a09e6295e5fc8" region="maincpu" offset="40000" />
    <rom name="r10-bgm.ic15" merge="ad_=m82=_a-sp-d.ic15" size="65536" crc="16a858a3" sha1="51dbac5b37ecb30b46072f5a300a29dc7f7b8542" region="soundcpu" offset="0" />
    <rom name="r10-obj0.ic44" merge="ad_=m82=_b-n0-d.ic44" size="131072" crc="2f0d599b" sha1="a966f806b5e25bb98cc63c46c49e0e676a62afcf" region="sprites" offset="0" />
    <rom name="r10-obj1.ic45" merge="ad_=m82=_b-n1-d.ic45" size="131072" crc="9865856b" sha1="b18a06899ae29d45e2351594df544220f3f4485a" region="sprites" offset="20000" />
    <rom name="r10-obj2.ic46" merge="ad_=m82=_b-n2-d.ic46" size="131072" crc="d392aef2" sha1="0f639a07066cadddc3884eb490885a8745571567" region="sprites" offset="40000" />
    <rom name="r10-obj3.ic36" merge="ad_=m82=_b-n3-d.ic36" size="131072" crc="923240c3" sha1="f587a83329087a715a3e42110f74f104e8c8ef1f" region="sprites" offset="60000" />
    <rom name="r10-chr0.ic49" merge="ad_=m82=_a-c0-d.ic49" size="131072" crc="ce134b47" sha1="841358cc222c81b8a91edc262f355310d50b4dbb" region="gfx2" offset="0" />
    <rom name="r10-chr1.ic48" merge="ad_=m82=_a-c1-d.ic48" size="131072" crc="097fd853" sha1="8e08f4f4a747c899bb8e21b347635e26af9edc2d" region="gfx2" offset="20000" />
    <rom name="r10-chr2.ic57" merge="ad_=m82=_a-c2-d.ic57" size="131072" crc="6a94c1b9" sha1="55174acbac54236e5fc1b80d120cd6da9fe5524c" region="gfx2" offset="40000" />
    <rom name="r10-chr3.ic56" merge="ad_=m82=_a-c3-d.ic56" size="131072" crc="6637c349" sha1="27cb7c89ab73292b43f8ae3c0d803a01ef3d3936" region="gfx2" offset="60000" />
    <rom name="mt_f0.ic38" merge="mt_f0.ic38" size="131072" crc="2d5e05d5" sha1="18bdc9c561dbf0f91642161ca985d2154bd58b5d" region="sprites2" offset="0" />
    <rom name="mt_f1.ic39" merge="mt_f1.ic39" size="131072" crc="c68cd65f" sha1="8999b558b4af0f453ada9e4ef705163df96844e6" region="sprites2" offset="20000" />
    <rom name="mt_f2.ic40" merge="mt_f2.ic40" size="131072" crc="a71feb2d" sha1="47e366b422772bed08ee4d1c338970687d6c3b4c" region="sprites2" offset="40000" />
    <rom name="mt_f3.ic41" merge="mt_f3.ic41" size="131072" crc="179f7562" sha1="6d28b199daffc62e8fa9009878ac0bb976ccbb2a" region="sprites2" offset="60000" />
    <rom name="r10-voice.ic12" merge="ad_=m82=_a-v0-d.ic12" size="131072" crc="339f474d" sha1="a81bb52598a0e31b2ed6a538755237c5d14d1844" region="samples" offset="0" />
    <device_ref name="v30" />
    <device_ref name="z80" />
    <device_ref name="pic8259" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="m72_audio" />
    <device_ref name="ym2151" />
    <device_ref name="dac_8bit_r2r" />
    <chip type="cpu" tag="maincpu" name="NEC V30" clock="8000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <chip type="audio" tag="dac" name="8-Bit R-2R DAC" />
    <display tag="screen" type="raster" rotate="270" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Lives" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="2" value="2" />
      <dipvalue name="3" value="3" default="yes" />
      <dipvalue name="4" value="1" />
      <dipvalue name="5" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="12">
      <diplocation name="SW1" number="3" />
      <diplocation name="SW1" number="4" />
      <dipvalue name="Very Easy" value="0" />
      <dipvalue name="Easy" value="8" />
      <dipvalue name="Normal" value="12" default="yes" />
      <dipvalue name="Hard" value="4" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="16">
      <diplocation name="SW1" number="5" />
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <diplocation name="SW1" number="6" />
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="64">
      <diplocation name="SW1" number="7" />
      <dipvalue name="Off" value="64" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="128">
      <diplocation name="SW1" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="512">
      <diplocation name="SW1" number="2" />
      <dipvalue name="Off" value="512" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="1024">
      <diplocation name="SW1" number="3" />
      <dipvalue name="Off" value="1024" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="2048">
      <diplocation name="SW2" number="4" />
      <dipvalue name="Mode 1" value="2048" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="12288">
      <condition tag="DSW" mask="2048" relation="eq" value="0" />
      <diplocation name="SW2" number="5" />
      <diplocation name="SW2" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="4096" />
      <dipvalue name="2 Coins/1 Credit" value="8192" />
      <dipvalue name="1 Coin/1 Credit" value="12288" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="49152">
      <condition tag="DSW" mask="2048" relation="eq" value="0" />
      <diplocation name="SW2" number="7" />
      <diplocation name="SW2" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="49152" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="32768" />
      <dipvalue name="1 Coin/5 Credits" value="16384" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="61440">
      <condition tag="DSW" mask="2048" relation="ne" value="0" />
      <diplocation name="SW2" number="5" />
      <diplocation name="SW2" number="6" />
      <diplocation name="SW2" number="7" />
      <diplocation name="SW2" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="40960" />
      <dipvalue name="5 Coins/1 Credit" value="45056" />
      <dipvalue name="4 Coins/1 Credit" value="49152" />
      <dipvalue name="3 Coins/1 Credit" value="53248" />
      <dipvalue name="2 Coins/1 Credit" value="57344" />
      <dipvalue name="3 Coins/2 Credits" value="12288" />
      <dipvalue name="4 Coins/3 Credits" value="8192" />
      <dipvalue name="1 Coin/1 Credit" value="61440" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="16384" />
      <dipvalue name="1 Coin/2 Credits" value="36864" />
      <dipvalue name="1 Coin/3 Credits" value="32768" />
      <dipvalue name="1 Coin/4 Credits" value="28672" />
      <dipvalue name="1 Coin/5 Credits" value="24576" />
      <dipvalue name="1 Coin/6 Credits" value="20480" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="bchopper" sourcefile="m72.cpp">
    <description>Battle Chopper (World)</description>
    <year>1987</year>
    <manufacturer>Irem</manufacturer>
    <rom name="mh_c-h0-b.ic40" size="65536" crc="f2feab16" sha1="03ee874658e0f59957f8425e1ebf9c938737cc19" region="maincpu" offset="1" />
    <rom name="mh_c-l0-b.ic37" size="65536" crc="9f887096" sha1="4f41ef29580fc026ea91d110ec6b2e6af83dbd9a" region="maincpu" offset="0" />
    <rom name="mh_c-h1-b.ic41" size="65536" crc="a995d64f" sha1="43eb2eb11e6875298a6ef2b18f0f5e587f1bba16" region="maincpu" offset="20001" />
    <rom name="mh_c-l1-b.ic36" size="65536" crc="41dda999" sha1="4d07a399aaf16bc37b5488e3e4bb60e78811a099" region="maincpu" offset="20000" />
    <rom name="mh_c-h3-b.ic43" size="65536" crc="ab9451ca" sha1="ec0e0ad592d8b21bb4e6927a452e3b7964cda015" region="maincpu" offset="60001" />
    <rom name="mh_c-l3-b.ic34" size="65536" crc="11562221" sha1="a2f136a487fb6f30350e8d1e26c0729eb0686c7d" region="maincpu" offset="60000" />
    <rom name="mh_c-pr-b.ic1" size="65536" status="nodump" region="mcu" offset="0" />
    <rom name="mh_c-00-a.ic53" size="65536" crc="f6e6e660" sha1="e066e5ed37719cf2b6fd36e0117f11325bb06f9c" region="sprites" offset="0" />
    <rom name="mh_c-01-b.ic52" size="65536" crc="708cdd37" sha1="24f3fcd381422f0d75410c2af7a56744e3b4a699" region="sprites" offset="10000" />
    <rom name="mh_c-10-a.ic51" size="65536" crc="292c8520" sha1="c552090d295ee1c1ca611b0cddee356e509e2045" region="sprites" offset="20000" />
    <rom name="mh_c-11-b.ic50" size="65536" crc="20904cf3" sha1="71fe505f2da53c2eb445b7b758d257d6af42e6f1" region="sprites" offset="30000" />
    <rom name="mh_c-20-a.ic49" size="65536" crc="1ab50c23" sha1="43e2f11e5bbf157c47764e04e372f40ed68bab59" region="sprites" offset="40000" />
    <rom name="mh_c-21-b.ic48" size="65536" crc="c823d34c" sha1="47383214b6a60e0b1b70208b00c291f8ffed36bc" region="sprites" offset="50000" />
    <rom name="mh_c-30-a.ic47" size="65536" crc="11f6c56b" sha1="39a2a674698b044c84fea65ae41a9e003a50b639" region="sprites" offset="60000" />
    <rom name="mh_c-31-b.ic46" size="65536" crc="23134ec5" sha1="43453f8a13b51310e04729dc828d391ca9c04da2" region="sprites" offset="70000" />
    <rom name="mh_b-a0-b.ic21" size="65536" crc="e46ed7bf" sha1="75abb5f40629f7c40a610a44e068b6c4e3a5126e" region="gfx2" offset="0" />
    <rom name="mh_b-a1-b.ic22" size="65536" crc="590605ff" sha1="fbb5c0cebd28b08d4ce39db4055d6343620e0f1c" region="gfx2" offset="10000" />
    <rom name="mh_b-a2-b.ic20" size="65536" crc="f8158226" sha1="bb3a8686cd89bb8265b6b9e03682cc0bf6533793" region="gfx2" offset="20000" />
    <rom name="mh_b-a3-b.ic23" size="65536" crc="0f07b9b7" sha1="63dbec17097f07eb39299372b736fbbc1b11b65e" region="gfx2" offset="30000" />
    <rom name="mh_b-b0-.ic26" size="65536" crc="b5b95776" sha1="4685b56071b916ce712c45f24da8068dd7e40ed1" region="gfx3" offset="0" />
    <rom name="mh_b-b1-.ic27" size="65536" crc="74ca16ee" sha1="7984bc9a0b46e1b4a8ecac7528d57606305aad73" region="gfx3" offset="10000" />
    <rom name="mh_b-b2-.ic25" size="65536" crc="b82cca04" sha1="c12b95be311205181b01d15021bcf9f01ed3e0a3" region="gfx3" offset="20000" />
    <rom name="mh_b-b3-.ic24" size="65536" crc="a7afc920" sha1="92c75463ada39184e731b82ef2883ae6f1f67482" region="gfx3" offset="30000" />
    <rom name="mh_c-v0-b.ic44" size="65536" crc="d0c27e58" sha1="fec76217cc0c04c723989c3ec127a2bd33d64c60" region="samples" offset="0" />
    <device_ref name="v30" />
    <device_ref name="z80" />
    <device_ref name="pic8259" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="m72_audio" />
    <device_ref name="ym2151" />
    <device_ref name="dac_8bit_r2r" />
    <chip type="cpu" tag="maincpu" name="NEC V30" clock="8000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <chip type="audio" tag="dac" name="8-Bit R-2R DAC" />
    <display tag="screen" type="raster" rotate="0" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Lives" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="1" value="0" />
      <dipvalue name="2" value="2" />
      <dipvalue name="3" value="3" default="yes" />
      <dipvalue name="4" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="4">
      <diplocation name="SW1" number="3" />
      <dipvalue name="Off" value="4" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSW" mask="8">
      <diplocation name="SW1" number="4" />
      <dipvalue name="80K 200K 350K" value="8" default="yes" />
      <dipvalue name="100K 250K 400K" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="48">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="32" />
      <dipvalue name="1 Coin/1 Credit" value="48" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="192">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="192" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/5 Credits" value="64" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="240">
      <condition tag="DSW" mask="1024" relation="ne" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="160" />
      <dipvalue name="5 Coins/1 Credit" value="176" />
      <dipvalue name="4 Coins/1 Credit" value="192" />
      <dipvalue name="3 Coins/1 Credit" value="208" />
      <dipvalue name="8 Coins/3 Credits" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="224" />
      <dipvalue name="5 Coins/3 Credits" value="32" />
      <dipvalue name="3 Coins/2 Credits" value="48" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="64" />
      <dipvalue name="1 Coin/2 Credits" value="144" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/4 Credits" value="112" />
      <dipvalue name="1 Coin/5 Credits" value="96" />
      <dipvalue name="1 Coin/6 Credits" value="80" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="DSW" mask="512">
      <diplocation name="SW2" number="2" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="512" />
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="1024">
      <diplocation name="SW2" number="3" />
      <dipvalue name="Mode 1" value="1024" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="2048">
      <diplocation name="SW2" number="4" />
      <dipvalue name="Normal" value="2048" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSW" mask="4096">
      <diplocation name="SW2" number="5" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="4096" default="yes" />
    </dipswitch>
    <dipswitch name="Stop Mode" tag="DSW" mask="8192">
      <diplocation name="SW2" number="6" />
      <dipvalue name="Off" value="8192" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Invulnerability" tag="DSW" mask="16384">
      <diplocation name="SW2" number="7" />
      <dipvalue name="Off" value="16384" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="32768">
      <diplocation name="SW2" number="8" />
      <dipvalue name="Off" value="32768" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <driver status="good" emulation="good" cocktail="preliminary" savestate="supported" />
  </machine>
  <machine name="cosmccop" sourcefile="m72.cpp">
    <description>Cosmic Cop (World)</description>
    <year>1991</year>
    <manufacturer>Irem</manufacturer>
    <rom name="cc-d-h0b.bin" size="262144" crc="38958b01" sha1="7d7e217742e33a1fe096adf5bbc93d63ddcfb375" region="maincpu" offset="1" />
    <rom name="cc-d-l0b.bin" size="262144" crc="eff87f70" sha1="61f49b8738cf31546d4182680b761705274b01bf" region="maincpu" offset="0" />
    <rom name="cc-d-sp.bin" size="65536" crc="3e3ace60" sha1="d89b1b84de2887598bb7bcb17b1df1ec8d1862a9" region="soundcpu" offset="0" />
    <rom name="cc-c-00.bin" size="131072" crc="9d99deaa" sha1="acf16bea0f482306107d2a305c568406b6c21e9a" region="sprites" offset="0" />
    <rom name="cc-c-10.bin" size="131072" crc="7eb083ed" sha1="31fa7d532fd46e861c3d19d5b08661653f685a49" region="sprites" offset="20000" />
    <rom name="cc-c-20.bin" size="131072" crc="9421489e" sha1="e43d042bf8b4ebed93558d74ec479ec60a01ca5c" region="sprites" offset="40000" />
    <rom name="cc-c-30.bin" size="131072" crc="920ec735" sha1="2d0949b43dddce7317c45910d6e4868ddf010806" region="sprites" offset="60000" />
    <rom name="cc-d-g00.bin" size="131072" crc="e7f3d772" sha1="c7f0bc42e8dde7bae334c7974c3d0ddba3856144" region="gfx2" offset="0" />
    <rom name="cc-d-g10.bin" size="131072" crc="418b4e4c" sha1="1191f12741ee7a360240f706534c9c83be8d5c2d" region="gfx2" offset="20000" />
    <rom name="cc-d-g20.bin" size="131072" crc="a4b558eb" sha1="0babf725de0065dbeca73fa170bd33565305d129" region="gfx2" offset="40000" />
    <rom name="cc-d-g30.bin" size="131072" crc="f64a3166" sha1="1661db2a37c76e6b4552e48c04966dbbccab8926" region="gfx2" offset="60000" />
    <rom name="cc-c-v0.bin" size="131072" crc="6247bade" sha1="4bc9f86acd09908c74b1ab0e7817c4ff1cad6f0b" region="samples" offset="0" />
    <device_ref name="v35" />
    <device_ref name="z80" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="m72_audio" />
    <device_ref name="ym2151" />
    <device_ref name="dac_8bit_r2r" />
    <chip type="cpu" tag="maincpu" name="NEC V35" clock="16000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <chip type="audio" tag="dac" name="8-Bit R-2R DAC" />
    <display tag="screen" type="raster" rotate="0" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Lives" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="2" value="2" />
      <dipvalue name="3" value="3" default="yes" />
      <dipvalue name="4" value="1" />
      <dipvalue name="5" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="12">
      <diplocation name="SW1" number="3" />
      <diplocation name="SW1" number="4" />
      <dipvalue name="Very Easy" value="0" />
      <dipvalue name="Easy" value="8" />
      <dipvalue name="Normal" value="12" default="yes" />
      <dipvalue name="Hard" value="4" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="16">
      <diplocation name="SW1" number="5" />
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSW" mask="32">
      <diplocation name="SW1" number="6" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="32" default="yes" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="64">
      <diplocation name="SW1" number="7" />
      <dipvalue name="Off" value="64" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="128">
      <diplocation name="SW1" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="DSW" mask="1536">
      <diplocation name="SW2" number="2" />
      <diplocation name="SW2" number="3" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Upright (2P)" value="512" />
      <dipvalue name="Cocktail" value="1536" />
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="2048">
      <diplocation name="SW2" number="4" />
      <dipvalue name="Mode 1" value="2048" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="12288">
      <condition tag="DSW" mask="2048" relation="eq" value="0" />
      <diplocation name="SW2" number="5" />
      <diplocation name="SW2" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="4096" />
      <dipvalue name="2 Coins/1 Credit" value="8192" />
      <dipvalue name="1 Coin/1 Credit" value="12288" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="49152">
      <condition tag="DSW" mask="2048" relation="eq" value="0" />
      <diplocation name="SW2" number="7" />
      <diplocation name="SW2" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="49152" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="32768" />
      <dipvalue name="1 Coin/5 Credits" value="16384" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="61440">
      <condition tag="DSW" mask="2048" relation="ne" value="0" />
      <diplocation name="SW2" number="5" />
      <diplocation name="SW2" number="6" />
      <diplocation name="SW2" number="7" />
      <diplocation name="SW2" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="40960" />
      <dipvalue name="5 Coins/1 Credit" value="45056" />
      <dipvalue name="4 Coins/1 Credit" value="49152" />
      <dipvalue name="3 Coins/1 Credit" value="53248" />
      <dipvalue name="2 Coins/1 Credit" value="57344" />
      <dipvalue name="2 Coins to Start/1 to Continue" value="4096" />
      <dipvalue name="3 Coins/2 Credits" value="12288" />
      <dipvalue name="4 Coins/3 Credits" value="8192" />
      <dipvalue name="1 Coin/1 Credit" value="61440" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="16384" />
      <dipvalue name="1 Coin/2 Credits" value="36864" />
      <dipvalue name="1 Coin/3 Credits" value="32768" />
      <dipvalue name="1 Coin/4 Credits" value="28672" />
      <dipvalue name="1 Coin/5 Credits" value="24576" />
      <dipvalue name="1 Coin/6 Credits" value="20480" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <driver status="good" emulation="good" cocktail="preliminary" savestate="supported" />
  </machine>
  <machine name="dbreed" sourcefile="m72.cpp">
    <description>Dragon Breed (World, M81 hardware)</description>
    <year>1989</year>
    <manufacturer>Irem</manufacturer>
    <rom name="db-a-h0-.59" size="131072" crc="e1177267" sha1="f226f34ce85305870e659dd4f519bee30936af9a" region="maincpu" offset="1" />
    <rom name="db-a-l0-.68" size="131072" crc="d82b167e" sha1="f9ccb152feb31971230f61371a906bd900ef34e8" region="maincpu" offset="0" />
    <rom name="db-a-sp-.14" size="65536" crc="54a61560" sha1="e5fccfcedcadbab1667900f98370043c1907dd89" region="soundcpu" offset="0" />
    <rom name="db_k800m.00" size="131072" crc="c027a8cf" sha1="534dc416b8f5587168c7f644d3f9438c8a190491" region="sprites" offset="0" />
    <rom name="db_k801m.10" size="131072" crc="093faf33" sha1="2704f644cdce87daf975984f143b1d55ba731c3f" region="sprites" offset="20000" />
    <rom name="db_k802m.20" size="131072" crc="055b4c59" sha1="71315dd7476612f138cb64b905648791d44eb7da" region="sprites" offset="40000" />
    <rom name="db_k803m.30" size="131072" crc="8ed63922" sha1="51daa8a23e637f6b4394598ff4a1d26f65b59c8b" region="sprites" offset="60000" />
    <rom name="db_k804m.a0" size="131072" crc="4c83e92e" sha1="6dade027435c48ab48bd4516d16a9961d4dd6fad" region="gfx2" offset="0" />
    <rom name="db_k805m.a1" size="131072" crc="835ef268" sha1="89d0bb15201440dffad3ef745970f95505d7ab03" region="gfx2" offset="20000" />
    <rom name="db_k806m.a2" size="131072" crc="5117f114" sha1="a401a3e638209b32d4101a5c2e2a8b4612eaa21b" region="gfx2" offset="40000" />
    <rom name="db_k807m.a3" size="131072" crc="8eb0c978" sha1="7fc55bbe4d0923db88492bb7160a89de34e11cd6" region="gfx2" offset="60000" />
    <rom name="db_a-v0.rom" size="131072" crc="312f7282" sha1="742d56980b4618180e9a0e02051c5aec4d5cdae4" region="samples" offset="0" />
    <device_ref name="v30" />
    <device_ref name="z80" />
    <device_ref name="pic8259" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="m72_audio" />
    <device_ref name="ym2151" />
    <device_ref name="dac_8bit_r2r" />
    <chip type="cpu" tag="maincpu" name="NEC V30" clock="8000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <chip type="audio" tag="dac" name="8-Bit R-2R DAC" />
    <display tag="screen" type="raster" rotate="0" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Lives" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="2" value="2" />
      <dipvalue name="3" value="3" default="yes" />
      <dipvalue name="4" value="1" />
      <dipvalue name="5" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="12">
      <diplocation name="SW1" number="3" />
      <diplocation name="SW1" number="4" />
      <dipvalue name="Very Easy" value="0" />
      <dipvalue name="Easy" value="8" />
      <dipvalue name="Normal" value="12" default="yes" />
      <dipvalue name="Hard" value="4" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="48">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="32" />
      <dipvalue name="1 Coin/1 Credit" value="48" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="192">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="192" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/5 Credits" value="64" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="240">
      <condition tag="DSW" mask="1024" relation="ne" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="160" />
      <dipvalue name="5 Coins/1 Credit" value="176" />
      <dipvalue name="4 Coins/1 Credit" value="192" />
      <dipvalue name="3 Coins/1 Credit" value="208" />
      <dipvalue name="8 Coins/3 Credits" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="224" />
      <dipvalue name="5 Coins/3 Credits" value="32" />
      <dipvalue name="3 Coins/2 Credits" value="48" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="64" />
      <dipvalue name="1 Coin/2 Credits" value="144" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/4 Credits" value="112" />
      <dipvalue name="1 Coin/5 Credits" value="96" />
      <dipvalue name="1 Coin/6 Credits" value="80" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="DSW" mask="512">
      <diplocation name="SW2" number="2" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="512" />
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="1024">
      <diplocation name="SW2" number="3" />
      <dipvalue name="Mode 1" value="1024" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="2048">
      <diplocation name="SW2" number="4" />
      <dipvalue name="Off" value="2048" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSW" mask="4096">
      <diplocation name="SW2" number="5" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="4096" default="yes" />
    </dipswitch>
    <dipswitch name="Stop Mode" tag="DSW" mask="8192">
      <diplocation name="SW2" number="6" />
      <dipvalue name="Off" value="8192" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="16384">
      <diplocation name="SW2" number="7" />
      <dipvalue name="Off" value="16384" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="32768">
      <diplocation name="SW2" number="8" />
      <dipvalue name="Off" value="32768" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="M81-B-B Jumper J3" tag="JumperJ3" mask="1">
      <confsetting name="S" value="0" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <port tag=":JumperJ3" />
    <driver status="good" emulation="good" cocktail="preliminary" savestate="supported" />
  </machine>
  <machine name="dbreedjm72" sourcefile="m72.cpp" cloneof="dbreed" romof="dbreed">
    <description>Dragon Breed (Japan, M72 hardware)</description>
    <year>1989</year>
    <manufacturer>Irem</manufacturer>
    <rom name="db_c-h3.ic43" size="131072" crc="43425d67" sha1="a87339bf299f7e84b9a181f3827278f64a6a29ea" region="maincpu" offset="1" />
    <rom name="db_c-l3.ic34" size="131072" crc="9c1abc85" sha1="6c73fbec12a7795e327381d886a87bca09a7dff0" region="maincpu" offset="0" />
    <rom name="db_c-h0.ic40" size="65536" crc="5aa79fb2" sha1="b7b862699ddccf90cf18d3822703078668aa1dc7" region="maincpu" offset="60001" />
    <rom name="db_c-l0.ic37" size="65536" crc="ed0f5e06" sha1="9030840b15e83c18d59c884ed08c93c05fa70c5b" region="maincpu" offset="60000" />
    <rom name="db_c-pr-.ic1" size="4096" crc="8bf2910c" sha1="65842c928626077f613e0ab56074e83301a64a2e" region="mcu" offset="0" />
    <rom name="db_k800m.00" merge="db_k800m.00" size="131072" crc="c027a8cf" sha1="534dc416b8f5587168c7f644d3f9438c8a190491" region="sprites" offset="0" />
    <rom name="db_k801m.10" merge="db_k801m.10" size="131072" crc="093faf33" sha1="2704f644cdce87daf975984f143b1d55ba731c3f" region="sprites" offset="20000" />
    <rom name="db_k802m.20" merge="db_k802m.20" size="131072" crc="055b4c59" sha1="71315dd7476612f138cb64b905648791d44eb7da" region="sprites" offset="40000" />
    <rom name="db_k803m.30" merge="db_k803m.30" size="131072" crc="8ed63922" sha1="51daa8a23e637f6b4394598ff4a1d26f65b59c8b" region="sprites" offset="60000" />
    <rom name="db_k804m.a0" merge="db_k804m.a0" size="131072" crc="4c83e92e" sha1="6dade027435c48ab48bd4516d16a9961d4dd6fad" region="gfx2" offset="0" />
    <rom name="db_k805m.a1" merge="db_k805m.a1" size="131072" crc="835ef268" sha1="89d0bb15201440dffad3ef745970f95505d7ab03" region="gfx2" offset="20000" />
    <rom name="db_k806m.a2" merge="db_k806m.a2" size="131072" crc="5117f114" sha1="a401a3e638209b32d4101a5c2e2a8b4612eaa21b" region="gfx2" offset="40000" />
    <rom name="db_k807m.a3" merge="db_k807m.a3" size="131072" crc="8eb0c978" sha1="7fc55bbe4d0923db88492bb7160a89de34e11cd6" region="gfx2" offset="60000" />
    <rom name="db_k804m.b0" merge="db_k804m.a0" size="131072" crc="4c83e92e" sha1="6dade027435c48ab48bd4516d16a9961d4dd6fad" region="gfx3" offset="0" />
    <rom name="db_k805m.b1" merge="db_k805m.a1" size="131072" crc="835ef268" sha1="89d0bb15201440dffad3ef745970f95505d7ab03" region="gfx3" offset="20000" />
    <rom name="db_k806m.b2" merge="db_k806m.a2" size="131072" crc="5117f114" sha1="a401a3e638209b32d4101a5c2e2a8b4612eaa21b" region="gfx3" offset="40000" />
    <rom name="db_k807m.b3" merge="db_k807m.a3" size="131072" crc="8eb0c978" sha1="7fc55bbe4d0923db88492bb7160a89de34e11cd6" region="gfx3" offset="60000" />
    <rom name="db_c-v0.ic44" merge="db_a-v0.rom" size="131072" crc="312f7282" sha1="742d56980b4618180e9a0e02051c5aec4d5cdae4" region="samples" offset="0" />
    <device_ref name="v30" />
    <device_ref name="z80" />
    <device_ref name="pic8259" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="m72_audio" />
    <device_ref name="ym2151" />
    <device_ref name="dac_8bit_r2r" />
    <device_ref name="mb8421_mb8431_16" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="i8751" />
    <chip type="cpu" tag="maincpu" name="NEC V30" clock="8000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="cpu" tag="mcu" name="Intel 8751" clock="8000000" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <chip type="audio" tag="dac" name="8-Bit R-2R DAC" />
    <display tag="screen" type="raster" rotate="0" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Lives" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="2" value="2" />
      <dipvalue name="3" value="3" default="yes" />
      <dipvalue name="4" value="1" />
      <dipvalue name="5" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="12">
      <diplocation name="SW1" number="3" />
      <diplocation name="SW1" number="4" />
      <dipvalue name="Very Easy" value="0" />
      <dipvalue name="Easy" value="8" />
      <dipvalue name="Normal" value="12" default="yes" />
      <dipvalue name="Hard" value="4" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="48">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="32" />
      <dipvalue name="1 Coin/1 Credit" value="48" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="192">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="192" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/5 Credits" value="64" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="240">
      <condition tag="DSW" mask="1024" relation="ne" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="160" />
      <dipvalue name="5 Coins/1 Credit" value="176" />
      <dipvalue name="4 Coins/1 Credit" value="192" />
      <dipvalue name="3 Coins/1 Credit" value="208" />
      <dipvalue name="8 Coins/3 Credits" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="224" />
      <dipvalue name="5 Coins/3 Credits" value="32" />
      <dipvalue name="3 Coins/2 Credits" value="48" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="64" />
      <dipvalue name="1 Coin/2 Credits" value="144" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/4 Credits" value="112" />
      <dipvalue name="1 Coin/5 Credits" value="96" />
      <dipvalue name="1 Coin/6 Credits" value="80" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="DSW" mask="512">
      <diplocation name="SW2" number="2" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="512" />
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="1024">
      <diplocation name="SW2" number="3" />
      <dipvalue name="Mode 1" value="1024" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="2048">
      <diplocation name="SW2" number="4" />
      <dipvalue name="Off" value="2048" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSW" mask="4096">
      <diplocation name="SW2" number="5" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="4096" default="yes" />
    </dipswitch>
    <dipswitch name="Stop Mode" tag="DSW" mask="8192">
      <diplocation name="SW2" number="6" />
      <dipvalue name="Off" value="8192" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="16384">
      <diplocation name="SW2" number="7" />
      <dipvalue name="Off" value="16384" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="32768">
      <diplocation name="SW2" number="8" />
      <dipvalue name="Off" value="32768" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <driver status="good" emulation="good" cocktail="preliminary" savestate="supported" />
  </machine>
  <machine name="dbreedm72" sourcefile="m72.cpp" cloneof="dbreed" romof="dbreed">
    <description>Dragon Breed (World, M72 hardware)</description>
    <year>1989</year>
    <manufacturer>Irem</manufacturer>
    <rom name="db_c-h3-b.ic43" size="131072" crc="4bf3063c" sha1="3f970c9ece2ac700738e217e0b31b3aba2848ab2" region="maincpu" offset="1" />
    <rom name="db_c-l3-b.ic34" size="131072" crc="e4b89b79" sha1="c312925940633e60fb5d0f05044c6e73e4f7fd54" region="maincpu" offset="0" />
    <rom name="db_c-h0.ic40" size="65536" crc="5aa79fb2" sha1="b7b862699ddccf90cf18d3822703078668aa1dc7" region="maincpu" offset="60001" />
    <rom name="db_c-l0.ic37" size="65536" crc="ed0f5e06" sha1="9030840b15e83c18d59c884ed08c93c05fa70c5b" region="maincpu" offset="60000" />
    <rom name="db_c-pr-b.ic1" size="4096" status="nodump" region="mcu" offset="0" />
    <rom name="db_k800m.00" merge="db_k800m.00" size="131072" crc="c027a8cf" sha1="534dc416b8f5587168c7f644d3f9438c8a190491" region="sprites" offset="0" />
    <rom name="db_k801m.10" merge="db_k801m.10" size="131072" crc="093faf33" sha1="2704f644cdce87daf975984f143b1d55ba731c3f" region="sprites" offset="20000" />
    <rom name="db_k802m.20" merge="db_k802m.20" size="131072" crc="055b4c59" sha1="71315dd7476612f138cb64b905648791d44eb7da" region="sprites" offset="40000" />
    <rom name="db_k803m.30" merge="db_k803m.30" size="131072" crc="8ed63922" sha1="51daa8a23e637f6b4394598ff4a1d26f65b59c8b" region="sprites" offset="60000" />
    <rom name="db_k804m.a0" merge="db_k804m.a0" size="131072" crc="4c83e92e" sha1="6dade027435c48ab48bd4516d16a9961d4dd6fad" region="gfx2" offset="0" />
    <rom name="db_k805m.a1" merge="db_k805m.a1" size="131072" crc="835ef268" sha1="89d0bb15201440dffad3ef745970f95505d7ab03" region="gfx2" offset="20000" />
    <rom name="db_k806m.a2" merge="db_k806m.a2" size="131072" crc="5117f114" sha1="a401a3e638209b32d4101a5c2e2a8b4612eaa21b" region="gfx2" offset="40000" />
    <rom name="db_k807m.a3" merge="db_k807m.a3" size="131072" crc="8eb0c978" sha1="7fc55bbe4d0923db88492bb7160a89de34e11cd6" region="gfx2" offset="60000" />
    <rom name="db_k804m.b0" merge="db_k804m.a0" size="131072" crc="4c83e92e" sha1="6dade027435c48ab48bd4516d16a9961d4dd6fad" region="gfx3" offset="0" />
    <rom name="db_k805m.b1" merge="db_k805m.a1" size="131072" crc="835ef268" sha1="89d0bb15201440dffad3ef745970f95505d7ab03" region="gfx3" offset="20000" />
    <rom name="db_k806m.b2" merge="db_k806m.a2" size="131072" crc="5117f114" sha1="a401a3e638209b32d4101a5c2e2a8b4612eaa21b" region="gfx3" offset="40000" />
    <rom name="db_k807m.b3" merge="db_k807m.a3" size="131072" crc="8eb0c978" sha1="7fc55bbe4d0923db88492bb7160a89de34e11cd6" region="gfx3" offset="60000" />
    <rom name="db_c-v0.ic44" merge="db_a-v0.rom" size="131072" crc="312f7282" sha1="742d56980b4618180e9a0e02051c5aec4d5cdae4" region="samples" offset="0" />
    <device_ref name="v30" />
    <device_ref name="z80" />
    <device_ref name="pic8259" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="m72_audio" />
    <device_ref name="ym2151" />
    <device_ref name="dac_8bit_r2r" />
    <chip type="cpu" tag="maincpu" name="NEC V30" clock="8000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <chip type="audio" tag="dac" name="8-Bit R-2R DAC" />
    <display tag="screen" type="raster" rotate="0" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Lives" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="2" value="2" />
      <dipvalue name="3" value="3" default="yes" />
      <dipvalue name="4" value="1" />
      <dipvalue name="5" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="12">
      <diplocation name="SW1" number="3" />
      <diplocation name="SW1" number="4" />
      <dipvalue name="Very Easy" value="0" />
      <dipvalue name="Easy" value="8" />
      <dipvalue name="Normal" value="12" default="yes" />
      <dipvalue name="Hard" value="4" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="48">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="32" />
      <dipvalue name="1 Coin/1 Credit" value="48" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="192">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="192" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/5 Credits" value="64" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="240">
      <condition tag="DSW" mask="1024" relation="ne" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="160" />
      <dipvalue name="5 Coins/1 Credit" value="176" />
      <dipvalue name="4 Coins/1 Credit" value="192" />
      <dipvalue name="3 Coins/1 Credit" value="208" />
      <dipvalue name="8 Coins/3 Credits" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="224" />
      <dipvalue name="5 Coins/3 Credits" value="32" />
      <dipvalue name="3 Coins/2 Credits" value="48" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="64" />
      <dipvalue name="1 Coin/2 Credits" value="144" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/4 Credits" value="112" />
      <dipvalue name="1 Coin/5 Credits" value="96" />
      <dipvalue name="1 Coin/6 Credits" value="80" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="DSW" mask="512">
      <diplocation name="SW2" number="2" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="512" />
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="1024">
      <diplocation name="SW2" number="3" />
      <dipvalue name="Mode 1" value="1024" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="2048">
      <diplocation name="SW2" number="4" />
      <dipvalue name="Off" value="2048" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSW" mask="4096">
      <diplocation name="SW2" number="5" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="4096" default="yes" />
    </dipswitch>
    <dipswitch name="Stop Mode" tag="DSW" mask="8192">
      <diplocation name="SW2" number="6" />
      <dipvalue name="Off" value="8192" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="16384">
      <diplocation name="SW2" number="7" />
      <dipvalue name="Off" value="16384" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="32768">
      <diplocation name="SW2" number="8" />
      <dipvalue name="Off" value="32768" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <driver status="good" emulation="good" cocktail="preliminary" savestate="supported" />
  </machine>
  <machine name="dkgensan" sourcefile="m72.cpp" cloneof="hharry" romof="hharry">
    <description>Daiku no Gensan (Japan, M84 hardware)</description>
    <year>1990</year>
    <manufacturer>Irem</manufacturer>
    <rom name="gen-a-h0.bin" size="131072" crc="07a45f6d" sha1="8ffbd395aad244747d9f87062d2b062f41a4829c" region="maincpu" offset="1" />
    <rom name="gen-a-l0.bin" size="131072" crc="46478fea" sha1="fd4ff544588535333c1b98fbc08446ef49b11212" region="maincpu" offset="0" />
    <rom name="gen-a-h1.bin" size="65536" crc="54e5b73c" sha1="5664f6e0a931b1c139e82dc98fcc9e38acd14616" region="maincpu" offset="60001" />
    <rom name="gen-a-l1.bin" size="65536" crc="894f8a9f" sha1="57a0885c52a094def03b129a450cc891e6c075c6" region="maincpu" offset="60000" />
    <rom name="gen-a-sp.bin" size="65536" crc="e83cfc2c" sha1="3193bdd06a9712fc499e6fc90a33140463ef59fe" region="soundcpu" offset="0" />
    <rom name="hh_00.rom" merge="hh_00.rom" size="131072" crc="ec5127ef" sha1="014ac8ad7b19cd9b475b72a0f42a4991119501c4" region="sprites" offset="0" />
    <rom name="hh_10.rom" merge="hh_10.rom" size="131072" crc="def65294" sha1="23f5d99fa9f604fde37cb52113bff233d9be1d25" region="sprites" offset="20000" />
    <rom name="hh_20.rom" merge="hh_20.rom" size="131072" crc="bb0d6ad4" sha1="4ab617fadfc32efad90ed7f0555513f167b0c43a" region="sprites" offset="40000" />
    <rom name="hh_30.rom" merge="hh_30.rom" size="131072" crc="4351044e" sha1="0d3ce3f4f1473fd997e70de91e7b5b5a5ec60ad4" region="sprites" offset="60000" />
    <rom name="hh_a0.rom" merge="hh_a0.rom" size="131072" crc="c577ba5f" sha1="c882e58cf64deca8eee6f14f3df43ecc932488fc" region="gfx2" offset="0" />
    <rom name="hh_a1.rom" merge="hh_a1.rom" size="131072" crc="429d12ab" sha1="ccba25eab981fc4e664f76e06a2964066f2ae2e8" region="gfx2" offset="20000" />
    <rom name="hh_a2.rom" merge="hh_a2.rom" size="131072" crc="b5b163b0" sha1="82a708fea4953a7c4dcd1d4a1b07f302221ba30b" region="gfx2" offset="40000" />
    <rom name="hh_a3.rom" merge="hh_a3.rom" size="131072" crc="8ef566a1" sha1="3afb020a7317efe89c18b2a7773894ce28499d49" region="gfx2" offset="60000" />
    <rom name="gen-vo.bin" size="131072" crc="d8595c66" sha1="97920c9947fbac609fb901415e5471c6e4ca066c" region="samples" offset="0" />
    <device_ref name="v30" />
    <device_ref name="z80" />
    <device_ref name="pic8259" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="m72_audio" />
    <device_ref name="ym2151" />
    <device_ref name="dac_8bit_r2r" />
    <chip type="cpu" tag="maincpu" name="NEC V30" clock="8000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <chip type="audio" tag="dac" name="8-Bit R-2R DAC" />
    <display tag="screen" type="raster" rotate="0" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Lives" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="2" value="2" />
      <dipvalue name="3" value="3" default="yes" />
      <dipvalue name="4" value="1" />
      <dipvalue name="5" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="12">
      <diplocation name="SW1" number="3" />
      <diplocation name="SW1" number="4" />
      <dipvalue name="Very Easy" value="0" />
      <dipvalue name="Easy" value="8" />
      <dipvalue name="Normal" value="12" default="yes" />
      <dipvalue name="Hard" value="4" />
    </dipswitch>
    <dipswitch name="Continue Limit" tag="DSW" mask="16">
      <diplocation name="SW1" number="5" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="16" default="yes" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSW" mask="32">
      <diplocation name="SW1" number="6" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="32" default="yes" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="64">
      <diplocation name="SW1" number="7" />
      <dipvalue name="Off" value="64" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="128">
      <diplocation name="SW1" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="DSW" mask="1536">
      <diplocation name="SW2" number="2" />
      <diplocation name="SW2" number="3" />
      <dipvalue name="Upright" value="1024" default="yes" />
      <dipvalue name="Upright (2P)" value="0" />
      <dipvalue name="Cocktail" value="1536" />
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="2048">
      <diplocation name="SW2" number="4" />
      <dipvalue name="Mode 1" value="2048" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="12288">
      <condition tag="DSW" mask="2048" relation="eq" value="0" />
      <diplocation name="SW2" number="5" />
      <diplocation name="SW2" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="4096" />
      <dipvalue name="2 Coins/1 Credit" value="8192" />
      <dipvalue name="1 Coin/1 Credit" value="12288" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="49152">
      <condition tag="DSW" mask="2048" relation="eq" value="0" />
      <diplocation name="SW2" number="7" />
      <diplocation name="SW2" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="49152" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="32768" />
      <dipvalue name="1 Coin/5 Credits" value="16384" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="61440">
      <condition tag="DSW" mask="2048" relation="ne" value="0" />
      <diplocation name="SW2" number="5" />
      <diplocation name="SW2" number="6" />
      <diplocation name="SW2" number="7" />
      <diplocation name="SW2" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="40960" />
      <dipvalue name="5 Coins/1 Credit" value="45056" />
      <dipvalue name="4 Coins/1 Credit" value="49152" />
      <dipvalue name="3 Coins/1 Credit" value="53248" />
      <dipvalue name="2 Coins/1 Credit" value="57344" />
      <dipvalue name="2 Coins to Start/1 to Continue" value="4096" />
      <dipvalue name="3 Coins/2 Credits" value="12288" />
      <dipvalue name="4 Coins/3 Credits" value="8192" />
      <dipvalue name="1 Coin/1 Credit" value="61440" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="16384" />
      <dipvalue name="1 Coin/2 Credits" value="36864" />
      <dipvalue name="1 Coin/3 Credits" value="32768" />
      <dipvalue name="1 Coin/4 Credits" value="28672" />
      <dipvalue name="1 Coin/5 Credits" value="24576" />
      <dipvalue name="1 Coin/6 Credits" value="20480" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <driver status="good" emulation="good" cocktail="preliminary" savestate="supported" />
  </machine>
  <machine name="dkgensanm72" sourcefile="m72.cpp" cloneof="hharry" romof="hharry">
    <description>Daiku no Gensan (Japan, M72 hardware)</description>
    <year>1990</year>
    <manufacturer>Irem</manufacturer>
    <rom name="ge72-h0.bin" size="131072" crc="a0ad992c" sha1="6de4105d8454c4e4e62762fdd7e22829acc2442b" region="maincpu" offset="1" />
    <rom name="ge72-l0.bin" size="131072" crc="996396f0" sha1="1a2501ba46bcbc607f772765e8614bc442154a18" region="maincpu" offset="0" />
    <rom name="ge72-h3.bin" size="65536" crc="d8b86005" sha1="dd626cfe50a823066c54cc24d9fdaaf03d61d1e7" region="maincpu" offset="60001" />
    <rom name="ge72-l3.bin" size="65536" crc="23d303a5" sha1="b62010f34d71afb590deae458493454f9af38f7c" region="maincpu" offset="60000" />
    <rom name="dkgenm72_i8751.ic1" size="65536" status="nodump" region="mcu" offset="0" />
    <rom name="hh_00.rom" merge="hh_00.rom" size="131072" crc="ec5127ef" sha1="014ac8ad7b19cd9b475b72a0f42a4991119501c4" region="sprites" offset="0" />
    <rom name="hh_10.rom" merge="hh_10.rom" size="131072" crc="def65294" sha1="23f5d99fa9f604fde37cb52113bff233d9be1d25" region="sprites" offset="20000" />
    <rom name="hh_20.rom" merge="hh_20.rom" size="131072" crc="bb0d6ad4" sha1="4ab617fadfc32efad90ed7f0555513f167b0c43a" region="sprites" offset="40000" />
    <rom name="hh_30.rom" merge="hh_30.rom" size="131072" crc="4351044e" sha1="0d3ce3f4f1473fd997e70de91e7b5b5a5ec60ad4" region="sprites" offset="60000" />
    <rom name="ge72b-a0.bin" size="65536" crc="f5f56b2a" sha1="4ef6602052fa70e765d6d7747e672b7108b44f59" region="gfx2" offset="0" />
    <rom name="ge72-a1.bin" size="65536" crc="d194ea08" sha1="0270897049cd256472df42f3dda856ee707535cd" region="gfx2" offset="10000" />
    <rom name="ge72-a2.bin" size="65536" crc="2b06bcc3" sha1="36378a4a69f3c3da96d2dc8df48916af8de50009" region="gfx2" offset="20000" />
    <rom name="ge72-a3.bin" size="65536" crc="94b96bfa" sha1="33c1e9045e7a984097f3fe4954b20d954cffbafa" region="gfx2" offset="30000" />
    <rom name="ge72-b0.bin" size="65536" crc="208796b3" sha1="38b90732c8d5c77ee84053364a8a7e3daaaabe66" region="gfx3" offset="0" />
    <rom name="ge72-b1.bin" size="65536" crc="b4a7f490" sha1="851b40650fc8920b49f43f9cc6f19e845a25e945" region="gfx3" offset="10000" />
    <rom name="ge72b-b2.bin" size="65536" crc="34fe8f7f" sha1="fbf8839b26be55ad83ad4db538ba3e196c1ab945" region="gfx3" offset="20000" />
    <rom name="ge72b-b3.bin" size="65536" crc="4b0e92f4" sha1="16ad9220ca6708028cea18c1c4b57e2b6eb425b4" region="gfx3" offset="30000" />
    <rom name="gen-vo.bin" size="131072" crc="d8595c66" sha1="97920c9947fbac609fb901415e5471c6e4ca066c" region="samples" offset="0" />
    <device_ref name="v30" />
    <device_ref name="z80" />
    <device_ref name="pic8259" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="m72_audio" />
    <device_ref name="ym2151" />
    <device_ref name="dac_8bit_r2r" />
    <chip type="cpu" tag="maincpu" name="NEC V30" clock="8000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <chip type="audio" tag="dac" name="8-Bit R-2R DAC" />
    <display tag="screen" type="raster" rotate="0" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Lives" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="2" value="2" />
      <dipvalue name="3" value="3" default="yes" />
      <dipvalue name="4" value="1" />
      <dipvalue name="5" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="12">
      <diplocation name="SW1" number="3" />
      <diplocation name="SW1" number="4" />
      <dipvalue name="Very Easy" value="0" />
      <dipvalue name="Easy" value="8" />
      <dipvalue name="Normal" value="12" default="yes" />
      <dipvalue name="Hard" value="4" />
    </dipswitch>
    <dipswitch name="Continue Limit" tag="DSW" mask="16">
      <diplocation name="SW1" number="5" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="16" default="yes" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSW" mask="32">
      <diplocation name="SW1" number="6" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="32" default="yes" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="64">
      <diplocation name="SW1" number="7" />
      <dipvalue name="Off" value="64" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="128">
      <diplocation name="SW1" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="DSW" mask="1536">
      <diplocation name="SW2" number="2" />
      <diplocation name="SW2" number="3" />
      <dipvalue name="Upright" value="1024" default="yes" />
      <dipvalue name="Upright (2P)" value="0" />
      <dipvalue name="Cocktail" value="1536" />
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="2048">
      <diplocation name="SW2" number="4" />
      <dipvalue name="Mode 1" value="2048" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="12288">
      <condition tag="DSW" mask="2048" relation="eq" value="0" />
      <diplocation name="SW2" number="5" />
      <diplocation name="SW2" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="4096" />
      <dipvalue name="2 Coins/1 Credit" value="8192" />
      <dipvalue name="1 Coin/1 Credit" value="12288" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="49152">
      <condition tag="DSW" mask="2048" relation="eq" value="0" />
      <diplocation name="SW2" number="7" />
      <diplocation name="SW2" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="49152" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="32768" />
      <dipvalue name="1 Coin/5 Credits" value="16384" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="61440">
      <condition tag="DSW" mask="2048" relation="ne" value="0" />
      <diplocation name="SW2" number="5" />
      <diplocation name="SW2" number="6" />
      <diplocation name="SW2" number="7" />
      <diplocation name="SW2" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="40960" />
      <dipvalue name="5 Coins/1 Credit" value="45056" />
      <dipvalue name="4 Coins/1 Credit" value="49152" />
      <dipvalue name="3 Coins/1 Credit" value="53248" />
      <dipvalue name="2 Coins/1 Credit" value="57344" />
      <dipvalue name="2 Coins to Start/1 to Continue" value="4096" />
      <dipvalue name="3 Coins/2 Credits" value="12288" />
      <dipvalue name="4 Coins/3 Credits" value="8192" />
      <dipvalue name="1 Coin/1 Credit" value="61440" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="16384" />
      <dipvalue name="1 Coin/2 Credits" value="36864" />
      <dipvalue name="1 Coin/3 Credits" value="32768" />
      <dipvalue name="1 Coin/4 Credits" value="28672" />
      <dipvalue name="1 Coin/5 Credits" value="24576" />
      <dipvalue name="1 Coin/6 Credits" value="20480" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <driver status="good" emulation="good" cocktail="preliminary" savestate="supported" />
  </machine>
  <machine name="dkgensanm82" sourcefile="m72.cpp" cloneof="hharry" romof="hharry">
    <description>Daiku no Gensan (Japan, M82 hardware)</description>
    <year>1990</year>
    <manufacturer>Irem</manufacturer>
    <rom name="gen_=m84=_a-h0-d.ic52" size="131072" crc="a1ca8855" sha1="19b0ec1a03af114aa4f02630ace67c277ebce60f" region="maincpu" offset="1" />
    <rom name="gen_=m84=_a-l0-d.ic60" size="131072" crc="247117b0" sha1="e7674b9d0ae80afb52b47094f95ed5c250c7e303" region="maincpu" offset="0" />
    <rom name="gen_=m84=_a-h1-d.ic51" size="65536" crc="54e5b73c" sha1="5664f6e0a931b1c139e82dc98fcc9e38acd14616" region="maincpu" offset="60001" />
    <rom name="gen_=m84=_a-l1-d.ic59" size="65536" crc="894f8a9f" sha1="57a0885c52a094def03b129a450cc891e6c075c6" region="maincpu" offset="60000" />
    <rom name="gen_=m84=_a-sp-d.ic15" size="65536" crc="e83cfc2c" sha1="3193bdd06a9712fc499e6fc90a33140463ef59fe" region="soundcpu" offset="0" />
    <rom name="gen_=m72=_c-l0-b.ic44" merge="hh_00.rom" size="131072" crc="ec5127ef" sha1="014ac8ad7b19cd9b475b72a0f42a4991119501c4" region="sprites" offset="0" />
    <rom name="gen_=m72=_c-l3-b.ic45" merge="hh_10.rom" size="131072" crc="def65294" sha1="23f5d99fa9f604fde37cb52113bff233d9be1d25" region="sprites" offset="20000" />
    <rom name="gen_=m72=_c-h0-b.ic46" merge="hh_20.rom" size="131072" crc="bb0d6ad4" sha1="4ab617fadfc32efad90ed7f0555513f167b0c43a" region="sprites" offset="40000" />
    <rom name="gen_=m72=_c-h3-b.ic36" merge="hh_30.rom" size="131072" crc="4351044e" sha1="0d3ce3f4f1473fd997e70de91e7b5b5a5ec60ad4" region="sprites" offset="60000" />
    <rom name="gen_=m81=_a-l0-a.ic49" merge="hh_a0.rom" size="131072" crc="c577ba5f" sha1="c882e58cf64deca8eee6f14f3df43ecc932488fc" region="gfx2" offset="0" />
    <rom name="gen_=m81=_a-l1-a.ic48" merge="hh_a1.rom" size="131072" crc="429d12ab" sha1="ccba25eab981fc4e664f76e06a2964066f2ae2e8" region="gfx2" offset="20000" />
    <rom name="gen_=m81=_a-h0-a.ic57" merge="hh_a2.rom" size="131072" crc="b5b163b0" sha1="82a708fea4953a7c4dcd1d4a1b07f302221ba30b" region="gfx2" offset="40000" />
    <rom name="gen_=m81=_a-h1-a.ic56" merge="hh_a3.rom" size="131072" crc="8ef566a1" sha1="3afb020a7317efe89c18b2a7773894ce28499d49" region="gfx2" offset="60000" />
    <rom name="mt_f0.ic38" size="131072" crc="2d5e05d5" sha1="18bdc9c561dbf0f91642161ca985d2154bd58b5d" region="sprites2" offset="0" />
    <rom name="mt_f1.ic39" size="131072" crc="c68cd65f" sha1="8999b558b4af0f453ada9e4ef705163df96844e6" region="sprites2" offset="20000" />
    <rom name="mt_f2.ic40" size="131072" crc="a71feb2d" sha1="47e366b422772bed08ee4d1c338970687d6c3b4c" region="sprites2" offset="40000" />
    <rom name="mt_f3.ic41" size="131072" crc="179f7562" sha1="6d28b199daffc62e8fa9009878ac0bb976ccbb2a" region="sprites2" offset="60000" />
    <rom name="gen_=m84=_a-v0-d.ic12" size="131072" crc="d8595c66" sha1="97920c9947fbac609fb901415e5471c6e4ca066c" region="samples" offset="0" />
    <device_ref name="v30" />
    <device_ref name="z80" />
    <device_ref name="pic8259" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="m72_audio" />
    <device_ref name="ym2151" />
    <device_ref name="dac_8bit_r2r" />
    <chip type="cpu" tag="maincpu" name="NEC V30" clock="8000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <chip type="audio" tag="dac" name="8-Bit R-2R DAC" />
    <display tag="screen" type="raster" rotate="0" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Lives" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="2" value="2" />
      <dipvalue name="3" value="3" default="yes" />
      <dipvalue name="4" value="1" />
      <dipvalue name="5" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="12">
      <diplocation name="SW1" number="3" />
      <diplocation name="SW1" number="4" />
      <dipvalue name="Very Easy" value="0" />
      <dipvalue name="Easy" value="8" />
      <dipvalue name="Normal" value="12" default="yes" />
      <dipvalue name="Hard" value="4" />
    </dipswitch>
    <dipswitch name="Continue Limit" tag="DSW" mask="16">
      <diplocation name="SW1" number="5" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="16" default="yes" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSW" mask="32">
      <diplocation name="SW1" number="6" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="32" default="yes" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="64">
      <diplocation name="SW1" number="7" />
      <dipvalue name="Off" value="64" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="128">
      <diplocation name="SW1" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="DSW" mask="1536">
      <diplocation name="SW2" number="2" />
      <diplocation name="SW2" number="3" />
      <dipvalue name="Upright" value="1024" default="yes" />
      <dipvalue name="Upright (2P)" value="0" />
      <dipvalue name="Cocktail" value="1536" />
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="2048">
      <diplocation name="SW2" number="4" />
      <dipvalue name="Mode 1" value="2048" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="12288">
      <condition tag="DSW" mask="2048" relation="eq" value="0" />
      <diplocation name="SW2" number="5" />
      <diplocation name="SW2" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="4096" />
      <dipvalue name="2 Coins/1 Credit" value="8192" />
      <dipvalue name="1 Coin/1 Credit" value="12288" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="49152">
      <condition tag="DSW" mask="2048" relation="eq" value="0" />
      <diplocation name="SW2" number="7" />
      <diplocation name="SW2" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="49152" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="32768" />
      <dipvalue name="1 Coin/5 Credits" value="16384" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="61440">
      <condition tag="DSW" mask="2048" relation="ne" value="0" />
      <diplocation name="SW2" number="5" />
      <diplocation name="SW2" number="6" />
      <diplocation name="SW2" number="7" />
      <diplocation name="SW2" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="40960" />
      <dipvalue name="5 Coins/1 Credit" value="45056" />
      <dipvalue name="4 Coins/1 Credit" value="49152" />
      <dipvalue name="3 Coins/1 Credit" value="53248" />
      <dipvalue name="2 Coins/1 Credit" value="57344" />
      <dipvalue name="2 Coins to Start/1 to Continue" value="4096" />
      <dipvalue name="3 Coins/2 Credits" value="12288" />
      <dipvalue name="4 Coins/3 Credits" value="8192" />
      <dipvalue name="1 Coin/1 Credit" value="61440" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="16384" />
      <dipvalue name="1 Coin/2 Credits" value="36864" />
      <dipvalue name="1 Coin/3 Credits" value="32768" />
      <dipvalue name="1 Coin/4 Credits" value="28672" />
      <dipvalue name="1 Coin/5 Credits" value="24576" />
      <dipvalue name="1 Coin/6 Credits" value="20480" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <driver status="good" emulation="good" cocktail="preliminary" savestate="supported" />
  </machine>
  <machine name="gallop" sourcefile="m72.cpp" cloneof="cosmccop" romof="cosmccop">
    <description>Gallop - Armed Police Unit (Japan, M72 hardware)</description>
    <year>1991</year>
    <manufacturer>Irem</manufacturer>
    <rom name="cc-c-h0.ic40" size="131072" crc="2217dcd0" sha1="9485b6c3eec99e720439e69dcbe0e55798bbff1c" region="maincpu" offset="1" />
    <rom name="cc-c-l0.ic37" size="131072" crc="ff39d7fb" sha1="fad95f76050fce04464268b5edff6622b2cb798f" region="maincpu" offset="0" />
    <rom name="cc-c-h3.ic43" size="131072" crc="9b2bbab9" sha1="255d4dda55be667f5f1f4324e9e66111738e79b3" region="maincpu" offset="40001" />
    <rom name="cc-c-l3.ic34" size="131072" crc="acd3278e" sha1="83d7ddfbdb4bc9548a179b728351a21b3b0ac134" region="maincpu" offset="40000" />
    <rom name="cc_c-pr-.ic1" size="65536" status="nodump" region="mcu" offset="0" />
    <rom name="cc-c-00.ic53" merge="cc-c-00.bin" size="131072" crc="9d99deaa" sha1="acf16bea0f482306107d2a305c568406b6c21e9a" region="sprites" offset="0" />
    <rom name="cc-c-10.ic51" merge="cc-c-10.bin" size="131072" crc="7eb083ed" sha1="31fa7d532fd46e861c3d19d5b08661653f685a49" region="sprites" offset="20000" />
    <rom name="cc-c-20.ic49" merge="cc-c-20.bin" size="131072" crc="9421489e" sha1="e43d042bf8b4ebed93558d74ec479ec60a01ca5c" region="sprites" offset="40000" />
    <rom name="cc-c-30.ic47" merge="cc-c-30.bin" size="131072" crc="920ec735" sha1="2d0949b43dddce7317c45910d6e4868ddf010806" region="sprites" offset="60000" />
    <rom name="cc-b-a0.ic21" size="65536" crc="a33472bd" sha1="962047fe3dd1fb996285ecef615a8ebdb529adef" region="gfx2" offset="0" />
    <rom name="cc-b-a1.ic22" size="65536" crc="118b1f2d" sha1="7413ccc67a8aa9dae156e6ee122b1ca5beeb9a76" region="gfx2" offset="10000" />
    <rom name="cc-b-a2.ic20" size="65536" crc="83cebf48" sha1="12847827ecbf6b493eb9dbddd0a469729d87a451" region="gfx2" offset="20000" />
    <rom name="cc-b-a3.ic23" size="65536" crc="572903fc" sha1="03305301bcf939e97044e746594736b1ca1d7c0a" region="gfx2" offset="30000" />
    <rom name="cc-b-b0.ic26" size="65536" crc="0df5b439" sha1="0775cf92139a111542c8b5f940da0f7f43020982" region="gfx3" offset="0" />
    <rom name="cc-b-b1.ic27" size="65536" crc="010b778f" sha1="cc5bfeb0fbe0ed2fe513458c5785ec0ce5b02f53" region="gfx3" offset="10000" />
    <rom name="cc-b-b2.ic25" size="65536" crc="bda9f6fb" sha1="a6b655ae5bff0568c1fb56ee8a3874fc6524052c" region="gfx3" offset="20000" />
    <rom name="cc-b-b3.ic24" size="65536" crc="d361ba3f" sha1="7348fdae03e997e05187a2726eb221edb92553df" region="gfx3" offset="30000" />
    <rom name="cc-c-v0.ic44" merge="cc-c-v0.bin" size="131072" crc="6247bade" sha1="4bc9f86acd09908c74b1ab0e7817c4ff1cad6f0b" region="samples" offset="0" />
    <device_ref name="v30" />
    <device_ref name="z80" />
    <device_ref name="pic8259" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="m72_audio" />
    <device_ref name="ym2151" />
    <device_ref name="dac_8bit_r2r" />
    <chip type="cpu" tag="maincpu" name="NEC V30" clock="8000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <chip type="audio" tag="dac" name="8-Bit R-2R DAC" />
    <display tag="screen" type="raster" rotate="0" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Lives" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="2" value="2" />
      <dipvalue name="3" value="3" default="yes" />
      <dipvalue name="4" value="1" />
      <dipvalue name="5" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="12">
      <diplocation name="SW1" number="3" />
      <diplocation name="SW1" number="4" />
      <dipvalue name="Very Easy" value="0" />
      <dipvalue name="Easy" value="8" />
      <dipvalue name="Normal" value="12" default="yes" />
      <dipvalue name="Hard" value="4" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="16">
      <diplocation name="SW1" number="5" />
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSW" mask="32">
      <diplocation name="SW1" number="6" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="32" default="yes" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="64">
      <diplocation name="SW1" number="7" />
      <dipvalue name="Off" value="64" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="128">
      <diplocation name="SW1" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="DSW" mask="1536">
      <diplocation name="SW2" number="2" />
      <diplocation name="SW2" number="3" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Upright (2P)" value="512" />
      <dipvalue name="Cocktail" value="1536" />
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="2048">
      <diplocation name="SW2" number="4" />
      <dipvalue name="Mode 1" value="2048" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="12288">
      <condition tag="DSW" mask="2048" relation="eq" value="0" />
      <diplocation name="SW2" number="5" />
      <diplocation name="SW2" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="4096" />
      <dipvalue name="2 Coins/1 Credit" value="8192" />
      <dipvalue name="1 Coin/1 Credit" value="12288" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="49152">
      <condition tag="DSW" mask="2048" relation="eq" value="0" />
      <diplocation name="SW2" number="7" />
      <diplocation name="SW2" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="49152" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="32768" />
      <dipvalue name="1 Coin/5 Credits" value="16384" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="61440">
      <condition tag="DSW" mask="2048" relation="ne" value="0" />
      <diplocation name="SW2" number="5" />
      <diplocation name="SW2" number="6" />
      <diplocation name="SW2" number="7" />
      <diplocation name="SW2" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="40960" />
      <dipvalue name="5 Coins/1 Credit" value="45056" />
      <dipvalue name="4 Coins/1 Credit" value="49152" />
      <dipvalue name="3 Coins/1 Credit" value="53248" />
      <dipvalue name="2 Coins/1 Credit" value="57344" />
      <dipvalue name="2 Coins to Start/1 to Continue" value="4096" />
      <dipvalue name="3 Coins/2 Credits" value="12288" />
      <dipvalue name="4 Coins/3 Credits" value="8192" />
      <dipvalue name="1 Coin/1 Credit" value="61440" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="16384" />
      <dipvalue name="1 Coin/2 Credits" value="36864" />
      <dipvalue name="1 Coin/3 Credits" value="32768" />
      <dipvalue name="1 Coin/4 Credits" value="28672" />
      <dipvalue name="1 Coin/5 Credits" value="24576" />
      <dipvalue name="1 Coin/6 Credits" value="20480" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <driver status="good" emulation="good" cocktail="preliminary" savestate="supported" />
  </machine>
  <machine name="hharry" sourcefile="m72.cpp">
    <description>Hammerin' Harry (World, M81 hardware)</description>
    <year>1990</year>
    <manufacturer>Irem</manufacturer>
    <rom name="a-h0-v.rom" size="131072" crc="c52802a5" sha1="7180189c886aebe8d3e7fd38922916cecfddae32" region="maincpu" offset="1" />
    <rom name="a-l0-v.rom" size="131072" crc="f463074c" sha1="aca86345610e65848c276ab278092d35ba215916" region="maincpu" offset="0" />
    <rom name="a-h1-0.rom" size="65536" crc="3ae21335" sha1="780d7a0c5bebe4b914ea5b3741e30630f8c29a4f" region="maincpu" offset="60001" />
    <rom name="a-l1-0.rom" size="65536" crc="bc6ac5f9" sha1="c6afba4967a8055f6b63827697425eac743f5a75" region="maincpu" offset="60000" />
    <rom name="a-sp-0.rom" size="65536" crc="80e210e7" sha1="66cff58fb37c52e1d8e0567e13b774253e862585" region="soundcpu" offset="0" />
    <rom name="hh_00.rom" size="131072" crc="ec5127ef" sha1="014ac8ad7b19cd9b475b72a0f42a4991119501c4" region="sprites" offset="0" />
    <rom name="hh_10.rom" size="131072" crc="def65294" sha1="23f5d99fa9f604fde37cb52113bff233d9be1d25" region="sprites" offset="20000" />
    <rom name="hh_20.rom" size="131072" crc="bb0d6ad4" sha1="4ab617fadfc32efad90ed7f0555513f167b0c43a" region="sprites" offset="40000" />
    <rom name="hh_30.rom" size="131072" crc="4351044e" sha1="0d3ce3f4f1473fd997e70de91e7b5b5a5ec60ad4" region="sprites" offset="60000" />
    <rom name="hh_a0.rom" size="131072" crc="c577ba5f" sha1="c882e58cf64deca8eee6f14f3df43ecc932488fc" region="gfx2" offset="0" />
    <rom name="hh_a1.rom" size="131072" crc="429d12ab" sha1="ccba25eab981fc4e664f76e06a2964066f2ae2e8" region="gfx2" offset="20000" />
    <rom name="hh_a2.rom" size="131072" crc="b5b163b0" sha1="82a708fea4953a7c4dcd1d4a1b07f302221ba30b" region="gfx2" offset="40000" />
    <rom name="hh_a3.rom" size="131072" crc="8ef566a1" sha1="3afb020a7317efe89c18b2a7773894ce28499d49" region="gfx2" offset="60000" />
    <rom name="a-v0-0.rom" size="131072" crc="faaacaff" sha1="ea3a3920255c07aa9c0a7e0191eae257a9f7f558" region="samples" offset="0" />
    <device_ref name="v30" />
    <device_ref name="z80" />
    <device_ref name="pic8259" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="m72_audio" />
    <device_ref name="ym2151" />
    <device_ref name="dac_8bit_r2r" />
    <chip type="cpu" tag="maincpu" name="NEC V30" clock="8000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <chip type="audio" tag="dac" name="8-Bit R-2R DAC" />
    <display tag="screen" type="raster" rotate="0" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Lives" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="2" value="2" />
      <dipvalue name="3" value="3" default="yes" />
      <dipvalue name="4" value="1" />
      <dipvalue name="5" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="12">
      <diplocation name="SW1" number="3" />
      <diplocation name="SW1" number="4" />
      <dipvalue name="Very Easy" value="0" />
      <dipvalue name="Easy" value="8" />
      <dipvalue name="Normal" value="12" default="yes" />
      <dipvalue name="Hard" value="4" />
    </dipswitch>
    <dipswitch name="Continue Limit" tag="DSW" mask="16">
      <diplocation name="SW1" number="5" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="16" default="yes" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSW" mask="32">
      <diplocation name="SW1" number="6" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="32" default="yes" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="64">
      <diplocation name="SW1" number="7" />
      <dipvalue name="Off" value="64" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="128">
      <diplocation name="SW1" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="DSW" mask="1536">
      <diplocation name="SW2" number="2" />
      <diplocation name="SW2" number="3" />
      <dipvalue name="Upright" value="1024" default="yes" />
      <dipvalue name="Upright (2P)" value="0" />
      <dipvalue name="Cocktail" value="1536" />
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="2048">
      <diplocation name="SW2" number="4" />
      <dipvalue name="Mode 1" value="2048" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="12288">
      <condition tag="DSW" mask="2048" relation="eq" value="0" />
      <diplocation name="SW2" number="5" />
      <diplocation name="SW2" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="4096" />
      <dipvalue name="2 Coins/1 Credit" value="8192" />
      <dipvalue name="1 Coin/1 Credit" value="12288" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="49152">
      <condition tag="DSW" mask="2048" relation="eq" value="0" />
      <diplocation name="SW2" number="7" />
      <diplocation name="SW2" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="49152" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="32768" />
      <dipvalue name="1 Coin/5 Credits" value="16384" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="61440">
      <condition tag="DSW" mask="2048" relation="ne" value="0" />
      <diplocation name="SW2" number="5" />
      <diplocation name="SW2" number="6" />
      <diplocation name="SW2" number="7" />
      <diplocation name="SW2" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="40960" />
      <dipvalue name="5 Coins/1 Credit" value="45056" />
      <dipvalue name="4 Coins/1 Credit" value="49152" />
      <dipvalue name="3 Coins/1 Credit" value="53248" />
      <dipvalue name="2 Coins/1 Credit" value="57344" />
      <dipvalue name="2 Coins to Start/1 to Continue" value="4096" />
      <dipvalue name="3 Coins/2 Credits" value="12288" />
      <dipvalue name="4 Coins/3 Credits" value="8192" />
      <dipvalue name="1 Coin/1 Credit" value="61440" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="16384" />
      <dipvalue name="1 Coin/2 Credits" value="36864" />
      <dipvalue name="1 Coin/3 Credits" value="32768" />
      <dipvalue name="1 Coin/4 Credits" value="28672" />
      <dipvalue name="1 Coin/5 Credits" value="24576" />
      <dipvalue name="1 Coin/6 Credits" value="20480" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <configuration name="M81-B-B Jumper J3" tag="JumperJ3" mask="1">
      <confsetting name="S" value="0" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <port tag=":JumperJ3" />
    <driver status="good" emulation="good" cocktail="preliminary" savestate="supported" />
  </machine>
  <machine name="hharryb" sourcefile="m72.cpp" cloneof="hharry" romof="hharry">
    <description>Hammerin' Harry (World, M84 hardware bootleg)</description>
    <year>1990</year>
    <manufacturer>bootleg</manufacturer>
    <rom name="4-a-27c010a.bin" size="131072" crc="755c0874" sha1="28ea0f7d700cc0119d8cb5693d0bcfef3da78c95" region="maincpu" offset="1" />
    <rom name="6-a-27c010a.bin" size="131072" crc="f10fb55c" sha1="1bb0d56a29ca34b003c57faa9693b96413718608" region="maincpu" offset="0" />
    <rom name="3-a-27c512.bin" size="65536" crc="31b741c5" sha1="46c1c4cea09477cc4989f3e06e08851d02743e62" region="maincpu" offset="60001" />
    <rom name="5-a-27c512.bin" size="65536" crc="b23e966c" sha1="f506f6d1f4f7874070e91d1df8f141cca031ce29" region="maincpu" offset="60000" />
    <rom name="2-a-27c512.bin" merge="a-sp-0.rom" size="65536" crc="80e210e7" sha1="66cff58fb37c52e1d8e0567e13b774253e862585" region="soundcpu" offset="0" />
    <rom name="17-c-27c010a.bin" merge="hh_00.rom" size="131072" crc="ec5127ef" sha1="014ac8ad7b19cd9b475b72a0f42a4991119501c4" region="sprites" offset="0" />
    <rom name="16-c-27c010a.bin" merge="hh_10.rom" size="131072" crc="def65294" sha1="23f5d99fa9f604fde37cb52113bff233d9be1d25" region="sprites" offset="20000" />
    <rom name="14-c-27c010a.bin" merge="hh_20.rom" size="131072" crc="bb0d6ad4" sha1="4ab617fadfc32efad90ed7f0555513f167b0c43a" region="sprites" offset="40000" />
    <rom name="15-c-27c010a.bin" merge="hh_30.rom" size="131072" crc="4351044e" sha1="0d3ce3f4f1473fd997e70de91e7b5b5a5ec60ad4" region="sprites" offset="60000" />
    <rom name="13-b-27c010a.bin" merge="hh_a0.rom" size="131072" crc="c577ba5f" sha1="c882e58cf64deca8eee6f14f3df43ecc932488fc" region="gfx2" offset="0" />
    <rom name="11-b-27c010a.bin" merge="hh_a1.rom" size="131072" crc="429d12ab" sha1="ccba25eab981fc4e664f76e06a2964066f2ae2e8" region="gfx2" offset="20000" />
    <rom name="9-b-27c010a.bin" merge="hh_a2.rom" size="131072" crc="b5b163b0" sha1="82a708fea4953a7c4dcd1d4a1b07f302221ba30b" region="gfx2" offset="40000" />
    <rom name="7-b-27c010a.bin" merge="hh_a3.rom" size="131072" crc="8ef566a1" sha1="3afb020a7317efe89c18b2a7773894ce28499d49" region="gfx2" offset="60000" />
    <rom name="1-a-27c010a.bin" merge="a-v0-0.rom" size="131072" crc="faaacaff" sha1="ea3a3920255c07aa9c0a7e0191eae257a9f7f558" region="samples" offset="0" />
    <rom name="19-c-82s129.bin" size="256" crc="b460c438" sha1="00e20cf754b6fd5138ee4d2f6ec28dff9e292fe6" region="proms" offset="0" />
    <rom name="18-c-82s129.bin" size="256" crc="a4f2c4bc" sha1="f13b0a4b52dcc6704063b676f09d83dcba170133" region="proms" offset="100" />
    <rom name="a-pal16l8.bin" size="260" crc="1358c513" sha1="7c8f44e4d63867d54e16fc29d168a27be5f4babf" region="plds" offset="0" />
    <device_ref name="v30" />
    <device_ref name="z80" />
    <device_ref name="pic8259" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="m72_audio" />
    <device_ref name="ym2151" />
    <device_ref name="dac_8bit_r2r" />
    <chip type="cpu" tag="maincpu" name="NEC V30" clock="8000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <chip type="audio" tag="dac" name="8-Bit R-2R DAC" />
    <display tag="screen" type="raster" rotate="0" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Lives" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="2" value="2" />
      <dipvalue name="3" value="3" default="yes" />
      <dipvalue name="4" value="1" />
      <dipvalue name="5" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="12">
      <diplocation name="SW1" number="3" />
      <diplocation name="SW1" number="4" />
      <dipvalue name="Very Easy" value="0" />
      <dipvalue name="Easy" value="8" />
      <dipvalue name="Normal" value="12" default="yes" />
      <dipvalue name="Hard" value="4" />
    </dipswitch>
    <dipswitch name="Continue Limit" tag="DSW" mask="16">
      <diplocation name="SW1" number="5" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="16" default="yes" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSW" mask="32">
      <diplocation name="SW1" number="6" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="32" default="yes" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="64">
      <diplocation name="SW1" number="7" />
      <dipvalue name="Off" value="64" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="128">
      <diplocation name="SW1" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="DSW" mask="1536">
      <diplocation name="SW2" number="2" />
      <diplocation name="SW2" number="3" />
      <dipvalue name="Upright" value="1024" default="yes" />
      <dipvalue name="Upright (2P)" value="0" />
      <dipvalue name="Cocktail" value="1536" />
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="2048">
      <diplocation name="SW2" number="4" />
      <dipvalue name="Mode 1" value="2048" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="12288">
      <condition tag="DSW" mask="2048" relation="eq" value="0" />
      <diplocation name="SW2" number="5" />
      <diplocation name="SW2" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="4096" />
      <dipvalue name="2 Coins/1 Credit" value="8192" />
      <dipvalue name="1 Coin/1 Credit" value="12288" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="49152">
      <condition tag="DSW" mask="2048" relation="eq" value="0" />
      <diplocation name="SW2" number="7" />
      <diplocation name="SW2" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="49152" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="32768" />
      <dipvalue name="1 Coin/5 Credits" value="16384" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="61440">
      <condition tag="DSW" mask="2048" relation="ne" value="0" />
      <diplocation name="SW2" number="5" />
      <diplocation name="SW2" number="6" />
      <diplocation name="SW2" number="7" />
      <diplocation name="SW2" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="40960" />
      <dipvalue name="5 Coins/1 Credit" value="45056" />
      <dipvalue name="4 Coins/1 Credit" value="49152" />
      <dipvalue name="3 Coins/1 Credit" value="53248" />
      <dipvalue name="2 Coins/1 Credit" value="57344" />
      <dipvalue name="2 Coins to Start/1 to Continue" value="4096" />
      <dipvalue name="3 Coins/2 Credits" value="12288" />
      <dipvalue name="4 Coins/3 Credits" value="8192" />
      <dipvalue name="1 Coin/1 Credit" value="61440" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="16384" />
      <dipvalue name="1 Coin/2 Credits" value="36864" />
      <dipvalue name="1 Coin/3 Credits" value="32768" />
      <dipvalue name="1 Coin/4 Credits" value="28672" />
      <dipvalue name="1 Coin/5 Credits" value="24576" />
      <dipvalue name="1 Coin/6 Credits" value="20480" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <driver status="good" emulation="good" cocktail="preliminary" savestate="supported" />
  </machine>
  <machine name="hharryu" sourcefile="m72.cpp" cloneof="hharry" romof="hharry">
    <description>Hammerin' Harry (US, M84 hardware)</description>
    <year>1990</year>
    <manufacturer>Irem America</manufacturer>
    <rom name="a-ho-u.8d" size="131072" crc="ede7f755" sha1="adcec83d6b936ab1a14d039792b9375e9f803a08" region="maincpu" offset="1" />
    <rom name="a-lo-u.9d" size="131072" crc="df0726ae" sha1="7ef163d2e8c14a14328d4365705bb31540bdc7cb" region="maincpu" offset="0" />
    <rom name="a-h1-f.8b" size="65536" crc="31b741c5" sha1="46c1c4cea09477cc4989f3e06e08851d02743e62" region="maincpu" offset="60001" />
    <rom name="a-l1-f.9b" size="65536" crc="b23e966c" sha1="f506f6d1f4f7874070e91d1df8f141cca031ce29" region="maincpu" offset="60000" />
    <rom name="a-sp-0.rom" merge="a-sp-0.rom" size="65536" crc="80e210e7" sha1="66cff58fb37c52e1d8e0567e13b774253e862585" region="soundcpu" offset="0" />
    <rom name="hh_00.rom" merge="hh_00.rom" size="131072" crc="ec5127ef" sha1="014ac8ad7b19cd9b475b72a0f42a4991119501c4" region="sprites" offset="0" />
    <rom name="hh_10.rom" merge="hh_10.rom" size="131072" crc="def65294" sha1="23f5d99fa9f604fde37cb52113bff233d9be1d25" region="sprites" offset="20000" />
    <rom name="hh_20.rom" merge="hh_20.rom" size="131072" crc="bb0d6ad4" sha1="4ab617fadfc32efad90ed7f0555513f167b0c43a" region="sprites" offset="40000" />
    <rom name="hh_30.rom" merge="hh_30.rom" size="131072" crc="4351044e" sha1="0d3ce3f4f1473fd997e70de91e7b5b5a5ec60ad4" region="sprites" offset="60000" />
    <rom name="hh_a0.rom" merge="hh_a0.rom" size="131072" crc="c577ba5f" sha1="c882e58cf64deca8eee6f14f3df43ecc932488fc" region="gfx2" offset="0" />
    <rom name="hh_a1.rom" merge="hh_a1.rom" size="131072" crc="429d12ab" sha1="ccba25eab981fc4e664f76e06a2964066f2ae2e8" region="gfx2" offset="20000" />
    <rom name="hh_a2.rom" merge="hh_a2.rom" size="131072" crc="b5b163b0" sha1="82a708fea4953a7c4dcd1d4a1b07f302221ba30b" region="gfx2" offset="40000" />
    <rom name="hh_a3.rom" merge="hh_a3.rom" size="131072" crc="8ef566a1" sha1="3afb020a7317efe89c18b2a7773894ce28499d49" region="gfx2" offset="60000" />
    <rom name="a-v0-0.rom" merge="a-v0-0.rom" size="131072" crc="faaacaff" sha1="ea3a3920255c07aa9c0a7e0191eae257a9f7f558" region="samples" offset="0" />
    <device_ref name="v30" />
    <device_ref name="z80" />
    <device_ref name="pic8259" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="m72_audio" />
    <device_ref name="ym2151" />
    <device_ref name="dac_8bit_r2r" />
    <chip type="cpu" tag="maincpu" name="NEC V30" clock="8000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <chip type="audio" tag="dac" name="8-Bit R-2R DAC" />
    <display tag="screen" type="raster" rotate="0" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Lives" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="2" value="2" />
      <dipvalue name="3" value="3" default="yes" />
      <dipvalue name="4" value="1" />
      <dipvalue name="5" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="12">
      <diplocation name="SW1" number="3" />
      <diplocation name="SW1" number="4" />
      <dipvalue name="Very Easy" value="0" />
      <dipvalue name="Easy" value="8" />
      <dipvalue name="Normal" value="12" default="yes" />
      <dipvalue name="Hard" value="4" />
    </dipswitch>
    <dipswitch name="Continue Limit" tag="DSW" mask="16">
      <diplocation name="SW1" number="5" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="16" default="yes" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSW" mask="32">
      <diplocation name="SW1" number="6" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="32" default="yes" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="64">
      <diplocation name="SW1" number="7" />
      <dipvalue name="Off" value="64" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="128">
      <diplocation name="SW1" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="DSW" mask="1536">
      <diplocation name="SW2" number="2" />
      <diplocation name="SW2" number="3" />
      <dipvalue name="Upright" value="1024" default="yes" />
      <dipvalue name="Upright (2P)" value="0" />
      <dipvalue name="Cocktail" value="1536" />
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="2048">
      <diplocation name="SW2" number="4" />
      <dipvalue name="Mode 1" value="2048" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="12288">
      <condition tag="DSW" mask="2048" relation="eq" value="0" />
      <diplocation name="SW2" number="5" />
      <diplocation name="SW2" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="4096" />
      <dipvalue name="2 Coins/1 Credit" value="8192" />
      <dipvalue name="1 Coin/1 Credit" value="12288" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="49152">
      <condition tag="DSW" mask="2048" relation="eq" value="0" />
      <diplocation name="SW2" number="7" />
      <diplocation name="SW2" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="49152" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="32768" />
      <dipvalue name="1 Coin/5 Credits" value="16384" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="61440">
      <condition tag="DSW" mask="2048" relation="ne" value="0" />
      <diplocation name="SW2" number="5" />
      <diplocation name="SW2" number="6" />
      <diplocation name="SW2" number="7" />
      <diplocation name="SW2" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="40960" />
      <dipvalue name="5 Coins/1 Credit" value="45056" />
      <dipvalue name="4 Coins/1 Credit" value="49152" />
      <dipvalue name="3 Coins/1 Credit" value="53248" />
      <dipvalue name="2 Coins/1 Credit" value="57344" />
      <dipvalue name="2 Coins to Start/1 to Continue" value="4096" />
      <dipvalue name="3 Coins/2 Credits" value="12288" />
      <dipvalue name="4 Coins/3 Credits" value="8192" />
      <dipvalue name="1 Coin/1 Credit" value="61440" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="16384" />
      <dipvalue name="1 Coin/2 Credits" value="36864" />
      <dipvalue name="1 Coin/3 Credits" value="32768" />
      <dipvalue name="1 Coin/4 Credits" value="28672" />
      <dipvalue name="1 Coin/5 Credits" value="24576" />
      <dipvalue name="1 Coin/6 Credits" value="20480" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <driver status="good" emulation="good" cocktail="preliminary" savestate="supported" />
  </machine>
  <machine name="imgfight" sourcefile="m72.cpp">
    <description>Image Fight (World)</description>
    <year>1988</year>
    <manufacturer>Irem</manufacturer>
    <rom name="if-c-h0-a.ic40" size="65536" crc="f5c94464" sha1="5964a00d21ebb358eecc0f10f6221fb684f284df" region="maincpu" offset="1" />
    <rom name="if-c-l0-a.ic37" size="65536" crc="87c534fe" sha1="10c231a2b3046a711a1fdcc6c1631a7378295f2f" region="maincpu" offset="0" />
    <rom name="if-c-h3.ic43" size="131072" crc="ea030541" sha1="ee4c12773ecced2d755443ce0ca78fb2b2c04805" region="maincpu" offset="40001" />
    <rom name="if-c-l3.ic34" size="131072" crc="c66ae348" sha1="eca5096ebd5bffc6e68f3fc9969cda9679bd921f" region="maincpu" offset="40000" />
    <rom name="if_c-pr-a.ic1" size="4096" crc="55f10458" sha1="d520ec2b075c94d76d97e0105644ff96384b378c" region="mcu" offset="0" />
    <rom name="if-c-00.ic53" size="131072" crc="745e6638" sha1="43fb1f9da4190fea67eee3aee8caf4219becc21b" region="sprites" offset="0" />
    <rom name="if-c-10.ic51" size="131072" crc="b7108449" sha1="1f41ebe7164fab86958caaf6749b99425e682657" region="sprites" offset="20000" />
    <rom name="if-c-20.ic49" size="131072" crc="aef33cba" sha1="2d8a8458207d0c790c81b1285366463c8540d190" region="sprites" offset="40000" />
    <rom name="if-c-30.ic47" size="131072" crc="1f98e695" sha1="5fddcfb17523f8e96f4b85f0cb15d837b81f2bd4" region="sprites" offset="60000" />
    <rom name="if-a-a0.ic21" size="65536" crc="34ee2d77" sha1="38826e0318aa8da893fa4c93f217288c015df606" region="gfx2" offset="0" />
    <rom name="if-a-a1.ic22" size="65536" crc="6bd2845b" sha1="149cf14f919590da88b9a8e254690da010709862" region="gfx2" offset="10000" />
    <rom name="if-a-a2.ic20" size="65536" crc="090d50e5" sha1="4f2a7c76320b3f8dafae90a246187e034fe7562b" region="gfx2" offset="20000" />
    <rom name="if-a-a3.ic23" size="65536" crc="3a8e3083" sha1="8a75d556790b6bea41ead1a5f95589dd293bdf4e" region="gfx2" offset="30000" />
    <rom name="if-a-b0.ic26" size="65536" crc="b425c829" sha1="0ccd487dba00bb7cb0ff5d1c67f8fee3e68df5d8" region="gfx3" offset="0" />
    <rom name="if-a-b1.ic27" size="65536" crc="e9bfe23e" sha1="f97a68dbdce7e06d07faab19acf7625cdc8eeaa8" region="gfx3" offset="10000" />
    <rom name="if-a-b2.ic25" size="65536" crc="256e50f2" sha1="9e9fda4f1f1449548942c0da4478f61fe0d263d1" region="gfx3" offset="20000" />
    <rom name="if-a-b3.ic24" size="65536" crc="4c682785" sha1="f61f1227e0ad629fdfca106306b17a9f6a9959e3" region="gfx3" offset="30000" />
    <rom name="if-c-v0.ic44" size="65536" crc="cb64a194" sha1="940fad6b9147bccc8290e112f5973f8ea062b52f" region="samples" offset="0" />
    <rom name="if-c-v1.ic45" size="65536" crc="45b68bf5" sha1="2fb28793019ca85b3b6d7c4c31eedff1d71f2d83" region="samples" offset="10000" />
    <device_ref name="v30" />
    <device_ref name="z80" />
    <device_ref name="pic8259" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="m72_audio" />
    <device_ref name="ym2151" />
    <device_ref name="dac_8bit_r2r" />
    <device_ref name="mb8421_mb8431_16" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="i8751" />
    <chip type="cpu" tag="maincpu" name="NEC V30" clock="8000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="cpu" tag="mcu" name="Intel 8751" clock="8000000" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <chip type="audio" tag="dac" name="8-Bit R-2R DAC" />
    <display tag="screen" type="raster" rotate="270" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Lives" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="2" value="2" />
      <dipvalue name="3" value="3" default="yes" />
      <dipvalue name="4" value="1" />
      <dipvalue name="5" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="12">
      <diplocation name="SW1" number="3" />
      <diplocation name="SW1" number="4" />
      <dipvalue name="Normal" value="12" default="yes" />
      <dipvalue name="Hard" value="8" />
      <dipvalue name="Hardest" value="4" />
      <dipvalue name="Debug Mode 2 lap" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="48">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="32" />
      <dipvalue name="1 Coin/1 Credit" value="48" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="192">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="192" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/5 Credits" value="64" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="240">
      <condition tag="DSW" mask="1024" relation="ne" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="160" />
      <dipvalue name="5 Coins/1 Credit" value="176" />
      <dipvalue name="4 Coins/1 Credit" value="192" />
      <dipvalue name="3 Coins/1 Credit" value="208" />
      <dipvalue name="8 Coins/3 Credits" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="224" />
      <dipvalue name="5 Coins/3 Credits" value="32" />
      <dipvalue name="3 Coins/2 Credits" value="48" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="64" />
      <dipvalue name="1 Coin/2 Credits" value="144" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/4 Credits" value="112" />
      <dipvalue name="1 Coin/5 Credits" value="96" />
      <dipvalue name="1 Coin/6 Credits" value="80" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="DSW" mask="512">
      <diplocation name="SW2" number="2" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="512" />
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="1024">
      <diplocation name="SW2" number="3" />
      <dipvalue name="Mode 1" value="1024" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="2048">
      <diplocation name="SW2" number="4" />
      <dipvalue name="Off" value="2048" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="4096">
      <diplocation name="SW2" number="5" />
      <dipvalue name="Off" value="4096" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop Mode" tag="DSW" mask="8192">
      <diplocation name="SW2" number="6" />
      <dipvalue name="Off" value="8192" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="16384">
      <diplocation name="SW2" number="7" />
      <dipvalue name="Off" value="16384" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="32768">
      <diplocation name="SW2" number="8" />
      <dipvalue name="Off" value="32768" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="imgfightb" sourcefile="m72.cpp" cloneof="imgfight" romof="imgfight">
    <description>Image Fight (Japan, bootleg)</description>
    <year>1988</year>
    <manufacturer>Irem</manufacturer>
    <rom name="ic108.9b" size="65536" crc="592d2d80" sha1="d54916a9bfe4b65a972b62202af706135e73518d" region="maincpu" offset="1" />
    <rom name="ic89.7b" size="65536" crc="61f89056" sha1="3e0724dbc2b00a30193ea6cfac8b4331055d4fd4" region="maincpu" offset="0" />
    <rom name="ic111.9e" size="65536" crc="da50622e" sha1="32c75b6270d401a6825632c66f3026cae7b5b81f" region="maincpu" offset="40001" />
    <rom name="ic110.9d" size="65536" crc="0e0aefcd" sha1="f5056a2d0612d912aff1e0eccb1182de7ae16990" region="maincpu" offset="60001" />
    <rom name="ic92.7e" size="65536" crc="38fce272" sha1="4fe4d0838d21f3022b440a32ec69b25e936e62dd" region="maincpu" offset="40000" />
    <rom name="ic91.7d" size="65536" crc="d69c0722" sha1="ef18e7b7057f19caaa61d0b8c07d2d0c6e0a555e" region="maincpu" offset="60000" />
    <rom name="25.ic27.2l" size="8192" crc="d83359a2" sha1="2d486bf4a873abfe591e0d9383f9e230f47bc42a" region="mcu" offset="0" />
    <rom name="ic96.7k" size="65536" crc="d4febb03" sha1="6fe53b198bdcef1708ff134c64af9c064e274e1b" region="sprites" offset="0" />
    <rom name="ic97.7l" size="65536" crc="973d7bbc" sha1="409242ddc7eb90564a15b222641e53d11ab1e04a" region="sprites" offset="10000" />
    <rom name="ic115.9k" size="65536" crc="2328880b" sha1="a35c77a7d04614dbfbca4c79bb3e729115129ee4" region="sprites" offset="20000" />
    <rom name="ic116.9l" size="65536" crc="6da001ea" sha1="473ed89b77809b3b76bfa9f5ca4008c9534cdbb4" region="sprites" offset="30000" />
    <rom name="ic94.7h" size="65536" crc="92bc7fda" sha1="521d4a29e06eb8790fdeeba968f99a389f50a24e" region="sprites" offset="40000" />
    <rom name="ic95.7j" size="65536" crc="e63a5918" sha1="fd3374866f922cef72c0678aa751ad1e6f95a12a" region="sprites" offset="50000" />
    <rom name="ic113.9h" size="65536" crc="27caec8e" sha1="cc1943ba9548715425e799f418750cd70c3f88da" region="sprites" offset="60000" />
    <rom name="ic114.9j" size="65536" crc="1933eb65" sha1="4c24cfd059c11875f53b57cc020fbdbac903bd4a" region="sprites" offset="70000" />
    <rom name="ic30.3d" merge="if-a-a0.ic21" size="65536" crc="34ee2d77" sha1="38826e0318aa8da893fa4c93f217288c015df606" region="gfx2" offset="0" />
    <rom name="ic31.3e" merge="if-a-a1.ic22" size="65536" crc="6bd2845b" sha1="149cf14f919590da88b9a8e254690da010709862" region="gfx2" offset="10000" />
    <rom name="ic29.3c" merge="if-a-a2.ic20" size="65536" crc="090d50e5" sha1="4f2a7c76320b3f8dafae90a246187e034fe7562b" region="gfx2" offset="20000" />
    <rom name="ic32.3f" merge="if-a-a3.ic23" size="65536" crc="3a8e3083" sha1="8a75d556790b6bea41ead1a5f95589dd293bdf4e" region="gfx2" offset="30000" />
    <rom name="ic35.3k" merge="if-a-b0.ic26" size="65536" crc="b425c829" sha1="0ccd487dba00bb7cb0ff5d1c67f8fee3e68df5d8" region="gfx3" offset="0" />
    <rom name="ic36.3l" merge="if-a-b1.ic27" size="65536" crc="e9bfe23e" sha1="f97a68dbdce7e06d07faab19acf7625cdc8eeaa8" region="gfx3" offset="10000" />
    <rom name="ic34.3j" merge="if-a-b2.ic25" size="65536" crc="256e50f2" sha1="9e9fda4f1f1449548942c0da4478f61fe0d263d1" region="gfx3" offset="20000" />
    <rom name="ic33.3h" merge="if-a-b3.ic24" size="65536" crc="4c682785" sha1="f61f1227e0ad629fdfca106306b17a9f6a9959e3" region="gfx3" offset="30000" />
    <rom name="ic28.lower.2n" merge="if-c-v0.ic44" size="65536" crc="cb64a194" sha1="940fad6b9147bccc8290e112f5973f8ea062b52f" region="samples" offset="0" />
    <rom name="ic28.upper.2n" merge="if-c-v1.ic45" size="65536" crc="45b68bf5" sha1="2fb28793019ca85b3b6d7c4c31eedff1d71f2d83" region="samples" offset="10000" />
    <device_ref name="v30" />
    <device_ref name="z80" />
    <device_ref name="pic8259" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="m72_audio" />
    <device_ref name="ym2151" />
    <device_ref name="dac_8bit_r2r" />
    <device_ref name="mb8421_mb8431_16" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="i80c31" />
    <chip type="cpu" tag="maincpu" name="NEC V30" clock="8000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="cpu" tag="mcu" name="Intel 80C31" clock="7200000" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <chip type="audio" tag="dac" name="8-Bit R-2R DAC" />
    <display tag="screen" type="raster" rotate="270" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Lives" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="2" value="2" />
      <dipvalue name="3" value="3" default="yes" />
      <dipvalue name="4" value="1" />
      <dipvalue name="5" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="12">
      <diplocation name="SW1" number="3" />
      <diplocation name="SW1" number="4" />
      <dipvalue name="Normal" value="12" default="yes" />
      <dipvalue name="Hard" value="8" />
      <dipvalue name="Hardest" value="4" />
      <dipvalue name="Debug Mode 2 lap" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="48">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="32" />
      <dipvalue name="1 Coin/1 Credit" value="48" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="192">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="192" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/5 Credits" value="64" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="240">
      <condition tag="DSW" mask="1024" relation="ne" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="160" />
      <dipvalue name="5 Coins/1 Credit" value="176" />
      <dipvalue name="4 Coins/1 Credit" value="192" />
      <dipvalue name="3 Coins/1 Credit" value="208" />
      <dipvalue name="8 Coins/3 Credits" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="224" />
      <dipvalue name="5 Coins/3 Credits" value="32" />
      <dipvalue name="3 Coins/2 Credits" value="48" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="64" />
      <dipvalue name="1 Coin/2 Credits" value="144" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/4 Credits" value="112" />
      <dipvalue name="1 Coin/5 Credits" value="96" />
      <dipvalue name="1 Coin/6 Credits" value="80" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="DSW" mask="512">
      <diplocation name="SW2" number="2" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="512" />
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="1024">
      <diplocation name="SW2" number="3" />
      <dipvalue name="Mode 1" value="1024" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="2048">
      <diplocation name="SW2" number="4" />
      <dipvalue name="Off" value="2048" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="4096">
      <diplocation name="SW2" number="5" />
      <dipvalue name="Off" value="4096" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop Mode" tag="DSW" mask="8192">
      <diplocation name="SW2" number="6" />
      <dipvalue name="Off" value="8192" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="16384">
      <diplocation name="SW2" number="7" />
      <dipvalue name="Off" value="16384" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="32768">
      <diplocation name="SW2" number="8" />
      <dipvalue name="Off" value="32768" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <driver status="preliminary" emulation="preliminary" savestate="supported" />
  </machine>
  <machine name="imgfightj" sourcefile="m72.cpp" cloneof="imgfight" romof="imgfight">
    <description>Image Fight (Japan)</description>
    <year>1988</year>
    <manufacturer>Irem</manufacturer>
    <rom name="if-c-h0.ic40" size="65536" crc="592d2d80" sha1="d54916a9bfe4b65a972b62202af706135e73518d" region="maincpu" offset="1" />
    <rom name="if-c-l0.ic37" size="65536" crc="61f89056" sha1="3e0724dbc2b00a30193ea6cfac8b4331055d4fd4" region="maincpu" offset="0" />
    <rom name="if-c-h3.ic43" merge="if-c-h3.ic43" size="131072" crc="ea030541" sha1="ee4c12773ecced2d755443ce0ca78fb2b2c04805" region="maincpu" offset="40001" />
    <rom name="if-c-l3.ic34" merge="if-c-l3.ic34" size="131072" crc="c66ae348" sha1="eca5096ebd5bffc6e68f3fc9969cda9679bd921f" region="maincpu" offset="40000" />
    <rom name="if_c-pr-.ic1" size="4096" crc="ef0d5098" sha1="068b73937588e16a318a094dfe2fb1293b1a1711" region="mcu" offset="0" />
    <rom name="if-c-00.ic53" merge="if-c-00.ic53" size="131072" crc="745e6638" sha1="43fb1f9da4190fea67eee3aee8caf4219becc21b" region="sprites" offset="0" />
    <rom name="if-c-10.ic51" merge="if-c-10.ic51" size="131072" crc="b7108449" sha1="1f41ebe7164fab86958caaf6749b99425e682657" region="sprites" offset="20000" />
    <rom name="if-c-20.ic49" merge="if-c-20.ic49" size="131072" crc="aef33cba" sha1="2d8a8458207d0c790c81b1285366463c8540d190" region="sprites" offset="40000" />
    <rom name="if-c-30.ic47" merge="if-c-30.ic47" size="131072" crc="1f98e695" sha1="5fddcfb17523f8e96f4b85f0cb15d837b81f2bd4" region="sprites" offset="60000" />
    <rom name="if-a-a0.ic21" merge="if-a-a0.ic21" size="65536" crc="34ee2d77" sha1="38826e0318aa8da893fa4c93f217288c015df606" region="gfx2" offset="0" />
    <rom name="if-a-a1.ic22" merge="if-a-a1.ic22" size="65536" crc="6bd2845b" sha1="149cf14f919590da88b9a8e254690da010709862" region="gfx2" offset="10000" />
    <rom name="if-a-a2.ic20" merge="if-a-a2.ic20" size="65536" crc="090d50e5" sha1="4f2a7c76320b3f8dafae90a246187e034fe7562b" region="gfx2" offset="20000" />
    <rom name="if-a-a3.ic23" merge="if-a-a3.ic23" size="65536" crc="3a8e3083" sha1="8a75d556790b6bea41ead1a5f95589dd293bdf4e" region="gfx2" offset="30000" />
    <rom name="if-a-b0.ic26" merge="if-a-b0.ic26" size="65536" crc="b425c829" sha1="0ccd487dba00bb7cb0ff5d1c67f8fee3e68df5d8" region="gfx3" offset="0" />
    <rom name="if-a-b1.ic27" merge="if-a-b1.ic27" size="65536" crc="e9bfe23e" sha1="f97a68dbdce7e06d07faab19acf7625cdc8eeaa8" region="gfx3" offset="10000" />
    <rom name="if-a-b2.ic25" merge="if-a-b2.ic25" size="65536" crc="256e50f2" sha1="9e9fda4f1f1449548942c0da4478f61fe0d263d1" region="gfx3" offset="20000" />
    <rom name="if-a-b3.ic24" merge="if-a-b3.ic24" size="65536" crc="4c682785" sha1="f61f1227e0ad629fdfca106306b17a9f6a9959e3" region="gfx3" offset="30000" />
    <rom name="if-c-v0.ic44" merge="if-c-v0.ic44" size="65536" crc="cb64a194" sha1="940fad6b9147bccc8290e112f5973f8ea062b52f" region="samples" offset="0" />
    <rom name="if-c-v1.ic45" merge="if-c-v1.ic45" size="65536" crc="45b68bf5" sha1="2fb28793019ca85b3b6d7c4c31eedff1d71f2d83" region="samples" offset="10000" />
    <device_ref name="v30" />
    <device_ref name="z80" />
    <device_ref name="pic8259" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="m72_audio" />
    <device_ref name="ym2151" />
    <device_ref name="dac_8bit_r2r" />
    <device_ref name="mb8421_mb8431_16" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="i8751" />
    <chip type="cpu" tag="maincpu" name="NEC V30" clock="8000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="cpu" tag="mcu" name="Intel 8751" clock="8000000" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <chip type="audio" tag="dac" name="8-Bit R-2R DAC" />
    <display tag="screen" type="raster" rotate="270" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Lives" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="2" value="2" />
      <dipvalue name="3" value="3" default="yes" />
      <dipvalue name="4" value="1" />
      <dipvalue name="5" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="12">
      <diplocation name="SW1" number="3" />
      <diplocation name="SW1" number="4" />
      <dipvalue name="Normal" value="12" default="yes" />
      <dipvalue name="Hard" value="8" />
      <dipvalue name="Hardest" value="4" />
      <dipvalue name="Debug Mode 2 lap" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="48">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="32" />
      <dipvalue name="1 Coin/1 Credit" value="48" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="192">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="192" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/5 Credits" value="64" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="240">
      <condition tag="DSW" mask="1024" relation="ne" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="160" />
      <dipvalue name="5 Coins/1 Credit" value="176" />
      <dipvalue name="4 Coins/1 Credit" value="192" />
      <dipvalue name="3 Coins/1 Credit" value="208" />
      <dipvalue name="8 Coins/3 Credits" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="224" />
      <dipvalue name="5 Coins/3 Credits" value="32" />
      <dipvalue name="3 Coins/2 Credits" value="48" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="64" />
      <dipvalue name="1 Coin/2 Credits" value="144" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/4 Credits" value="112" />
      <dipvalue name="1 Coin/5 Credits" value="96" />
      <dipvalue name="1 Coin/6 Credits" value="80" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="DSW" mask="512">
      <diplocation name="SW2" number="2" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="512" />
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="1024">
      <diplocation name="SW2" number="3" />
      <dipvalue name="Mode 1" value="1024" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="2048">
      <diplocation name="SW2" number="4" />
      <dipvalue name="Off" value="2048" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="4096">
      <diplocation name="SW2" number="5" />
      <dipvalue name="Off" value="4096" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop Mode" tag="DSW" mask="8192">
      <diplocation name="SW2" number="6" />
      <dipvalue name="Off" value="8192" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="16384">
      <diplocation name="SW2" number="7" />
      <dipvalue name="Off" value="16384" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="32768">
      <diplocation name="SW2" number="8" />
      <dipvalue name="Off" value="32768" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="kengo" sourcefile="m72.cpp" cloneof="ltswords" romof="ltswords">
    <description>Ken-Go (set 1)</description>
    <year>1991</year>
    <manufacturer>Irem</manufacturer>
    <rom name="ken_d-h0.rom" size="131072" crc="f4ddeea5" sha1="bcf016e40886e11c171f2f50de39ac0d8cabcdd1" region="maincpu" offset="1" />
    <rom name="ken_d-l0.rom" size="131072" crc="04dc0f81" sha1="b296529f0bc26d53b344449dfa5a08eca70f30d8" region="maincpu" offset="0" />
    <rom name="ken_d-sp.rom" merge="ken_d-sp.rom" size="65536" crc="233ca1cf" sha1="4ebb6162773bd586a10016ccd77998a9b880f474" region="soundcpu" offset="0" />
    <rom name="ken_m31.rom" merge="ken_m31.rom" size="131072" crc="e00b95a6" sha1="6efcd8d58f8ebe3a42c60a0aa790b42c0e132777" region="sprites" offset="0" />
    <rom name="ken_m21.rom" merge="ken_m21.rom" size="131072" crc="d7722f87" sha1="8606a53b8630934d2b5dfc986bd92ac4142f67e2" region="sprites" offset="20000" />
    <rom name="ken_m32.rom" merge="ken_m32.rom" size="131072" crc="30a844c4" sha1="72b2caba3ee7a229ca56f004516dea8d3f0a7ba6" region="sprites" offset="40000" />
    <rom name="ken_m22.rom" merge="ken_m22.rom" size="131072" crc="a00dac85" sha1="0c1ed852795046926f62843f6b256cbeecf9ebcf" region="sprites" offset="60000" />
    <rom name="ken_m51.rom" merge="ken_m51.rom" size="131072" crc="1646cf4f" sha1="d240cb2bad3e766128e8e40aa7b1bf4f3b9a5559" region="gfx2" offset="0" />
    <rom name="ken_m57.rom" merge="ken_m57.rom" size="131072" crc="a9f88d90" sha1="c8d4a96fe55fed4b7499550f3c74b03d10306757" region="gfx2" offset="20000" />
    <rom name="ken_m66.rom" merge="ken_m66.rom" size="131072" crc="e9d17645" sha1="fbe18d6691686a1c458d4a91169c9850698b5ca7" region="gfx2" offset="40000" />
    <rom name="ken_m64.rom" merge="ken_m64.rom" size="131072" crc="df46709b" sha1="e7c2cd752e765bf7b8ff24637305d61031ce0baa" region="gfx2" offset="60000" />
    <rom name="ken_m14.rom" merge="ken_m14.rom" size="131072" crc="6651e9b7" sha1="c42009f986c9a9f35732d5cd717d548536469b1c" region="samples" offset="0" />
    <device_ref name="v35" />
    <device_ref name="z80" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="m72_audio" />
    <device_ref name="ym2151" />
    <device_ref name="dac_8bit_r2r" />
    <chip type="cpu" tag="maincpu" name="NEC V35" clock="16000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <chip type="audio" tag="dac" name="8-Bit R-2R DAC" />
    <display tag="screen" type="raster" rotate="0" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Lives" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="2" value="2" />
      <dipvalue name="3" value="3" default="yes" />
      <dipvalue name="4" value="1" />
      <dipvalue name="5" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="12">
      <diplocation name="SW1" number="3" />
      <diplocation name="SW1" number="4" />
      <dipvalue name="Very Easy" value="0" />
      <dipvalue name="Easy" value="8" />
      <dipvalue name="Normal" value="12" default="yes" />
      <dipvalue name="Hard" value="4" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="16">
      <diplocation name="SW1" number="5" />
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSW" mask="32">
      <diplocation name="SW1" number="6" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="32" default="yes" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="64">
      <diplocation name="SW1" number="7" />
      <dipvalue name="Off" value="64" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="128">
      <diplocation name="SW1" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="512">
      <diplocation name="SW2" number="2" />
      <dipvalue name="Off" value="512" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="1024">
      <diplocation name="SW2" number="3" />
      <dipvalue name="Off" value="1024" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="2048">
      <diplocation name="SW2" number="4" />
      <dipvalue name="Mode 1" value="2048" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="12288">
      <condition tag="DSW" mask="2048" relation="eq" value="0" />
      <diplocation name="SW2" number="5" />
      <diplocation name="SW2" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="4096" />
      <dipvalue name="2 Coins/1 Credit" value="8192" />
      <dipvalue name="1 Coin/1 Credit" value="12288" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="49152">
      <condition tag="DSW" mask="2048" relation="eq" value="0" />
      <diplocation name="SW2" number="7" />
      <diplocation name="SW2" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="49152" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="32768" />
      <dipvalue name="1 Coin/5 Credits" value="16384" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="61440">
      <condition tag="DSW" mask="2048" relation="ne" value="0" />
      <diplocation name="SW2" number="5" />
      <diplocation name="SW2" number="6" />
      <diplocation name="SW2" number="7" />
      <diplocation name="SW2" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="40960" />
      <dipvalue name="5 Coins/1 Credit" value="45056" />
      <dipvalue name="4 Coins/1 Credit" value="49152" />
      <dipvalue name="3 Coins/1 Credit" value="53248" />
      <dipvalue name="2 Coins/1 Credit" value="57344" />
      <dipvalue name="2 Coins to Start/1 to Continue" value="4096" />
      <dipvalue name="3 Coins/2 Credits" value="12288" />
      <dipvalue name="4 Coins/3 Credits" value="8192" />
      <dipvalue name="1 Coin/1 Credit" value="61440" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="16384" />
      <dipvalue name="1 Coin/2 Credits" value="36864" />
      <dipvalue name="1 Coin/3 Credits" value="32768" />
      <dipvalue name="1 Coin/4 Credits" value="28672" />
      <dipvalue name="1 Coin/5 Credits" value="24576" />
      <dipvalue name="1 Coin/6 Credits" value="20480" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <driver status="good" emulation="good" cocktail="preliminary" savestate="supported" />
  </machine>
  <machine name="kengoa" sourcefile="m72.cpp" cloneof="ltswords" romof="ltswords">
    <description>Ken-Go (set 2)</description>
    <year>1991</year>
    <manufacturer>Irem</manufacturer>
    <rom name="ken-d-h0-.ic55" size="131072" crc="ed3da88c" sha1="536824eb3347eade2d3aad927e83eae51ee852b3" region="maincpu" offset="1" />
    <rom name="ken-d-l0-.ic61" size="131072" crc="92c57d8e" sha1="eb078a7b261e13cfb0a920b5115beee917b8d89c" region="maincpu" offset="0" />
    <rom name="ken_d-sp.rom" merge="ken_d-sp.rom" size="65536" crc="233ca1cf" sha1="4ebb6162773bd586a10016ccd77998a9b880f474" region="soundcpu" offset="0" />
    <rom name="ken_m31.rom" merge="ken_m31.rom" size="131072" crc="e00b95a6" sha1="6efcd8d58f8ebe3a42c60a0aa790b42c0e132777" region="sprites" offset="0" />
    <rom name="ken_m21.rom" merge="ken_m21.rom" size="131072" crc="d7722f87" sha1="8606a53b8630934d2b5dfc986bd92ac4142f67e2" region="sprites" offset="20000" />
    <rom name="ken_m32.rom" merge="ken_m32.rom" size="131072" crc="30a844c4" sha1="72b2caba3ee7a229ca56f004516dea8d3f0a7ba6" region="sprites" offset="40000" />
    <rom name="ken_m22.rom" merge="ken_m22.rom" size="131072" crc="a00dac85" sha1="0c1ed852795046926f62843f6b256cbeecf9ebcf" region="sprites" offset="60000" />
    <rom name="ken_m51.rom" merge="ken_m51.rom" size="131072" crc="1646cf4f" sha1="d240cb2bad3e766128e8e40aa7b1bf4f3b9a5559" region="gfx2" offset="0" />
    <rom name="ken_m57.rom" merge="ken_m57.rom" size="131072" crc="a9f88d90" sha1="c8d4a96fe55fed4b7499550f3c74b03d10306757" region="gfx2" offset="20000" />
    <rom name="ken_m66.rom" merge="ken_m66.rom" size="131072" crc="e9d17645" sha1="fbe18d6691686a1c458d4a91169c9850698b5ca7" region="gfx2" offset="40000" />
    <rom name="ken_m64.rom" merge="ken_m64.rom" size="131072" crc="df46709b" sha1="e7c2cd752e765bf7b8ff24637305d61031ce0baa" region="gfx2" offset="60000" />
    <rom name="ken_m14.rom" merge="ken_m14.rom" size="131072" crc="6651e9b7" sha1="c42009f986c9a9f35732d5cd717d548536469b1c" region="samples" offset="0" />
    <rom name="ken_b-4n-.ic23" size="256" crc="b460c438" sha1="00e20cf754b6fd5138ee4d2f6ec28dff9e292fe6" region="proms" offset="0" />
    <rom name="ken_b-4p-.ic24" size="256" crc="526f10ca" sha1="e0ecd4db0720a4a37489e4d725843a2fbf266ebf" region="proms" offset="100" />
    <device_ref name="v35" />
    <device_ref name="z80" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="m72_audio" />
    <device_ref name="ym2151" />
    <device_ref name="dac_8bit_r2r" />
    <chip type="cpu" tag="maincpu" name="NEC V35" clock="16000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <chip type="audio" tag="dac" name="8-Bit R-2R DAC" />
    <display tag="screen" type="raster" rotate="0" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Lives" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="2" value="2" />
      <dipvalue name="3" value="3" default="yes" />
      <dipvalue name="4" value="1" />
      <dipvalue name="5" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="12">
      <diplocation name="SW1" number="3" />
      <diplocation name="SW1" number="4" />
      <dipvalue name="Very Easy" value="0" />
      <dipvalue name="Easy" value="8" />
      <dipvalue name="Normal" value="12" default="yes" />
      <dipvalue name="Hard" value="4" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="16">
      <diplocation name="SW1" number="5" />
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSW" mask="32">
      <diplocation name="SW1" number="6" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="32" default="yes" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="64">
      <diplocation name="SW1" number="7" />
      <dipvalue name="Off" value="64" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="128">
      <diplocation name="SW1" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="512">
      <diplocation name="SW2" number="2" />
      <dipvalue name="Off" value="512" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="1024">
      <diplocation name="SW2" number="3" />
      <dipvalue name="Off" value="1024" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="2048">
      <diplocation name="SW2" number="4" />
      <dipvalue name="Mode 1" value="2048" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="12288">
      <condition tag="DSW" mask="2048" relation="eq" value="0" />
      <diplocation name="SW2" number="5" />
      <diplocation name="SW2" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="4096" />
      <dipvalue name="2 Coins/1 Credit" value="8192" />
      <dipvalue name="1 Coin/1 Credit" value="12288" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="49152">
      <condition tag="DSW" mask="2048" relation="eq" value="0" />
      <diplocation name="SW2" number="7" />
      <diplocation name="SW2" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="49152" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="32768" />
      <dipvalue name="1 Coin/5 Credits" value="16384" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="61440">
      <condition tag="DSW" mask="2048" relation="ne" value="0" />
      <diplocation name="SW2" number="5" />
      <diplocation name="SW2" number="6" />
      <diplocation name="SW2" number="7" />
      <diplocation name="SW2" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="40960" />
      <dipvalue name="5 Coins/1 Credit" value="45056" />
      <dipvalue name="4 Coins/1 Credit" value="49152" />
      <dipvalue name="3 Coins/1 Credit" value="53248" />
      <dipvalue name="2 Coins/1 Credit" value="57344" />
      <dipvalue name="2 Coins to Start/1 to Continue" value="4096" />
      <dipvalue name="3 Coins/2 Credits" value="12288" />
      <dipvalue name="4 Coins/3 Credits" value="8192" />
      <dipvalue name="1 Coin/1 Credit" value="61440" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="16384" />
      <dipvalue name="1 Coin/2 Credits" value="36864" />
      <dipvalue name="1 Coin/3 Credits" value="32768" />
      <dipvalue name="1 Coin/4 Credits" value="28672" />
      <dipvalue name="1 Coin/5 Credits" value="24576" />
      <dipvalue name="1 Coin/6 Credits" value="20480" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <driver status="good" emulation="good" cocktail="preliminary" savestate="supported" />
  </machine>
  <machine name="loht" sourcefile="m72.cpp">
    <description>Legend of Hero Tonma (World)</description>
    <year>1989</year>
    <manufacturer>Irem</manufacturer>
    <rom name="tom_c-h0-b.ic40" size="131072" crc="a63204b6" sha1="d217bc70650a1a1bbe0cf536ec3bb678f670718d" region="maincpu" offset="1" />
    <rom name="tom_c-l0-b.ic37" size="131072" crc="e788002f" sha1="35f509976b342fd47e645453381faa3d86645876" region="maincpu" offset="0" />
    <rom name="tom_c-h3-.ic43" size="131072" crc="714778b5" sha1="e2eaa35d6b5fa5df5163fe0d7b45fa66667f9947" region="maincpu" offset="40001" />
    <rom name="tom_c-l3-.ic34" size="131072" crc="2f049b03" sha1="21047cb10912b1fc23795673af3ea7de249328b7" region="maincpu" offset="40000" />
    <rom name="tom_c-pr-b.ic1" size="4096" crc="9c9545f1" sha1="ca800ce7467efb877d0fff4c47d72478a991e2a9" region="mcu" offset="0" />
    <rom name="tom_m53.ic53" size="131072" crc="0b83265f" sha1="b31918d6442b79c9fe4f20410189788b050a994e" region="sprites" offset="0" />
    <rom name="tom_m51.ic51" size="131072" crc="8ec5f6f3" sha1="210f2753f5eeb06396758d21ab1778d459add247" region="sprites" offset="20000" />
    <rom name="tom_m49.ic49" size="131072" crc="a41d3bfd" sha1="536fb7c0321dbbc1a8b73e9647fba9c53a253fcc" region="sprites" offset="40000" />
    <rom name="tom_m47.ic47" size="131072" crc="9d81a25b" sha1="a354537c2fbba85f06485aa8487d7583a7133357" region="sprites" offset="60000" />
    <rom name="tom_m21.ic21" size="65536" crc="3ca3e771" sha1="be052e01c5429ee89057c9d408794f2c7744047c" region="gfx2" offset="0" />
    <rom name="tom_m22.ic22" size="65536" crc="7a05ee2f" sha1="7d1ca5db9a5a85610129e3bc6c640ade036fe7f9" region="gfx2" offset="10000" />
    <rom name="tom_m20.ic20" size="65536" crc="79aa2335" sha1="6b70c79d800a7b755aa7c9a368c4ea74029aaa1e" region="gfx2" offset="20000" />
    <rom name="tom_m23.ic23" size="65536" crc="789e8b24" sha1="e957cd25c3c155ca295ab1aea03d610f91562cfb" region="gfx2" offset="30000" />
    <rom name="tom_m26.ic26" size="65536" crc="44626bf6" sha1="571ef74d42d30a272ff0fb33f830652b4a4bad29" region="gfx3" offset="0" />
    <rom name="tom_m27.ic27" size="65536" crc="464952cf" sha1="6b99360b6ba1ed5a72c257f51291f9f7a1ddf363" region="gfx3" offset="10000" />
    <rom name="tom_m25.ic25" size="65536" crc="3db9b2c7" sha1="02a318ffc459c494b7f40827eff5f89b41ac0426" region="gfx3" offset="20000" />
    <rom name="tom_m24.ic24" size="65536" crc="f01fe899" sha1="c5ab967b7af55a757638bcdc9975f4b15064022d" region="gfx3" offset="30000" />
    <rom name="tom_m44.ic44" size="65536" crc="3ed51d1f" sha1="84f3aa17d640df91387e5f1f5b5971cf8dcd4e17" region="samples" offset="0" />
    <device_ref name="v30" />
    <device_ref name="z80" />
    <device_ref name="pic8259" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="m72_audio" />
    <device_ref name="ym2151" />
    <device_ref name="dac_8bit_r2r" />
    <device_ref name="mb8421_mb8431_16" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="i8751" />
    <chip type="cpu" tag="maincpu" name="NEC V30" clock="8000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="cpu" tag="mcu" name="Intel 8751" clock="8000000" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <chip type="audio" tag="dac" name="8-Bit R-2R DAC" />
    <display tag="screen" type="raster" rotate="0" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Lives" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="2" value="0" />
      <dipvalue name="3" value="3" default="yes" />
      <dipvalue name="4" value="2" />
      <dipvalue name="5" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="4">
      <diplocation name="SW1" number="3" />
      <dipvalue name="Off" value="4" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="8">
      <diplocation name="SW1" number="4" />
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="48">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="32" />
      <dipvalue name="1 Coin/1 Credit" value="48" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="192">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="192" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/5 Credits" value="64" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="240">
      <condition tag="DSW" mask="1024" relation="ne" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="160" />
      <dipvalue name="5 Coins/1 Credit" value="176" />
      <dipvalue name="4 Coins/1 Credit" value="192" />
      <dipvalue name="3 Coins/1 Credit" value="208" />
      <dipvalue name="8 Coins/3 Credits" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="224" />
      <dipvalue name="5 Coins/3 Credits" value="32" />
      <dipvalue name="3 Coins/2 Credits" value="48" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="64" />
      <dipvalue name="1 Coin/2 Credits" value="144" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/4 Credits" value="112" />
      <dipvalue name="1 Coin/5 Credits" value="96" />
      <dipvalue name="1 Coin/6 Credits" value="80" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="DSW" mask="512">
      <diplocation name="SW2" number="2" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="512" />
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="1024">
      <diplocation name="SW2" number="3" />
      <dipvalue name="Mode 1" value="1024" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="6144">
      <diplocation name="SW2" number="4" />
      <diplocation name="SW2" number="5" />
      <dipvalue name="Easy" value="0" />
      <dipvalue name="Normal" value="6144" default="yes" />
      <dipvalue name="Hard" value="4096" />
      <dipvalue name="Hardest" value="2048" />
    </dipswitch>
    <dipswitch name="Stop Mode" tag="DSW" mask="8192">
      <diplocation name="SW2" number="6" />
      <dipvalue name="Off" value="8192" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Invulnerability" tag="DSW" mask="16384">
      <diplocation name="SW2" number="7" />
      <dipvalue name="Off" value="16384" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="32768">
      <diplocation name="SW2" number="8" />
      <dipvalue name="Off" value="32768" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <driver status="good" emulation="good" cocktail="preliminary" savestate="supported" />
  </machine>
  <machine name="loht_ms" sourcefile="m72.cpp" cloneof="loht" romof="loht">
    <description>Legend of Hero Tonma (Gaelco bootleg, Modular System)</description>
    <year>1989</year>
    <manufacturer>bootleg (Gaelco / Ervisa)</manufacturer>
    <rom name="6_lg_604.ic17" size="65536" crc="7e84b6ce" sha1="a9a54f045917a191b6d6bbe061fc7a3344efb3bb" region="maincpu" offset="1" />
    <rom name="6_lg_605.ic20" size="65536" crc="abdcd211" sha1="6ad79c4ef14d908032e4dbded7696a66fe5d31da" region="maincpu" offset="20001" />
    <rom name="6_lg_601.ic8" size="65536" crc="7e080cb8" sha1="598bcd8ecebe1922735b61cc1305e8839d9d054e" region="maincpu" offset="0" />
    <rom name="6_lg_602.ic11" size="65536" crc="150d1178" sha1="71df3c9a49eb74cf40790e9b4cf7c6260fbd07d6" region="maincpu" offset="20000" />
    <rom name="6_lg_606.ic26" merge="tom_c-h3-.ic43" size="131072" crc="714778b5" sha1="e2eaa35d6b5fa5df5163fe0d7b45fa66667f9947" region="maincpu" offset="40001" />
    <rom name="6_lg_603.ic25" merge="tom_c-l3-.ic34" size="131072" crc="2f049b03" sha1="21047cb10912b1fc23795673af3ea7de249328b7" region="maincpu" offset="40000" />
    <rom name="1_lg_1.ic12" size="65536" crc="7aa26b54" sha1="01df7ea6443bbc775d5592edc32816853c857189" region="soundcpu" offset="0" />
    <rom name="5_lg_501.ic5" size="65536" crc="df5ac5ee" sha1="5b45417ada402047d97dfb6cee6545686ad26e37" region="sprites" offset="0" />
    <rom name="5_lg_503.ic14" size="65536" crc="45220b01" sha1="83715cf155f91c82067d69f14b3b01ed77777b7d" region="sprites" offset="20000" />
    <rom name="5_lg_505.ic20" size="65536" crc="25b85cfc" sha1="c7a9962165379193dc6553ed1f977795a79e0f78" region="sprites" offset="40000" />
    <rom name="5_lg_507.ic26" size="65536" crc="763fa4ec" sha1="2d72b1b41f24ae299fde23869942c0b6bbb82363" region="sprites" offset="60000" />
    <rom name="5_lg_502.ic6" size="65536" crc="d7ecf849" sha1="ab86a88eae21e054d4e8a740a60c7c6c198232d4" region="sprites" offset="10000" />
    <rom name="5_lg_504.ic15" size="65536" crc="35d1a808" sha1="9378ff000104ecfb842b3b884197be82c43a01b4" region="sprites" offset="30000" />
    <rom name="5_lg_506.ic21" size="65536" crc="464d8579" sha1="b5981f4865ee5439f0e330091927e6d97d29933f" region="sprites" offset="50000" />
    <rom name="5_lg_508.ic27" size="65536" crc="a73568c7" sha1="8fe1867256708cc1ed76d1bed5566b1852b47c40" region="sprites" offset="70000" />
    <rom name="8_lg_801.ic15" size="65536" crc="359f17d4" sha1="2875ba48395e7faa1a58404475be936dcca45ed1" region="gfx2" offset="0" />
    <rom name="8_lg_803.ic22" size="65536" crc="73391e8a" sha1="53ca89b8a10895f817ecdb9fa5eef462edb94ae6" region="gfx2" offset="10000" />
    <rom name="8_lg_805.ic30" size="65536" crc="7096d390" sha1="f4a16bf8aef7a1a65619ab022cbdb67d2f191888" region="gfx2" offset="20000" />
    <rom name="8_lg_807.ic37" size="65536" crc="1c113901" sha1="3d4ce2ac6cdad0e1b0a21ffb062f9c92700adcf4" region="gfx2" offset="30000" />
    <rom name="8_lg_802.ic14" size="65536" crc="4d5e9b53" sha1="3e3977bab7a66ed0171afcd555d181960e338749" region="gfx3" offset="0" />
    <rom name="8_lg_804.ic21" size="65536" crc="4f75a26a" sha1="79c09a1ad3a6f9cfbd07cb527bbd89d2478ce582" region="gfx3" offset="10000" />
    <rom name="8_lg_806.ic29" size="65536" crc="34854262" sha1="37436c12579fb41d22a1596b495f065959c14a26" region="gfx3" offset="20000" />
    <rom name="8_lg_808.ic36" size="65536" crc="f923183c" sha1="a6b578191864aefa81e0cad3ba12a2ca491c91cf" region="gfx3" offset="30000" />
    <rom name="51_502_82s129n.ic10" size="256" crc="15085e44" sha1="646e7100fcb112594023cf02be036bd3d42cc13c" region="prom" offset="0" />
    <rom name="21_204_82s129an.ic4" size="256" crc="74470450" sha1="40b0e0991090733f8190ad7efcb500bd109c2a7e" region="prom" offset="100" />
    <rom name="21_209_82s129an.ic12" size="256" crc="7922a7ab" sha1="e7ec2b1fc61bd7d2cf921bfc50d975f91b938e8a" region="prom" offset="200" />
    <rom name="1_105_82s123n.ic20" size="32" crc="14d72781" sha1="372dc021d8aaf4aa6fd46e69a3d8f1c68113426f" region="prom" offset="300" />
    <rom name="51_p0503_pal16r6.ic46" size="260" crc="07eb86d2" sha1="482eb325df5bc60353bac85412cf45429cd03c6d" region="plds" offset="0" />
    <rom name="5_5136_gal16v8-25lp.ic9" size="1" status="nodump" region="plds" offset="0" />
    <rom name="5_5236_gal16v8-25lp.ic8" size="1" status="nodump" region="plds" offset="0" />
    <rom name="6_686_gal16v8.ic13" size="1" status="nodump" region="plds" offset="0" />
    <rom name="6_8638_gal16v8.ic7" size="1" status="nodump" region="plds" offset="0" />
    <rom name="6_subcpu_8600_gal16v8.ic3" size="1" status="nodump" region="plds" offset="0" />
    <rom name="7_7136_gal20v8-25lp.ic7" size="1" status="nodump" region="plds" offset="0" />
    <rom name="7_7236_gal20v8-25lp.ic54" size="1" status="nodump" region="plds" offset="0" />
    <rom name="7_7336_gal16v8.ic55" size="1" status="nodump" region="plds" offset="0" />
    <rom name="7_7436_gal16v8.ic9" size="1" status="nodump" region="plds" offset="0" />
    <rom name="7_7536_gal16v8.ic59" size="1" status="nodump" region="plds" offset="0" />
    <rom name="7_7636_gal20v8-25lp.ic44" size="1" status="nodump" region="plds" offset="0" />
    <device_ref name="v30" />
    <device_ref name="z80" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="m72_audio" />
    <device_ref name="ym2151" />
    <device_ref name="dac_8bit_r2r" />
    <chip type="cpu" tag="maincpu" name="NEC V30" clock="8000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <chip type="audio" tag="dac" name="8-Bit R-2R DAC" />
    <display tag="screen" type="raster" rotate="0" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Lives" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="2" value="0" />
      <dipvalue name="3" value="3" default="yes" />
      <dipvalue name="4" value="2" />
      <dipvalue name="5" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="4">
      <diplocation name="SW1" number="3" />
      <dipvalue name="Off" value="4" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="8">
      <diplocation name="SW1" number="4" />
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="48">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="32" />
      <dipvalue name="1 Coin/1 Credit" value="48" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="192">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="192" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/5 Credits" value="64" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="240">
      <condition tag="DSW" mask="1024" relation="ne" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="160" />
      <dipvalue name="5 Coins/1 Credit" value="176" />
      <dipvalue name="4 Coins/1 Credit" value="192" />
      <dipvalue name="3 Coins/1 Credit" value="208" />
      <dipvalue name="8 Coins/3 Credits" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="224" />
      <dipvalue name="5 Coins/3 Credits" value="32" />
      <dipvalue name="3 Coins/2 Credits" value="48" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="64" />
      <dipvalue name="1 Coin/2 Credits" value="144" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/4 Credits" value="112" />
      <dipvalue name="1 Coin/5 Credits" value="96" />
      <dipvalue name="1 Coin/6 Credits" value="80" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="DSW" mask="512">
      <diplocation name="SW2" number="2" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="512" />
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="1024">
      <diplocation name="SW2" number="3" />
      <dipvalue name="Mode 1" value="1024" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="6144">
      <diplocation name="SW2" number="4" />
      <diplocation name="SW2" number="5" />
      <dipvalue name="Easy" value="0" />
      <dipvalue name="Normal" value="6144" default="yes" />
      <dipvalue name="Hard" value="4096" />
      <dipvalue name="Hardest" value="2048" />
    </dipswitch>
    <dipswitch name="Stop Mode" tag="DSW" mask="8192">
      <diplocation name="SW2" number="6" />
      <dipvalue name="Off" value="8192" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Invulnerability" tag="DSW" mask="16384">
      <diplocation name="SW2" number="7" />
      <dipvalue name="Off" value="16384" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="32768">
      <diplocation name="SW2" number="8" />
      <dipvalue name="Off" value="32768" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <driver status="preliminary" emulation="preliminary" cocktail="preliminary" savestate="supported" />
  </machine>
  <machine name="lohtb" sourcefile="m72.cpp" cloneof="loht" romof="loht">
    <description>Legend of Hero Tonma (unprotected bootleg)</description>
    <year>1989</year>
    <manufacturer>bootleg</manufacturer>
    <rom name="lohtb03.b" size="131072" crc="8b845a70" sha1="902c623310cd77b25592496745f9c6121149b516" region="maincpu" offset="1" />
    <rom name="lohtb05.d" size="131072" crc="e90f7623" sha1="e6e2f66a39286b2d7c03fc267beb2024913fb4ca" region="maincpu" offset="0" />
    <rom name="lohtb02.a" merge="tom_c-h3-.ic43" size="131072" crc="714778b5" sha1="e2eaa35d6b5fa5df5163fe0d7b45fa66667f9947" region="maincpu" offset="40001" />
    <rom name="lohtb04.c" merge="tom_c-l3-.ic34" size="131072" crc="2f049b03" sha1="21047cb10912b1fc23795673af3ea7de249328b7" region="maincpu" offset="40000" />
    <rom name="lohtb01.02" size="65536" crc="e4bd8f03" sha1="69fe41a978db92daa912cb345c2c7bafd2a6eb93" region="soundcpu" offset="0" />
    <rom name="lohtb14.11" size="65536" crc="df5ac5ee" sha1="5b45417ada402047d97dfb6cee6545686ad26e37" region="sprites" offset="0" />
    <rom name="lohtb15.12" size="65536" crc="45220b01" sha1="83715cf155f91c82067d69f14b3b01ed77777b7d" region="sprites" offset="20000" />
    <rom name="lohtb16.13" size="65536" crc="25b85cfc" sha1="c7a9962165379193dc6553ed1f977795a79e0f78" region="sprites" offset="40000" />
    <rom name="lohtb17.14" size="65536" crc="763fa4ec" sha1="2d72b1b41f24ae299fde23869942c0b6bbb82363" region="sprites" offset="60000" />
    <rom name="lohtb18.15" size="65536" crc="d7ecf849" sha1="ab86a88eae21e054d4e8a740a60c7c6c198232d4" region="sprites" offset="10000" />
    <rom name="lohtb19.16" size="65536" crc="35d1a808" sha1="9378ff000104ecfb842b3b884197be82c43a01b4" region="sprites" offset="30000" />
    <rom name="lohtb20.17" size="65536" crc="464d8579" sha1="b5981f4865ee5439f0e330091927e6d97d29933f" region="sprites" offset="50000" />
    <rom name="lohtb21.18" size="65536" crc="a73568c7" sha1="8fe1867256708cc1ed76d1bed5566b1852b47c40" region="sprites" offset="70000" />
    <rom name="lohtb13.10" size="65536" crc="359f17d4" sha1="2875ba48395e7faa1a58404475be936dcca45ed1" region="gfx2" offset="0" />
    <rom name="lohtb11.08" size="65536" crc="73391e8a" sha1="53ca89b8a10895f817ecdb9fa5eef462edb94ae6" region="gfx2" offset="10000" />
    <rom name="lohtb09.06" size="65536" crc="7096d390" sha1="f4a16bf8aef7a1a65619ab022cbdb67d2f191888" region="gfx2" offset="20000" />
    <rom name="lohtb07.04" size="65536" crc="71a27b81" sha1="d8fe72d15bbcd5b170d1123d8f4c58874cefdca3" region="gfx2" offset="30000" />
    <rom name="lohtb12.09" size="65536" crc="4d5e9b53" sha1="3e3977bab7a66ed0171afcd555d181960e338749" region="gfx3" offset="0" />
    <rom name="lohtb10.07" size="65536" crc="4f75a26a" sha1="79c09a1ad3a6f9cfbd07cb527bbd89d2478ce582" region="gfx3" offset="10000" />
    <rom name="lohtb08.05" size="65536" crc="34854262" sha1="37436c12579fb41d22a1596b495f065959c14a26" region="gfx3" offset="20000" />
    <rom name="lohtb06.03" size="65536" crc="f923183c" sha1="a6b578191864aefa81e0cad3ba12a2ca491c91cf" region="gfx3" offset="30000" />
    <rom name="gal16v8-25qp.ic3" size="279" crc="6acdfafb" sha1="2ffd6f5a846e49fd2a8c7c7dfc9cf015406a44df" region="plds" offset="0" />
    <device_ref name="v30" />
    <device_ref name="z80" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="m72_audio" />
    <device_ref name="ym2151" />
    <device_ref name="dac_8bit_r2r" />
    <chip type="cpu" tag="maincpu" name="NEC V30" clock="8000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <chip type="audio" tag="dac" name="8-Bit R-2R DAC" />
    <display tag="screen" type="raster" rotate="0" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Lives" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="2" value="0" />
      <dipvalue name="3" value="3" default="yes" />
      <dipvalue name="4" value="2" />
      <dipvalue name="5" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="4">
      <diplocation name="SW1" number="3" />
      <dipvalue name="Off" value="4" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="8">
      <diplocation name="SW1" number="4" />
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="48">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="32" />
      <dipvalue name="1 Coin/1 Credit" value="48" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="192">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="192" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/5 Credits" value="64" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="240">
      <condition tag="DSW" mask="1024" relation="ne" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="160" />
      <dipvalue name="5 Coins/1 Credit" value="176" />
      <dipvalue name="4 Coins/1 Credit" value="192" />
      <dipvalue name="3 Coins/1 Credit" value="208" />
      <dipvalue name="8 Coins/3 Credits" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="224" />
      <dipvalue name="5 Coins/3 Credits" value="32" />
      <dipvalue name="3 Coins/2 Credits" value="48" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="64" />
      <dipvalue name="1 Coin/2 Credits" value="144" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/4 Credits" value="112" />
      <dipvalue name="1 Coin/5 Credits" value="96" />
      <dipvalue name="1 Coin/6 Credits" value="80" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="DSW" mask="512">
      <diplocation name="SW2" number="2" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="512" />
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="1024">
      <diplocation name="SW2" number="3" />
      <dipvalue name="Mode 1" value="1024" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="6144">
      <diplocation name="SW2" number="4" />
      <diplocation name="SW2" number="5" />
      <dipvalue name="Easy" value="0" />
      <dipvalue name="Normal" value="6144" default="yes" />
      <dipvalue name="Hard" value="4096" />
      <dipvalue name="Hardest" value="2048" />
    </dipswitch>
    <dipswitch name="Stop Mode" tag="DSW" mask="8192">
      <diplocation name="SW2" number="6" />
      <dipvalue name="Off" value="8192" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Invulnerability" tag="DSW" mask="16384">
      <diplocation name="SW2" number="7" />
      <dipvalue name="Off" value="16384" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="32768">
      <diplocation name="SW2" number="8" />
      <dipvalue name="Off" value="32768" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <driver status="preliminary" emulation="preliminary" cocktail="preliminary" savestate="supported" />
  </machine>
  <machine name="lohtb2" sourcefile="m72.cpp" cloneof="loht" romof="loht">
    <description>Legend of Hero Tonma (Japan, bootleg with i8751)</description>
    <year>1989</year>
    <manufacturer>bootleg</manufacturer>
    <rom name="loht-a2.bin" size="65536" crc="ccc90e54" sha1="860da001d9b0782adc25cfc3b453383225253d9e" region="maincpu" offset="1" />
    <rom name="loht-a3.bin" size="65536" crc="ff8a98de" sha1="ccb8275241bea81abc01dc36e62557712c1b5a8c" region="maincpu" offset="20001" />
    <rom name="loht-a10.bin" size="65536" crc="3aa06730" sha1="483b135f8ee0fc54b1953c7c28e909a88aa2fa2e" region="maincpu" offset="0" />
    <rom name="loht-a11.bin" size="65536" crc="eab1d7bc" sha1="ec50fe89f05ae46e91b9f2f3d4e4383aa764e71d" region="maincpu" offset="20000" />
    <rom name="loht-a5.bin" size="65536" crc="79e007ec" sha1="b2e4cc4a47f5f127ba9a1a00eaaf067464314ea0" region="maincpu" offset="40001" />
    <rom name="loht-a4.bin" size="65536" crc="254ea4d5" sha1="07277bbe2ea6678f0de1f28e40be794880b3faff" region="maincpu" offset="60001" />
    <rom name="loht-a13.bin" size="65536" crc="b951346e" sha1="82fa3c4a09a86b74b98c31aaea5c0629ddff83a0" region="maincpu" offset="40000" />
    <rom name="loht-a12.bin" size="65536" crc="cfb0390d" sha1="4acc61a51a7ae681bd8d835e2644b44c4d6d7bcb" region="maincpu" offset="60000" />
    <rom name="loht-a26.bin" size="8192" crc="ac901e17" sha1="70a73288d594c78ad2aca78ce55a699cb040bede" region="mcu" offset="0" />
    <rom name="loht-a16.bin" size="65536" crc="df5ac5ee" sha1="5b45417ada402047d97dfb6cee6545686ad26e37" region="sprites" offset="0" />
    <rom name="loht-a17.bin" size="65536" crc="d7ecf849" sha1="ab86a88eae21e054d4e8a740a60c7c6c198232d4" region="sprites" offset="10000" />
    <rom name="loht-a8.bin" size="65536" crc="45220b01" sha1="83715cf155f91c82067d69f14b3b01ed77777b7d" region="sprites" offset="20000" />
    <rom name="loht-a9.bin" size="65536" crc="4af9bb3c" sha1="04f66caae5b3ae985451002293ad8f609a8d9377" region="sprites" offset="30000" />
    <rom name="loht-a14.bin" size="65536" crc="25b85cfc" sha1="c7a9962165379193dc6553ed1f977795a79e0f78" region="sprites" offset="40000" />
    <rom name="loht-a15.bin" size="65536" crc="464d8579" sha1="b5981f4865ee5439f0e330091927e6d97d29933f" region="sprites" offset="50000" />
    <rom name="loht-a6.bin" size="65536" crc="763fa4ec" sha1="2d72b1b41f24ae299fde23869942c0b6bbb82363" region="sprites" offset="60000" />
    <rom name="loht-a7.bin" size="65536" crc="a73568c7" sha1="8fe1867256708cc1ed76d1bed5566b1852b47c40" region="sprites" offset="70000" />
    <rom name="loht-a19.bin" merge="tom_m21.ic21" size="65536" crc="3ca3e771" sha1="be052e01c5429ee89057c9d408794f2c7744047c" region="gfx2" offset="0" />
    <rom name="loht-a20.bin" merge="tom_m22.ic22" size="65536" crc="7a05ee2f" sha1="7d1ca5db9a5a85610129e3bc6c640ade036fe7f9" region="gfx2" offset="10000" />
    <rom name="loht-a18.bin" merge="tom_m20.ic20" size="65536" crc="79aa2335" sha1="6b70c79d800a7b755aa7c9a368c4ea74029aaa1e" region="gfx2" offset="20000" />
    <rom name="loht-a21.bin" merge="tom_m23.ic23" size="65536" crc="789e8b24" sha1="e957cd25c3c155ca295ab1aea03d610f91562cfb" region="gfx2" offset="30000" />
    <rom name="loht-a24.bin" merge="tom_m26.ic26" size="65536" crc="44626bf6" sha1="571ef74d42d30a272ff0fb33f830652b4a4bad29" region="gfx3" offset="0" />
    <rom name="loht-a25.bin" merge="tom_m27.ic27" size="65536" crc="464952cf" sha1="6b99360b6ba1ed5a72c257f51291f9f7a1ddf363" region="gfx3" offset="10000" />
    <rom name="loht-a23.bin" merge="tom_m25.ic25" size="65536" crc="3db9b2c7" sha1="02a318ffc459c494b7f40827eff5f89b41ac0426" region="gfx3" offset="20000" />
    <rom name="loht-a22.bin" merge="tom_m24.ic24" size="65536" crc="f01fe899" sha1="c5ab967b7af55a757638bcdc9975f4b15064022d" region="gfx3" offset="30000" />
    <rom name="loht-a1.bin" merge="tom_m44.ic44" size="65536" crc="3ed51d1f" sha1="84f3aa17d640df91387e5f1f5b5971cf8dcd4e17" region="samples" offset="0" />
    <device_ref name="v30" />
    <device_ref name="z80" />
    <device_ref name="pic8259" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="m72_audio" />
    <device_ref name="ym2151" />
    <device_ref name="dac_8bit_r2r" />
    <device_ref name="mb8421_mb8431_16" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="i8751" />
    <chip type="cpu" tag="maincpu" name="NEC V30" clock="8000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="cpu" tag="mcu" name="Intel 8751" clock="8000000" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <chip type="audio" tag="dac" name="8-Bit R-2R DAC" />
    <display tag="screen" type="raster" rotate="0" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Lives" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="2" value="0" />
      <dipvalue name="3" value="3" default="yes" />
      <dipvalue name="4" value="2" />
      <dipvalue name="5" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="4">
      <diplocation name="SW1" number="3" />
      <dipvalue name="Off" value="4" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="8">
      <diplocation name="SW1" number="4" />
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="48">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="32" />
      <dipvalue name="1 Coin/1 Credit" value="48" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="192">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="192" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/5 Credits" value="64" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="240">
      <condition tag="DSW" mask="1024" relation="ne" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="160" />
      <dipvalue name="5 Coins/1 Credit" value="176" />
      <dipvalue name="4 Coins/1 Credit" value="192" />
      <dipvalue name="3 Coins/1 Credit" value="208" />
      <dipvalue name="8 Coins/3 Credits" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="224" />
      <dipvalue name="5 Coins/3 Credits" value="32" />
      <dipvalue name="3 Coins/2 Credits" value="48" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="64" />
      <dipvalue name="1 Coin/2 Credits" value="144" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/4 Credits" value="112" />
      <dipvalue name="1 Coin/5 Credits" value="96" />
      <dipvalue name="1 Coin/6 Credits" value="80" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="DSW" mask="512">
      <diplocation name="SW2" number="2" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="512" />
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="1024">
      <diplocation name="SW2" number="3" />
      <dipvalue name="Mode 1" value="1024" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="6144">
      <diplocation name="SW2" number="4" />
      <diplocation name="SW2" number="5" />
      <dipvalue name="Easy" value="0" />
      <dipvalue name="Normal" value="6144" default="yes" />
      <dipvalue name="Hard" value="4096" />
      <dipvalue name="Hardest" value="2048" />
    </dipswitch>
    <dipswitch name="Stop Mode" tag="DSW" mask="8192">
      <diplocation name="SW2" number="6" />
      <dipvalue name="Off" value="8192" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Invulnerability" tag="DSW" mask="16384">
      <diplocation name="SW2" number="7" />
      <dipvalue name="Off" value="16384" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="32768">
      <diplocation name="SW2" number="8" />
      <dipvalue name="Off" value="32768" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <driver status="good" emulation="good" cocktail="preliminary" savestate="supported" />
  </machine>
  <machine name="lohtb3" sourcefile="m72.cpp" cloneof="loht" romof="loht">
    <description>Legend of Hero Tonma (World, bootleg with i8751)</description>
    <year>1997</year>
    <manufacturer>bootleg</manufacturer>
    <rom name="9.9" size="131072" crc="f1e4ebb7" sha1="976ec822f57f36bc097deb5d3d86e7c2c1b247ed" region="maincpu" offset="1" />
    <rom name="1.1" size="131072" crc="b9384e93" sha1="5b882ecd68fdf7a6307af0e1aca2ab1782911227" region="maincpu" offset="0" />
    <rom name="i-10.10" size="65536" crc="79e007ec" sha1="b2e4cc4a47f5f127ba9a1a00eaaf067464314ea0" region="maincpu" offset="40001" />
    <rom name="i-11.11" size="65536" crc="254ea4d5" sha1="07277bbe2ea6678f0de1f28e40be794880b3faff" region="maincpu" offset="60001" />
    <rom name="i-2.2" size="65536" crc="b951346e" sha1="82fa3c4a09a86b74b98c31aaea5c0629ddff83a0" region="maincpu" offset="40000" />
    <rom name="i-3.3" size="65536" crc="cfb0390d" sha1="4acc61a51a7ae681bd8d835e2644b44c4d6d7bcb" region="maincpu" offset="60000" />
    <rom name="c8751h.bin" merge="tom_c-pr-b.ic1" size="4096" crc="9c9545f1" sha1="ca800ce7467efb877d0fff4c47d72478a991e2a9" region="mcu" offset="0" />
    <rom name="i-8.8" size="65536" crc="df5ac5ee" sha1="5b45417ada402047d97dfb6cee6545686ad26e37" region="sprites" offset="0" />
    <rom name="i-7.7" size="65536" crc="d7ecf849" sha1="ab86a88eae21e054d4e8a740a60c7c6c198232d4" region="sprites" offset="10000" />
    <rom name="i-15.15" size="65536" crc="45220b01" sha1="83715cf155f91c82067d69f14b3b01ed77777b7d" region="sprites" offset="20000" />
    <rom name="i-14.14" size="65536" crc="35d1a808" sha1="9378ff000104ecfb842b3b884197be82c43a01b4" region="sprites" offset="30000" />
    <rom name="i-6.6" size="65536" crc="25b85cfc" sha1="c7a9962165379193dc6553ed1f977795a79e0f78" region="sprites" offset="40000" />
    <rom name="i-5.5" size="65536" crc="464d8579" sha1="b5981f4865ee5439f0e330091927e6d97d29933f" region="sprites" offset="50000" />
    <rom name="i-13.13" size="65536" crc="763fa4ec" sha1="2d72b1b41f24ae299fde23869942c0b6bbb82363" region="sprites" offset="60000" />
    <rom name="i-12.12" size="65536" crc="a73568c7" sha1="8fe1867256708cc1ed76d1bed5566b1852b47c40" region="sprites" offset="70000" />
    <rom name="i-20.20" merge="tom_m21.ic21" size="65536" crc="3ca3e771" sha1="be052e01c5429ee89057c9d408794f2c7744047c" region="gfx2" offset="0" />
    <rom name="r-21.21" merge="tom_m22.ic22" size="65536" crc="7a05ee2f" sha1="7d1ca5db9a5a85610129e3bc6c640ade036fe7f9" region="gfx2" offset="10000" />
    <rom name="i-19.19" merge="tom_m20.ic20" size="65536" crc="79aa2335" sha1="6b70c79d800a7b755aa7c9a368c4ea74029aaa1e" region="gfx2" offset="20000" />
    <rom name="i-22.22" merge="tom_m23.ic23" size="65536" crc="789e8b24" sha1="e957cd25c3c155ca295ab1aea03d610f91562cfb" region="gfx2" offset="30000" />
    <rom name="r-25.25" merge="tom_m26.ic26" size="65536" crc="44626bf6" sha1="571ef74d42d30a272ff0fb33f830652b4a4bad29" region="gfx3" offset="0" />
    <rom name="r-26.26" merge="tom_m27.ic27" size="65536" crc="464952cf" sha1="6b99360b6ba1ed5a72c257f51291f9f7a1ddf363" region="gfx3" offset="10000" />
    <rom name="r-24.24" merge="tom_m25.ic25" size="65536" crc="3db9b2c7" sha1="02a318ffc459c494b7f40827eff5f89b41ac0426" region="gfx3" offset="20000" />
    <rom name="i-23.23" size="65536" crc="2e2a085d" sha1="ed2eed6c30d44b176bd99eb386482b2a19e3b9cb" region="gfx3" offset="30000" />
    <rom name="i-4.4" merge="tom_m44.ic44" size="65536" crc="3ed51d1f" sha1="84f3aa17d640df91387e5f1f5b5971cf8dcd4e17" region="samples" offset="0" />
    <device_ref name="v30" />
    <device_ref name="z80" />
    <device_ref name="pic8259" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="m72_audio" />
    <device_ref name="ym2151" />
    <device_ref name="dac_8bit_r2r" />
    <device_ref name="mb8421_mb8431_16" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="i8751" />
    <chip type="cpu" tag="maincpu" name="NEC V30" clock="8000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="cpu" tag="mcu" name="Intel 8751" clock="8000000" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <chip type="audio" tag="dac" name="8-Bit R-2R DAC" />
    <display tag="screen" type="raster" rotate="0" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Lives" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="2" value="0" />
      <dipvalue name="3" value="3" default="yes" />
      <dipvalue name="4" value="2" />
      <dipvalue name="5" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="4">
      <diplocation name="SW1" number="3" />
      <dipvalue name="Off" value="4" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="8">
      <diplocation name="SW1" number="4" />
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="48">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="32" />
      <dipvalue name="1 Coin/1 Credit" value="48" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="192">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="192" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/5 Credits" value="64" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="240">
      <condition tag="DSW" mask="1024" relation="ne" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="160" />
      <dipvalue name="5 Coins/1 Credit" value="176" />
      <dipvalue name="4 Coins/1 Credit" value="192" />
      <dipvalue name="3 Coins/1 Credit" value="208" />
      <dipvalue name="8 Coins/3 Credits" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="224" />
      <dipvalue name="5 Coins/3 Credits" value="32" />
      <dipvalue name="3 Coins/2 Credits" value="48" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="64" />
      <dipvalue name="1 Coin/2 Credits" value="144" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/4 Credits" value="112" />
      <dipvalue name="1 Coin/5 Credits" value="96" />
      <dipvalue name="1 Coin/6 Credits" value="80" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="DSW" mask="512">
      <diplocation name="SW2" number="2" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="512" />
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="1024">
      <diplocation name="SW2" number="3" />
      <dipvalue name="Mode 1" value="1024" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="6144">
      <diplocation name="SW2" number="4" />
      <diplocation name="SW2" number="5" />
      <dipvalue name="Easy" value="0" />
      <dipvalue name="Normal" value="6144" default="yes" />
      <dipvalue name="Hard" value="4096" />
      <dipvalue name="Hardest" value="2048" />
    </dipswitch>
    <dipswitch name="Stop Mode" tag="DSW" mask="8192">
      <diplocation name="SW2" number="6" />
      <dipvalue name="Off" value="8192" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Invulnerability" tag="DSW" mask="16384">
      <diplocation name="SW2" number="7" />
      <dipvalue name="Off" value="16384" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="32768">
      <diplocation name="SW2" number="8" />
      <dipvalue name="Off" value="32768" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <driver status="good" emulation="good" cocktail="preliminary" savestate="supported" />
  </machine>
  <machine name="lohtj" sourcefile="m72.cpp" cloneof="loht" romof="loht">
    <description>Legend of Hero Tonma (Japan)</description>
    <year>1989</year>
    <manufacturer>Irem</manufacturer>
    <rom name="tom_c-h0-" size="131072" crc="2a752998" sha1="a88c3c75a1106665c94ddd0945bfaa7696a21b75" region="maincpu" offset="1" />
    <rom name="tom_c-l0-" size="131072" crc="a224d928" sha1="c4744f6ca19ce60b0c03415be979f2a824235a1c" region="maincpu" offset="0" />
    <rom name="tom_c-h3-" merge="tom_c-h3-.ic43" size="131072" crc="714778b5" sha1="e2eaa35d6b5fa5df5163fe0d7b45fa66667f9947" region="maincpu" offset="40001" />
    <rom name="tom_c-l3-" merge="tom_c-l3-.ic34" size="131072" crc="2f049b03" sha1="21047cb10912b1fc23795673af3ea7de249328b7" region="maincpu" offset="40000" />
    <rom name="tom_c-pr-.ic1" size="4096" crc="9fa9b496" sha1="b529bcd7bf123894e11f2a8df8826932122e375a" region="mcu" offset="0" />
    <rom name="r200" merge="tom_m53.ic53" size="131072" crc="0b83265f" sha1="b31918d6442b79c9fe4f20410189788b050a994e" region="sprites" offset="0" />
    <rom name="r210" merge="tom_m51.ic51" size="131072" crc="8ec5f6f3" sha1="210f2753f5eeb06396758d21ab1778d459add247" region="sprites" offset="20000" />
    <rom name="r220" merge="tom_m49.ic49" size="131072" crc="a41d3bfd" sha1="536fb7c0321dbbc1a8b73e9647fba9c53a253fcc" region="sprites" offset="40000" />
    <rom name="r230" merge="tom_m47.ic47" size="131072" crc="9d81a25b" sha1="a354537c2fbba85f06485aa8487d7583a7133357" region="sprites" offset="60000" />
    <rom name="r2a0.a0" merge="tom_m21.ic21" size="65536" crc="3ca3e771" sha1="be052e01c5429ee89057c9d408794f2c7744047c" region="gfx2" offset="0" />
    <rom name="r2a1.a1" merge="tom_m22.ic22" size="65536" crc="7a05ee2f" sha1="7d1ca5db9a5a85610129e3bc6c640ade036fe7f9" region="gfx2" offset="10000" />
    <rom name="r2a2.a2" merge="tom_m20.ic20" size="65536" crc="79aa2335" sha1="6b70c79d800a7b755aa7c9a368c4ea74029aaa1e" region="gfx2" offset="20000" />
    <rom name="r2a3.a3" merge="tom_m23.ic23" size="65536" crc="789e8b24" sha1="e957cd25c3c155ca295ab1aea03d610f91562cfb" region="gfx2" offset="30000" />
    <rom name="078.b0" merge="tom_m26.ic26" size="65536" crc="44626bf6" sha1="571ef74d42d30a272ff0fb33f830652b4a4bad29" region="gfx3" offset="0" />
    <rom name="079.b1" merge="tom_m27.ic27" size="65536" crc="464952cf" sha1="6b99360b6ba1ed5a72c257f51291f9f7a1ddf363" region="gfx3" offset="10000" />
    <rom name="080.b2" merge="tom_m25.ic25" size="65536" crc="3db9b2c7" sha1="02a318ffc459c494b7f40827eff5f89b41ac0426" region="gfx3" offset="20000" />
    <rom name="081.b3" merge="tom_m24.ic24" size="65536" crc="f01fe899" sha1="c5ab967b7af55a757638bcdc9975f4b15064022d" region="gfx3" offset="30000" />
    <rom name="082" merge="tom_m44.ic44" size="65536" crc="3ed51d1f" sha1="84f3aa17d640df91387e5f1f5b5971cf8dcd4e17" region="samples" offset="0" />
    <device_ref name="v30" />
    <device_ref name="z80" />
    <device_ref name="pic8259" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="m72_audio" />
    <device_ref name="ym2151" />
    <device_ref name="dac_8bit_r2r" />
    <device_ref name="mb8421_mb8431_16" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="i8751" />
    <chip type="cpu" tag="maincpu" name="NEC V30" clock="8000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="cpu" tag="mcu" name="Intel 8751" clock="8000000" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <chip type="audio" tag="dac" name="8-Bit R-2R DAC" />
    <display tag="screen" type="raster" rotate="0" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Lives" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="2" value="0" />
      <dipvalue name="3" value="3" default="yes" />
      <dipvalue name="4" value="2" />
      <dipvalue name="5" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="4">
      <diplocation name="SW1" number="3" />
      <dipvalue name="Off" value="4" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="8">
      <diplocation name="SW1" number="4" />
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="48">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="32" />
      <dipvalue name="1 Coin/1 Credit" value="48" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="192">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="192" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/5 Credits" value="64" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="240">
      <condition tag="DSW" mask="1024" relation="ne" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="160" />
      <dipvalue name="5 Coins/1 Credit" value="176" />
      <dipvalue name="4 Coins/1 Credit" value="192" />
      <dipvalue name="3 Coins/1 Credit" value="208" />
      <dipvalue name="8 Coins/3 Credits" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="224" />
      <dipvalue name="5 Coins/3 Credits" value="32" />
      <dipvalue name="3 Coins/2 Credits" value="48" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="64" />
      <dipvalue name="1 Coin/2 Credits" value="144" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/4 Credits" value="112" />
      <dipvalue name="1 Coin/5 Credits" value="96" />
      <dipvalue name="1 Coin/6 Credits" value="80" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="DSW" mask="512">
      <diplocation name="SW2" number="2" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="512" />
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="1024">
      <diplocation name="SW2" number="3" />
      <dipvalue name="Mode 1" value="1024" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="6144">
      <diplocation name="SW2" number="4" />
      <diplocation name="SW2" number="5" />
      <dipvalue name="Easy" value="0" />
      <dipvalue name="Normal" value="6144" default="yes" />
      <dipvalue name="Hard" value="4096" />
      <dipvalue name="Hardest" value="2048" />
    </dipswitch>
    <dipswitch name="Stop Mode" tag="DSW" mask="8192">
      <diplocation name="SW2" number="6" />
      <dipvalue name="Off" value="8192" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Invulnerability" tag="DSW" mask="16384">
      <diplocation name="SW2" number="7" />
      <dipvalue name="Off" value="16384" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="32768">
      <diplocation name="SW2" number="8" />
      <dipvalue name="Off" value="32768" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <driver status="good" emulation="good" cocktail="preliminary" savestate="supported" />
  </machine>
  <machine name="ltswords" sourcefile="m72.cpp">
    <description>Lightning Swords</description>
    <year>1991</year>
    <manufacturer>Irem</manufacturer>
    <rom name="h0.ic55" size="131072" crc="22f342b2" sha1="8a0954eed7ad5a231a0e3884da28556c0f64f7f6" region="maincpu" offset="1" />
    <rom name="l0.ic61" size="131072" crc="0210d592" sha1="8500dd6da56c007878287d468b3ebc1686e59ef7" region="maincpu" offset="0" />
    <rom name="ken_d-sp.rom" size="65536" crc="233ca1cf" sha1="4ebb6162773bd586a10016ccd77998a9b880f474" region="soundcpu" offset="0" />
    <rom name="ken_m31.rom" size="131072" crc="e00b95a6" sha1="6efcd8d58f8ebe3a42c60a0aa790b42c0e132777" region="sprites" offset="0" />
    <rom name="ken_m21.rom" size="131072" crc="d7722f87" sha1="8606a53b8630934d2b5dfc986bd92ac4142f67e2" region="sprites" offset="20000" />
    <rom name="ken_m32.rom" size="131072" crc="30a844c4" sha1="72b2caba3ee7a229ca56f004516dea8d3f0a7ba6" region="sprites" offset="40000" />
    <rom name="ken_m22.rom" size="131072" crc="a00dac85" sha1="0c1ed852795046926f62843f6b256cbeecf9ebcf" region="sprites" offset="60000" />
    <rom name="ken_m51.rom" size="131072" crc="1646cf4f" sha1="d240cb2bad3e766128e8e40aa7b1bf4f3b9a5559" region="gfx2" offset="0" />
    <rom name="ken_m57.rom" size="131072" crc="a9f88d90" sha1="c8d4a96fe55fed4b7499550f3c74b03d10306757" region="gfx2" offset="20000" />
    <rom name="ken_m66.rom" size="131072" crc="e9d17645" sha1="fbe18d6691686a1c458d4a91169c9850698b5ca7" region="gfx2" offset="40000" />
    <rom name="ken_m64.rom" size="131072" crc="df46709b" sha1="e7c2cd752e765bf7b8ff24637305d61031ce0baa" region="gfx2" offset="60000" />
    <rom name="ken_m14.rom" size="131072" crc="6651e9b7" sha1="c42009f986c9a9f35732d5cd717d548536469b1c" region="samples" offset="0" />
    <device_ref name="v35" />
    <device_ref name="z80" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="m72_audio" />
    <device_ref name="ym2151" />
    <device_ref name="dac_8bit_r2r" />
    <chip type="cpu" tag="maincpu" name="NEC V35" clock="16000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <chip type="audio" tag="dac" name="8-Bit R-2R DAC" />
    <display tag="screen" type="raster" rotate="0" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Lives" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="2" value="2" />
      <dipvalue name="3" value="3" default="yes" />
      <dipvalue name="4" value="1" />
      <dipvalue name="5" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="12">
      <diplocation name="SW1" number="3" />
      <diplocation name="SW1" number="4" />
      <dipvalue name="Very Easy" value="0" />
      <dipvalue name="Easy" value="8" />
      <dipvalue name="Normal" value="12" default="yes" />
      <dipvalue name="Hard" value="4" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="16">
      <diplocation name="SW1" number="5" />
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSW" mask="32">
      <diplocation name="SW1" number="6" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="32" default="yes" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="64">
      <diplocation name="SW1" number="7" />
      <dipvalue name="Off" value="64" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="128">
      <diplocation name="SW1" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="512">
      <diplocation name="SW2" number="2" />
      <dipvalue name="Off" value="512" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="1024">
      <diplocation name="SW2" number="3" />
      <dipvalue name="Off" value="1024" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="2048">
      <diplocation name="SW2" number="4" />
      <dipvalue name="Mode 1" value="2048" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="12288">
      <condition tag="DSW" mask="2048" relation="eq" value="0" />
      <diplocation name="SW2" number="5" />
      <diplocation name="SW2" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="4096" />
      <dipvalue name="2 Coins/1 Credit" value="8192" />
      <dipvalue name="1 Coin/1 Credit" value="12288" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="49152">
      <condition tag="DSW" mask="2048" relation="eq" value="0" />
      <diplocation name="SW2" number="7" />
      <diplocation name="SW2" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="49152" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="32768" />
      <dipvalue name="1 Coin/5 Credits" value="16384" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="61440">
      <condition tag="DSW" mask="2048" relation="ne" value="0" />
      <diplocation name="SW2" number="5" />
      <diplocation name="SW2" number="6" />
      <diplocation name="SW2" number="7" />
      <diplocation name="SW2" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="40960" />
      <dipvalue name="5 Coins/1 Credit" value="45056" />
      <dipvalue name="4 Coins/1 Credit" value="49152" />
      <dipvalue name="3 Coins/1 Credit" value="53248" />
      <dipvalue name="2 Coins/1 Credit" value="57344" />
      <dipvalue name="2 Coins to Start/1 to Continue" value="4096" />
      <dipvalue name="3 Coins/2 Credits" value="12288" />
      <dipvalue name="4 Coins/3 Credits" value="8192" />
      <dipvalue name="1 Coin/1 Credit" value="61440" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="16384" />
      <dipvalue name="1 Coin/2 Credits" value="36864" />
      <dipvalue name="1 Coin/3 Credits" value="32768" />
      <dipvalue name="1 Coin/4 Credits" value="28672" />
      <dipvalue name="1 Coin/5 Credits" value="24576" />
      <dipvalue name="1 Coin/6 Credits" value="20480" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <driver status="good" emulation="good" cocktail="preliminary" savestate="supported" />
  </machine>
  <machine name="majtitle" sourcefile="m72.cpp">
    <description>Major Title (World)</description>
    <year>1990</year>
    <manufacturer>Irem</manufacturer>
    <rom name="mt_h0-a.bin" size="131072" crc="36aadb67" sha1="11cb9f190431ef7b68bcad691191c810b00452be" region="maincpu" offset="1" />
    <rom name="mt_l0-a.bin" size="131072" crc="2e1b6242" sha1="a1d36c1bad7eb874e6b37a372d0ff95452b09315" region="maincpu" offset="0" />
    <rom name="mt_h1-a.bin" size="131072" crc="e1402a22" sha1="97ecf3cf5438dd3aad65554b672a4e401917dc34" region="maincpu" offset="40001" />
    <rom name="mt_l1-a.bin" size="131072" crc="0efa409a" sha1="2b4fd62705398c7ac1647f6ea821f722b4f7496f" region="maincpu" offset="40000" />
    <rom name="mt_sp.bin" size="65536" crc="e44260a9" sha1="a2512033c8cca9a8064eae1ada721202edf06e8e" region="soundcpu" offset="0" />
    <rom name="mt_n0.bin" size="262144" crc="5618cddc" sha1="16d34b431ab9b72067fa669d694e635c88aeb261" region="sprites" offset="0" />
    <rom name="mt_n1.bin" size="262144" crc="483b873b" sha1="654efd67b2102521e8c46cd57cefa2cc64cf4fd3" region="sprites" offset="40000" />
    <rom name="mt_n2.bin" size="262144" crc="4f5d665b" sha1="f539d0f5c738ffabfac16121706abe3bb3b2a1fa" region="sprites" offset="80000" />
    <rom name="mt_n3.bin" size="262144" crc="83571549" sha1="ce0b89aa4b3e3e1cf6ec6136f956577267cdd9d3" region="sprites" offset="c0000" />
    <rom name="mt_c0.bin" size="131072" crc="780e7a02" sha1="9776ecb8b5d86636061f8360464001a63bec0842" region="gfx2" offset="0" />
    <rom name="mt_c1.bin" size="131072" crc="45ad1381" sha1="de281398dcd1c547bde9fa86f8ca409dd8d4aa6c" region="gfx2" offset="20000" />
    <rom name="mt_c2.bin" size="131072" crc="5df5856d" sha1="f16163f672de6701b411315c9956ddb74c8464ce" region="gfx2" offset="40000" />
    <rom name="mt_c3.bin" size="131072" crc="f5316cc8" sha1="123892d4a7e8d98582ea736afe659afdba8c5f87" region="gfx2" offset="60000" />
    <rom name="mt_f0.bin" size="131072" crc="2d5e05d5" sha1="18bdc9c561dbf0f91642161ca985d2154bd58b5d" region="sprites2" offset="0" />
    <rom name="mt_f1.bin" size="131072" crc="c68cd65f" sha1="8999b558b4af0f453ada9e4ef705163df96844e6" region="sprites2" offset="20000" />
    <rom name="mt_f2.bin" size="131072" crc="a71feb2d" sha1="47e366b422772bed08ee4d1c338970687d6c3b4c" region="sprites2" offset="40000" />
    <rom name="mt_f3.bin" size="131072" crc="179f7562" sha1="6d28b199daffc62e8fa9009878ac0bb976ccbb2a" region="sprites2" offset="60000" />
    <rom name="mt_vo.bin" size="131072" crc="eb24bb2c" sha1="9fca04fba0249e8213dd164eb6829e1a5acbee65" region="samples" offset="0" />
    <device_ref name="v30" />
    <device_ref name="z80" />
    <device_ref name="pic8259" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="m72_audio" />
    <device_ref name="ym2151" />
    <device_ref name="dac_8bit_r2r" />
    <chip type="cpu" tag="maincpu" name="NEC V30" clock="8000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <chip type="audio" tag="dac" name="8-Bit R-2R DAC" />
    <display tag="screen" type="raster" rotate="0" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Lives" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="2" value="2" />
      <dipvalue name="3" value="3" default="yes" />
      <dipvalue name="4" value="1" />
      <dipvalue name="5" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="12">
      <diplocation name="SW1" number="3" />
      <diplocation name="SW1" number="4" />
      <dipvalue name="Easy" value="8" />
      <dipvalue name="Normal" value="12" default="yes" />
      <dipvalue name="Hard" value="4" />
      <dipvalue name="Hardest" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="48">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="32" />
      <dipvalue name="1 Coin/1 Credit" value="48" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="192">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="192" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/5 Credits" value="64" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="240">
      <condition tag="DSW" mask="1024" relation="ne" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="160" />
      <dipvalue name="5 Coins/1 Credit" value="176" />
      <dipvalue name="4 Coins/1 Credit" value="192" />
      <dipvalue name="3 Coins/1 Credit" value="208" />
      <dipvalue name="8 Coins/3 Credits" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="224" />
      <dipvalue name="5 Coins/3 Credits" value="32" />
      <dipvalue name="3 Coins/2 Credits" value="48" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="64" />
      <dipvalue name="1 Coin/2 Credits" value="144" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/4 Credits" value="112" />
      <dipvalue name="1 Coin/5 Credits" value="96" />
      <dipvalue name="1 Coin/6 Credits" value="80" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="512">
      <diplocation name="SW2" number="2" />
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="512" default="yes" />
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="1024">
      <diplocation name="SW2" number="3" />
      <dipvalue name="Mode 1" value="1024" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="DSW" mask="6144">
      <diplocation name="SW2" number="4" />
      <diplocation name="SW2" number="5" />
      <dipvalue name="Upright" value="4096" default="yes" />
      <dipvalue name="Upright (2P)" value="0" />
      <dipvalue name="Cocktail" value="6144" />
    </dipswitch>
    <dipswitch name="Stop Mode" tag="DSW" mask="8192">
      <diplocation name="SW2" number="6" />
      <dipvalue name="Off" value="8192" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="16384">
      <diplocation name="SW2" number="7" />
      <dipvalue name="Off" value="16384" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="32768">
      <diplocation name="SW2" number="8" />
      <dipvalue name="Off" value="32768" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <driver status="good" emulation="good" cocktail="preliminary" savestate="supported" />
  </machine>
  <machine name="majtitlej" sourcefile="m72.cpp" cloneof="majtitle" romof="majtitle">
    <description>Major Title (Japan)</description>
    <year>1990</year>
    <manufacturer>Irem</manufacturer>
    <rom name="mt_h0.bin" size="131072" crc="b9682c70" sha1="b979c0a630397f2a2eb73709cf12c5262c973782" region="maincpu" offset="1" />
    <rom name="mt_l0.bin" size="131072" crc="702c9fd6" sha1="84a5e9e64f4bf235d115f5648b4a108f710ade1d" region="maincpu" offset="0" />
    <rom name="mt_h1.bin" size="131072" crc="d9e97c30" sha1="97f59b614eeeced0a414f8a1693590525a58f788" region="maincpu" offset="40001" />
    <rom name="mt_l1.bin" size="131072" crc="8dbd91b5" sha1="2bd01f3fba0fa1ca4b6f8ff57e7dc4434c42ce48" region="maincpu" offset="40000" />
    <rom name="mt_sp.bin" merge="mt_sp.bin" size="65536" crc="e44260a9" sha1="a2512033c8cca9a8064eae1ada721202edf06e8e" region="soundcpu" offset="0" />
    <rom name="mt_n0.bin" merge="mt_n0.bin" size="262144" crc="5618cddc" sha1="16d34b431ab9b72067fa669d694e635c88aeb261" region="sprites" offset="0" />
    <rom name="mt_n1.bin" merge="mt_n1.bin" size="262144" crc="483b873b" sha1="654efd67b2102521e8c46cd57cefa2cc64cf4fd3" region="sprites" offset="40000" />
    <rom name="mt_n2.bin" merge="mt_n2.bin" size="262144" crc="4f5d665b" sha1="f539d0f5c738ffabfac16121706abe3bb3b2a1fa" region="sprites" offset="80000" />
    <rom name="mt_n3.bin" merge="mt_n3.bin" size="262144" crc="83571549" sha1="ce0b89aa4b3e3e1cf6ec6136f956577267cdd9d3" region="sprites" offset="c0000" />
    <rom name="mt_c0.bin" merge="mt_c0.bin" size="131072" crc="780e7a02" sha1="9776ecb8b5d86636061f8360464001a63bec0842" region="gfx2" offset="0" />
    <rom name="mt_c1.bin" merge="mt_c1.bin" size="131072" crc="45ad1381" sha1="de281398dcd1c547bde9fa86f8ca409dd8d4aa6c" region="gfx2" offset="20000" />
    <rom name="mt_c2.bin" merge="mt_c2.bin" size="131072" crc="5df5856d" sha1="f16163f672de6701b411315c9956ddb74c8464ce" region="gfx2" offset="40000" />
    <rom name="mt_c3.bin" merge="mt_c3.bin" size="131072" crc="f5316cc8" sha1="123892d4a7e8d98582ea736afe659afdba8c5f87" region="gfx2" offset="60000" />
    <rom name="mt_f0.bin" merge="mt_f0.bin" size="131072" crc="2d5e05d5" sha1="18bdc9c561dbf0f91642161ca985d2154bd58b5d" region="sprites2" offset="0" />
    <rom name="mt_f1.bin" merge="mt_f1.bin" size="131072" crc="c68cd65f" sha1="8999b558b4af0f453ada9e4ef705163df96844e6" region="sprites2" offset="20000" />
    <rom name="mt_f2.bin" merge="mt_f2.bin" size="131072" crc="a71feb2d" sha1="47e366b422772bed08ee4d1c338970687d6c3b4c" region="sprites2" offset="40000" />
    <rom name="mt_f3.bin" merge="mt_f3.bin" size="131072" crc="179f7562" sha1="6d28b199daffc62e8fa9009878ac0bb976ccbb2a" region="sprites2" offset="60000" />
    <rom name="mt_vo.bin" merge="mt_vo.bin" size="131072" crc="eb24bb2c" sha1="9fca04fba0249e8213dd164eb6829e1a5acbee65" region="samples" offset="0" />
    <device_ref name="v30" />
    <device_ref name="z80" />
    <device_ref name="pic8259" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="m72_audio" />
    <device_ref name="ym2151" />
    <device_ref name="dac_8bit_r2r" />
    <chip type="cpu" tag="maincpu" name="NEC V30" clock="8000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <chip type="audio" tag="dac" name="8-Bit R-2R DAC" />
    <display tag="screen" type="raster" rotate="0" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Lives" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="2" value="2" />
      <dipvalue name="3" value="3" default="yes" />
      <dipvalue name="4" value="1" />
      <dipvalue name="5" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="12">
      <diplocation name="SW1" number="3" />
      <diplocation name="SW1" number="4" />
      <dipvalue name="Easy" value="8" />
      <dipvalue name="Normal" value="12" default="yes" />
      <dipvalue name="Hard" value="4" />
      <dipvalue name="Hardest" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="48">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="32" />
      <dipvalue name="1 Coin/1 Credit" value="48" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="192">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="192" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/5 Credits" value="64" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="240">
      <condition tag="DSW" mask="1024" relation="ne" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="160" />
      <dipvalue name="5 Coins/1 Credit" value="176" />
      <dipvalue name="4 Coins/1 Credit" value="192" />
      <dipvalue name="3 Coins/1 Credit" value="208" />
      <dipvalue name="8 Coins/3 Credits" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="224" />
      <dipvalue name="5 Coins/3 Credits" value="32" />
      <dipvalue name="3 Coins/2 Credits" value="48" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="64" />
      <dipvalue name="1 Coin/2 Credits" value="144" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/4 Credits" value="112" />
      <dipvalue name="1 Coin/5 Credits" value="96" />
      <dipvalue name="1 Coin/6 Credits" value="80" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="512">
      <diplocation name="SW2" number="2" />
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="512" default="yes" />
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="1024">
      <diplocation name="SW2" number="3" />
      <dipvalue name="Mode 1" value="1024" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="DSW" mask="6144">
      <diplocation name="SW2" number="4" />
      <diplocation name="SW2" number="5" />
      <dipvalue name="Upright" value="4096" default="yes" />
      <dipvalue name="Upright (2P)" value="0" />
      <dipvalue name="Cocktail" value="6144" />
    </dipswitch>
    <dipswitch name="Stop Mode" tag="DSW" mask="8192">
      <diplocation name="SW2" number="6" />
      <dipvalue name="Off" value="8192" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="16384">
      <diplocation name="SW2" number="7" />
      <dipvalue name="Off" value="16384" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="32768">
      <diplocation name="SW2" number="8" />
      <dipvalue name="Off" value="32768" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <driver status="good" emulation="good" cocktail="preliminary" savestate="supported" />
  </machine>
  <machine name="mrheli" sourcefile="m72.cpp" cloneof="bchopper" romof="bchopper">
    <description>Mr. HELI no Daibouken (Japan)</description>
    <year>1987</year>
    <manufacturer>Irem</manufacturer>
    <rom name="mh_c-h0-.ic40" size="65536" crc="e2ca5646" sha1="9f4fe2f0a45233325bd9336cabb925a1f625453b" region="maincpu" offset="1" />
    <rom name="mh_c-l0-.ic37" size="65536" crc="643e23cd" sha1="66998a6dfc7ef538540986b61d2414a5ef250d0d" region="maincpu" offset="0" />
    <rom name="mh_c-h1-.ic41" size="65536" crc="8974e84d" sha1="39e05c80e805dde45f2fc5fc429b75f9b599089c" region="maincpu" offset="20001" />
    <rom name="mh_c-l1-.ic36" size="65536" crc="5f8bda69" sha1="48629d617bd48c9de9c6a567fb203258a56fdbbd" region="maincpu" offset="20000" />
    <rom name="mh_c-h3-.ic43" size="65536" crc="143f596e" sha1="f9d444eebcd53dac925d14b7a2858803b7fd9ce2" region="maincpu" offset="60001" />
    <rom name="mh_c-l3-.ic34" size="65536" crc="c0982536" sha1="45399f8d0577c6e2a277a69303954ce5d2de7c07" region="maincpu" offset="60000" />
    <rom name="mh_c-pr-.ic1" size="4096" crc="897dc4ee" sha1="05a24bf76e8fa9ca96ba9376cbf44d299df04138" region="mcu" offset="0" />
    <rom name="mh_c-00.ic53" size="131072" crc="dec4e121" sha1="92169b523f1600e994e016dc1959a52958e1d89d" region="sprites" offset="0" />
    <rom name="mh_c-10.ic51" size="131072" crc="7aaa151e" sha1="efd980bb2eed7084354b7a4aa2f733cd2f876741" region="sprites" offset="20000" />
    <rom name="mh_c-20.ic49" size="131072" crc="eae0de74" sha1="3a2469c0eeb18131f989807afb50228f57ccea30" region="sprites" offset="40000" />
    <rom name="mh_c-30.ic47" size="131072" crc="01d5052f" sha1="5d5e70913bb7af48193c70209595f27a64fa6cac" region="sprites" offset="60000" />
    <rom name="mh_b-a0.ic21" size="65536" crc="6a0db256" sha1="fa3a2dc03da5bbe06a9c9b3d4ed4fddb47c469ac" region="gfx2" offset="0" />
    <rom name="mh_b-a1.ic22" size="65536" crc="14ec9795" sha1="4842e076115efe9daf00dab8f61516d28c19baae" region="gfx2" offset="10000" />
    <rom name="mh_b-a2.ic20" size="65536" crc="dfcb510e" sha1="2387cde4ec0bae176486e1f7541103fd557fe255" region="gfx2" offset="20000" />
    <rom name="mh_b-a3.ic23" size="65536" crc="957e329b" sha1="9d48a0b84915e1cef0b0311a3581991dc83ee199" region="gfx2" offset="30000" />
    <rom name="mh_b-b0-.ic26" merge="mh_b-b0-.ic26" size="65536" crc="b5b95776" sha1="4685b56071b916ce712c45f24da8068dd7e40ed1" region="gfx3" offset="0" />
    <rom name="mh_b-b1-.ic27" merge="mh_b-b1-.ic27" size="65536" crc="74ca16ee" sha1="7984bc9a0b46e1b4a8ecac7528d57606305aad73" region="gfx3" offset="10000" />
    <rom name="mh_b-b2-.ic25" merge="mh_b-b2-.ic25" size="65536" crc="b82cca04" sha1="c12b95be311205181b01d15021bcf9f01ed3e0a3" region="gfx3" offset="20000" />
    <rom name="mh_b-b3-.ic24" merge="mh_b-b3-.ic24" size="65536" crc="a7afc920" sha1="92c75463ada39184e731b82ef2883ae6f1f67482" region="gfx3" offset="30000" />
    <rom name="mh_c-v0-b.ic44" merge="mh_c-v0-b.ic44" size="65536" crc="d0c27e58" sha1="fec76217cc0c04c723989c3ec127a2bd33d64c60" region="samples" offset="0" />
    <device_ref name="v30" />
    <device_ref name="z80" />
    <device_ref name="pic8259" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="m72_audio" />
    <device_ref name="ym2151" />
    <device_ref name="dac_8bit_r2r" />
    <device_ref name="mb8421_mb8431_16" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="i8751" />
    <chip type="cpu" tag="maincpu" name="NEC V30" clock="8000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="cpu" tag="mcu" name="Intel 8751" clock="8000000" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <chip type="audio" tag="dac" name="8-Bit R-2R DAC" />
    <display tag="screen" type="raster" rotate="0" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Lives" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="1" value="0" />
      <dipvalue name="2" value="2" />
      <dipvalue name="3" value="3" default="yes" />
      <dipvalue name="4" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="4">
      <diplocation name="SW1" number="3" />
      <dipvalue name="Off" value="4" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSW" mask="8">
      <diplocation name="SW1" number="4" />
      <dipvalue name="80K 200K 350K" value="8" default="yes" />
      <dipvalue name="100K 250K 400K" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="48">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="32" />
      <dipvalue name="1 Coin/1 Credit" value="48" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="192">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="192" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/5 Credits" value="64" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="240">
      <condition tag="DSW" mask="1024" relation="ne" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="160" />
      <dipvalue name="5 Coins/1 Credit" value="176" />
      <dipvalue name="4 Coins/1 Credit" value="192" />
      <dipvalue name="3 Coins/1 Credit" value="208" />
      <dipvalue name="8 Coins/3 Credits" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="224" />
      <dipvalue name="5 Coins/3 Credits" value="32" />
      <dipvalue name="3 Coins/2 Credits" value="48" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="64" />
      <dipvalue name="1 Coin/2 Credits" value="144" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/4 Credits" value="112" />
      <dipvalue name="1 Coin/5 Credits" value="96" />
      <dipvalue name="1 Coin/6 Credits" value="80" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="DSW" mask="512">
      <diplocation name="SW2" number="2" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="512" />
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="1024">
      <diplocation name="SW2" number="3" />
      <dipvalue name="Mode 1" value="1024" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="2048">
      <diplocation name="SW2" number="4" />
      <dipvalue name="Normal" value="2048" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSW" mask="4096">
      <diplocation name="SW2" number="5" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="4096" default="yes" />
    </dipswitch>
    <dipswitch name="Stop Mode" tag="DSW" mask="8192">
      <diplocation name="SW2" number="6" />
      <dipvalue name="Off" value="8192" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Invulnerability" tag="DSW" mask="16384">
      <diplocation name="SW2" number="7" />
      <dipvalue name="Off" value="16384" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="32768">
      <diplocation name="SW2" number="8" />
      <dipvalue name="Off" value="32768" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <driver status="good" emulation="good" cocktail="preliminary" savestate="supported" />
  </machine>
  <machine name="nspirit" sourcefile="m72.cpp">
    <description>Ninja Spirit (World)</description>
    <year>1988</year>
    <manufacturer>Irem</manufacturer>
    <rom name="nin_c-h0-b.6h" size="65536" crc="035692fa" sha1="d5ab54488344bf405063737ed55d68ff1e64b55f" region="maincpu" offset="1" />
    <rom name="nin_c-l0-b.6d" size="65536" crc="9a405898" sha1="b28d71c1a6410720a37e6b6518b3cc66d4c32972" region="maincpu" offset="0" />
    <rom name="nin_c-h1.6j" size="65536" crc="cbc10586" sha1="9b1935ea9ebb21fe42ee3a57d6c10f1e8516f23c" region="maincpu" offset="20001" />
    <rom name="nin_c-l1.6c" size="65536" crc="b75c9a4d" sha1="03c28896cbe0c9f778c259d59d2e69796902daa8" region="maincpu" offset="20000" />
    <rom name="nin_c-h2.6l" size="65536" crc="8ad818fa" sha1="dd25e79b656b7fc6c31d1f8971fd0916295ccdb0" region="maincpu" offset="40001" />
    <rom name="nin_c-l2.6b" size="65536" crc="c52ca78c" sha1="2b40cce5a1f5c588b49634e7fd4bc28c9160fe43" region="maincpu" offset="40000" />
    <rom name="nin_c-h3-b.6m" size="65536" crc="501104ef" sha1="e44e060c072affd359e52bf6606b1dd565368d44" region="maincpu" offset="60001" />
    <rom name="nin_c-l3-b.6a" size="65536" crc="fd7408b8" sha1="3cbe72835a561c50265a047f0f5cd62db48378fd" region="maincpu" offset="60000" />
    <rom name="nin_c-pr-b.ic1" size="4096" status="nodump" region="mcu" offset="0" />
    <rom name="nin-r00.7m" size="131072" crc="5f61d30b" sha1="7754697e43f6117fa604f50885b76014b1dc5760" region="sprites" offset="0" />
    <rom name="nin-r10.7j" size="131072" crc="0caad107" sha1="c4eff00327313e05ac8f7c6dbee3a0de1c83fadd" region="sprites" offset="20000" />
    <rom name="nin-r20.7f" size="131072" crc="ef3617d3" sha1="16c175cf45559aacdea6e4002dd8a87f16817cfb" region="sprites" offset="40000" />
    <rom name="nin-r30.7d" size="131072" crc="175d2a24" sha1="d1887efd4d8e74c38c53dbbc541ca8d17f29eb59" region="sprites" offset="60000" />
    <rom name="nin_b-a0.4c" size="65536" crc="63f8f658" sha1="82c02d0f7a2d95dfd8d300c46312d511524775ce" region="gfx2" offset="0" />
    <rom name="nin_b-a1.4d" size="65536" crc="75eb8306" sha1="2abc359a0bb2863759a68ed60e730761b9751829" region="gfx2" offset="10000" />
    <rom name="nin_b-a2.4b" size="65536" crc="df532172" sha1="58b5a79a57e71405b3e1abd41d54cf6a4d12873a" region="gfx2" offset="20000" />
    <rom name="nin_b-a3.4e" size="65536" crc="4dedd64c" sha1="8a5c73a024d95e6fe3ab70daafcd5b235418ad36" region="gfx2" offset="30000" />
    <rom name="b0.4j" size="65536" crc="1b0e08a6" sha1="892686594970c264babbe8673c258929a5e480f6" region="gfx3" offset="0" />
    <rom name="b1.4k" size="65536" crc="728727f0" sha1="2f594c77a847ebee71c9da8a644f83ea2a1313d7" region="gfx3" offset="10000" />
    <rom name="b2.4h" size="65536" crc="f87efd75" sha1="16474c7ab57b4fbb5cb50799ea6a2326c66706b5" region="gfx3" offset="20000" />
    <rom name="b3.4f" size="65536" crc="98856cb4" sha1="aa4fbae972d2e827c75650a71ab4ef73a33cd018" region="gfx3" offset="30000" />
    <rom name="nin-v0.7a" size="65536" crc="a32e8caf" sha1="63d56ad3a63fb089056e4a170159120287594ea8" region="samples" offset="0" />
    <rom name="m72_a-8l.8l" size="256" crc="b460c438" sha1="00e20cf754b6fd5138ee4d2f6ec28dff9e292fe6" region="proms" offset="0" />
    <rom name="m72_a-9l.9l" size="256" crc="a4f2c4bc" sha1="f13b0a4b52dcc6704063b676f09d83dcba170133" region="proms" offset="100" />
    <rom name="nin_c-3f.3f" size="256" crc="5402fc07" sha1="fa4284710b31be62ab99b0e1d60844db9a8d843e" region="plds" offset="0" />
    <rom name="m72_a-3d.3d" size="256" crc="de85dac3" sha1="af83b0325f28fbb1bcc424c1b58ff0f4b49f6b67" region="plds" offset="100" />
    <rom name="m72_a-4d.4d" size="256" crc="59676de1" sha1="fcf35f5463c14a4b06d58684c47ea9de5216d1da" region="plds" offset="200" />
    <device_ref name="v30" />
    <device_ref name="z80" />
    <device_ref name="pic8259" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="m72_audio" />
    <device_ref name="ym2151" />
    <device_ref name="dac_8bit_r2r" />
    <chip type="cpu" tag="maincpu" name="NEC V30" clock="8000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <chip type="audio" tag="dac" name="8-Bit R-2R DAC" />
    <display tag="screen" type="raster" rotate="0" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Lives" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="2" value="2" />
      <dipvalue name="3" value="3" default="yes" />
      <dipvalue name="4" value="1" />
      <dipvalue name="5" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="12">
      <diplocation name="SW1" number="3" />
      <diplocation name="SW1" number="4" />
      <dipvalue name="Easy" value="8" />
      <dipvalue name="Normal" value="12" default="yes" />
      <dipvalue name="Hard" value="4" />
      <dipvalue name="Hardest" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="48">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="32" />
      <dipvalue name="1 Coin/1 Credit" value="48" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="192">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="192" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/5 Credits" value="64" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="240">
      <condition tag="DSW" mask="1024" relation="ne" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="160" />
      <dipvalue name="5 Coins/1 Credit" value="176" />
      <dipvalue name="4 Coins/1 Credit" value="192" />
      <dipvalue name="3 Coins/1 Credit" value="208" />
      <dipvalue name="8 Coins/3 Credits" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="224" />
      <dipvalue name="5 Coins/3 Credits" value="32" />
      <dipvalue name="3 Coins/2 Credits" value="48" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="64" />
      <dipvalue name="1 Coin/2 Credits" value="144" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/4 Credits" value="112" />
      <dipvalue name="1 Coin/5 Credits" value="96" />
      <dipvalue name="1 Coin/6 Credits" value="80" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="DSW" mask="512">
      <diplocation name="SW2" number="2" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="512" />
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="1024">
      <diplocation name="SW2" number="3" />
      <dipvalue name="Mode 1" value="1024" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="2048">
      <diplocation name="SW2" number="4" />
      <dipvalue name="Off" value="2048" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSW" mask="4096">
      <diplocation name="SW2" number="5" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="4096" default="yes" />
    </dipswitch>
    <dipswitch name="Stop Mode" tag="DSW" mask="8192">
      <diplocation name="SW2" number="6" />
      <dipvalue name="Off" value="8192" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Invulnerability" tag="DSW" mask="16384">
      <diplocation name="SW2" number="7" />
      <dipvalue name="Off" value="16384" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="32768">
      <diplocation name="SW2" number="8" />
      <dipvalue name="Off" value="32768" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <driver status="good" emulation="good" cocktail="preliminary" savestate="supported" />
  </machine>
  <machine name="nspiritj" sourcefile="m72.cpp" cloneof="nspirit" romof="nspirit">
    <description>Saigo no Nindou (Japan)</description>
    <year>1988</year>
    <manufacturer>Irem</manufacturer>
    <rom name="nin_c-h0.6h" size="65536" crc="8603fab2" sha1="2c5bc97b6c9648156969b4a9f139081dca19fa24" region="maincpu" offset="1" />
    <rom name="nin_c-l0.6d" size="65536" crc="e520fa35" sha1="05f7e5a1a5ada95809ffd941080fb2c2b54363b7" region="maincpu" offset="0" />
    <rom name="nin_c-h1.6j" merge="nin_c-h1.6j" size="65536" crc="cbc10586" sha1="9b1935ea9ebb21fe42ee3a57d6c10f1e8516f23c" region="maincpu" offset="20001" />
    <rom name="nin_c-l1.6c" merge="nin_c-l1.6c" size="65536" crc="b75c9a4d" sha1="03c28896cbe0c9f778c259d59d2e69796902daa8" region="maincpu" offset="20000" />
    <rom name="nin_c-h2.6l" merge="nin_c-h2.6l" size="65536" crc="8ad818fa" sha1="dd25e79b656b7fc6c31d1f8971fd0916295ccdb0" region="maincpu" offset="40001" />
    <rom name="nin_c-l2.6b" merge="nin_c-l2.6b" size="65536" crc="c52ca78c" sha1="2b40cce5a1f5c588b49634e7fd4bc28c9160fe43" region="maincpu" offset="40000" />
    <rom name="nin_c-h3.6m" size="65536" crc="95b63a61" sha1="bd5ec35fffe6d4898e6712eb6add7c51077b58d2" region="maincpu" offset="60001" />
    <rom name="nin_c-l3.6a" size="65536" crc="e754a87a" sha1="9951d972ed13a0415c827beff122bc7ddb078447" region="maincpu" offset="60000" />
    <rom name="nin_c-pr-.ic1" size="4096" crc="802d440a" sha1="45b844b831aa6d5d002e3960e17fb5a058b02a29" region="mcu" offset="0" />
    <rom name="nin-r00.7m" merge="nin-r00.7m" size="131072" crc="5f61d30b" sha1="7754697e43f6117fa604f50885b76014b1dc5760" region="sprites" offset="0" />
    <rom name="nin-r10.7j" merge="nin-r10.7j" size="131072" crc="0caad107" sha1="c4eff00327313e05ac8f7c6dbee3a0de1c83fadd" region="sprites" offset="20000" />
    <rom name="nin-r20.7f" merge="nin-r20.7f" size="131072" crc="ef3617d3" sha1="16c175cf45559aacdea6e4002dd8a87f16817cfb" region="sprites" offset="40000" />
    <rom name="nin-r30.7d" merge="nin-r30.7d" size="131072" crc="175d2a24" sha1="d1887efd4d8e74c38c53dbbc541ca8d17f29eb59" region="sprites" offset="60000" />
    <rom name="nin_b-a0.4c" merge="nin_b-a0.4c" size="65536" crc="63f8f658" sha1="82c02d0f7a2d95dfd8d300c46312d511524775ce" region="gfx2" offset="0" />
    <rom name="nin_b-a1.4d" merge="nin_b-a1.4d" size="65536" crc="75eb8306" sha1="2abc359a0bb2863759a68ed60e730761b9751829" region="gfx2" offset="10000" />
    <rom name="nin_b-a2.4b" merge="nin_b-a2.4b" size="65536" crc="df532172" sha1="58b5a79a57e71405b3e1abd41d54cf6a4d12873a" region="gfx2" offset="20000" />
    <rom name="nin_b-a3.4e" merge="nin_b-a3.4e" size="65536" crc="4dedd64c" sha1="8a5c73a024d95e6fe3ab70daafcd5b235418ad36" region="gfx2" offset="30000" />
    <rom name="b0.4j" merge="b0.4j" size="65536" crc="1b0e08a6" sha1="892686594970c264babbe8673c258929a5e480f6" region="gfx3" offset="0" />
    <rom name="b1.4k" merge="b1.4k" size="65536" crc="728727f0" sha1="2f594c77a847ebee71c9da8a644f83ea2a1313d7" region="gfx3" offset="10000" />
    <rom name="b2.4h" merge="b2.4h" size="65536" crc="f87efd75" sha1="16474c7ab57b4fbb5cb50799ea6a2326c66706b5" region="gfx3" offset="20000" />
    <rom name="b3.4f" merge="b3.4f" size="65536" crc="98856cb4" sha1="aa4fbae972d2e827c75650a71ab4ef73a33cd018" region="gfx3" offset="30000" />
    <rom name="nin-v0.7a" merge="nin-v0.7a" size="65536" crc="a32e8caf" sha1="63d56ad3a63fb089056e4a170159120287594ea8" region="samples" offset="0" />
    <device_ref name="v30" />
    <device_ref name="z80" />
    <device_ref name="pic8259" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="m72_audio" />
    <device_ref name="ym2151" />
    <device_ref name="dac_8bit_r2r" />
    <device_ref name="mb8421_mb8431_16" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="i8751" />
    <chip type="cpu" tag="maincpu" name="NEC V30" clock="8000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="cpu" tag="mcu" name="Intel 8751" clock="8000000" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <chip type="audio" tag="dac" name="8-Bit R-2R DAC" />
    <display tag="screen" type="raster" rotate="0" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Lives" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="2" value="2" />
      <dipvalue name="3" value="3" default="yes" />
      <dipvalue name="4" value="1" />
      <dipvalue name="5" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="12">
      <diplocation name="SW1" number="3" />
      <diplocation name="SW1" number="4" />
      <dipvalue name="Easy" value="8" />
      <dipvalue name="Normal" value="12" default="yes" />
      <dipvalue name="Hard" value="4" />
      <dipvalue name="Hardest" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="48">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="32" />
      <dipvalue name="1 Coin/1 Credit" value="48" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="192">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="192" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/5 Credits" value="64" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="240">
      <condition tag="DSW" mask="1024" relation="ne" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="160" />
      <dipvalue name="5 Coins/1 Credit" value="176" />
      <dipvalue name="4 Coins/1 Credit" value="192" />
      <dipvalue name="3 Coins/1 Credit" value="208" />
      <dipvalue name="8 Coins/3 Credits" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="224" />
      <dipvalue name="5 Coins/3 Credits" value="32" />
      <dipvalue name="3 Coins/2 Credits" value="48" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="64" />
      <dipvalue name="1 Coin/2 Credits" value="144" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/4 Credits" value="112" />
      <dipvalue name="1 Coin/5 Credits" value="96" />
      <dipvalue name="1 Coin/6 Credits" value="80" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="DSW" mask="512">
      <diplocation name="SW2" number="2" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="512" />
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="1024">
      <diplocation name="SW2" number="3" />
      <dipvalue name="Mode 1" value="1024" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="2048">
      <diplocation name="SW2" number="4" />
      <dipvalue name="Off" value="2048" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSW" mask="4096">
      <diplocation name="SW2" number="5" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="4096" default="yes" />
    </dipswitch>
    <dipswitch name="Stop Mode" tag="DSW" mask="8192">
      <diplocation name="SW2" number="6" />
      <dipvalue name="Off" value="8192" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Invulnerability" tag="DSW" mask="16384">
      <diplocation name="SW2" number="7" />
      <dipvalue name="Off" value="16384" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="32768">
      <diplocation name="SW2" number="8" />
      <dipvalue name="Off" value="32768" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <driver status="good" emulation="good" cocktail="preliminary" savestate="supported" />
  </machine>
  <machine name="poundfor" sourcefile="m72.cpp">
    <description>Pound for Pound (World)</description>
    <year>1990</year>
    <manufacturer>Irem</manufacturer>
    <rom name="ppa-h0-b.9e" size="131072" crc="50d4a2d8" sha1="7fd62c6613cb58b512c6c3670fa66a5b9906e6a1" region="maincpu" offset="1" />
    <rom name="ppa-l0-b.9d" size="131072" crc="bd997942" sha1="da484afe3b79e09e323c768a0b2165e6283971a7" region="maincpu" offset="0" />
    <rom name="ppa-h1.9f" size="131072" crc="f6c82f48" sha1="b38a2f9f0f6439b2cf453fec87ca11d959777ee6" region="maincpu" offset="40001" />
    <rom name="ppa-l1.9c" size="131072" crc="5b07b087" sha1="04a2403eb8c443cb92b880edc612542acdbcafa4" region="maincpu" offset="40000" />
    <rom name="ppa-sp.4j" size="65536" crc="3f458a5b" sha1="d73740b2a548bf8a895909da0841f18d9ed32668" region="soundcpu" offset="0" />
    <rom name="ppb-n0.bin" size="262144" crc="951a41f8" sha1="59b64f63ea2452c2b42ff7ebf1ff6fc4e7879ce3" region="sprites" offset="0" />
    <rom name="ppb-n1.bin" size="262144" crc="c609b7f2" sha1="1da3550c7e4d2a26d75d143934680d9177ba5c35" region="sprites" offset="40000" />
    <rom name="ppb-n2.bin" size="262144" crc="318c0b5f" sha1="1d4cd17dc2f8fc4e523eaf679f21d83e1bfade4e" region="sprites" offset="80000" />
    <rom name="ppb-n3.bin" size="262144" crc="93dc9490" sha1="3df4d57a7bf19443f5aa6a416bcee968f81d9059" region="sprites" offset="c0000" />
    <rom name="ppa-g00.bin" size="131072" crc="8a88a174" sha1="d360b9014aec31960538ee488894496248a820dc" region="gfx2" offset="0" />
    <rom name="ppa-g10.bin" size="131072" crc="e48a66ac" sha1="49b33db6a922d6f1d1417e28714a67431b7c0217" region="gfx2" offset="20000" />
    <rom name="ppa-g20.bin" size="131072" crc="12b93e79" sha1="f3d2b76a30874827c8998c1d13a55a3990b699b7" region="gfx2" offset="40000" />
    <rom name="ppa-g30.bin" size="131072" crc="faa39aee" sha1="9cc1a468b304437766c04189054d3b8f7ff1f958" region="gfx2" offset="60000" />
    <rom name="ppa-v0.bin" size="262144" crc="03321664" sha1="51f2b2b712385c1cd55fd069829efac01838d603" region="samples" offset="0" />
    <device_ref name="v30" />
    <device_ref name="z80" />
    <device_ref name="pic8259" />
    <device_ref name="upd4701a" />
    <device_ref name="upd4701a" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="m72_audio" />
    <device_ref name="ym2151" />
    <device_ref name="dac_8bit_r2r" />
    <chip type="cpu" tag="maincpu" name="NEC V30" clock="8000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <chip type="audio" tag="dac" name="8-Bit R-2R DAC" />
    <display tag="screen" type="raster" rotate="270" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="trackball" player="1" buttons="2" minimum="0" maximum="4095" sensitivity="50" keydelta="30" reverse="yes" />
      <control type="trackball" player="2" buttons="2" minimum="0" maximum="4095" sensitivity="50" keydelta="30" reverse="yes" />
    </input>
    <dipswitch name="Round Time" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="60" value="2" />
      <dipvalue name="90" value="3" default="yes" />
      <dipvalue name="120" value="1" />
      <dipvalue name="150" value="0" />
    </dipswitch>
    <dipswitch name="Matches/Credit (2P)" tag="DSW" mask="4">
      <diplocation name="SW1" number="3" />
      <dipvalue name="1" value="4" default="yes" />
      <dipvalue name="2" value="0" />
    </dipswitch>
    <dipswitch name="Rounds/Match" tag="DSW" mask="8">
      <diplocation name="SW1" number="4" />
      <dipvalue name="2" value="8" default="yes" />
      <dipvalue name="3" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="16">
      <diplocation name="SW1" number="5" />
      <dipvalue name="Normal" value="16" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="Trackball Size" tag="DSW" mask="32">
      <diplocation name="SW1" number="6" />
      <dipvalue name="Small" value="32" default="yes" />
      <dipvalue name="Large" value="0" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="64">
      <diplocation name="SW1" number="7" />
      <dipvalue name="Off" value="64" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="128">
      <diplocation name="SW1" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="DSW" mask="1536">
      <diplocation name="SW2" number="2" />
      <diplocation name="SW2" number="3" />
      <dipvalue name="Upright" value="1024" default="yes" />
      <dipvalue name="Upright (2P)" value="512" />
      <dipvalue name="Cocktail" value="1536" />
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="2048">
      <diplocation name="SW2" number="4" />
      <dipvalue name="Mode 1" value="2048" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="12288">
      <condition tag="DSW" mask="2048" relation="eq" value="0" />
      <diplocation name="SW2" number="5" />
      <diplocation name="SW2" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="4096" />
      <dipvalue name="2 Coins/1 Credit" value="8192" />
      <dipvalue name="1 Coin/1 Credit" value="12288" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="49152">
      <condition tag="DSW" mask="2048" relation="eq" value="0" />
      <diplocation name="SW2" number="7" />
      <diplocation name="SW2" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="49152" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="32768" />
      <dipvalue name="1 Coin/5 Credits" value="16384" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="61440">
      <condition tag="DSW" mask="2048" relation="ne" value="0" />
      <diplocation name="SW2" number="5" />
      <diplocation name="SW2" number="6" />
      <diplocation name="SW2" number="7" />
      <diplocation name="SW2" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="40960" />
      <dipvalue name="5 Coins/1 Credit" value="45056" />
      <dipvalue name="4 Coins/1 Credit" value="49152" />
      <dipvalue name="3 Coins/1 Credit" value="53248" />
      <dipvalue name="2 Coins/1 Credit" value="57344" />
      <dipvalue name="3 Coins/2 Credits" value="12288" />
      <dipvalue name="4 Coins/3 Credits" value="8192" />
      <dipvalue name="1 Coin/1 Credit" value="61440" default="yes" />
      <dipvalue name="1 Coin/1 Credit, 1 Coin/Continue" value="4096" />
      <dipvalue name="2 Coins/3 Credits" value="16384" />
      <dipvalue name="1 Coin/2 Credits" value="36864" />
      <dipvalue name="1 Coin/3 Credits" value="32768" />
      <dipvalue name="1 Coin/4 Credits" value="28672" />
      <dipvalue name="1 Coin/5 Credits" value="24576" />
      <dipvalue name="1 Coin/6 Credits" value="20480" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <port tag=":TRACK0_X">
      <analog mask="4095" />
    </port>
    <port tag=":TRACK0_Y">
      <analog mask="4095" />
    </port>
    <port tag=":TRACK1_X">
      <analog mask="4095" />
    </port>
    <port tag=":TRACK1_Y">
      <analog mask="4095" />
    </port>
    <driver status="good" emulation="good" cocktail="preliminary" savestate="supported" />
  </machine>
  <machine name="poundforj" sourcefile="m72.cpp" cloneof="poundfor" romof="poundfor">
    <description>Pound for Pound (Japan)</description>
    <year>1990</year>
    <manufacturer>Irem</manufacturer>
    <rom name="ppa-h0-.9e" size="131072" crc="f0165e3b" sha1="a0482b34c0d05d8f48d1b16f2bc2d5d9ec465dc8" region="maincpu" offset="1" />
    <rom name="ppa-l0-.9d" size="131072" crc="f954f99f" sha1="6e7a9718dc63e595403bfc0f1ceae4a71dc75133" region="maincpu" offset="0" />
    <rom name="ppa-h1.9f" merge="ppa-h1.9f" size="131072" crc="f6c82f48" sha1="b38a2f9f0f6439b2cf453fec87ca11d959777ee6" region="maincpu" offset="40001" />
    <rom name="ppa-l1.9c" merge="ppa-l1.9c" size="131072" crc="5b07b087" sha1="04a2403eb8c443cb92b880edc612542acdbcafa4" region="maincpu" offset="40000" />
    <rom name="ppa-sp.4j" merge="ppa-sp.4j" size="65536" crc="3f458a5b" sha1="d73740b2a548bf8a895909da0841f18d9ed32668" region="soundcpu" offset="0" />
    <rom name="ppb-n0.bin" merge="ppb-n0.bin" size="262144" crc="951a41f8" sha1="59b64f63ea2452c2b42ff7ebf1ff6fc4e7879ce3" region="sprites" offset="0" />
    <rom name="ppb-n1.bin" merge="ppb-n1.bin" size="262144" crc="c609b7f2" sha1="1da3550c7e4d2a26d75d143934680d9177ba5c35" region="sprites" offset="40000" />
    <rom name="ppb-n2.bin" merge="ppb-n2.bin" size="262144" crc="318c0b5f" sha1="1d4cd17dc2f8fc4e523eaf679f21d83e1bfade4e" region="sprites" offset="80000" />
    <rom name="ppb-n3.bin" merge="ppb-n3.bin" size="262144" crc="93dc9490" sha1="3df4d57a7bf19443f5aa6a416bcee968f81d9059" region="sprites" offset="c0000" />
    <rom name="ppa-g00.bin" merge="ppa-g00.bin" size="131072" crc="8a88a174" sha1="d360b9014aec31960538ee488894496248a820dc" region="gfx2" offset="0" />
    <rom name="ppa-g10.bin" merge="ppa-g10.bin" size="131072" crc="e48a66ac" sha1="49b33db6a922d6f1d1417e28714a67431b7c0217" region="gfx2" offset="20000" />
    <rom name="ppa-g20.bin" merge="ppa-g20.bin" size="131072" crc="12b93e79" sha1="f3d2b76a30874827c8998c1d13a55a3990b699b7" region="gfx2" offset="40000" />
    <rom name="ppa-g30.bin" merge="ppa-g30.bin" size="131072" crc="faa39aee" sha1="9cc1a468b304437766c04189054d3b8f7ff1f958" region="gfx2" offset="60000" />
    <rom name="ppa-v0.bin" merge="ppa-v0.bin" size="262144" crc="03321664" sha1="51f2b2b712385c1cd55fd069829efac01838d603" region="samples" offset="0" />
    <device_ref name="v30" />
    <device_ref name="z80" />
    <device_ref name="pic8259" />
    <device_ref name="upd4701a" />
    <device_ref name="upd4701a" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="m72_audio" />
    <device_ref name="ym2151" />
    <device_ref name="dac_8bit_r2r" />
    <chip type="cpu" tag="maincpu" name="NEC V30" clock="8000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <chip type="audio" tag="dac" name="8-Bit R-2R DAC" />
    <display tag="screen" type="raster" rotate="270" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="trackball" player="1" buttons="2" minimum="0" maximum="4095" sensitivity="50" keydelta="30" reverse="yes" />
      <control type="trackball" player="2" buttons="2" minimum="0" maximum="4095" sensitivity="50" keydelta="30" reverse="yes" />
    </input>
    <dipswitch name="Round Time" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="60" value="2" />
      <dipvalue name="90" value="3" default="yes" />
      <dipvalue name="120" value="1" />
      <dipvalue name="150" value="0" />
    </dipswitch>
    <dipswitch name="Matches/Credit (2P)" tag="DSW" mask="4">
      <diplocation name="SW1" number="3" />
      <dipvalue name="1" value="4" default="yes" />
      <dipvalue name="2" value="0" />
    </dipswitch>
    <dipswitch name="Rounds/Match" tag="DSW" mask="8">
      <diplocation name="SW1" number="4" />
      <dipvalue name="2" value="8" default="yes" />
      <dipvalue name="3" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="16">
      <diplocation name="SW1" number="5" />
      <dipvalue name="Normal" value="16" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="Trackball Size" tag="DSW" mask="32">
      <diplocation name="SW1" number="6" />
      <dipvalue name="Small" value="32" default="yes" />
      <dipvalue name="Large" value="0" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="64">
      <diplocation name="SW1" number="7" />
      <dipvalue name="Off" value="64" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="128">
      <diplocation name="SW1" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="DSW" mask="1536">
      <diplocation name="SW2" number="2" />
      <diplocation name="SW2" number="3" />
      <dipvalue name="Upright" value="1024" default="yes" />
      <dipvalue name="Upright (2P)" value="512" />
      <dipvalue name="Cocktail" value="1536" />
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="2048">
      <diplocation name="SW2" number="4" />
      <dipvalue name="Mode 1" value="2048" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="12288">
      <condition tag="DSW" mask="2048" relation="eq" value="0" />
      <diplocation name="SW2" number="5" />
      <diplocation name="SW2" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="4096" />
      <dipvalue name="2 Coins/1 Credit" value="8192" />
      <dipvalue name="1 Coin/1 Credit" value="12288" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="49152">
      <condition tag="DSW" mask="2048" relation="eq" value="0" />
      <diplocation name="SW2" number="7" />
      <diplocation name="SW2" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="49152" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="32768" />
      <dipvalue name="1 Coin/5 Credits" value="16384" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="61440">
      <condition tag="DSW" mask="2048" relation="ne" value="0" />
      <diplocation name="SW2" number="5" />
      <diplocation name="SW2" number="6" />
      <diplocation name="SW2" number="7" />
      <diplocation name="SW2" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="40960" />
      <dipvalue name="5 Coins/1 Credit" value="45056" />
      <dipvalue name="4 Coins/1 Credit" value="49152" />
      <dipvalue name="3 Coins/1 Credit" value="53248" />
      <dipvalue name="2 Coins/1 Credit" value="57344" />
      <dipvalue name="3 Coins/2 Credits" value="12288" />
      <dipvalue name="4 Coins/3 Credits" value="8192" />
      <dipvalue name="1 Coin/1 Credit" value="61440" default="yes" />
      <dipvalue name="1 Coin/1 Credit, 1 Coin/Continue" value="4096" />
      <dipvalue name="2 Coins/3 Credits" value="16384" />
      <dipvalue name="1 Coin/2 Credits" value="36864" />
      <dipvalue name="1 Coin/3 Credits" value="32768" />
      <dipvalue name="1 Coin/4 Credits" value="28672" />
      <dipvalue name="1 Coin/5 Credits" value="24576" />
      <dipvalue name="1 Coin/6 Credits" value="20480" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <port tag=":TRACK0_X">
      <analog mask="4095" />
    </port>
    <port tag=":TRACK0_Y">
      <analog mask="4095" />
    </port>
    <port tag=":TRACK1_X">
      <analog mask="4095" />
    </port>
    <port tag=":TRACK1_Y">
      <analog mask="4095" />
    </port>
    <driver status="good" emulation="good" cocktail="preliminary" savestate="supported" />
  </machine>
  <machine name="poundforu" sourcefile="m72.cpp" cloneof="poundfor" romof="poundfor">
    <description>Pound for Pound (US)</description>
    <year>1990</year>
    <manufacturer>Irem America</manufacturer>
    <rom name="ppa-ho-a.9e" size="131072" crc="ff4c83a4" sha1="1b7791c784bf7c4774e3200b76d65ab0bf0ff93b" region="maincpu" offset="1" />
    <rom name="ppa-lo-a.9d" size="131072" crc="3374ce8f" sha1="7455f8339aeed0ef3d0567baa804b62ca3615283" region="maincpu" offset="0" />
    <rom name="ppa-h1.9f" merge="ppa-h1.9f" size="131072" crc="f6c82f48" sha1="b38a2f9f0f6439b2cf453fec87ca11d959777ee6" region="maincpu" offset="40001" />
    <rom name="ppa-l1.9c" merge="ppa-l1.9c" size="131072" crc="5b07b087" sha1="04a2403eb8c443cb92b880edc612542acdbcafa4" region="maincpu" offset="40000" />
    <rom name="ppa-sp.4j" merge="ppa-sp.4j" size="65536" crc="3f458a5b" sha1="d73740b2a548bf8a895909da0841f18d9ed32668" region="soundcpu" offset="0" />
    <rom name="ppb-n0.bin" merge="ppb-n0.bin" size="262144" crc="951a41f8" sha1="59b64f63ea2452c2b42ff7ebf1ff6fc4e7879ce3" region="sprites" offset="0" />
    <rom name="ppb-n1.bin" merge="ppb-n1.bin" size="262144" crc="c609b7f2" sha1="1da3550c7e4d2a26d75d143934680d9177ba5c35" region="sprites" offset="40000" />
    <rom name="ppb-n2.bin" merge="ppb-n2.bin" size="262144" crc="318c0b5f" sha1="1d4cd17dc2f8fc4e523eaf679f21d83e1bfade4e" region="sprites" offset="80000" />
    <rom name="ppb-n3.bin" merge="ppb-n3.bin" size="262144" crc="93dc9490" sha1="3df4d57a7bf19443f5aa6a416bcee968f81d9059" region="sprites" offset="c0000" />
    <rom name="ppa-g00.bin" merge="ppa-g00.bin" size="131072" crc="8a88a174" sha1="d360b9014aec31960538ee488894496248a820dc" region="gfx2" offset="0" />
    <rom name="ppa-g10.bin" merge="ppa-g10.bin" size="131072" crc="e48a66ac" sha1="49b33db6a922d6f1d1417e28714a67431b7c0217" region="gfx2" offset="20000" />
    <rom name="ppa-g20.bin" merge="ppa-g20.bin" size="131072" crc="12b93e79" sha1="f3d2b76a30874827c8998c1d13a55a3990b699b7" region="gfx2" offset="40000" />
    <rom name="ppa-g30.bin" merge="ppa-g30.bin" size="131072" crc="faa39aee" sha1="9cc1a468b304437766c04189054d3b8f7ff1f958" region="gfx2" offset="60000" />
    <rom name="ppa-v0.bin" merge="ppa-v0.bin" size="262144" crc="03321664" sha1="51f2b2b712385c1cd55fd069829efac01838d603" region="samples" offset="0" />
    <device_ref name="v30" />
    <device_ref name="z80" />
    <device_ref name="pic8259" />
    <device_ref name="upd4701a" />
    <device_ref name="upd4701a" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="m72_audio" />
    <device_ref name="ym2151" />
    <device_ref name="dac_8bit_r2r" />
    <chip type="cpu" tag="maincpu" name="NEC V30" clock="8000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <chip type="audio" tag="dac" name="8-Bit R-2R DAC" />
    <display tag="screen" type="raster" rotate="270" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="trackball" player="1" buttons="2" minimum="0" maximum="4095" sensitivity="50" keydelta="30" reverse="yes" />
      <control type="trackball" player="2" buttons="2" minimum="0" maximum="4095" sensitivity="50" keydelta="30" reverse="yes" />
    </input>
    <dipswitch name="Round Time" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="60" value="2" />
      <dipvalue name="90" value="3" default="yes" />
      <dipvalue name="120" value="1" />
      <dipvalue name="150" value="0" />
    </dipswitch>
    <dipswitch name="Matches/Credit (2P)" tag="DSW" mask="4">
      <diplocation name="SW1" number="3" />
      <dipvalue name="1" value="4" default="yes" />
      <dipvalue name="2" value="0" />
    </dipswitch>
    <dipswitch name="Rounds/Match" tag="DSW" mask="8">
      <diplocation name="SW1" number="4" />
      <dipvalue name="2" value="8" default="yes" />
      <dipvalue name="3" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="16">
      <diplocation name="SW1" number="5" />
      <dipvalue name="Normal" value="16" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="Trackball Size" tag="DSW" mask="32">
      <diplocation name="SW1" number="6" />
      <dipvalue name="Small" value="32" default="yes" />
      <dipvalue name="Large" value="0" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="64">
      <diplocation name="SW1" number="7" />
      <dipvalue name="Off" value="64" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="128">
      <diplocation name="SW1" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="DSW" mask="1536">
      <diplocation name="SW2" number="2" />
      <diplocation name="SW2" number="3" />
      <dipvalue name="Upright" value="1024" default="yes" />
      <dipvalue name="Upright (2P)" value="512" />
      <dipvalue name="Cocktail" value="1536" />
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="2048">
      <diplocation name="SW2" number="4" />
      <dipvalue name="Mode 1" value="2048" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="12288">
      <condition tag="DSW" mask="2048" relation="eq" value="0" />
      <diplocation name="SW2" number="5" />
      <diplocation name="SW2" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="4096" />
      <dipvalue name="2 Coins/1 Credit" value="8192" />
      <dipvalue name="1 Coin/1 Credit" value="12288" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="49152">
      <condition tag="DSW" mask="2048" relation="eq" value="0" />
      <diplocation name="SW2" number="7" />
      <diplocation name="SW2" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="49152" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="32768" />
      <dipvalue name="1 Coin/5 Credits" value="16384" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="61440">
      <condition tag="DSW" mask="2048" relation="ne" value="0" />
      <diplocation name="SW2" number="5" />
      <diplocation name="SW2" number="6" />
      <diplocation name="SW2" number="7" />
      <diplocation name="SW2" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="40960" />
      <dipvalue name="5 Coins/1 Credit" value="45056" />
      <dipvalue name="4 Coins/1 Credit" value="49152" />
      <dipvalue name="3 Coins/1 Credit" value="53248" />
      <dipvalue name="2 Coins/1 Credit" value="57344" />
      <dipvalue name="3 Coins/2 Credits" value="12288" />
      <dipvalue name="4 Coins/3 Credits" value="8192" />
      <dipvalue name="1 Coin/1 Credit" value="61440" default="yes" />
      <dipvalue name="1 Coin/1 Credit, 1 Coin/Continue" value="4096" />
      <dipvalue name="2 Coins/3 Credits" value="16384" />
      <dipvalue name="1 Coin/2 Credits" value="36864" />
      <dipvalue name="1 Coin/3 Credits" value="32768" />
      <dipvalue name="1 Coin/4 Credits" value="28672" />
      <dipvalue name="1 Coin/5 Credits" value="24576" />
      <dipvalue name="1 Coin/6 Credits" value="20480" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <port tag=":TRACK0_X">
      <analog mask="4095" />
    </port>
    <port tag=":TRACK0_Y">
      <analog mask="4095" />
    </port>
    <port tag=":TRACK1_X">
      <analog mask="4095" />
    </port>
    <port tag=":TRACK1_Y">
      <analog mask="4095" />
    </port>
    <driver status="good" emulation="good" cocktail="preliminary" savestate="supported" />
  </machine>
  <machine name="rtype" sourcefile="m72.cpp">
    <description>R-Type (World)</description>
    <year>1987</year>
    <manufacturer>Irem</manufacturer>
    <rom name="rt_r-h0-b.1b" size="65536" crc="591c7754" sha1="0b9d5474bc5963224923126cf84d74a39b8270cc" region="maincpu" offset="1" />
    <rom name="rt_r-l0-b.3b" size="65536" crc="a1928df0" sha1="3001c1b87cd1d441ba1226fb5b9dd6268458c0e8" region="maincpu" offset="0" />
    <rom name="rt_r-h1-b.1c" size="65536" crc="a9d71eca" sha1="008d1dc289df2ae2ba8f93d319c2b2c108cb9b89" region="maincpu" offset="20001" />
    <rom name="rt_r-l1-b.3c" size="65536" crc="0df3573d" sha1="0144c846fd0bdb3e4d790f6cb7bb64829e931b76" region="maincpu" offset="20000" />
    <rom name="rt_r-00.1h" size="65536" crc="dad53bc0" sha1="1e3bc498861946278a0b1fe24259f5d224e265d7" region="sprites" offset="0" />
    <rom name="rt_r-01.1j" size="32768" crc="5e441e7f" sha1="6741eb7f2d9d985b5a89eefc73ea44c3e38de6f7" region="sprites" offset="10000" />
    <rom name="rt_r-10.1k" size="65536" crc="d6a66298" sha1="d2873d05aa3b257e7699c188880ac3daad672fa5" region="sprites" offset="20000" />
    <rom name="rt_r-11.1l" size="32768" crc="791df4f8" sha1="5239a97222212ac9c019177771cb2b5096b7bc17" region="sprites" offset="30000" />
    <rom name="rt_r-20.3h" size="65536" crc="fc247c8a" sha1="01cf0a60f47fa5e2ed430a3f075e69e6cb762a48" region="sprites" offset="40000" />
    <rom name="rt_r-21.3j" size="32768" crc="ed793841" sha1="7e55a9a11fcd989db39bce6be48821b747c7d97f" region="sprites" offset="50000" />
    <rom name="rt_r-30.3k" size="65536" crc="eb02a1cb" sha1="60a394ab53afdcbbf9e88083b8dbe8c897170d77" region="sprites" offset="60000" />
    <rom name="rt_r-31.3l" size="32768" crc="8558355d" sha1="b5467d1f22f6e5f90c5d8a8ac2d55974f287d589" region="sprites" offset="70000" />
    <rom name="rt_b-a0.3c" size="32768" crc="4e212fb0" sha1="687061ecade2ebd0bd1343c9c4a831791853f79c" region="gfx2" offset="0" />
    <rom name="rt_b-a1.3d" size="32768" crc="8a65bdff" sha1="130bf6af521f13247a739a95eab4bdaa24b2ac10" region="gfx2" offset="8000" />
    <rom name="rt_b-a2.3a" size="32768" crc="5a4ae5b9" sha1="95c3b64f50e6f673b2bf9b40642c152da5009d25" region="gfx2" offset="10000" />
    <rom name="rt_b-a3.3e" size="32768" crc="73327606" sha1="9529ecdedd30e2a0400fb1083117992cc18b5158" region="gfx2" offset="18000" />
    <rom name="rt_b-b0.3j" size="32768" crc="a7b17491" sha1="5b390770e56ba2d35e108534d7eda8dca996fdf7" region="gfx3" offset="0" />
    <rom name="rt_b-b1.3k" size="32768" crc="b9709686" sha1="700905a3e9661e0874939f54da2909e1396ce596" region="gfx3" offset="8000" />
    <rom name="rt_b-b2.3h" size="32768" crc="433b229a" sha1="14222eaa3e67e5a7f80eafcf22bac4eb2d485a9a" region="gfx3" offset="10000" />
    <rom name="rt_b-b3.3f" size="32768" crc="ad89b072" sha1="e2683d0e7415f3abd147e518bf6c87e44744cd4f" region="gfx3" offset="18000" />
    <device_ref name="v30" />
    <device_ref name="z80" />
    <device_ref name="pic8259" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="ym2151" />
    <chip type="cpu" tag="maincpu" name="NEC V30" clock="8000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <display tag="screen" type="raster" rotate="0" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Lives" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="2" value="2" />
      <dipvalue name="3" value="3" default="yes" />
      <dipvalue name="4" value="1" />
      <dipvalue name="5" value="0" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="4">
      <diplocation name="SW1" number="3" />
      <dipvalue name="Off" value="4" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSW" mask="8">
      <diplocation name="SW1" number="4" />
      <dipvalue name="50K 150K 250K 400K 600K" value="0" />
      <dipvalue name="100K 200K 350K 500K 700K" value="8" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="48">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="32" />
      <dipvalue name="1 Coin/1 Credit" value="48" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="192">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="192" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/5 Credits" value="64" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="240">
      <condition tag="DSW" mask="1024" relation="ne" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="160" />
      <dipvalue name="5 Coins/1 Credit" value="176" />
      <dipvalue name="4 Coins/1 Credit" value="192" />
      <dipvalue name="3 Coins/1 Credit" value="208" />
      <dipvalue name="8 Coins/3 Credits" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="224" />
      <dipvalue name="5 Coins/3 Credits" value="32" />
      <dipvalue name="3 Coins/2 Credits" value="48" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="64" />
      <dipvalue name="1 Coin/2 Credits" value="144" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/4 Credits" value="112" />
      <dipvalue name="1 Coin/5 Credits" value="96" />
      <dipvalue name="1 Coin/6 Credits" value="80" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="DSW" mask="512">
      <diplocation name="SW2" number="2" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="512" />
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="1024">
      <diplocation name="SW2" number="3" />
      <dipvalue name="Mode 1" value="1024" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="2048">
      <diplocation name="SW2" number="4" />
      <dipvalue name="Normal" value="2048" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSW" mask="4096">
      <diplocation name="SW2" number="5" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="4096" default="yes" />
    </dipswitch>
    <dipswitch name="Stop Mode" tag="DSW" mask="8192">
      <diplocation name="SW2" number="6" />
      <dipvalue name="Off" value="8192" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Invulnerability" tag="DSW" mask="16384">
      <diplocation name="SW2" number="7" />
      <dipvalue name="Off" value="16384" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="32768">
      <diplocation name="SW2" number="8" />
      <dipvalue name="Off" value="32768" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <driver status="good" emulation="good" cocktail="preliminary" savestate="supported" />
  </machine>
  <machine name="rtype2" sourcefile="m72.cpp">
    <description>R-Type II (World)</description>
    <year>1989</year>
    <manufacturer>Irem</manufacturer>
    <rom name="rt2-a-h0-d.54" size="131072" crc="d8ece6f4" sha1="f7bb246fe8b75af24716d419bb3c6e7d9cd0971e" region="maincpu" offset="1" />
    <rom name="rt2-a-l0-d.60" size="131072" crc="32cfb2e4" sha1="d4b44a40e2933040eddb2b09de7bfe28d76c5f25" region="maincpu" offset="0" />
    <rom name="rt2-a-h1-d.53" size="131072" crc="4f6e9b15" sha1="ef733c2615951f54691877ad3e84d08107723324" region="maincpu" offset="40001" />
    <rom name="rt2-a-l1-d.59" size="131072" crc="0fd123bf" sha1="1133163f6716e9a4bbb437b3a471477d0bd97051" region="maincpu" offset="40000" />
    <rom name="ic17.4f" size="65536" crc="73ffecb4" sha1="4795bf0d6263060c3d3759b659bdb189a4087600" region="soundcpu" offset="0" />
    <rom name="ic31.6l" size="131072" crc="2cd8f913" sha1="a53752b35da95b420dd29a09176d265d292b3938" region="sprites" offset="0" />
    <rom name="ic21.4l" size="131072" crc="5033066d" sha1="e125127f0610c63f9e59a585db547be5d49ed863" region="sprites" offset="20000" />
    <rom name="ic32.6m" size="131072" crc="ec3a0450" sha1="632bdd397f1bc67f6970faf7d09ab8d911e105fe" region="sprites" offset="40000" />
    <rom name="ic22.4m" size="131072" crc="db6176fc" sha1="1eaf72af0322490c98461aded202288e387caac1" region="sprites" offset="60000" />
    <rom name="ic50.7s" size="131072" crc="f3f8736e" sha1="37872b30459ad05b2981d4ac84983f3b52d0d2d6" region="gfx2" offset="0" />
    <rom name="ic51.7u" size="131072" crc="b4c543af" sha1="56042eba711160fc701021c8787414dcaddcdecb" region="gfx2" offset="20000" />
    <rom name="ic56.8s" size="131072" crc="4cb80d66" sha1="31c5496c14b277e428a2f22195fe1742d6a577d4" region="gfx2" offset="40000" />
    <rom name="ic57.8u" size="131072" crc="bee128e0" sha1="b149dae5f8f67a329d6df033fadf50ad75c0a57a" region="gfx2" offset="60000" />
    <rom name="ic65.9r" size="131072" crc="2dc9c71a" sha1="124e89c17f3af034d5a387ff3eab906d289c27f7" region="gfx2" offset="80000" />
    <rom name="ic66.9u" size="131072" crc="7533c428" sha1="ba435cfb6c3c49fcc4d716dcecf8f17545b8eec6" region="gfx2" offset="a0000" />
    <rom name="ic63.9m" size="131072" crc="a6ad67f2" sha1="b005b037ce8b3c932089982ecfbccdc922278fe3" region="gfx2" offset="c0000" />
    <rom name="ic64.9p" size="131072" crc="3686d555" sha1="d03754d9b8a6a3bfd4a85eeddacc35a36af197bd" region="gfx2" offset="e0000" />
    <rom name="ic14.4c" size="131072" crc="637172d5" sha1="9dd0dc409306287238826bf301e2a7a12d6cd9ce" region="samples" offset="0" />
    <device_ref name="v30" />
    <device_ref name="z80" />
    <device_ref name="pic8259" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="m72_audio" />
    <device_ref name="ym2151" />
    <device_ref name="dac_8bit_r2r" />
    <chip type="cpu" tag="maincpu" name="NEC V30" clock="8000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <chip type="audio" tag="dac" name="8-Bit R-2R DAC" />
    <display tag="screen" type="raster" rotate="0" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Lives" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="2" value="2" />
      <dipvalue name="3" value="3" default="yes" />
      <dipvalue name="4" value="1" />
      <dipvalue name="5" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="12">
      <diplocation name="SW1" number="3" />
      <diplocation name="SW1" number="4" />
      <dipvalue name="Easy" value="8" />
      <dipvalue name="Normal" value="12" default="yes" />
      <dipvalue name="Hard" value="4" />
      <dipvalue name="Hardest" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="48">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="32" />
      <dipvalue name="1 Coin/1 Credit" value="48" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="192">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="192" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/5 Credits" value="64" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="240">
      <condition tag="DSW" mask="1024" relation="ne" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="160" />
      <dipvalue name="5 Coins/1 Credit" value="176" />
      <dipvalue name="4 Coins/1 Credit" value="192" />
      <dipvalue name="3 Coins/1 Credit" value="208" />
      <dipvalue name="8 Coins/3 Credits" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="224" />
      <dipvalue name="5 Coins/3 Credits" value="32" />
      <dipvalue name="3 Coins/2 Credits" value="48" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="64" />
      <dipvalue name="1 Coin/2 Credits" value="144" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/4 Credits" value="112" />
      <dipvalue name="1 Coin/5 Credits" value="96" />
      <dipvalue name="1 Coin/6 Credits" value="80" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="512">
      <diplocation name="SW2" number="2" />
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="512" default="yes" />
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="1024">
      <diplocation name="SW2" number="3" />
      <dipvalue name="Mode 1" value="1024" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="DSW" mask="6144">
      <diplocation name="SW2" number="4" />
      <diplocation name="SW2" number="5" />
      <dipvalue name="Upright" value="4096" default="yes" />
      <dipvalue name="Upright (2P)" value="0" />
      <dipvalue name="Cocktail" value="6144" />
    </dipswitch>
    <dipswitch name="Stop Mode" tag="DSW" mask="8192">
      <diplocation name="SW2" number="6" />
      <dipvalue name="Off" value="8192" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="16384">
      <diplocation name="SW2" number="7" />
      <dipvalue name="Off" value="16384" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="32768">
      <diplocation name="SW2" number="8" />
      <dipvalue name="Off" value="32768" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <driver status="good" emulation="good" cocktail="preliminary" savestate="supported" />
  </machine>
  <machine name="rtype2j" sourcefile="m72.cpp" cloneof="rtype2" romof="rtype2">
    <description>R-Type II (Japan)</description>
    <year>1989</year>
    <manufacturer>Irem</manufacturer>
    <rom name="rt2-a-h0.54" size="131072" crc="7857ccf6" sha1="9f6774a8128ee2dbb5b6c42289095275337bc73e" region="maincpu" offset="1" />
    <rom name="rt2-a-l0.60" size="131072" crc="cb22cd6e" sha1="a877cffbac9f55bca8932b12540a4686ba975684" region="maincpu" offset="0" />
    <rom name="rt2-a-h1.53" size="131072" crc="49e75d28" sha1="956bafaaa6711a8a13f2bffe43e8d05d51d8a3c9" region="maincpu" offset="40001" />
    <rom name="rt2-a-l1.59" size="131072" crc="12ec1676" sha1="10cee9a87dd954444b0e64fad7f15a5ae529890d" region="maincpu" offset="40000" />
    <rom name="ic17.4f" merge="ic17.4f" size="65536" crc="73ffecb4" sha1="4795bf0d6263060c3d3759b659bdb189a4087600" region="soundcpu" offset="0" />
    <rom name="ic31.6l" merge="ic31.6l" size="131072" crc="2cd8f913" sha1="a53752b35da95b420dd29a09176d265d292b3938" region="sprites" offset="0" />
    <rom name="ic21.4l" merge="ic21.4l" size="131072" crc="5033066d" sha1="e125127f0610c63f9e59a585db547be5d49ed863" region="sprites" offset="20000" />
    <rom name="ic32.6m" merge="ic32.6m" size="131072" crc="ec3a0450" sha1="632bdd397f1bc67f6970faf7d09ab8d911e105fe" region="sprites" offset="40000" />
    <rom name="ic22.4m" merge="ic22.4m" size="131072" crc="db6176fc" sha1="1eaf72af0322490c98461aded202288e387caac1" region="sprites" offset="60000" />
    <rom name="ic50.7s" merge="ic50.7s" size="131072" crc="f3f8736e" sha1="37872b30459ad05b2981d4ac84983f3b52d0d2d6" region="gfx2" offset="0" />
    <rom name="ic51.7u" merge="ic51.7u" size="131072" crc="b4c543af" sha1="56042eba711160fc701021c8787414dcaddcdecb" region="gfx2" offset="20000" />
    <rom name="ic56.8s" merge="ic56.8s" size="131072" crc="4cb80d66" sha1="31c5496c14b277e428a2f22195fe1742d6a577d4" region="gfx2" offset="40000" />
    <rom name="ic57.8u" merge="ic57.8u" size="131072" crc="bee128e0" sha1="b149dae5f8f67a329d6df033fadf50ad75c0a57a" region="gfx2" offset="60000" />
    <rom name="ic65.9r" merge="ic65.9r" size="131072" crc="2dc9c71a" sha1="124e89c17f3af034d5a387ff3eab906d289c27f7" region="gfx2" offset="80000" />
    <rom name="ic66.9u" merge="ic66.9u" size="131072" crc="7533c428" sha1="ba435cfb6c3c49fcc4d716dcecf8f17545b8eec6" region="gfx2" offset="a0000" />
    <rom name="ic63.9m" merge="ic63.9m" size="131072" crc="a6ad67f2" sha1="b005b037ce8b3c932089982ecfbccdc922278fe3" region="gfx2" offset="c0000" />
    <rom name="ic64.9p" merge="ic64.9p" size="131072" crc="3686d555" sha1="d03754d9b8a6a3bfd4a85eeddacc35a36af197bd" region="gfx2" offset="e0000" />
    <rom name="ic14.4c" merge="ic14.4c" size="131072" crc="637172d5" sha1="9dd0dc409306287238826bf301e2a7a12d6cd9ce" region="samples" offset="0" />
    <rom name="rt2_b-4n-.bin" size="256" crc="b460c438" sha1="00e20cf754b6fd5138ee4d2f6ec28dff9e292fe6" region="proms" offset="0" />
    <rom name="rt2_b-4p-.bin" size="256" crc="a4f2c4bc" sha1="f13b0a4b52dcc6704063b676f09d83dcba170133" region="proms" offset="100" />
    <rom name="rt2-a-2h-.5" size="260" status="nodump" region="plds" offset="0" />
    <rom name="rt2-a-5l-.33" size="260" status="nodump" region="plds" offset="200" />
    <rom name="rt2-a-7d-.45" size="260" crc="53c1e087" sha1="b214ba4e7cc3d582ee85616923f38fd4873dacb1" region="plds" offset="400" />
    <rom name="rt2-b-3a-.9" size="260" status="nodump" region="plds" offset="600" />
    <device_ref name="v30" />
    <device_ref name="z80" />
    <device_ref name="pic8259" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="m72_audio" />
    <device_ref name="ym2151" />
    <device_ref name="dac_8bit_r2r" />
    <chip type="cpu" tag="maincpu" name="NEC V30" clock="8000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <chip type="audio" tag="dac" name="8-Bit R-2R DAC" />
    <display tag="screen" type="raster" rotate="0" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Lives" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="2" value="2" />
      <dipvalue name="3" value="3" default="yes" />
      <dipvalue name="4" value="1" />
      <dipvalue name="5" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="12">
      <diplocation name="SW1" number="3" />
      <diplocation name="SW1" number="4" />
      <dipvalue name="Easy" value="8" />
      <dipvalue name="Normal" value="12" default="yes" />
      <dipvalue name="Hard" value="4" />
      <dipvalue name="Hardest" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="48">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="32" />
      <dipvalue name="1 Coin/1 Credit" value="48" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="192">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="192" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/5 Credits" value="64" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="240">
      <condition tag="DSW" mask="1024" relation="ne" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="160" />
      <dipvalue name="5 Coins/1 Credit" value="176" />
      <dipvalue name="4 Coins/1 Credit" value="192" />
      <dipvalue name="3 Coins/1 Credit" value="208" />
      <dipvalue name="8 Coins/3 Credits" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="224" />
      <dipvalue name="5 Coins/3 Credits" value="32" />
      <dipvalue name="3 Coins/2 Credits" value="48" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="64" />
      <dipvalue name="1 Coin/2 Credits" value="144" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/4 Credits" value="112" />
      <dipvalue name="1 Coin/5 Credits" value="96" />
      <dipvalue name="1 Coin/6 Credits" value="80" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="512">
      <diplocation name="SW2" number="2" />
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="512" default="yes" />
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="1024">
      <diplocation name="SW2" number="3" />
      <dipvalue name="Mode 1" value="1024" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="DSW" mask="6144">
      <diplocation name="SW2" number="4" />
      <diplocation name="SW2" number="5" />
      <dipvalue name="Upright" value="4096" default="yes" />
      <dipvalue name="Upright (2P)" value="0" />
      <dipvalue name="Cocktail" value="6144" />
    </dipswitch>
    <dipswitch name="Stop Mode" tag="DSW" mask="8192">
      <diplocation name="SW2" number="6" />
      <dipvalue name="Off" value="8192" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="16384">
      <diplocation name="SW2" number="7" />
      <dipvalue name="Off" value="16384" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="32768">
      <diplocation name="SW2" number="8" />
      <dipvalue name="Off" value="32768" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <driver status="good" emulation="good" cocktail="preliminary" savestate="supported" />
  </machine>
  <machine name="rtype2jc" sourcefile="m72.cpp" cloneof="rtype2" romof="rtype2">
    <description>R-Type II (Japan, revision C)</description>
    <year>1989</year>
    <manufacturer>Irem</manufacturer>
    <rom name="rt2-a-h0-c.54" size="131072" crc="ef9a9990" sha1="fdf8fb7cb2b16f3cc58592da5c696ccff85f87e0" region="maincpu" offset="1" />
    <rom name="rt2-a-l0-c.60" size="131072" crc="d8b9da64" sha1="ce19fc95d0adefa57c2161d7b0d756ecf799c707" region="maincpu" offset="0" />
    <rom name="rt2-a-h1-c.53" size="131072" crc="1b1870f4" sha1="9a98b146980a87d088b7157da7a64c99902ddd54" region="maincpu" offset="40001" />
    <rom name="rt2-a-l1-c.59" size="131072" crc="60fdff35" sha1="9c89682deebfa88864b5af9cf0f05944d5c2212f" region="maincpu" offset="40000" />
    <rom name="ic17.4f" merge="ic17.4f" size="65536" crc="73ffecb4" sha1="4795bf0d6263060c3d3759b659bdb189a4087600" region="soundcpu" offset="0" />
    <rom name="ic31.6l" merge="ic31.6l" size="131072" crc="2cd8f913" sha1="a53752b35da95b420dd29a09176d265d292b3938" region="sprites" offset="0" />
    <rom name="ic21.4l" merge="ic21.4l" size="131072" crc="5033066d" sha1="e125127f0610c63f9e59a585db547be5d49ed863" region="sprites" offset="20000" />
    <rom name="ic32.6m" merge="ic32.6m" size="131072" crc="ec3a0450" sha1="632bdd397f1bc67f6970faf7d09ab8d911e105fe" region="sprites" offset="40000" />
    <rom name="ic22.4m" merge="ic22.4m" size="131072" crc="db6176fc" sha1="1eaf72af0322490c98461aded202288e387caac1" region="sprites" offset="60000" />
    <rom name="ic50.7s" merge="ic50.7s" size="131072" crc="f3f8736e" sha1="37872b30459ad05b2981d4ac84983f3b52d0d2d6" region="gfx2" offset="0" />
    <rom name="ic51.7u" merge="ic51.7u" size="131072" crc="b4c543af" sha1="56042eba711160fc701021c8787414dcaddcdecb" region="gfx2" offset="20000" />
    <rom name="ic56.8s" merge="ic56.8s" size="131072" crc="4cb80d66" sha1="31c5496c14b277e428a2f22195fe1742d6a577d4" region="gfx2" offset="40000" />
    <rom name="ic57.8u" merge="ic57.8u" size="131072" crc="bee128e0" sha1="b149dae5f8f67a329d6df033fadf50ad75c0a57a" region="gfx2" offset="60000" />
    <rom name="ic65.9r" merge="ic65.9r" size="131072" crc="2dc9c71a" sha1="124e89c17f3af034d5a387ff3eab906d289c27f7" region="gfx2" offset="80000" />
    <rom name="ic66.9u" merge="ic66.9u" size="131072" crc="7533c428" sha1="ba435cfb6c3c49fcc4d716dcecf8f17545b8eec6" region="gfx2" offset="a0000" />
    <rom name="ic63.9m" merge="ic63.9m" size="131072" crc="a6ad67f2" sha1="b005b037ce8b3c932089982ecfbccdc922278fe3" region="gfx2" offset="c0000" />
    <rom name="ic64.9p" merge="ic64.9p" size="131072" crc="3686d555" sha1="d03754d9b8a6a3bfd4a85eeddacc35a36af197bd" region="gfx2" offset="e0000" />
    <rom name="ic14.4c" merge="ic14.4c" size="131072" crc="637172d5" sha1="9dd0dc409306287238826bf301e2a7a12d6cd9ce" region="samples" offset="0" />
    <device_ref name="v30" />
    <device_ref name="z80" />
    <device_ref name="pic8259" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="m72_audio" />
    <device_ref name="ym2151" />
    <device_ref name="dac_8bit_r2r" />
    <chip type="cpu" tag="maincpu" name="NEC V30" clock="8000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <chip type="audio" tag="dac" name="8-Bit R-2R DAC" />
    <display tag="screen" type="raster" rotate="0" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Lives" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="2" value="2" />
      <dipvalue name="3" value="3" default="yes" />
      <dipvalue name="4" value="1" />
      <dipvalue name="5" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="12">
      <diplocation name="SW1" number="3" />
      <diplocation name="SW1" number="4" />
      <dipvalue name="Easy" value="8" />
      <dipvalue name="Normal" value="12" default="yes" />
      <dipvalue name="Hard" value="4" />
      <dipvalue name="Hardest" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="48">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="32" />
      <dipvalue name="1 Coin/1 Credit" value="48" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="192">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="192" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/5 Credits" value="64" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="240">
      <condition tag="DSW" mask="1024" relation="ne" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="160" />
      <dipvalue name="5 Coins/1 Credit" value="176" />
      <dipvalue name="4 Coins/1 Credit" value="192" />
      <dipvalue name="3 Coins/1 Credit" value="208" />
      <dipvalue name="8 Coins/3 Credits" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="224" />
      <dipvalue name="5 Coins/3 Credits" value="32" />
      <dipvalue name="3 Coins/2 Credits" value="48" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="64" />
      <dipvalue name="1 Coin/2 Credits" value="144" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/4 Credits" value="112" />
      <dipvalue name="1 Coin/5 Credits" value="96" />
      <dipvalue name="1 Coin/6 Credits" value="80" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="512">
      <diplocation name="SW2" number="2" />
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="512" default="yes" />
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="1024">
      <diplocation name="SW2" number="3" />
      <dipvalue name="Mode 1" value="1024" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="DSW" mask="6144">
      <diplocation name="SW2" number="4" />
      <diplocation name="SW2" number="5" />
      <dipvalue name="Upright" value="4096" default="yes" />
      <dipvalue name="Upright (2P)" value="0" />
      <dipvalue name="Cocktail" value="6144" />
    </dipswitch>
    <dipswitch name="Stop Mode" tag="DSW" mask="8192">
      <diplocation name="SW2" number="6" />
      <dipvalue name="Off" value="8192" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="16384">
      <diplocation name="SW2" number="7" />
      <dipvalue name="Off" value="16384" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="32768">
      <diplocation name="SW2" number="8" />
      <dipvalue name="Off" value="32768" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <driver status="good" emulation="good" cocktail="preliminary" savestate="supported" />
  </machine>
  <machine name="rtype2m82b" sourcefile="m72.cpp" cloneof="rtype2" romof="rtype2">
    <description>R-Type II (Japan, bootleg M82 conversion)</description>
    <year>1997</year>
    <manufacturer>bootleg</manufacturer>
    <rom name="rt2_h0.bin" size="131072" crc="47639a78" sha1="d7dd851fed96d46c850e5c8f24d9d1a081f6b297" region="maincpu" offset="1" />
    <rom name="rt2_l0.bin" size="131072" crc="a1661cdf" sha1="d209328d678fc2fc405bd20f5134bd85b4cd4802" region="maincpu" offset="0" />
    <rom name="rt2_h1.bin" size="131072" crc="4b79840c" sha1="6cf8c8cf4bcf5e2acdaa05b8dca2f2a969edc2c5" region="maincpu" offset="40001" />
    <rom name="rt2_l1.bin" size="131072" crc="6ab3ae42" sha1="d3d7c35e1583b55cc668aa011471c3bf04a541af" region="maincpu" offset="40000" />
    <rom name="rt2_sp.bin" merge="ic17.4f" size="65536" crc="73ffecb4" sha1="4795bf0d6263060c3d3759b659bdb189a4087600" region="soundcpu" offset="0" />
    <rom name="rt2_n0.bin" merge="ic31.6l" size="131072" crc="2cd8f913" sha1="a53752b35da95b420dd29a09176d265d292b3938" region="sprites" offset="0" />
    <rom name="rt2_n1.bin" merge="ic21.4l" size="131072" crc="5033066d" sha1="e125127f0610c63f9e59a585db547be5d49ed863" region="sprites" offset="20000" />
    <rom name="rt2_n2.bin" merge="ic32.6m" size="131072" crc="ec3a0450" sha1="632bdd397f1bc67f6970faf7d09ab8d911e105fe" region="sprites" offset="40000" />
    <rom name="rt2_n3.bin" merge="ic22.4m" size="131072" crc="db6176fc" sha1="1eaf72af0322490c98461aded202288e387caac1" region="sprites" offset="60000" />
    <rom name="rt2_c0.bin" size="262144" crc="f5bad5f2" sha1="dc86b93f62e8947e3551f07e393e740e5dc43f5e" region="gfx2" offset="0" />
    <rom name="rt2_c1.bin" size="262144" crc="71451778" sha1="52ca7aa8522b988a19556313041450c767dad054" region="gfx2" offset="40000" />
    <rom name="rt2_c2.bin" size="262144" crc="c6b0c352" sha1="eec4fa88c27815960106881e7ccb23e62556bf1c" region="gfx2" offset="80000" />
    <rom name="rt2_c3.bin" size="262144" crc="6d530a32" sha1="4e4100e5e5d88e65fb5494474d3692ecd8f44343" region="gfx2" offset="c0000" />
    <rom name="mt_f0.bin" size="131072" crc="2d5e05d5" sha1="18bdc9c561dbf0f91642161ca985d2154bd58b5d" region="sprites2" offset="0" />
    <rom name="mt_f1.bin" size="131072" crc="c68cd65f" sha1="8999b558b4af0f453ada9e4ef705163df96844e6" region="sprites2" offset="20000" />
    <rom name="mt_f2.bin" size="131072" crc="a71feb2d" sha1="47e366b422772bed08ee4d1c338970687d6c3b4c" region="sprites2" offset="40000" />
    <rom name="mt_f3.bin" size="131072" crc="179f7562" sha1="6d28b199daffc62e8fa9009878ac0bb976ccbb2a" region="sprites2" offset="60000" />
    <rom name="rt2_vo.bin" merge="ic14.4c" size="131072" crc="637172d5" sha1="9dd0dc409306287238826bf301e2a7a12d6cd9ce" region="samples" offset="0" />
    <device_ref name="v30" />
    <device_ref name="z80" />
    <device_ref name="pic8259" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="m72_audio" />
    <device_ref name="ym2151" />
    <device_ref name="dac_8bit_r2r" />
    <chip type="cpu" tag="maincpu" name="NEC V30" clock="8000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <chip type="audio" tag="dac" name="8-Bit R-2R DAC" />
    <display tag="screen" type="raster" rotate="0" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Lives" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="2" value="2" />
      <dipvalue name="3" value="3" default="yes" />
      <dipvalue name="4" value="1" />
      <dipvalue name="5" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="12">
      <diplocation name="SW1" number="3" />
      <diplocation name="SW1" number="4" />
      <dipvalue name="Easy" value="8" />
      <dipvalue name="Normal" value="12" default="yes" />
      <dipvalue name="Hard" value="4" />
      <dipvalue name="Hardest" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="48">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="32" />
      <dipvalue name="1 Coin/1 Credit" value="48" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="192">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="192" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/5 Credits" value="64" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="240">
      <condition tag="DSW" mask="1024" relation="ne" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="160" />
      <dipvalue name="5 Coins/1 Credit" value="176" />
      <dipvalue name="4 Coins/1 Credit" value="192" />
      <dipvalue name="3 Coins/1 Credit" value="208" />
      <dipvalue name="8 Coins/3 Credits" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="224" />
      <dipvalue name="5 Coins/3 Credits" value="32" />
      <dipvalue name="3 Coins/2 Credits" value="48" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="64" />
      <dipvalue name="1 Coin/2 Credits" value="144" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/4 Credits" value="112" />
      <dipvalue name="1 Coin/5 Credits" value="96" />
      <dipvalue name="1 Coin/6 Credits" value="80" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="512">
      <diplocation name="SW2" number="2" />
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="512" default="yes" />
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="1024">
      <diplocation name="SW2" number="3" />
      <dipvalue name="Mode 1" value="1024" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="DSW" mask="6144">
      <diplocation name="SW2" number="4" />
      <diplocation name="SW2" number="5" />
      <dipvalue name="Upright" value="4096" default="yes" />
      <dipvalue name="Upright (2P)" value="0" />
      <dipvalue name="Cocktail" value="6144" />
    </dipswitch>
    <dipswitch name="Stop Mode" tag="DSW" mask="8192">
      <diplocation name="SW2" number="6" />
      <dipvalue name="Off" value="8192" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="16384">
      <diplocation name="SW2" number="7" />
      <dipvalue name="Off" value="16384" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="32768">
      <diplocation name="SW2" number="8" />
      <dipvalue name="Off" value="32768" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <driver status="preliminary" emulation="preliminary" cocktail="preliminary" savestate="supported" />
  </machine>
  <machine name="rtypeb" sourcefile="m72.cpp" cloneof="rtype" romof="rtype">
    <description>R-Type (World bootleg)</description>
    <year>1987</year>
    <manufacturer>bootleg</manufacturer>
    <rom name="7.512" size="65536" crc="eacc8024" sha1="6bcf1d4ea182b7341eac736d2a5d5f70deec0758" region="maincpu" offset="1" />
    <rom name="1.512" size="65536" crc="2e5fe27b" sha1="a3364be5ab9c67aaa2152baf39ea12c571eca3cc" region="maincpu" offset="0" />
    <rom name="8.512" size="65536" crc="22cc4950" sha1="ada5cffc13c38391a334411632237166a6be4938" region="maincpu" offset="20001" />
    <rom name="2.512" size="65536" crc="ada7b90e" sha1="c9d2caed95b95d1c1718a10766bc88b2f8f51619" region="maincpu" offset="20000" />
    <rom name="rt_r-00.1h" merge="rt_r-00.1h" size="65536" crc="dad53bc0" sha1="1e3bc498861946278a0b1fe24259f5d224e265d7" region="sprites" offset="0" />
    <rom name="rt_r-01.1j" merge="rt_r-01.1j" size="32768" crc="5e441e7f" sha1="6741eb7f2d9d985b5a89eefc73ea44c3e38de6f7" region="sprites" offset="10000" />
    <rom name="rt_r-10.1k" merge="rt_r-10.1k" size="65536" crc="d6a66298" sha1="d2873d05aa3b257e7699c188880ac3daad672fa5" region="sprites" offset="20000" />
    <rom name="rt_r-11.1l" merge="rt_r-11.1l" size="32768" crc="791df4f8" sha1="5239a97222212ac9c019177771cb2b5096b7bc17" region="sprites" offset="30000" />
    <rom name="rt_r-20.3h" merge="rt_r-20.3h" size="65536" crc="fc247c8a" sha1="01cf0a60f47fa5e2ed430a3f075e69e6cb762a48" region="sprites" offset="40000" />
    <rom name="rt_r-21.3j" merge="rt_r-21.3j" size="32768" crc="ed793841" sha1="7e55a9a11fcd989db39bce6be48821b747c7d97f" region="sprites" offset="50000" />
    <rom name="rt_r-30.3k" merge="rt_r-30.3k" size="65536" crc="eb02a1cb" sha1="60a394ab53afdcbbf9e88083b8dbe8c897170d77" region="sprites" offset="60000" />
    <rom name="rt_r-31.3l" merge="rt_r-31.3l" size="32768" crc="8558355d" sha1="b5467d1f22f6e5f90c5d8a8ac2d55974f287d589" region="sprites" offset="70000" />
    <rom name="rt_b-a0.3c" merge="rt_b-a0.3c" size="32768" crc="4e212fb0" sha1="687061ecade2ebd0bd1343c9c4a831791853f79c" region="gfx2" offset="0" />
    <rom name="rt_b-a1.3d" merge="rt_b-a1.3d" size="32768" crc="8a65bdff" sha1="130bf6af521f13247a739a95eab4bdaa24b2ac10" region="gfx2" offset="8000" />
    <rom name="rt_b-a2.3a" merge="rt_b-a2.3a" size="32768" crc="5a4ae5b9" sha1="95c3b64f50e6f673b2bf9b40642c152da5009d25" region="gfx2" offset="10000" />
    <rom name="rt_b-a3.3e" merge="rt_b-a3.3e" size="32768" crc="73327606" sha1="9529ecdedd30e2a0400fb1083117992cc18b5158" region="gfx2" offset="18000" />
    <rom name="rt_b-b0.3j" merge="rt_b-b0.3j" size="32768" crc="a7b17491" sha1="5b390770e56ba2d35e108534d7eda8dca996fdf7" region="gfx3" offset="0" />
    <rom name="rt_b-b1.3k" merge="rt_b-b1.3k" size="32768" crc="b9709686" sha1="700905a3e9661e0874939f54da2909e1396ce596" region="gfx3" offset="8000" />
    <rom name="rt_b-b2.3h" merge="rt_b-b2.3h" size="32768" crc="433b229a" sha1="14222eaa3e67e5a7f80eafcf22bac4eb2d485a9a" region="gfx3" offset="10000" />
    <rom name="rt_b-b3.3f" merge="rt_b-b3.3f" size="32768" crc="ad89b072" sha1="e2683d0e7415f3abd147e518bf6c87e44744cd4f" region="gfx3" offset="18000" />
    <device_ref name="v30" />
    <device_ref name="z80" />
    <device_ref name="pic8259" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="ym2151" />
    <chip type="cpu" tag="maincpu" name="NEC V30" clock="8000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <display tag="screen" type="raster" rotate="0" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Lives" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="2" value="2" />
      <dipvalue name="3" value="3" default="yes" />
      <dipvalue name="4" value="1" />
      <dipvalue name="5" value="0" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="4">
      <diplocation name="SW1" number="3" />
      <dipvalue name="Off" value="4" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSW" mask="8">
      <diplocation name="SW1" number="4" />
      <dipvalue name="50K 150K 250K 400K 600K" value="0" />
      <dipvalue name="100K 200K 350K 500K 700K" value="8" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="48">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="32" />
      <dipvalue name="1 Coin/1 Credit" value="48" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="192">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="192" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/5 Credits" value="64" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="240">
      <condition tag="DSW" mask="1024" relation="ne" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="160" />
      <dipvalue name="5 Coins/1 Credit" value="176" />
      <dipvalue name="4 Coins/1 Credit" value="192" />
      <dipvalue name="3 Coins/1 Credit" value="208" />
      <dipvalue name="8 Coins/3 Credits" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="224" />
      <dipvalue name="5 Coins/3 Credits" value="32" />
      <dipvalue name="3 Coins/2 Credits" value="48" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="64" />
      <dipvalue name="1 Coin/2 Credits" value="144" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/4 Credits" value="112" />
      <dipvalue name="1 Coin/5 Credits" value="96" />
      <dipvalue name="1 Coin/6 Credits" value="80" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="DSW" mask="512">
      <diplocation name="SW2" number="2" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="512" />
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="1024">
      <diplocation name="SW2" number="3" />
      <dipvalue name="Mode 1" value="1024" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="2048">
      <diplocation name="SW2" number="4" />
      <dipvalue name="Normal" value="2048" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSW" mask="4096">
      <diplocation name="SW2" number="5" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="4096" default="yes" />
    </dipswitch>
    <dipswitch name="Stop Mode" tag="DSW" mask="8192">
      <diplocation name="SW2" number="6" />
      <dipvalue name="Off" value="8192" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Invulnerability" tag="DSW" mask="16384">
      <diplocation name="SW2" number="7" />
      <dipvalue name="Off" value="16384" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="32768">
      <diplocation name="SW2" number="8" />
      <dipvalue name="Off" value="32768" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <driver status="good" emulation="good" cocktail="preliminary" savestate="supported" />
  </machine>
  <machine name="rtypej" sourcefile="m72.cpp" cloneof="rtype" romof="rtype">
    <description>R-Type (Japan)</description>
    <year>1987</year>
    <manufacturer>Irem</manufacturer>
    <rom name="rt_r-h0-.1b" size="65536" crc="c2940df2" sha1="cbccd205ef81a0e39990a34d46e3f7d52b62e385" region="maincpu" offset="1" />
    <rom name="rt_r-l0-.3b" size="65536" crc="858cc0f6" sha1="7a256fe3aa3a96e161dd485a90b18c421b61458b" region="maincpu" offset="0" />
    <rom name="rt_r-h1-.1c" size="65536" crc="5bcededa" sha1="4ada3fd207fa57751f8e3d885bc91b374e27035d" region="maincpu" offset="20001" />
    <rom name="rt_r-l1-.3c" size="65536" crc="4821141c" sha1="df6cf04c3ecd04b6f27a96871848904575414dae" region="maincpu" offset="20000" />
    <rom name="rt_r-00.1h" merge="rt_r-00.1h" size="65536" crc="dad53bc0" sha1="1e3bc498861946278a0b1fe24259f5d224e265d7" region="sprites" offset="0" />
    <rom name="rt_r-01.1j" merge="rt_r-01.1j" size="32768" crc="5e441e7f" sha1="6741eb7f2d9d985b5a89eefc73ea44c3e38de6f7" region="sprites" offset="10000" />
    <rom name="rt_r-10.1k" merge="rt_r-10.1k" size="65536" crc="d6a66298" sha1="d2873d05aa3b257e7699c188880ac3daad672fa5" region="sprites" offset="20000" />
    <rom name="rt_r-11.1l" merge="rt_r-11.1l" size="32768" crc="791df4f8" sha1="5239a97222212ac9c019177771cb2b5096b7bc17" region="sprites" offset="30000" />
    <rom name="rt_r-20.3h" merge="rt_r-20.3h" size="65536" crc="fc247c8a" sha1="01cf0a60f47fa5e2ed430a3f075e69e6cb762a48" region="sprites" offset="40000" />
    <rom name="rt_r-21.3j" merge="rt_r-21.3j" size="32768" crc="ed793841" sha1="7e55a9a11fcd989db39bce6be48821b747c7d97f" region="sprites" offset="50000" />
    <rom name="rt_r-30.3k" merge="rt_r-30.3k" size="65536" crc="eb02a1cb" sha1="60a394ab53afdcbbf9e88083b8dbe8c897170d77" region="sprites" offset="60000" />
    <rom name="rt_r-31.3l" merge="rt_r-31.3l" size="32768" crc="8558355d" sha1="b5467d1f22f6e5f90c5d8a8ac2d55974f287d589" region="sprites" offset="70000" />
    <rom name="rt_b-a0.3c" merge="rt_b-a0.3c" size="32768" crc="4e212fb0" sha1="687061ecade2ebd0bd1343c9c4a831791853f79c" region="gfx2" offset="0" />
    <rom name="rt_b-a1.3d" merge="rt_b-a1.3d" size="32768" crc="8a65bdff" sha1="130bf6af521f13247a739a95eab4bdaa24b2ac10" region="gfx2" offset="8000" />
    <rom name="rt_b-a2.3a" merge="rt_b-a2.3a" size="32768" crc="5a4ae5b9" sha1="95c3b64f50e6f673b2bf9b40642c152da5009d25" region="gfx2" offset="10000" />
    <rom name="rt_b-a3.3e" merge="rt_b-a3.3e" size="32768" crc="73327606" sha1="9529ecdedd30e2a0400fb1083117992cc18b5158" region="gfx2" offset="18000" />
    <rom name="rt_b-b0.3j" merge="rt_b-b0.3j" size="32768" crc="a7b17491" sha1="5b390770e56ba2d35e108534d7eda8dca996fdf7" region="gfx3" offset="0" />
    <rom name="rt_b-b1.3k" merge="rt_b-b1.3k" size="32768" crc="b9709686" sha1="700905a3e9661e0874939f54da2909e1396ce596" region="gfx3" offset="8000" />
    <rom name="rt_b-b2.3h" merge="rt_b-b2.3h" size="32768" crc="433b229a" sha1="14222eaa3e67e5a7f80eafcf22bac4eb2d485a9a" region="gfx3" offset="10000" />
    <rom name="rt_b-b3.3f" merge="rt_b-b3.3f" size="32768" crc="ad89b072" sha1="e2683d0e7415f3abd147e518bf6c87e44744cd4f" region="gfx3" offset="18000" />
    <device_ref name="v30" />
    <device_ref name="z80" />
    <device_ref name="pic8259" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="ym2151" />
    <chip type="cpu" tag="maincpu" name="NEC V30" clock="8000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <display tag="screen" type="raster" rotate="0" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Lives" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="2" value="2" />
      <dipvalue name="3" value="3" default="yes" />
      <dipvalue name="4" value="1" />
      <dipvalue name="5" value="0" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="4">
      <diplocation name="SW1" number="3" />
      <dipvalue name="Off" value="4" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSW" mask="8">
      <diplocation name="SW1" number="4" />
      <dipvalue name="50K 150K 250K 400K 600K" value="0" />
      <dipvalue name="100K 200K 350K 500K 700K" value="8" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="48">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="32" />
      <dipvalue name="1 Coin/1 Credit" value="48" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="192">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="192" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/5 Credits" value="64" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="240">
      <condition tag="DSW" mask="1024" relation="ne" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="160" />
      <dipvalue name="5 Coins/1 Credit" value="176" />
      <dipvalue name="4 Coins/1 Credit" value="192" />
      <dipvalue name="3 Coins/1 Credit" value="208" />
      <dipvalue name="8 Coins/3 Credits" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="224" />
      <dipvalue name="5 Coins/3 Credits" value="32" />
      <dipvalue name="3 Coins/2 Credits" value="48" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="64" />
      <dipvalue name="1 Coin/2 Credits" value="144" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/4 Credits" value="112" />
      <dipvalue name="1 Coin/5 Credits" value="96" />
      <dipvalue name="1 Coin/6 Credits" value="80" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="DSW" mask="512">
      <diplocation name="SW2" number="2" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="512" />
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="1024">
      <diplocation name="SW2" number="3" />
      <dipvalue name="Mode 1" value="1024" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="2048">
      <diplocation name="SW2" number="4" />
      <dipvalue name="Normal" value="2048" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSW" mask="4096">
      <diplocation name="SW2" number="5" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="4096" default="yes" />
    </dipswitch>
    <dipswitch name="Stop Mode" tag="DSW" mask="8192">
      <diplocation name="SW2" number="6" />
      <dipvalue name="Off" value="8192" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Invulnerability" tag="DSW" mask="16384">
      <diplocation name="SW2" number="7" />
      <dipvalue name="Off" value="16384" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="32768">
      <diplocation name="SW2" number="8" />
      <dipvalue name="Off" value="32768" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <driver status="good" emulation="good" cocktail="preliminary" savestate="supported" />
  </machine>
  <machine name="rtypejp" sourcefile="m72.cpp" cloneof="rtype" romof="rtype">
    <description>R-Type (Japan prototype)</description>
    <year>1987</year>
    <manufacturer>Irem</manufacturer>
    <rom name="db_b1.bin" size="65536" crc="c1865141" sha1="3302b6529aa903d81eb2196d745eb4f7f8316857" region="maincpu" offset="1" />
    <rom name="db_a1.bin" size="65536" crc="5ad2bd90" sha1="0937dbbdf0cbce2e81cecf4d770bbd8c6bd82801" region="maincpu" offset="0" />
    <rom name="db_b2.bin" size="65536" crc="b4f6407e" sha1="4a00d8e104c580900b4feb318dd162b77b71d0a5" region="maincpu" offset="20001" />
    <rom name="db_a2.bin" size="65536" crc="6098d86f" sha1="c6c9c1c2c30d5f190c40e000004bd21606efb8b0" region="maincpu" offset="20000" />
    <rom name="rt_r-00.1h" merge="rt_r-00.1h" size="65536" crc="dad53bc0" sha1="1e3bc498861946278a0b1fe24259f5d224e265d7" region="sprites" offset="0" />
    <rom name="rt_r-01.1j" merge="rt_r-01.1j" size="32768" crc="5e441e7f" sha1="6741eb7f2d9d985b5a89eefc73ea44c3e38de6f7" region="sprites" offset="10000" />
    <rom name="rt_r-10.1k" merge="rt_r-10.1k" size="65536" crc="d6a66298" sha1="d2873d05aa3b257e7699c188880ac3daad672fa5" region="sprites" offset="20000" />
    <rom name="rt_r-11.1l" merge="rt_r-11.1l" size="32768" crc="791df4f8" sha1="5239a97222212ac9c019177771cb2b5096b7bc17" region="sprites" offset="30000" />
    <rom name="rt_r-20.3h" merge="rt_r-20.3h" size="65536" crc="fc247c8a" sha1="01cf0a60f47fa5e2ed430a3f075e69e6cb762a48" region="sprites" offset="40000" />
    <rom name="rt_r-21.3j" merge="rt_r-21.3j" size="32768" crc="ed793841" sha1="7e55a9a11fcd989db39bce6be48821b747c7d97f" region="sprites" offset="50000" />
    <rom name="rt_r-30.3k" merge="rt_r-30.3k" size="65536" crc="eb02a1cb" sha1="60a394ab53afdcbbf9e88083b8dbe8c897170d77" region="sprites" offset="60000" />
    <rom name="rt_r-31.3l" merge="rt_r-31.3l" size="32768" crc="8558355d" sha1="b5467d1f22f6e5f90c5d8a8ac2d55974f287d589" region="sprites" offset="70000" />
    <rom name="rt_b-a0.3c" merge="rt_b-a0.3c" size="32768" crc="4e212fb0" sha1="687061ecade2ebd0bd1343c9c4a831791853f79c" region="gfx2" offset="0" />
    <rom name="rt_b-a1.3d" merge="rt_b-a1.3d" size="32768" crc="8a65bdff" sha1="130bf6af521f13247a739a95eab4bdaa24b2ac10" region="gfx2" offset="8000" />
    <rom name="rt_b-a2.3a" merge="rt_b-a2.3a" size="32768" crc="5a4ae5b9" sha1="95c3b64f50e6f673b2bf9b40642c152da5009d25" region="gfx2" offset="10000" />
    <rom name="rt_b-a3.3e" merge="rt_b-a3.3e" size="32768" crc="73327606" sha1="9529ecdedd30e2a0400fb1083117992cc18b5158" region="gfx2" offset="18000" />
    <rom name="rt_b-b0.3j" merge="rt_b-b0.3j" size="32768" crc="a7b17491" sha1="5b390770e56ba2d35e108534d7eda8dca996fdf7" region="gfx3" offset="0" />
    <rom name="rt_b-b1.3k" merge="rt_b-b1.3k" size="32768" crc="b9709686" sha1="700905a3e9661e0874939f54da2909e1396ce596" region="gfx3" offset="8000" />
    <rom name="rt_b-b2.3h" merge="rt_b-b2.3h" size="32768" crc="433b229a" sha1="14222eaa3e67e5a7f80eafcf22bac4eb2d485a9a" region="gfx3" offset="10000" />
    <rom name="rt_b-b3.3f" merge="rt_b-b3.3f" size="32768" crc="ad89b072" sha1="e2683d0e7415f3abd147e518bf6c87e44744cd4f" region="gfx3" offset="18000" />
    <device_ref name="v30" />
    <device_ref name="z80" />
    <device_ref name="pic8259" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="ym2151" />
    <chip type="cpu" tag="maincpu" name="NEC V30" clock="8000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <display tag="screen" type="raster" rotate="0" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Lives" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="2" value="2" />
      <dipvalue name="3" value="3" default="yes" />
      <dipvalue name="4" value="1" />
      <dipvalue name="5" value="0" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="4">
      <diplocation name="SW1" number="3" />
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSW" mask="8">
      <diplocation name="SW1" number="4" />
      <dipvalue name="50K 150K 250K 400K 600K" value="0" />
      <dipvalue name="100K 200K 350K 500K 700K" value="8" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="48">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="32" />
      <dipvalue name="1 Coin/1 Credit" value="48" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="192">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="192" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/5 Credits" value="64" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="240">
      <condition tag="DSW" mask="1024" relation="ne" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="160" />
      <dipvalue name="5 Coins/1 Credit" value="176" />
      <dipvalue name="4 Coins/1 Credit" value="192" />
      <dipvalue name="3 Coins/1 Credit" value="208" />
      <dipvalue name="8 Coins/3 Credits" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="224" />
      <dipvalue name="5 Coins/3 Credits" value="32" />
      <dipvalue name="3 Coins/2 Credits" value="48" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="64" />
      <dipvalue name="1 Coin/2 Credits" value="144" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/4 Credits" value="112" />
      <dipvalue name="1 Coin/5 Credits" value="96" />
      <dipvalue name="1 Coin/6 Credits" value="80" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="DSW" mask="512">
      <diplocation name="SW2" number="2" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="512" />
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="1024">
      <diplocation name="SW2" number="3" />
      <dipvalue name="Mode 1" value="1024" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="2048">
      <diplocation name="SW2" number="4" />
      <dipvalue name="Normal" value="2048" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSW" mask="4096">
      <diplocation name="SW2" number="5" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="4096" default="yes" />
    </dipswitch>
    <dipswitch name="Stop Mode" tag="DSW" mask="8192">
      <diplocation name="SW2" number="6" />
      <dipvalue name="Off" value="8192" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Invulnerability" tag="DSW" mask="16384">
      <diplocation name="SW2" number="7" />
      <dipvalue name="Off" value="16384" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="32768">
      <diplocation name="SW2" number="8" />
      <dipvalue name="Off" value="32768" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <driver status="good" emulation="good" cocktail="preliminary" savestate="supported" />
  </machine>
  <machine name="rtypem82b" sourcefile="m72.cpp" cloneof="rtype" romof="rtype">
    <description>R-Type (Japan, bootleg M82 conversion)</description>
    <year>2009</year>
    <manufacturer>bootleg</manufacturer>
    <rom name="rt_h0.bin" size="131072" crc="5fa5068b" sha1="b33891d2e0ca7e52226c1318ad657ac6bc7d6df4" region="maincpu" offset="1" />
    <rom name="rt_l0.bin" size="131072" crc="aee6fae8" sha1="22645da3bfeb3a7517bdbf0829fd9d689ddc5368" region="maincpu" offset="0" />
    <rom name="rt_h1.bin" size="131072" crc="76389df4" sha1="20004dd1d058589bdd8ea93a66a6cdf93382c7cc" region="maincpu" offset="40001" />
    <rom name="rt_l1.bin" size="131072" crc="6af66a05" sha1="3c686b4559e4e223e3b03533fe2b2fc4758f4e02" region="maincpu" offset="40000" />
    <rom name="rt_sp.bin" size="65536" crc="24fded65" sha1="34e085ebfc6415a60b7440ac53c8ae7130b5e9d4" region="soundcpu" offset="0" />
    <rom name="rt_n0.bin" size="131072" crc="236e93ad" sha1="a168c2f007a7469d8c1d834dc5247d99d13fd36d" region="sprites" offset="0" />
    <rom name="rt_n1.bin" size="131072" crc="94e0da50" sha1="0e8aef07b2a4a60bb6faa9ea3d02869d30dff84c" region="sprites" offset="20000" />
    <rom name="rt_n2.bin" size="131072" crc="6310dd0e" sha1="4e4a50ef64cdfddea10d415a4b2d2490c1364074" region="sprites" offset="40000" />
    <rom name="rt_n3.bin" size="131072" crc="dd9674fb" sha1="925bbd64015ec9109a74ce80747bea2bfdb0cde6" region="sprites" offset="60000" />
    <rom name="rt_c0.bin" size="262144" crc="c2511272" sha1="138dd131f827215f13ba0761cacc0f383b5e5a48" region="gfx2" offset="0" />
    <rom name="rt_c1.bin" size="262144" crc="6da33dae" sha1="2b5f686c5c8e45a896ab115818066d03af767cb5" region="gfx2" offset="40000" />
    <rom name="rt_c2.bin" size="262144" crc="29322d6e" sha1="b553d46f1270dcc4754800e65c21b5e418994fcd" region="gfx2" offset="80000" />
    <rom name="rt_c3.bin" size="262144" crc="0ab3a8db" sha1="7f4f5c18b5df0f5fdcb471db4e87c1be393aca92" region="gfx2" offset="c0000" />
    <rom name="mt_f0.bin" size="131072" crc="2d5e05d5" sha1="18bdc9c561dbf0f91642161ca985d2154bd58b5d" region="sprites2" offset="0" />
    <rom name="mt_f1.bin" size="131072" crc="c68cd65f" sha1="8999b558b4af0f453ada9e4ef705163df96844e6" region="sprites2" offset="20000" />
    <rom name="mt_f2.bin" size="131072" crc="a71feb2d" sha1="47e366b422772bed08ee4d1c338970687d6c3b4c" region="sprites2" offset="40000" />
    <rom name="mt_f3.bin" size="131072" crc="179f7562" sha1="6d28b199daffc62e8fa9009878ac0bb976ccbb2a" region="sprites2" offset="60000" />
    <rom name="mt_vo.bin" size="131072" crc="eb24bb2c" sha1="9fca04fba0249e8213dd164eb6829e1a5acbee65" region="samples" offset="0" />
    <device_ref name="v30" />
    <device_ref name="z80" />
    <device_ref name="pic8259" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="m72_audio" />
    <device_ref name="ym2151" />
    <device_ref name="dac_8bit_r2r" />
    <chip type="cpu" tag="maincpu" name="NEC V30" clock="8000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <chip type="audio" tag="dac" name="8-Bit R-2R DAC" />
    <display tag="screen" type="raster" rotate="0" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Lives" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="2" value="2" />
      <dipvalue name="3" value="3" default="yes" />
      <dipvalue name="4" value="1" />
      <dipvalue name="5" value="0" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="4">
      <diplocation name="SW1" number="3" />
      <dipvalue name="Off" value="4" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSW" mask="8">
      <diplocation name="SW1" number="4" />
      <dipvalue name="50K 150K 250K 400K 600K" value="0" />
      <dipvalue name="100K 200K 350K 500K 700K" value="8" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="48">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="32" />
      <dipvalue name="1 Coin/1 Credit" value="48" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="192">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="192" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/5 Credits" value="64" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="240">
      <condition tag="DSW" mask="1024" relation="ne" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="160" />
      <dipvalue name="5 Coins/1 Credit" value="176" />
      <dipvalue name="4 Coins/1 Credit" value="192" />
      <dipvalue name="3 Coins/1 Credit" value="208" />
      <dipvalue name="8 Coins/3 Credits" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="224" />
      <dipvalue name="5 Coins/3 Credits" value="32" />
      <dipvalue name="3 Coins/2 Credits" value="48" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="64" />
      <dipvalue name="1 Coin/2 Credits" value="144" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/4 Credits" value="112" />
      <dipvalue name="1 Coin/5 Credits" value="96" />
      <dipvalue name="1 Coin/6 Credits" value="80" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="DSW" mask="512">
      <diplocation name="SW2" number="2" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="512" />
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="1024">
      <diplocation name="SW2" number="3" />
      <dipvalue name="Mode 1" value="1024" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="2048">
      <diplocation name="SW2" number="4" />
      <dipvalue name="Normal" value="2048" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSW" mask="4096">
      <diplocation name="SW2" number="5" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="4096" default="yes" />
    </dipswitch>
    <dipswitch name="Stop Mode" tag="DSW" mask="8192">
      <diplocation name="SW2" number="6" />
      <dipvalue name="Off" value="8192" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Invulnerability" tag="DSW" mask="16384">
      <diplocation name="SW2" number="7" />
      <dipvalue name="Off" value="16384" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="32768">
      <diplocation name="SW2" number="8" />
      <dipvalue name="Off" value="32768" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <driver status="preliminary" emulation="preliminary" cocktail="preliminary" savestate="supported" />
  </machine>
  <machine name="rtypeu" sourcefile="m72.cpp" cloneof="rtype" romof="rtype">
    <description>R-Type (US)</description>
    <year>1987</year>
    <manufacturer>Irem (Nintendo of America license)</manufacturer>
    <rom name="rt_r-h0-a.1b" size="65536" crc="36008a4e" sha1="832006cb14a34e1671e305cc8ae606c3c6185a6a" region="maincpu" offset="1" />
    <rom name="rt_r-l0-a.3b" size="65536" crc="4aaa668e" sha1="87059460b59f43f2ca8cd959d76f721facd9de96" region="maincpu" offset="0" />
    <rom name="rt_r-h1-a.1c" size="65536" crc="7ebb2a53" sha1="1466df19888c3374847eb77f702060647e49d6ad" region="maincpu" offset="20001" />
    <rom name="rt_r-l1-a.3c" size="65536" crc="c28b103b" sha1="f294a23c3917b97812eb4c7f3a99253fd0cbb7ea" region="maincpu" offset="20000" />
    <rom name="rt_r-00.1h" merge="rt_r-00.1h" size="65536" crc="dad53bc0" sha1="1e3bc498861946278a0b1fe24259f5d224e265d7" region="sprites" offset="0" />
    <rom name="rt_r-01.1j" merge="rt_r-01.1j" size="32768" crc="5e441e7f" sha1="6741eb7f2d9d985b5a89eefc73ea44c3e38de6f7" region="sprites" offset="10000" />
    <rom name="rt_r-10.1k" merge="rt_r-10.1k" size="65536" crc="d6a66298" sha1="d2873d05aa3b257e7699c188880ac3daad672fa5" region="sprites" offset="20000" />
    <rom name="rt_r-11.1l" merge="rt_r-11.1l" size="32768" crc="791df4f8" sha1="5239a97222212ac9c019177771cb2b5096b7bc17" region="sprites" offset="30000" />
    <rom name="rt_r-20.3h" merge="rt_r-20.3h" size="65536" crc="fc247c8a" sha1="01cf0a60f47fa5e2ed430a3f075e69e6cb762a48" region="sprites" offset="40000" />
    <rom name="rt_r-21.3j" merge="rt_r-21.3j" size="32768" crc="ed793841" sha1="7e55a9a11fcd989db39bce6be48821b747c7d97f" region="sprites" offset="50000" />
    <rom name="rt_r-30.3k" merge="rt_r-30.3k" size="65536" crc="eb02a1cb" sha1="60a394ab53afdcbbf9e88083b8dbe8c897170d77" region="sprites" offset="60000" />
    <rom name="rt_r-31.3l" merge="rt_r-31.3l" size="32768" crc="8558355d" sha1="b5467d1f22f6e5f90c5d8a8ac2d55974f287d589" region="sprites" offset="70000" />
    <rom name="rt_b-a0.3c" merge="rt_b-a0.3c" size="32768" crc="4e212fb0" sha1="687061ecade2ebd0bd1343c9c4a831791853f79c" region="gfx2" offset="0" />
    <rom name="rt_b-a1.3d" merge="rt_b-a1.3d" size="32768" crc="8a65bdff" sha1="130bf6af521f13247a739a95eab4bdaa24b2ac10" region="gfx2" offset="8000" />
    <rom name="rt_b-a2.3a" merge="rt_b-a2.3a" size="32768" crc="5a4ae5b9" sha1="95c3b64f50e6f673b2bf9b40642c152da5009d25" region="gfx2" offset="10000" />
    <rom name="rt_b-a3.3e" merge="rt_b-a3.3e" size="32768" crc="73327606" sha1="9529ecdedd30e2a0400fb1083117992cc18b5158" region="gfx2" offset="18000" />
    <rom name="rt_b-b0.3j" merge="rt_b-b0.3j" size="32768" crc="a7b17491" sha1="5b390770e56ba2d35e108534d7eda8dca996fdf7" region="gfx3" offset="0" />
    <rom name="rt_b-b1.3k" merge="rt_b-b1.3k" size="32768" crc="b9709686" sha1="700905a3e9661e0874939f54da2909e1396ce596" region="gfx3" offset="8000" />
    <rom name="rt_b-b2.3h" merge="rt_b-b2.3h" size="32768" crc="433b229a" sha1="14222eaa3e67e5a7f80eafcf22bac4eb2d485a9a" region="gfx3" offset="10000" />
    <rom name="rt_b-b3.3f" merge="rt_b-b3.3f" size="32768" crc="ad89b072" sha1="e2683d0e7415f3abd147e518bf6c87e44744cd4f" region="gfx3" offset="18000" />
    <rom name="m72_a-8l-.ic66" size="256" crc="b460c438" sha1="00e20cf754b6fd5138ee4d2f6ec28dff9e292fe6" region="proms" offset="0" />
    <rom name="m72_a-9l-.ic75" size="256" crc="a4f2c4bc" sha1="f13b0a4b52dcc6704063b676f09d83dcba170133" region="proms" offset="100" />
    <rom name="m72_r-3a-.bin" size="1" status="nodump" region="plds" offset="0" />
    <rom name="m72_a-3d-.bin" size="1" status="nodump" region="plds" offset="0" />
    <rom name="m72_a-4d-.bin" size="1" status="nodump" region="plds" offset="0" />
    <device_ref name="v30" />
    <device_ref name="z80" />
    <device_ref name="pic8259" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="ym2151" />
    <chip type="cpu" tag="maincpu" name="NEC V30" clock="8000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <display tag="screen" type="raster" rotate="0" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Lives" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="2" value="2" />
      <dipvalue name="3" value="3" default="yes" />
      <dipvalue name="4" value="1" />
      <dipvalue name="5" value="0" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="4">
      <diplocation name="SW1" number="3" />
      <dipvalue name="Off" value="4" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSW" mask="8">
      <diplocation name="SW1" number="4" />
      <dipvalue name="50K 150K 250K 400K 600K" value="0" />
      <dipvalue name="100K 200K 350K 500K 700K" value="8" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="48">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="32" />
      <dipvalue name="1 Coin/1 Credit" value="48" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="192">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="192" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/5 Credits" value="64" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="240">
      <condition tag="DSW" mask="1024" relation="ne" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="160" />
      <dipvalue name="5 Coins/1 Credit" value="176" />
      <dipvalue name="4 Coins/1 Credit" value="192" />
      <dipvalue name="3 Coins/1 Credit" value="208" />
      <dipvalue name="8 Coins/3 Credits" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="224" />
      <dipvalue name="5 Coins/3 Credits" value="32" />
      <dipvalue name="3 Coins/2 Credits" value="48" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="64" />
      <dipvalue name="1 Coin/2 Credits" value="144" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/4 Credits" value="112" />
      <dipvalue name="1 Coin/5 Credits" value="96" />
      <dipvalue name="1 Coin/6 Credits" value="80" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="DSW" mask="512">
      <diplocation name="SW2" number="2" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="512" />
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="1024">
      <diplocation name="SW2" number="3" />
      <dipvalue name="Mode 1" value="1024" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="2048">
      <diplocation name="SW2" number="4" />
      <dipvalue name="Normal" value="2048" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSW" mask="4096">
      <diplocation name="SW2" number="5" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="4096" default="yes" />
    </dipswitch>
    <dipswitch name="Stop Mode" tag="DSW" mask="8192">
      <diplocation name="SW2" number="6" />
      <dipvalue name="Off" value="8192" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Invulnerability" tag="DSW" mask="16384">
      <diplocation name="SW2" number="7" />
      <dipvalue name="Off" value="16384" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="32768">
      <diplocation name="SW2" number="8" />
      <dipvalue name="Off" value="32768" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <driver status="good" emulation="good" cocktail="preliminary" savestate="supported" />
  </machine>
  <machine name="xmultipl" sourcefile="m72.cpp">
    <description>X Multiply (World, M81 hardware)</description>
    <year>1989</year>
    <manufacturer>Irem</manufacturer>
    <rom name="xm-a-h1-.ic58" size="131072" crc="449048cf" sha1="871b588177fb018937d143f76eda18aa53b0f6c4" region="maincpu" offset="1" />
    <rom name="xm-a-l1-.ic67" size="131072" crc="26ce39b0" sha1="18ae2e8c2c826c6ecfa66f7af5afdeeac3936543" region="maincpu" offset="0" />
    <rom name="xm-a-h0-.ic59" size="65536" crc="509bc970" sha1="44bb4ecedf8f127792e9a8da70b3a42c8ff30ad2" region="maincpu" offset="40001" />
    <rom name="xm-a-l0-.ic68" size="65536" crc="490a9ebc" sha1="55d9d3a4f82f120faabca78c2e47922831f62a5d" region="maincpu" offset="40000" />
    <rom name="xm-a-sp-.ic14" size="65536" crc="006eef56" sha1="917b26b200fa4c1692d4c7ca0ea0f7897e3e3b7b" region="soundcpu" offset="0" />
    <rom name="t44.00" size="131072" crc="db45186e" sha1="8c8edeb4b7e6b0516f2597823dc27eba9c5d9528" region="sprites" offset="0" />
    <rom name="t45.01" size="131072" crc="4d0764d4" sha1="4942333336a110b033f16ac1afa06ffef7b2dad6" region="sprites" offset="20000" />
    <rom name="t46.10" size="131072" crc="f0c465a4" sha1="69c107c860d4e8736431fd86b6821b70a8367eb3" region="sprites" offset="40000" />
    <rom name="t47.11" size="131072" crc="1263b24b" sha1="0445a5381df3a868bed6967c8e5de7169e4be6a3" region="sprites" offset="60000" />
    <rom name="t48.20" size="131072" crc="4129944f" sha1="988b072032d1667c3ac0731fada32fb6978505dc" region="sprites" offset="80000" />
    <rom name="t49.21" size="131072" crc="2346e6f9" sha1="b3de017dd0353e04d279f57e151c47f5fcc70e9c" region="sprites" offset="a0000" />
    <rom name="t50.30" size="131072" crc="e322543e" sha1="b4c3a7f202d81485d5f0a7b7668ee89fc1edb215" region="sprites" offset="c0000" />
    <rom name="t51.31" size="131072" crc="229bf7b1" sha1="ae42c7efbb6278dd3fa56842361138391f2d49ca" region="sprites" offset="e0000" />
    <rom name="t53.a0" size="131072" crc="1a082494" sha1="63a3a84a262833d2cafab41e35df8f10a5e317b1" region="gfx2" offset="0" />
    <rom name="t54.a1" size="131072" crc="076c16c5" sha1="4be858806b916953d59aceee550e721eaf3996a6" region="gfx2" offset="20000" />
    <rom name="t55.a2" size="131072" crc="25d877a5" sha1="48c948bf714c432f534c098123c8f50d5561756f" region="gfx2" offset="40000" />
    <rom name="t56.a3" size="131072" crc="5b1213f5" sha1="87782aa0bd04d4378c4ba78b63028ae2709da2f1" region="gfx2" offset="60000" />
    <rom name="t57.b0" size="131072" crc="0a84e0c7" sha1="67ad181a7d2c431cb4bf45955e09754549a03576" region="gfx3" offset="0" />
    <rom name="t58.b1" size="131072" crc="a874121d" sha1="1351d5901d55059c6472a4588a2e560396903861" region="gfx3" offset="20000" />
    <rom name="t59.b2" size="131072" crc="69deb990" sha1="1eed3183efbe576376661b45152a0a21240ecfc8" region="gfx3" offset="40000" />
    <rom name="t60.b3" size="131072" crc="14c69f99" sha1="4bea72f8bd421ef3ca559363f7473ce2e7038699" region="gfx3" offset="60000" />
    <rom name="t52.v0" size="131072" crc="2db1bd80" sha1="657006d0642ec7fb949bb52821d78fe51a599415" region="samples" offset="0" />
    <rom name="m81_a-9l-.ic72" size="256" crc="b460c438" sha1="00e20cf754b6fd5138ee4d2f6ec28dff9e292fe6" region="proms" offset="0" />
    <rom name="m81_a-9p-.ic74" size="256" crc="a4f2c4bc" sha1="f13b0a4b52dcc6704063b676f09d83dcba170133" region="proms" offset="100" />
    <device_ref name="v30" />
    <device_ref name="z80" />
    <device_ref name="pic8259" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="m72_audio" />
    <device_ref name="ym2151" />
    <device_ref name="dac_8bit_r2r" />
    <chip type="cpu" tag="maincpu" name="NEC V30" clock="8000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <chip type="audio" tag="dac" name="8-Bit R-2R DAC" />
    <display tag="screen" type="raster" rotate="0" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Difficulty" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="Very Easy" value="2" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="3" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSW" mask="12">
      <diplocation name="SW1" number="3" />
      <diplocation name="SW1" number="4" />
      <dipvalue name="1" value="8" />
      <dipvalue name="2" value="4" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="48">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="32" />
      <dipvalue name="1 Coin/1 Credit" value="48" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="192">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="192" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/5 Credits" value="64" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="240">
      <condition tag="DSW" mask="1024" relation="ne" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="160" />
      <dipvalue name="5 Coins/1 Credit" value="176" />
      <dipvalue name="4 Coins/1 Credit" value="192" />
      <dipvalue name="3 Coins/1 Credit" value="208" />
      <dipvalue name="8 Coins/3 Credits" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="224" />
      <dipvalue name="5 Coins/3 Credits" value="32" />
      <dipvalue name="3 Coins/2 Credits" value="48" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="64" />
      <dipvalue name="1 Coin/2 Credits" value="144" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/4 Credits" value="112" />
      <dipvalue name="1 Coin/5 Credits" value="96" />
      <dipvalue name="1 Coin/6 Credits" value="80" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="DSW" mask="512">
      <diplocation name="SW2" number="2" />
      <dipvalue name="Upright (single)" value="0" default="yes">
        <condition tag="DSW" mask="4096" relation="ne" value="0" />
      </dipvalue>
      <dipvalue name="Cocktail" value="512">
        <condition tag="DSW" mask="4096" relation="ne" value="0" />
      </dipvalue>
      <dipvalue name="Upright (double) On" value="0" default="yes">
        <condition tag="DSW" mask="4096" relation="eq" value="0" />
      </dipvalue>
      <dipvalue name="Upright (double) Off" value="512">
        <condition tag="DSW" mask="4096" relation="eq" value="0" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="1024">
      <diplocation name="SW2" number="3" />
      <dipvalue name="Mode 1" value="1024" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="2048">
      <diplocation name="SW2" number="4" />
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2048" default="yes" />
    </dipswitch>
    <dipswitch name="Upright (double) Mode" tag="DSW" mask="4096">
      <diplocation name="SW2" number="5" />
      <dipvalue name="Off" value="4096" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSW" mask="8192">
      <diplocation name="SW2" number="6" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="8192" default="yes" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="16384">
      <diplocation name="SW2" number="7" />
      <dipvalue name="Off" value="16384" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="32768">
      <diplocation name="SW2" number="8" />
      <dipvalue name="Off" value="32768" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="M81-B-B Jumper J3" tag="JumperJ3" mask="1">
      <confsetting name="W" value="1" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <port tag=":JumperJ3" />
    <driver status="good" emulation="good" cocktail="preliminary" savestate="supported" />
  </machine>
  <machine name="xmultiplm72" sourcefile="m72.cpp" cloneof="xmultipl" romof="xmultipl">
    <description>X Multiply (Japan, M72 hardware)</description>
    <year>1989</year>
    <manufacturer>Irem</manufacturer>
    <rom name="xm_c-h3-.ic43" size="131072" crc="20685021" sha1="92f4216320bf525045223b9454fb5bb224c536d8" region="maincpu" offset="1" />
    <rom name="xm_c-l3-.ic34" size="131072" crc="93fdd200" sha1="dd4244ba0ce6c621136b0648374179da44363c01" region="maincpu" offset="0" />
    <rom name="xm_c-h0-.ic40" size="65536" crc="9438dd8a" sha1="dc85789c47d31a96300b4236dc43f065e1b01e4a" region="maincpu" offset="40001" />
    <rom name="xm_c-l0-.ic37" size="65536" crc="06a9e213" sha1="9831c110814642703d6e71d49848d854095b7d3a" region="maincpu" offset="40000" />
    <rom name="xm_c-pr-.ic1" size="4096" crc="c8ceb3cd" sha1="e5d20a3a9d7f0919604543c97643a03434d80130" region="mcu" offset="0" />
    <rom name="t44.00.ic53" merge="t44.00" size="131072" crc="db45186e" sha1="8c8edeb4b7e6b0516f2597823dc27eba9c5d9528" region="sprites" offset="0" />
    <rom name="t45.01.ic52" merge="t45.01" size="131072" crc="4d0764d4" sha1="4942333336a110b033f16ac1afa06ffef7b2dad6" region="sprites" offset="20000" />
    <rom name="t46.10.ic51" merge="t46.10" size="131072" crc="f0c465a4" sha1="69c107c860d4e8736431fd86b6821b70a8367eb3" region="sprites" offset="40000" />
    <rom name="t47.11.ic50" merge="t47.11" size="131072" crc="1263b24b" sha1="0445a5381df3a868bed6967c8e5de7169e4be6a3" region="sprites" offset="60000" />
    <rom name="t48.20.ic49" merge="t48.20" size="131072" crc="4129944f" sha1="988b072032d1667c3ac0731fada32fb6978505dc" region="sprites" offset="80000" />
    <rom name="t49.21.ic48" merge="t49.21" size="131072" crc="2346e6f9" sha1="b3de017dd0353e04d279f57e151c47f5fcc70e9c" region="sprites" offset="a0000" />
    <rom name="t50.30.ic47" merge="t50.30" size="131072" crc="e322543e" sha1="b4c3a7f202d81485d5f0a7b7668ee89fc1edb215" region="sprites" offset="c0000" />
    <rom name="t51.31.ic46" merge="t51.31" size="131072" crc="229bf7b1" sha1="ae42c7efbb6278dd3fa56842361138391f2d49ca" region="sprites" offset="e0000" />
    <rom name="t53.a0" merge="t53.a0" size="131072" crc="1a082494" sha1="63a3a84a262833d2cafab41e35df8f10a5e317b1" region="gfx2" offset="0" />
    <rom name="t54.a1" merge="t54.a1" size="131072" crc="076c16c5" sha1="4be858806b916953d59aceee550e721eaf3996a6" region="gfx2" offset="20000" />
    <rom name="t55.a2" merge="t55.a2" size="131072" crc="25d877a5" sha1="48c948bf714c432f534c098123c8f50d5561756f" region="gfx2" offset="40000" />
    <rom name="t56.a3" merge="t56.a3" size="131072" crc="5b1213f5" sha1="87782aa0bd04d4378c4ba78b63028ae2709da2f1" region="gfx2" offset="60000" />
    <rom name="t57.b0" merge="t57.b0" size="131072" crc="0a84e0c7" sha1="67ad181a7d2c431cb4bf45955e09754549a03576" region="gfx3" offset="0" />
    <rom name="t58.b1" merge="t58.b1" size="131072" crc="a874121d" sha1="1351d5901d55059c6472a4588a2e560396903861" region="gfx3" offset="20000" />
    <rom name="t59.b2" merge="t59.b2" size="131072" crc="69deb990" sha1="1eed3183efbe576376661b45152a0a21240ecfc8" region="gfx3" offset="40000" />
    <rom name="t60.b3" merge="t60.b3" size="131072" crc="14c69f99" sha1="4bea72f8bd421ef3ca559363f7473ce2e7038699" region="gfx3" offset="60000" />
    <rom name="t52.v0.ic44" merge="t52.v0" size="131072" crc="2db1bd80" sha1="657006d0642ec7fb949bb52821d78fe51a599415" region="samples" offset="0" />
    <device_ref name="v30" />
    <device_ref name="z80" />
    <device_ref name="pic8259" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="screen" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="rst_neg_buffer" />
    <device_ref name="m72_audio" />
    <device_ref name="ym2151" />
    <device_ref name="dac_8bit_r2r" />
    <device_ref name="mb8421_mb8431_16" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="i8751" />
    <chip type="cpu" tag="maincpu" name="NEC V30" clock="8000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="3579545" />
    <chip type="cpu" tag="mcu" name="Intel 8751" clock="8000000" />
    <chip type="audio" tag="speaker" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3579545" />
    <chip type="audio" tag="dac" name="8-Bit R-2R DAC" />
    <display tag="screen" type="raster" rotate="0" width="384" height="256" refresh="55.017606" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="284" vbend="0" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Difficulty" tag="DSW" mask="3">
      <diplocation name="SW1" number="1" />
      <diplocation name="SW1" number="2" />
      <dipvalue name="Very Easy" value="2" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="3" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSW" mask="12">
      <diplocation name="SW1" number="3" />
      <diplocation name="SW1" number="4" />
      <dipvalue name="1" value="8" />
      <dipvalue name="2" value="4" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="48">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <dipvalue name="5 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="32" />
      <dipvalue name="1 Coin/1 Credit" value="48" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="192">
      <condition tag="DSW" mask="1024" relation="eq" value="0" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="1 Coin/2 Credits" value="192" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/5 Credits" value="64" />
      <dipvalue name="1 Coin/6 Credits" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="240">
      <condition tag="DSW" mask="1024" relation="ne" value="0" />
      <diplocation name="SW1" number="5" />
      <diplocation name="SW1" number="6" />
      <diplocation name="SW1" number="7" />
      <diplocation name="SW1" number="8" />
      <dipvalue name="6 Coins/1 Credit" value="160" />
      <dipvalue name="5 Coins/1 Credit" value="176" />
      <dipvalue name="4 Coins/1 Credit" value="192" />
      <dipvalue name="3 Coins/1 Credit" value="208" />
      <dipvalue name="8 Coins/3 Credits" value="16" />
      <dipvalue name="2 Coins/1 Credit" value="224" />
      <dipvalue name="5 Coins/3 Credits" value="32" />
      <dipvalue name="3 Coins/2 Credits" value="48" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="64" />
      <dipvalue name="1 Coin/2 Credits" value="144" />
      <dipvalue name="1 Coin/3 Credits" value="128" />
      <dipvalue name="1 Coin/4 Credits" value="112" />
      <dipvalue name="1 Coin/5 Credits" value="96" />
      <dipvalue name="1 Coin/6 Credits" value="80" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSW" mask="256">
      <diplocation name="SW2" number="1" />
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="DSW" mask="512">
      <diplocation name="SW2" number="2" />
      <dipvalue name="Upright (single)" value="0" default="yes">
        <condition tag="DSW" mask="4096" relation="ne" value="0" />
      </dipvalue>
      <dipvalue name="Cocktail" value="512">
        <condition tag="DSW" mask="4096" relation="ne" value="0" />
      </dipvalue>
      <dipvalue name="Upright (double) On" value="0" default="yes">
        <condition tag="DSW" mask="4096" relation="eq" value="0" />
      </dipvalue>
      <dipvalue name="Upright (double) Off" value="512">
        <condition tag="DSW" mask="4096" relation="eq" value="0" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin Mode" tag="DSW" mask="1024">
      <diplocation name="SW2" number="3" />
      <dipvalue name="Mode 1" value="1024" default="yes" />
      <dipvalue name="Mode 2" value="0" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="2048">
      <diplocation name="SW2" number="4" />
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2048" default="yes" />
    </dipswitch>
    <dipswitch name="Upright (double) Mode" tag="DSW" mask="4096">
      <diplocation name="SW2" number="5" />
      <dipvalue name="Off" value="4096" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSW" mask="8192">
      <diplocation name="SW2" number="6" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="8192" default="yes" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="16384">
      <diplocation name="SW2" number="7" />
      <dipvalue name="Off" value="16384" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSW" mask="32768">
      <diplocation name="SW2" number="8" />
      <dipvalue name="Off" value="32768" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN0" />
    <port tag=":IN1" />
    <driver status="good" emulation="good" cocktail="preliminary" savestate="supported" />
  </machine>
</datafile>