<?xml version="1.0" encoding="utf-8"?>
<datafile>
  <header>
    <name>Sega System 1</name>
    <description>Sega System 1 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="4dwarrio" sourcefile="system1.cpp">
    <description>4-D Warriors (315-5162)</description>
    <year>1985</year>
    <manufacturer>Coreland / Sega</manufacturer>
    <rom name="4d.116" size="16384" crc="546d1bc7" sha1="724bb2f77a2b82fae85e535ae4a37820cfb323d0" region="maincpu" offset="0" />
    <rom name="4d.109" size="16384" crc="f1074ec3" sha1="bc368abeb6c0a7172e03bd7a1754cf4a6ecbb4f8" region="maincpu" offset="4000" />
    <rom name="4d.96" size="16384" crc="387c1e8f" sha1="520ecbafd1c7271dad24410a68067dfd801fa6d6" region="maincpu" offset="8000" />
    <rom name="4d.120" size="8192" crc="5241c009" sha1="b7a21f95b63234f2496d5ea6e7dc8050ca1b39fc" region="soundcpu" offset="0" />
    <rom name="4d.62" size="8192" crc="f31b2e09" sha1="fdc288769495f4b0ca8c7594c9ab7dc0f29e57a4" region="tiles" offset="0" />
    <rom name="4d.61" size="8192" crc="5430e925" sha1="55f92309223c41871175b1f54418c8b08339deb0" region="tiles" offset="2000" />
    <rom name="4d.64" size="8192" crc="9f442351" sha1="07076ef66e29c730050e38aecabdfbfced9f9bc4" region="tiles" offset="4000" />
    <rom name="4d.63" size="8192" crc="633232bd" sha1="c09c1df4f04608381d665a83776005607ad97ad4" region="tiles" offset="6000" />
    <rom name="4d.66" size="8192" crc="52bfa2ed" sha1="ea1c18d07957301f2006350b02fe40d13dbe2aa5" region="tiles" offset="8000" />
    <rom name="4d.65" size="8192" crc="e9ba4658" sha1="ba2581a52eb54e2d9f1e1bf30050280df3f5df1b" region="tiles" offset="a000" />
    <rom name="4d.117" size="16384" crc="436e4141" sha1="2574d5c3b01c89d8a041c82af976147d3b87b36b" region="sprites" offset="0" />
    <rom name="4d.04" size="16384" crc="8b7cecef" sha1="4851754cb56784ac248f699f0781646455dd556b" region="sprites" offset="4000" />
    <rom name="4d.110" size="16384" crc="6ec5990a" sha1="a26dbd470744c38a26a016e5d4792ac2f2b9bc4b" region="sprites" offset="8000" />
    <rom name="4d.05" size="16384" crc="f31a1e6a" sha1="f49dbc4b381e7096d5ffe3c16660dd63121dabf7" region="sprites" offset="c000" />
    <rom name="pr5317.76" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="sega_315_5162" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <device_ref name="z80pio" />
    <chip type="cpu" tag="maincpu" name="Sega 315-5162" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="6">
      <diplocation name="SWB" number="2" />
      <diplocation name="SWB" number="3" />
      <dipvalue name="3" value="6" default="yes" />
      <dipvalue name="4" value="4" />
      <dipvalue name="5" value="2" />
      <dipvalue name="Infinite" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="56">
      <diplocation name="SWB" number="4" />
      <diplocation name="SWB" number="5" />
      <diplocation name="SWB" number="6" />
      <dipvalue name="30000" value="56" default="yes" />
      <dipvalue name="40000" value="48" />
      <dipvalue name="50000" value="40" />
      <dipvalue name="60000" value="32" />
      <dipvalue name="70000" value="24" />
      <dipvalue name="80000" value="16" />
      <dipvalue name="90000" value="8" />
      <dipvalue name="None" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Easy" value="64" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="SW 0 Read From" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Port $0D" value="128" default="yes" />
      <dipvalue name="Port $10" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="blockgal" sourcefile="system1.cpp">
    <description>Block Gal (MC-8123B, 317-0029)</description>
    <year>1987</year>
    <manufacturer>Sega / Vic Tokai</manufacturer>
    <rom name="bg.116" size="16384" crc="a99b231a" sha1="42ba45a4fd315255e9500bc3a0e8fe653c4c5a9c" region="maincpu" offset="0" />
    <rom name="bg.109" size="16384" crc="a6b573d5" sha1="33547a3895bbe65d5a6c40453eeb93e1fedad6de" region="maincpu" offset="4000" />
    <rom name="317-0029.key" size="8192" crc="350d7f93" sha1="7ef12d63b2c7150f8e74f65ec8340471d72b1c03" region="maincpu:key" offset="0" />
    <rom name="bg.120" size="8192" crc="d848faff" sha1="5974cc0c3090800ca79f580a620f5b6615f5d039" region="soundcpu" offset="0" />
    <rom name="bg.62" size="8192" crc="7e3ea4eb" sha1="8bf020b083e2da12fe95ddae9ac7a385490525bc" region="tiles" offset="0" />
    <rom name="bg.61" size="8192" crc="4dd3d39d" sha1="759fca021f8d59e861dc19543d5a184428a5e472" region="tiles" offset="2000" />
    <rom name="bg.64" size="8192" crc="17368663" sha1="e8f2ac6de0fddf08aefae07e693cac100cfb0db4" region="tiles" offset="4000" />
    <rom name="bg.63" size="8192" crc="0c8bc404" sha1="fc96fb682da3af6b7fc852cea6d8a957c4ce57e3" region="tiles" offset="6000" />
    <rom name="bg.66" size="8192" crc="2b7dc4fa" sha1="79d3677b24682cee0c08088433646800703be531" region="tiles" offset="8000" />
    <rom name="bg.65" size="8192" crc="ed121306" sha1="89f812b3954922e22fcf8d9cc4ee5ba295279cb6" region="tiles" offset="a000" />
    <rom name="bg.117" size="16384" crc="e99cc920" sha1="b2b9199a9296e0c34fcf4dd20ffd3e8de08f42da" region="sprites" offset="0" />
    <rom name="bg.04" size="16384" crc="213057f8" sha1="a872631aaa2b73e9198f2ad6cede2a889279e610" region="sprites" offset="4000" />
    <rom name="bg.110" size="16384" crc="064c812c" sha1="673790dc5131fd280333386a0e9915fb94e9f3e1" region="sprites" offset="8000" />
    <rom name="bg.05" size="16384" crc="02e0b040" sha1="fb626fc31dfe25bf9fac0c8d76d5041609b06e82" region="sprites" offset="c000" />
    <rom name="pr5317.76" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="mc8123" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <device_ref name="z80pio" />
    <chip type="cpu" tag="maincpu" name="MC-8123" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="90" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2">
      <control type="dial" player="1" buttons="1" minimum="0" maximum="255" sensitivity="60" keydelta="15" reverse="yes" />
      <control type="dial" player="2" buttons="1" minimum="0" maximum="255" sensitivity="60" keydelta="15" reverse="yes" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWB" mask="4">
      <diplocation name="SWB" number="3" />
      <dipvalue name="Off" value="4" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="8">
      <diplocation name="SWB" number="4" />
      <dipvalue name="2" value="8" />
      <dipvalue name="3" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="10k 30k 60k 100k 150k" value="16" default="yes" />
      <dipvalue name="30k 50k 100k 200k 300k" value="0" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="SWB" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="No" value="32" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":P1">
      <analog mask="255" />
    </port>
    <port tag=":P2">
      <analog mask="255" />
    </port>
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="blockgalb" sourcefile="system1.cpp" cloneof="blockgal" romof="blockgal">
    <description>Block Gal (bootleg)</description>
    <year>1987</year>
    <manufacturer>bootleg</manufacturer>
    <rom name="ic62" size="65536" crc="65c47676" sha1="bc283761e6f9ebf65fb405b1c8922c3c98c8d00e" region="maincpu" offset="10000" />
    <rom name="bg.120" merge="bg.120" size="8192" crc="d848faff" sha1="5974cc0c3090800ca79f580a620f5b6615f5d039" region="soundcpu" offset="0" />
    <rom name="bg.62" merge="bg.62" size="8192" crc="7e3ea4eb" sha1="8bf020b083e2da12fe95ddae9ac7a385490525bc" region="tiles" offset="0" />
    <rom name="bg.61" merge="bg.61" size="8192" crc="4dd3d39d" sha1="759fca021f8d59e861dc19543d5a184428a5e472" region="tiles" offset="2000" />
    <rom name="bg.64" merge="bg.64" size="8192" crc="17368663" sha1="e8f2ac6de0fddf08aefae07e693cac100cfb0db4" region="tiles" offset="4000" />
    <rom name="bg.63" merge="bg.63" size="8192" crc="0c8bc404" sha1="fc96fb682da3af6b7fc852cea6d8a957c4ce57e3" region="tiles" offset="6000" />
    <rom name="bg.66" merge="bg.66" size="8192" crc="2b7dc4fa" sha1="79d3677b24682cee0c08088433646800703be531" region="tiles" offset="8000" />
    <rom name="bg.65" merge="bg.65" size="8192" crc="ed121306" sha1="89f812b3954922e22fcf8d9cc4ee5ba295279cb6" region="tiles" offset="a000" />
    <rom name="bg.117" merge="bg.117" size="16384" crc="e99cc920" sha1="b2b9199a9296e0c34fcf4dd20ffd3e8de08f42da" region="sprites" offset="0" />
    <rom name="bg.04" merge="bg.04" size="16384" crc="213057f8" sha1="a872631aaa2b73e9198f2ad6cede2a889279e610" region="sprites" offset="4000" />
    <rom name="bg.110" merge="bg.110" size="16384" crc="064c812c" sha1="673790dc5131fd280333386a0e9915fb94e9f3e1" region="sprites" offset="8000" />
    <rom name="bg.05" merge="bg.05" size="16384" crc="02e0b040" sha1="fb626fc31dfe25bf9fac0c8d76d5041609b06e82" region="sprites" offset="c000" />
    <rom name="pr5317.76" merge="pr5317.76" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="z80" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <chip type="cpu" tag="maincpu" name="Zilog Z80" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="90" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2">
      <control type="dial" player="1" buttons="1" minimum="0" maximum="255" sensitivity="60" keydelta="15" reverse="yes" />
      <control type="dial" player="2" buttons="1" minimum="0" maximum="255" sensitivity="60" keydelta="15" reverse="yes" />
    </input>
    <dipswitch name="Cabinet" tag="SWA" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWA" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWA" mask="8">
      <diplocation name="SWB" number="4" />
      <dipvalue name="2" value="8" />
      <dipvalue name="3" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWA" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="10k 30k 60k 100k 150k" value="16" default="yes" />
      <dipvalue name="30k 50k 100k 200k 300k" value="0" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="SWA" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="No" value="32" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWA" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="SWA" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="SWB" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWB" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <port tag=":P1">
      <analog mask="255" />
    </port>
    <port tag=":P2">
      <analog mask="255" />
    </port>
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="brain" sourcefile="system1.cpp">
    <description>Brain</description>
    <year>1986</year>
    <manufacturer>Coreland / Sega</manufacturer>
    <rom name="brain.1" size="32768" crc="2d2aec31" sha1="02dfbb0e9ca01b864e3aa594cf38306fe82a4b5d" region="maincpu" offset="0" />
    <rom name="brain.2" size="32768" crc="810a8ab5" sha1="87cd39f5b1047f355e1d257c691ef11fc55824ca" region="maincpu" offset="10000" />
    <rom name="brain.3" size="32768" crc="9a225634" sha1="9f137938592dd9c5ab2273864a11a682e0f7f783" region="maincpu" offset="18000" />
    <rom name="brain.120" size="32768" crc="c7e50278" sha1="9709a59004c6bc39173d0cb94f3602c358367976" region="soundcpu" offset="0" />
    <rom name="brain.62" size="16384" crc="7dce2302" sha1="ebf15da3aea36f6a831a5395b0e5fc253852a3ee" region="tiles" offset="0" />
    <rom name="brain.64" size="16384" crc="7ce03fd3" sha1="11f037c75d606276cbf4ec76a2cfdde94a756493" region="tiles" offset="4000" />
    <rom name="brain.66" size="16384" crc="ea54323f" sha1="08a4d2543a75a1fbb6ef2c126e3aeb4945bf458f" region="tiles" offset="8000" />
    <rom name="brain.117" size="32768" crc="92ff71a4" sha1="856646c595e0ef7bbcf18844ee34b04e05893ffa" region="sprites" offset="0" />
    <rom name="brain.110" size="32768" crc="a1b847ec" sha1="d71664822b9b863bd2a37da71b4e0850893b9876" region="sprites" offset="8000" />
    <rom name="brain.4" size="32768" crc="fd2ea53b" sha1="c7f2d267f19d2c27a550120e003ebfcb10d8af89" region="sprites" offset="10000" />
    <rom name="bprom.3" size="256" crc="8eee0f72" sha1="b5694c120f604a5f7cc95618a71ab16a1a6151ed" status="baddump" region="color_proms" offset="0" />
    <rom name="bprom.2" size="256" crc="3e7babd7" sha1="d4f8790db4dce75e27156a4c6de2dcef2baf6d76" status="baddump" region="color_proms" offset="100" />
    <rom name="bprom.1" size="256" crc="371c44a6" sha1="ac37458d1feb6566b09a795b20c21953d4ab109d" status="baddump" region="color_proms" offset="200" />
    <rom name="pr5317.76" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="z80" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <device_ref name="z80pio" />
    <chip type="cpu" tag="maincpu" name="Zilog Z80" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="8" />
      <dipvalue name="5" value="4" />
      <dipvalue name="Infinite" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="SWB" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="SWB" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="bullfgt" sourcefile="system1.cpp">
    <description>Bullfight (315-5065)</description>
    <year>1984</year>
    <manufacturer>Coreland / Sega</manufacturer>
    <rom name="epr-.129" size="8192" crc="29f19156" sha1="86cca9601f63b9b3d3aaaf21c3a3e456a50ca6b8" region="maincpu" offset="0" />
    <rom name="epr-.130" size="8192" crc="e37d2b95" sha1="9d2523190e49c9d45a5832da912cbc0cd23e2496" region="maincpu" offset="2000" />
    <rom name="epr-.131" size="8192" crc="eaf5773d" sha1="7db6a7c1c4d9e5f5b4de97b41ab5dd591e2e1548" region="maincpu" offset="4000" />
    <rom name="epr-.132" size="8192" crc="72c3c712" sha1="1c1ac6d7248382228b99d2652f53fbe15246f253" region="maincpu" offset="6000" />
    <rom name="epr-.133" size="8192" crc="7d9fa4cd" sha1="b6f0d86281c7e8de7a23b0c55c1991350d5bc9b1" region="maincpu" offset="8000" />
    <rom name="epr-.134" size="8192" crc="061f2797" sha1="f13acd4c5b33ed85229a3907744283646e020867" region="maincpu" offset="a000" />
    <rom name="epr-6077.120" size="8192" crc="02a37602" sha1="1b67b0d80a228f7faf054bfd79aff120d92c8166" region="soundcpu" offset="0" />
    <rom name="epr-.82" size="8192" crc="b71c349f" sha1="5a0e9b90c71708dadab201da09c71449e05268e1" region="tiles" offset="0" />
    <rom name="epr-.65" size="8192" crc="86deafa8" sha1="b4b9d38bd4a47ce2e75ec0ef3d7507aef8a16858" region="tiles" offset="2000" />
    <rom name="epr-6087.81" size="8192" crc="2677742c" sha1="6a6154f1c2cc53b9d224fc73bab47e6deb7c505f" region="tiles" offset="4000" />
    <rom name="epr-.64" size="8192" crc="6f0a62be" sha1="30c93c4d7f916f7b9a725f412a3a4a71f24c4f22" region="tiles" offset="6000" />
    <rom name="epr-6085.80" size="8192" crc="9c3ddc62" sha1="3332824de114836760a40133fb65d8f40474bc81" region="tiles" offset="8000" />
    <rom name="epr-.63" size="8192" crc="c0fce57c" sha1="74f2c987f77e73b7069014d3bd6809d8bb3596c7" region="tiles" offset="a000" />
    <rom name="epr-6069.86" size="16384" crc="fe691e41" sha1="90faf26685202e2a25bb3024750456014d0722b3" region="sprites" offset="0" />
    <rom name="epr-6070.93" size="16384" crc="34f080df" sha1="0e7d28e3325c8c3f06438fde29ea0ffe57fc325f" region="sprites" offset="4000" />
    <rom name="pr-5317.106" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="sega_315_5065" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <chip type="cpu" tag="maincpu" name="Sega 315-5065" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="8" />
      <dipvalue name="5" value="4" />
      <dipvalue name="Infinite" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="48">
      <diplocation name="SWB" number="5" />
      <diplocation name="SWB" number="6" />
      <dipvalue name="30000" value="48" default="yes" />
      <dipvalue name="50000" value="32" />
      <dipvalue name="70000" value="16" />
      <dipvalue name="None" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="SW 0 Read From" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Port $0D" value="128" default="yes" />
      <dipvalue name="Port $10" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="choplift" sourcefile="system1.cpp">
    <description>Choplifter (8751 315-5151)</description>
    <year>1985</year>
    <manufacturer>Sega (licensed from Dan Gorlin)</manufacturer>
    <rom name="epr-7124.ic90" size="32768" crc="678d5c41" sha1="7553979f78270c2ddc5b3f3ebf7817ead8e08de7" region="maincpu" offset="0" />
    <rom name="epr-7125.ic91" size="32768" crc="f5283498" sha1="1ad40f6d7b4cd18212ee56917240c0796f1a4ec2" region="maincpu" offset="10000" />
    <rom name="epr-7126.ic92" size="32768" crc="dbd192ab" sha1="03d280c82599a14fc6a2065d57c6241cdc6f1143" region="maincpu" offset="18000" />
    <rom name="epr-7130.ic126" size="32768" crc="346af118" sha1="ef579818a45b8ebb276d5832092b26e232d5a737" region="soundcpu" offset="0" />
    <rom name="315-5151.ic74" size="4096" crc="1377a6ef" sha1="b85acd7292e5480c98af1a0492b6b5d3f9b1716c" region="mcu" offset="0" />
    <rom name="epr-7127.ic4" size="32768" crc="1e708f6d" sha1="b975e13bdc44105e7a15c2694e3ec53b60e23e5e" region="tiles" offset="0" />
    <rom name="epr-7128.ic5" size="32768" crc="b922e787" sha1="16087671ec7de25f749b5fd66409d48ef7b35820" region="tiles" offset="8000" />
    <rom name="epr-7129.ic6" size="32768" crc="bd3b6e6e" sha1="c66f21b98cb8fc61a9318041ac1812c13099d974" region="tiles" offset="10000" />
    <rom name="epr-7121.ic87" size="32768" crc="f2b88f73" sha1="2b06da1beabbea82d502fbe12f6ec3ef26056edd" region="sprites" offset="0" />
    <rom name="epr-7120.ic86" size="32768" crc="517d7fd3" sha1="3fb5c00224920c3f62fb86e82caf0fee2293e1e2" region="sprites" offset="8000" />
    <rom name="epr-7123.ic89" size="32768" crc="8f16a303" sha1="5f2465505f001dc052e9de4cf66bc1d53fc8c7da" region="sprites" offset="10000" />
    <rom name="epr-7122.ic88" size="32768" crc="7c93f160" sha1="6ab156cad7556808496070f8b02a708ce405c492" region="sprites" offset="18000" />
    <rom name="pr7119.ic20" size="256" crc="b2a8260f" sha1="36c1debb4b3f2f190a25b18d533319d7380416de" region="color_proms" offset="0" />
    <rom name="pr7118.ic14" size="256" crc="693e20c7" sha1="9ebf4bd2c30ddd9648bc4b41c7739cfdf80100da" region="color_proms" offset="100" />
    <rom name="pr7117.ic8" size="256" crc="4124307e" sha1="cee28d891e6ce732c43a61acb5beeafd2200cf37" region="color_proms" offset="200" />
    <rom name="pr5317.ic28" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <rom name="315-5152.bin" size="260" crc="2c9229b4" sha1="9755013afcf89f99d7a399c7e223e027761cf89a" region="plds" offset="0" />
    <rom name="315-5138.bin" size="260" crc="dd223015" sha1="8d70f91b118e8653dda1efee3eaea287ae63809f" region="plds" offset="0" />
    <rom name="315-5139.bin" size="260" status="nodump" region="plds" offset="0" />
    <rom name="315-5025.bin" size="260" status="nodump" region="plds" offset="0" />
    <rom name="315-5025.bin" size="260" status="nodump" region="plds" offset="0" />
    <rom name="315-5025.bin" size="260" status="nodump" region="plds" offset="0" />
    <device_ref name="z80" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <device_ref name="i8751" />
    <device_ref name="timer" />
    <chip type="cpu" tag="maincpu" name="Zilog Z80" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="cpu" tag="mcu" name="Intel 8751" clock="8000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Cabinet" tag="SWA" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWA" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWA" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="2" value="8" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="4" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWA" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="20k 70k 120k 170k" value="16" default="yes" />
      <dipvalue name="50k 100k 150k 200k" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWA" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="Hard" value="0" default="yes" />
      <dipvalue name="Easy" value="32" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWA" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWA" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="SWB" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWB" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="chopliftbl" sourcefile="system1.cpp" cloneof="choplift" romof="choplift">
    <description>Choplifter (bootleg)</description>
    <year>1985</year>
    <manufacturer>bootleg</manufacturer>
    <rom name="ep7124bl.90" size="32768" crc="71a37932" sha1="72b6f8949d356b3adc5248fdaa13c2a1b9c0fa70" region="maincpu" offset="0" />
    <rom name="epr-7125.91" merge="epr-7125.ic91" size="32768" crc="f5283498" sha1="1ad40f6d7b4cd18212ee56917240c0796f1a4ec2" region="maincpu" offset="10000" />
    <rom name="epr-7126.92" merge="epr-7126.ic92" size="32768" crc="dbd192ab" sha1="03d280c82599a14fc6a2065d57c6241cdc6f1143" region="maincpu" offset="18000" />
    <rom name="epr-7130.126" merge="epr-7130.ic126" size="32768" crc="346af118" sha1="ef579818a45b8ebb276d5832092b26e232d5a737" region="soundcpu" offset="0" />
    <rom name="epr-7127.4" merge="epr-7127.ic4" size="32768" crc="1e708f6d" sha1="b975e13bdc44105e7a15c2694e3ec53b60e23e5e" region="tiles" offset="0" />
    <rom name="epr-7128.5" merge="epr-7128.ic5" size="32768" crc="b922e787" sha1="16087671ec7de25f749b5fd66409d48ef7b35820" region="tiles" offset="8000" />
    <rom name="epr-7129.6" merge="epr-7129.ic6" size="32768" crc="bd3b6e6e" sha1="c66f21b98cb8fc61a9318041ac1812c13099d974" region="tiles" offset="10000" />
    <rom name="epr-7121.87" merge="epr-7121.ic87" size="32768" crc="f2b88f73" sha1="2b06da1beabbea82d502fbe12f6ec3ef26056edd" region="sprites" offset="0" />
    <rom name="epr-7120.86" merge="epr-7120.ic86" size="32768" crc="517d7fd3" sha1="3fb5c00224920c3f62fb86e82caf0fee2293e1e2" region="sprites" offset="8000" />
    <rom name="epr-7123.89" merge="epr-7123.ic89" size="32768" crc="8f16a303" sha1="5f2465505f001dc052e9de4cf66bc1d53fc8c7da" region="sprites" offset="10000" />
    <rom name="epr-7122.88" merge="epr-7122.ic88" size="32768" crc="7c93f160" sha1="6ab156cad7556808496070f8b02a708ce405c492" region="sprites" offset="18000" />
    <rom name="pr7119.20" merge="pr7119.ic20" size="256" crc="b2a8260f" sha1="36c1debb4b3f2f190a25b18d533319d7380416de" region="color_proms" offset="0" />
    <rom name="pr7118.14" merge="pr7118.ic14" size="256" crc="693e20c7" sha1="9ebf4bd2c30ddd9648bc4b41c7739cfdf80100da" region="color_proms" offset="100" />
    <rom name="pr7117.8" merge="pr7117.ic8" size="256" crc="4124307e" sha1="cee28d891e6ce732c43a61acb5beeafd2200cf37" region="color_proms" offset="200" />
    <rom name="pr5317.28" merge="pr5317.ic28" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <rom name="pal16r4.bin" size="1" status="nodump" region="plds_main" offset="0" />
    <rom name="pal16r4.bin" size="1" status="nodump" region="plds_main" offset="0" />
    <rom name="pal16l8.bin" size="1" status="nodump" region="plds_main" offset="0" />
    <rom name="pal16r4.bin" size="1" status="nodump" region="plds_600a" offset="0" />
    <rom name="pal16l8.bin" size="1" status="nodump" region="plds_600a" offset="0" />
    <rom name="pal20r4.bin" size="1" status="nodump" region="plds_600b" offset="0" />
    <rom name="pal16l8.bin" size="1" status="nodump" region="plds_600b" offset="0" />
    <rom name="pal16l8.bin" size="1" status="nodump" region="plds_600b" offset="0" />
    <rom name="pal16l8.bin" size="1" status="nodump" region="plds_600b" offset="0" />
    <rom name="pal16l8.bin" size="1" status="nodump" region="plds_600b" offset="0" />
    <rom name="pal16r4a.ic9" merge="315-5138.bin" size="260" crc="dd223015" sha1="8d70f91b118e8653dda1efee3eaea287ae63809f" region="plds_unk" offset="0" />
    <rom name="pal16r4a.ic10" merge="315-5152.bin" size="260" crc="2c9229b4" sha1="9755013afcf89f99d7a399c7e223e027761cf89a" region="plds_unk" offset="104" />
    <rom name="pal16r4a-chopbl1.bin" size="260" crc="e1628a8e" sha1="6b6df079cfadec71b38a53f107475f0dda428b00" region="plds_unk" offset="208" />
    <rom name="pal16l8a-chopbl2.bin" size="260" crc="afa7425d" sha1="09d8607b69ecfc0b12c8610751d489500b63c7d6" region="plds_unk" offset="30c" />
    <device_ref name="z80" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <chip type="cpu" tag="maincpu" name="Zilog Z80" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Cabinet" tag="SWA" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWA" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWA" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="2" value="8" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="4" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWA" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="20k 70k 120k 170k" value="16" default="yes" />
      <dipvalue name="50k 100k 150k 200k" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWA" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="Hard" value="0" default="yes" />
      <dipvalue name="Easy" value="32" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWA" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWA" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="SWB" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWB" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="chopliftu" sourcefile="system1.cpp" cloneof="choplift" romof="choplift">
    <description>Choplifter (unprotected)</description>
    <year>1985</year>
    <manufacturer>Sega (licensed from Dan Gorlin)</manufacturer>
    <rom name="epr-7152.ic90" size="32768" crc="fe49d83e" sha1="307be38dd73ed37b275c1b464d266a752cb06132" region="maincpu" offset="0" />
    <rom name="epr-7153.ic91" size="32768" crc="48697666" sha1="0f4c6db9558272f5ceb347e742b284474f18b707" region="maincpu" offset="10000" />
    <rom name="epr-7154.ic92" size="32768" crc="56d6222a" sha1="ad8ccf15fe7f1d6716f78490892da0167d79f678" region="maincpu" offset="18000" />
    <rom name="epr-7130.ic126" merge="epr-7130.ic126" size="32768" crc="346af118" sha1="ef579818a45b8ebb276d5832092b26e232d5a737" region="soundcpu" offset="0" />
    <rom name="epr-7127.ic4" merge="epr-7127.ic4" size="32768" crc="1e708f6d" sha1="b975e13bdc44105e7a15c2694e3ec53b60e23e5e" region="tiles" offset="0" />
    <rom name="epr-7128.ic5" merge="epr-7128.ic5" size="32768" crc="b922e787" sha1="16087671ec7de25f749b5fd66409d48ef7b35820" region="tiles" offset="8000" />
    <rom name="epr-7129.ic6" merge="epr-7129.ic6" size="32768" crc="bd3b6e6e" sha1="c66f21b98cb8fc61a9318041ac1812c13099d974" region="tiles" offset="10000" />
    <rom name="epr-7121.ic87" merge="epr-7121.ic87" size="32768" crc="f2b88f73" sha1="2b06da1beabbea82d502fbe12f6ec3ef26056edd" region="sprites" offset="0" />
    <rom name="epr-7120.ic86" merge="epr-7120.ic86" size="32768" crc="517d7fd3" sha1="3fb5c00224920c3f62fb86e82caf0fee2293e1e2" region="sprites" offset="8000" />
    <rom name="epr-7123.ic89" merge="epr-7123.ic89" size="32768" crc="8f16a303" sha1="5f2465505f001dc052e9de4cf66bc1d53fc8c7da" region="sprites" offset="10000" />
    <rom name="epr-7122.ic88" merge="epr-7122.ic88" size="32768" crc="7c93f160" sha1="6ab156cad7556808496070f8b02a708ce405c492" region="sprites" offset="18000" />
    <rom name="pr7119.ic20" merge="pr7119.ic20" size="256" crc="b2a8260f" sha1="36c1debb4b3f2f190a25b18d533319d7380416de" region="color_proms" offset="0" />
    <rom name="pr7118.ic14" merge="pr7118.ic14" size="256" crc="693e20c7" sha1="9ebf4bd2c30ddd9648bc4b41c7739cfdf80100da" region="color_proms" offset="100" />
    <rom name="pr7117.ic8" merge="pr7117.ic8" size="256" crc="4124307e" sha1="cee28d891e6ce732c43a61acb5beeafd2200cf37" region="color_proms" offset="200" />
    <rom name="pr5317.ic28" merge="pr5317.ic28" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <rom name="315-5152.bin" merge="315-5152.bin" size="260" crc="2c9229b4" sha1="9755013afcf89f99d7a399c7e223e027761cf89a" region="plds" offset="0" />
    <rom name="315-5138.bin" merge="315-5138.bin" size="260" crc="dd223015" sha1="8d70f91b118e8653dda1efee3eaea287ae63809f" region="plds" offset="0" />
    <rom name="315-5139.bin" size="260" status="nodump" region="plds" offset="0" />
    <rom name="315-5025.bin" size="260" status="nodump" region="plds" offset="0" />
    <rom name="315-5025.bin" size="260" status="nodump" region="plds" offset="0" />
    <rom name="315-5025.bin" size="260" status="nodump" region="plds" offset="0" />
    <device_ref name="z80" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <chip type="cpu" tag="maincpu" name="Zilog Z80" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Cabinet" tag="SWA" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWA" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWA" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="2" value="8" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="4" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWA" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="20k 70k 120k 170k" value="16" default="yes" />
      <dipvalue name="50k 100k 150k 200k" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWA" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="Hard" value="0" default="yes" />
      <dipvalue name="Easy" value="32" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWA" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWA" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="SWB" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWB" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="dakkochn" sourcefile="system1.cpp">
    <description>DakkoChan House (MC-8123B, 317-5014)</description>
    <year>1987</year>
    <manufacturer>White Board</manufacturer>
    <rom name="epr-11224.ic90" size="32768" crc="9fb1972b" sha1="1bb61c6ec2b5b8eb39f74f20d5bcd0f14501bd21" region="maincpu" offset="0" />
    <rom name="epr-11225.ic91" size="32768" crc="c540f9e2" sha1="dbda9355e8b796bcfaee2789714d248c4d7ad58c" region="maincpu" offset="10000" />
    <rom name="317-5014.key" size="8192" crc="bb9df5ad" sha1="7e7b7255149ae01d19883ecf4a88989f8a9bf4c6" region="maincpu:key" offset="0" />
    <rom name="epr-11229.ic126" size="32768" crc="c11648d0" sha1="c2df3d767d497c3365ae70748c4790f4ee394958" region="soundcpu" offset="0" />
    <rom name="epr-11226.ic4" size="32768" crc="3dbc2f78" sha1="f3f7ee2c0bedcc21c1c1f5394838af6d0a8833d8" region="tiles" offset="0" />
    <rom name="epr-11227.ic5" size="32768" crc="34156e8d" sha1="e23d8604a3d5db413cf150f9891fca2b1e0163fa" region="tiles" offset="8000" />
    <rom name="epr-11228.ic6" size="32768" crc="fdd5323f" sha1="c47099c78207bb2258d34b98b48e3c04beb6407e" region="tiles" offset="10000" />
    <rom name="epr-11221.ic87" size="32768" crc="f9a44916" sha1="9d9ba96146cff4c1ed18b7134ab19919e144d326" region="sprites" offset="0" />
    <rom name="epr-11220.ic86" size="32768" crc="84c8f6b2" sha1="82b4c64b5b79dab9e3894e3e0bd12a05909af989" region="sprites" offset="8000" />
    <rom name="epr-11223.ic89" size="32768" crc="538adc55" sha1="542af53a56f580e5ab455aa6bed955ee5fd4a252" region="sprites" offset="10000" />
    <rom name="epr-11222.ic88" size="32768" crc="33fab0b2" sha1="eb3c08009315e46590c2c0df17fc3fa391034c66" region="sprites" offset="18000" />
    <rom name="pr-11219.ic20" size="256" crc="45e252d9" sha1="92d8f1d0f1a9e65234521ce02d512f08b5e06d78" region="color_proms" offset="0" />
    <rom name="pr-11218.ic14" size="256" crc="3eda3a1b" sha1="cc98c792521845259088eb163a150cd5bb603d5d" region="color_proms" offset="100" />
    <rom name="pr-11217.ic8" size="256" crc="49dbde88" sha1="7057da5617de7e4775adf092cce1709135066129" region="color_proms" offset="200" />
    <rom name="pr-5317.ic37" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <rom name="315-5139.ic50" size="231" crc="943d91b0" sha1="37c98085d580808aaeb01726a9f59705590378c4" region="plds" offset="0" />
    <device_ref name="mc8123" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <chip type="cpu" tag="maincpu" name="MC-8123" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="1" coins="2" service="yes">
      <control type="mahjong" buttons="22" />
    </input>
    <dipswitch name="Cabinet" tag="SWA" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWA" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWA" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="4" />
      <dipvalue name="4" value="12" default="yes" />
      <dipvalue name="5" value="8" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWA" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="30000 100000 200000" value="16" default="yes" />
      <dipvalue name="50000 150000 250000" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWA" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="Easy" value="32" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="Test Mode" tag="SWA" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="SWA" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="SWB" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWB" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <port tag=":KEY0" />
    <port tag=":KEY1" />
    <port tag=":KEY2" />
    <port tag=":KEY3" />
    <port tag=":KEY4" />
    <port tag=":KEY5" />
    <port tag=":KEY6" />
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="flicky" sourcefile="system1.cpp">
    <description>Flicky (128k Version, 315-5051)</description>
    <year>1984</year>
    <manufacturer>Sega</manufacturer>
    <rom name="epr-5978a.116" size="16384" crc="296f1492" sha1="52e2c63ce376ab8124b2c68bdfa432b6621cfa78" region="maincpu" offset="0" />
    <rom name="epr-5979a.109" size="16384" crc="64b03ef9" sha1="7519aa7f036bce6d52a5d4be2418139559f9a8a5" region="maincpu" offset="4000" />
    <rom name="epr-5869.120" size="8192" crc="6d220d4e" sha1="fe02a7a94a1ad046fc775a7f67f460c8d0f6dca6" region="soundcpu" offset="0" />
    <rom name="epr-5868.62" size="8192" crc="7402256b" sha1="5bd660ac24a2d0d8ad983e948674a82a2d2e8b49" region="tiles" offset="0" />
    <rom name="epr-5867.61" size="8192" crc="2f5ce930" sha1="4bc3bc6eb8f03926d3710c9f96fcc1b116e918d3" region="tiles" offset="2000" />
    <rom name="epr-5866.64" size="8192" crc="967f1d9a" sha1="652be7848526c6e61db4a502f75d1689d2ff2f59" region="tiles" offset="4000" />
    <rom name="epr-5865.63" size="8192" crc="03d9a34c" sha1="e158db3e0b86f2b8ad34cefc2714cb0a942efde7" region="tiles" offset="6000" />
    <rom name="epr-5864.66" size="8192" crc="e659f358" sha1="cf59f1fb0f9fb77d5ac36be52b6ee946ee85d6de" region="tiles" offset="8000" />
    <rom name="epr-5863.65" size="8192" crc="a496ca15" sha1="8c629a853486bbe049b1deecdc00f9e16b87698f" region="tiles" offset="a000" />
    <rom name="epr-5855.117" size="16384" crc="b5f894a1" sha1="2c72dc16739dad155fcd572e1add067a7647f5bd" region="sprites" offset="0" />
    <rom name="epr-5856.110" size="16384" crc="266af78f" sha1="dcbfce550d10a1f2b3ce3e7e081fc008cb575708" region="sprites" offset="4000" />
    <rom name="pr-5317.76" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="sega_315_5051" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <device_ref name="z80pio" />
    <chip type="cpu" tag="maincpu" name="Sega 315-5051" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="1" ways="2" />
      <control type="joy" player="2" buttons="1" ways="2" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="8" />
      <dipvalue name="5" value="4" />
      <dipvalue name="Infinite" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="48">
      <diplocation name="SWB" number="5" />
      <diplocation name="SWB" number="6" />
      <dipvalue name="30000 80000 160000" value="48" default="yes" />
      <dipvalue name="30000 100000 200000" value="32" />
      <dipvalue name="40000 120000 240000" value="16" />
      <dipvalue name="40000 140000 280000" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Easy" value="64" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="SW 0 Read From" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Port $0D" value="128" default="yes" />
      <dipvalue name="Port $10" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="flickya" sourcefile="system1.cpp" cloneof="flicky" romof="flicky">
    <description>Flicky (128k Version, 315-5051, larger roms)</description>
    <year>1984</year>
    <manufacturer>Sega</manufacturer>
    <rom name="epr-5978a.116" merge="epr-5978a.116" size="16384" crc="296f1492" sha1="52e2c63ce376ab8124b2c68bdfa432b6621cfa78" region="maincpu" offset="0" />
    <rom name="epr-5979a.109" merge="epr-5979a.109" size="16384" crc="64b03ef9" sha1="7519aa7f036bce6d52a5d4be2418139559f9a8a5" region="maincpu" offset="4000" />
    <rom name="epr-5869.120" merge="epr-5869.120" size="8192" crc="6d220d4e" sha1="fe02a7a94a1ad046fc775a7f67f460c8d0f6dca6" region="soundcpu" offset="0" />
    <rom name="epr-6001.62" size="16384" crc="f1a75200" sha1="47e57b5dbd687d0fa91de91f35f199e88d5a5d99" region="tiles" offset="0" />
    <rom name="epr-6000.64" size="16384" crc="299aefb7" sha1="d0301f0bf706807891845f090e4e1f1c38dbbd54" region="tiles" offset="4000" />
    <rom name="epr-5999.66" size="16384" crc="1ca53157" sha1="46b4b9dac3f0506edc3957cee768e41c4754b0f4" region="tiles" offset="8000" />
    <rom name="epr-5855.117" merge="epr-5855.117" size="16384" crc="b5f894a1" sha1="2c72dc16739dad155fcd572e1add067a7647f5bd" region="sprites" offset="0" />
    <rom name="epr-5856.110" merge="epr-5856.110" size="16384" crc="266af78f" sha1="dcbfce550d10a1f2b3ce3e7e081fc008cb575708" region="sprites" offset="4000" />
    <rom name="pr-5317.76" merge="pr-5317.76" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="sega_315_5051" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <device_ref name="z80pio" />
    <chip type="cpu" tag="maincpu" name="Sega 315-5051" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="1" ways="2" />
      <control type="joy" player="2" buttons="1" ways="2" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="8" />
      <dipvalue name="5" value="4" />
      <dipvalue name="Infinite" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="48">
      <diplocation name="SWB" number="5" />
      <diplocation name="SWB" number="6" />
      <dipvalue name="30000 80000 160000" value="48" default="yes" />
      <dipvalue name="30000 100000 200000" value="32" />
      <dipvalue name="40000 120000 240000" value="16" />
      <dipvalue name="40000 140000 280000" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Easy" value="64" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="SW 0 Read From" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Port $0D" value="128" default="yes" />
      <dipvalue name="Port $10" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="flickyo" sourcefile="system1.cpp" cloneof="flicky" romof="flicky">
    <description>Flicky (64k Version, 315-5051, set 1)</description>
    <year>1984</year>
    <manufacturer>Sega</manufacturer>
    <rom name="epr-5857.bin" size="8192" crc="a65ac88e" sha1="1d1c276f7ffb33bc9f216b6b69517f1783d435a4" region="maincpu" offset="0" />
    <rom name="epr-5858a.bin" size="8192" crc="18b412f4" sha1="6205dc2a6c1092f9bc7752672b7c06d5faf2f65e" region="maincpu" offset="2000" />
    <rom name="epr-5859.bin" size="8192" crc="a5558d7e" sha1="ca59c7e57ae45f960f769db9a04ffa5c870005dd" region="maincpu" offset="4000" />
    <rom name="epr-5860.bin" size="8192" crc="1b35fef1" sha1="53ca5361309c59a2b3490ea0037c6e58f07837d9" region="maincpu" offset="6000" />
    <rom name="epr-5869.120" merge="epr-5869.120" size="8192" crc="6d220d4e" sha1="fe02a7a94a1ad046fc775a7f67f460c8d0f6dca6" region="soundcpu" offset="0" />
    <rom name="epr-5868.62" merge="epr-5868.62" size="8192" crc="7402256b" sha1="5bd660ac24a2d0d8ad983e948674a82a2d2e8b49" region="tiles" offset="0" />
    <rom name="epr-5867.61" merge="epr-5867.61" size="8192" crc="2f5ce930" sha1="4bc3bc6eb8f03926d3710c9f96fcc1b116e918d3" region="tiles" offset="2000" />
    <rom name="epr-5866.64" merge="epr-5866.64" size="8192" crc="967f1d9a" sha1="652be7848526c6e61db4a502f75d1689d2ff2f59" region="tiles" offset="4000" />
    <rom name="epr-5865.63" merge="epr-5865.63" size="8192" crc="03d9a34c" sha1="e158db3e0b86f2b8ad34cefc2714cb0a942efde7" region="tiles" offset="6000" />
    <rom name="epr-5864.66" merge="epr-5864.66" size="8192" crc="e659f358" sha1="cf59f1fb0f9fb77d5ac36be52b6ee946ee85d6de" region="tiles" offset="8000" />
    <rom name="epr-5863.65" merge="epr-5863.65" size="8192" crc="a496ca15" sha1="8c629a853486bbe049b1deecdc00f9e16b87698f" region="tiles" offset="a000" />
    <rom name="epr-5855.117" merge="epr-5855.117" size="16384" crc="b5f894a1" sha1="2c72dc16739dad155fcd572e1add067a7647f5bd" region="sprites" offset="0" />
    <rom name="epr-5856.110" merge="epr-5856.110" size="16384" crc="266af78f" sha1="dcbfce550d10a1f2b3ce3e7e081fc008cb575708" region="sprites" offset="4000" />
    <rom name="pr-5317.76" merge="pr-5317.76" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="sega_315_5051" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <chip type="cpu" tag="maincpu" name="Sega 315-5051" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="1" ways="2" />
      <control type="joy" player="2" buttons="1" ways="2" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="8" />
      <dipvalue name="5" value="4" />
      <dipvalue name="Infinite" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="48">
      <diplocation name="SWB" number="5" />
      <diplocation name="SWB" number="6" />
      <dipvalue name="30000 80000 160000" value="48" default="yes" />
      <dipvalue name="30000 100000 200000" value="32" />
      <dipvalue name="40000 120000 240000" value="16" />
      <dipvalue name="40000 140000 280000" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Easy" value="64" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="SW 0 Read From" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Port $0D" value="128" default="yes" />
      <dipvalue name="Port $10" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="flickys1" sourcefile="system1.cpp" cloneof="flicky" romof="flicky">
    <description>Flicky (64k Version, 315-5051, set 2)</description>
    <year>1984</year>
    <manufacturer>Sega</manufacturer>
    <rom name="ic129" size="8192" crc="7011275c" sha1="69d9d1a66734bf859dbd0200b5a772110bd522c1" region="maincpu" offset="0" />
    <rom name="ic130" size="8192" crc="e7ed012d" sha1="7f378ad3e0b6721d7108b4ee10333422df92c039" region="maincpu" offset="2000" />
    <rom name="ic131" size="8192" crc="c5e98cd1" sha1="ea8d97bebfce4e41242169d34bccbf430b094fd7" region="maincpu" offset="4000" />
    <rom name="ic132" size="8192" crc="0e5122c2" sha1="cec34001d4eb8a983b3299462ec513049a3dab46" region="maincpu" offset="6000" />
    <rom name="epr-5869.120" merge="epr-5869.120" size="8192" crc="6d220d4e" sha1="fe02a7a94a1ad046fc775a7f67f460c8d0f6dca6" region="soundcpu" offset="0" />
    <rom name="epr-5868.62" merge="epr-5868.62" size="8192" crc="7402256b" sha1="5bd660ac24a2d0d8ad983e948674a82a2d2e8b49" region="tiles" offset="0" />
    <rom name="epr-5867.61" merge="epr-5867.61" size="8192" crc="2f5ce930" sha1="4bc3bc6eb8f03926d3710c9f96fcc1b116e918d3" region="tiles" offset="2000" />
    <rom name="epr-5866.64" merge="epr-5866.64" size="8192" crc="967f1d9a" sha1="652be7848526c6e61db4a502f75d1689d2ff2f59" region="tiles" offset="4000" />
    <rom name="epr-5865.63" merge="epr-5865.63" size="8192" crc="03d9a34c" sha1="e158db3e0b86f2b8ad34cefc2714cb0a942efde7" region="tiles" offset="6000" />
    <rom name="epr-5864.66" merge="epr-5864.66" size="8192" crc="e659f358" sha1="cf59f1fb0f9fb77d5ac36be52b6ee946ee85d6de" region="tiles" offset="8000" />
    <rom name="epr-5863.65" merge="epr-5863.65" size="8192" crc="a496ca15" sha1="8c629a853486bbe049b1deecdc00f9e16b87698f" region="tiles" offset="a000" />
    <rom name="epr-5855.117" merge="epr-5855.117" size="16384" crc="b5f894a1" sha1="2c72dc16739dad155fcd572e1add067a7647f5bd" region="sprites" offset="0" />
    <rom name="epr-5856.110" merge="epr-5856.110" size="16384" crc="266af78f" sha1="dcbfce550d10a1f2b3ce3e7e081fc008cb575708" region="sprites" offset="4000" />
    <rom name="pr-5317.76" merge="pr-5317.76" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="sega_315_5051" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <chip type="cpu" tag="maincpu" name="Sega 315-5051" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="1" ways="2" />
      <control type="joy" player="2" buttons="1" ways="2" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="2" value="12" />
      <dipvalue name="3" value="8" default="yes" />
      <dipvalue name="4" value="4" />
      <dipvalue name="5 (Infinite)" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="48">
      <diplocation name="SWB" number="5" />
      <diplocation name="SWB" number="6" />
      <dipvalue name="80000" value="48" default="yes" />
      <dipvalue name="160000" value="32" />
      <dipvalue name="240000" value="16" />
      <dipvalue name="320000" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Easy" value="64" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="SW 0 Read From" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Port $0D" value="128" default="yes" />
      <dipvalue name="Port $10" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="flickys2" sourcefile="system1.cpp" cloneof="flicky" romof="flicky">
    <description>Flicky (128k Version, not encrypted)</description>
    <year>1984</year>
    <manufacturer>Sega</manufacturer>
    <rom name="epr-6621.bin" size="16384" crc="b21ff546" sha1="e1d5438eaf0efeaeb4687dcfc12bf325e804182f" region="maincpu" offset="0" />
    <rom name="epr-6622.bin" size="16384" crc="133a8bf1" sha1="e5e620797daace0843a680cb4572586b5e639ca0" region="maincpu" offset="4000" />
    <rom name="epr-5869.120" merge="epr-5869.120" size="8192" crc="6d220d4e" sha1="fe02a7a94a1ad046fc775a7f67f460c8d0f6dca6" region="soundcpu" offset="0" />
    <rom name="epr-5868.62" merge="epr-5868.62" size="8192" crc="7402256b" sha1="5bd660ac24a2d0d8ad983e948674a82a2d2e8b49" region="tiles" offset="0" />
    <rom name="epr-5867.61" merge="epr-5867.61" size="8192" crc="2f5ce930" sha1="4bc3bc6eb8f03926d3710c9f96fcc1b116e918d3" region="tiles" offset="2000" />
    <rom name="epr-5866.64" merge="epr-5866.64" size="8192" crc="967f1d9a" sha1="652be7848526c6e61db4a502f75d1689d2ff2f59" region="tiles" offset="4000" />
    <rom name="epr-5865.63" merge="epr-5865.63" size="8192" crc="03d9a34c" sha1="e158db3e0b86f2b8ad34cefc2714cb0a942efde7" region="tiles" offset="6000" />
    <rom name="epr-5864.66" merge="epr-5864.66" size="8192" crc="e659f358" sha1="cf59f1fb0f9fb77d5ac36be52b6ee946ee85d6de" region="tiles" offset="8000" />
    <rom name="epr-5863.65" merge="epr-5863.65" size="8192" crc="a496ca15" sha1="8c629a853486bbe049b1deecdc00f9e16b87698f" region="tiles" offset="a000" />
    <rom name="epr-5855.117" merge="epr-5855.117" size="16384" crc="b5f894a1" sha1="2c72dc16739dad155fcd572e1add067a7647f5bd" region="sprites" offset="0" />
    <rom name="epr-5856.110" merge="epr-5856.110" size="16384" crc="266af78f" sha1="dcbfce550d10a1f2b3ce3e7e081fc008cb575708" region="sprites" offset="4000" />
    <rom name="pr-5317.76" merge="pr-5317.76" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="z80" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <device_ref name="z80pio" />
    <chip type="cpu" tag="maincpu" name="Zilog Z80" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="1" ways="2" />
      <control type="joy" player="2" buttons="1" ways="2" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="2" value="12" />
      <dipvalue name="3" value="8" default="yes" />
      <dipvalue name="4" value="4" />
      <dipvalue name="5 (Infinite)" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="48">
      <diplocation name="SWB" number="5" />
      <diplocation name="SWB" number="6" />
      <dipvalue name="80000" value="48" default="yes" />
      <dipvalue name="160000" value="32" />
      <dipvalue name="240000" value="16" />
      <dipvalue name="320000" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Easy" value="64" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="SW 0 Read From" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Port $0D" value="128" default="yes" />
      <dipvalue name="Port $10" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="flickyup" sourcefile="system1.cpp" cloneof="flicky" romof="flicky">
    <description>Flicky (64k Version, on Up'n Down boardset)</description>
    <year>1984</year>
    <manufacturer>Sega</manufacturer>
    <rom name="2764-ic29" size="8192" crc="59ba3107" sha1="2d37f00b8a81b97e45aa78ae75449663c35acece" region="maincpu" offset="0" />
    <rom name="2764-ic30" size="8192" crc="5c84216f" sha1="8147a51e5d5aee788f1aab8e9032a5813e5c43a1" region="maincpu" offset="2000" />
    <rom name="2764-ic31" size="8192" crc="106132fa" sha1="669d9cbc1f18649a7d7a8cb462b76a6c34362ed3" region="maincpu" offset="4000" />
    <rom name="2764-ic32" size="8192" crc="c5ea7f58" sha1="0adcbee77dad813fe168ad383e579c94bc31635f" region="maincpu" offset="6000" />
    <rom name="epr-5869.120" merge="epr-5869.120" size="8192" crc="6d220d4e" sha1="fe02a7a94a1ad046fc775a7f67f460c8d0f6dca6" region="soundcpu" offset="0" />
    <rom name="epr-5868.62" merge="epr-5868.62" size="8192" crc="7402256b" sha1="5bd660ac24a2d0d8ad983e948674a82a2d2e8b49" region="tiles" offset="0" />
    <rom name="epr-5867.61" merge="epr-5867.61" size="8192" crc="2f5ce930" sha1="4bc3bc6eb8f03926d3710c9f96fcc1b116e918d3" region="tiles" offset="2000" />
    <rom name="epr-5866.64" merge="epr-5866.64" size="8192" crc="967f1d9a" sha1="652be7848526c6e61db4a502f75d1689d2ff2f59" region="tiles" offset="4000" />
    <rom name="epr-5865.63" merge="epr-5865.63" size="8192" crc="03d9a34c" sha1="e158db3e0b86f2b8ad34cefc2714cb0a942efde7" region="tiles" offset="6000" />
    <rom name="epr-5864.66" merge="epr-5864.66" size="8192" crc="e659f358" sha1="cf59f1fb0f9fb77d5ac36be52b6ee946ee85d6de" region="tiles" offset="8000" />
    <rom name="epr-5863.65" merge="epr-5863.65" size="8192" crc="a496ca15" sha1="8c629a853486bbe049b1deecdc00f9e16b87698f" region="tiles" offset="a000" />
    <rom name="epr-5855.117" merge="epr-5855.117" size="16384" crc="b5f894a1" sha1="2c72dc16739dad155fcd572e1add067a7647f5bd" region="sprites" offset="0" />
    <rom name="epr-5856.110" merge="epr-5856.110" size="16384" crc="266af78f" sha1="dcbfce550d10a1f2b3ce3e7e081fc008cb575708" region="sprites" offset="4000" />
    <rom name="pr-5317.76" merge="pr-5317.76" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="sega_315_5051" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <chip type="cpu" tag="maincpu" name="Sega 315-5051" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="1" ways="2" />
      <control type="joy" player="2" buttons="1" ways="2" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="8" />
      <dipvalue name="5" value="4" />
      <dipvalue name="Infinite" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="48">
      <diplocation name="SWB" number="5" />
      <diplocation name="SWB" number="6" />
      <dipvalue name="30000 80000 160000" value="48" default="yes" />
      <dipvalue name="30000 100000 200000" value="32" />
      <dipvalue name="40000 120000 240000" value="16" />
      <dipvalue name="40000 140000 280000" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Easy" value="64" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="SW 0 Read From" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Port $0D" value="128" default="yes" />
      <dipvalue name="Port $10" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="gardia" sourcefile="system1.cpp">
    <description>Gardia (317-0006)</description>
    <year>1986</year>
    <manufacturer>Coreland / Sega</manufacturer>
    <rom name="epr-10255.1" size="32768" crc="89282a6b" sha1="f19e345e5fae6a518276cc1bd09d1e2083672b25" region="maincpu" offset="0" />
    <rom name="epr-10254.2" size="32768" crc="2826b6d8" sha1="de1faf33cca031b72052bf5244fcb0bd79d85659" region="maincpu" offset="10000" />
    <rom name="epr-10253.3" size="32768" crc="7911260f" sha1="44196f0a6c4c2b22a68609ddfc75be6a7877a69a" region="maincpu" offset="18000" />
    <rom name="epr-10243.120" size="16384" crc="87220660" sha1="3f2bfc03e0f1053a4aa0ec5ebb0d573f2e20964c" region="soundcpu" offset="0" />
    <rom name="epr-10249.61" size="16384" crc="4e0ad0f2" sha1="b76c155b674f3ad8938278d5dbb0452351c716a5" region="tiles" offset="0" />
    <rom name="epr-10248.64" size="16384" crc="3515d124" sha1="39b28a103d8bfe702a376ebd880d6060e3d1ab30" region="tiles" offset="4000" />
    <rom name="epr-10247.66" size="16384" crc="541e1555" sha1="6660204c74a9f7e63b3ba08d99fb854aa863710e" region="tiles" offset="8000" />
    <rom name="epr-10234.117" size="32768" crc="8a6aed33" sha1="044836885ace8294124b1be9b3a4828f772bb9ee" region="sprites" offset="0" />
    <rom name="epr-10233.110" size="32768" crc="c52784d3" sha1="b37d7f261be12616dbe11dfa375eaf6878e4a0f3" region="sprites" offset="8000" />
    <rom name="epr-10236.04" size="32768" crc="b35ab227" sha1="616f6097afddffa9af89fe84d8b6df59c567c1e6" region="sprites" offset="10000" />
    <rom name="epr-10235.5" size="32768" crc="006a3151" sha1="a575f9d5c026e6b18e990720ec7520b6b5ae94e3" region="sprites" offset="18000" />
    <rom name="pr-7345.3" size="256" crc="8eee0f72" sha1="b5694c120f604a5f7cc95618a71ab16a1a6151ed" region="color_proms" offset="0" />
    <rom name="pr-7344.2" size="256" crc="3e7babd7" sha1="d4f8790db4dce75e27156a4c6de2dcef2baf6d76" region="color_proms" offset="100" />
    <rom name="pr-7343.1" size="256" crc="371c44a6" sha1="ac37458d1feb6566b09a795b20c21953d4ab109d" region="color_proms" offset="200" />
    <rom name="pr5317.4" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="sega_317_0006" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <device_ref name="z80pio" />
    <chip type="cpu" tag="maincpu" name="Sega 317-0006" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="270" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="8" />
      <dipvalue name="5" value="4" />
      <dipvalue name="Infinite" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="48">
      <diplocation name="SWB" number="5" />
      <diplocation name="SWB" number="6" />
      <dipvalue name="5k, 20k and 30k" value="48" default="yes" />
      <dipvalue name="10k, 25k and 50k" value="32" />
      <dipvalue name="15k, 30k and 60k" value="16" />
      <dipvalue name="None" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Easy" value="64" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Off" value="128" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" cocktail="preliminary" savestate="supported" />
  </machine>
  <machine name="gardiab" sourcefile="system1.cpp" cloneof="gardia" romof="gardia">
    <description>Gardia (317-0007?, bootleg)</description>
    <year>1986</year>
    <manufacturer>bootleg</manufacturer>
    <rom name="gardiabl.5" size="32768" crc="207f9cbb" sha1="647de15ac69a904344f3c18c9da8cefd626387db" region="maincpu" offset="0" />
    <rom name="gardiabl.6" size="32768" crc="b2ed05dc" sha1="c520bf7024c85dc759c27eccb0a31998f4d72b5f" region="maincpu" offset="10000" />
    <rom name="gardiabl.7" size="32768" crc="0a490588" sha1="18df754ebdf062096f2d631a722b168901610345" region="maincpu" offset="18000" />
    <rom name="epr-10243.120" merge="epr-10243.120" size="16384" crc="87220660" sha1="3f2bfc03e0f1053a4aa0ec5ebb0d573f2e20964c" region="soundcpu" offset="0" />
    <rom name="gardiabl.8" size="16384" crc="367c9a17" sha1="bde7592ce94bbc6674c04b427c52e74207066f56" region="tiles" offset="0" />
    <rom name="gardiabl.9" size="16384" crc="1540fd30" sha1="e2d134e0715231a428fd112be81493a0e2a2642f" region="tiles" offset="4000" />
    <rom name="gardiabl.10" size="16384" crc="e5c9af10" sha1="6bff5bbc0f339e84a8e31446dc9897c02600fbcf" region="tiles" offset="8000" />
    <rom name="epr-10234.117" merge="epr-10234.117" size="32768" crc="8a6aed33" sha1="044836885ace8294124b1be9b3a4828f772bb9ee" region="sprites" offset="0" />
    <rom name="epr-10233.110" merge="epr-10233.110" size="32768" crc="c52784d3" sha1="b37d7f261be12616dbe11dfa375eaf6878e4a0f3" region="sprites" offset="8000" />
    <rom name="epr-10236.04" merge="epr-10236.04" size="32768" crc="b35ab227" sha1="616f6097afddffa9af89fe84d8b6df59c567c1e6" region="sprites" offset="10000" />
    <rom name="epr-10235.5" merge="epr-10235.5" size="32768" crc="006a3151" sha1="a575f9d5c026e6b18e990720ec7520b6b5ae94e3" region="sprites" offset="18000" />
    <rom name="pr-7345.3" merge="pr-7345.3" size="256" crc="8eee0f72" sha1="b5694c120f604a5f7cc95618a71ab16a1a6151ed" region="color_proms" offset="0" />
    <rom name="pr-7344.2" merge="pr-7344.2" size="256" crc="3e7babd7" sha1="d4f8790db4dce75e27156a4c6de2dcef2baf6d76" region="color_proms" offset="100" />
    <rom name="pr-7343.1" merge="pr-7343.1" size="256" crc="371c44a6" sha1="ac37458d1feb6566b09a795b20c21953d4ab109d" region="color_proms" offset="200" />
    <rom name="pr5317.4" merge="pr5317.4" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="sega_317_0007" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <chip type="cpu" tag="maincpu" name="Sega 317-0007" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="270" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="8" />
      <dipvalue name="5" value="4" />
      <dipvalue name="Infinite" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="48">
      <diplocation name="SWB" number="5" />
      <diplocation name="SWB" number="6" />
      <dipvalue name="5k, 20k and 30k" value="48" default="yes" />
      <dipvalue name="10k, 25k and 50k" value="32" />
      <dipvalue name="15k, 30k and 60k" value="16" />
      <dipvalue name="None" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Easy" value="64" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Off" value="128" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="graphics" status="imperfect" />
  </machine>
  <machine name="gardiaj" sourcefile="system1.cpp" cloneof="gardia" romof="gardia">
    <description>Gardia (Japan, 317-0006)</description>
    <year>1986</year>
    <manufacturer>Coreland / Sega</manufacturer>
    <rom name="epr-10250.ic90" size="32768" crc="c97943a7" sha1="eb201987c7a78f7eb6838211c0af3394c0b2d95f" region="maincpu" offset="0" />
    <rom name="epr-10251.ic91" size="32768" crc="b2ed05dc" sha1="c520bf7024c85dc759c27eccb0a31998f4d72b5f" region="maincpu" offset="10000" />
    <rom name="epr-10252.ic92" size="32768" crc="0a490588" sha1="18df754ebdf062096f2d631a722b168901610345" region="maincpu" offset="18000" />
    <rom name="epr-10243.ic126" merge="epr-10243.120" size="16384" crc="87220660" sha1="3f2bfc03e0f1053a4aa0ec5ebb0d573f2e20964c" region="soundcpu" offset="0" />
    <rom name="epr-10240.ic4" size="32768" crc="998ce090" sha1="78929f471c5aa8b32d1693e8af2ef3e86efd3d7d" region="tiles" offset="0" />
    <rom name="epr-10241.ic5" size="32768" crc="81ab0b07" sha1="7f776dccd66ad097a1a906823786a52d31a8c4e8" region="tiles" offset="8000" />
    <rom name="epr-10242.ic6" size="32768" crc="2dc4c4c7" sha1="0347170b941a5c567eed114833656e8abd16a8ab" region="tiles" offset="10000" />
    <rom name="epr-10234.ic87" merge="epr-10234.117" size="32768" crc="8a6aed33" sha1="044836885ace8294124b1be9b3a4828f772bb9ee" region="sprites" offset="0" />
    <rom name="epr-10233.ic86" merge="epr-10233.110" size="32768" crc="c52784d3" sha1="b37d7f261be12616dbe11dfa375eaf6878e4a0f3" region="sprites" offset="8000" />
    <rom name="epr-10236.ic89" merge="epr-10236.04" size="32768" crc="b35ab227" sha1="616f6097afddffa9af89fe84d8b6df59c567c1e6" region="sprites" offset="10000" />
    <rom name="epr-10235.ic88" merge="epr-10235.5" size="32768" crc="006a3151" sha1="a575f9d5c026e6b18e990720ec7520b6b5ae94e3" region="sprites" offset="18000" />
    <rom name="pr-7345.ic20" merge="pr-7345.3" size="256" crc="8eee0f72" sha1="b5694c120f604a5f7cc95618a71ab16a1a6151ed" region="color_proms" offset="0" />
    <rom name="pr-7344.ic14" merge="pr-7344.2" size="256" crc="3e7babd7" sha1="d4f8790db4dce75e27156a4c6de2dcef2baf6d76" region="color_proms" offset="100" />
    <rom name="pr-7343.ic8" merge="pr-7343.1" size="256" crc="371c44a6" sha1="ac37458d1feb6566b09a795b20c21953d4ab109d" region="color_proms" offset="200" />
    <rom name="pr5317.ic28" merge="pr5317.4" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <rom name="315-5137.bin" size="260" crc="6ffd9e6f" sha1="a60a3a2ec5bc256b18bfff0fec0172ee2e4fd955" region="plds" offset="0" />
    <rom name="315-5138.bin" size="260" crc="dd223015" sha1="8d70f91b118e8653dda1efee3eaea287ae63809f" region="plds" offset="0" />
    <device_ref name="sega_317_0006" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <chip type="cpu" tag="maincpu" name="Sega 317-0006" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="270" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="8" />
      <dipvalue name="5" value="4" />
      <dipvalue name="Infinite" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="48">
      <diplocation name="SWB" number="5" />
      <diplocation name="SWB" number="6" />
      <dipvalue name="5k, 20k and 30k" value="48" default="yes" />
      <dipvalue name="10k, 25k and 50k" value="32" />
      <dipvalue name="15k, 30k and 60k" value="16" />
      <dipvalue name="None" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Easy" value="64" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Off" value="128" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="graphics" status="imperfect" />
  </machine>
  <machine name="hvymetal" sourcefile="system1.cpp">
    <description>Heavy Metal (315-5135)</description>
    <year>1985</year>
    <manufacturer>Sega</manufacturer>
    <rom name="epr-6790a.1" size="32768" crc="59195bb9" sha1="63dde673bd875dd23d445b152decb1d70c3750a4" region="maincpu" offset="0" />
    <rom name="epr-6789a.2" size="32768" crc="83e1d18a" sha1="07ef58ee2a5212e1e2800efc2bd48d2b2a9ed10d" region="maincpu" offset="10000" />
    <rom name="epr-6788a.3" size="32768" crc="6ecefd57" sha1="3236313d5d826873d58af5ad80652c8d0ae0cc31" region="maincpu" offset="18000" />
    <rom name="epr-6787.120" size="32768" crc="b64ac7f0" sha1="2b16c2702d3230891b700714a66ece95f1a74b44" region="soundcpu" offset="0" />
    <rom name="epr-6795.62" size="16384" crc="58a3d038" sha1="9aabfad143748e2ec1b41fde72a1d533bac3f9d8" region="tiles" offset="0" />
    <rom name="epr-6796.61" size="16384" crc="d8b08a55" sha1="cfa5370aa430947637bfe57a5a1f802f273b43f7" region="tiles" offset="4000" />
    <rom name="epr-6793.64" size="16384" crc="487407c2" sha1="9bb9fff24fe057fa17057ba9263d412905a0c036" region="tiles" offset="8000" />
    <rom name="epr-6794.63" size="16384" crc="89eb3793" sha1="90a0cc81d917122c726238585eb802763d34884e" region="tiles" offset="c000" />
    <rom name="epr-6791.66" size="16384" crc="a7dcd042" sha1="d9bac10aa7ac591a20bfed4e391ec1669eadc32d" region="tiles" offset="10000" />
    <rom name="epr-6792.65" size="16384" crc="d0be5e33" sha1="1e61c6e14c3c736e74e6c2ff5cde71d1d20b99a4" region="tiles" offset="14000" />
    <rom name="epr-6778.117" size="32768" crc="0af61aee" sha1="90879d4d1bef38714a39ca71c101bd103d250284" region="sprites" offset="0" />
    <rom name="epr-6777.110" size="32768" crc="91d7a197" sha1="34c12b7de22169d369ff5b8a8d86da62404267f8" region="sprites" offset="8000" />
    <rom name="epr-6780.4" size="32768" crc="55b31df5" sha1="aa1ce0b1666e17db196bd1e079691fbe433a9226" region="sprites" offset="10000" />
    <rom name="epr-6779.5" size="32768" crc="e03a2b28" sha1="7e742c09e832d01f74fe4025d194cbc8d2f24b70" region="sprites" offset="18000" />
    <rom name="pr7036.3" size="256" crc="146f16fb" sha1="0a2ac871383b115c16491b9ba5973f0d363eac49" region="color_proms" offset="0" />
    <rom name="pr7035.2" size="256" crc="50b201ed" sha1="14c3a585c083dc387532d64bfd63e34f5220e6de" region="color_proms" offset="100" />
    <rom name="pr7034.1" size="256" crc="dfb5f139" sha1="56cba261819fd5f2beab56ffd80bb3fd328efe3e" region="color_proms" offset="200" />
    <rom name="pr5317p.4" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="sega_315_5135" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <device_ref name="z80pio" />
    <chip type="cpu" tag="maincpu" name="Sega 315-5135" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="8" />
      <dipvalue name="5" value="4" />
      <dipvalue name="Infinite" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="48">
      <diplocation name="SWB" number="5" />
      <diplocation name="SWB" number="6" />
      <dipvalue name="50000 100000" value="48" default="yes" />
      <dipvalue name="60000 120000" value="32" />
      <dipvalue name="70000 150000" value="16" />
      <dipvalue name="100000" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Easy" value="64" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="No" value="128" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="imsorry" sourcefile="system1.cpp">
    <description>I'm Sorry (315-5110, US)</description>
    <year>1985</year>
    <manufacturer>Coreland / Sega</manufacturer>
    <rom name="epr-6676.116" size="16384" crc="eb087d7f" sha1="b9bcc76bbdfa597d252e7db60fa0f7529e884cce" region="maincpu" offset="0" />
    <rom name="epr-6677.109" size="16384" crc="bd244bee" sha1="ad9c722fde08f48d8bc835b244450b01a3d747c2" region="maincpu" offset="4000" />
    <rom name="epr-6678.96" size="16384" crc="2e16b9fd" sha1="3395fb769c79f048d099e2898bb7a15611b006c0" region="maincpu" offset="8000" />
    <rom name="epr-6656.120" size="8192" crc="25e3d685" sha1="a0267d6533af6ff5bf76b9858f2913821a915baf" region="soundcpu" offset="0" />
    <rom name="epr-6684.62" size="8192" crc="2c8df377" sha1="abcabdecee0ce52000dab831ae1e50fe12c97066" region="tiles" offset="0" />
    <rom name="epr-6683.61" size="8192" crc="89431c48" sha1="99c0d141eb5519c31b194693a1fe9be882cb03fd" region="tiles" offset="2000" />
    <rom name="epr-6682.64" size="8192" crc="256a9246" sha1="6aed392a5dd639c54bf54acd3651a77274c0a277" region="tiles" offset="4000" />
    <rom name="epr-6681.63" size="8192" crc="6974d189" sha1="57999a73511b2b3f52d7d6a32addc0641255d7b1" region="tiles" offset="6000" />
    <rom name="epr-6680.66" size="8192" crc="10a629d6" sha1="fa2c7df33c685e48020ccabcfba5830e7609e392" region="tiles" offset="8000" />
    <rom name="epr-6674.65" size="8192" crc="143d883c" sha1="e35f6fae7feb9a353321d8239ac8990bc773e60b" region="tiles" offset="a000" />
    <rom name="epr-6645.117" size="16384" crc="1ba167ee" sha1="5a105cc3112f2533e7c5982233405d365402fba2" region="sprites" offset="0" />
    <rom name="epr-6646.04" size="16384" crc="edda7ad6" sha1="eef7dcde632787283c4cb522380b138060018204" region="sprites" offset="4000" />
    <rom name="pr-5317.76" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="sega_315_5110" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <device_ref name="z80pio" />
    <chip type="cpu" tag="maincpu" name="Sega 315-5110" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="8" />
      <dipvalue name="5" value="4" />
      <dipvalue name="Infinite" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="48">
      <diplocation name="SWB" number="5" />
      <diplocation name="SWB" number="6" />
      <dipvalue name="30000" value="48" default="yes" />
      <dipvalue name="40000" value="32" />
      <dipvalue name="50000" value="16" />
      <dipvalue name="None" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="SW 0 Read From" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Port $0D" value="128" default="yes" />
      <dipvalue name="Port $10" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="imsorryj" sourcefile="system1.cpp" cloneof="imsorry" romof="imsorry">
    <description>Gonbee no I'm Sorry (315-5110, Japan)</description>
    <year>1985</year>
    <manufacturer>Coreland / Sega</manufacturer>
    <rom name="epr-6647.116" size="16384" crc="cc5d915d" sha1="1e2def1f7a03db3504177127dc784fe6c99a7440" region="maincpu" offset="0" />
    <rom name="epr-6648.109" size="16384" crc="37574d60" sha1="c7c8507b608976973e766956bd28dfb17222de35" region="maincpu" offset="4000" />
    <rom name="epr-6649.96" size="16384" crc="5f59bdee" sha1="289ba35a7869a5b833c8aa4819e76fadde2d1ace" region="maincpu" offset="8000" />
    <rom name="epr-6656.120" merge="epr-6656.120" size="8192" crc="25e3d685" sha1="a0267d6533af6ff5bf76b9858f2913821a915baf" region="soundcpu" offset="0" />
    <rom name="epr-6655.62" size="8192" crc="be1f762f" sha1="abf7af29b1fe4003342fbb431541921433a1fc7c" region="tiles" offset="0" />
    <rom name="epr-6654.61" size="8192" crc="ed5f7fc8" sha1="2e77e8292f644f5bbeebc807f193f20d4591f47a" region="tiles" offset="2000" />
    <rom name="epr-6653.64" size="8192" crc="8b4845a7" sha1="048efa9d8122d4a91f4d005d023261a5a5b8b046" region="tiles" offset="4000" />
    <rom name="epr-6652.63" size="8192" crc="001d68cb" sha1="c23b4bfbb09b7d3047e04b92d19b69d2ea550879" region="tiles" offset="6000" />
    <rom name="epr-6651.66" size="8192" crc="4ee9b5e6" sha1="821bdeefea03c5d3be6d83d0dd30841969d81bd4" region="tiles" offset="8000" />
    <rom name="epr-6650.65" size="8192" crc="3fca4414" sha1="d4c80e06bb7027dbc8aea42fb48c71d9fa08ca40" region="tiles" offset="a000" />
    <rom name="epr-6645.117" merge="epr-6645.117" size="16384" crc="1ba167ee" sha1="5a105cc3112f2533e7c5982233405d365402fba2" region="sprites" offset="0" />
    <rom name="epr-6646.04" merge="epr-6646.04" size="16384" crc="edda7ad6" sha1="eef7dcde632787283c4cb522380b138060018204" region="sprites" offset="4000" />
    <rom name="pr-5317.76" merge="pr-5317.76" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="sega_315_5110" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <device_ref name="z80pio" />
    <chip type="cpu" tag="maincpu" name="Sega 315-5110" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="8" />
      <dipvalue name="5" value="4" />
      <dipvalue name="Infinite" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="48">
      <diplocation name="SWB" number="5" />
      <diplocation name="SWB" number="6" />
      <dipvalue name="30000" value="48" default="yes" />
      <dipvalue name="40000" value="32" />
      <dipvalue name="50000" value="16" />
      <dipvalue name="None" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="SW 0 Read From" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Port $0D" value="128" default="yes" />
      <dipvalue name="Port $10" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="mrviking" sourcefile="system1.cpp">
    <description>Mister Viking (315-5041)</description>
    <year>1984</year>
    <manufacturer>Sega</manufacturer>
    <rom name="epr-5873.129" size="8192" crc="14d21624" sha1="70e185d03e782be908e6b5c6342cf6a7ebae618c" region="maincpu" offset="0" />
    <rom name="epr-5874.130" size="8192" crc="6df7de87" sha1="c2200e0c2f322a08af10e9c2e9191d1c595801a4" region="maincpu" offset="2000" />
    <rom name="epr-5875.131" size="8192" crc="ac226100" sha1="11568db9fbca44013eeb0035c0a0a67d6dd18d00" region="maincpu" offset="4000" />
    <rom name="epr-5876.132" size="8192" crc="e77db1dc" sha1="7b1aa19a16fb44f6c69cf053e2e10e5179416796" region="maincpu" offset="6000" />
    <rom name="epr-5755.133" size="8192" crc="edd62ae1" sha1="9648f1ae3033c30ed8ab8d9c87b111756dab7b5e" region="maincpu" offset="8000" />
    <rom name="epr-5756.134" size="8192" crc="11974040" sha1="a0904d19d06fb5ef5eb6da0dc4efe556bc29b33e" region="maincpu" offset="a000" />
    <rom name="epr-5763.3" size="8192" crc="d712280d" sha1="8393dfb57d9af22b3280ecaef736b6f9d856dbee" region="soundcpu" offset="0" />
    <rom name="epr-5762.82" size="8192" crc="4a91d08a" sha1="4687ecc4061719fca5f85b2b290ebb7ced15ee5b" region="tiles" offset="0" />
    <rom name="epr-5761.65" size="8192" crc="f7d61b65" sha1="a7a992f52406413e931945be60b35175f8aea6c2" region="tiles" offset="2000" />
    <rom name="epr-5760.81" size="8192" crc="95045820" sha1="d1848fc4f3d66603d0e8217373a37148aa2eeef5" region="tiles" offset="4000" />
    <rom name="epr-5759.64" size="8192" crc="5f9bae4e" sha1="6fff6086a96be6aa28bec05d1c94c257bb29ef1e" region="tiles" offset="6000" />
    <rom name="epr-5758.80" size="8192" crc="808ee706" sha1="d38ca7c6f36db6e35a3ce87bacdd70f293f23104" region="tiles" offset="8000" />
    <rom name="epr-5757.63" size="8192" crc="480f7074" sha1="c54a1fa02e312676658d7c5392a5a841bdb15d44" region="tiles" offset="a000" />
    <rom name="epr-5749.86" size="16384" crc="e24682cd" sha1="3f626f3e5e2db486ccf727e9869ab488643b4a8c" region="sprites" offset="0" />
    <rom name="epr-5750.93" size="16384" crc="6564d1ad" sha1="f246afee7e73bc30054b0e5dcb83fa0edd2d2164" region="sprites" offset="4000" />
    <rom name="pr-5317.106" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="sega_315_5041" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <chip type="cpu" tag="maincpu" name="Sega 315-5041" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="270" width="479" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="16" hbstart="495" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Maximum Credits" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="9" value="2" />
      <dipvalue name="99" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="8" />
      <dipvalue name="5" value="4" />
      <dipvalue name="Infinite" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="48">
      <diplocation name="SWB" number="5" />
      <diplocation name="SWB" number="6" />
      <dipvalue name="10k, 30k then every 30k" value="48" default="yes" />
      <dipvalue name="20k, 40k then every 30k" value="32" />
      <dipvalue name="30k, then every 30k" value="16" />
      <dipvalue name="40k, then every 30k" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Easy" value="64" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="SW 0 Read From" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Port $0D" value="128" default="yes" />
      <dipvalue name="Port $10" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="mrvikingj" sourcefile="system1.cpp" cloneof="mrviking" romof="mrviking">
    <description>Mister Viking (315-5041, Japan)</description>
    <year>1984</year>
    <manufacturer>Sega</manufacturer>
    <rom name="epr-5751.129" size="8192" crc="ae97a4c5" sha1="12edd757bd5b00d42ada1e10c43817f71cfe77dc" region="maincpu" offset="0" />
    <rom name="epr-5752.130" size="8192" crc="d48e6726" sha1="934b5e7568c85005c5ec40d75e49727a18562d50" region="maincpu" offset="2000" />
    <rom name="epr-5753.131" size="8192" crc="28c60887" sha1="9673335586221336c3373f5d7c8ae4fc11cc4b7f" region="maincpu" offset="4000" />
    <rom name="epr-5754.132" size="8192" crc="1f47ed02" sha1="d1147cd29fb342111f4f20a1d1d03263dce478f3" region="maincpu" offset="6000" />
    <rom name="epr-5755.133" merge="epr-5755.133" size="8192" crc="edd62ae1" sha1="9648f1ae3033c30ed8ab8d9c87b111756dab7b5e" region="maincpu" offset="8000" />
    <rom name="epr-5756.134" merge="epr-5756.134" size="8192" crc="11974040" sha1="a0904d19d06fb5ef5eb6da0dc4efe556bc29b33e" region="maincpu" offset="a000" />
    <rom name="epr-5763.3" merge="epr-5763.3" size="8192" crc="d712280d" sha1="8393dfb57d9af22b3280ecaef736b6f9d856dbee" region="soundcpu" offset="0" />
    <rom name="epr-5762.82" merge="epr-5762.82" size="8192" crc="4a91d08a" sha1="4687ecc4061719fca5f85b2b290ebb7ced15ee5b" region="tiles" offset="0" />
    <rom name="epr-5761.65" merge="epr-5761.65" size="8192" crc="f7d61b65" sha1="a7a992f52406413e931945be60b35175f8aea6c2" region="tiles" offset="2000" />
    <rom name="epr-5760.81" merge="epr-5760.81" size="8192" crc="95045820" sha1="d1848fc4f3d66603d0e8217373a37148aa2eeef5" region="tiles" offset="4000" />
    <rom name="epr-5759.64" merge="epr-5759.64" size="8192" crc="5f9bae4e" sha1="6fff6086a96be6aa28bec05d1c94c257bb29ef1e" region="tiles" offset="6000" />
    <rom name="epr-5758.80" merge="epr-5758.80" size="8192" crc="808ee706" sha1="d38ca7c6f36db6e35a3ce87bacdd70f293f23104" region="tiles" offset="8000" />
    <rom name="epr-5757.63" merge="epr-5757.63" size="8192" crc="480f7074" sha1="c54a1fa02e312676658d7c5392a5a841bdb15d44" region="tiles" offset="a000" />
    <rom name="epr-5749.86" merge="epr-5749.86" size="16384" crc="e24682cd" sha1="3f626f3e5e2db486ccf727e9869ab488643b4a8c" region="sprites" offset="0" />
    <rom name="epr-5750.93" merge="epr-5750.93" size="16384" crc="6564d1ad" sha1="f246afee7e73bc30054b0e5dcb83fa0edd2d2164" region="sprites" offset="4000" />
    <rom name="pr-5317.106" merge="pr-5317.106" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="sega_315_5041" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <chip type="cpu" tag="maincpu" name="Sega 315-5041" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="270" width="479" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="16" hbstart="495" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="8" />
      <dipvalue name="5" value="4" />
      <dipvalue name="Infinite" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="48">
      <diplocation name="SWB" number="5" />
      <diplocation name="SWB" number="6" />
      <dipvalue name="10k, 30k then every 30k" value="48" default="yes" />
      <dipvalue name="20k, 40k then every 30k" value="32" />
      <dipvalue name="30k, then every 30k" value="16" />
      <dipvalue name="40k, then every 30k" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Easy" value="128" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="myhero" sourcefile="system1.cpp">
    <description>My Hero (US, not encrypted)</description>
    <year>1985</year>
    <manufacturer>Coreland / Sega</manufacturer>
    <rom name="epr-6963b.116" size="16384" crc="4daf89d4" sha1="6fd69964d4e0dcd5637920711361f1879fcf330e" region="maincpu" offset="0" />
    <rom name="epr-6964a.109" size="16384" crc="c26188e5" sha1="48d7871a9c63de774c48f1bd9dcaf84b4188f84f" region="maincpu" offset="4000" />
    <rom name="epr-6927.96" size="16384" crc="3cbbaf64" sha1="fdb5f2ca38010729afa4ed24c087119cf398f27d" region="maincpu" offset="8000" />
    <rom name="epr-69xx.120" size="8192" crc="0039e1e9" sha1="ead2e8a8a518da5ac6ccd5cd6db4cf167ea47c76" region="soundcpu" offset="0" />
    <rom name="epr-6966.62" size="8192" crc="157f0401" sha1="f07eb40de95054d6a2c2ebec0b251685e8931b37" region="tiles" offset="0" />
    <rom name="epr-6961.61" size="8192" crc="be53ce47" sha1="de6073e7a00cba7e13aca0248c55126b16595d50" region="tiles" offset="2000" />
    <rom name="epr-6960.64" size="8192" crc="bd381baa" sha1="e160db821422232fb8f6b4f1c4ce0b61f7bed463" region="tiles" offset="4000" />
    <rom name="epr-6959.63" size="8192" crc="bc04e79a" sha1="df93f96aabde981fe9ecf32ef1f99dfebe968835" region="tiles" offset="6000" />
    <rom name="epr-6958.66" size="8192" crc="714f2c26" sha1="4696c9322d7b9b27f56309312fe498f14cb32827" region="tiles" offset="8000" />
    <rom name="epr-6957.65" size="8192" crc="80920112" sha1="745d029f99b6878efcca535885b9bf98bf8702f2" region="tiles" offset="a000" />
    <rom name="epr-6921.117" size="16384" crc="f19e05a1" sha1="98288ba2e96c03a4ab9c8235faa7e01bb376d021" region="sprites" offset="0" />
    <rom name="epr-6923.04" size="16384" crc="7988adc3" sha1="4ee9e964c24234366660af4981566e8c45f46db9" region="sprites" offset="4000" />
    <rom name="epr-6922.110" size="16384" crc="37f77a78" sha1="01d8bd41303bd5e3a6f1cdafa4a1d682e4c659a2" region="sprites" offset="8000" />
    <rom name="epr-6924.05" size="16384" crc="42bdc8f6" sha1="f31d82641187a7cc77a4a19189b5a15d5168cbd7" region="sprites" offset="c000" />
    <rom name="pr-5317.76" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="z80" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <device_ref name="z80pio" />
    <chip type="cpu" tag="maincpu" name="Zilog Z80" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="8" />
      <dipvalue name="5" value="4" />
      <dipvalue name="Infinite" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="48">
      <diplocation name="SWB" number="5" />
      <diplocation name="SWB" number="6" />
      <dipvalue name="30000" value="48" default="yes" />
      <dipvalue name="50000" value="32" />
      <dipvalue name="70000" value="16" />
      <dipvalue name="90000" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Easy" value="64" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="SW 0 Read From" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Port $0D" value="128" default="yes" />
      <dipvalue name="Port $10" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="myherobl" sourcefile="system1.cpp" cloneof="myhero" romof="myhero">
    <description>My Hero (bootleg, 315-5132 encryption)</description>
    <year>1985</year>
    <manufacturer>bootleg</manufacturer>
    <rom name="1.f2" size="16384" crc="c1d354dc" sha1="0146dda49ccf5e0d1b507604095b75690e211f1b" region="maincpu" offset="0" />
    <rom name="2.g2" size="16384" crc="688c9ede" sha1="768f2e4bb797c2c85568d0ec2cda974e77efaff3" region="maincpu" offset="4000" />
    <rom name="3.h2" merge="epr-6927.96" size="16384" crc="3cbbaf64" sha1="fdb5f2ca38010729afa4ed24c087119cf398f27d" region="maincpu" offset="8000" />
    <rom name="6.e10" size="8192" crc="af467223" sha1="d79a67e761fe483407cad645dd3b93d86e8790e3" region="soundcpu" offset="0" />
    <rom name="b13.r10" size="16384" crc="9a4861b1" sha1="0b09556101a8d06f5dacb40970681113d493cbf5" region="tiles" offset="0" />
    <rom name="b11.r7" size="16384" crc="0d6f248a" sha1="18229745adc552c58a865a181ddad44dfd62bfad" region="tiles" offset="4000" />
    <rom name="x.r8" size="16384" crc="24537709" sha1="2afbefb41b6541d7e27ebef7339f7a26aa2c00c6" region="tiles" offset="8000" />
    <rom name="4.f4" merge="epr-6921.117" size="16384" crc="f19e05a1" sha1="98288ba2e96c03a4ab9c8235faa7e01bb376d021" region="sprites" offset="0" />
    <rom name="x.h4" merge="epr-6923.04" size="16384" crc="7988adc3" sha1="4ee9e964c24234366660af4981566e8c45f46db9" region="sprites" offset="4000" />
    <rom name="x.g4" merge="epr-6922.110" size="16384" crc="37f77a78" sha1="01d8bd41303bd5e3a6f1cdafa4a1d682e4c659a2" region="sprites" offset="8000" />
    <rom name="b7.k4" merge="epr-6924.05" size="16384" crc="42bdc8f6" sha1="f31d82641187a7cc77a4a19189b5a15d5168cbd7" region="sprites" offset="c000" />
    <rom name="pr-5317.76" merge="pr-5317.76" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <rom name="prom.a2" size="512" crc="4fcaf000" sha1="c68592377373b157713b5e129b020feb6c866f91" region="promsbl" offset="0" />
    <device_ref name="sega_315_5132" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <device_ref name="z80pio" />
    <chip type="cpu" tag="maincpu" name="Sega 315-5132" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="8" />
      <dipvalue name="5" value="4" />
      <dipvalue name="Infinite" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="48">
      <diplocation name="SWB" number="5" />
      <diplocation name="SWB" number="6" />
      <dipvalue name="30000" value="48" default="yes" />
      <dipvalue name="50000" value="32" />
      <dipvalue name="70000" value="16" />
      <dipvalue name="90000" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Easy" value="64" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="SW 0 Read From" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Port $0D" value="128" default="yes" />
      <dipvalue name="Port $10" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="myherok" sourcefile="system1.cpp" cloneof="myhero" romof="myhero">
    <description>Cheongchun Ilbeonji (Korea)</description>
    <year>1985</year>
    <manufacturer>Coreland / Sega</manufacturer>
    <rom name="ry-11.rom" size="16384" crc="6f4c8ee5" sha1="bbbb87a66be383d9d44ae3bb7f4d1ff56933fd57" region="maincpu" offset="0" />
    <rom name="ry-09.rom" size="16384" crc="369302a1" sha1="670bf97e401c0a665330d2264c126c275f4c5f8d" region="maincpu" offset="4000" />
    <rom name="ry-07.rom" size="16384" crc="b8e9922e" sha1="f563fd415d5218c2c3e0071776c91b6250cacea3" region="maincpu" offset="8000" />
    <rom name="epr-6934.120" size="8192" crc="af467223" sha1="d79a67e761fe483407cad645dd3b93d86e8790e3" region="soundcpu" offset="0" />
    <rom name="ry-04.rom" size="16384" crc="dfb75143" sha1="b1943e0b8ca4439d5ef27abecd48e6fc806d3a0e" region="tiles" offset="0" />
    <rom name="ry-03.rom" size="16384" crc="cf68b4a2" sha1="7f1607320943c452bcc30b4805e8e9c9d2a61955" region="tiles" offset="4000" />
    <rom name="ry-02.rom" size="16384" crc="d100eaef" sha1="d917a85c3560578cc7640bfcb4725b4217f0ed91" region="tiles" offset="8000" />
    <rom name="epr-6921.117" merge="epr-6921.117" size="16384" crc="f19e05a1" sha1="98288ba2e96c03a4ab9c8235faa7e01bb376d021" region="sprites" offset="0" />
    <rom name="epr-6923.04" merge="epr-6923.04" size="16384" crc="7988adc3" sha1="4ee9e964c24234366660af4981566e8c45f46db9" region="sprites" offset="4000" />
    <rom name="epr-6922.110" merge="epr-6922.110" size="16384" crc="37f77a78" sha1="01d8bd41303bd5e3a6f1cdafa4a1d682e4c659a2" region="sprites" offset="8000" />
    <rom name="epr-6924.05" merge="epr-6924.05" size="16384" crc="42bdc8f6" sha1="f31d82641187a7cc77a4a19189b5a15d5168cbd7" region="sprites" offset="c000" />
    <rom name="pr-5317.76" merge="pr-5317.76" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="sega_315_5132" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <device_ref name="z80pio" />
    <chip type="cpu" tag="maincpu" name="Sega 315-5132" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="8" />
      <dipvalue name="5" value="4" />
      <dipvalue name="Infinite" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="48">
      <diplocation name="SWB" number="5" />
      <diplocation name="SWB" number="6" />
      <dipvalue name="30000" value="48" default="yes" />
      <dipvalue name="50000" value="32" />
      <dipvalue name="70000" value="16" />
      <dipvalue name="90000" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Easy" value="64" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="SW 0 Read From" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Port $0D" value="128" default="yes" />
      <dipvalue name="Port $10" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="ninja" sourcefile="system1.cpp" cloneof="seganinj" romof="seganinj">
    <description>Ninja (315-5102)</description>
    <year>1985</year>
    <manufacturer>Sega</manufacturer>
    <rom name="epr-6594.116" size="16384" crc="3ef0e5fc" sha1="ba2d832aa33759c21582e728ca7e4a0ca03cb937" region="maincpu" offset="0" />
    <rom name="epr-6595.109" size="16384" crc="b16f13cd" sha1="e4649ce76393fdf8d2a1f53f1c25ee27ed35db45" region="maincpu" offset="4000" />
    <rom name="epr-6552.96" merge="epr-6596a.96" size="16384" crc="f2eeb0d8" sha1="1f0d1c73ba9eaa2887ffc596f0038b0af37ced49" region="maincpu" offset="8000" />
    <rom name="epr-6559.120" merge="epr-6559.120" size="8192" crc="5a1570ee" sha1="fd9215e007b6687d057ea7aee01f6d3dcbc8f894" region="soundcpu" offset="0" />
    <rom name="epr-6558.62" merge="epr-6558.62" size="8192" crc="2af9eaeb" sha1="a8a472e9f156c34f1cfcf6d6be808da4303a2276" region="tiles" offset="0" />
    <rom name="epr-6592.61" size="8192" crc="88d0c7a1" sha1="a649a56484f3cf466dbd4bc468d21220e638c5fe" region="tiles" offset="2000" />
    <rom name="epr-6556.64" merge="epr-6556.64" size="8192" crc="79fd26f7" sha1="a7de0f21ccbcfda495a5c93237569a9b3919d2d5" region="tiles" offset="4000" />
    <rom name="epr-6590.63" size="8192" crc="956e3b61" sha1="47e797bcc39f3ef917848b64a3666e08f9498cc0" region="tiles" offset="6000" />
    <rom name="epr-6554.66" merge="epr-6554.66" size="8192" crc="5ac9d205" sha1="c3094d10d1d6226bf9ad174d2dd1631b8d6ca33a" region="tiles" offset="8000" />
    <rom name="epr-6588.65" size="8192" crc="023a14a3" sha1="199bdf597ace496992f323c0eaa1e779920fb976" region="tiles" offset="a000" />
    <rom name="epr-6546.117" merge="epr-6546.117" size="16384" crc="a4785692" sha1="95ce23076dc86c5d6d3a65274873d4c48e91cc06" region="sprites" offset="0" />
    <rom name="epr-6548.04" merge="epr-6548.04" size="16384" crc="bdf278c1" sha1="7ebe505f4f0434edb2cee17a6cbce6b900b29cc4" region="sprites" offset="4000" />
    <rom name="epr-6547.110" merge="epr-6547.110" size="16384" crc="34451b08" sha1="ee8708f6c886b63f138bcc10dc2a053bfad96c37" region="sprites" offset="8000" />
    <rom name="epr-6549.05" size="16384" crc="d2057668" sha1="ded2a04f7555eb3b1e4da57901ca00635de2c043" region="sprites" offset="c000" />
    <rom name="pr-5317.76" merge="pr-5317.76" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="sega_315_5102" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <device_ref name="z80pio" />
    <chip type="cpu" tag="maincpu" name="Sega 315-5102" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="2" value="8" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="4" />
      <dipvalue name="240" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="20k 70k 120k 170k" value="16" default="yes" />
      <dipvalue name="50k 100k 150k 200k" value="0" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="SWB" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="No" value="32" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Easy" value="64" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="SW 0 Read From" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Port $0D" value="128" default="yes" />
      <dipvalue name="Port $10" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="nob" sourcefile="system1.cpp">
    <description>Noboranka (Japan)</description>
    <year>1986</year>
    <manufacturer>Coreland / Data East Corporation</manufacturer>
    <rom name="dm08.1f" size="32768" crc="98d602d6" sha1="a0f1e6d243f2e07703bb641434dce46d0ddc15ae" region="maincpu" offset="0" />
    <rom name="dm10.1k" size="32768" crc="e7c06663" sha1="8ae42b0875afe60ef672f2285aeb72da1c7e167b" region="maincpu" offset="10000" />
    <rom name="dm09.1h" size="32768" crc="dc4c872f" sha1="aab85203cfd2463ffddfd48e87733fb8d6d8bcf6" region="maincpu" offset="18000" />
    <rom name="dm.bin" size="4096" crc="6fde9dcb" sha1="e1340644471a149b49a616c59445c85785e44fa4" region="mcu" offset="0" />
    <rom name="dm03.9h" size="16384" crc="415adf76" sha1="fbd6f8921aa3246702983ba81fa9ae53fa10c19d" region="soundcpu" offset="0" />
    <rom name="dm02.13b" size="32768" crc="f12df039" sha1="159de205f77fd74da30717054e6ddda2c0bb63d0" region="tiles" offset="8000" />
    <rom name="dm01.12b" size="32768" crc="446fbcdd" sha1="e3c8364eccfa6c8af7a57b599238b0e4ebe8cc59" region="tiles" offset="0" />
    <rom name="dm00.10b" size="32768" crc="35f396df" sha1="ebf0a252513ae2b31ef012ac71d64fb20b8725cc" region="tiles" offset="10000" />
    <rom name="dm04.5f" size="32768" crc="2442b86d" sha1="2eed80e1ff9cd782990142d0d73ca4fa13db4731" region="sprites" offset="0" />
    <rom name="dm06.5k" size="32768" crc="e33743a6" sha1="56dce565523f19e673c9272992030386ca648e41" region="sprites" offset="8000" />
    <rom name="dm05.5h" size="32768" crc="7fbba01d" sha1="ded22806ae0d6642b45cd33c0ceab67390a6e319" region="sprites" offset="10000" />
    <rom name="dm07.5l" size="32768" crc="85e7a29f" sha1="0ca77c66599650f157450d703682ec114f0453cf" region="sprites" offset="18000" />
    <rom name="nobo_pr.16d" size="256" crc="95010ac2" sha1="deaf84b408cd1f3396eb851ef04cc1654d5e9a46" region="color_proms" offset="0" />
    <rom name="nobo_pr.15d" size="256" crc="c55aac0c" sha1="0f7f2d383a90e9f7f319626b4d5565805f44a1f9" region="color_proms" offset="100" />
    <rom name="dm-12.ic3" size="256" crc="de394cee" sha1="511c53f22459e5e238b48685f85b10f5e15f2ac1" region="color_proms" offset="200" />
    <rom name="dc-11.6a" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="z80" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <device_ref name="i8751" />
    <chip type="cpu" tag="maincpu" name="Zilog Z80" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="cpu" tag="mcu" name="Intel 8751" clock="8000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="270" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="3">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <dipvalue name="2 Coins/1 Credit" value="0" />
      <dipvalue name="1 Coin/1 Credit" value="3" default="yes" />
      <dipvalue name="1 Coin/2 Credits" value="2" />
      <dipvalue name="1 Coin/3 Credits" value="1" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="12">
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="2 Coins/1 Credit" value="0" />
      <dipvalue name="1 Coin/1 Credit" value="12" default="yes" />
      <dipvalue name="1 Coin/2 Credits" value="8" />
      <dipvalue name="1 Coin/3 Credits" value="4" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWA" mask="48">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <dipvalue name="Easy" value="32" default="yes" />
      <dipvalue name="Medium" value="48" />
      <dipvalue name="Hard" value="16" />
      <dipvalue name="Hardest" value="0" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWA" mask="64">
      <diplocation name="SWA" number="7" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="64" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="SWA" mask="128">
      <diplocation name="SWA" number="8" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="128" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="3">
      <diplocation name="SWB" number="1" />
      <diplocation name="SWB" number="2" />
      <dipvalue name="2" value="2" />
      <dipvalue name="3" value="3" default="yes" />
      <dipvalue name="5" value="1" />
      <dipvalue name="99" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="40k, 80k, 120k and 160k" value="8" />
      <dipvalue name="50k, 100k and 150k" value="12" default="yes" />
      <dipvalue name="60k, 120k and 180k" value="4" />
      <dipvalue name="None" value="0" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="SWB" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="16" default="yes" />
    </dipswitch>
    <dipswitch name="Free Play" tag="SWB" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="nobb" sourcefile="system1.cpp" cloneof="nob" romof="nob">
    <description>Noboranka (Japan, bootleg)</description>
    <year>1986</year>
    <manufacturer>bootleg (Game Electronics)</manufacturer>
    <rom name="nobo-t.bin" size="32768" crc="176fd168" sha1="f262521f07e5340f175019e2a06a54120a4aa3b7" region="maincpu" offset="0" />
    <rom name="nobo-r.bin" size="32768" crc="d61cf3c9" sha1="0f80011d713c51e67853810813ebba579ade0303" region="maincpu" offset="10000" />
    <rom name="nobo-s.bin" size="32768" crc="b0e7697f" sha1="ad5394ca629152a8c73fb85d3fce8ea620ae6ff1" region="maincpu" offset="18000" />
    <rom name="nobo-m.bin" merge="dm03.9h" size="16384" crc="415adf76" sha1="fbd6f8921aa3246702983ba81fa9ae53fa10c19d" region="soundcpu" offset="0" />
    <rom name="nobo-j.bin" merge="dm02.13b" size="32768" crc="f12df039" sha1="159de205f77fd74da30717054e6ddda2c0bb63d0" region="tiles" offset="8000" />
    <rom name="nobo-k.bin" merge="dm01.12b" size="32768" crc="446fbcdd" sha1="e3c8364eccfa6c8af7a57b599238b0e4ebe8cc59" region="tiles" offset="0" />
    <rom name="nobo-l.bin" merge="dm00.10b" size="32768" crc="35f396df" sha1="ebf0a252513ae2b31ef012ac71d64fb20b8725cc" region="tiles" offset="10000" />
    <rom name="nobo-q.bin" merge="dm04.5f" size="32768" crc="2442b86d" sha1="2eed80e1ff9cd782990142d0d73ca4fa13db4731" region="sprites" offset="0" />
    <rom name="nobo-o.bin" merge="dm06.5k" size="32768" crc="e33743a6" sha1="56dce565523f19e673c9272992030386ca648e41" region="sprites" offset="8000" />
    <rom name="nobo-p.bin" merge="dm05.5h" size="32768" crc="7fbba01d" sha1="ded22806ae0d6642b45cd33c0ceab67390a6e319" region="sprites" offset="10000" />
    <rom name="nobo-n.bin" merge="dm07.5l" size="32768" crc="85e7a29f" sha1="0ca77c66599650f157450d703682ec114f0453cf" region="sprites" offset="18000" />
    <rom name="nobo_pr.16d" merge="nobo_pr.16d" size="256" crc="95010ac2" sha1="deaf84b408cd1f3396eb851ef04cc1654d5e9a46" region="color_proms" offset="0" />
    <rom name="nobo_pr.15d" merge="nobo_pr.15d" size="256" crc="c55aac0c" sha1="0f7f2d383a90e9f7f319626b4d5565805f44a1f9" region="color_proms" offset="100" />
    <rom name="nobo_pr.14d" merge="dm-12.ic3" size="256" crc="de394cee" sha1="511c53f22459e5e238b48685f85b10f5e15f2ac1" region="color_proms" offset="200" />
    <rom name="nobo_pr.13a" merge="dc-11.6a" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="z80" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <chip type="cpu" tag="maincpu" name="Zilog Z80" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="270" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="3">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <dipvalue name="2 Coins/1 Credit" value="0" />
      <dipvalue name="1 Coin/1 Credit" value="3" default="yes" />
      <dipvalue name="1 Coin/2 Credits" value="2" />
      <dipvalue name="1 Coin/3 Credits" value="1" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="12">
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="2 Coins/1 Credit" value="0" />
      <dipvalue name="1 Coin/1 Credit" value="12" default="yes" />
      <dipvalue name="1 Coin/2 Credits" value="8" />
      <dipvalue name="1 Coin/3 Credits" value="4" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWA" mask="48">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <dipvalue name="Easy" value="32" default="yes" />
      <dipvalue name="Medium" value="48" />
      <dipvalue name="Hard" value="16" />
      <dipvalue name="Hardest" value="0" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWA" mask="64">
      <diplocation name="SWA" number="7" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="64" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="SWA" mask="128">
      <diplocation name="SWA" number="8" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="128" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="3">
      <diplocation name="SWB" number="1" />
      <diplocation name="SWB" number="2" />
      <dipvalue name="2" value="2" />
      <dipvalue name="3" value="3" default="yes" />
      <dipvalue name="5" value="1" />
      <dipvalue name="99" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="40k, 80k, 120k and 160k" value="8" />
      <dipvalue name="50k, 100k and 150k" value="12" default="yes" />
      <dipvalue name="60k, 120k and 180k" value="4" />
      <dipvalue name="None" value="0" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="SWB" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="16" default="yes" />
    </dipswitch>
    <dipswitch name="Free Play" tag="SWB" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="nprinces" sourcefile="system1.cpp" cloneof="seganinj" romof="seganinj">
    <description>Ninja Princess (315-5051, 64k Ver. bootleg?)</description>
    <year>1985</year>
    <manufacturer>bootleg?</manufacturer>
    <rom name="epr-6612.129" size="8192" crc="1b30976f" sha1="f76b7f3d88985a5c190e7880c27ab057f102db31" region="maincpu" offset="0" />
    <rom name="epr-6613.130" size="8192" crc="18281f27" sha1="3fcf2fbd1fc13eda678b77c58c53aa881882286c" region="maincpu" offset="2000" />
    <rom name="epr-6614.131" size="8192" crc="69fc3d73" sha1="287e6b252ae3cd23812b56afe23d4f239f3a76d5" region="maincpu" offset="4000" />
    <rom name="epr-6615.132" size="8192" crc="1d0374c8" sha1="6d818470e294c03b51ec6db8a285d7b71ab2b61f" region="maincpu" offset="6000" />
    <rom name="epr-6616.133" size="8192" crc="73616e03" sha1="429615ee1e041d3e14fc557ec39c380fea07de71" region="maincpu" offset="8000" />
    <rom name="epr-6617.134" size="8192" crc="20b6f895" sha1="9c9cb3b0c33c4da2850a5756b63c3886634ec544" region="maincpu" offset="a000" />
    <rom name="epr-6559.120" merge="epr-6559.120" size="8192" crc="5a1570ee" sha1="fd9215e007b6687d057ea7aee01f6d3dcbc8f894" region="soundcpu" offset="0" />
    <rom name="epr-6558.62" merge="epr-6558.62" size="8192" crc="2af9eaeb" sha1="a8a472e9f156c34f1cfcf6d6be808da4303a2276" region="tiles" offset="0" />
    <rom name="epr-6557.61" size="8192" crc="6eb131d0" sha1="27e6f7a3b6ed9a9a5aecfc9981202686b3a81cb4" region="tiles" offset="2000" />
    <rom name="epr-6556.64" merge="epr-6556.64" size="8192" crc="79fd26f7" sha1="a7de0f21ccbcfda495a5c93237569a9b3919d2d5" region="tiles" offset="4000" />
    <rom name="epr-6555.63" size="8192" crc="7f669aac" sha1="24ad708112eb26bddf58a70a15273a267121e166" region="tiles" offset="6000" />
    <rom name="epr-6554.66" merge="epr-6554.66" size="8192" crc="5ac9d205" sha1="c3094d10d1d6226bf9ad174d2dd1631b8d6ca33a" region="tiles" offset="8000" />
    <rom name="epr-6553.65" size="8192" crc="eb82a8fe" sha1="ec6a418ffbdc8563293d40617aae45382f68ecc2" region="tiles" offset="a000" />
    <rom name="epr-6546.117" merge="epr-6546.117" size="16384" crc="a4785692" sha1="95ce23076dc86c5d6d3a65274873d4c48e91cc06" region="sprites" offset="0" />
    <rom name="epr-6548.04" merge="epr-6548.04" size="16384" crc="bdf278c1" sha1="7ebe505f4f0434edb2cee17a6cbce6b900b29cc4" region="sprites" offset="4000" />
    <rom name="epr-6547.110" merge="epr-6547.110" size="16384" crc="34451b08" sha1="ee8708f6c886b63f138bcc10dc2a053bfad96c37" region="sprites" offset="8000" />
    <rom name="epr-6549.05" size="16384" crc="d2057668" sha1="ded2a04f7555eb3b1e4da57901ca00635de2c043" region="sprites" offset="c000" />
    <rom name="pr-5317.76" merge="pr-5317.76" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="sega_315_5051" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <chip type="cpu" tag="maincpu" name="Sega 315-5051" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="2" value="8" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="4" />
      <dipvalue name="240" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="20k 70k 120k 170k" value="16" default="yes" />
      <dipvalue name="50k 100k 150k 200k" value="0" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="SWB" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="No" value="32" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Easy" value="64" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="SW 0 Read From" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Port $0D" value="128" default="yes" />
      <dipvalue name="Port $10" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="nprincesb" sourcefile="system1.cpp" cloneof="seganinj" romof="seganinj">
    <description>Ninja Princess (315-5051?, 128k Ver. bootleg?)</description>
    <year>1985</year>
    <manufacturer>bootleg?</manufacturer>
    <rom name="nprinces.001" size="16384" crc="e0de073c" sha1="26aec99ddb080124225e0abf17aac4cc4aed1834" region="maincpu" offset="0" />
    <rom name="nprinces.002" size="16384" crc="27219c7f" sha1="3f4b0ea9b49907231d10a38d89e2f1803dc168c9" region="maincpu" offset="4000" />
    <rom name="epr-6552.96" merge="epr-6596a.96" size="16384" crc="f2eeb0d8" sha1="1f0d1c73ba9eaa2887ffc596f0038b0af37ced49" region="maincpu" offset="8000" />
    <rom name="epr-6559.120" merge="epr-6559.120" size="8192" crc="5a1570ee" sha1="fd9215e007b6687d057ea7aee01f6d3dcbc8f894" region="soundcpu" offset="0" />
    <rom name="epr-6558.62" merge="epr-6558.62" size="8192" crc="2af9eaeb" sha1="a8a472e9f156c34f1cfcf6d6be808da4303a2276" region="tiles" offset="0" />
    <rom name="epr-6557.61" size="8192" crc="6eb131d0" sha1="27e6f7a3b6ed9a9a5aecfc9981202686b3a81cb4" region="tiles" offset="2000" />
    <rom name="epr-6556.64" merge="epr-6556.64" size="8192" crc="79fd26f7" sha1="a7de0f21ccbcfda495a5c93237569a9b3919d2d5" region="tiles" offset="4000" />
    <rom name="epr-6555.63" size="8192" crc="7f669aac" sha1="24ad708112eb26bddf58a70a15273a267121e166" region="tiles" offset="6000" />
    <rom name="epr-6554.66" merge="epr-6554.66" size="8192" crc="5ac9d205" sha1="c3094d10d1d6226bf9ad174d2dd1631b8d6ca33a" region="tiles" offset="8000" />
    <rom name="epr-6553.65" size="8192" crc="eb82a8fe" sha1="ec6a418ffbdc8563293d40617aae45382f68ecc2" region="tiles" offset="a000" />
    <rom name="epr-6546.117" merge="epr-6546.117" size="16384" crc="a4785692" sha1="95ce23076dc86c5d6d3a65274873d4c48e91cc06" region="sprites" offset="0" />
    <rom name="epr-6548.04" merge="epr-6548.04" size="16384" crc="bdf278c1" sha1="7ebe505f4f0434edb2cee17a6cbce6b900b29cc4" region="sprites" offset="4000" />
    <rom name="epr-6547.110" merge="epr-6547.110" size="16384" crc="34451b08" sha1="ee8708f6c886b63f138bcc10dc2a053bfad96c37" region="sprites" offset="8000" />
    <rom name="epr-6549.05" size="16384" crc="d2057668" sha1="ded2a04f7555eb3b1e4da57901ca00635de2c043" region="sprites" offset="c000" />
    <rom name="pr-5317.76" merge="pr-5317.76" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <rom name="nprinces.129" size="256" crc="ae765f62" sha1="9434b5a23d118a9c62015b479719826b38269cd4" region="lookup_proms" offset="100" />
    <rom name="nprinces.123" size="32" crc="ed5146e9" sha1="7044035c07636e4029f4b746c1a92e15173869e9" region="lookup_proms" offset="200" />
    <device_ref name="sega_315_5051" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <device_ref name="z80pio" />
    <chip type="cpu" tag="maincpu" name="Sega 315-5051" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="2" value="8" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="4" />
      <dipvalue name="240" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="20k 70k 120k 170k" value="16" default="yes" />
      <dipvalue name="50k 100k 150k 200k" value="0" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="SWB" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="No" value="32" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Easy" value="64" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="SW 0 Read From" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Port $0D" value="128" default="yes" />
      <dipvalue name="Port $10" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="nprinceso" sourcefile="system1.cpp" cloneof="seganinj" romof="seganinj">
    <description>Ninja Princess (315-5098, 128k Ver.)</description>
    <year>1985</year>
    <manufacturer>Sega</manufacturer>
    <rom name="epr-6550.116" size="16384" crc="5f6d59f1" sha1="e151bf22799c6507a167f83262e48fe2ba74dbd9" region="maincpu" offset="0" />
    <rom name="epr-6551.109" size="16384" crc="1af133b2" sha1="d3ff924782223ea0566d52ab8b45f17af433966e" region="maincpu" offset="4000" />
    <rom name="epr-6552.96" merge="epr-6596a.96" size="16384" crc="f2eeb0d8" sha1="1f0d1c73ba9eaa2887ffc596f0038b0af37ced49" region="maincpu" offset="8000" />
    <rom name="epr-6559.120" merge="epr-6559.120" size="8192" crc="5a1570ee" sha1="fd9215e007b6687d057ea7aee01f6d3dcbc8f894" region="soundcpu" offset="0" />
    <rom name="epr-6558.62" merge="epr-6558.62" size="8192" crc="2af9eaeb" sha1="a8a472e9f156c34f1cfcf6d6be808da4303a2276" region="tiles" offset="0" />
    <rom name="epr-6557.61" size="8192" crc="6eb131d0" sha1="27e6f7a3b6ed9a9a5aecfc9981202686b3a81cb4" region="tiles" offset="2000" />
    <rom name="epr-6556.64" merge="epr-6556.64" size="8192" crc="79fd26f7" sha1="a7de0f21ccbcfda495a5c93237569a9b3919d2d5" region="tiles" offset="4000" />
    <rom name="epr-6555.63" size="8192" crc="7f669aac" sha1="24ad708112eb26bddf58a70a15273a267121e166" region="tiles" offset="6000" />
    <rom name="epr-6554.66" merge="epr-6554.66" size="8192" crc="5ac9d205" sha1="c3094d10d1d6226bf9ad174d2dd1631b8d6ca33a" region="tiles" offset="8000" />
    <rom name="epr-6553.65" size="8192" crc="eb82a8fe" sha1="ec6a418ffbdc8563293d40617aae45382f68ecc2" region="tiles" offset="a000" />
    <rom name="epr-6546.117" merge="epr-6546.117" size="16384" crc="a4785692" sha1="95ce23076dc86c5d6d3a65274873d4c48e91cc06" region="sprites" offset="0" />
    <rom name="epr-6548.04" merge="epr-6548.04" size="16384" crc="bdf278c1" sha1="7ebe505f4f0434edb2cee17a6cbce6b900b29cc4" region="sprites" offset="4000" />
    <rom name="epr-6547.110" merge="epr-6547.110" size="16384" crc="34451b08" sha1="ee8708f6c886b63f138bcc10dc2a053bfad96c37" region="sprites" offset="8000" />
    <rom name="epr-6549.05" size="16384" crc="d2057668" sha1="ded2a04f7555eb3b1e4da57901ca00635de2c043" region="sprites" offset="c000" />
    <rom name="pr-5317.76" merge="pr-5317.76" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="sega_315_5098" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <device_ref name="z80pio" />
    <chip type="cpu" tag="maincpu" name="Sega 315-5098" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="2" value="8" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="4" />
      <dipvalue name="240" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="20k 70k 120k 170k" value="16" default="yes" />
      <dipvalue name="50k 100k 150k 200k" value="0" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="SWB" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="No" value="32" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Easy" value="64" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="SW 0 Read From" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Port $0D" value="128" default="yes" />
      <dipvalue name="Port $10" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="nprincesu" sourcefile="system1.cpp" cloneof="seganinj" romof="seganinj">
    <description>Ninja Princess (64k Ver. not encrypted)</description>
    <year>1985</year>
    <manufacturer>Sega</manufacturer>
    <rom name="epr-6573.129" size="8192" crc="d2919c7d" sha1="993fdde7dd8d4dbad42f8072829cfea794693a37" region="maincpu" offset="0" />
    <rom name="epr-6574.130" size="8192" crc="5a132833" sha1="c21cdca6062a6ea2ca306a8dd26b572b3be86321" region="maincpu" offset="2000" />
    <rom name="epr-6575.131" size="8192" crc="a94b0bd4" sha1="068db579de3dbd545ae41f930a24f2997a2efedf" region="maincpu" offset="4000" />
    <rom name="epr-6576.132" size="8192" crc="27d3bbdb" sha1="c7f729798c174de73b6582087f6fe2d4db848b6b" region="maincpu" offset="6000" />
    <rom name="epr-6577.133" size="8192" crc="73616e03" sha1="429615ee1e041d3e14fc557ec39c380fea07de71" region="maincpu" offset="8000" />
    <rom name="epr-6578.134" size="8192" crc="ab68499f" sha1="6c662a0ff827cc68bcdb26f6b9d48add4f8ef2e9" region="maincpu" offset="a000" />
    <rom name="epr-6559.120" merge="epr-6559.120" size="8192" crc="5a1570ee" sha1="fd9215e007b6687d057ea7aee01f6d3dcbc8f894" region="soundcpu" offset="0" />
    <rom name="epr-6558.62" merge="epr-6558.62" size="8192" crc="2af9eaeb" sha1="a8a472e9f156c34f1cfcf6d6be808da4303a2276" region="tiles" offset="0" />
    <rom name="epr-6557.61" size="8192" crc="6eb131d0" sha1="27e6f7a3b6ed9a9a5aecfc9981202686b3a81cb4" region="tiles" offset="2000" />
    <rom name="epr-6556.64" merge="epr-6556.64" size="8192" crc="79fd26f7" sha1="a7de0f21ccbcfda495a5c93237569a9b3919d2d5" region="tiles" offset="4000" />
    <rom name="epr-6555.63" size="8192" crc="7f669aac" sha1="24ad708112eb26bddf58a70a15273a267121e166" region="tiles" offset="6000" />
    <rom name="epr-6554.66" merge="epr-6554.66" size="8192" crc="5ac9d205" sha1="c3094d10d1d6226bf9ad174d2dd1631b8d6ca33a" region="tiles" offset="8000" />
    <rom name="epr-6553.65" size="8192" crc="eb82a8fe" sha1="ec6a418ffbdc8563293d40617aae45382f68ecc2" region="tiles" offset="a000" />
    <rom name="epr-6546.117" merge="epr-6546.117" size="16384" crc="a4785692" sha1="95ce23076dc86c5d6d3a65274873d4c48e91cc06" region="sprites" offset="0" />
    <rom name="epr-6548.04" merge="epr-6548.04" size="16384" crc="bdf278c1" sha1="7ebe505f4f0434edb2cee17a6cbce6b900b29cc4" region="sprites" offset="4000" />
    <rom name="epr-6547.110" merge="epr-6547.110" size="16384" crc="34451b08" sha1="ee8708f6c886b63f138bcc10dc2a053bfad96c37" region="sprites" offset="8000" />
    <rom name="epr-6549.05" size="16384" crc="d2057668" sha1="ded2a04f7555eb3b1e4da57901ca00635de2c043" region="sprites" offset="c000" />
    <rom name="pr-5317.76" merge="pr-5317.76" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="z80" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <chip type="cpu" tag="maincpu" name="Zilog Z80" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="2" value="8" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="4" />
      <dipvalue name="240" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="20k 70k 120k 170k" value="16" default="yes" />
      <dipvalue name="50k 100k 150k 200k" value="0" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="SWB" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="No" value="32" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Easy" value="64" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="SW 0 Read From" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Port $0D" value="128" default="yes" />
      <dipvalue name="Port $10" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="pitfall2" sourcefile="system1.cpp">
    <description>Pitfall II (315-5093)</description>
    <year>1985</year>
    <manufacturer>Sega</manufacturer>
    <rom name="epr-6456a.116" size="16384" crc="bcc8406b" sha1="2e5c76886fce2c9863db7a914b85b088971aceef" region="maincpu" offset="0" />
    <rom name="epr-6457a.109" size="16384" crc="a016fd2a" sha1="866f82066466bc5eaf6ab1b6f85a1c173692a1f7" region="maincpu" offset="4000" />
    <rom name="epr-6458a.96" size="16384" crc="5c30b3e8" sha1="9048091ebf054d0ba0c6a92520ddfac38a479034" region="maincpu" offset="8000" />
    <rom name="epr-6462.120" size="8192" crc="86bb9185" sha1="89add2e3784e8f5a20b895fb2c4466bdd6c34b0c" region="soundcpu" offset="0" />
    <rom name="epr-6474a.62" size="8192" crc="9f1711b9" sha1="c652010a8b19828f81fd101aa1ea781e250c4ec2" region="tiles" offset="0" />
    <rom name="epr-6473a.61" size="8192" crc="8e53b8dd" sha1="23e04589f2b523d6b8e46d16f40e59685e27f522" region="tiles" offset="2000" />
    <rom name="epr-6472a.64" size="8192" crc="e0f34a11" sha1="b7a96a1867f8bd3cc1251b5fd12991c406e62a37" region="tiles" offset="4000" />
    <rom name="epr-6471a.63" size="8192" crc="d5bc805c" sha1="520afa7617e8dfd09bf469c01ac606a4a3acdc5e" region="tiles" offset="6000" />
    <rom name="epr-6470a.66" size="8192" crc="1439729f" sha1="54ea6ef54be6dcc2a5d00f7f817fd8836a02b3b9" region="tiles" offset="8000" />
    <rom name="epr-6469a.65" size="8192" crc="e4ac6921" sha1="f95e3b368c2c6dbf8265fb314d73019fe7dcce22" region="tiles" offset="a000" />
    <rom name="epr-6454a.117" size="16384" crc="a5d96780" sha1="e0571f6fd031bbe2d971c3be7b96a017b0ea4be9" region="sprites" offset="0" />
    <rom name="epr-6455.05" size="16384" crc="32ee64a1" sha1="21743f78735fc9105fbbfac420bdaa2965b4b56f" region="sprites" offset="4000" />
    <rom name="pr-5317.76" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="sega_315_5093" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <device_ref name="z80pio" />
    <chip type="cpu" tag="maincpu" name="Sega 315-5093" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="8" />
      <dipvalue name="5" value="4" />
      <dipvalue name="Infinite" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="20000 50000" value="16" default="yes" />
      <dipvalue name="30000 70000" value="0" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="SWB" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="No" value="32" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Time" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="2 Minutes" value="0" />
      <dipvalue name="3 Minutes" value="64" default="yes" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="pitfall2a" sourcefile="system1.cpp" cloneof="pitfall2" romof="pitfall2">
    <description>Pitfall II (315-5093, Flicky Conversion)</description>
    <year>1985</year>
    <manufacturer>Sega</manufacturer>
    <rom name="epr-6505.116" size="16384" crc="b6769739" sha1="e1b8401c20f77f8ec799b19d7bc94ae4f9ed702f" region="maincpu" offset="0" />
    <rom name="epr-6506.109" size="16384" crc="1ce6aec4" sha1="69b54c4569ccfb1166a901e7044ae1026db01a82" region="maincpu" offset="4000" />
    <rom name="epr-6458a.96" merge="epr-6458a.96" size="16384" crc="5c30b3e8" sha1="9048091ebf054d0ba0c6a92520ddfac38a479034" region="maincpu" offset="8000" />
    <rom name="epr-6462.120" merge="epr-6462.120" size="8192" crc="86bb9185" sha1="89add2e3784e8f5a20b895fb2c4466bdd6c34b0c" region="soundcpu" offset="0" />
    <rom name="epr-6474a.62" merge="epr-6474a.62" size="8192" crc="9f1711b9" sha1="c652010a8b19828f81fd101aa1ea781e250c4ec2" region="tiles" offset="0" />
    <rom name="epr-6473a.61" merge="epr-6473a.61" size="8192" crc="8e53b8dd" sha1="23e04589f2b523d6b8e46d16f40e59685e27f522" region="tiles" offset="2000" />
    <rom name="epr-6472a.64" merge="epr-6472a.64" size="8192" crc="e0f34a11" sha1="b7a96a1867f8bd3cc1251b5fd12991c406e62a37" region="tiles" offset="4000" />
    <rom name="epr-6471a.63" merge="epr-6471a.63" size="8192" crc="d5bc805c" sha1="520afa7617e8dfd09bf469c01ac606a4a3acdc5e" region="tiles" offset="6000" />
    <rom name="epr-6470a.66" merge="epr-6470a.66" size="8192" crc="1439729f" sha1="54ea6ef54be6dcc2a5d00f7f817fd8836a02b3b9" region="tiles" offset="8000" />
    <rom name="epr-6469a.65" merge="epr-6469a.65" size="8192" crc="e4ac6921" sha1="f95e3b368c2c6dbf8265fb314d73019fe7dcce22" region="tiles" offset="a000" />
    <rom name="epr-6454a.117" merge="epr-6454a.117" size="16384" crc="a5d96780" sha1="e0571f6fd031bbe2d971c3be7b96a017b0ea4be9" region="sprites" offset="0" />
    <rom name="epr-6455.05" merge="epr-6455.05" size="16384" crc="32ee64a1" sha1="21743f78735fc9105fbbfac420bdaa2965b4b56f" region="sprites" offset="4000" />
    <rom name="pr-5317.76" merge="pr-5317.76" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="sega_315_5093" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <device_ref name="z80pio" />
    <chip type="cpu" tag="maincpu" name="Sega 315-5093" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="8" />
      <dipvalue name="5" value="4" />
      <dipvalue name="Infinite" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="20000 50000" value="16" default="yes" />
      <dipvalue name="30000 70000" value="0" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="SWB" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="No" value="32" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Time" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="2 Minutes" value="0" />
      <dipvalue name="3 Minutes" value="64" default="yes" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="pitfall2u" sourcefile="system1.cpp" cloneof="pitfall2" romof="pitfall2">
    <description>Pitfall II (not encrypted)</description>
    <year>1985</year>
    <manufacturer>Sega</manufacturer>
    <rom name="epr-6623.116" size="16384" crc="bcb47ed6" sha1="d33421999f899c0a4dc0d4553614c1f5c7027257" region="maincpu" offset="0" />
    <rom name="epr-6624a.109" size="16384" crc="6e8b09c1" sha1="4869ca4d3f0b08cd3df4c82be9cfc774ddeb3010" region="maincpu" offset="4000" />
    <rom name="epr-6625.96" size="16384" crc="dc5484ba" sha1="62fffff7d935c104def5f09e9dc4a26fa4ce4f94" region="maincpu" offset="8000" />
    <rom name="epr-6462.120" merge="epr-6462.120" size="8192" crc="86bb9185" sha1="89add2e3784e8f5a20b895fb2c4466bdd6c34b0c" region="soundcpu" offset="0" />
    <rom name="epr-6474a.62" merge="epr-6474a.62" size="8192" crc="9f1711b9" sha1="c652010a8b19828f81fd101aa1ea781e250c4ec2" region="tiles" offset="0" />
    <rom name="epr-6473a.61" merge="epr-6473a.61" size="8192" crc="8e53b8dd" sha1="23e04589f2b523d6b8e46d16f40e59685e27f522" region="tiles" offset="2000" />
    <rom name="epr-6472a.64" merge="epr-6472a.64" size="8192" crc="e0f34a11" sha1="b7a96a1867f8bd3cc1251b5fd12991c406e62a37" region="tiles" offset="4000" />
    <rom name="epr-6471a.63" merge="epr-6471a.63" size="8192" crc="d5bc805c" sha1="520afa7617e8dfd09bf469c01ac606a4a3acdc5e" region="tiles" offset="6000" />
    <rom name="epr-6470a.66" merge="epr-6470a.66" size="8192" crc="1439729f" sha1="54ea6ef54be6dcc2a5d00f7f817fd8836a02b3b9" region="tiles" offset="8000" />
    <rom name="epr-6469a.65" merge="epr-6469a.65" size="8192" crc="e4ac6921" sha1="f95e3b368c2c6dbf8265fb314d73019fe7dcce22" region="tiles" offset="a000" />
    <rom name="epr-6454a.117" merge="epr-6454a.117" size="16384" crc="a5d96780" sha1="e0571f6fd031bbe2d971c3be7b96a017b0ea4be9" region="sprites" offset="0" />
    <rom name="epr-6455.05" merge="epr-6455.05" size="16384" crc="32ee64a1" sha1="21743f78735fc9105fbbfac420bdaa2965b4b56f" region="sprites" offset="4000" />
    <rom name="pr-5317.76" merge="pr-5317.76" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="z80" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <device_ref name="z80pio" />
    <chip type="cpu" tag="maincpu" name="Zilog Z80" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="6">
      <diplocation name="SWB" number="2" />
      <diplocation name="SWB" number="3" />
      <dipvalue name="3" value="6" default="yes" />
      <dipvalue name="4" value="4" />
      <dipvalue name="5" value="2" />
      <dipvalue name="Infinite" value="0" />
    </dipswitch>
    <dipswitch name="Starting Stage" tag="SWB" mask="24">
      <diplocation name="SWB" number="4" />
      <diplocation name="SWB" number="5" />
      <dipvalue name="1" value="24" default="yes" />
      <dipvalue name="2" value="16" />
      <dipvalue name="3" value="8" />
      <dipvalue name="4" value="0" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="SWB" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="No" value="32" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Time" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="2 Minutes" value="0" />
      <dipvalue name="3 Minutes" value="64" default="yes" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="raflesia" sourcefile="system1.cpp">
    <description>Rafflesia (315-5162)</description>
    <year>1986</year>
    <manufacturer>Coreland / Sega</manufacturer>
    <rom name="epr-7411.116" size="16384" crc="88a0c6c6" sha1="1deaa8d8d607100966696e5e9dd5f799ba693af0" region="maincpu" offset="0" />
    <rom name="epr-7412.109" size="16384" crc="d3b8cddf" sha1="368c74d8ae46442cacdb67813dc1c039245da266" region="maincpu" offset="4000" />
    <rom name="epr-7413.96" size="16384" crc="b7e688b3" sha1="ba5c6d5d19e7d51e41949fd5fa576fdae38f9c9c" region="maincpu" offset="8000" />
    <rom name="epr-7420.120" size="8192" crc="14387666" sha1="9cb18e3002c32f658e4725707069f9cd2f496507" region="soundcpu" offset="0" />
    <rom name="epr-7419.62" size="8192" crc="bfd5f34c" sha1="78c4d380d5558212e535c3262223137447d64818" region="tiles" offset="0" />
    <rom name="epr-7418.61" size="8192" crc="f8cbc9b6" sha1="48be9337f704a11ac1fdeb64a3b3518c796bcdd0" region="tiles" offset="2000" />
    <rom name="epr-7417.64" size="8192" crc="e63501bc" sha1="5cfd19241c54782c262bbb23c6f682534e77feb7" region="tiles" offset="4000" />
    <rom name="epr-7416.63" size="8192" crc="093e5693" sha1="78bb1c4651bd63a9f776766d2eac4f1c09242ed5" region="tiles" offset="6000" />
    <rom name="epr-7415.66" size="8192" crc="1a8d6bd6" sha1="b04ee35f603c6c9923ba888914eb43a8b7753d92" region="tiles" offset="8000" />
    <rom name="epr-7414.65" size="8192" crc="5d20f218" sha1="bdc0185d133f7bbe287106882bacde846634ffa4" region="tiles" offset="a000" />
    <rom name="epr-7407.117" size="16384" crc="f09fc057" sha1="c6f06144b708055b31fbcba9f38b63736db789d8" region="sprites" offset="0" />
    <rom name="epr-7409.04" size="16384" crc="819fedb8" sha1="e63f0422814423be91d8e1937a13d19693a1a5fc" region="sprites" offset="4000" />
    <rom name="epr-7408.110" size="16384" crc="3189f33c" sha1="8476c2c01920f0492cf643929d4f023f3afe0164" region="sprites" offset="8000" />
    <rom name="epr-7410.05" size="16384" crc="ced74789" sha1="d0ad845bfe83412ac8d43125e1c50d0581a5b47e" region="sprites" offset="c000" />
    <rom name="pr-5317.76" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="sega_315_5162" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <device_ref name="z80pio" />
    <chip type="cpu" tag="maincpu" name="Sega 315-5162" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="270" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="8" />
      <dipvalue name="5" value="4" />
      <dipvalue name="Infinite" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="48">
      <diplocation name="SWB" number="5" />
      <diplocation name="SWB" number="6" />
      <dipvalue name="20k, 70k and 120k" value="48" default="yes" />
      <dipvalue name="30k, 80k and 150k" value="32" />
      <dipvalue name="50k, 100k and 200k" value="16" />
      <dipvalue name="None" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="SW 0 Read From" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Port $0D" value="128" default="yes" />
      <dipvalue name="Port $10" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="regulus" sourcefile="system1.cpp">
    <description>Regulus (315-5033, Rev A.)</description>
    <year>1983</year>
    <manufacturer>Sega</manufacturer>
    <rom name="epr-5640a.129" size="8192" crc="dafb1528" sha1="9140c5507bd931df3f8ef8d2910bc74f737b1a5a" region="maincpu" offset="0" />
    <rom name="epr-5641a.130" size="8192" crc="0fcc850e" sha1="d2d6b06bf1e2dc404aa5451cc9f1b919fb5be0f5" region="maincpu" offset="2000" />
    <rom name="epr-5642a.131" size="8192" crc="4feffa17" sha1="9d9f4227c4e60a5cc53c369e7c9ce59ea8df3553" region="maincpu" offset="4000" />
    <rom name="epr-5643a.132" size="8192" crc="b8ac7eb4" sha1="f96bcde021060a8c1c5270b73487e24d1893e8e5" region="maincpu" offset="6000" />
    <rom name="epr-5644.133" size="8192" crc="ffd05b7d" sha1="6fe471548d227d834c012d5d148b1ea1c12dfd00" region="maincpu" offset="8000" />
    <rom name="epr-5645a.134" size="8192" crc="6b4bf77c" sha1="0200efb58b85a6873db44ffa70c3c14dbca958a6" region="maincpu" offset="a000" />
    <rom name="epr-5652.3" size="8192" crc="74edcb98" sha1="bc181c73a6009ca723e715650adb920b77bd311c" region="soundcpu" offset="0" />
    <rom name="epr-5651.82" size="8192" crc="f07f3e82" sha1="f86acf2de639ac89f80cdf627d1d6b5f5e4f1557" region="tiles" offset="0" />
    <rom name="epr-5650.65" size="8192" crc="84c1baa2" sha1="27ba8e2bb820913e58cb029da9c18d35e67728b8" region="tiles" offset="2000" />
    <rom name="epr-5649.81" size="8192" crc="6774c895" sha1="28f74bcf1e6bc06db0984dcf86dd527e301b0c01" region="tiles" offset="4000" />
    <rom name="epr-5648.64" size="8192" crc="0c69e92a" sha1="1ee18562250468f8f09a3062705422c28c740674" region="tiles" offset="6000" />
    <rom name="epr-5647.80" size="8192" crc="9330f7b5" sha1="2c1be04de6ec652ea8a566eb0eb1a9bcb4c90e66" region="tiles" offset="8000" />
    <rom name="epr-5646.63" size="8192" crc="4dfacbbc" sha1="e34d1e1aaf3ae7a138e75df5dedebfb4acd79340" region="tiles" offset="a000" />
    <rom name="epr-5638.86" size="16384" crc="617363dd" sha1="c8024f541086a8a940e21219fa4522646aeb365a" region="sprites" offset="0" />
    <rom name="epr-5639.93" size="16384" crc="a4ec5131" sha1="033bf46d2625f99544a784fe3fa299cc1b1b48e1" region="sprites" offset="4000" />
    <rom name="pr-5317.106" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="sega_315_5033" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <chip type="cpu" tag="maincpu" name="Sega 315-5033" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="270" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="8" />
      <dipvalue name="5" value="4" />
      <dipvalue name="Infinite" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWB" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWB" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Easy" value="64" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="No" value="128" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="reguluso" sourcefile="system1.cpp" cloneof="regulus" romof="regulus">
    <description>Regulus (315-5033)</description>
    <year>1983</year>
    <manufacturer>Sega</manufacturer>
    <rom name="epr-5640.129" size="8192" crc="8324d0d4" sha1="204713938bc85e8b62c161d8ae00d087ecc9089c" region="maincpu" offset="0" />
    <rom name="epr-5641.130" size="8192" crc="0a09f5c7" sha1="0d45bff29442908b9f4111c89baea0326f0a9ec9" region="maincpu" offset="2000" />
    <rom name="epr-5642.131" size="8192" crc="ff27b2f6" sha1="fe294a53deffe2d46afa444fdae213e9d8763316" region="maincpu" offset="4000" />
    <rom name="epr-5643.132" size="8192" crc="0d867df0" sha1="adccc78072c0772ec20c0178a0be3426759900bf" region="maincpu" offset="6000" />
    <rom name="epr-5644.133" merge="epr-5644.133" size="8192" crc="ffd05b7d" sha1="6fe471548d227d834c012d5d148b1ea1c12dfd00" region="maincpu" offset="8000" />
    <rom name="epr-5645.134" size="8192" crc="57a2b4b4" sha1="9de8f5948c7993f1b6d8bf7032f7fc3d9dff5c77" region="maincpu" offset="a000" />
    <rom name="epr-5652.3" merge="epr-5652.3" size="8192" crc="74edcb98" sha1="bc181c73a6009ca723e715650adb920b77bd311c" region="soundcpu" offset="0" />
    <rom name="epr-5651.82" merge="epr-5651.82" size="8192" crc="f07f3e82" sha1="f86acf2de639ac89f80cdf627d1d6b5f5e4f1557" region="tiles" offset="0" />
    <rom name="epr-5650.65" merge="epr-5650.65" size="8192" crc="84c1baa2" sha1="27ba8e2bb820913e58cb029da9c18d35e67728b8" region="tiles" offset="2000" />
    <rom name="epr-5649.81" merge="epr-5649.81" size="8192" crc="6774c895" sha1="28f74bcf1e6bc06db0984dcf86dd527e301b0c01" region="tiles" offset="4000" />
    <rom name="epr-5648.64" merge="epr-5648.64" size="8192" crc="0c69e92a" sha1="1ee18562250468f8f09a3062705422c28c740674" region="tiles" offset="6000" />
    <rom name="epr-5647.80" merge="epr-5647.80" size="8192" crc="9330f7b5" sha1="2c1be04de6ec652ea8a566eb0eb1a9bcb4c90e66" region="tiles" offset="8000" />
    <rom name="epr-5646.63" merge="epr-5646.63" size="8192" crc="4dfacbbc" sha1="e34d1e1aaf3ae7a138e75df5dedebfb4acd79340" region="tiles" offset="a000" />
    <rom name="epr-5638.86" merge="epr-5638.86" size="16384" crc="617363dd" sha1="c8024f541086a8a940e21219fa4522646aeb365a" region="sprites" offset="0" />
    <rom name="epr-5639.93" merge="epr-5639.93" size="16384" crc="a4ec5131" sha1="033bf46d2625f99544a784fe3fa299cc1b1b48e1" region="sprites" offset="4000" />
    <rom name="pr-5317.106" merge="pr-5317.106" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="sega_315_5033" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <chip type="cpu" tag="maincpu" name="Sega 315-5033" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="270" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="8" />
      <dipvalue name="5" value="4" />
      <dipvalue name="Infinite" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWB" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWB" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Easy" value="64" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="regulusu" sourcefile="system1.cpp" cloneof="regulus" romof="regulus">
    <description>Regulus (not encrypted)</description>
    <year>1983</year>
    <manufacturer>Sega</manufacturer>
    <rom name="epr-5950.129" size="8192" crc="3b047b67" sha1="0164cb919a50013f23568f59caff19ff2d0bf11f" region="maincpu" offset="0" />
    <rom name="epr-5951.130" size="8192" crc="d66453ab" sha1="9e339c716c646bd02bedbe27096b75f633554e7c" region="maincpu" offset="2000" />
    <rom name="epr-5952.131" size="8192" crc="f3d0158a" sha1="9b6d8b2e0a0bec45bfbb9f8ccc728e18e909685f" region="maincpu" offset="4000" />
    <rom name="epr-5953.132" size="8192" crc="a9ad4f44" sha1="1e051595aff34db06186542bcfc3849bc88eb5d4" region="maincpu" offset="6000" />
    <rom name="epr-5644.133" merge="epr-5644.133" size="8192" crc="ffd05b7d" sha1="6fe471548d227d834c012d5d148b1ea1c12dfd00" region="maincpu" offset="8000" />
    <rom name="epr-5955.134" size="8192" crc="65ddb2a3" sha1="4f94eaac900da5ca512289e2339776b1139e03e1" region="maincpu" offset="a000" />
    <rom name="epr-5652.3" merge="epr-5652.3" size="8192" crc="74edcb98" sha1="bc181c73a6009ca723e715650adb920b77bd311c" region="soundcpu" offset="0" />
    <rom name="epr-5651.82" merge="epr-5651.82" size="8192" crc="f07f3e82" sha1="f86acf2de639ac89f80cdf627d1d6b5f5e4f1557" region="tiles" offset="0" />
    <rom name="epr-5650.65" merge="epr-5650.65" size="8192" crc="84c1baa2" sha1="27ba8e2bb820913e58cb029da9c18d35e67728b8" region="tiles" offset="2000" />
    <rom name="epr-5649.81" merge="epr-5649.81" size="8192" crc="6774c895" sha1="28f74bcf1e6bc06db0984dcf86dd527e301b0c01" region="tiles" offset="4000" />
    <rom name="epr-5648.64" merge="epr-5648.64" size="8192" crc="0c69e92a" sha1="1ee18562250468f8f09a3062705422c28c740674" region="tiles" offset="6000" />
    <rom name="epr-5647.80" merge="epr-5647.80" size="8192" crc="9330f7b5" sha1="2c1be04de6ec652ea8a566eb0eb1a9bcb4c90e66" region="tiles" offset="8000" />
    <rom name="epr-5646.63" merge="epr-5646.63" size="8192" crc="4dfacbbc" sha1="e34d1e1aaf3ae7a138e75df5dedebfb4acd79340" region="tiles" offset="a000" />
    <rom name="epr-5638.86" merge="epr-5638.86" size="16384" crc="617363dd" sha1="c8024f541086a8a940e21219fa4522646aeb365a" region="sprites" offset="0" />
    <rom name="epr-5639.93" merge="epr-5639.93" size="16384" crc="a4ec5131" sha1="033bf46d2625f99544a784fe3fa299cc1b1b48e1" region="sprites" offset="4000" />
    <rom name="pr-5317.106" merge="pr-5317.106" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="z80" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <chip type="cpu" tag="maincpu" name="Zilog Z80" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="270" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="8" />
      <dipvalue name="5" value="4" />
      <dipvalue name="Infinite" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWB" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWB" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Easy" value="64" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="No" value="128" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="seganinj" sourcefile="system1.cpp">
    <description>Sega Ninja (315-5102)</description>
    <year>1985</year>
    <manufacturer>Sega</manufacturer>
    <rom name="epr-6594a.116" size="16384" crc="a5d0c9d0" sha1="b60caccab8269f40d4f6e7a50f3aa0d4901c1e57" region="maincpu" offset="0" />
    <rom name="epr-6595a.109" size="16384" crc="b9e6775c" sha1="f39e815c3c034015125b96de34a2a225b81392b5" region="maincpu" offset="4000" />
    <rom name="epr-6596a.96" size="16384" crc="f2eeb0d8" sha1="1f0d1c73ba9eaa2887ffc596f0038b0af37ced49" region="maincpu" offset="8000" />
    <rom name="epr-6559.120" size="8192" crc="5a1570ee" sha1="fd9215e007b6687d057ea7aee01f6d3dcbc8f894" region="soundcpu" offset="0" />
    <rom name="epr-6558.62" size="8192" crc="2af9eaeb" sha1="a8a472e9f156c34f1cfcf6d6be808da4303a2276" region="tiles" offset="0" />
    <rom name="epr-6592.61" size="8192" crc="7804db86" sha1="8229781b8296d3ffdfa2f0901e2eed297cc3e160" region="tiles" offset="2000" />
    <rom name="epr-6556.64" size="8192" crc="79fd26f7" sha1="a7de0f21ccbcfda495a5c93237569a9b3919d2d5" region="tiles" offset="4000" />
    <rom name="epr-6590.63" size="8192" crc="bf858cad" sha1="1c18c4aa4b9a59f3c06aa459eab6bdd1b298d848" region="tiles" offset="6000" />
    <rom name="epr-6554.66" size="8192" crc="5ac9d205" sha1="c3094d10d1d6226bf9ad174d2dd1631b8d6ca33a" region="tiles" offset="8000" />
    <rom name="epr-6588.65" size="8192" crc="dc931dbb" sha1="4729b27843f226ba5861c3106f8418db70e7c47d" region="tiles" offset="a000" />
    <rom name="epr-6546.117" size="16384" crc="a4785692" sha1="95ce23076dc86c5d6d3a65274873d4c48e91cc06" region="sprites" offset="0" />
    <rom name="epr-6548.04" size="16384" crc="bdf278c1" sha1="7ebe505f4f0434edb2cee17a6cbce6b900b29cc4" region="sprites" offset="4000" />
    <rom name="epr-6547.110" size="16384" crc="34451b08" sha1="ee8708f6c886b63f138bcc10dc2a053bfad96c37" region="sprites" offset="8000" />
    <rom name="epr-6549a.05" size="16384" crc="7c51488c" sha1="adc835d86e8b51ac47b8619655b3cc2c01aa8c7a" region="sprites" offset="c000" />
    <rom name="pr-5317.76" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="sega_315_5102" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <device_ref name="z80pio" />
    <chip type="cpu" tag="maincpu" name="Sega 315-5102" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="2" value="8" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="4" />
      <dipvalue name="240" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="20k 70k 120k 170k" value="16" default="yes" />
      <dipvalue name="50k 100k 150k 200k" value="0" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="SWB" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="No" value="32" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Easy" value="64" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="SW 0 Read From" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Port $0D" value="128" default="yes" />
      <dipvalue name="Port $10" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="seganinja" sourcefile="system1.cpp" cloneof="seganinj" romof="seganinj">
    <description>Sega Ninja (315-5113)</description>
    <year>1985</year>
    <manufacturer>Sega</manufacturer>
    <rom name="epr-6879.116" size="16384" crc="cae7e51f" sha1="de6aec8e83cfbe71ed2c52b8f5692aff5ef596a7" region="maincpu" offset="0" />
    <rom name="epr-6880.109" size="16384" crc="7af85e01" sha1="57d2a8662efc878ae132cd66de8d46d506ddd6e5" region="maincpu" offset="4000" />
    <rom name="epr-6881.96" merge="epr-6596a.96" size="16384" crc="f2eeb0d8" sha1="1f0d1c73ba9eaa2887ffc596f0038b0af37ced49" region="maincpu" offset="8000" />
    <rom name="epr-6559.120" merge="epr-6559.120" size="8192" crc="5a1570ee" sha1="fd9215e007b6687d057ea7aee01f6d3dcbc8f894" region="soundcpu" offset="0" />
    <rom name="epr-6558.62" merge="epr-6558.62" size="8192" crc="2af9eaeb" sha1="a8a472e9f156c34f1cfcf6d6be808da4303a2276" region="tiles" offset="0" />
    <rom name="epr-6592.61" merge="epr-6592.61" size="8192" crc="7804db86" sha1="8229781b8296d3ffdfa2f0901e2eed297cc3e160" region="tiles" offset="2000" />
    <rom name="epr-6556.64" merge="epr-6556.64" size="8192" crc="79fd26f7" sha1="a7de0f21ccbcfda495a5c93237569a9b3919d2d5" region="tiles" offset="4000" />
    <rom name="epr-6590.63" merge="epr-6590.63" size="8192" crc="bf858cad" sha1="1c18c4aa4b9a59f3c06aa459eab6bdd1b298d848" region="tiles" offset="6000" />
    <rom name="epr-6554.66" merge="epr-6554.66" size="8192" crc="5ac9d205" sha1="c3094d10d1d6226bf9ad174d2dd1631b8d6ca33a" region="tiles" offset="8000" />
    <rom name="epr-6588.65" merge="epr-6588.65" size="8192" crc="dc931dbb" sha1="4729b27843f226ba5861c3106f8418db70e7c47d" region="tiles" offset="a000" />
    <rom name="epr-6546.117" merge="epr-6546.117" size="16384" crc="a4785692" sha1="95ce23076dc86c5d6d3a65274873d4c48e91cc06" region="sprites" offset="0" />
    <rom name="epr-6548.04" merge="epr-6548.04" size="16384" crc="bdf278c1" sha1="7ebe505f4f0434edb2cee17a6cbce6b900b29cc4" region="sprites" offset="4000" />
    <rom name="epr-6547.110" merge="epr-6547.110" size="16384" crc="34451b08" sha1="ee8708f6c886b63f138bcc10dc2a053bfad96c37" region="sprites" offset="8000" />
    <rom name="epr-6549.05" size="16384" crc="d2057668" sha1="ded2a04f7555eb3b1e4da57901ca00635de2c043" region="sprites" offset="c000" />
    <rom name="pr-5317.76" merge="pr-5317.76" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="sega_315_5133" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <device_ref name="z80pio" />
    <chip type="cpu" tag="maincpu" name="Sega 315-5133" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="2" value="8" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="4" />
      <dipvalue name="240" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="20k 70k 120k 170k" value="16" default="yes" />
      <dipvalue name="50k 100k 150k 200k" value="0" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="SWB" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="No" value="32" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Easy" value="64" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="SW 0 Read From" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Port $0D" value="128" default="yes" />
      <dipvalue name="Port $10" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="seganinju" sourcefile="system1.cpp" cloneof="seganinj" romof="seganinj">
    <description>Sega Ninja (not encrypted)</description>
    <year>1985</year>
    <manufacturer>Sega</manufacturer>
    <rom name="epr-7149.116" size="16384" crc="cd9fade7" sha1="958ef5c449df6ef5346b8634cb34a646950f706e" region="maincpu" offset="0" />
    <rom name="epr-7150.109" size="16384" crc="c36351e2" sha1="17734d3f410feb4cad617d1931b3356192b69ac0" region="maincpu" offset="4000" />
    <rom name="epr-7151.96" merge="epr-6596a.96" size="16384" crc="f2eeb0d8" sha1="1f0d1c73ba9eaa2887ffc596f0038b0af37ced49" region="maincpu" offset="8000" />
    <rom name="epr-6559.120" merge="epr-6559.120" size="8192" crc="5a1570ee" sha1="fd9215e007b6687d057ea7aee01f6d3dcbc8f894" region="soundcpu" offset="0" />
    <rom name="epr-6558.62" merge="epr-6558.62" size="8192" crc="2af9eaeb" sha1="a8a472e9f156c34f1cfcf6d6be808da4303a2276" region="tiles" offset="0" />
    <rom name="epr-6592.61" merge="epr-6592.61" size="8192" crc="7804db86" sha1="8229781b8296d3ffdfa2f0901e2eed297cc3e160" region="tiles" offset="2000" />
    <rom name="epr-6556.64" merge="epr-6556.64" size="8192" crc="79fd26f7" sha1="a7de0f21ccbcfda495a5c93237569a9b3919d2d5" region="tiles" offset="4000" />
    <rom name="epr-6590.63" merge="epr-6590.63" size="8192" crc="bf858cad" sha1="1c18c4aa4b9a59f3c06aa459eab6bdd1b298d848" region="tiles" offset="6000" />
    <rom name="epr-6554.66" merge="epr-6554.66" size="8192" crc="5ac9d205" sha1="c3094d10d1d6226bf9ad174d2dd1631b8d6ca33a" region="tiles" offset="8000" />
    <rom name="epr-6588.65" merge="epr-6588.65" size="8192" crc="dc931dbb" sha1="4729b27843f226ba5861c3106f8418db70e7c47d" region="tiles" offset="a000" />
    <rom name="epr-6546.117" merge="epr-6546.117" size="16384" crc="a4785692" sha1="95ce23076dc86c5d6d3a65274873d4c48e91cc06" region="sprites" offset="0" />
    <rom name="epr-6548.04" merge="epr-6548.04" size="16384" crc="bdf278c1" sha1="7ebe505f4f0434edb2cee17a6cbce6b900b29cc4" region="sprites" offset="4000" />
    <rom name="epr-6547.110" merge="epr-6547.110" size="16384" crc="34451b08" sha1="ee8708f6c886b63f138bcc10dc2a053bfad96c37" region="sprites" offset="8000" />
    <rom name="epr-6549.05" size="16384" crc="d2057668" sha1="ded2a04f7555eb3b1e4da57901ca00635de2c043" region="sprites" offset="c000" />
    <rom name="pr-5317.76" merge="pr-5317.76" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="z80" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <device_ref name="z80pio" />
    <chip type="cpu" tag="maincpu" name="Zilog Z80" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="2" value="8" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="4" />
      <dipvalue name="240" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="20k 70k 120k 170k" value="16" default="yes" />
      <dipvalue name="50k 100k 150k 200k" value="0" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="SWB" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="No" value="32" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Easy" value="64" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="SW 0 Read From" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Port $0D" value="128" default="yes" />
      <dipvalue name="Port $10" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="shtngmst" sourcefile="system1.cpp">
    <description>Shooting Master (8751 315-5159)</description>
    <year>1985</year>
    <manufacturer>Sega</manufacturer>
    <rom name="epr-7100.ic18" size="32768" crc="45e64431" sha1="7edf818dc1f65365641e51abc197d13db7a8d4d9" region="maincpu" offset="0" />
    <rom name="epr-7101.ic91" size="32768" crc="ebf5ff72" sha1="13ae06e3a81cf00b80ec939d5baf30143d61d480" region="maincpu" offset="10000" />
    <rom name="epr-7102.ic92" size="32768" crc="c890a4ad" sha1="4b59d37902ace3a69b380ff40652ee37c85f0e9d" region="maincpu" offset="18000" />
    <rom name="epr-7043.ic126" size="32768" crc="99a368ab" sha1="a9451f39ee2613e5c3e2791d4d8d837b4a3ab666" region="soundcpu" offset="0" />
    <rom name="315-5159.ic74" size="4096" status="nodump" region="mcu" offset="0" />
    <rom name="epr-7040.ic4" size="32768" crc="f30769fa" sha1="366c1fbe4e1c8943b209f6c831c9a6b7e4372105" region="tiles" offset="0" />
    <rom name="epr-7041.ic5" size="32768" crc="f3e273f9" sha1="b8715c528299dc1e4f0c19c50d91ca9861a423a1" region="tiles" offset="8000" />
    <rom name="epr-7042.ic6" size="32768" crc="6841c917" sha1="6553843eea0131eb7b5a9aa29dddf641e41d8cc3" region="tiles" offset="10000" />
    <rom name="epr-7110.ic26" size="32768" crc="5d1a5048" sha1="d1626ab1981080451c912df7e4ad7f76c0cb3459" region="sprites" offset="0" />
    <rom name="epr-7106.ic22" size="32768" crc="ae7ab7a2" sha1="153691e468d29d21b95f1fbffb6896a3140d7e14" region="sprites" offset="8000" />
    <rom name="epr-7108.ic24" size="32768" crc="816180ac" sha1="a59670ec77d4359041ebf12dae5b74add55d82ac" region="sprites" offset="10000" />
    <rom name="epr-7104.ic20" size="32768" crc="84a679c5" sha1="19a21b1b33fc215f606093bfd61d597e4bd0b3d0" region="sprites" offset="18000" />
    <rom name="epr-7109.ic25" size="32768" crc="097f7481" sha1="4d93ea01b811af1cd3e136116625e4b8e06358a2" region="sprites" offset="20000" />
    <rom name="epr-7105.ic21" size="32768" crc="13111729" sha1="57ca2b945db36b056d0e40a39456fd8bf9d0a3ec" region="sprites" offset="28000" />
    <rom name="epr-7107.ic23" size="32768" crc="8f50ea24" sha1="781687e202dedca7b72c9bd5b97d9d46fcfd601c" region="sprites" offset="30000" />
    <rom name="epr-7113.ic20" size="256" crc="5c0e1360" sha1="2011b3eef2a58f9bd3f3b1bb9e6c201db85727c2" region="color_proms" offset="0" />
    <rom name="epr-7112.ic14" size="256" crc="46fbd351" sha1="1fca7fbc5d5f8e13e58bbac735511bd0af392446" region="color_proms" offset="100" />
    <rom name="epr-7111.ic8" size="256" crc="8123b6b9" sha1="fb2c5498f0603b5cd270402a738c891a85453666" region="color_proms" offset="200" />
    <rom name="pr5317.ic37" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <rom name="315-5137.bin" size="260" crc="6ffd9e6f" sha1="a60a3a2ec5bc256b18bfff0fec0172ee2e4fd955" region="plds" offset="0" />
    <rom name="315-5138.bin" size="260" crc="dd223015" sha1="8d70f91b118e8653dda1efee3eaea287ae63809f" region="plds" offset="0" />
    <rom name="315-5139.bin" size="260" status="nodump" region="plds" offset="0" />
    <rom name="315-5155.bin" size="260" status="nodump" region="plds" offset="0" />
    <rom name="315-5155.bin" size="260" status="nodump" region="plds" offset="0" />
    <rom name="315-5155.bin" size="260" status="nodump" region="plds" offset="0" />
    <device_ref name="z80" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <device_ref name="i8751" />
    <device_ref name="timer" />
    <chip type="cpu" tag="maincpu" name="Zilog Z80" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="cpu" tag="mcu" name="Intel 8751" clock="8000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="1" coins="2" service="yes">
      <control type="lightgun" buttons="1" minimum="32" maximum="255" sensitivity="64" keydelta="8" reverse="yes" />
    </input>
    <dipswitch name="port 18" tag="18" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="18" mask="2">
      <dipvalue name="Off" value="2" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="18" mask="4">
      <dipvalue name="Off" value="4" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="18" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="18" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="18" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="18" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="18" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="SWA" tag="SWA" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="SWA" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="SWA" mask="4">
      <diplocation name="SWB" number="3" />
      <dipvalue name="Off" value="4" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="SWA" mask="8">
      <diplocation name="SWB" number="4" />
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="SWA" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="SWA" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="SWA" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="SWA" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="SWB" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWB" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Unknown" tag="TRIGGER" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":18" />
    <port tag=":GUNX">
      <analog mask="255" />
    </port>
    <port tag=":GUNY">
      <analog mask="255" />
    </port>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <port tag=":TRIGGER" />
    <driver status="preliminary" emulation="preliminary" savestate="supported" />
  </machine>
  <machine name="shtngmste" sourcefile="system1.cpp" cloneof="shtngmst" romof="shtngmst">
    <description>Shooting Master (EVG, 8751 315-5159a)</description>
    <year>1985</year>
    <manufacturer>Sega / EVG</manufacturer>
    <rom name="epr-7100.ic18" size="32768" crc="268ecb1d" sha1="a9274c9718f7244235cc6df76331d6a0b7e4e4c8" region="maincpu" offset="0" />
    <rom name="epr-7101.ic91" merge="epr-7101.ic91" size="32768" crc="ebf5ff72" sha1="13ae06e3a81cf00b80ec939d5baf30143d61d480" region="maincpu" offset="10000" />
    <rom name="epr-7102.ic92" merge="epr-7102.ic92" size="32768" crc="c890a4ad" sha1="4b59d37902ace3a69b380ff40652ee37c85f0e9d" region="maincpu" offset="18000" />
    <rom name="epr-7043.ic126" merge="epr-7043.ic126" size="32768" crc="99a368ab" sha1="a9451f39ee2613e5c3e2791d4d8d837b4a3ab666" region="soundcpu" offset="0" />
    <rom name="315-5159a.ic74" size="4096" crc="1f774912" sha1="34d12756735514bea5a513fdf441ae93318747b2" status="baddump" region="mcu" offset="0" />
    <rom name="epr-7040.ic4" merge="epr-7040.ic4" size="32768" crc="f30769fa" sha1="366c1fbe4e1c8943b209f6c831c9a6b7e4372105" region="tiles" offset="0" />
    <rom name="epr-7041.ic5" merge="epr-7041.ic5" size="32768" crc="f3e273f9" sha1="b8715c528299dc1e4f0c19c50d91ca9861a423a1" region="tiles" offset="8000" />
    <rom name="epr-7042.ic6" merge="epr-7042.ic6" size="32768" crc="6841c917" sha1="6553843eea0131eb7b5a9aa29dddf641e41d8cc3" region="tiles" offset="10000" />
    <rom name="epr-7110.ic26" merge="epr-7110.ic26" size="32768" crc="5d1a5048" sha1="d1626ab1981080451c912df7e4ad7f76c0cb3459" region="sprites" offset="0" />
    <rom name="epr-7106.ic22" merge="epr-7106.ic22" size="32768" crc="ae7ab7a2" sha1="153691e468d29d21b95f1fbffb6896a3140d7e14" region="sprites" offset="8000" />
    <rom name="epr-7108.ic24" merge="epr-7108.ic24" size="32768" crc="816180ac" sha1="a59670ec77d4359041ebf12dae5b74add55d82ac" region="sprites" offset="10000" />
    <rom name="epr-7104.ic20" merge="epr-7104.ic20" size="32768" crc="84a679c5" sha1="19a21b1b33fc215f606093bfd61d597e4bd0b3d0" region="sprites" offset="18000" />
    <rom name="epr-7109.ic25" merge="epr-7109.ic25" size="32768" crc="097f7481" sha1="4d93ea01b811af1cd3e136116625e4b8e06358a2" region="sprites" offset="20000" />
    <rom name="epr-7105.ic21" merge="epr-7105.ic21" size="32768" crc="13111729" sha1="57ca2b945db36b056d0e40a39456fd8bf9d0a3ec" region="sprites" offset="28000" />
    <rom name="epr-7107.ic23" merge="epr-7107.ic23" size="32768" crc="8f50ea24" sha1="781687e202dedca7b72c9bd5b97d9d46fcfd601c" region="sprites" offset="30000" />
    <rom name="epr-7113.ic20" merge="epr-7113.ic20" size="256" crc="5c0e1360" sha1="2011b3eef2a58f9bd3f3b1bb9e6c201db85727c2" region="color_proms" offset="0" />
    <rom name="epr-7112.ic14" merge="epr-7112.ic14" size="256" crc="46fbd351" sha1="1fca7fbc5d5f8e13e58bbac735511bd0af392446" region="color_proms" offset="100" />
    <rom name="epr-7111.ic8" merge="epr-7111.ic8" size="256" crc="8123b6b9" sha1="fb2c5498f0603b5cd270402a738c891a85453666" region="color_proms" offset="200" />
    <rom name="pr5317.ic37" merge="pr5317.ic37" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <rom name="315-5137.bin" merge="315-5137.bin" size="260" crc="6ffd9e6f" sha1="a60a3a2ec5bc256b18bfff0fec0172ee2e4fd955" region="plds" offset="0" />
    <rom name="315-5138.bin" merge="315-5138.bin" size="260" crc="dd223015" sha1="8d70f91b118e8653dda1efee3eaea287ae63809f" region="plds" offset="0" />
    <device_ref name="z80" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <device_ref name="i8751" />
    <device_ref name="timer" />
    <chip type="cpu" tag="maincpu" name="Zilog Z80" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="cpu" tag="mcu" name="Intel 8751" clock="8000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="1" coins="2" service="yes">
      <control type="lightgun" buttons="1" minimum="32" maximum="255" sensitivity="64" keydelta="8" reverse="yes" />
    </input>
    <dipswitch name="port 18" tag="18" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="18" mask="2">
      <dipvalue name="Off" value="2" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="18" mask="4">
      <dipvalue name="Off" value="4" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="18" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="18" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="18" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="18" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="18" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="SWA" tag="SWA" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="SWA" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="SWA" mask="4">
      <diplocation name="SWB" number="3" />
      <dipvalue name="Off" value="4" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="SWA" mask="8">
      <diplocation name="SWB" number="4" />
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="SWA" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="SWA" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="SWA" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="SWA" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="SWB" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWB" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Unknown" tag="TRIGGER" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":18" />
    <port tag=":GUNX">
      <analog mask="255" />
    </port>
    <port tag=":GUNY">
      <analog mask="255" />
    </port>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <port tag=":TRIGGER" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="spatter" sourcefile="system1.cpp">
    <description>Spatter (315-5xxx)</description>
    <year>1984</year>
    <manufacturer>Sega</manufacturer>
    <rom name="epr-6392.116" size="16384" crc="329b4506" sha1="8f71ffc3015c4fcf84a895bf53760830602f1040" region="maincpu" offset="0" />
    <rom name="epr-6393.109" size="16384" crc="3b56e25f" sha1="23f26f8632c8a370b5b3b7a3ec58f359cdf04f73" region="maincpu" offset="4000" />
    <rom name="epr-6394.96" size="16384" crc="647c1301" sha1="5142abfcc63772fd1b47eb584ccda0bc3830e337" region="maincpu" offset="8000" />
    <rom name="epr-6316.120" size="8192" crc="1df95511" sha1="5780631c8c5a2c3fcd4085f217affa660d72a4e9" region="soundcpu" offset="0" />
    <rom name="epr-6328.62" size="8192" crc="a2bf2832" sha1="5d7047a6a0c0588a4e98b6ce94d5fd0e6ab963f9" region="tiles" offset="0" />
    <rom name="epr-6397.61" size="8192" crc="c60d4471" sha1="9e8130d575fa342485dfe093e086a4b48e51b904" region="tiles" offset="2000" />
    <rom name="epr-6326.64" size="8192" crc="269fbb4c" sha1="7b91f551360698195bf9ce8e32dd2e8fa17e9db8" region="tiles" offset="4000" />
    <rom name="epr-6396.63" size="8192" crc="c15ccf3b" sha1="14809ab81816eedb85cacda042e437d48cf9b31a" region="tiles" offset="6000" />
    <rom name="epr-6324.66" size="8192" crc="8ab3b563" sha1="6ede93b9f1593dbcbabd6c875bac8ec01a1b40a2" region="tiles" offset="8000" />
    <rom name="epr-6395.65" size="8192" crc="3f083065" sha1="cb17c8c2fe04baa58863c10cd8f359a58def3417" region="tiles" offset="a000" />
    <rom name="epr-6306.04" size="16384" crc="e871e132" sha1="55f7ab1a8c9a118911c64930452ea05f6ee37fc4" region="sprites" offset="0" />
    <rom name="epr-6308.117" size="16384" crc="99c2d90e" sha1="5be54d931622892b7acc320e714d5b1cdce02d19" region="sprites" offset="4000" />
    <rom name="epr-6307.05" size="16384" crc="0a5ad543" sha1="5acada30c1affc4ffbebc8365a9ba4465f213d47" region="sprites" offset="8000" />
    <rom name="epr-6309.110" size="16384" crc="7423ad98" sha1="e19b4c64795f30e1491520160d315e4148d58df2" region="sprites" offset="c000" />
    <rom name="pr-5317.106" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="sega_315_spat" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <device_ref name="z80pio" />
    <chip type="cpu" tag="maincpu" name="Sega 315-5xxx (Spatter)" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="479" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="16" hbstart="495" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="2" value="8" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="4" />
      <dipvalue name="Infinite" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="48">
      <diplocation name="SWB" number="5" />
      <diplocation name="SWB" number="6" />
      <dipvalue name="40k, 120k and 480k" value="48" default="yes" />
      <dipvalue name="50k and 200k" value="32" />
      <dipvalue name="100k only" value="16" />
      <dipvalue name="None" value="0" />
    </dipswitch>
    <dipswitch name="Reset Timer/Objects On Life Loss" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="No" value="64" default="yes" />
      <dipvalue name="Yes" value="0" />
    </dipswitch>
    <dipswitch name="SW 0 Read From" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Port $0D" value="128" default="yes" />
      <dipvalue name="Port $10" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="spattera" sourcefile="system1.cpp" cloneof="spatter" romof="spatter">
    <description>Spatter (315-5099)</description>
    <year>1984</year>
    <manufacturer>Sega</manufacturer>
    <rom name="epr-6597.116" size="16384" crc="fb928b9d" sha1="0a9bede7a147009b9ebb8a0b73681359da665982" region="maincpu" offset="0" />
    <rom name="epr-6598.109" size="16384" crc="5dff037a" sha1="8e6f6b75a89609ab0498d317c11e6d653343ffbe" region="maincpu" offset="4000" />
    <rom name="epr-6599.96" size="16384" crc="7ba9de5b" sha1="f18542c95e8241433ed995c213924ad1ce03cd5b" region="maincpu" offset="8000" />
    <rom name="epr-6316.120" merge="epr-6316.120" size="8192" crc="1df95511" sha1="5780631c8c5a2c3fcd4085f217affa660d72a4e9" region="soundcpu" offset="0" />
    <rom name="epr-6328.62" merge="epr-6328.62" size="8192" crc="a2bf2832" sha1="5d7047a6a0c0588a4e98b6ce94d5fd0e6ab963f9" region="tiles" offset="0" />
    <rom name="epr-6397.61" merge="epr-6397.61" size="8192" crc="c60d4471" sha1="9e8130d575fa342485dfe093e086a4b48e51b904" region="tiles" offset="2000" />
    <rom name="epr-6326.64" merge="epr-6326.64" size="8192" crc="269fbb4c" sha1="7b91f551360698195bf9ce8e32dd2e8fa17e9db8" region="tiles" offset="4000" />
    <rom name="epr-6396.63" merge="epr-6396.63" size="8192" crc="c15ccf3b" sha1="14809ab81816eedb85cacda042e437d48cf9b31a" region="tiles" offset="6000" />
    <rom name="epr-6324.66" merge="epr-6324.66" size="8192" crc="8ab3b563" sha1="6ede93b9f1593dbcbabd6c875bac8ec01a1b40a2" region="tiles" offset="8000" />
    <rom name="epr-6395.65" merge="epr-6395.65" size="8192" crc="3f083065" sha1="cb17c8c2fe04baa58863c10cd8f359a58def3417" region="tiles" offset="a000" />
    <rom name="epr-6306.04" merge="epr-6306.04" size="16384" crc="e871e132" sha1="55f7ab1a8c9a118911c64930452ea05f6ee37fc4" region="sprites" offset="0" />
    <rom name="epr-6308.117" merge="epr-6308.117" size="16384" crc="99c2d90e" sha1="5be54d931622892b7acc320e714d5b1cdce02d19" region="sprites" offset="4000" />
    <rom name="epr-6307.05" merge="epr-6307.05" size="16384" crc="0a5ad543" sha1="5acada30c1affc4ffbebc8365a9ba4465f213d47" region="sprites" offset="8000" />
    <rom name="epr-6309.110" merge="epr-6309.110" size="16384" crc="7423ad98" sha1="e19b4c64795f30e1491520160d315e4148d58df2" region="sprites" offset="c000" />
    <rom name="pr-5317.106" merge="pr-5317.106" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="sega_315_5099" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <device_ref name="z80pio" />
    <chip type="cpu" tag="maincpu" name="Sega 315-5099" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="2" value="8" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="4" />
      <dipvalue name="Infinite" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="48">
      <diplocation name="SWB" number="5" />
      <diplocation name="SWB" number="6" />
      <dipvalue name="40k, 120k and 480k" value="48" default="yes" />
      <dipvalue name="50k and 200k" value="32" />
      <dipvalue name="100k only" value="16" />
      <dipvalue name="None" value="0" />
    </dipswitch>
    <dipswitch name="Reset Timer/Objects On Life Loss" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="No" value="64" default="yes" />
      <dipvalue name="Yes" value="0" />
    </dipswitch>
    <dipswitch name="SW 0 Read From" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Port $0D" value="128" default="yes" />
      <dipvalue name="Port $10" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="ssanchan" sourcefile="system1.cpp" cloneof="spatter" romof="spatter">
    <description>Sanrin San Chan (Japan, 315-5xxx)</description>
    <year>1984</year>
    <manufacturer>Sega</manufacturer>
    <rom name="epr-6310.116" size="16384" crc="26b43701" sha1="e041bde10da12a3f698da09220f0a7cc2ee99abe" region="maincpu" offset="0" />
    <rom name="epr-6311.109" size="16384" crc="cb2bc620" sha1="ecc69360ad9fcc825b35955fbc29da9ea28b8846" region="maincpu" offset="4000" />
    <rom name="epr-6312.96" size="16384" crc="71b15b47" sha1="7c955be049f9a8d7ca18d877183b698dd5ffe4da" region="maincpu" offset="8000" />
    <rom name="epr-6316.120" merge="epr-6316.120" size="8192" crc="1df95511" sha1="5780631c8c5a2c3fcd4085f217affa660d72a4e9" region="soundcpu" offset="0" />
    <rom name="epr-6328.62" merge="epr-6328.62" size="8192" crc="a2bf2832" sha1="5d7047a6a0c0588a4e98b6ce94d5fd0e6ab963f9" region="tiles" offset="0" />
    <rom name="epr-6327.61" size="8192" crc="53298109" sha1="75fd37034aee78d63939d8b4f584c1dc1042264b" region="tiles" offset="2000" />
    <rom name="epr-6326.64" merge="epr-6326.64" size="8192" crc="269fbb4c" sha1="7b91f551360698195bf9ce8e32dd2e8fa17e9db8" region="tiles" offset="4000" />
    <rom name="epr-6325.63" size="8192" crc="bf038745" sha1="2fda2412f76b8971ba543ec10da07d4b0d1f2006" region="tiles" offset="6000" />
    <rom name="epr-6324.66" merge="epr-6324.66" size="8192" crc="8ab3b563" sha1="6ede93b9f1593dbcbabd6c875bac8ec01a1b40a2" region="tiles" offset="8000" />
    <rom name="epr-6323.65" size="8192" crc="0394673c" sha1="fbee6a5cb37d0394db95781b9f165d766546eb33" region="tiles" offset="a000" />
    <rom name="epr-6306.04" merge="epr-6306.04" size="16384" crc="e871e132" sha1="55f7ab1a8c9a118911c64930452ea05f6ee37fc4" region="sprites" offset="0" />
    <rom name="epr-6308.117" merge="epr-6308.117" size="16384" crc="99c2d90e" sha1="5be54d931622892b7acc320e714d5b1cdce02d19" region="sprites" offset="4000" />
    <rom name="epr-6307.05" merge="epr-6307.05" size="16384" crc="0a5ad543" sha1="5acada30c1affc4ffbebc8365a9ba4465f213d47" region="sprites" offset="8000" />
    <rom name="epr-6309.110" merge="epr-6309.110" size="16384" crc="7423ad98" sha1="e19b4c64795f30e1491520160d315e4148d58df2" region="sprites" offset="c000" />
    <rom name="pr-5317.106" merge="pr-5317.106" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="sega_315_spat" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <device_ref name="z80pio" />
    <chip type="cpu" tag="maincpu" name="Sega 315-5xxx (Spatter)" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="479" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="16" hbstart="495" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="2" value="8" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="4" />
      <dipvalue name="Infinite" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="48">
      <diplocation name="SWB" number="5" />
      <diplocation name="SWB" number="6" />
      <dipvalue name="40k, 120k and 480k" value="48" default="yes" />
      <dipvalue name="50k and 200k" value="32" />
      <dipvalue name="100k only" value="16" />
      <dipvalue name="None" value="0" />
    </dipswitch>
    <dipswitch name="Reset Timer/Objects On Life Loss" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="No" value="64" default="yes" />
      <dipvalue name="Yes" value="0" />
    </dipswitch>
    <dipswitch name="SW 0 Read From" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Port $0D" value="128" default="yes" />
      <dipvalue name="Port $10" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="sscandal" sourcefile="system1.cpp" cloneof="myhero" romof="myhero">
    <description>Seishun Scandal (315-5132, Japan)</description>
    <year>1985</year>
    <manufacturer>Coreland / Sega</manufacturer>
    <rom name="epr-6925b.116" size="16384" crc="ff54dcec" sha1="634ba5c79dc20dc6ab3efd9597b9fb1e4f86f58f" region="maincpu" offset="0" />
    <rom name="epr-6926a.109" size="16384" crc="5c41eea8" sha1="6a060a9739ee85c5c3a3e205bfac46bff1ed0b91" region="maincpu" offset="4000" />
    <rom name="epr-6927.96" merge="epr-6927.96" size="16384" crc="3cbbaf64" sha1="fdb5f2ca38010729afa4ed24c087119cf398f27d" region="maincpu" offset="8000" />
    <rom name="epr-6934.120" size="8192" crc="af467223" sha1="d79a67e761fe483407cad645dd3b93d86e8790e3" region="soundcpu" offset="0" />
    <rom name="epr-6933.62" size="8192" crc="e7304036" sha1="cff10b180832703ef472a6abd481f8433308d462" region="tiles" offset="0" />
    <rom name="epr-6932.61" size="8192" crc="f5cfbfda" sha1="52044e3eb6f2e82c9490856410758c5223eb116b" region="tiles" offset="2000" />
    <rom name="epr-6931.64" size="8192" crc="599d7f87" sha1="c581001b45856447b2878dc5bdeb92bffb15086a" region="tiles" offset="4000" />
    <rom name="epr-6930.63" size="8192" crc="cb6616c2" sha1="84d4f65379cb9d5c9774d29bbad137529ab221a6" region="tiles" offset="6000" />
    <rom name="epr-6929.66" size="8192" crc="27a16856" sha1="1e386dfa5178a0902f5d5e64f4d0414593f2e801" region="tiles" offset="8000" />
    <rom name="epr-6928.65" size="8192" crc="c0c9cfa4" sha1="3a98f25beab2dcacf5ec4457501ecfde9bc6e8eb" region="tiles" offset="a000" />
    <rom name="epr-6921.117" merge="epr-6921.117" size="16384" crc="f19e05a1" sha1="98288ba2e96c03a4ab9c8235faa7e01bb376d021" region="sprites" offset="0" />
    <rom name="epr-6923.04" merge="epr-6923.04" size="16384" crc="7988adc3" sha1="4ee9e964c24234366660af4981566e8c45f46db9" region="sprites" offset="4000" />
    <rom name="epr-6922.110" merge="epr-6922.110" size="16384" crc="37f77a78" sha1="01d8bd41303bd5e3a6f1cdafa4a1d682e4c659a2" region="sprites" offset="8000" />
    <rom name="epr-6924.05" merge="epr-6924.05" size="16384" crc="42bdc8f6" sha1="f31d82641187a7cc77a4a19189b5a15d5168cbd7" region="sprites" offset="c000" />
    <rom name="pr-5317.76" merge="pr-5317.76" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="sega_315_5132" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <device_ref name="z80pio" />
    <chip type="cpu" tag="maincpu" name="Sega 315-5132" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="8" />
      <dipvalue name="5" value="4" />
      <dipvalue name="Infinite" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="48">
      <diplocation name="SWB" number="5" />
      <diplocation name="SWB" number="6" />
      <dipvalue name="30000" value="48" default="yes" />
      <dipvalue name="50000" value="32" />
      <dipvalue name="70000" value="16" />
      <dipvalue name="90000" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Easy" value="64" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="SW 0 Read From" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Port $0D" value="128" default="yes" />
      <dipvalue name="Port $10" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="starjack" sourcefile="system1.cpp">
    <description>Star Jacker (Sega)</description>
    <year>1983</year>
    <manufacturer>Sega</manufacturer>
    <rom name="epr-5320b.129" size="8192" crc="7ab72ecd" sha1="28d3f87851cccc94a86eb0217893de0baf8e62fd" region="maincpu" offset="0" />
    <rom name="epr-5321a.130" size="8192" crc="38b99050" sha1="79fd23bb7db577d1dbf1b50503085eccdd17b98c" region="maincpu" offset="2000" />
    <rom name="epr-5322a.131" size="8192" crc="103a595b" sha1="6bb8a063279c93341ff472351b79c92795845f74" region="maincpu" offset="4000" />
    <rom name="epr-5323.132" size="8192" crc="46af0d58" sha1="6cfa288e28e3b415db5ef3cef8e8849259234af9" region="maincpu" offset="6000" />
    <rom name="epr-5324.133" size="8192" crc="1e89efe2" sha1="d36ef8f176d5e44884d3d0b9af81be6f7fbd0cde" region="maincpu" offset="8000" />
    <rom name="epr-5325.134" size="8192" crc="d6e379a1" sha1="27362b3e10d9d4235647eadb9cd1404700a8fb49" region="maincpu" offset="a000" />
    <rom name="epr-5332.3" size="8192" crc="7a72ab3d" sha1="4a6ad09949a438562d7043532d628cefdbb5a2fe" region="soundcpu" offset="0" />
    <rom name="epr-5331.82" size="8192" crc="251d898f" sha1="353067a75d583d5f53ce2f473b52a35dd912639f" region="tiles" offset="0" />
    <rom name="epr-5330.65" size="8192" crc="eb048745" sha1="a2e90d20a07608f43273e84d1eb22f195b19626c" region="tiles" offset="2000" />
    <rom name="epr-5329.81" size="8192" crc="3e8bcaed" sha1="6d19543427b9c4d8d8f5ea0872cdf8cc4fe5018c" region="tiles" offset="4000" />
    <rom name="epr-5328.64" size="8192" crc="9ed7849f" sha1="cc30d144ff70539bbc82c848c154e156a33b638c" region="tiles" offset="6000" />
    <rom name="epr-5327.80" size="8192" crc="79e92cb1" sha1="03124ce123684b8469cf42be6ed5f0fffa64c480" region="tiles" offset="8000" />
    <rom name="epr-5326.63" size="8192" crc="ba7e2b47" sha1="bc7528456fe8dee9aa21212aa996fc347c5d55b4" region="tiles" offset="a000" />
    <rom name="epr-5318.86" size="16384" crc="6f2e1fd3" sha1="326d538551245fce67d0fdba85975e27093b7a93" region="sprites" offset="0" />
    <rom name="epr-5319.93" size="16384" crc="ebee4999" sha1="bb331be270dc1da63699533d9f02d73ce28f1bc5" region="sprites" offset="4000" />
    <rom name="pr-5317.106" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="z80" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <chip type="cpu" tag="maincpu" name="Zilog Z80" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="270" width="479" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="16" hbstart="495" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="6">
      <diplocation name="SWB" number="2" />
      <diplocation name="SWB" number="3" />
      <dipvalue name="3" value="6" default="yes" />
      <dipvalue name="4" value="4" />
      <dipvalue name="5" value="2" />
      <dipvalue name="Infinite" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="56">
      <diplocation name="SWB" number="4" />
      <diplocation name="SWB" number="5" />
      <diplocation name="SWB" number="6" />
      <dipvalue name="Every 20k" value="56" />
      <dipvalue name="Every 30k" value="40" />
      <dipvalue name="Every 40k" value="24" />
      <dipvalue name="Every 50k" value="8" />
      <dipvalue name="20k, then every 30k" value="48" default="yes" />
      <dipvalue name="30k, then every 40k" value="32" />
      <dipvalue name="40k, then every 50k" value="16" />
      <dipvalue name="50k, then every 60k" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWB" mask="192">
      <diplocation name="SWB" number="7" />
      <diplocation name="SWB" number="8" />
      <dipvalue name="Easy" value="192" default="yes" />
      <dipvalue name="Medium" value="128" />
      <dipvalue name="Hard" value="64" />
      <dipvalue name="Hardest" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="starjacks" sourcefile="system1.cpp" cloneof="starjack" romof="starjack">
    <description>Star Jacker (Stern Electronics)</description>
    <year>1983</year>
    <manufacturer>Sega (Stern Electronics license)</manufacturer>
    <rom name="star_jacker_a1_ic29.129" size="8192" crc="59a22a1f" sha1="4827b537f8df04429ed53c2119c67a32efcf04a2" region="maincpu" offset="0" />
    <rom name="star_jacker_a1_ic30.130" size="8192" crc="7f4597dc" sha1="7574853fc2e38880f8493cf628100a890f7aa7dc" region="maincpu" offset="2000" />
    <rom name="star_jacker_a1_ic31.131" size="8192" crc="6074c046" sha1="5d2bd679d6a13a6c3b203662ce5496b801383db9" region="maincpu" offset="4000" />
    <rom name="star_jacker_a1_ic32.132" size="8192" crc="1c48a3fa" sha1="4a2e7798600bc4a5fd68533083547212d148d347" region="maincpu" offset="6000" />
    <rom name="star_jacker_a1_ic33.133" size="8192" crc="7598bd51" sha1="0c18b83dc7874aefcd94593ffbe2b50cc0329367" region="maincpu" offset="8000" />
    <rom name="star_jacker_a1_ic34.134" size="8192" crc="f66fa604" sha1="d7a81920217fcf7a687ba5e2d10abad5c78085d2" region="maincpu" offset="a000" />
    <rom name="star_jacker_a1_ic3.3" merge="epr-5332.3" size="8192" crc="7a72ab3d" sha1="4a6ad09949a438562d7043532d628cefdbb5a2fe" region="soundcpu" offset="0" />
    <rom name="star_jacker_a1_ic82.82" merge="epr-5331.82" size="8192" crc="251d898f" sha1="353067a75d583d5f53ce2f473b52a35dd912639f" region="tiles" offset="0" />
    <rom name="star_jacker_a1_ic65.65" size="8192" crc="0ab1893c" sha1="97877f5d8be7a7b80bbf9fe8dae2acd47c411d64" region="tiles" offset="2000" />
    <rom name="epr-5456.81" merge="epr-5329.81" size="8192" crc="3e8bcaed" sha1="6d19543427b9c4d8d8f5ea0872cdf8cc4fe5018c" region="tiles" offset="4000" />
    <rom name="epr-5455.64" size="8192" crc="7f628ae6" sha1="f859a505b543382b42a478c8ae5cd90f3ea2bc2c" region="tiles" offset="6000" />
    <rom name="epr-5454.80" merge="epr-5327.80" size="8192" crc="79e92cb1" sha1="03124ce123684b8469cf42be6ed5f0fffa64c480" region="tiles" offset="8000" />
    <rom name="epr-5453.63" size="8192" crc="5bcb253e" sha1="8c34a8377344940bcfb2495bfda3ffc6794f261b" region="tiles" offset="a000" />
    <rom name="star_jacker_a1_ic86.86" merge="epr-5318.86" size="16384" crc="6f2e1fd3" sha1="326d538551245fce67d0fdba85975e27093b7a93" region="sprites" offset="0" />
    <rom name="epr-5446.93" size="16384" crc="07987244" sha1="8468b95684b1f62c6de6af1b1d405bfb333e4e26" region="sprites" offset="4000" />
    <rom name="pr-5317.106" merge="pr-5317.106" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="z80" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <chip type="cpu" tag="maincpu" name="Zilog Z80" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="270" width="479" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="16" hbstart="495" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="6">
      <diplocation name="SWB" number="2" />
      <diplocation name="SWB" number="3" />
      <dipvalue name="3" value="6" default="yes" />
      <dipvalue name="4" value="4" />
      <dipvalue name="5" value="2" />
      <dipvalue name="Infinite" value="0" />
    </dipswitch>
    <dipswitch name="Ship" tag="SWB" mask="8">
      <diplocation name="SWB" number="4" />
      <dipvalue name="Single" value="8" default="yes" />
      <dipvalue name="Multi" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="48">
      <diplocation name="SWB" number="5" />
      <diplocation name="SWB" number="6" />
      <dipvalue name="30k, then every 40k" value="48" default="yes" />
      <dipvalue name="40k, then every 50k" value="32" />
      <dipvalue name="50k, then every 60k" value="16" />
      <dipvalue name="60k, then every 70k" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWB" mask="192">
      <diplocation name="SWB" number="7" />
      <diplocation name="SWB" number="8" />
      <dipvalue name="Easy" value="192" default="yes" />
      <dipvalue name="Medium" value="128" />
      <dipvalue name="Hard" value="64" />
      <dipvalue name="Hardest" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="swat" sourcefile="system1.cpp">
    <description>SWAT (315-5048)</description>
    <year>1984</year>
    <manufacturer>Coreland / Sega</manufacturer>
    <rom name="epr5807b.129" size="8192" crc="93db9c9f" sha1="56e9d9a33f04b4d5971c0db24cc8719a52e64678" region="maincpu" offset="0" />
    <rom name="epr-5808.130" size="8192" crc="67116665" sha1="e8aa72f2835d38367be5e8a9313e51b64f452ee7" region="maincpu" offset="2000" />
    <rom name="epr-5809.131" size="8192" crc="fd792fc9" sha1="a0b4f0c2e537bd16f7345590da00f2622947d7e4" region="maincpu" offset="4000" />
    <rom name="epr-5810.132" size="8192" crc="dc2b279d" sha1="e740cbe239d379705fdffb3e500d6f5a2fece2e2" region="maincpu" offset="6000" />
    <rom name="epr-5811.133" size="8192" crc="093e3ab1" sha1="abf1f23dc26a7518357d0c1749e869b539c3bbed" region="maincpu" offset="8000" />
    <rom name="epr-5812.134" size="8192" crc="5bfd692f" sha1="adc8dcf643d8d0b0a1d0dda0494567263ea11a00" region="maincpu" offset="a000" />
    <rom name="epr-5819.3" size="8192" crc="f6afd0fd" sha1="06062648b9ebc70b4b5c30b043f537adc0052047" region="soundcpu" offset="0" />
    <rom name="epr-5818.82" size="8192" crc="b22033d9" sha1="ad217cd8dad178f3f2f1fd44a58adcc4887fb6b7" region="tiles" offset="0" />
    <rom name="epr-5817.65" size="8192" crc="fd942797" sha1="da7378e8d12cc2970df2efa075c944c79b3b74d2" region="tiles" offset="2000" />
    <rom name="epr-5816.81" size="8192" crc="4384376d" sha1="78ae13a38d6368e44ba95642cce7f5515a5b6022" region="tiles" offset="4000" />
    <rom name="epr-5815.64" size="8192" crc="16ad046c" sha1="a0b97e016e5cf43f223ecb6c5fe7dec7c8e9c098" region="tiles" offset="6000" />
    <rom name="epr-5814.80" size="8192" crc="be721c99" sha1="bbb0afe2b195d60418014c36acf3de95adfd90d8" region="tiles" offset="8000" />
    <rom name="epr-5813.63" size="8192" crc="0d42c27e" sha1="06b1d23cacfef3017e5951dc10e8471e9b3103d5" region="tiles" offset="a000" />
    <rom name="epr-5805.86" size="16384" crc="5a732865" sha1="55c54e54f052187ddd957131e56400c9c432a6b2" region="sprites" offset="0" />
    <rom name="epr-5806.93" size="16384" crc="26ac258c" sha1="e4e9f929ab8ae7da74f885481cf94335d7553a1c" region="sprites" offset="4000" />
    <rom name="pr-5317.106" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="sega_315_5048" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <chip type="cpu" tag="maincpu" name="Sega 315-5048" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="270" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="6">
      <diplocation name="SWB" number="2" />
      <diplocation name="SWB" number="3" />
      <dipvalue name="3" value="6" default="yes" />
      <dipvalue name="4" value="4" />
      <dipvalue name="5" value="2" />
      <dipvalue name="Infinite" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="56">
      <diplocation name="SWB" number="4" />
      <diplocation name="SWB" number="5" />
      <diplocation name="SWB" number="6" />
      <dipvalue name="30000" value="56" default="yes" />
      <dipvalue name="40000" value="48" />
      <dipvalue name="50000" value="40" />
      <dipvalue name="60000" value="32" />
      <dipvalue name="70000" value="24" />
      <dipvalue name="80000" value="16" />
      <dipvalue name="90000" value="8" />
      <dipvalue name="None" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="teddybb" sourcefile="system1.cpp">
    <description>TeddyBoy Blues (315-5115, New Ver.)</description>
    <year>1985</year>
    <manufacturer>Sega</manufacturer>
    <rom name="epr-6768.116" size="16384" crc="5939817e" sha1="84d78412d3e13da493d08a40deb2ff3fd51ff9f8" region="maincpu" offset="0" />
    <rom name="epr-6769.109" size="16384" crc="14a98ddd" sha1="197fa05fb476c02d64e9027cde5aaac26f59b5e8" region="maincpu" offset="4000" />
    <rom name="epr-6770.96" size="16384" crc="67b0c7c2" sha1="b955719c954af5266e06ae7b04ff20f9dc414997" region="maincpu" offset="8000" />
    <rom name="epr6748x.120" size="8192" crc="c2a1b89d" sha1="55c5461640ccb26bed332c13adfbb99c27237bcb" region="soundcpu" offset="0" />
    <rom name="epr-6747.62" size="8192" crc="a0e5aca7" sha1="e7d35ed5e1606a1ea8b29eeca3ca807ed163573b" region="tiles" offset="0" />
    <rom name="epr-6746.61" size="8192" crc="cdb77e51" sha1="590855f41b62fe9a84db51f90242697abb603c00" region="tiles" offset="2000" />
    <rom name="epr-6745.64" size="8192" crc="0cab75c3" sha1="ef9b74c62fbd81db8942f0b7aa2569a8f4843e9d" region="tiles" offset="4000" />
    <rom name="epr-6744.63" size="8192" crc="0ef8d2cd" sha1="cf9ebf8e3c1d0794b3d3377464f3908d4fcee6f7" region="tiles" offset="6000" />
    <rom name="epr-6743.66" size="8192" crc="c33062b5" sha1="5845da895059ff0271a6ed6fd0fa1392be1ac223" region="tiles" offset="8000" />
    <rom name="epr-6742.65" size="8192" crc="c457e8c5" sha1="3c1008ae8b054c198cfeb0a66534fb51beaee0f6" region="tiles" offset="a000" />
    <rom name="epr-6735.117" size="16384" crc="1be35a97" sha1="7524cfa1a9c9a2e37753f119e7ac7aa3158621be" region="sprites" offset="0" />
    <rom name="epr-6737.04" size="16384" crc="6b53aa7a" sha1="b1b3ff9460b2321e72b49befa63b61c9c36fedd9" region="sprites" offset="4000" />
    <rom name="epr-6736.110" size="16384" crc="565c25d0" sha1="5ae524ef01138c5042b223286d65eb9043c0f0d5" region="sprites" offset="8000" />
    <rom name="epr-6738.05" size="16384" crc="e116285f" sha1="b6fb50b02a981b3b23385200045ae537092d26d6" region="sprites" offset="c000" />
    <rom name="pr-5317.76" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="sega_315_5155" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <device_ref name="z80pio" />
    <chip type="cpu" tag="maincpu" name="Sega 315-5155" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="2" value="8" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="4" />
      <dipvalue name="252" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="48">
      <diplocation name="SWB" number="5" />
      <diplocation name="SWB" number="6" />
      <dipvalue name="100k 400k" value="48" default="yes" />
      <dipvalue name="200k 600k" value="32" />
      <dipvalue name="400k 800k" value="16" />
      <dipvalue name="600k" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Easy" value="64" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="SW 0 Read From" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Port $0D" value="128" default="yes" />
      <dipvalue name="Port $10" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="teddybbo" sourcefile="system1.cpp" cloneof="teddybb" romof="teddybb">
    <description>TeddyBoy Blues (315-5115, Old Ver.)</description>
    <year>1985</year>
    <manufacturer>Sega</manufacturer>
    <rom name="epr-6739.116" size="16384" crc="81a37e69" sha1="ddd0fd7ba5b3646c43ae4261f1e3fedd4184d92c" region="maincpu" offset="0" />
    <rom name="epr-6740.109" size="16384" crc="715388a9" sha1="5affc4ecb1e0d58b69093aed732b1e292b8d3118" region="maincpu" offset="4000" />
    <rom name="epr-6741.96" size="16384" crc="e5a74f5f" sha1="ccf18b424d4aaeec0bae1e6f096b4c176f6ab554" region="maincpu" offset="8000" />
    <rom name="epr-6748.120" size="8192" crc="9325a1cf" sha1="555d137b1c974b144ebe6593b4c32c97b3bb5de9" region="soundcpu" offset="0" />
    <rom name="epr-6747.62" merge="epr-6747.62" size="8192" crc="a0e5aca7" sha1="e7d35ed5e1606a1ea8b29eeca3ca807ed163573b" region="tiles" offset="0" />
    <rom name="epr-6746.61" merge="epr-6746.61" size="8192" crc="cdb77e51" sha1="590855f41b62fe9a84db51f90242697abb603c00" region="tiles" offset="2000" />
    <rom name="epr-6745.64" merge="epr-6745.64" size="8192" crc="0cab75c3" sha1="ef9b74c62fbd81db8942f0b7aa2569a8f4843e9d" region="tiles" offset="4000" />
    <rom name="epr-6744.63" merge="epr-6744.63" size="8192" crc="0ef8d2cd" sha1="cf9ebf8e3c1d0794b3d3377464f3908d4fcee6f7" region="tiles" offset="6000" />
    <rom name="epr-6743.66" merge="epr-6743.66" size="8192" crc="c33062b5" sha1="5845da895059ff0271a6ed6fd0fa1392be1ac223" region="tiles" offset="8000" />
    <rom name="epr-6742.65" merge="epr-6742.65" size="8192" crc="c457e8c5" sha1="3c1008ae8b054c198cfeb0a66534fb51beaee0f6" region="tiles" offset="a000" />
    <rom name="epr-6735.117" merge="epr-6735.117" size="16384" crc="1be35a97" sha1="7524cfa1a9c9a2e37753f119e7ac7aa3158621be" region="sprites" offset="0" />
    <rom name="epr-6737.04" merge="epr-6737.04" size="16384" crc="6b53aa7a" sha1="b1b3ff9460b2321e72b49befa63b61c9c36fedd9" region="sprites" offset="4000" />
    <rom name="epr-6736.110" merge="epr-6736.110" size="16384" crc="565c25d0" sha1="5ae524ef01138c5042b223286d65eb9043c0f0d5" region="sprites" offset="8000" />
    <rom name="epr-6738.05" merge="epr-6738.05" size="16384" crc="e116285f" sha1="b6fb50b02a981b3b23385200045ae537092d26d6" region="sprites" offset="c000" />
    <rom name="pr-5317.76" merge="pr-5317.76" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="sega_315_5155" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <device_ref name="z80pio" />
    <chip type="cpu" tag="maincpu" name="Sega 315-5155" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="2" value="8" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="4" />
      <dipvalue name="252" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="48">
      <diplocation name="SWB" number="5" />
      <diplocation name="SWB" number="6" />
      <dipvalue name="100k 400k" value="48" default="yes" />
      <dipvalue name="200k 600k" value="32" />
      <dipvalue name="400k 800k" value="16" />
      <dipvalue name="600k" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Easy" value="64" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="SW 0 Read From" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Port $0D" value="128" default="yes" />
      <dipvalue name="Port $10" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="teddybbobl" sourcefile="system1.cpp" cloneof="teddybb" romof="teddybb">
    <description>TeddyBoy Blues (Old Ver. bootleg)</description>
    <year>1985</year>
    <manufacturer>bootleg</manufacturer>
    <rom name="1.f2" size="16384" crc="81a37e69" sha1="ddd0fd7ba5b3646c43ae4261f1e3fedd4184d92c" region="maincpu" offset="0" />
    <rom name="2.j2" size="16384" crc="715388a9" sha1="5affc4ecb1e0d58b69093aed732b1e292b8d3118" region="maincpu" offset="4000" />
    <rom name="3.k2" size="16384" crc="e5a74f5f" sha1="ccf18b424d4aaeec0bae1e6f096b4c176f6ab554" region="maincpu" offset="8000" />
    <rom name="6.e10" size="8192" crc="9325a1cf" sha1="555d137b1c974b144ebe6593b4c32c97b3bb5de9" region="soundcpu" offset="0" />
    <rom name="11.r7" size="16384" crc="55d7aaf7" sha1="84041b665f91b515968aaa48d8ffe93c84c90c57" region="tiles" offset="0" />
    <rom name="10.r8" size="16384" crc="52a5083d" sha1="33afef936ce21d49fc7bae3dd9b9d827e26e002f" region="tiles" offset="4000" />
    <rom name="9.r10" size="16384" crc="8076d3a3" sha1="ba7f136b9300a2b41f225a7696345c90a6fbd6a5" region="tiles" offset="8000" />
    <rom name="4.f3" merge="epr-6735.117" size="16384" crc="1be35a97" sha1="7524cfa1a9c9a2e37753f119e7ac7aa3158621be" region="sprites" offset="0" />
    <rom name="6.k3" merge="epr-6737.04" size="16384" crc="6b53aa7a" sha1="b1b3ff9460b2321e72b49befa63b61c9c36fedd9" region="sprites" offset="4000" />
    <rom name="5.h3" merge="epr-6736.110" size="16384" crc="565c25d0" sha1="5ae524ef01138c5042b223286d65eb9043c0f0d5" region="sprites" offset="8000" />
    <rom name="7.m3" merge="epr-6738.05" size="16384" crc="e116285f" sha1="b6fb50b02a981b3b23385200045ae537092d26d6" region="sprites" offset="c000" />
    <rom name="pr-5317.76" merge="pr-5317.76" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <rom name="74s287.bin" size="256" crc="de9af32c" sha1="f999465bb4600a97179a9253e17413f6837703df" region="promsbl" offset="0" />
    <device_ref name="sega_315_5155" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <device_ref name="z80pio" />
    <chip type="cpu" tag="maincpu" name="Sega 315-5155" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="2" value="8" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="4" />
      <dipvalue name="252" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="48">
      <diplocation name="SWB" number="5" />
      <diplocation name="SWB" number="6" />
      <dipvalue name="100k 400k" value="48" default="yes" />
      <dipvalue name="200k 600k" value="32" />
      <dipvalue name="400k 800k" value="16" />
      <dipvalue name="600k" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Easy" value="64" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="SW 0 Read From" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Port $0D" value="128" default="yes" />
      <dipvalue name="Port $10" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="thetogyu" sourcefile="system1.cpp" cloneof="bullfgt" romof="bullfgt">
    <description>The Togyu (315-5065, Japan)</description>
    <year>1984</year>
    <manufacturer>Coreland / Sega</manufacturer>
    <rom name="epr-6071.116" size="16384" crc="96b57df9" sha1="bfce24bf570961d3cfb449078e23e546fad7229e" region="maincpu" offset="0" />
    <rom name="epr-6072.109" size="16384" crc="f7baadd0" sha1="45a05b72561d47e4ac5475509fe2b57d870c89cd" region="maincpu" offset="4000" />
    <rom name="epr-6073.96" size="16384" crc="721af166" sha1="0b345715227e70fa6857f5967f0c7da9577f8887" region="maincpu" offset="8000" />
    <rom name="epr-6077.120" merge="epr-6077.120" size="8192" crc="02a37602" sha1="1b67b0d80a228f7faf054bfd79aff120d92c8166" region="soundcpu" offset="0" />
    <rom name="epr-6089.62" size="8192" crc="a183e5ff" sha1="bb710377a8e88f530b669141ab46abd867c6cb83" region="tiles" offset="0" />
    <rom name="epr-6088.61" size="8192" crc="b919b4a6" sha1="ca11a96bee2e2059552ac6cce6f8dead1965ef4b" region="tiles" offset="2000" />
    <rom name="epr-6087.64" merge="epr-6087.81" size="8192" crc="2677742c" sha1="6a6154f1c2cc53b9d224fc73bab47e6deb7c505f" region="tiles" offset="4000" />
    <rom name="epr-6086.63" size="8192" crc="76b5a084" sha1="32fd23f0d6fc8f5c3b5aae9a20907191a6d70611" region="tiles" offset="6000" />
    <rom name="epr-6085.66" merge="epr-6085.80" size="8192" crc="9c3ddc62" sha1="3332824de114836760a40133fb65d8f40474bc81" region="tiles" offset="8000" />
    <rom name="epr-6084.65" size="8192" crc="90e1fa5f" sha1="e37a7f872229a93a70e42615e6452aa608d53a93" region="tiles" offset="a000" />
    <rom name="epr-6069.117" merge="epr-6069.86" size="16384" crc="fe691e41" sha1="90faf26685202e2a25bb3024750456014d0722b3" region="sprites" offset="0" />
    <rom name="epr-6070.110" merge="epr-6070.93" size="16384" crc="34f080df" sha1="0e7d28e3325c8c3f06438fde29ea0ffe57fc325f" region="sprites" offset="4000" />
    <rom name="pr-5317.76" merge="pr-5317.106" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="sega_315_5065" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <device_ref name="z80pio" />
    <chip type="cpu" tag="maincpu" name="Sega 315-5065" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="8" />
      <dipvalue name="5" value="4" />
      <dipvalue name="Infinite" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="48">
      <diplocation name="SWB" number="5" />
      <diplocation name="SWB" number="6" />
      <dipvalue name="30000" value="48" default="yes" />
      <dipvalue name="50000" value="32" />
      <dipvalue name="70000" value="16" />
      <dipvalue name="None" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="SW 0 Read From" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Port $0D" value="128" default="yes" />
      <dipvalue name="Port $10" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="tokisens" sourcefile="system1.cpp">
    <description>Toki no Senshi - Chrono Soldier (MC-8123, 317-0040)</description>
    <year>1987</year>
    <manufacturer>Sega</manufacturer>
    <rom name="epr-10961.ic90" size="32768" crc="5c71c203" sha1="65c3730d2255be5e09fda2f8eae1c7f3d245ce9b" region="maincpu" offset="0" />
    <rom name="epr-10962.ic91" size="32768" crc="db9080e3" sha1="591b1bd4ab694f45d472bb50483dadb980cd2f86" region="maincpu" offset="10000" />
    <rom name="epr-10963.ic92" size="32768" crc="d17ad93f" sha1="870dbd3558a4c3a47f36d3d3c0c71c647baacf10" region="maincpu" offset="18000" />
    <rom name="317-0040.key" size="8192" crc="e2b67fd6" sha1="4fcf457279dac317ccf700591cfaa9a4cff81b4a" region="maincpu:key" offset="0" />
    <rom name="epr-10967.ic126" size="32768" crc="97966bf2" sha1="b5a3d36afbb3d6e2e2e2c121609a30dc080ccf13" region="soundcpu" offset="0" />
    <rom name="epr-10964.ic4" size="32768" crc="25af5c93" sha1="da6e6244b14c9ad51cee012bf46d591928d13050" region="tiles" offset="0" />
    <rom name="epr-10965.ic5" size="32768" crc="cc8eb99a" sha1="b66c2a786a3401021a05740f36103cf8e6129a85" region="tiles" offset="8000" />
    <rom name="epr-10966.ic6" size="32768" crc="7ecf2459" sha1="2dc6c4295d0e6f18efd26f8e15e0f31cf0a6820e" region="tiles" offset="10000" />
    <rom name="epr-10958.ic87" size="32768" crc="bb62dbc8" sha1="f48aa1b38077d801521afe6cd43f1463a22b9431" region="sprites" offset="0" />
    <rom name="epr-10957.ic86" size="32768" crc="4ec56860" sha1="9fd6ba8a68b4cb98183e8ac8643656c251f1c72d" region="sprites" offset="8000" />
    <rom name="epr-10960.ic89" size="32768" crc="880e0d44" sha1="2b2dc144807d1d048ffe81bfd33a77ccf618dd3e" region="sprites" offset="10000" />
    <rom name="epr-10959.ic88" size="32768" crc="4deda48f" sha1="12db2a69286f22cd8243be6faa9a075fafec1dfd" region="sprites" offset="18000" />
    <rom name="pr10956.ic20" size="256" crc="fd1bba8a" sha1="4a38239d89f70291df71976b18be49fb24f071ca" region="color_proms" offset="0" />
    <rom name="pr10955.ic14" size="256" crc="72b35df7" sha1="ef782fb7012c359ed7ca8f4ab42734c4994e473a" region="color_proms" offset="100" />
    <rom name="pr10954.ic8" size="256" crc="b7984867" sha1="8a03cc98c33e4defe880d10a02a5d0108fa0c9da" region="color_proms" offset="200" />
    <rom name="pr-5317.ic28" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="mc8123" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <chip type="cpu" tag="maincpu" name="MC-8123" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="90" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Cabinet" tag="SWA" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWA" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWA" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="1" value="0" />
      <dipvalue name="2" value="8" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="4" />
    </dipswitch>
    <dipswitch name="Unknown" tag="SWA" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="SWA" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="SWA" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="SWA" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="SWB" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWB" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="tokisensa" sourcefile="system1.cpp" cloneof="tokisens" romof="tokisens">
    <description>Toki no Senshi - Chrono Soldier (prototype?)</description>
    <year>1987</year>
    <manufacturer>Sega</manufacturer>
    <rom name="ic90" size="32768" crc="1466b61d" sha1="99f93813834d3a7c9f6228076d400f74d9b6dea9" region="maincpu" offset="0" />
    <rom name="ic91" size="32768" crc="a8479f91" sha1="0700746fb481fd2bd22ae82c9881aa61222a6379" region="maincpu" offset="10000" />
    <rom name="ic92" size="32768" crc="b7193b39" sha1="d40fb8591b1ff83f3d56b955ac11a07496a0adbb" region="maincpu" offset="18000" />
    <rom name="epr-10967.ic126" merge="epr-10967.ic126" size="32768" crc="97966bf2" sha1="b5a3d36afbb3d6e2e2e2c121609a30dc080ccf13" region="soundcpu" offset="0" />
    <rom name="ic4" size="32768" crc="9013b85c" sha1="c27322245052ffc9d840fe683ed35965c61bf9e8" region="tiles" offset="0" />
    <rom name="ic5" size="32768" crc="e4755cc6" sha1="33370d556a70e19edce5e0c7fa8b11453ccbe91b" region="tiles" offset="8000" />
    <rom name="ic6" size="32768" crc="5bbfbdcc" sha1="e7e679da874a79dfdda0be58d1352c192635296d" region="tiles" offset="10000" />
    <rom name="ic87" size="32768" crc="fc2bcbd7" sha1="6b9007f2057e4c860ecae4ba5db4e02b8aaae8fd" region="sprites" offset="0" />
    <rom name="epr-10957.ic86" merge="epr-10957.ic86" size="32768" crc="4ec56860" sha1="9fd6ba8a68b4cb98183e8ac8643656c251f1c72d" region="sprites" offset="8000" />
    <rom name="epr-10960.ic89" merge="epr-10960.ic89" size="32768" crc="880e0d44" sha1="2b2dc144807d1d048ffe81bfd33a77ccf618dd3e" region="sprites" offset="10000" />
    <rom name="epr-10959.ic88" merge="epr-10959.ic88" size="32768" crc="4deda48f" sha1="12db2a69286f22cd8243be6faa9a075fafec1dfd" region="sprites" offset="18000" />
    <rom name="ic20" size="256" crc="8eee0f72" sha1="b5694c120f604a5f7cc95618a71ab16a1a6151ed" region="color_proms" offset="0" />
    <rom name="ic14" size="256" crc="3e7babd7" sha1="d4f8790db4dce75e27156a4c6de2dcef2baf6d76" region="color_proms" offset="100" />
    <rom name="ic8" size="256" crc="371c44a6" sha1="ac37458d1feb6566b09a795b20c21953d4ab109d" region="color_proms" offset="200" />
    <rom name="pr-5317.ic28" merge="pr-5317.ic28" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="z80" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <chip type="cpu" tag="maincpu" name="Zilog Z80" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="90" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Cabinet" tag="SWA" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWA" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWA" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="1" value="0" />
      <dipvalue name="2" value="8" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="4" />
    </dipswitch>
    <dipswitch name="Unknown" tag="SWA" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="SWA" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="SWA" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="SWA" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="SWB" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWB" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="ufosensi" sourcefile="system1.cpp">
    <description>Ufo Senshi Yohko Chan (MC-8123, 317-0064)</description>
    <year>1988</year>
    <manufacturer>Sega</manufacturer>
    <rom name="epr-11661.90" size="32768" crc="f3e394e2" sha1="a295a2aa80a164a548995822c46f32fd9fad7a0b" region="maincpu" offset="0" />
    <rom name="epr-11662.91" size="32768" crc="0c2e4120" sha1="d81fbefa95868e3efd29ef3bacf108329781ca17" region="maincpu" offset="10000" />
    <rom name="epr-11663.92" size="32768" crc="4515ebae" sha1="9b823f10999746292762c2f0a1ca9039efa22506" region="maincpu" offset="18000" />
    <rom name="317-0064.key" size="8192" crc="da326f36" sha1="0871b351379a094ac578e0eca5cb17797f9085aa" region="maincpu:key" offset="0" />
    <rom name="epr-11667.126" size="32768" crc="110baba9" sha1="e14cf5af11ac9691eca897bbae7c238665cd2a4d" region="soundcpu" offset="0" />
    <rom name="epr-11664.4" size="32768" crc="1b1bc3d5" sha1="2a09e0dbe2d467c151dce705f249367df849eaeb" region="tiles" offset="0" />
    <rom name="epr-11665.5" size="32768" crc="3659174a" sha1="176d2436abb45827a8d387241082854f55dc0314" region="tiles" offset="8000" />
    <rom name="epr-11666.6" size="32768" crc="99dcc793" sha1="ad1d0acb60e7c1a7016955e142ebca1cf07b4908" region="tiles" offset="10000" />
    <rom name="epr-11658.87" size="32768" crc="3b5a20f7" sha1="03e0934b0913c3a2cadf1d28b8a700d70b80fbac" region="sprites" offset="0" />
    <rom name="epr-11657.86" size="32768" crc="010f81a9" sha1="1b7ee05c80edfa403e32c216fa69387ca556895e" region="sprites" offset="8000" />
    <rom name="epr-11660.89" size="32768" crc="e1e2e7c5" sha1="434039a70049a6e74e2a2f48b60345f720e6b1af" region="sprites" offset="10000" />
    <rom name="epr-11659.88" size="32768" crc="286c7286" sha1="449a19ea9a9f9df47005e8dac1b8eacaebc515e7" region="sprites" offset="18000" />
    <rom name="pr11656.20" size="256" crc="640740eb" sha1="9a601a3665f612d00c70019d33c7abd3cca9434b" region="color_proms" offset="0" />
    <rom name="pr11655.14" size="256" crc="a0c3fa77" sha1="cdffa1de06d30ec421323145dfc3271803fc25d4" region="color_proms" offset="100" />
    <rom name="pr11654.8" size="256" crc="ba624305" sha1="eb1d0dde60f81ff510ac8c1212e0ed5703febaf3" region="color_proms" offset="200" />
    <rom name="pr5317.28" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="mc8123" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <chip type="cpu" tag="maincpu" name="MC-8123" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Difficulty" tag="SWA" mask="3">
      <diplocation name="SWB" number="1" />
      <diplocation name="SWB" number="2" />
      <dipvalue name="Easy" value="0" />
      <dipvalue name="Normal" value="1" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Hardest" value="3" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWA" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="4" />
      <dipvalue name="5" value="0" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWA" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="16" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="SWA" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="No" value="32" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Unknown" tag="SWA" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Off" value="64" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Invulnerability" tag="SWA" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="SWB" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWB" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="ufosensib" sourcefile="system1.cpp" cloneof="ufosensi" romof="ufosensi">
    <description>Ufo Senshi Yohko Chan (bootleg, not encrypted)</description>
    <year>1988</year>
    <manufacturer>bootleg</manufacturer>
    <rom name="k108.ic18.3-4s" size="65536" crc="6b1d0955" sha1="dbda145d40eaecd30c1d55a9675c58a2967c20c4" region="maincpu" offset="20000" />
    <rom name="k109.ic19.4s" size="65536" crc="fc543b26" sha1="b9e1d2ca6f9811bf341edf104fe209dbf56e4b2d" region="maincpu" offset="30000" />
    <rom name="k110.ic20.4-5s" size="65536" crc="6ba2dc77" sha1="09a65f55988ae28e285d402af9a2a1f1dc05a82c" region="maincpu" offset="38000" />
    <rom name="epr-11667.126" merge="epr-11667.126" size="32768" crc="110baba9" sha1="e14cf5af11ac9691eca897bbae7c238665cd2a4d" region="soundcpu" offset="0" />
    <rom name="epr-11664.4" merge="epr-11664.4" size="32768" crc="1b1bc3d5" sha1="2a09e0dbe2d467c151dce705f249367df849eaeb" region="tiles" offset="0" />
    <rom name="epr-11665.5" merge="epr-11665.5" size="32768" crc="3659174a" sha1="176d2436abb45827a8d387241082854f55dc0314" region="tiles" offset="8000" />
    <rom name="epr-11666.6" merge="epr-11666.6" size="32768" crc="99dcc793" sha1="ad1d0acb60e7c1a7016955e142ebca1cf07b4908" region="tiles" offset="10000" />
    <rom name="epr-11658.87" merge="epr-11658.87" size="32768" crc="3b5a20f7" sha1="03e0934b0913c3a2cadf1d28b8a700d70b80fbac" region="sprites" offset="0" />
    <rom name="epr-11657.86" merge="epr-11657.86" size="32768" crc="010f81a9" sha1="1b7ee05c80edfa403e32c216fa69387ca556895e" region="sprites" offset="8000" />
    <rom name="epr-11660.89" merge="epr-11660.89" size="32768" crc="e1e2e7c5" sha1="434039a70049a6e74e2a2f48b60345f720e6b1af" region="sprites" offset="10000" />
    <rom name="epr-11659.88" merge="epr-11659.88" size="32768" crc="286c7286" sha1="449a19ea9a9f9df47005e8dac1b8eacaebc515e7" region="sprites" offset="18000" />
    <rom name="pr11656.20" merge="pr11656.20" size="256" crc="640740eb" sha1="9a601a3665f612d00c70019d33c7abd3cca9434b" region="color_proms" offset="0" />
    <rom name="pr11655.14" merge="pr11655.14" size="256" crc="a0c3fa77" sha1="cdffa1de06d30ec421323145dfc3271803fc25d4" region="color_proms" offset="100" />
    <rom name="pr11654.8" merge="pr11654.8" size="256" crc="ba624305" sha1="eb1d0dde60f81ff510ac8c1212e0ed5703febaf3" region="color_proms" offset="200" />
    <rom name="pr5317.28" merge="pr5317.28" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <rom name="pal6l8.ic3.1c" size="260" status="nodump" region="plds" offset="0" />
    <rom name="pal6l8.ic32.2c" size="260" status="nodump" region="plds" offset="200" />
    <rom name="pal6l8.ic33.2d" size="260" status="nodump" region="plds" offset="400" />
    <rom name="pal6l8.ic4.1d" size="260" status="nodump" region="plds" offset="600" />
    <rom name="pal6r4.1" size="260" status="nodump" region="plds" offset="800" />
    <rom name="pal6r4.2" size="260" status="nodump" region="plds" offset="a00" />
    <rom name="pal6r4.ic34.2f" size="260" status="nodump" region="plds" offset="c00" />
    <rom name="pal6r4.ic5.1f" size="260" status="nodump" region="plds" offset="e00" />
    <rom name="pal20r4.ic69.4c" size="324" status="nodump" region="plds" offset="1000" />
    <device_ref name="z80" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <chip type="cpu" tag="maincpu" name="Zilog Z80" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Difficulty" tag="SWA" mask="3">
      <diplocation name="SWB" number="1" />
      <diplocation name="SWB" number="2" />
      <dipvalue name="Easy" value="0" />
      <dipvalue name="Normal" value="1" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Hardest" value="3" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWA" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="4" />
      <dipvalue name="5" value="0" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWA" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="16" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="SWA" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="No" value="32" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Unknown" tag="SWA" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Off" value="64" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Invulnerability" tag="SWA" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="SWB" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWB" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="upndown" sourcefile="system1.cpp">
    <description>Up'n Down (315-5030)</description>
    <year>1983</year>
    <manufacturer>Sega</manufacturer>
    <rom name="epr5516a.129" size="8192" crc="038c82da" sha1="b7f403068ed9f97a4b960fb8863615892bb770ed" region="maincpu" offset="0" />
    <rom name="epr5517a.130" size="8192" crc="6930e1de" sha1="8a5564c76e1fd20c8e5d95e5f538980e13c41744" region="maincpu" offset="2000" />
    <rom name="epr-5518.131" size="8192" crc="2a370c99" sha1="3d1b2f1cf0d5d2d6369a33e5b3b460a3113d6a3e" region="maincpu" offset="4000" />
    <rom name="epr-5519.132" size="8192" crc="9d664a58" sha1="84f2d012dac63e8d0de3935a76f5202539423a74" region="maincpu" offset="6000" />
    <rom name="epr-5520.133" size="8192" crc="208dfbdf" sha1="eff0c91ce6c2c1f6e191bcbf9ae83dd377cbb408" region="maincpu" offset="8000" />
    <rom name="epr-5521.134" size="8192" crc="e7b8d87a" sha1="3419318bf6d87b902433bfe3b92baf5e5bad7df3" region="maincpu" offset="a000" />
    <rom name="epr-5535.3" size="8192" crc="cf4e4c45" sha1="d14a204a9966d37f4b9f3ea4c1d371c9d04e750a" region="soundcpu" offset="0" />
    <rom name="epr-5527.82" size="8192" crc="b2d616f1" sha1="c079136a5d73e1d55ddbad6efb5e7067d0ff412b" region="tiles" offset="0" />
    <rom name="epr-5526.65" size="8192" crc="8a8b33c2" sha1="db796d5c4ab3f749287133eaf05818f89dc2afb7" region="tiles" offset="2000" />
    <rom name="epr-5525.81" size="8192" crc="e749c5ef" sha1="2022cbd42ff0177cdd661bb00b1004459b6af83a" region="tiles" offset="4000" />
    <rom name="epr-5524.64" size="8192" crc="8b886952" sha1="6a9c909d10ccb03a8af6fa9d8067946d60b91592" region="tiles" offset="6000" />
    <rom name="epr-5523.80" size="8192" crc="dede35d9" sha1="6c47fa433e16ccc3fff9347a4fe8f0165d20a3d2" region="tiles" offset="8000" />
    <rom name="epr-5522.63" size="8192" crc="5e6d9dff" sha1="4f18274f5dc349b99b3daec517ccf5ccbb932d1c" region="tiles" offset="a000" />
    <rom name="epr-5514.86" size="16384" crc="fcc0a88b" sha1="ca7db3df10deb6720096e6c50eddd9b74c47f0a0" region="sprites" offset="0" />
    <rom name="epr-5515.93" size="16384" crc="60908838" sha1="aedff8ce07ab16942037e5aff212652e51c19e71" region="sprites" offset="4000" />
    <rom name="pr-5317.106" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="sega_315_5098" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <chip type="cpu" tag="maincpu" name="Sega 315-5098" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="270" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="1" ways="8" />
      <control type="joy" player="2" buttons="1" ways="8" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="6">
      <diplocation name="SWB" number="2" />
      <diplocation name="SWB" number="3" />
      <dipvalue name="3" value="6" default="yes" />
      <dipvalue name="4" value="4" />
      <dipvalue name="5" value="2" />
      <dipvalue name="Infinite" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="56">
      <diplocation name="SWB" number="4" />
      <diplocation name="SWB" number="5" />
      <diplocation name="SWB" number="6" />
      <dipvalue name="10000" value="56" default="yes" />
      <dipvalue name="20000" value="48" />
      <dipvalue name="30000" value="40" />
      <dipvalue name="40000" value="32" />
      <dipvalue name="50000" value="24" />
      <dipvalue name="60000" value="16" />
      <dipvalue name="70000" value="8" />
      <dipvalue name="None" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWB" mask="192">
      <diplocation name="SWB" number="7" />
      <diplocation name="SWB" number="8" />
      <dipvalue name="Easy" value="192" default="yes" />
      <dipvalue name="Medium" value="128" />
      <dipvalue name="Hard" value="64" />
      <dipvalue name="Hardest" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="upndownu" sourcefile="system1.cpp" cloneof="upndown" romof="upndown">
    <description>Up'n Down (not encrypted)</description>
    <year>1983</year>
    <manufacturer>Sega</manufacturer>
    <rom name="epr-5679.129" size="8192" crc="c4f2f9c2" sha1="7904ffb46a2c3ef69b9784f343ff37d81bbee11d" region="maincpu" offset="0" />
    <rom name="epr-5680.130" size="8192" crc="837f021c" sha1="14cc846f03b71e0922689388a6757955cfd88bd8" region="maincpu" offset="2000" />
    <rom name="epr-5681.131" size="8192" crc="e1c7ff7e" sha1="440dc8c18183612c32486c617f5d7f38fd804f0e" region="maincpu" offset="4000" />
    <rom name="epr-5682.132" size="8192" crc="4a5edc1e" sha1="71f06d1c4a580fed07ad32c6d1f2d37d47ed95b1" region="maincpu" offset="6000" />
    <rom name="epr-5520.133" merge="epr-5520.133" size="8192" crc="208dfbdf" sha1="eff0c91ce6c2c1f6e191bcbf9ae83dd377cbb408" region="maincpu" offset="8000" />
    <rom name="epr-5684.133" size="8192" crc="32fa95da" sha1="ebe87d28dde6b8356d40572e9f2cd35ec240075f" region="maincpu" offset="a000" />
    <rom name="epr-5528.3" size="8192" crc="00cd44ab" sha1="7f5385aa0773681329a4759b0fa6f975e3de6755" region="soundcpu" offset="0" />
    <rom name="epr-5527.82" merge="epr-5527.82" size="8192" crc="b2d616f1" sha1="c079136a5d73e1d55ddbad6efb5e7067d0ff412b" region="tiles" offset="0" />
    <rom name="epr-5526.65" merge="epr-5526.65" size="8192" crc="8a8b33c2" sha1="db796d5c4ab3f749287133eaf05818f89dc2afb7" region="tiles" offset="2000" />
    <rom name="epr-5525.81" merge="epr-5525.81" size="8192" crc="e749c5ef" sha1="2022cbd42ff0177cdd661bb00b1004459b6af83a" region="tiles" offset="4000" />
    <rom name="epr-5524.64" merge="epr-5524.64" size="8192" crc="8b886952" sha1="6a9c909d10ccb03a8af6fa9d8067946d60b91592" region="tiles" offset="6000" />
    <rom name="epr-5523.80" merge="epr-5523.80" size="8192" crc="dede35d9" sha1="6c47fa433e16ccc3fff9347a4fe8f0165d20a3d2" region="tiles" offset="8000" />
    <rom name="epr-5522.63" merge="epr-5522.63" size="8192" crc="5e6d9dff" sha1="4f18274f5dc349b99b3daec517ccf5ccbb932d1c" region="tiles" offset="a000" />
    <rom name="epr-5514.86" merge="epr-5514.86" size="16384" crc="fcc0a88b" sha1="ca7db3df10deb6720096e6c50eddd9b74c47f0a0" region="sprites" offset="0" />
    <rom name="epr-5515.93" merge="epr-5515.93" size="16384" crc="60908838" sha1="aedff8ce07ab16942037e5aff212652e51c19e71" region="sprites" offset="4000" />
    <rom name="pr-5317.106" merge="pr-5317.106" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="z80" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <chip type="cpu" tag="maincpu" name="Zilog Z80" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="270" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="1" ways="8" />
      <control type="joy" player="2" buttons="1" ways="8" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="6">
      <diplocation name="SWB" number="2" />
      <diplocation name="SWB" number="3" />
      <dipvalue name="3" value="6" default="yes" />
      <dipvalue name="4" value="4" />
      <dipvalue name="5" value="2" />
      <dipvalue name="Infinite" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="56">
      <diplocation name="SWB" number="4" />
      <diplocation name="SWB" number="5" />
      <diplocation name="SWB" number="6" />
      <dipvalue name="10000" value="56" default="yes" />
      <dipvalue name="20000" value="48" />
      <dipvalue name="30000" value="40" />
      <dipvalue name="40000" value="32" />
      <dipvalue name="50000" value="24" />
      <dipvalue name="60000" value="16" />
      <dipvalue name="70000" value="8" />
      <dipvalue name="None" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWB" mask="192">
      <diplocation name="SWB" number="7" />
      <diplocation name="SWB" number="8" />
      <dipvalue name="Easy" value="192" default="yes" />
      <dipvalue name="Medium" value="128" />
      <dipvalue name="Hard" value="64" />
      <dipvalue name="Hardest" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="wbdeluxe" sourcefile="system1.cpp" cloneof="wboy" romof="wboy">
    <description>Wonder Boy Deluxe</description>
    <year>1986</year>
    <manufacturer>hack (Vision Electronics)</manufacturer>
    <rom name="wbd1.bin" size="8192" crc="a1bedbd7" sha1="32d171847ca02b01a7ac810cac3185c81c923285" region="maincpu" offset="0" />
    <rom name="ic130_03.bin" size="8192" crc="56463ede" sha1="c58c220aa0d0e194581646e6db2491075fdc37b9" region="maincpu" offset="2000" />
    <rom name="wbd3.bin" size="8192" crc="6fcdbd4c" sha1="4fb9a916c99bf267c0035cb80b16400732991f83" region="maincpu" offset="4000" />
    <rom name="ic132_05.bin" size="8192" crc="7b922708" sha1="c2e1f67b756f558d6904fe82d6f5483cda5f9045" region="maincpu" offset="6000" />
    <rom name="wbd5.bin" size="8192" crc="f6b02902" sha1="9a43b84d9537d70e9c0d75010a824bcaec57a50c" region="maincpu" offset="8000" />
    <rom name="wbd6.bin" size="8192" crc="43df21fe" sha1="c1b88505942f48b0df2362bbb618689febe00d1f" region="maincpu" offset="a000" />
    <rom name="epr7498a.3" size="8192" crc="c198205c" sha1="d2d5cd154ce6a5a3c6a099b4ab2ea7cc045ab0a1" region="soundcpu" offset="0" />
    <rom name="epr-7497.62" merge="epr-7497.62" size="8192" crc="08d609ca" sha1="11799e9ef7e6942b304f132b404bff3ed44d524b" region="tiles" offset="0" />
    <rom name="epr-7496.61" merge="epr-7496.61" size="8192" crc="6f61fdf1" sha1="21826aebf5835b9f3d9c467c8647809c1bc0d01f" region="tiles" offset="2000" />
    <rom name="epr-7495.64" merge="epr-7495.64" size="8192" crc="6a0d2c2d" sha1="8c21d7f0768e8dda2b7185f3c510cae4229a4a2e" region="tiles" offset="4000" />
    <rom name="epr-7494.63" merge="epr-7494.63" size="8192" crc="a8e281c7" sha1="a88b80a7b94ab1401bbf28d7707fdf28a5505127" region="tiles" offset="6000" />
    <rom name="epr-7493.66" merge="epr-7493.66" size="8192" crc="89305df4" sha1="7a5098624769a31e7512f56831e818bce6a18871" region="tiles" offset="8000" />
    <rom name="epr-7492.65" merge="epr-7492.65" size="8192" crc="60f806b1" sha1="f91e5868a455dff2bce3c2891a7cfd648957cd73" region="tiles" offset="a000" />
    <rom name="epr-7485.117" merge="epr-7485.117" size="16384" crc="c2891722" sha1="e4e11c0e9bd0dc121c25349493f2b13d2ff8c807" region="sprites" offset="0" />
    <rom name="epr-7487.04" merge="epr-7487.04" size="16384" crc="2d3a421b" sha1="d70440a8703ccface3212cd9544c950b36263e8c" region="sprites" offset="4000" />
    <rom name="epr-7486.110" merge="epr-7486.110" size="16384" crc="8d622c50" sha1="9a76a50204c618347d3e8eee6cda841becd906eb" region="sprites" offset="8000" />
    <rom name="epr-7488.05" merge="epr-7488.05" size="16384" crc="007c2f1b" sha1="c2f1376144a49d20cb35384648e06d06978474c1" region="sprites" offset="c000" />
    <rom name="pr-5317.106" merge="pr-5317.76" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="z80" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <chip type="cpu" tag="maincpu" name="Zilog Z80" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="2" />
      <control type="joy" player="2" buttons="2" ways="2" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="8" />
      <dipvalue name="5" value="4" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="30k 100k 170k 240k" value="16" />
      <dipvalue name="30k 120k 210k 300k" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="SWB" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="32" default="yes" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Easy" value="64" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="Energy Consumption" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Slow" value="0" default="yes" />
      <dipvalue name="Fast" value="128" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="wbml" sourcefile="system1.cpp">
    <description>Wonder Boy in Monster Land (Japan New Ver., MC-8123, 317-0043)</description>
    <year>1987</year>
    <manufacturer>Sega / Westone</manufacturer>
    <rom name="epr-11031a.90" size="32768" crc="bd3349e5" sha1="65cc16e5d3b08429388946df254b8122ad1da339" region="maincpu" offset="0" />
    <rom name="epr-11032.91" size="32768" crc="9d03bdb2" sha1="7dbab23e7c7972d9b51a0d3d046374720b7d6af5" region="maincpu" offset="10000" />
    <rom name="epr-11033.92" size="32768" crc="7076905c" sha1="562fbd9bd60851f7e4e60b725193395b4f193479" region="maincpu" offset="18000" />
    <rom name="317-0043.key" size="8192" crc="e354abfc" sha1="07b0d3c51301ebb25909234b6220a3ed20dbcc7d" region="maincpu:key" offset="0" />
    <rom name="epr-11037.126" size="32768" crc="7a4ee585" sha1="050436106cced5dcbf40a3d94d48202eedddc3ad" region="soundcpu" offset="0" />
    <rom name="epr-11034.4" size="32768" crc="37a2077d" sha1="57f032a98022bf03ff98cb2e563178ba97e4b63c" region="tiles" offset="0" />
    <rom name="epr-11035.5" size="32768" crc="cdf2a21b" sha1="db2553866f21e03bd9d668c179be3352adbaf8a6" region="tiles" offset="8000" />
    <rom name="epr-11036.6" size="32768" crc="644687fa" sha1="d6c5bc95da4fc7e81091dcfe6205b6f47d54af76" region="tiles" offset="10000" />
    <rom name="epr-11028.87" size="32768" crc="af0b3972" sha1="413825f66b84c7e45aa1855131482abead8f7f3b" region="sprites" offset="0" />
    <rom name="epr-11027.86" size="32768" crc="277d8f1d" sha1="7854673503ed03d276abe971805a11f8c992f6d6" region="sprites" offset="8000" />
    <rom name="epr-11030.89" size="32768" crc="f05ffc76" sha1="f3dbb518240f86430840c3d4cda04bac79c20f69" region="sprites" offset="10000" />
    <rom name="epr-11029.88" size="32768" crc="cedc9c61" sha1="dbe5744f9b6f2a406b52b910dd4e133db7bce6b2" region="sprites" offset="18000" />
    <rom name="pr11026.20" size="256" crc="27057298" sha1="654be7abb937bb0720263ee6512e31194662effe" region="color_proms" offset="0" />
    <rom name="pr11025.14" size="256" crc="41e4d86b" sha1="a86e8bb0a465d01b04410edfbb82eb96f12b909f" region="color_proms" offset="100" />
    <rom name="pr11024.8" size="256" crc="08d71954" sha1="df045dbfb3d669e4d42fbdba1e7191cd046f7b47" region="color_proms" offset="200" />
    <rom name="pr5317.37" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="mc8123" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <chip type="cpu" tag="maincpu" name="MC-8123" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Cabinet" tag="SWA" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWA" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWA" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="4" />
      <dipvalue name="4" value="12" default="yes" />
      <dipvalue name="5" value="8" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWA" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="30000 100000 200000" value="16" default="yes" />
      <dipvalue name="50000 150000 250000" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWA" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="Easy" value="32" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="Test Mode" tag="SWA" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWA" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="SWB" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWB" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="wbmlb" sourcefile="system1.cpp" cloneof="wbml" romof="wbml">
    <description>Wonder Boy in Monster Land (English bootleg set 1)</description>
    <year>1987</year>
    <manufacturer>bootleg</manufacturer>
    <rom name="wbml.01" size="65536" crc="66482638" sha1="887f93015f0effa2d0fa1f1f59082f75ac072221" region="maincpu" offset="20000" />
    <rom name="wbml.02" size="65536" crc="48746bb6" sha1="a0049cba53e7548afa8d7b16a7e9494e628d2a0f" region="maincpu" offset="30000" />
    <rom name="wbml.03" size="65536" crc="d57ba8aa" sha1="16f095cb78e31af5ce76d36c20fe4c3e0d027aea" region="maincpu" offset="38000" />
    <rom name="epr-11037.126" merge="epr-11037.126" size="32768" crc="7a4ee585" sha1="050436106cced5dcbf40a3d94d48202eedddc3ad" region="soundcpu" offset="0" />
    <rom name="wbml.08" size="32768" crc="bbea6afe" sha1="ba56c6789a35eb57cd226296ebf57e9aa19ba625" region="tiles" offset="0" />
    <rom name="wbml.09" size="32768" crc="77567d41" sha1="2ac501661522615859f8a1718dbb8451272d6931" region="tiles" offset="8000" />
    <rom name="wbml.10" size="32768" crc="a52ffbdd" sha1="609375112268b770a798186697ecab5853f29f89" region="tiles" offset="10000" />
    <rom name="epr-11028.87" merge="epr-11028.87" size="32768" crc="af0b3972" sha1="413825f66b84c7e45aa1855131482abead8f7f3b" region="sprites" offset="0" />
    <rom name="epr-11027.86" merge="epr-11027.86" size="32768" crc="277d8f1d" sha1="7854673503ed03d276abe971805a11f8c992f6d6" region="sprites" offset="8000" />
    <rom name="epr-11030.89" merge="epr-11030.89" size="32768" crc="f05ffc76" sha1="f3dbb518240f86430840c3d4cda04bac79c20f69" region="sprites" offset="10000" />
    <rom name="epr-11029.88" merge="epr-11029.88" size="32768" crc="cedc9c61" sha1="dbe5744f9b6f2a406b52b910dd4e133db7bce6b2" region="sprites" offset="18000" />
    <rom name="pr11026.20" merge="pr11026.20" size="256" crc="27057298" sha1="654be7abb937bb0720263ee6512e31194662effe" region="color_proms" offset="0" />
    <rom name="pr11025.14" merge="pr11025.14" size="256" crc="41e4d86b" sha1="a86e8bb0a465d01b04410edfbb82eb96f12b909f" region="color_proms" offset="100" />
    <rom name="pr11024.8" merge="pr11024.8" size="256" crc="08d71954" sha1="df045dbfb3d669e4d42fbdba1e7191cd046f7b47" region="color_proms" offset="200" />
    <rom name="pr5317.37" merge="pr5317.37" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="z80" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <chip type="cpu" tag="maincpu" name="Zilog Z80" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Cabinet" tag="SWA" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWA" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWA" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="4" />
      <dipvalue name="4" value="12" default="yes" />
      <dipvalue name="5" value="8" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWA" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="30000 100000 200000" value="16" default="yes" />
      <dipvalue name="50000 150000 250000" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWA" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="Easy" value="32" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="Test Mode" tag="SWA" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWA" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="SWB" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWB" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="wbmlbg" sourcefile="system1.cpp" cloneof="wbml" romof="wbml">
    <description>Wonder Boy in Monster Land (English bootleg set 2)</description>
    <year>1987</year>
    <manufacturer>bootleg (Galaxy Electronics)</manufacturer>
    <rom name="galaxy.ic90" size="65536" crc="66482638" sha1="887f93015f0effa2d0fa1f1f59082f75ac072221" region="maincpu" offset="20000" />
    <rom name="galaxy.ic91" size="65536" crc="89a8ab93" sha1="11389604017e15aed9a8fcef60e42740acd79917" region="maincpu" offset="30000" />
    <rom name="galaxy.ic92" size="32768" crc="39e07286" sha1="70192f03e52dd34c9fe5698a5ec1c24d3c58543c" region="maincpu" offset="38000" />
    <rom name="epr-11037.126" merge="epr-11037.126" size="32768" crc="7a4ee585" sha1="050436106cced5dcbf40a3d94d48202eedddc3ad" region="soundcpu" offset="0" />
    <rom name="galaxy.ic4" size="32768" crc="ab75d056" sha1="d90d9c723536d0ec21900dc70b51715300b01fe7" region="tiles" offset="0" />
    <rom name="galaxy.ic6" size="32768" crc="6bb5e601" sha1="465d67dcde4e775d1b93640ef1a300e958cbe707" region="tiles" offset="8000" />
    <rom name="galaxy.ic5" size="32768" crc="3c11d151" sha1="7b0c6792ae919ac309a709ca0c89006487e1d6e9" region="tiles" offset="10000" />
    <rom name="epr-11028.87" merge="epr-11028.87" size="32768" crc="af0b3972" sha1="413825f66b84c7e45aa1855131482abead8f7f3b" region="sprites" offset="0" />
    <rom name="epr-11027.86" merge="epr-11027.86" size="32768" crc="277d8f1d" sha1="7854673503ed03d276abe971805a11f8c992f6d6" region="sprites" offset="8000" />
    <rom name="epr-11030.89" merge="epr-11030.89" size="32768" crc="f05ffc76" sha1="f3dbb518240f86430840c3d4cda04bac79c20f69" region="sprites" offset="10000" />
    <rom name="epr-11029.88" merge="epr-11029.88" size="32768" crc="cedc9c61" sha1="dbe5744f9b6f2a406b52b910dd4e133db7bce6b2" region="sprites" offset="18000" />
    <rom name="pr11026.20" merge="pr11026.20" size="256" crc="27057298" sha1="654be7abb937bb0720263ee6512e31194662effe" region="color_proms" offset="0" />
    <rom name="pr11025.14" merge="pr11025.14" size="256" crc="41e4d86b" sha1="a86e8bb0a465d01b04410edfbb82eb96f12b909f" region="color_proms" offset="100" />
    <rom name="pr11024.8" merge="pr11024.8" size="256" crc="08d71954" sha1="df045dbfb3d669e4d42fbdba1e7191cd046f7b47" region="color_proms" offset="200" />
    <rom name="pr5317.37" merge="pr5317.37" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="z80" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <chip type="cpu" tag="maincpu" name="Zilog Z80" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Cabinet" tag="SWA" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWA" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWA" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="4" />
      <dipvalue name="4" value="12" default="yes" />
      <dipvalue name="5" value="8" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWA" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="30000 100000 200000" value="16" default="yes" />
      <dipvalue name="50000 150000 250000" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWA" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="Easy" value="32" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="Test Mode" tag="SWA" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWA" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="SWB" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWB" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="wbmlbge" sourcefile="system1.cpp" cloneof="wbml" romof="wbml">
    <description>Wonder Boy in Monster Land (English bootleg set 3)</description>
    <year>1987</year>
    <manufacturer>bootleg (Gecas)</manufacturer>
    <rom name="3.k3" size="65536" crc="b4f90adc" sha1="23b536acc70bbf8673be193a67d0423a87e2ff4d" region="maincpu" offset="20000" />
    <rom name="2.k4" size="65536" crc="1896c19b" sha1="41d0429c65b172a5f6d0af92a5a2ae9178ceb550" region="maincpu" offset="30000" />
    <rom name="1.k4" size="65536" crc="0e827f13" sha1="8d7fb996630beec48b5471a46be30b65e3ba6d8c" region="maincpu" offset="38000" />
    <rom name="11.d9" merge="epr-11037.126" size="32768" crc="7a4ee585" sha1="050436106cced5dcbf40a3d94d48202eedddc3ad" region="soundcpu" offset="0" />
    <rom name="8.y6" size="32768" crc="ab75d056" sha1="d90d9c723536d0ec21900dc70b51715300b01fe7" region="tiles" offset="0" />
    <rom name="9.y5" size="32768" crc="6bb5e601" sha1="465d67dcde4e775d1b93640ef1a300e958cbe707" region="tiles" offset="8000" />
    <rom name="10.y5" size="32768" crc="3c11d151" sha1="7b0c6792ae919ac309a709ca0c89006487e1d6e9" region="tiles" offset="10000" />
    <rom name="5.k2" merge="epr-11028.87" size="32768" crc="af0b3972" sha1="413825f66b84c7e45aa1855131482abead8f7f3b" region="sprites" offset="0" />
    <rom name="4.k2" merge="epr-11027.86" size="32768" crc="277d8f1d" sha1="7854673503ed03d276abe971805a11f8c992f6d6" region="sprites" offset="8000" />
    <rom name="7.k1" merge="epr-11030.89" size="32768" crc="f05ffc76" sha1="f3dbb518240f86430840c3d4cda04bac79c20f69" region="sprites" offset="10000" />
    <rom name="6.k1" merge="epr-11029.88" size="32768" crc="cedc9c61" sha1="dbe5744f9b6f2a406b52b910dd4e133db7bce6b2" region="sprites" offset="18000" />
    <rom name="3.z8" merge="pr11026.20" size="256" crc="27057298" sha1="654be7abb937bb0720263ee6512e31194662effe" region="color_proms" offset="0" />
    <rom name="2.y8" merge="pr11025.14" size="256" crc="41e4d86b" sha1="a86e8bb0a465d01b04410edfbb82eb96f12b909f" region="color_proms" offset="100" />
    <rom name="1.x8" merge="pr11024.8" size="256" crc="08d71954" sha1="df045dbfb3d669e4d42fbdba1e7191cd046f7b47" region="color_proms" offset="200" />
    <rom name="pr5317.37" merge="pr5317.37" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="z80" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <chip type="cpu" tag="maincpu" name="Zilog Z80" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Cabinet" tag="SWA" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWA" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWA" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="4" />
      <dipvalue name="4" value="12" default="yes" />
      <dipvalue name="5" value="8" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWA" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="30000 100000 200000" value="16" default="yes" />
      <dipvalue name="50000 150000 250000" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWA" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="Easy" value="32" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="Test Mode" tag="SWA" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWA" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="SWB" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWB" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="wbmld" sourcefile="system1.cpp" cloneof="wbml" romof="wbml">
    <description>Wonder Boy in Monster Land (decrypted bootleg of Japan New Ver., MC-8123, 317-0043)</description>
    <year>1987</year>
    <manufacturer>bootleg (mpatou)</manufacturer>
    <rom name="decrypted_epr-11031a.90" size="32768" crc="aba42eb7" sha1="d2bb16a52404ba867930140e71f981cfa225dd21" region="maincpu" offset="0" />
    <rom name="decrypted_epr-11032.91" size="32768" crc="1b158845" sha1="26360f4bc2884746fbcc5fd6dc21fd848a3d2157" region="maincpu" offset="10000" />
    <rom name="decrypted_epr-11033.92" size="32768" crc="39e07286" sha1="70192f03e52dd34c9fe5698a5ec1c24d3c58543c" region="maincpu" offset="18000" />
    <rom name="epr-11037.126" merge="epr-11037.126" size="32768" crc="7a4ee585" sha1="050436106cced5dcbf40a3d94d48202eedddc3ad" region="soundcpu" offset="0" />
    <rom name="epr-11034.4" merge="epr-11034.4" size="32768" crc="37a2077d" sha1="57f032a98022bf03ff98cb2e563178ba97e4b63c" region="tiles" offset="0" />
    <rom name="epr-11035.5" merge="epr-11035.5" size="32768" crc="cdf2a21b" sha1="db2553866f21e03bd9d668c179be3352adbaf8a6" region="tiles" offset="8000" />
    <rom name="epr-11036.6" merge="epr-11036.6" size="32768" crc="644687fa" sha1="d6c5bc95da4fc7e81091dcfe6205b6f47d54af76" region="tiles" offset="10000" />
    <rom name="epr-11028.87" merge="epr-11028.87" size="32768" crc="af0b3972" sha1="413825f66b84c7e45aa1855131482abead8f7f3b" region="sprites" offset="0" />
    <rom name="epr-11027.86" merge="epr-11027.86" size="32768" crc="277d8f1d" sha1="7854673503ed03d276abe971805a11f8c992f6d6" region="sprites" offset="8000" />
    <rom name="epr-11030.89" merge="epr-11030.89" size="32768" crc="f05ffc76" sha1="f3dbb518240f86430840c3d4cda04bac79c20f69" region="sprites" offset="10000" />
    <rom name="epr-11029.88" merge="epr-11029.88" size="32768" crc="cedc9c61" sha1="dbe5744f9b6f2a406b52b910dd4e133db7bce6b2" region="sprites" offset="18000" />
    <rom name="pr11026.20" merge="pr11026.20" size="256" crc="27057298" sha1="654be7abb937bb0720263ee6512e31194662effe" region="color_proms" offset="0" />
    <rom name="pr11025.14" merge="pr11025.14" size="256" crc="41e4d86b" sha1="a86e8bb0a465d01b04410edfbb82eb96f12b909f" region="color_proms" offset="100" />
    <rom name="pr11024.8" merge="pr11024.8" size="256" crc="08d71954" sha1="df045dbfb3d669e4d42fbdba1e7191cd046f7b47" region="color_proms" offset="200" />
    <rom name="pr5317.37" merge="pr5317.37" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="z80" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <chip type="cpu" tag="maincpu" name="Zilog Z80" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Cabinet" tag="SWA" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWA" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWA" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="4" />
      <dipvalue name="4" value="12" default="yes" />
      <dipvalue name="5" value="8" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWA" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="30000 100000 200000" value="16" default="yes" />
      <dipvalue name="50000 150000 250000" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWA" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="Easy" value="32" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="Test Mode" tag="SWA" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWA" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="SWB" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWB" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="wbmljb" sourcefile="system1.cpp" cloneof="wbml" romof="wbml">
    <description>Wonder Boy in Monster Land (Japan bootleg)</description>
    <year>1987</year>
    <manufacturer>bootleg</manufacturer>
    <rom name="wbml.01" size="65536" crc="66482638" sha1="887f93015f0effa2d0fa1f1f59082f75ac072221" region="maincpu" offset="20000" />
    <rom name="m-6.bin" size="65536" crc="8c08cd11" sha1="5103f3c887c213b09aee858c4a883f2869b9ffb5" region="maincpu" offset="30000" />
    <rom name="m-7.bin" size="65536" crc="11881703" sha1="b5e4d477158e7653b0fef5a4806be7b4871e917d" region="maincpu" offset="38000" />
    <rom name="epr-11037.126" merge="epr-11037.126" size="32768" crc="7a4ee585" sha1="050436106cced5dcbf40a3d94d48202eedddc3ad" region="soundcpu" offset="0" />
    <rom name="epr-11034.4" merge="epr-11034.4" size="32768" crc="37a2077d" sha1="57f032a98022bf03ff98cb2e563178ba97e4b63c" region="tiles" offset="0" />
    <rom name="epr-11035.5" merge="epr-11035.5" size="32768" crc="cdf2a21b" sha1="db2553866f21e03bd9d668c179be3352adbaf8a6" region="tiles" offset="8000" />
    <rom name="epr-11036.6" merge="epr-11036.6" size="32768" crc="644687fa" sha1="d6c5bc95da4fc7e81091dcfe6205b6f47d54af76" region="tiles" offset="10000" />
    <rom name="epr-11028.87" merge="epr-11028.87" size="32768" crc="af0b3972" sha1="413825f66b84c7e45aa1855131482abead8f7f3b" region="sprites" offset="0" />
    <rom name="epr-11027.86" merge="epr-11027.86" size="32768" crc="277d8f1d" sha1="7854673503ed03d276abe971805a11f8c992f6d6" region="sprites" offset="8000" />
    <rom name="epr-11030.89" merge="epr-11030.89" size="32768" crc="f05ffc76" sha1="f3dbb518240f86430840c3d4cda04bac79c20f69" region="sprites" offset="10000" />
    <rom name="epr-11029.88" merge="epr-11029.88" size="32768" crc="cedc9c61" sha1="dbe5744f9b6f2a406b52b910dd4e133db7bce6b2" region="sprites" offset="18000" />
    <rom name="pr11026.20" merge="pr11026.20" size="256" crc="27057298" sha1="654be7abb937bb0720263ee6512e31194662effe" region="color_proms" offset="0" />
    <rom name="pr11025.14" merge="pr11025.14" size="256" crc="41e4d86b" sha1="a86e8bb0a465d01b04410edfbb82eb96f12b909f" region="color_proms" offset="100" />
    <rom name="pr11024.8" merge="pr11024.8" size="256" crc="08d71954" sha1="df045dbfb3d669e4d42fbdba1e7191cd046f7b47" region="color_proms" offset="200" />
    <rom name="pr5317.37" merge="pr5317.37" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="z80" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <chip type="cpu" tag="maincpu" name="Zilog Z80" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Cabinet" tag="SWA" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWA" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWA" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="4" />
      <dipvalue name="4" value="12" default="yes" />
      <dipvalue name="5" value="8" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWA" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="30000 100000 200000" value="16" default="yes" />
      <dipvalue name="50000 150000 250000" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWA" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="Easy" value="32" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="Test Mode" tag="SWA" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWA" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="SWB" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWB" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="wbmljo" sourcefile="system1.cpp" cloneof="wbml" romof="wbml">
    <description>Wonder Boy in Monster Land (Japan Old Ver., MC-8123, 317-0043)</description>
    <year>1987</year>
    <manufacturer>Sega / Westone</manufacturer>
    <rom name="epr-11031.90" size="32768" crc="497ebfb4" sha1="d90872c7d5285c85b05879bc67638f640e0339d5" region="maincpu" offset="0" />
    <rom name="epr-11032.91" merge="epr-11032.91" size="32768" crc="9d03bdb2" sha1="7dbab23e7c7972d9b51a0d3d046374720b7d6af5" region="maincpu" offset="10000" />
    <rom name="epr-11033.92" merge="epr-11033.92" size="32768" crc="7076905c" sha1="562fbd9bd60851f7e4e60b725193395b4f193479" region="maincpu" offset="18000" />
    <rom name="317-0043.key" merge="317-0043.key" size="8192" crc="e354abfc" sha1="07b0d3c51301ebb25909234b6220a3ed20dbcc7d" region="maincpu:key" offset="0" />
    <rom name="epr-11037.126" merge="epr-11037.126" size="32768" crc="7a4ee585" sha1="050436106cced5dcbf40a3d94d48202eedddc3ad" region="soundcpu" offset="0" />
    <rom name="epr-11034.4" merge="epr-11034.4" size="32768" crc="37a2077d" sha1="57f032a98022bf03ff98cb2e563178ba97e4b63c" region="tiles" offset="0" />
    <rom name="epr-11035.5" merge="epr-11035.5" size="32768" crc="cdf2a21b" sha1="db2553866f21e03bd9d668c179be3352adbaf8a6" region="tiles" offset="8000" />
    <rom name="epr-11036.6" merge="epr-11036.6" size="32768" crc="644687fa" sha1="d6c5bc95da4fc7e81091dcfe6205b6f47d54af76" region="tiles" offset="10000" />
    <rom name="epr-11028.87" merge="epr-11028.87" size="32768" crc="af0b3972" sha1="413825f66b84c7e45aa1855131482abead8f7f3b" region="sprites" offset="0" />
    <rom name="epr-11027.86" merge="epr-11027.86" size="32768" crc="277d8f1d" sha1="7854673503ed03d276abe971805a11f8c992f6d6" region="sprites" offset="8000" />
    <rom name="epr-11030.89" merge="epr-11030.89" size="32768" crc="f05ffc76" sha1="f3dbb518240f86430840c3d4cda04bac79c20f69" region="sprites" offset="10000" />
    <rom name="epr-11029.88" merge="epr-11029.88" size="32768" crc="cedc9c61" sha1="dbe5744f9b6f2a406b52b910dd4e133db7bce6b2" region="sprites" offset="18000" />
    <rom name="pr11026.20" merge="pr11026.20" size="256" crc="27057298" sha1="654be7abb937bb0720263ee6512e31194662effe" region="color_proms" offset="0" />
    <rom name="pr11025.14" merge="pr11025.14" size="256" crc="41e4d86b" sha1="a86e8bb0a465d01b04410edfbb82eb96f12b909f" region="color_proms" offset="100" />
    <rom name="pr11024.8" merge="pr11024.8" size="256" crc="08d71954" sha1="df045dbfb3d669e4d42fbdba1e7191cd046f7b47" region="color_proms" offset="200" />
    <rom name="pr5317.37" merge="pr5317.37" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="mc8123" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <chip type="cpu" tag="maincpu" name="MC-8123" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Cabinet" tag="SWA" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWA" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWA" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="4" />
      <dipvalue name="4" value="12" default="yes" />
      <dipvalue name="5" value="8" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWA" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="30000 100000 200000" value="16" default="yes" />
      <dipvalue name="50000 150000 250000" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWA" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="Easy" value="32" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="Test Mode" tag="SWA" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWA" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="SWB" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWB" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="wbmljod" sourcefile="system1.cpp" cloneof="wbml" romof="wbml">
    <description>Wonder Boy in Monster Land (decrypted bootleg of Japan Old Ver., MC-8123, 317-0043)</description>
    <year>1987</year>
    <manufacturer>bootleg (mpatou)</manufacturer>
    <rom name="decrypted_epr-11031.90" size="32768" crc="940b35bf" sha1="b0e3b494d17cfad3b4bb1de996931ee813e91f92" region="maincpu" offset="0" />
    <rom name="decrypted_epr-11032.91" size="32768" crc="1b158845" sha1="26360f4bc2884746fbcc5fd6dc21fd848a3d2157" region="maincpu" offset="10000" />
    <rom name="decrypted_epr-11033.92" size="32768" crc="39e07286" sha1="70192f03e52dd34c9fe5698a5ec1c24d3c58543c" region="maincpu" offset="18000" />
    <rom name="epr-11037.126" merge="epr-11037.126" size="32768" crc="7a4ee585" sha1="050436106cced5dcbf40a3d94d48202eedddc3ad" region="soundcpu" offset="0" />
    <rom name="epr-11034.4" merge="epr-11034.4" size="32768" crc="37a2077d" sha1="57f032a98022bf03ff98cb2e563178ba97e4b63c" region="tiles" offset="0" />
    <rom name="epr-11035.5" merge="epr-11035.5" size="32768" crc="cdf2a21b" sha1="db2553866f21e03bd9d668c179be3352adbaf8a6" region="tiles" offset="8000" />
    <rom name="epr-11036.6" merge="epr-11036.6" size="32768" crc="644687fa" sha1="d6c5bc95da4fc7e81091dcfe6205b6f47d54af76" region="tiles" offset="10000" />
    <rom name="epr-11028.87" merge="epr-11028.87" size="32768" crc="af0b3972" sha1="413825f66b84c7e45aa1855131482abead8f7f3b" region="sprites" offset="0" />
    <rom name="epr-11027.86" merge="epr-11027.86" size="32768" crc="277d8f1d" sha1="7854673503ed03d276abe971805a11f8c992f6d6" region="sprites" offset="8000" />
    <rom name="epr-11030.89" merge="epr-11030.89" size="32768" crc="f05ffc76" sha1="f3dbb518240f86430840c3d4cda04bac79c20f69" region="sprites" offset="10000" />
    <rom name="epr-11029.88" merge="epr-11029.88" size="32768" crc="cedc9c61" sha1="dbe5744f9b6f2a406b52b910dd4e133db7bce6b2" region="sprites" offset="18000" />
    <rom name="pr11026.20" merge="pr11026.20" size="256" crc="27057298" sha1="654be7abb937bb0720263ee6512e31194662effe" region="color_proms" offset="0" />
    <rom name="pr11025.14" merge="pr11025.14" size="256" crc="41e4d86b" sha1="a86e8bb0a465d01b04410edfbb82eb96f12b909f" region="color_proms" offset="100" />
    <rom name="pr11024.8" merge="pr11024.8" size="256" crc="08d71954" sha1="df045dbfb3d669e4d42fbdba1e7191cd046f7b47" region="color_proms" offset="200" />
    <rom name="pr5317.37" merge="pr5317.37" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="z80" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <chip type="cpu" tag="maincpu" name="Zilog Z80" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Cabinet" tag="SWA" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWA" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWA" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="4" />
      <dipvalue name="4" value="12" default="yes" />
      <dipvalue name="5" value="8" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWA" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="30000 100000 200000" value="16" default="yes" />
      <dipvalue name="50000 150000 250000" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWA" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="Easy" value="32" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="Test Mode" tag="SWA" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWA" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="SWB" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWB" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="wbmlvc" sourcefile="system1.cpp" cloneof="wbml" romof="wbml">
    <description>Wonder Boy in Monster Land (English, Virtual Console)</description>
    <year>2009</year>
    <manufacturer>Sega</manufacturer>
    <rom name="vc.ic90" size="65536" crc="093c4852" sha1="8dfbfe89c5b27b381fc54610e1e262a0e1f1ec59" region="maincpu" offset="20000" />
    <rom name="vc.ic91" size="65536" crc="7e973ece" sha1="bd98287d376c4333313432f4ddab45dae9fdcd93" region="maincpu" offset="30000" />
    <rom name="vc.ic92" size="32768" crc="32661e7e" sha1="5e06735b7dcc529b142bf6aa311d0e9f389daedd" region="maincpu" offset="38000" />
    <rom name="epr-11037.126" merge="epr-11037.126" size="32768" crc="7a4ee585" sha1="050436106cced5dcbf40a3d94d48202eedddc3ad" region="soundcpu" offset="0" />
    <rom name="vc.ic4" size="32768" crc="820bee59" sha1="47afff58387eb67a8b0849d74023bd2c176a45e9" region="tiles" offset="0" />
    <rom name="vc.ic5" size="32768" crc="a9a1447e" sha1="f7e55080c4fd6e1ff9e21a19b2f71dfd512d62c3" region="tiles" offset="8000" />
    <rom name="vc.ic6" size="32768" crc="359026a0" sha1="a20c801dbc758f172fcfc505a5083ddb76604243" region="tiles" offset="10000" />
    <rom name="epr-11028.87" merge="epr-11028.87" size="32768" crc="af0b3972" sha1="413825f66b84c7e45aa1855131482abead8f7f3b" region="sprites" offset="0" />
    <rom name="epr-11027.86" merge="epr-11027.86" size="32768" crc="277d8f1d" sha1="7854673503ed03d276abe971805a11f8c992f6d6" region="sprites" offset="8000" />
    <rom name="epr-11030.89" merge="epr-11030.89" size="32768" crc="f05ffc76" sha1="f3dbb518240f86430840c3d4cda04bac79c20f69" region="sprites" offset="10000" />
    <rom name="epr-11029.88" merge="epr-11029.88" size="32768" crc="cedc9c61" sha1="dbe5744f9b6f2a406b52b910dd4e133db7bce6b2" region="sprites" offset="18000" />
    <rom name="pr11026.20" merge="pr11026.20" size="256" crc="27057298" sha1="654be7abb937bb0720263ee6512e31194662effe" region="color_proms" offset="0" />
    <rom name="pr11025.14" merge="pr11025.14" size="256" crc="41e4d86b" sha1="a86e8bb0a465d01b04410edfbb82eb96f12b909f" region="color_proms" offset="100" />
    <rom name="pr11024.8" merge="pr11024.8" size="256" crc="08d71954" sha1="df045dbfb3d669e4d42fbdba1e7191cd046f7b47" region="color_proms" offset="200" />
    <rom name="pr5317.37" merge="pr5317.37" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="z80" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <chip type="cpu" tag="maincpu" name="Zilog Z80" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Cabinet" tag="SWA" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWA" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWA" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="4" />
      <dipvalue name="4" value="12" default="yes" />
      <dipvalue name="5" value="8" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWA" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="30000 100000 200000" value="16" default="yes" />
      <dipvalue name="50000 150000 250000" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWA" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="Easy" value="32" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="Test Mode" tag="SWA" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWA" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="SWB" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWB" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="wbmlvcd" sourcefile="system1.cpp" cloneof="wbml" romof="wbml">
    <description>Wonder Boy in Monster Land (decrypted bootleg of English, Virtual Console release)</description>
    <year>2009</year>
    <manufacturer>bootleg (mpatou)</manufacturer>
    <rom name="wbmlvcd.ic90" size="32768" crc="f9c04c07" sha1="736013b01451c38f7ede207f3154c7387e60ac29" region="maincpu" offset="0" />
    <rom name="wbmlvcd.ic91" size="32768" crc="87167a57" sha1="853e029e2875a2250471f3f405c906c9b5a4829d" region="maincpu" offset="10000" />
    <rom name="wbmlvcd.ic92" size="32768" crc="ffb69e82" sha1="0d48ce1e3cc02a992c495a92fec4e2d03fc27193" region="maincpu" offset="18000" />
    <rom name="epr-11037.126" merge="epr-11037.126" size="32768" crc="7a4ee585" sha1="050436106cced5dcbf40a3d94d48202eedddc3ad" region="soundcpu" offset="0" />
    <rom name="vc.ic4" size="32768" crc="820bee59" sha1="47afff58387eb67a8b0849d74023bd2c176a45e9" region="tiles" offset="0" />
    <rom name="vc.ic5" size="32768" crc="a9a1447e" sha1="f7e55080c4fd6e1ff9e21a19b2f71dfd512d62c3" region="tiles" offset="8000" />
    <rom name="vc.ic6" size="32768" crc="359026a0" sha1="a20c801dbc758f172fcfc505a5083ddb76604243" region="tiles" offset="10000" />
    <rom name="epr-11028.87" merge="epr-11028.87" size="32768" crc="af0b3972" sha1="413825f66b84c7e45aa1855131482abead8f7f3b" region="sprites" offset="0" />
    <rom name="epr-11027.86" merge="epr-11027.86" size="32768" crc="277d8f1d" sha1="7854673503ed03d276abe971805a11f8c992f6d6" region="sprites" offset="8000" />
    <rom name="epr-11030.89" merge="epr-11030.89" size="32768" crc="f05ffc76" sha1="f3dbb518240f86430840c3d4cda04bac79c20f69" region="sprites" offset="10000" />
    <rom name="epr-11029.88" merge="epr-11029.88" size="32768" crc="cedc9c61" sha1="dbe5744f9b6f2a406b52b910dd4e133db7bce6b2" region="sprites" offset="18000" />
    <rom name="pr11026.20" merge="pr11026.20" size="256" crc="27057298" sha1="654be7abb937bb0720263ee6512e31194662effe" region="color_proms" offset="0" />
    <rom name="pr11025.14" merge="pr11025.14" size="256" crc="41e4d86b" sha1="a86e8bb0a465d01b04410edfbb82eb96f12b909f" region="color_proms" offset="100" />
    <rom name="pr11024.8" merge="pr11024.8" size="256" crc="08d71954" sha1="df045dbfb3d669e4d42fbdba1e7191cd046f7b47" region="color_proms" offset="200" />
    <rom name="pr5317.37" merge="pr5317.37" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="z80" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <chip type="cpu" tag="maincpu" name="Zilog Z80" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Cabinet" tag="SWA" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWA" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWA" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="4" />
      <dipvalue name="4" value="12" default="yes" />
      <dipvalue name="5" value="8" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWA" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="30000 100000 200000" value="16" default="yes" />
      <dipvalue name="50000 150000 250000" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWA" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="Easy" value="32" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="Test Mode" tag="SWA" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWA" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="SWB" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWB" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="wboy" sourcefile="system1.cpp">
    <description>Wonder Boy (set 1, 315-5177)</description>
    <year>1986</year>
    <manufacturer>Escape (Sega license)</manufacturer>
    <rom name="epr-7489.116" size="16384" crc="130f4b70" sha1="4a2ea5bc06f3a240c68813be3a9f9bef2bcf4e9c" region="maincpu" offset="0" />
    <rom name="epr-7490.109" size="16384" crc="9e656733" sha1="2233beb874b7cb48899afe603fef567932951a88" region="maincpu" offset="4000" />
    <rom name="epr-7491.96" size="16384" crc="1f7d0efe" sha1="a1b4f8faf1614f4808df1292209c340f1490adbd" region="maincpu" offset="8000" />
    <rom name="epr-7498.120" size="8192" crc="78ae1e7b" sha1="86032f443359b0bb2766e33024ed2e320aa9bc84" region="soundcpu" offset="0" />
    <rom name="epr-7497.62" size="8192" crc="08d609ca" sha1="11799e9ef7e6942b304f132b404bff3ed44d524b" region="tiles" offset="0" />
    <rom name="epr-7496.61" size="8192" crc="6f61fdf1" sha1="21826aebf5835b9f3d9c467c8647809c1bc0d01f" region="tiles" offset="2000" />
    <rom name="epr-7495.64" size="8192" crc="6a0d2c2d" sha1="8c21d7f0768e8dda2b7185f3c510cae4229a4a2e" region="tiles" offset="4000" />
    <rom name="epr-7494.63" size="8192" crc="a8e281c7" sha1="a88b80a7b94ab1401bbf28d7707fdf28a5505127" region="tiles" offset="6000" />
    <rom name="epr-7493.66" size="8192" crc="89305df4" sha1="7a5098624769a31e7512f56831e818bce6a18871" region="tiles" offset="8000" />
    <rom name="epr-7492.65" size="8192" crc="60f806b1" sha1="f91e5868a455dff2bce3c2891a7cfd648957cd73" region="tiles" offset="a000" />
    <rom name="epr-7485.117" size="16384" crc="c2891722" sha1="e4e11c0e9bd0dc121c25349493f2b13d2ff8c807" region="sprites" offset="0" />
    <rom name="epr-7487.04" size="16384" crc="2d3a421b" sha1="d70440a8703ccface3212cd9544c950b36263e8c" region="sprites" offset="4000" />
    <rom name="epr-7486.110" size="16384" crc="8d622c50" sha1="9a76a50204c618347d3e8eee6cda841becd906eb" region="sprites" offset="8000" />
    <rom name="epr-7488.05" size="16384" crc="007c2f1b" sha1="c2f1376144a49d20cb35384648e06d06978474c1" region="sprites" offset="c000" />
    <rom name="pr-5317.76" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="sega_315_5177" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <device_ref name="z80pio" />
    <chip type="cpu" tag="maincpu" name="Sega 315-5177" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="2" />
      <control type="joy" player="2" buttons="2" ways="2" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="8" />
      <dipvalue name="5" value="4" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="30k 100k 170k 240k" value="16" />
      <dipvalue name="30k 120k 210k 300k" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="SWB" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="32" default="yes" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Easy" value="64" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="wboy2" sourcefile="system1.cpp" cloneof="wboy" romof="wboy">
    <description>Wonder Boy (set 2, 315-5178)</description>
    <year>1986</year>
    <manufacturer>Escape (Sega license)</manufacturer>
    <rom name="epr-7587.129" size="8192" crc="1bbb7354" sha1="e299979299c93981f5d28a1a614ad644506911dd" region="maincpu" offset="0" />
    <rom name="epr-7588.130" size="8192" crc="21007413" sha1="f45443a49e916465e5c8a8b348897ab426a897bd" region="maincpu" offset="2000" />
    <rom name="epr-7589.131" size="8192" crc="44b30433" sha1="558d799c8f48f76c651f19e2a81160eb78ac6642" region="maincpu" offset="4000" />
    <rom name="epr-7590.132" size="8192" crc="bb525a0b" sha1="5cd4731e0adfb5c660144eccda759e12a30ce78e" region="maincpu" offset="6000" />
    <rom name="epr-7591.133" size="8192" crc="8379aa23" sha1="da47e0150b724a00878ef5f953fa6ac80bb27d8d" region="maincpu" offset="8000" />
    <rom name="epr-7592.134" size="8192" crc="c767a5d7" sha1="a4e8d6a8278ac2227bde8c24d45aa7ab2a273579" region="maincpu" offset="a000" />
    <rom name="epr-7498.120" merge="epr-7498.120" size="8192" crc="78ae1e7b" sha1="86032f443359b0bb2766e33024ed2e320aa9bc84" region="soundcpu" offset="0" />
    <rom name="epr-7497.62" merge="epr-7497.62" size="8192" crc="08d609ca" sha1="11799e9ef7e6942b304f132b404bff3ed44d524b" region="tiles" offset="0" />
    <rom name="epr-7496.61" merge="epr-7496.61" size="8192" crc="6f61fdf1" sha1="21826aebf5835b9f3d9c467c8647809c1bc0d01f" region="tiles" offset="2000" />
    <rom name="epr-7495.64" merge="epr-7495.64" size="8192" crc="6a0d2c2d" sha1="8c21d7f0768e8dda2b7185f3c510cae4229a4a2e" region="tiles" offset="4000" />
    <rom name="epr-7494.63" merge="epr-7494.63" size="8192" crc="a8e281c7" sha1="a88b80a7b94ab1401bbf28d7707fdf28a5505127" region="tiles" offset="6000" />
    <rom name="epr-7493.66" merge="epr-7493.66" size="8192" crc="89305df4" sha1="7a5098624769a31e7512f56831e818bce6a18871" region="tiles" offset="8000" />
    <rom name="epr-7492.65" merge="epr-7492.65" size="8192" crc="60f806b1" sha1="f91e5868a455dff2bce3c2891a7cfd648957cd73" region="tiles" offset="a000" />
    <rom name="epr-7485.117" merge="epr-7485.117" size="16384" crc="c2891722" sha1="e4e11c0e9bd0dc121c25349493f2b13d2ff8c807" region="sprites" offset="0" />
    <rom name="epr-7487.04" merge="epr-7487.04" size="16384" crc="2d3a421b" sha1="d70440a8703ccface3212cd9544c950b36263e8c" region="sprites" offset="4000" />
    <rom name="epr-7486.110" merge="epr-7486.110" size="16384" crc="8d622c50" sha1="9a76a50204c618347d3e8eee6cda841becd906eb" region="sprites" offset="8000" />
    <rom name="epr-7488.05" merge="epr-7488.05" size="16384" crc="007c2f1b" sha1="c2f1376144a49d20cb35384648e06d06978474c1" region="sprites" offset="c000" />
    <rom name="pr-5317.76" merge="pr-5317.76" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="sega_315_5178" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <chip type="cpu" tag="maincpu" name="Sega 315-5178" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="2" />
      <control type="joy" player="2" buttons="2" ways="2" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="8" />
      <dipvalue name="5" value="4" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="30k 100k 170k 240k" value="16" />
      <dipvalue name="30k 120k 210k 300k" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="SWB" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="32" default="yes" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Easy" value="64" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="wboy2u" sourcefile="system1.cpp" cloneof="wboy" romof="wboy">
    <description>Wonder Boy (set 2, not encrypted)</description>
    <year>1986</year>
    <manufacturer>Escape (Sega license)</manufacturer>
    <rom name="ic129_02.bin" size="8192" crc="32c4b709" sha1="e57b7b6818f12fdd5f1600ed54c0b8a7f538aa71" region="maincpu" offset="0" />
    <rom name="ic130_03.bin" size="8192" crc="56463ede" sha1="c58c220aa0d0e194581646e6db2491075fdc37b9" region="maincpu" offset="2000" />
    <rom name="ic131_04.bin" size="8192" crc="775ed392" sha1="073f8f70685913736eb04be8215a47b5253cb531" region="maincpu" offset="4000" />
    <rom name="ic132_05.bin" size="8192" crc="7b922708" sha1="c2e1f67b756f558d6904fe82d6f5483cda5f9045" region="maincpu" offset="6000" />
    <rom name="epr-7591.133" size="8192" crc="8379aa23" sha1="da47e0150b724a00878ef5f953fa6ac80bb27d8d" region="maincpu" offset="8000" />
    <rom name="epr-7592.134" size="8192" crc="c767a5d7" sha1="a4e8d6a8278ac2227bde8c24d45aa7ab2a273579" region="maincpu" offset="a000" />
    <rom name="epr7498a.3" size="8192" crc="c198205c" sha1="d2d5cd154ce6a5a3c6a099b4ab2ea7cc045ab0a1" region="soundcpu" offset="0" />
    <rom name="epr-7497.62" merge="epr-7497.62" size="8192" crc="08d609ca" sha1="11799e9ef7e6942b304f132b404bff3ed44d524b" region="tiles" offset="0" />
    <rom name="epr-7496.61" merge="epr-7496.61" size="8192" crc="6f61fdf1" sha1="21826aebf5835b9f3d9c467c8647809c1bc0d01f" region="tiles" offset="2000" />
    <rom name="epr-7495.64" merge="epr-7495.64" size="8192" crc="6a0d2c2d" sha1="8c21d7f0768e8dda2b7185f3c510cae4229a4a2e" region="tiles" offset="4000" />
    <rom name="epr-7494.63" merge="epr-7494.63" size="8192" crc="a8e281c7" sha1="a88b80a7b94ab1401bbf28d7707fdf28a5505127" region="tiles" offset="6000" />
    <rom name="epr-7493.66" merge="epr-7493.66" size="8192" crc="89305df4" sha1="7a5098624769a31e7512f56831e818bce6a18871" region="tiles" offset="8000" />
    <rom name="epr-7492.65" merge="epr-7492.65" size="8192" crc="60f806b1" sha1="f91e5868a455dff2bce3c2891a7cfd648957cd73" region="tiles" offset="a000" />
    <rom name="epr-7485.117" merge="epr-7485.117" size="16384" crc="c2891722" sha1="e4e11c0e9bd0dc121c25349493f2b13d2ff8c807" region="sprites" offset="0" />
    <rom name="epr-7487.04" merge="epr-7487.04" size="16384" crc="2d3a421b" sha1="d70440a8703ccface3212cd9544c950b36263e8c" region="sprites" offset="4000" />
    <rom name="epr-7486.110" merge="epr-7486.110" size="16384" crc="8d622c50" sha1="9a76a50204c618347d3e8eee6cda841becd906eb" region="sprites" offset="8000" />
    <rom name="epr-7488.05" merge="epr-7488.05" size="16384" crc="007c2f1b" sha1="c2f1376144a49d20cb35384648e06d06978474c1" region="sprites" offset="c000" />
    <rom name="pr-5317.76" merge="pr-5317.76" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="z80" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <chip type="cpu" tag="maincpu" name="Zilog Z80" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="2" />
      <control type="joy" player="2" buttons="2" ways="2" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="8" />
      <dipvalue name="5" value="4" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="30k 100k 170k 240k" value="16" />
      <dipvalue name="30k 120k 210k 300k" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="SWB" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="32" default="yes" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Easy" value="64" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="wboy3" sourcefile="system1.cpp" cloneof="wboy" romof="wboy">
    <description>Wonder Boy (set 3, 315-5135)</description>
    <year>1986</year>
    <manufacturer>Escape (Sega license)</manufacturer>
    <rom name="wb_1" size="16384" crc="bd6fef49" sha1="6469a84cc1fd4ebf8c58b6efd3b255414bc86699" region="maincpu" offset="0" />
    <rom name="wb_2" size="16384" crc="4081b624" sha1="892fd347638ec900a7afc3d338b68e9d0a14f2b4" region="maincpu" offset="4000" />
    <rom name="wb_3" size="16384" crc="c48a0e36" sha1="c9b9e51334e8b698be2195dda7701bb51760e502" region="maincpu" offset="8000" />
    <rom name="epr-7498.120" merge="epr-7498.120" size="8192" crc="78ae1e7b" sha1="86032f443359b0bb2766e33024ed2e320aa9bc84" region="soundcpu" offset="0" />
    <rom name="epr-7497.62" merge="epr-7497.62" size="8192" crc="08d609ca" sha1="11799e9ef7e6942b304f132b404bff3ed44d524b" region="tiles" offset="0" />
    <rom name="epr-7496.61" merge="epr-7496.61" size="8192" crc="6f61fdf1" sha1="21826aebf5835b9f3d9c467c8647809c1bc0d01f" region="tiles" offset="2000" />
    <rom name="epr-7495.64" merge="epr-7495.64" size="8192" crc="6a0d2c2d" sha1="8c21d7f0768e8dda2b7185f3c510cae4229a4a2e" region="tiles" offset="4000" />
    <rom name="epr-7494.63" merge="epr-7494.63" size="8192" crc="a8e281c7" sha1="a88b80a7b94ab1401bbf28d7707fdf28a5505127" region="tiles" offset="6000" />
    <rom name="epr-7493.66" merge="epr-7493.66" size="8192" crc="89305df4" sha1="7a5098624769a31e7512f56831e818bce6a18871" region="tiles" offset="8000" />
    <rom name="epr-7492.65" merge="epr-7492.65" size="8192" crc="60f806b1" sha1="f91e5868a455dff2bce3c2891a7cfd648957cd73" region="tiles" offset="a000" />
    <rom name="epr-7485.117" merge="epr-7485.117" size="16384" crc="c2891722" sha1="e4e11c0e9bd0dc121c25349493f2b13d2ff8c807" region="sprites" offset="0" />
    <rom name="epr-7487.04" merge="epr-7487.04" size="16384" crc="2d3a421b" sha1="d70440a8703ccface3212cd9544c950b36263e8c" region="sprites" offset="4000" />
    <rom name="epr-7486.110" merge="epr-7486.110" size="16384" crc="8d622c50" sha1="9a76a50204c618347d3e8eee6cda841becd906eb" region="sprites" offset="8000" />
    <rom name="epr-7488.05" merge="epr-7488.05" size="16384" crc="007c2f1b" sha1="c2f1376144a49d20cb35384648e06d06978474c1" region="sprites" offset="c000" />
    <rom name="pr-5317.76" merge="pr-5317.76" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="sega_315_5135" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <device_ref name="z80pio" />
    <chip type="cpu" tag="maincpu" name="Sega 315-5135" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="2" />
      <control type="joy" player="2" buttons="2" ways="2" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="1" value="12" default="yes" />
      <dipvalue name="2" value="8" />
      <dipvalue name="3" value="4" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="30k 100k 170k 240k" value="16" />
      <dipvalue name="30k 120k 210k 300k" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="SWB" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="32" default="yes" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Easy" value="64" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="wboy4" sourcefile="system1.cpp" cloneof="wboy" romof="wboy">
    <description>Wonder Boy (315-5162, 4-D Warriors Conversion)</description>
    <year>1986</year>
    <manufacturer>Escape (Sega license)</manufacturer>
    <rom name="epr-7622.ic1" size="32768" crc="48b2c006" sha1="35492330dae71d410712380466b4c09b81df8559" region="maincpu" offset="0" />
    <rom name="epr-7621.ic2" size="32768" crc="466cae31" sha1="e47e9084c83796a0a0dfeaa1f8f868cadd5f32c7" region="maincpu" offset="8000" />
    <rom name="epr-7583.126" size="32768" crc="99334b3c" sha1="dfc09f63082b7666fa2152e22810c0455a7e5051" region="soundcpu" offset="0" />
    <rom name="epr-7610.ic62" size="16384" crc="1685d26a" sha1="d30d08d61d789fd5a0eb7ef2998eb9728dabf4c9" region="tiles" offset="0" />
    <rom name="epr-7609.ic64" size="16384" crc="87ecba53" sha1="b904d5af25e0c1f8c8ca8dc11a3bed508c868f19" region="tiles" offset="4000" />
    <rom name="epr-7608.ic66" size="16384" crc="e812b3ec" sha1="3eebeaf3480a0370aa5ee031c25768ada17ad8a2" region="tiles" offset="8000" />
    <rom name="epr-7578.87" size="32768" crc="6ff1637f" sha1="9a6ddbd7b8d53273b30c3529b028c1f28bf3c63b" region="sprites" offset="0" />
    <rom name="epr-7577.86" size="32768" crc="58b3705e" sha1="1a8ff3f1765a3b21145bd1a6c85441f806f7b17d" region="sprites" offset="8000" />
    <rom name="pr-5317.76" merge="pr-5317.76" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="sega_315_5162" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <device_ref name="z80pio" />
    <chip type="cpu" tag="maincpu" name="Sega 315-5162" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="2" />
      <control type="joy" player="2" buttons="2" ways="2" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="8" />
      <dipvalue name="5" value="4" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="30k 100k 170k 240k" value="16" />
      <dipvalue name="30k 120k 210k 300k" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="SWB" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="32" default="yes" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Easy" value="64" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="wboy5" sourcefile="system1.cpp" cloneof="wboy" romof="wboy">
    <description>Wonder Boy (set 5, bootleg)</description>
    <year>1986</year>
    <manufacturer>bootleg</manufacturer>
    <rom name="wb1.ic116" size="16384" crc="6c67407c" sha1="58d567ee46470cfdf7f1a539fabeb9f0e3c9e6ff" region="maincpu" offset="0" />
    <rom name="wb_2" size="16384" crc="4081b624" sha1="892fd347638ec900a7afc3d338b68e9d0a14f2b4" region="maincpu" offset="4000" />
    <rom name="wb_3" size="16384" crc="c48a0e36" sha1="c9b9e51334e8b698be2195dda7701bb51760e502" region="maincpu" offset="8000" />
    <rom name="epr-7498.120" merge="epr-7498.120" size="8192" crc="78ae1e7b" sha1="86032f443359b0bb2766e33024ed2e320aa9bc84" region="soundcpu" offset="0" />
    <rom name="epr-7497.62" merge="epr-7497.62" size="8192" crc="08d609ca" sha1="11799e9ef7e6942b304f132b404bff3ed44d524b" region="tiles" offset="0" />
    <rom name="epr-7496.61" merge="epr-7496.61" size="8192" crc="6f61fdf1" sha1="21826aebf5835b9f3d9c467c8647809c1bc0d01f" region="tiles" offset="2000" />
    <rom name="epr-7495.64" merge="epr-7495.64" size="8192" crc="6a0d2c2d" sha1="8c21d7f0768e8dda2b7185f3c510cae4229a4a2e" region="tiles" offset="4000" />
    <rom name="epr-7494.63" merge="epr-7494.63" size="8192" crc="a8e281c7" sha1="a88b80a7b94ab1401bbf28d7707fdf28a5505127" region="tiles" offset="6000" />
    <rom name="epr-7493.66" merge="epr-7493.66" size="8192" crc="89305df4" sha1="7a5098624769a31e7512f56831e818bce6a18871" region="tiles" offset="8000" />
    <rom name="epr-7492.65" merge="epr-7492.65" size="8192" crc="60f806b1" sha1="f91e5868a455dff2bce3c2891a7cfd648957cd73" region="tiles" offset="a000" />
    <rom name="epr-7485.117" merge="epr-7485.117" size="16384" crc="c2891722" sha1="e4e11c0e9bd0dc121c25349493f2b13d2ff8c807" region="sprites" offset="0" />
    <rom name="epr-7487.04" merge="epr-7487.04" size="16384" crc="2d3a421b" sha1="d70440a8703ccface3212cd9544c950b36263e8c" region="sprites" offset="4000" />
    <rom name="epr-7486.110" merge="epr-7486.110" size="16384" crc="8d622c50" sha1="9a76a50204c618347d3e8eee6cda841becd906eb" region="sprites" offset="8000" />
    <rom name="epr-7488.05" merge="epr-7488.05" size="16384" crc="007c2f1b" sha1="c2f1376144a49d20cb35384648e06d06978474c1" region="sprites" offset="c000" />
    <rom name="pr-5317.76" merge="pr-5317.76" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="sega_315_5135" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <device_ref name="z80pio" />
    <chip type="cpu" tag="maincpu" name="Sega 315-5135" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="2" />
      <control type="joy" player="2" buttons="2" ways="2" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="1" value="12" default="yes" />
      <dipvalue name="2" value="8" />
      <dipvalue name="3" value="4" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="30k 100k 170k 240k" value="16" />
      <dipvalue name="30k 120k 210k 300k" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="SWB" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="32" default="yes" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Easy" value="64" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="wboy6" sourcefile="system1.cpp" cloneof="wboy" romof="wboy">
    <description>Wonder Boy (set 6, 315-5179)</description>
    <year>1986</year>
    <manufacturer>Escape (Sega license)</manufacturer>
    <rom name="epr-7731.129" size="8192" crc="9776ceb6" sha1="14a09cb397e99f2a503242c1feb7e13bd4394536" region="maincpu" offset="0" />
    <rom name="epr-7732.130" size="8192" crc="74ff0918" sha1="1a4124173f39bfbb471d5e33c8572c09a278965d" region="maincpu" offset="2000" />
    <rom name="epr-7733.131" size="8192" crc="07c8b494" sha1="14b9bf9d97eb633378cee8964608f56ab63eb6d3" region="maincpu" offset="4000" />
    <rom name="epr-7734.132" size="8192" crc="8ebd648c" sha1="03e5b19dc59a8118641a16b8a8fd583d51fcad28" region="maincpu" offset="6000" />
    <rom name="epr-7735.133" size="8192" crc="8379aa23" sha1="da47e0150b724a00878ef5f953fa6ac80bb27d8d" region="maincpu" offset="8000" />
    <rom name="epr-7736.134" size="8192" crc="c767a5d7" sha1="a4e8d6a8278ac2227bde8c24d45aa7ab2a273579" region="maincpu" offset="a000" />
    <rom name="epr-7498.120" merge="epr-7498.120" size="8192" crc="78ae1e7b" sha1="86032f443359b0bb2766e33024ed2e320aa9bc84" region="soundcpu" offset="0" />
    <rom name="epr-7497.62" merge="epr-7497.62" size="8192" crc="08d609ca" sha1="11799e9ef7e6942b304f132b404bff3ed44d524b" region="tiles" offset="0" />
    <rom name="epr-7496.61" merge="epr-7496.61" size="8192" crc="6f61fdf1" sha1="21826aebf5835b9f3d9c467c8647809c1bc0d01f" region="tiles" offset="2000" />
    <rom name="epr-7495.64" merge="epr-7495.64" size="8192" crc="6a0d2c2d" sha1="8c21d7f0768e8dda2b7185f3c510cae4229a4a2e" region="tiles" offset="4000" />
    <rom name="epr-7494.63" merge="epr-7494.63" size="8192" crc="a8e281c7" sha1="a88b80a7b94ab1401bbf28d7707fdf28a5505127" region="tiles" offset="6000" />
    <rom name="epr-7493.66" merge="epr-7493.66" size="8192" crc="89305df4" sha1="7a5098624769a31e7512f56831e818bce6a18871" region="tiles" offset="8000" />
    <rom name="epr-7492.65" merge="epr-7492.65" size="8192" crc="60f806b1" sha1="f91e5868a455dff2bce3c2891a7cfd648957cd73" region="tiles" offset="a000" />
    <rom name="epr-7485.117" merge="epr-7485.117" size="16384" crc="c2891722" sha1="e4e11c0e9bd0dc121c25349493f2b13d2ff8c807" region="sprites" offset="0" />
    <rom name="epr-7487.04" merge="epr-7487.04" size="16384" crc="2d3a421b" sha1="d70440a8703ccface3212cd9544c950b36263e8c" region="sprites" offset="4000" />
    <rom name="epr-7486.110" merge="epr-7486.110" size="16384" crc="8d622c50" sha1="9a76a50204c618347d3e8eee6cda841becd906eb" region="sprites" offset="8000" />
    <rom name="epr-7488.05" merge="epr-7488.05" size="16384" crc="007c2f1b" sha1="c2f1376144a49d20cb35384648e06d06978474c1" region="sprites" offset="c000" />
    <rom name="pr-5317.76" merge="pr-5317.76" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="sega_315_5179" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <chip type="cpu" tag="maincpu" name="Sega 315-5179" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="2" />
      <control type="joy" player="2" buttons="2" ways="2" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="8" />
      <dipvalue name="5" value="4" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="30k 100k 170k 240k" value="16" />
      <dipvalue name="30k 120k 210k 300k" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="SWB" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="32" default="yes" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Easy" value="64" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="wboyo" sourcefile="system1.cpp" cloneof="wboy" romof="wboy">
    <description>Wonder Boy (set 2, 315-5135)</description>
    <year>1986</year>
    <manufacturer>Escape (Sega license)</manufacturer>
    <rom name="epr-7532.116" size="16384" crc="51d27534" sha1="1cbc7201aacde89857f83b2600f309b514c5e758" region="maincpu" offset="0" />
    <rom name="epr-7533.109" size="16384" crc="e29d1cd1" sha1="f6ff4a6fffea77cc5706549bb2d8bf9e96ed0be0" region="maincpu" offset="4000" />
    <rom name="epr-7534.96" merge="epr-7491.96" size="16384" crc="1f7d0efe" sha1="a1b4f8faf1614f4808df1292209c340f1490adbd" region="maincpu" offset="8000" />
    <rom name="epr-7498.120" merge="epr-7498.120" size="8192" crc="78ae1e7b" sha1="86032f443359b0bb2766e33024ed2e320aa9bc84" region="soundcpu" offset="0" />
    <rom name="epr-7497.62" merge="epr-7497.62" size="8192" crc="08d609ca" sha1="11799e9ef7e6942b304f132b404bff3ed44d524b" region="tiles" offset="0" />
    <rom name="epr-7496.61" merge="epr-7496.61" size="8192" crc="6f61fdf1" sha1="21826aebf5835b9f3d9c467c8647809c1bc0d01f" region="tiles" offset="2000" />
    <rom name="epr-7495.64" merge="epr-7495.64" size="8192" crc="6a0d2c2d" sha1="8c21d7f0768e8dda2b7185f3c510cae4229a4a2e" region="tiles" offset="4000" />
    <rom name="epr-7494.63" merge="epr-7494.63" size="8192" crc="a8e281c7" sha1="a88b80a7b94ab1401bbf28d7707fdf28a5505127" region="tiles" offset="6000" />
    <rom name="epr-7493.66" merge="epr-7493.66" size="8192" crc="89305df4" sha1="7a5098624769a31e7512f56831e818bce6a18871" region="tiles" offset="8000" />
    <rom name="epr-7492.65" merge="epr-7492.65" size="8192" crc="60f806b1" sha1="f91e5868a455dff2bce3c2891a7cfd648957cd73" region="tiles" offset="a000" />
    <rom name="epr-7485.117" merge="epr-7485.117" size="16384" crc="c2891722" sha1="e4e11c0e9bd0dc121c25349493f2b13d2ff8c807" region="sprites" offset="0" />
    <rom name="epr-7487.04" merge="epr-7487.04" size="16384" crc="2d3a421b" sha1="d70440a8703ccface3212cd9544c950b36263e8c" region="sprites" offset="4000" />
    <rom name="epr-7486.110" merge="epr-7486.110" size="16384" crc="8d622c50" sha1="9a76a50204c618347d3e8eee6cda841becd906eb" region="sprites" offset="8000" />
    <rom name="epr-7488.05" merge="epr-7488.05" size="16384" crc="007c2f1b" sha1="c2f1376144a49d20cb35384648e06d06978474c1" region="sprites" offset="c000" />
    <rom name="pr-5317.76" merge="pr-5317.76" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="sega_315_5135" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <device_ref name="z80pio" />
    <chip type="cpu" tag="maincpu" name="Sega 315-5135" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="2" />
      <control type="joy" player="2" buttons="2" ways="2" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="8" />
      <dipvalue name="5" value="4" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="30k 100k 170k 240k" value="16" />
      <dipvalue name="30k 120k 210k 300k" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="SWB" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="32" default="yes" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Easy" value="64" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="wboysys2" sourcefile="system1.cpp" cloneof="wboy" romof="wboy">
    <description>Wonder Boy (system 2, set 1, 315-5177)</description>
    <year>1986</year>
    <manufacturer>Escape (Sega license)</manufacturer>
    <rom name="epr-7580.90" size="32768" crc="d69927a5" sha1="b633177146a83953131d4e03fa987416f222199a" region="maincpu" offset="0" />
    <rom name="epr-7579.91" size="32768" crc="8a6f4b00" sha1="2b1c26daa2e9c668292db73e28318257c62b175c" region="maincpu" offset="10000" />
    <rom name="epr-7583.126" size="32768" crc="99334b3c" sha1="dfc09f63082b7666fa2152e22810c0455a7e5051" region="soundcpu" offset="0" />
    <rom name="epr-7581.4" size="32768" crc="d95565fd" sha1="25f1653cca1d6432171a7b391cbb76bc18ddfb06" region="tiles" offset="0" />
    <rom name="epr-7582.5" size="32768" crc="560cbac0" sha1="851283e6d63e33d250840501dd22750b19772fb0" region="tiles" offset="8000" />
    <rom name="epr-7607.6" size="32768" crc="bd36df03" sha1="7f7efac2c71fae48dd1dcb4dcc849f07e8127f7d" region="tiles" offset="10000" />
    <rom name="epr-7578.87" size="32768" crc="6ff1637f" sha1="9a6ddbd7b8d53273b30c3529b028c1f28bf3c63b" region="sprites" offset="0" />
    <rom name="epr-7577.86" size="32768" crc="58b3705e" sha1="1a8ff3f1765a3b21145bd1a6c85441f806f7b17d" region="sprites" offset="8000" />
    <rom name="pr-7345.ic20" size="256" crc="8eee0f72" sha1="b5694c120f604a5f7cc95618a71ab16a1a6151ed" region="color_proms" offset="0" />
    <rom name="pr-7344.ic14" size="256" crc="3e7babd7" sha1="d4f8790db4dce75e27156a4c6de2dcef2baf6d76" region="color_proms" offset="100" />
    <rom name="pr-7343.ic8" size="256" crc="371c44a6" sha1="ac37458d1feb6566b09a795b20c21953d4ab109d" region="color_proms" offset="200" />
    <rom name="pr-5317.28" merge="pr-5317.76" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="sega_315_5177" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <chip type="cpu" tag="maincpu" name="Sega 315-5177" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="2" />
      <control type="joy" player="2" buttons="2" ways="2" />
    </input>
    <dipswitch name="Cabinet" tag="SWA" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWA" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWA" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="8" />
      <dipvalue name="5" value="4" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWA" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="30k 100k 170k 240k" value="16" />
      <dipvalue name="30k 120k 210k 300k" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="SWA" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="32" default="yes" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWA" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Easy" value="64" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWA" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="SWB" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWB" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="wboysys2a" sourcefile="system1.cpp" cloneof="wboy" romof="wboy">
    <description>Wonder Boy (system 2, set 2, 315-5176)</description>
    <year>1986</year>
    <manufacturer>Escape (Sega license)</manufacturer>
    <rom name="epr-7625.90" size="32768" crc="43b3d155" sha1="40cc063bf64327250be7ae078ea85315ad4db794" region="maincpu" offset="0" />
    <rom name="epr-7626.91" size="32768" crc="8a6f4b00" sha1="2b1c26daa2e9c668292db73e28318257c62b175c" region="maincpu" offset="10000" />
    <rom name="epr-7583.126" size="32768" crc="99334b3c" sha1="dfc09f63082b7666fa2152e22810c0455a7e5051" region="soundcpu" offset="0" />
    <rom name="epr-7581.4" size="32768" crc="d95565fd" sha1="25f1653cca1d6432171a7b391cbb76bc18ddfb06" region="tiles" offset="0" />
    <rom name="epr-7582.5" size="32768" crc="560cbac0" sha1="851283e6d63e33d250840501dd22750b19772fb0" region="tiles" offset="8000" />
    <rom name="epr-7607.6" size="32768" crc="bd36df03" sha1="7f7efac2c71fae48dd1dcb4dcc849f07e8127f7d" region="tiles" offset="10000" />
    <rom name="epr-7578.87" size="32768" crc="6ff1637f" sha1="9a6ddbd7b8d53273b30c3529b028c1f28bf3c63b" region="sprites" offset="0" />
    <rom name="epr-7577.86" size="32768" crc="58b3705e" sha1="1a8ff3f1765a3b21145bd1a6c85441f806f7b17d" region="sprites" offset="8000" />
    <rom name="pr-7345.20" size="256" crc="8eee0f72" sha1="b5694c120f604a5f7cc95618a71ab16a1a6151ed" region="color_proms" offset="0" />
    <rom name="pr-7344.14" size="256" crc="3e7babd7" sha1="d4f8790db4dce75e27156a4c6de2dcef2baf6d76" region="color_proms" offset="100" />
    <rom name="pr-7343.8" size="256" crc="371c44a6" sha1="ac37458d1feb6566b09a795b20c21953d4ab109d" region="color_proms" offset="200" />
    <rom name="pr-5317.28" merge="pr-5317.76" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="sega_315_5176" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <chip type="cpu" tag="maincpu" name="Sega 315-5176" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="2" />
      <control type="joy" player="2" buttons="2" ways="2" />
    </input>
    <dipswitch name="Cabinet" tag="SWA" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWA" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWA" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="8" />
      <dipvalue name="5" value="4" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWA" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="30k 100k 170k 240k" value="16" />
      <dipvalue name="30k 120k 210k 300k" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="SWA" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="32" default="yes" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWA" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Easy" value="64" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWA" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Coin A" tag="SWB" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWB" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="wboyu" sourcefile="system1.cpp" cloneof="wboy" romof="wboy">
    <description>Wonder Boy (prototype?)</description>
    <year>1986</year>
    <manufacturer>Escape (Sega license)</manufacturer>
    <rom name="ic116_89.bin" size="16384" crc="73d8cef0" sha1="a6f1f8de44a88f995836ce03b5a073306c56aaeb" region="maincpu" offset="0" />
    <rom name="ic109_90.bin" size="16384" crc="29546828" sha1="905d76bc2b212a161ad2f2bef144261bb73c94cb" region="maincpu" offset="4000" />
    <rom name="ic096_91.bin" size="16384" crc="c7145c2a" sha1="0b2fd6f519a4b87bc27db5d03c489c7ff75e942a" region="maincpu" offset="8000" />
    <rom name="epr-7498.120" merge="epr-7498.120" size="8192" crc="78ae1e7b" sha1="86032f443359b0bb2766e33024ed2e320aa9bc84" region="soundcpu" offset="0" />
    <rom name="epr-7497.62" merge="epr-7497.62" size="8192" crc="08d609ca" sha1="11799e9ef7e6942b304f132b404bff3ed44d524b" region="tiles" offset="0" />
    <rom name="epr-7496.61" merge="epr-7496.61" size="8192" crc="6f61fdf1" sha1="21826aebf5835b9f3d9c467c8647809c1bc0d01f" region="tiles" offset="2000" />
    <rom name="epr-7495.64" merge="epr-7495.64" size="8192" crc="6a0d2c2d" sha1="8c21d7f0768e8dda2b7185f3c510cae4229a4a2e" region="tiles" offset="4000" />
    <rom name="epr-7494.63" merge="epr-7494.63" size="8192" crc="a8e281c7" sha1="a88b80a7b94ab1401bbf28d7707fdf28a5505127" region="tiles" offset="6000" />
    <rom name="epr-7493.66" merge="epr-7493.66" size="8192" crc="89305df4" sha1="7a5098624769a31e7512f56831e818bce6a18871" region="tiles" offset="8000" />
    <rom name="epr-7492.65" merge="epr-7492.65" size="8192" crc="60f806b1" sha1="f91e5868a455dff2bce3c2891a7cfd648957cd73" region="tiles" offset="a000" />
    <rom name="ic117_85.bin" size="16384" crc="1ee96ae8" sha1="4e69b87e919894b961477e6cc5272f448495d847" region="sprites" offset="0" />
    <rom name="ic004_87.bin" size="16384" crc="119735bb" sha1="001efa55d7fbcd2fdb6da17b136f295e5ea4a4c2" region="sprites" offset="4000" />
    <rom name="ic110_86.bin" size="16384" crc="26d0fac4" sha1="2e6a06f6850b2d19e3dd7dcdc6b700d0eda878cb" region="sprites" offset="8000" />
    <rom name="ic005_88.bin" size="16384" crc="2602e519" sha1="00e94ec7ae37b5063137d4d49af7806fb0357c4b" region="sprites" offset="c000" />
    <rom name="pr-5317.76" merge="pr-5317.76" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="z80" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <device_ref name="z80pio" />
    <chip type="cpu" tag="maincpu" name="Zilog Z80" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="2" />
      <control type="joy" player="2" buttons="2" ways="2" />
    </input>
    <dipswitch name="Cabinet" tag="SWA" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWA" mask="6">
      <diplocation name="SWB" number="2" />
      <diplocation name="SWB" number="3" />
      <dipvalue name="2" value="0" />
      <dipvalue name="3" value="6" default="yes" />
      <dipvalue name="4" value="4" />
      <dipvalue name="5" value="2" />
    </dipswitch>
    <dipswitch name="Unknown" tag="SWA" mask="8">
      <diplocation name="SWB" number="4" />
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="SWA" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="SWA" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWA" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Off" value="64" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Unknown" tag="SWA" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Coinage" tag="SWB" mask="7">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <dipvalue name="4 Coins/1 Credit" value="4" />
      <dipvalue name="3 Coins/1 Credit" value="5" />
      <dipvalue name="4 Coins/2 Credits" value="0" />
      <dipvalue name="2 Coins/1 Credit" value="6" />
      <dipvalue name="3 Coins/2 Credits" value="1" />
      <dipvalue name="2 Coins/2 Credits" value="2" />
      <dipvalue name="1 Coin/1 Credit" value="7" default="yes" />
      <dipvalue name="1 Coin/2 Credits" value="3" />
    </dipswitch>
    <dipswitch name="Unknown" tag="SWB" mask="8">
      <diplocation name="SWA" number="4" />
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="SWB" mask="16">
      <diplocation name="SWA" number="5" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="16" default="yes" />
    </dipswitch>
    <dipswitch name="Unknown" tag="SWB" mask="32">
      <diplocation name="SWA" number="6" />
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Mode" tag="SWB" mask="192">
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="Normal Game" value="192" default="yes" />
      <dipvalue name="Free Play" value="128" />
      <dipvalue name="Test Mode" value="64" />
      <dipvalue name="Endless Game" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="wboyub" sourcefile="system1.cpp" cloneof="wboy" romof="wboy">
    <description>Wonder Boy (US bootleg)</description>
    <year>1986</year>
    <manufacturer>bootleg</manufacturer>
    <rom name="1.bin" size="32768" crc="07066b6f" sha1="1ead373907fd5bd5f4cc003a97218aa582758a00" region="maincpu" offset="0" />
    <rom name="epr-7491.96" merge="epr-7491.96" size="16384" crc="1f7d0efe" sha1="a1b4f8faf1614f4808df1292209c340f1490adbd" region="maincpu" offset="8000" />
    <rom name="0cpu.bin" size="8192" crc="a962e6af" sha1="f46b01db38cdc9c8485d7fe0a344e9f6ed918925" region="unk" offset="c000" />
    <rom name="epr-7498a.3" size="8192" crc="c198205c" sha1="d2d5cd154ce6a5a3c6a099b4ab2ea7cc045ab0a1" region="soundcpu" offset="0" />
    <rom name="epr-7497.62" merge="epr-7497.62" size="8192" crc="08d609ca" sha1="11799e9ef7e6942b304f132b404bff3ed44d524b" region="tiles" offset="0" />
    <rom name="epr-7496.61" merge="epr-7496.61" size="8192" crc="6f61fdf1" sha1="21826aebf5835b9f3d9c467c8647809c1bc0d01f" region="tiles" offset="2000" />
    <rom name="epr-7495.64" merge="epr-7495.64" size="8192" crc="6a0d2c2d" sha1="8c21d7f0768e8dda2b7185f3c510cae4229a4a2e" region="tiles" offset="4000" />
    <rom name="epr-7494.63" merge="epr-7494.63" size="8192" crc="a8e281c7" sha1="a88b80a7b94ab1401bbf28d7707fdf28a5505127" region="tiles" offset="6000" />
    <rom name="epr-7493.66" merge="epr-7493.66" size="8192" crc="89305df4" sha1="7a5098624769a31e7512f56831e818bce6a18871" region="tiles" offset="8000" />
    <rom name="epr-7492.65" merge="epr-7492.65" size="8192" crc="60f806b1" sha1="f91e5868a455dff2bce3c2891a7cfd648957cd73" region="tiles" offset="a000" />
    <rom name="4.bin" size="32768" crc="8b3124e6" sha1="e90deaa687128c1f0b7e9e6b6d767bd484c7fc61" region="sprites" offset="0" />
    <rom name="5.bin" size="32768" crc="b75278e7" sha1="5b7c519f32eac40dc46ca5bba03cec1e893b6fcd" region="sprites" offset="4000" />
    <rom name="pr-5317.76" merge="pr-5317.76" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="sega_315_5177" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <device_ref name="z80pio" />
    <chip type="cpu" tag="maincpu" name="Sega 315-5177" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="512" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="0" hbstart="512" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="joy" player="1" buttons="2" ways="2" />
      <control type="joy" player="2" buttons="2" ways="2" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="3" value="12" default="yes" />
      <dipvalue name="4" value="8" />
      <dipvalue name="5" value="4" />
      <dipvalue name="Free Play" value="0" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="SWB" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="30k 100k 170k 240k" value="16" />
      <dipvalue name="30k 120k 210k 300k" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="SWB" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="No" value="0" />
      <dipvalue name="Yes" value="32" default="yes" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Easy" value="64" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="wmatch" sourcefile="system1.cpp">
    <description>Water Match (315-5064)</description>
    <year>1984</year>
    <manufacturer>Sega</manufacturer>
    <rom name="wm.129" size="8192" crc="b6db4442" sha1="9f31b3b2d4b4a430f9de84141ebd66bdba063387" region="maincpu" offset="0" />
    <rom name="wm.130" size="8192" crc="59a0a7a0" sha1="a1707d08ba968d1ad01f3249c046a62dde8e2730" region="maincpu" offset="2000" />
    <rom name="wm.131" size="8192" crc="4cb3856a" sha1="983f52bfb2f8e3871518137f424786a9a8e5c53d" region="maincpu" offset="4000" />
    <rom name="wm.132" size="8192" crc="e2e44b29" sha1="53208666c1368887ab347ea1f261e692cc041d40" region="maincpu" offset="6000" />
    <rom name="wm.133" size="8192" crc="43a36445" sha1="6cc5a6fa8319d4e2b454b326d8a908ff764fa65f" region="maincpu" offset="8000" />
    <rom name="wm.134" size="8192" crc="5624794c" sha1="7cfb0a35b7fb8394e0e7efa6b63ba83bd5c9b8e7" region="maincpu" offset="a000" />
    <rom name="wm.3" size="8192" crc="50d2afb7" sha1="21b109d389d0b52d89cf635467c3213f6b24d7df" region="soundcpu" offset="0" />
    <rom name="wm.82" size="8192" crc="540f0bf3" sha1="3898dee3ed9e7382a9dfc3ee2af177c5b832ea84" region="tiles" offset="0" />
    <rom name="wm.65" size="8192" crc="92c1e39e" sha1="a701a66ed75fbc0be4819751dabb86e51a1dbbc4" region="tiles" offset="2000" />
    <rom name="wm.81" size="8192" crc="6a01ff2a" sha1="f609fe9ec648dd428a6e2fc544585935d7adc562" region="tiles" offset="4000" />
    <rom name="wm.64" size="8192" crc="aae6449b" sha1="852d6c01420ea55e4215ec99adbb6896fa16a02d" region="tiles" offset="6000" />
    <rom name="wm.80" size="8192" crc="fc3f0bd4" sha1="887ff0d6c5fff0d1e631518fc89901d43a0d7088" region="tiles" offset="8000" />
    <rom name="wm.63" size="8192" crc="c2ce9b93" sha1="934f4dddf2f42a23f91385dd62fc166b117063b8" region="tiles" offset="a000" />
    <rom name="wm.86" size="16384" crc="238ae0e5" sha1="af18cfe7f8103358a0ce2aef9bbd949fdc0bfbfc" region="sprites" offset="0" />
    <rom name="wm.93" size="16384" crc="a2f19170" sha1="47dacc380b09c6365c737d320145cedad54ecedb" region="sprites" offset="4000" />
    <rom name="pr-5317.106" size="256" crc="648350b8" sha1="c7986aa9127ef5b50b845434cb4e81dff9861cd2" region="lookup_proms" offset="0" />
    <device_ref name="sega_315_5064" />
    <device_ref name="z80" />
    <device_ref name="timer" />
    <device_ref name="i8255" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="sn76489a" />
    <device_ref name="sn76489a" />
    <chip type="cpu" tag="maincpu" name="Sega 315-5064" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="sn1" name="SN76489A" clock="2000000" />
    <chip type="audio" tag="sn2" name="SN76489A" clock="4000000" />
    <display tag="screen" type="raster" rotate="270" width="479" height="224" refresh="60.096154" pixclock="10000000" htotal="640" hbend="16" hbstart="495" vtotal="260" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2" service="yes">
      <control type="doublejoy" player="1" buttons="1" ways="8" ways2="8" />
      <control type="doublejoy" player="2" buttons="1" ways="8" ways2="8" />
    </input>
    <dipswitch name="Coin A" tag="SWA" mask="15">
      <diplocation name="SWA" number="1" />
      <diplocation name="SWA" number="2" />
      <diplocation name="SWA" number="3" />
      <diplocation name="SWA" number="4" />
      <dipvalue name="4 Coins/1 Credit" value="7" />
      <dipvalue name="3 Coins/1 Credit" value="8" />
      <dipvalue name="2 Coins/1 Credit" value="9" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="5" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="4" />
      <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="1" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="2" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="3" />
      <dipvalue name="2 Coins/3 Credits" value="6" />
      <dipvalue name="1 Coin/2 Credits" value="14" />
      <dipvalue name="1 Coin/3 Credits" value="13" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="1 Coin/5 Credits" value="11" />
      <dipvalue name="1 Coin/6 Credits" value="10" />
    </dipswitch>
    <dipswitch name="Coin B" tag="SWA" mask="240">
      <diplocation name="SWA" number="5" />
      <diplocation name="SWA" number="6" />
      <diplocation name="SWA" number="7" />
      <diplocation name="SWA" number="8" />
      <dipvalue name="4 Coins/1 Credit" value="112" />
      <dipvalue name="3 Coins/1 Credit" value="128" />
      <dipvalue name="2 Coins/1 Credit" value="144" />
      <dipvalue name="2 Coins/1 Credit 5/3 6/4" value="80" />
      <dipvalue name="2 Coins/1 Credit 4/3" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="240" default="yes" />
      <dipvalue name="1 Coin/1 Credit 2/3" value="16" />
      <dipvalue name="1 Coin/1 Credit 4/5" value="32" />
      <dipvalue name="1 Coin/1 Credit 5/6" value="48" />
      <dipvalue name="2 Coins/3 Credits" value="96" />
      <dipvalue name="1 Coin/2 Credits" value="224" />
      <dipvalue name="1 Coin/3 Credits" value="208" />
      <dipvalue name="1 Coin/4 Credits" value="192" />
      <dipvalue name="1 Coin/5 Credits" value="176" />
      <dipvalue name="1 Coin/6 Credits" value="160" />
    </dipswitch>
    <dipswitch name="Cabinet" tag="SWB" mask="1">
      <diplocation name="SWB" number="1" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SWB" mask="2">
      <diplocation name="SWB" number="2" />
      <dipvalue name="Off" value="2" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Time" tag="SWB" mask="12">
      <diplocation name="SWB" number="3" />
      <diplocation name="SWB" number="4" />
      <dipvalue name="Normal" value="12" default="yes" />
      <dipvalue name="Fast" value="8" />
      <dipvalue name="Faster" value="4" />
      <dipvalue name="Fastest" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWB" mask="16">
      <diplocation name="SWB" number="5" />
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="SWB" mask="32">
      <diplocation name="SWB" number="6" />
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="SWB" mask="64">
      <diplocation name="SWB" number="7" />
      <dipvalue name="Easy" value="64" default="yes" />
      <dipvalue name="Hard" value="0" />
    </dipswitch>
    <dipswitch name="SW 0 Read From" tag="SWB" mask="128">
      <diplocation name="SWB" number="8" />
      <dipvalue name="Port $0D" value="128" default="yes" />
      <dipvalue name="Port $10" value="0" />
    </dipswitch>
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SWA" />
    <port tag=":SWB" />
    <port tag=":SYSTEM" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
</datafile>