<?xml version="1.0" encoding="utf-8"?>
<datafile>
  <header>
    <name>Toaplan</name>
    <description>Toaplan 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="batrider" sourcefile="toaplan2.cpp">
    <description>Armed Police Batrider (Europe) (Fri Feb 13 1998)</description>
    <year>1998</year>
    <manufacturer>Raizing / Eighting</manufacturer>
    <rom name="prg0_europe.u22" size="524288" crc="91d3e975" sha1="682885fc17f2424d475c282f239f42faf1aae076" region="maincpu" offset="0" />
    <rom name="prg1b.u23" size="524288" crc="8e70b492" sha1="f84f2039826ae815afb058d71c1dbd190f9d524d" region="maincpu" offset="1" />
    <rom name="prg2.u21" size="524288" crc="bdaa5fbf" sha1="abd72ac633c0c8e7b4b1d7902c0d6e014ba995fe" region="maincpu" offset="100000" />
    <rom name="prg3.u24" size="524288" crc="7aa9f941" sha1="99bdbad7a96d461073b06a53c50fc57c2fd6fc6d" region="maincpu" offset="100001" />
    <rom name="snd.u77" size="262144" crc="56682696" sha1="a372450d9a6d535123dfc31d8116074b168ab646" region="audiocpu" offset="0" />
    <rom name="rom-1.bin" size="4194304" crc="0df69ca2" sha1="49670347ebd7e1067ff988cf842b275b7ee7b5f7" region="gp9001_0" offset="0" />
    <rom name="rom-3.bin" size="4194304" crc="60167d38" sha1="fd2429808c59ef51fd5f5db84ea89a8dc504186e" region="gp9001_0" offset="400000" />
    <rom name="rom-2.bin" size="4194304" crc="1bfea593" sha1="ce06dc3097ae56b0df56d104bbf7efc9b5d968d4" region="gp9001_0" offset="800000" />
    <rom name="rom-4.bin" size="4194304" crc="bee03c94" sha1="5bc1e6769c42857c03456426b502fcb86a114f19" region="gp9001_0" offset="c00000" />
    <rom name="rom-5.bin" size="1048576" crc="4274daf6" sha1="85557b4707d529e5914f03c7a856864f5c24950e" region="oki1" offset="0" />
    <rom name="rom-6.bin" size="1048576" crc="2a1c2426" sha1="8abc3688ffc5ebb94b8d5118d4fa0908f07fe791" region="oki2" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="address_map_bank" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="5333333" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="4000000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="3200000" />
    <chip type="audio" tag="oki2" name="OKI MSM6295 ADPCM" clock="3200000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Credits to Start" tag="DSW" mask="2">
      <condition tag="DSW" mask="28" relation="ne" value="28" />
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="1" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="2" value="2">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Joystick Mode" tag="DSW" mask="2">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Normal" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="90 degrees ACW" value="2">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="28">
      <diplocation name="SW1" number="3" inverted="yes" />
      <diplocation name="SW1" number="4" inverted="yes" />
      <diplocation name="SW1" number="5" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="24" />
      <dipvalue name="3 Coins/1 Credit" value="20" />
      <dipvalue name="2 Coins/1 Credit" value="16" />
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="1 Coin/2 Credits" value="4" />
      <dipvalue name="1 Coin/3 Credits" value="8" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="Free Play" value="28" />
    </dipswitch>
    <dipswitch name="Hit Score" tag="DSW" mask="32">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="32">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Sound Effect" tag="DSW" mask="64">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="64">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="128">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="128">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="224">
      <condition tag="DSW" mask="28" relation="ne" value="28" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="192">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="160">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="32">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="96">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="768">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="256" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="512" />
      <dipvalue name="Very Hard" value="768" />
    </dipswitch>
    <dipswitch name="Timer" tag="DSW" mask="3072">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="Highest" value="3072" />
      <dipvalue name="High" value="2048" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Low" value="1024" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSW" mask="12288">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="12288" />
      <dipvalue name="2" value="8192" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="4" value="4096" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSW" mask="49152">
      <diplocation name="SW2" number="7" inverted="yes" />
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="None" value="49152" />
      <dipvalue name="Every 2000k" value="32768" />
      <dipvalue name="Every 1500k" value="0" default="yes" />
      <dipvalue name="Every 1000k" value="16384" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS-DSW" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="SYS-DSW" mask="256">
      <diplocation name="SW3" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="256" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SYS-DSW" mask="512">
      <diplocation name="SW3" number="2" inverted="yes" />
      <dipvalue name="Off" value="512" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Stage Edit" tag="SYS-DSW" mask="1024">
      <diplocation name="SW3" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1024" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="SYS-DSW" mask="2048">
      <diplocation name="SW3" number="4" inverted="yes" />
      <dipvalue name="No" value="2048" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Invulnerability (Cheat)" tag="SYS-DSW" mask="4096">
      <diplocation name="SW3" number="5" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4096" />
    </dipswitch>
    <dipswitch name="Guest Players" tag="SYS-DSW" mask="8192">
      <diplocation name="SW3" number="6" inverted="yes" />
      <dipvalue name="Off" value="8192" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Player Select" tag="SYS-DSW" mask="16384">
      <diplocation name="SW3" number="7" inverted="yes" />
      <dipvalue name="Off" value="16384" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Special Course" tag="SYS-DSW" mask="32768">
      <diplocation name="SW3" number="8" inverted="yes" />
      <dipvalue name="Off" value="32768" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN" />
    <port tag=":SYS-DSW" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="batriderc" sourcefile="toaplan2.cpp" cloneof="batrider" romof="batrider">
    <description>Armed Police Batrider (China) (Fri Feb 13 1998)</description>
    <year>1998</year>
    <manufacturer>Raizing / Eighting</manufacturer>
    <rom name="prg0_china.u22" size="524288" crc="c3b91f7e" sha1="6b2376c37808dccda296d90ccd7f577ccff4e4dc" region="maincpu" offset="0" />
    <rom name="prg1b.u23" merge="prg1b.u23" size="524288" crc="8e70b492" sha1="f84f2039826ae815afb058d71c1dbd190f9d524d" region="maincpu" offset="1" />
    <rom name="prg2.u21" merge="prg2.u21" size="524288" crc="bdaa5fbf" sha1="abd72ac633c0c8e7b4b1d7902c0d6e014ba995fe" region="maincpu" offset="100000" />
    <rom name="prg3.u24" merge="prg3.u24" size="524288" crc="7aa9f941" sha1="99bdbad7a96d461073b06a53c50fc57c2fd6fc6d" region="maincpu" offset="100001" />
    <rom name="snd.u77" merge="snd.u77" size="262144" crc="56682696" sha1="a372450d9a6d535123dfc31d8116074b168ab646" region="audiocpu" offset="0" />
    <rom name="rom-1.bin" merge="rom-1.bin" size="4194304" crc="0df69ca2" sha1="49670347ebd7e1067ff988cf842b275b7ee7b5f7" region="gp9001_0" offset="0" />
    <rom name="rom-3.bin" merge="rom-3.bin" size="4194304" crc="60167d38" sha1="fd2429808c59ef51fd5f5db84ea89a8dc504186e" region="gp9001_0" offset="400000" />
    <rom name="rom-2.bin" merge="rom-2.bin" size="4194304" crc="1bfea593" sha1="ce06dc3097ae56b0df56d104bbf7efc9b5d968d4" region="gp9001_0" offset="800000" />
    <rom name="rom-4.bin" merge="rom-4.bin" size="4194304" crc="bee03c94" sha1="5bc1e6769c42857c03456426b502fcb86a114f19" region="gp9001_0" offset="c00000" />
    <rom name="rom-5.bin" merge="rom-5.bin" size="1048576" crc="4274daf6" sha1="85557b4707d529e5914f03c7a856864f5c24950e" region="oki1" offset="0" />
    <rom name="rom-6.bin" merge="rom-6.bin" size="1048576" crc="2a1c2426" sha1="8abc3688ffc5ebb94b8d5118d4fa0908f07fe791" region="oki2" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="address_map_bank" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="5333333" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="4000000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="3200000" />
    <chip type="audio" tag="oki2" name="OKI MSM6295 ADPCM" clock="3200000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Credits to Start" tag="DSW" mask="2">
      <condition tag="DSW" mask="28" relation="ne" value="28" />
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="1" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="2" value="2">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Joystick Mode" tag="DSW" mask="2">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Normal" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="90 degrees ACW" value="2">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="28">
      <diplocation name="SW1" number="3" inverted="yes" />
      <diplocation name="SW1" number="4" inverted="yes" />
      <diplocation name="SW1" number="5" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="24" />
      <dipvalue name="3 Coins/1 Credit" value="20" />
      <dipvalue name="2 Coins/1 Credit" value="16" />
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="1 Coin/2 Credits" value="4" />
      <dipvalue name="1 Coin/3 Credits" value="8" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="Free Play" value="28" />
    </dipswitch>
    <dipswitch name="Hit Score" tag="DSW" mask="32">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="32">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Sound Effect" tag="DSW" mask="64">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="64">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="128">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="128">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="224">
      <condition tag="DSW" mask="28" relation="ne" value="28" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="192">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="160">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="32">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="96">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="768">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="256" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="512" />
      <dipvalue name="Very Hard" value="768" />
    </dipswitch>
    <dipswitch name="Timer" tag="DSW" mask="3072">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="Highest" value="3072" />
      <dipvalue name="High" value="2048" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Low" value="1024" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSW" mask="12288">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="12288" />
      <dipvalue name="2" value="8192" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="4" value="4096" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSW" mask="49152">
      <diplocation name="SW2" number="7" inverted="yes" />
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="None" value="49152" />
      <dipvalue name="Every 2000k" value="32768" />
      <dipvalue name="Every 1500k" value="0" default="yes" />
      <dipvalue name="Every 1000k" value="16384" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS-DSW" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="SYS-DSW" mask="256">
      <diplocation name="SW3" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="256" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SYS-DSW" mask="512">
      <diplocation name="SW3" number="2" inverted="yes" />
      <dipvalue name="Off" value="512" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Stage Edit" tag="SYS-DSW" mask="1024">
      <diplocation name="SW3" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1024" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="SYS-DSW" mask="2048">
      <diplocation name="SW3" number="4" inverted="yes" />
      <dipvalue name="No" value="2048" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Invulnerability (Cheat)" tag="SYS-DSW" mask="4096">
      <diplocation name="SW3" number="5" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4096" />
    </dipswitch>
    <dipswitch name="Guest Players" tag="SYS-DSW" mask="8192">
      <diplocation name="SW3" number="6" inverted="yes" />
      <dipvalue name="Off" value="8192" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Player Select" tag="SYS-DSW" mask="16384">
      <diplocation name="SW3" number="7" inverted="yes" />
      <dipvalue name="Off" value="16384" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Special Course" tag="SYS-DSW" mask="32768">
      <diplocation name="SW3" number="8" inverted="yes" />
      <dipvalue name="Off" value="32768" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN" />
    <port tag=":SYS-DSW" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="batriderhk" sourcefile="toaplan2.cpp" cloneof="batrider" romof="batrider">
    <description>Armed Police Batrider (Hong Kong) (Mon Dec 22 1997)</description>
    <year>1998</year>
    <manufacturer>Raizing / Eighting</manufacturer>
    <rom name="prg0.u22" size="524288" crc="00afbb7c" sha1="a4b6331e0fcab7d0c43fc43adb701f1248247b41" region="maincpu" offset="0" />
    <rom name="prg1.u23" size="524288" crc="8ae7f592" sha1="8a20ebf85eca621f578d2302c3a3988647b077a7" region="maincpu" offset="1" />
    <rom name="prg2.u21" merge="prg2.u21" size="524288" crc="bdaa5fbf" sha1="abd72ac633c0c8e7b4b1d7902c0d6e014ba995fe" region="maincpu" offset="100000" />
    <rom name="prg3.u24" merge="prg3.u24" size="524288" crc="7aa9f941" sha1="99bdbad7a96d461073b06a53c50fc57c2fd6fc6d" region="maincpu" offset="100001" />
    <rom name="snd.u77" merge="snd.u77" size="262144" crc="56682696" sha1="a372450d9a6d535123dfc31d8116074b168ab646" region="audiocpu" offset="0" />
    <rom name="rom-1.bin" merge="rom-1.bin" size="4194304" crc="0df69ca2" sha1="49670347ebd7e1067ff988cf842b275b7ee7b5f7" region="gp9001_0" offset="0" />
    <rom name="rom-3.bin" merge="rom-3.bin" size="4194304" crc="60167d38" sha1="fd2429808c59ef51fd5f5db84ea89a8dc504186e" region="gp9001_0" offset="400000" />
    <rom name="rom-2.bin" merge="rom-2.bin" size="4194304" crc="1bfea593" sha1="ce06dc3097ae56b0df56d104bbf7efc9b5d968d4" region="gp9001_0" offset="800000" />
    <rom name="rom-4.bin" merge="rom-4.bin" size="4194304" crc="bee03c94" sha1="5bc1e6769c42857c03456426b502fcb86a114f19" region="gp9001_0" offset="c00000" />
    <rom name="rom-5.bin" merge="rom-5.bin" size="1048576" crc="4274daf6" sha1="85557b4707d529e5914f03c7a856864f5c24950e" region="oki1" offset="0" />
    <rom name="rom-6.bin" merge="rom-6.bin" size="1048576" crc="2a1c2426" sha1="8abc3688ffc5ebb94b8d5118d4fa0908f07fe791" region="oki2" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="address_map_bank" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="5333333" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="4000000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="3200000" />
    <chip type="audio" tag="oki2" name="OKI MSM6295 ADPCM" clock="3200000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Credits to Start" tag="DSW" mask="2">
      <condition tag="DSW" mask="28" relation="ne" value="28" />
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="1" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="2" value="2">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Joystick Mode" tag="DSW" mask="2">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Normal" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="90 degrees ACW" value="2">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="28">
      <diplocation name="SW1" number="3" inverted="yes" />
      <diplocation name="SW1" number="4" inverted="yes" />
      <diplocation name="SW1" number="5" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="24" />
      <dipvalue name="3 Coins/1 Credit" value="20" />
      <dipvalue name="2 Coins/1 Credit" value="16" />
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="1 Coin/2 Credits" value="4" />
      <dipvalue name="1 Coin/3 Credits" value="8" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="Free Play" value="28" />
    </dipswitch>
    <dipswitch name="Hit Score" tag="DSW" mask="32">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="32">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Sound Effect" tag="DSW" mask="64">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="64">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="128">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="128">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="224">
      <condition tag="DSW" mask="28" relation="ne" value="28" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="192">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="160">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="32">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="96">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="768">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="256" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="512" />
      <dipvalue name="Very Hard" value="768" />
    </dipswitch>
    <dipswitch name="Timer" tag="DSW" mask="3072">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="Highest" value="3072" />
      <dipvalue name="High" value="2048" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Low" value="1024" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSW" mask="12288">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="12288" />
      <dipvalue name="2" value="8192" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="4" value="4096" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSW" mask="49152">
      <diplocation name="SW2" number="7" inverted="yes" />
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="None" value="49152" />
      <dipvalue name="Every 2000k" value="32768" />
      <dipvalue name="Every 1500k" value="0" default="yes" />
      <dipvalue name="Every 1000k" value="16384" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS-DSW" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="SYS-DSW" mask="256">
      <diplocation name="SW3" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="256" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SYS-DSW" mask="512">
      <diplocation name="SW3" number="2" inverted="yes" />
      <dipvalue name="Off" value="512" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Stage Edit" tag="SYS-DSW" mask="1024">
      <diplocation name="SW3" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1024" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="SYS-DSW" mask="2048">
      <diplocation name="SW3" number="4" inverted="yes" />
      <dipvalue name="No" value="2048" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Invulnerability (Cheat)" tag="SYS-DSW" mask="4096">
      <diplocation name="SW3" number="5" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4096" />
    </dipswitch>
    <dipswitch name="Guest Players" tag="SYS-DSW" mask="8192">
      <diplocation name="SW3" number="6" inverted="yes" />
      <dipvalue name="Off" value="8192" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Player Select" tag="SYS-DSW" mask="16384">
      <diplocation name="SW3" number="7" inverted="yes" />
      <dipvalue name="Off" value="16384" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Special Course" tag="SYS-DSW" mask="32768">
      <diplocation name="SW3" number="8" inverted="yes" />
      <dipvalue name="Off" value="32768" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN" />
    <port tag=":SYS-DSW" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="batriderj" sourcefile="toaplan2.cpp" cloneof="batrider" romof="batrider">
    <description>Armed Police Batrider (Japan, B version) (Fri Feb 13 1998)</description>
    <year>1998</year>
    <manufacturer>Raizing / Eighting</manufacturer>
    <rom name="prg0b.u22" size="524288" crc="4f3fc729" sha1="b32d51c254741b82171a86c271679522a7aefd34" region="maincpu" offset="0" />
    <rom name="prg1b.u23" merge="prg1b.u23" size="524288" crc="8e70b492" sha1="f84f2039826ae815afb058d71c1dbd190f9d524d" region="maincpu" offset="1" />
    <rom name="prg2.u21" merge="prg2.u21" size="524288" crc="bdaa5fbf" sha1="abd72ac633c0c8e7b4b1d7902c0d6e014ba995fe" region="maincpu" offset="100000" />
    <rom name="prg3.u24" merge="prg3.u24" size="524288" crc="7aa9f941" sha1="99bdbad7a96d461073b06a53c50fc57c2fd6fc6d" region="maincpu" offset="100001" />
    <rom name="snd.u77" merge="snd.u77" size="262144" crc="56682696" sha1="a372450d9a6d535123dfc31d8116074b168ab646" region="audiocpu" offset="0" />
    <rom name="rom-1.bin" merge="rom-1.bin" size="4194304" crc="0df69ca2" sha1="49670347ebd7e1067ff988cf842b275b7ee7b5f7" region="gp9001_0" offset="0" />
    <rom name="rom-3.bin" merge="rom-3.bin" size="4194304" crc="60167d38" sha1="fd2429808c59ef51fd5f5db84ea89a8dc504186e" region="gp9001_0" offset="400000" />
    <rom name="rom-2.bin" merge="rom-2.bin" size="4194304" crc="1bfea593" sha1="ce06dc3097ae56b0df56d104bbf7efc9b5d968d4" region="gp9001_0" offset="800000" />
    <rom name="rom-4.bin" merge="rom-4.bin" size="4194304" crc="bee03c94" sha1="5bc1e6769c42857c03456426b502fcb86a114f19" region="gp9001_0" offset="c00000" />
    <rom name="rom-5.bin" merge="rom-5.bin" size="1048576" crc="4274daf6" sha1="85557b4707d529e5914f03c7a856864f5c24950e" region="oki1" offset="0" />
    <rom name="rom-6.bin" merge="rom-6.bin" size="1048576" crc="2a1c2426" sha1="8abc3688ffc5ebb94b8d5118d4fa0908f07fe791" region="oki2" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="address_map_bank" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="5333333" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="4000000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="3200000" />
    <chip type="audio" tag="oki2" name="OKI MSM6295 ADPCM" clock="3200000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Credits to Start" tag="DSW" mask="2">
      <condition tag="DSW" mask="28" relation="ne" value="28" />
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="1" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="2" value="2">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Joystick Mode" tag="DSW" mask="2">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Normal" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="90 degrees ACW" value="2">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="28">
      <diplocation name="SW1" number="3" inverted="yes" />
      <diplocation name="SW1" number="4" inverted="yes" />
      <diplocation name="SW1" number="5" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="24" />
      <dipvalue name="3 Coins/1 Credit" value="20" />
      <dipvalue name="2 Coins/1 Credit" value="16" />
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="1 Coin/2 Credits" value="4" />
      <dipvalue name="1 Coin/3 Credits" value="8" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="Free Play" value="28" />
    </dipswitch>
    <dipswitch name="Hit Score" tag="DSW" mask="32">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="32">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Sound Effect" tag="DSW" mask="64">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="64">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="128">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="128">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="224">
      <condition tag="DSW" mask="28" relation="ne" value="28" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="192">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="160">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="32">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="96">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="768">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="256" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="512" />
      <dipvalue name="Very Hard" value="768" />
    </dipswitch>
    <dipswitch name="Timer" tag="DSW" mask="3072">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="Highest" value="3072" />
      <dipvalue name="High" value="2048" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Low" value="1024" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSW" mask="12288">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="12288" />
      <dipvalue name="2" value="8192" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="4" value="4096" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSW" mask="49152">
      <diplocation name="SW2" number="7" inverted="yes" />
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="None" value="49152" />
      <dipvalue name="Every 2000k" value="32768" />
      <dipvalue name="Every 1500k" value="0" default="yes" />
      <dipvalue name="Every 1000k" value="16384" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS-DSW" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="SYS-DSW" mask="256">
      <diplocation name="SW3" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="256" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SYS-DSW" mask="512">
      <diplocation name="SW3" number="2" inverted="yes" />
      <dipvalue name="Off" value="512" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Stage Edit" tag="SYS-DSW" mask="1024">
      <diplocation name="SW3" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1024" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="SYS-DSW" mask="2048">
      <diplocation name="SW3" number="4" inverted="yes" />
      <dipvalue name="No" value="2048" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Invulnerability (Cheat)" tag="SYS-DSW" mask="4096">
      <diplocation name="SW3" number="5" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4096" />
    </dipswitch>
    <dipswitch name="Guest Players" tag="SYS-DSW" mask="8192">
      <diplocation name="SW3" number="6" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="8192" />
    </dipswitch>
    <dipswitch name="Player Select" tag="SYS-DSW" mask="16384">
      <diplocation name="SW3" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="16384" />
    </dipswitch>
    <dipswitch name="Special Course" tag="SYS-DSW" mask="32768">
      <diplocation name="SW3" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="32768" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN" />
    <port tag=":SYS-DSW" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="batriderja" sourcefile="toaplan2.cpp" cloneof="batrider" romof="batrider">
    <description>Armed Police Batrider (Japan, older version) (Mon Dec 22 1997)</description>
    <year>1998</year>
    <manufacturer>Raizing / Eighting</manufacturer>
    <rom name="prg0.bin" size="524288" crc="f93ea27c" sha1="41023c2ee1efd70b5aa9c70e1ddd9e5c3d51d68a" region="maincpu" offset="0" />
    <rom name="prg1.u23" size="524288" crc="8ae7f592" sha1="8a20ebf85eca621f578d2302c3a3988647b077a7" region="maincpu" offset="1" />
    <rom name="prg2.u21" merge="prg2.u21" size="524288" crc="bdaa5fbf" sha1="abd72ac633c0c8e7b4b1d7902c0d6e014ba995fe" region="maincpu" offset="100000" />
    <rom name="prg3.u24" merge="prg3.u24" size="524288" crc="7aa9f941" sha1="99bdbad7a96d461073b06a53c50fc57c2fd6fc6d" region="maincpu" offset="100001" />
    <rom name="snd.u77" merge="snd.u77" size="262144" crc="56682696" sha1="a372450d9a6d535123dfc31d8116074b168ab646" region="audiocpu" offset="0" />
    <rom name="rom-1.bin" merge="rom-1.bin" size="4194304" crc="0df69ca2" sha1="49670347ebd7e1067ff988cf842b275b7ee7b5f7" region="gp9001_0" offset="0" />
    <rom name="rom-3.bin" merge="rom-3.bin" size="4194304" crc="60167d38" sha1="fd2429808c59ef51fd5f5db84ea89a8dc504186e" region="gp9001_0" offset="400000" />
    <rom name="rom-2.bin" merge="rom-2.bin" size="4194304" crc="1bfea593" sha1="ce06dc3097ae56b0df56d104bbf7efc9b5d968d4" region="gp9001_0" offset="800000" />
    <rom name="rom-4.bin" merge="rom-4.bin" size="4194304" crc="bee03c94" sha1="5bc1e6769c42857c03456426b502fcb86a114f19" region="gp9001_0" offset="c00000" />
    <rom name="rom-5.bin" merge="rom-5.bin" size="1048576" crc="4274daf6" sha1="85557b4707d529e5914f03c7a856864f5c24950e" region="oki1" offset="0" />
    <rom name="rom-6.bin" merge="rom-6.bin" size="1048576" crc="2a1c2426" sha1="8abc3688ffc5ebb94b8d5118d4fa0908f07fe791" region="oki2" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="address_map_bank" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="5333333" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="4000000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="3200000" />
    <chip type="audio" tag="oki2" name="OKI MSM6295 ADPCM" clock="3200000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Credits to Start" tag="DSW" mask="2">
      <condition tag="DSW" mask="28" relation="ne" value="28" />
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="1" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="2" value="2">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Joystick Mode" tag="DSW" mask="2">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Normal" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="90 degrees ACW" value="2">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="28">
      <diplocation name="SW1" number="3" inverted="yes" />
      <diplocation name="SW1" number="4" inverted="yes" />
      <diplocation name="SW1" number="5" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="24" />
      <dipvalue name="3 Coins/1 Credit" value="20" />
      <dipvalue name="2 Coins/1 Credit" value="16" />
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="1 Coin/2 Credits" value="4" />
      <dipvalue name="1 Coin/3 Credits" value="8" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="Free Play" value="28" />
    </dipswitch>
    <dipswitch name="Hit Score" tag="DSW" mask="32">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="32">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Sound Effect" tag="DSW" mask="64">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="64">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="128">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="128">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="224">
      <condition tag="DSW" mask="28" relation="ne" value="28" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="192">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="160">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="32">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="96">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="768">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="256" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="512" />
      <dipvalue name="Very Hard" value="768" />
    </dipswitch>
    <dipswitch name="Timer" tag="DSW" mask="3072">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="Highest" value="3072" />
      <dipvalue name="High" value="2048" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Low" value="1024" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSW" mask="12288">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="12288" />
      <dipvalue name="2" value="8192" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="4" value="4096" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSW" mask="49152">
      <diplocation name="SW2" number="7" inverted="yes" />
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="None" value="49152" />
      <dipvalue name="Every 2000k" value="32768" />
      <dipvalue name="Every 1500k" value="0" default="yes" />
      <dipvalue name="Every 1000k" value="16384" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS-DSW" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="SYS-DSW" mask="256">
      <diplocation name="SW3" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="256" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SYS-DSW" mask="512">
      <diplocation name="SW3" number="2" inverted="yes" />
      <dipvalue name="Off" value="512" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Stage Edit" tag="SYS-DSW" mask="1024">
      <diplocation name="SW3" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1024" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="SYS-DSW" mask="2048">
      <diplocation name="SW3" number="4" inverted="yes" />
      <dipvalue name="No" value="2048" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Invulnerability (Cheat)" tag="SYS-DSW" mask="4096">
      <diplocation name="SW3" number="5" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4096" />
    </dipswitch>
    <dipswitch name="Guest Players" tag="SYS-DSW" mask="8192">
      <diplocation name="SW3" number="6" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="8192" />
    </dipswitch>
    <dipswitch name="Player Select" tag="SYS-DSW" mask="16384">
      <diplocation name="SW3" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="16384" />
    </dipswitch>
    <dipswitch name="Special Course" tag="SYS-DSW" mask="32768">
      <diplocation name="SW3" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="32768" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN" />
    <port tag=":SYS-DSW" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="batriderk" sourcefile="toaplan2.cpp" cloneof="batrider" romof="batrider">
    <description>Armed Police Batrider (Korea) (Fri Feb 13 1998)</description>
    <year>1998</year>
    <manufacturer>Raizing / Eighting</manufacturer>
    <rom name="prg0_korea.u22" size="524288" crc="d9d8c907" sha1="69c197f2a41f288913f042de9eb8274c0df3ac27" region="maincpu" offset="0" />
    <rom name="prg1b.u23" merge="prg1b.u23" size="524288" crc="8e70b492" sha1="f84f2039826ae815afb058d71c1dbd190f9d524d" region="maincpu" offset="1" />
    <rom name="prg2.u21" merge="prg2.u21" size="524288" crc="bdaa5fbf" sha1="abd72ac633c0c8e7b4b1d7902c0d6e014ba995fe" region="maincpu" offset="100000" />
    <rom name="prg3.u24" merge="prg3.u24" size="524288" crc="7aa9f941" sha1="99bdbad7a96d461073b06a53c50fc57c2fd6fc6d" region="maincpu" offset="100001" />
    <rom name="snd.u77" merge="snd.u77" size="262144" crc="56682696" sha1="a372450d9a6d535123dfc31d8116074b168ab646" region="audiocpu" offset="0" />
    <rom name="rom-1.bin" merge="rom-1.bin" size="4194304" crc="0df69ca2" sha1="49670347ebd7e1067ff988cf842b275b7ee7b5f7" region="gp9001_0" offset="0" />
    <rom name="rom-3.bin" merge="rom-3.bin" size="4194304" crc="60167d38" sha1="fd2429808c59ef51fd5f5db84ea89a8dc504186e" region="gp9001_0" offset="400000" />
    <rom name="rom-2.bin" merge="rom-2.bin" size="4194304" crc="1bfea593" sha1="ce06dc3097ae56b0df56d104bbf7efc9b5d968d4" region="gp9001_0" offset="800000" />
    <rom name="rom-4.bin" merge="rom-4.bin" size="4194304" crc="bee03c94" sha1="5bc1e6769c42857c03456426b502fcb86a114f19" region="gp9001_0" offset="c00000" />
    <rom name="rom-5.bin" merge="rom-5.bin" size="1048576" crc="4274daf6" sha1="85557b4707d529e5914f03c7a856864f5c24950e" region="oki1" offset="0" />
    <rom name="rom-6.bin" merge="rom-6.bin" size="1048576" crc="2a1c2426" sha1="8abc3688ffc5ebb94b8d5118d4fa0908f07fe791" region="oki2" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="address_map_bank" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="5333333" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="4000000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="3200000" />
    <chip type="audio" tag="oki2" name="OKI MSM6295 ADPCM" clock="3200000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Credits to Start" tag="DSW" mask="2">
      <condition tag="DSW" mask="28" relation="ne" value="28" />
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="1" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="2" value="2">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Joystick Mode" tag="DSW" mask="2">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Normal" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="90 degrees ACW" value="2">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="28">
      <diplocation name="SW1" number="3" inverted="yes" />
      <diplocation name="SW1" number="4" inverted="yes" />
      <diplocation name="SW1" number="5" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="24" />
      <dipvalue name="3 Coins/1 Credit" value="20" />
      <dipvalue name="2 Coins/1 Credit" value="16" />
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="1 Coin/2 Credits" value="4" />
      <dipvalue name="1 Coin/3 Credits" value="8" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="Free Play" value="28" />
    </dipswitch>
    <dipswitch name="Hit Score" tag="DSW" mask="32">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="32">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Sound Effect" tag="DSW" mask="64">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="64">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="128">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="128">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="224">
      <condition tag="DSW" mask="28" relation="ne" value="28" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="192">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="160">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="32">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="96">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="768">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="256" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="512" />
      <dipvalue name="Very Hard" value="768" />
    </dipswitch>
    <dipswitch name="Timer" tag="DSW" mask="3072">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="Highest" value="3072" />
      <dipvalue name="High" value="2048" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Low" value="1024" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSW" mask="12288">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="12288" />
      <dipvalue name="2" value="8192" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="4" value="4096" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSW" mask="49152">
      <diplocation name="SW2" number="7" inverted="yes" />
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="None" value="49152" />
      <dipvalue name="Every 2000k" value="32768" />
      <dipvalue name="Every 1500k" value="0" default="yes" />
      <dipvalue name="Every 1000k" value="16384" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS-DSW" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="SYS-DSW" mask="256">
      <diplocation name="SW3" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="256" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SYS-DSW" mask="512">
      <diplocation name="SW3" number="2" inverted="yes" />
      <dipvalue name="Off" value="512" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Stage Edit" tag="SYS-DSW" mask="1024">
      <diplocation name="SW3" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1024" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="SYS-DSW" mask="2048">
      <diplocation name="SW3" number="4" inverted="yes" />
      <dipvalue name="No" value="2048" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Invulnerability (Cheat)" tag="SYS-DSW" mask="4096">
      <diplocation name="SW3" number="5" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4096" />
    </dipswitch>
    <dipswitch name="Guest Players" tag="SYS-DSW" mask="8192">
      <diplocation name="SW3" number="6" inverted="yes" />
      <dipvalue name="Off" value="8192" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Player Select" tag="SYS-DSW" mask="16384">
      <diplocation name="SW3" number="7" inverted="yes" />
      <dipvalue name="Off" value="16384" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Special Course" tag="SYS-DSW" mask="32768">
      <diplocation name="SW3" number="8" inverted="yes" />
      <dipvalue name="Off" value="32768" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN" />
    <port tag=":SYS-DSW" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="batridert" sourcefile="toaplan2.cpp" cloneof="batrider" romof="batrider">
    <description>Armed Police Batrider (Taiwan) (Mon Dec 22 1997)</description>
    <year>1998</year>
    <manufacturer>Raizing / Eighting</manufacturer>
    <rom name="u22.bin" size="524288" crc="b135820e" sha1="c222887d18a0a3ea0fcc973b95b29d69c86f7ec3" region="maincpu" offset="0" />
    <rom name="prg1.u23" size="524288" crc="8ae7f592" sha1="8a20ebf85eca621f578d2302c3a3988647b077a7" region="maincpu" offset="1" />
    <rom name="prg2.u21" merge="prg2.u21" size="524288" crc="bdaa5fbf" sha1="abd72ac633c0c8e7b4b1d7902c0d6e014ba995fe" region="maincpu" offset="100000" />
    <rom name="prg3.u24" merge="prg3.u24" size="524288" crc="7aa9f941" sha1="99bdbad7a96d461073b06a53c50fc57c2fd6fc6d" region="maincpu" offset="100001" />
    <rom name="snd.u77" merge="snd.u77" size="262144" crc="56682696" sha1="a372450d9a6d535123dfc31d8116074b168ab646" region="audiocpu" offset="0" />
    <rom name="rom-1.bin" merge="rom-1.bin" size="4194304" crc="0df69ca2" sha1="49670347ebd7e1067ff988cf842b275b7ee7b5f7" region="gp9001_0" offset="0" />
    <rom name="rom-3.bin" merge="rom-3.bin" size="4194304" crc="60167d38" sha1="fd2429808c59ef51fd5f5db84ea89a8dc504186e" region="gp9001_0" offset="400000" />
    <rom name="rom-2.bin" merge="rom-2.bin" size="4194304" crc="1bfea593" sha1="ce06dc3097ae56b0df56d104bbf7efc9b5d968d4" region="gp9001_0" offset="800000" />
    <rom name="rom-4.bin" merge="rom-4.bin" size="4194304" crc="bee03c94" sha1="5bc1e6769c42857c03456426b502fcb86a114f19" region="gp9001_0" offset="c00000" />
    <rom name="rom-5.bin" merge="rom-5.bin" size="1048576" crc="4274daf6" sha1="85557b4707d529e5914f03c7a856864f5c24950e" region="oki1" offset="0" />
    <rom name="rom-6.bin" merge="rom-6.bin" size="1048576" crc="2a1c2426" sha1="8abc3688ffc5ebb94b8d5118d4fa0908f07fe791" region="oki2" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="address_map_bank" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="5333333" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="4000000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="3200000" />
    <chip type="audio" tag="oki2" name="OKI MSM6295 ADPCM" clock="3200000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Credits to Start" tag="DSW" mask="2">
      <condition tag="DSW" mask="28" relation="ne" value="28" />
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="1" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="2" value="2">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Joystick Mode" tag="DSW" mask="2">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Normal" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="90 degrees ACW" value="2">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="28">
      <diplocation name="SW1" number="3" inverted="yes" />
      <diplocation name="SW1" number="4" inverted="yes" />
      <diplocation name="SW1" number="5" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="24" />
      <dipvalue name="3 Coins/1 Credit" value="20" />
      <dipvalue name="2 Coins/1 Credit" value="16" />
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="1 Coin/2 Credits" value="4" />
      <dipvalue name="1 Coin/3 Credits" value="8" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="Free Play" value="28" />
    </dipswitch>
    <dipswitch name="Hit Score" tag="DSW" mask="32">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="32">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Sound Effect" tag="DSW" mask="64">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="64">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="128">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="128">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="224">
      <condition tag="DSW" mask="28" relation="ne" value="28" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="192">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="160">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="32">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="96">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="768">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="256" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="512" />
      <dipvalue name="Very Hard" value="768" />
    </dipswitch>
    <dipswitch name="Timer" tag="DSW" mask="3072">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="Highest" value="3072" />
      <dipvalue name="High" value="2048" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Low" value="1024" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSW" mask="12288">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="12288" />
      <dipvalue name="2" value="8192" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="4" value="4096" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSW" mask="49152">
      <diplocation name="SW2" number="7" inverted="yes" />
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="None" value="49152" />
      <dipvalue name="Every 2000k" value="32768" />
      <dipvalue name="Every 1500k" value="0" default="yes" />
      <dipvalue name="Every 1000k" value="16384" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS-DSW" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="SYS-DSW" mask="256">
      <diplocation name="SW3" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="256" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SYS-DSW" mask="512">
      <diplocation name="SW3" number="2" inverted="yes" />
      <dipvalue name="Off" value="512" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Stage Edit" tag="SYS-DSW" mask="1024">
      <diplocation name="SW3" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1024" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="SYS-DSW" mask="2048">
      <diplocation name="SW3" number="4" inverted="yes" />
      <dipvalue name="No" value="2048" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Invulnerability (Cheat)" tag="SYS-DSW" mask="4096">
      <diplocation name="SW3" number="5" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4096" />
    </dipswitch>
    <dipswitch name="Guest Players" tag="SYS-DSW" mask="8192">
      <diplocation name="SW3" number="6" inverted="yes" />
      <dipvalue name="Off" value="8192" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Player Select" tag="SYS-DSW" mask="16384">
      <diplocation name="SW3" number="7" inverted="yes" />
      <dipvalue name="Off" value="16384" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Special Course" tag="SYS-DSW" mask="32768">
      <diplocation name="SW3" number="8" inverted="yes" />
      <dipvalue name="Off" value="32768" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN" />
    <port tag=":SYS-DSW" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="batrideru" sourcefile="toaplan2.cpp" cloneof="batrider" romof="batrider">
    <description>Armed Police Batrider (USA) (Fri Feb 13 1998)</description>
    <year>1998</year>
    <manufacturer>Raizing / Eighting</manufacturer>
    <rom name="prg0_usa.u22" size="524288" crc="2049d007" sha1="f2a43547a6fc5083b03c1d59a85abbf6e1ce4cd9" region="maincpu" offset="0" />
    <rom name="prg1b.u23" merge="prg1b.u23" size="524288" crc="8e70b492" sha1="f84f2039826ae815afb058d71c1dbd190f9d524d" region="maincpu" offset="1" />
    <rom name="prg2.u21" merge="prg2.u21" size="524288" crc="bdaa5fbf" sha1="abd72ac633c0c8e7b4b1d7902c0d6e014ba995fe" region="maincpu" offset="100000" />
    <rom name="prg3.u24" merge="prg3.u24" size="524288" crc="7aa9f941" sha1="99bdbad7a96d461073b06a53c50fc57c2fd6fc6d" region="maincpu" offset="100001" />
    <rom name="snd.u77" merge="snd.u77" size="262144" crc="56682696" sha1="a372450d9a6d535123dfc31d8116074b168ab646" region="audiocpu" offset="0" />
    <rom name="rom-1.bin" merge="rom-1.bin" size="4194304" crc="0df69ca2" sha1="49670347ebd7e1067ff988cf842b275b7ee7b5f7" region="gp9001_0" offset="0" />
    <rom name="rom-3.bin" merge="rom-3.bin" size="4194304" crc="60167d38" sha1="fd2429808c59ef51fd5f5db84ea89a8dc504186e" region="gp9001_0" offset="400000" />
    <rom name="rom-2.bin" merge="rom-2.bin" size="4194304" crc="1bfea593" sha1="ce06dc3097ae56b0df56d104bbf7efc9b5d968d4" region="gp9001_0" offset="800000" />
    <rom name="rom-4.bin" merge="rom-4.bin" size="4194304" crc="bee03c94" sha1="5bc1e6769c42857c03456426b502fcb86a114f19" region="gp9001_0" offset="c00000" />
    <rom name="rom-5.bin" merge="rom-5.bin" size="1048576" crc="4274daf6" sha1="85557b4707d529e5914f03c7a856864f5c24950e" region="oki1" offset="0" />
    <rom name="rom-6.bin" merge="rom-6.bin" size="1048576" crc="2a1c2426" sha1="8abc3688ffc5ebb94b8d5118d4fa0908f07fe791" region="oki2" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="address_map_bank" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="5333333" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="4000000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="3200000" />
    <chip type="audio" tag="oki2" name="OKI MSM6295 ADPCM" clock="3200000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Credits to Start" tag="DSW" mask="2">
      <condition tag="DSW" mask="28" relation="ne" value="28" />
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="1" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="2" value="2">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Joystick Mode" tag="DSW" mask="2">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Normal" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="90 degrees ACW" value="2">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="28">
      <diplocation name="SW1" number="3" inverted="yes" />
      <diplocation name="SW1" number="4" inverted="yes" />
      <diplocation name="SW1" number="5" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="24" />
      <dipvalue name="3 Coins/1 Credit" value="20" />
      <dipvalue name="2 Coins/1 Credit" value="16" />
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="1 Coin/2 Credits" value="4" />
      <dipvalue name="1 Coin/3 Credits" value="8" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="Free Play" value="28" />
    </dipswitch>
    <dipswitch name="Hit Score" tag="DSW" mask="32">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="32">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Sound Effect" tag="DSW" mask="64">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="64">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="128">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="128">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="224">
      <condition tag="DSW" mask="28" relation="ne" value="28" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="192">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="160">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="32">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="96">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="768">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="256" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="512" />
      <dipvalue name="Very Hard" value="768" />
    </dipswitch>
    <dipswitch name="Timer" tag="DSW" mask="3072">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="Highest" value="3072" />
      <dipvalue name="High" value="2048" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Low" value="1024" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSW" mask="12288">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="12288" />
      <dipvalue name="2" value="8192" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="4" value="4096" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSW" mask="49152">
      <diplocation name="SW2" number="7" inverted="yes" />
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="None" value="49152" />
      <dipvalue name="Every 2000k" value="32768" />
      <dipvalue name="Every 1500k" value="0" default="yes" />
      <dipvalue name="Every 1000k" value="16384" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS-DSW" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="SYS-DSW" mask="256">
      <diplocation name="SW3" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="256" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SYS-DSW" mask="512">
      <diplocation name="SW3" number="2" inverted="yes" />
      <dipvalue name="Off" value="512" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Stage Edit" tag="SYS-DSW" mask="1024">
      <diplocation name="SW3" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1024" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="SYS-DSW" mask="2048">
      <diplocation name="SW3" number="4" inverted="yes" />
      <dipvalue name="No" value="2048" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Invulnerability (Cheat)" tag="SYS-DSW" mask="4096">
      <diplocation name="SW3" number="5" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4096" />
    </dipswitch>
    <dipswitch name="Guest Players" tag="SYS-DSW" mask="8192">
      <diplocation name="SW3" number="6" inverted="yes" />
      <dipvalue name="Off" value="8192" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Player Select" tag="SYS-DSW" mask="16384">
      <diplocation name="SW3" number="7" inverted="yes" />
      <dipvalue name="Off" value="16384" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Special Course" tag="SYS-DSW" mask="32768">
      <diplocation name="SW3" number="8" inverted="yes" />
      <dipvalue name="Off" value="32768" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN" />
    <port tag=":SYS-DSW" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="batsugun" sourcefile="toaplan2.cpp">
    <description>Batsugun</description>
    <year>1993</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="tp030_1a.bin" size="524288" crc="cb1d4554" sha1="ef31f24d77e1c13bdf5558a04a6253e2e3e6a790" region="maincpu" offset="0" />
    <rom name="tp030_3l.bin" size="1048576" crc="3024b793" sha1="e161db940f069279356fca2c5bf2753f07773705" region="gp9001_0" offset="0" />
    <rom name="tp030_3h.bin" size="1048576" crc="ed75730b" sha1="341f0f728144a049486d996c9bb14078578c6879" region="gp9001_0" offset="100000" />
    <rom name="tp030_4l.bin" size="1048576" crc="fedb9861" sha1="4b0917056bd359b21935358c6bcc729262be6417" region="gp9001_0" offset="200000" />
    <rom name="tp030_4h.bin" size="1048576" crc="d482948b" sha1="31be7dc5cff072403b783bf203b9805ffcad7284" region="gp9001_0" offset="300000" />
    <rom name="tp030_5.bin" size="1048576" crc="bcf5ba05" sha1="40f98888a29cdd30cda5dfb60fdc667c69b0fdb0" region="gp9001_1" offset="0" />
    <rom name="tp030_6.bin" size="1048576" crc="0666fecd" sha1="aa8f921fc51590b5b05bbe0b0ad0cce5ff359c64" region="gp9001_1" offset="100000" />
    <rom name="tp030_2.bin" size="262144" crc="276146f5" sha1="bf11d1f6782cefcad77d52af4f7e6054a8f93440" region="oki1" offset="0" />
    <rom name="tp030_u19_gal16v8b-15.bin" size="279" crc="f71669e8" sha1="ec1fbe04605fee864af4b01f001af227938c9f21" region="plds" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="v25" />
    <device_ref name="screen" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="cpu" tag="audiocpu" name="NEC V25" clock="16000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3375000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="4000000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Continue Price" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Discount" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="32" />
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48" />
      <dipvalue name="1 Coin/2 Credits" value="16" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128" />
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="192" />
      <dipvalue name="1 Coin/2 Credits" value="64" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="None" value="12" />
      <dipvalue name="1500k only" value="8" />
      <dipvalue name="1000k only" value="0" default="yes" />
      <dipvalue name="500k and every 600k" value="4" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability (Cheat)" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="No" value="128" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <configuration name="Region" tag="JMPR" mask="240">
      <confsetting name="Europe" value="144" default="yes" />
      <confsetting name="Europe (Taito Corp.)" value="128" />
      <confsetting name="USA" value="176" />
      <confsetting name="USA (Taito Corp.)" value="160" />
      <confsetting name="Japan" value="240" />
      <confsetting name="Japan (Taito Corp.)" value="208" />
      <confsetting name="Southeast Asia" value="112" />
      <confsetting name="Southeast Asia (Taito Corp.)" value="96" />
      <confsetting name="Taiwan" value="80" />
      <confsetting name="Taiwan (Taito Corp.)" value="64" />
      <confsetting name="Hong Kong" value="48" />
      <confsetting name="Hong Kong (Taito Corp.)" value="32" />
      <confsetting name="Korea" value="16" />
      <confsetting name="Korea (Unite Trading)" value="0" />
    </configuration>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":JMPR" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="batsuguna" sourcefile="toaplan2.cpp" cloneof="batsugun" romof="batsugun">
    <description>Batsugun (older set)</description>
    <year>1993</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="tp030_01.bin" size="524288" crc="3873d7dd" sha1="baf6187d7d554cfcf4a86b63f07fc30df7ef84c9" region="maincpu" offset="0" />
    <rom name="tp030_3l.bin" merge="tp030_3l.bin" size="1048576" crc="3024b793" sha1="e161db940f069279356fca2c5bf2753f07773705" region="gp9001_0" offset="0" />
    <rom name="tp030_3h.bin" merge="tp030_3h.bin" size="1048576" crc="ed75730b" sha1="341f0f728144a049486d996c9bb14078578c6879" region="gp9001_0" offset="100000" />
    <rom name="tp030_4l.bin" merge="tp030_4l.bin" size="1048576" crc="fedb9861" sha1="4b0917056bd359b21935358c6bcc729262be6417" region="gp9001_0" offset="200000" />
    <rom name="tp030_4h.bin" merge="tp030_4h.bin" size="1048576" crc="d482948b" sha1="31be7dc5cff072403b783bf203b9805ffcad7284" region="gp9001_0" offset="300000" />
    <rom name="tp030_5.bin" merge="tp030_5.bin" size="1048576" crc="bcf5ba05" sha1="40f98888a29cdd30cda5dfb60fdc667c69b0fdb0" region="gp9001_1" offset="0" />
    <rom name="tp030_6.bin" merge="tp030_6.bin" size="1048576" crc="0666fecd" sha1="aa8f921fc51590b5b05bbe0b0ad0cce5ff359c64" region="gp9001_1" offset="100000" />
    <rom name="tp030_2.bin" merge="tp030_2.bin" size="262144" crc="276146f5" sha1="bf11d1f6782cefcad77d52af4f7e6054a8f93440" region="oki1" offset="0" />
    <rom name="tp030_u19_gal16v8b-15.bin" merge="tp030_u19_gal16v8b-15.bin" size="279" crc="f71669e8" sha1="ec1fbe04605fee864af4b01f001af227938c9f21" region="plds" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="v25" />
    <device_ref name="screen" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="cpu" tag="audiocpu" name="NEC V25" clock="16000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3375000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="4000000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Continue Price" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Discount" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="32" />
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48" />
      <dipvalue name="1 Coin/2 Credits" value="16" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128" />
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="192" />
      <dipvalue name="1 Coin/2 Credits" value="64" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="None" value="12" />
      <dipvalue name="1500k only" value="8" />
      <dipvalue name="1000k only" value="0" default="yes" />
      <dipvalue name="500k and every 600k" value="4" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability (Cheat)" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="No" value="128" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <configuration name="Region" tag="JMPR" mask="240">
      <confsetting name="Europe" value="144" default="yes" />
      <confsetting name="Europe (Taito Corp.)" value="128" />
      <confsetting name="USA" value="176" />
      <confsetting name="USA (Taito Corp.)" value="160" />
      <confsetting name="Japan" value="240" />
      <confsetting name="Japan (Taito Corp.)" value="208" />
      <confsetting name="Southeast Asia" value="112" />
      <confsetting name="Southeast Asia (Taito Corp.)" value="96" />
      <confsetting name="Taiwan" value="80" />
      <confsetting name="Taiwan (Taito Corp.)" value="64" />
      <confsetting name="Hong Kong" value="48" />
      <confsetting name="Hong Kong (Taito Corp.)" value="32" />
      <confsetting name="Korea" value="16" />
      <confsetting name="Korea (Unite Trading)" value="0" />
    </configuration>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":JMPR" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="batsugunb" sourcefile="toaplan2.cpp" cloneof="batsugun" romof="batsugun">
    <description>Batsugun (Korean PCB)</description>
    <year>1993</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="large_rom1.bin" size="524288" crc="c9de8ed8" sha1="8de9acd26e83c8ea3388137da528704116aa7bdb" region="maincpu" offset="0" />
    <rom name="rom12.bin" size="524288" crc="d25affc6" sha1="00803ae5a2bc06edbfb9ea6e3df51f195bbee8cb" region="gp9001_0" offset="0" />
    <rom name="rom6.bin" size="524288" crc="ddd6df60" sha1="3b46945c51e7b10b473d98916f075e8def336ce7" region="gp9001_0" offset="1" />
    <rom name="rom11.bin" size="524288" crc="ed72fe3e" sha1="5c0f4d5cc84b45e1924dacfa4c0b602cc1600b2f" region="gp9001_0" offset="100000" />
    <rom name="rom5.bin" size="524288" crc="fd44b33b" sha1="791cf6056a2dbafa5f41f1dcf686947ee990647d" region="gp9001_0" offset="100001" />
    <rom name="rom10.bin" size="524288" crc="86b2c6a9" sha1="b3f39246012c6cd9df69a6797d56479523b33bcb" region="gp9001_0" offset="200000" />
    <rom name="rom4.bin" size="524288" crc="e7c1c623" sha1="0d8922ce901b5f74f1bd397d5d9c6ab4e918b1d1" region="gp9001_0" offset="200001" />
    <rom name="rom9.bin" size="524288" crc="fda8ee00" sha1="d5ea617a72b2721386eb2dfc15b76de2e30f069c" region="gp9001_0" offset="300000" />
    <rom name="rom3.bin" size="524288" crc="a7c4dee8" sha1="94e2dda067612fac810157f8cf392b685b38798b" region="gp9001_0" offset="300001" />
    <rom name="rom8.bin" size="524288" crc="a2c6a170" sha1="154048ddc8ca2b4e9617e142d904ad2698b0ad02" region="gp9001_1" offset="0" />
    <rom name="rom2.bin" size="524288" crc="a457e202" sha1="4a9f2f95c866fc9d40af1c57ce1940f0a6dc1b82" region="gp9001_1" offset="1" />
    <rom name="rom7.bin" size="524288" crc="8644518f" sha1="570141deeb796cfae57600d5a518d34bb6dc14d0" region="gp9001_1" offset="100000" />
    <rom name="rom1.bin" size="524288" crc="8e339897" sha1="80e84c291f287c0783bddfcb1b7ebf78c154cadc" region="gp9001_1" offset="100001" />
    <rom name="rom13.bin" merge="tp030_2.bin" size="262144" crc="276146f5" sha1="bf11d1f6782cefcad77d52af4f7e6054a8f93440" region="oki1" offset="0" />
    <rom name="tp030_u19_gal16v8b-15.bin" merge="tp030_u19_gal16v8b-15.bin" size="279" crc="f71669e8" sha1="ec1fbe04605fee864af4b01f001af227938c9f21" region="plds" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="v25" />
    <device_ref name="screen" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="cpu" tag="audiocpu" name="NEC V25" clock="16000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3375000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="4000000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Continue Price" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Discount" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="32" />
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48" />
      <dipvalue name="1 Coin/2 Credits" value="16" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128" />
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="192" />
      <dipvalue name="1 Coin/2 Credits" value="64" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="None" value="12" />
      <dipvalue name="1500k only" value="8" />
      <dipvalue name="1000k only" value="0" default="yes" />
      <dipvalue name="500k and every 600k" value="4" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability (Cheat)" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="No" value="128" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <configuration name="Region" tag="JMPR" mask="240">
      <confsetting name="Europe" value="144" default="yes" />
      <confsetting name="Europe (Taito Corp.)" value="128" />
      <confsetting name="USA" value="176" />
      <confsetting name="USA (Taito Corp.)" value="160" />
      <confsetting name="Japan" value="240" />
      <confsetting name="Japan (Taito Corp.)" value="208" />
      <confsetting name="Southeast Asia" value="112" />
      <confsetting name="Southeast Asia (Taito Corp.)" value="96" />
      <confsetting name="Taiwan" value="80" />
      <confsetting name="Taiwan (Taito Corp.)" value="64" />
      <confsetting name="Hong Kong" value="48" />
      <confsetting name="Hong Kong (Taito Corp.)" value="32" />
      <confsetting name="Korea" value="16" />
      <confsetting name="Korea (Unite Trading)" value="0" />
    </configuration>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":JMPR" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="batsugunsp" sourcefile="toaplan2.cpp" cloneof="batsugun" romof="batsugun">
    <description>Batsugun - Special Version</description>
    <year>1993</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="tp030-sp.u69" size="524288" crc="8072a0cd" sha1="3a0a9cdf894926a16800c4882a2b00383d981367" region="maincpu" offset="0" />
    <rom name="tp030_3l.bin" merge="tp030_3l.bin" size="1048576" crc="3024b793" sha1="e161db940f069279356fca2c5bf2753f07773705" region="gp9001_0" offset="0" />
    <rom name="tp030_3h.bin" merge="tp030_3h.bin" size="1048576" crc="ed75730b" sha1="341f0f728144a049486d996c9bb14078578c6879" region="gp9001_0" offset="100000" />
    <rom name="tp030_4l.bin" merge="tp030_4l.bin" size="1048576" crc="fedb9861" sha1="4b0917056bd359b21935358c6bcc729262be6417" region="gp9001_0" offset="200000" />
    <rom name="tp030_4h.bin" merge="tp030_4h.bin" size="1048576" crc="d482948b" sha1="31be7dc5cff072403b783bf203b9805ffcad7284" region="gp9001_0" offset="300000" />
    <rom name="tp030_5.bin" merge="tp030_5.bin" size="1048576" crc="bcf5ba05" sha1="40f98888a29cdd30cda5dfb60fdc667c69b0fdb0" region="gp9001_1" offset="0" />
    <rom name="tp030_6.bin" merge="tp030_6.bin" size="1048576" crc="0666fecd" sha1="aa8f921fc51590b5b05bbe0b0ad0cce5ff359c64" region="gp9001_1" offset="100000" />
    <rom name="tp030_2.bin" merge="tp030_2.bin" size="262144" crc="276146f5" sha1="bf11d1f6782cefcad77d52af4f7e6054a8f93440" region="oki1" offset="0" />
    <rom name="tp030_u19_gal16v8b-15.bin" merge="tp030_u19_gal16v8b-15.bin" size="279" crc="f71669e8" sha1="ec1fbe04605fee864af4b01f001af227938c9f21" region="plds" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="v25" />
    <device_ref name="screen" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="cpu" tag="audiocpu" name="NEC V25" clock="16000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3375000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="4000000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Continue Price" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Discount" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="32" />
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48" />
      <dipvalue name="1 Coin/2 Credits" value="16" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128" />
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="192" />
      <dipvalue name="1 Coin/2 Credits" value="64" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="None" value="12" />
      <dipvalue name="1500k only" value="8" />
      <dipvalue name="1000k only" value="0" default="yes" />
      <dipvalue name="500k and every 600k" value="4" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability (Cheat)" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="No" value="128" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <configuration name="Region" tag="JMPR" mask="240">
      <confsetting name="Europe" value="144" default="yes" />
      <confsetting name="Europe (Taito Corp.)" value="128" />
      <confsetting name="USA" value="176" />
      <confsetting name="USA (Taito Corp.)" value="160" />
      <confsetting name="Japan" value="240" />
      <confsetting name="Japan (Taito Corp.)" value="208" />
      <confsetting name="Southeast Asia" value="112" />
      <confsetting name="Southeast Asia (Taito Corp.)" value="96" />
      <confsetting name="Taiwan" value="80" />
      <confsetting name="Taiwan (Taito Corp.)" value="64" />
      <confsetting name="Hong Kong" value="48" />
      <confsetting name="Hong Kong (Taito Corp.)" value="32" />
      <confsetting name="Korea" value="16" />
      <confsetting name="Korea (Unite Trading)" value="0" />
    </configuration>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":JMPR" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="bbakraid" sourcefile="toaplan2.cpp">
    <description>Battle Bakraid - Unlimited Version (USA) (Tue Jun 8 1999)</description>
    <year>1999</year>
    <manufacturer>Eighting</manufacturer>
    <rom name="prg0u022_usa.bin" size="524288" crc="95fb2ffd" sha1="c7f502f3945249573b66226e8bacc6a9bc230693" region="maincpu" offset="0" />
    <rom name="prg1u023.new" size="524288" crc="4ae9aa64" sha1="45fdf72141c4c9f24a38d4218c65874799b9c868" region="maincpu" offset="1" />
    <rom name="prg2u021.bin" size="524288" crc="ffba8656" sha1="6526bb65fad3384de3f301a7d1095cbf03757433" region="maincpu" offset="100000" />
    <rom name="prg3u024.bin" size="524288" crc="834b8ad6" sha1="0dd6223bb0749819ad29811eeb04fd08d937abb0" region="maincpu" offset="100001" />
    <rom name="sndu0720.bin" size="131072" crc="e62ab246" sha1="00d23689dd423ecd4024c58b5903d16e890f1dff" region="audiocpu" offset="0" />
    <rom name="gfxu0510.bin" size="4194304" crc="9cca3446" sha1="1123f8b8bfbe59a2c572cdf61f1ad27ff37f0f0d" region="gp9001_0" offset="0" />
    <rom name="gfxu0512.bin" size="4194304" crc="a2a281d5" sha1="d9a6623f9433ad682223f9780c26cd1523ebc5c5" region="gp9001_0" offset="400000" />
    <rom name="gfxu0511.bin" size="4194304" crc="e16472c0" sha1="6068d679a8b3b65e05acd58a7ce9ead90177049f" region="gp9001_0" offset="800000" />
    <rom name="gfxu0513.bin" size="4194304" crc="8bb635a0" sha1="9064f1a2d8bb88ddbca702fb8556d0dfe6a5cadc" region="gp9001_0" offset="c00000" />
    <rom name="rom6.829" size="4194304" crc="8848b4a0" sha1="e0dce136c5d5a4c1a92b863e57848cd5927d06f1" region="ymz" offset="0" />
    <rom name="rom7.830" size="4194304" crc="d6224267" sha1="5c9b7b13effbef9f707811f84bfe50ca85e605e3" region="ymz" offset="400000" />
    <rom name="rom8.831" size="4194304" crc="a101dfb0" sha1="4b729b0d562e09df35438e9e6b457b8de2690a6e" region="ymz" offset="800000" />
    <rom name="eeprom-bbakraid-new.bin" size="512" crc="35c9275a" sha1="1282034adf3c7a24545fd273729867058dc93027" region="eeprom" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="93c66_8" />
    <device_ref name="address_map_bank" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ymz280b" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="5333333" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymz" name="Yamaha YMZ280B PCMD8" clock="16934400" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Credits to Start" tag="DSW" mask="2">
      <condition tag="DSW" mask="28" relation="ne" value="28" />
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="1" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="2" value="2">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Joystick Mode" tag="DSW" mask="2">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Normal" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="90 degrees ACW" value="2">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="28">
      <diplocation name="SW1" number="3" inverted="yes" />
      <diplocation name="SW1" number="4" inverted="yes" />
      <diplocation name="SW1" number="5" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="24" />
      <dipvalue name="3 Coins/1 Credit" value="20" />
      <dipvalue name="2 Coins/1 Credit" value="16" />
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="1 Coin/2 Credits" value="4" />
      <dipvalue name="1 Coin/3 Credits" value="8" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="Free Play" value="28" />
    </dipswitch>
    <dipswitch name="Hit Score" tag="DSW" mask="32">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="32">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Sound Effect" tag="DSW" mask="64">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="64">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="128">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="128">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="224">
      <condition tag="DSW" mask="28" relation="ne" value="28" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="192">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="160">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="32">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="96">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="768">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="256" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="512" />
      <dipvalue name="Very Hard" value="768" />
    </dipswitch>
    <dipswitch name="Timer" tag="DSW" mask="3072">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="Highest" value="3072" />
      <dipvalue name="High" value="2048" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Low" value="1024" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSW" mask="12288">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="12288" />
      <dipvalue name="2" value="8192" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="4" value="4096" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSW" mask="49152">
      <diplocation name="SW2" number="7" inverted="yes" />
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="None" value="49152" />
      <dipvalue name="Every 4000k" value="32768" />
      <dipvalue name="Every 3000k" value="16384" />
      <dipvalue name="Every 2000k" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS-DSW" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="SYS-DSW" mask="256">
      <diplocation name="SW3" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="256" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SYS-DSW" mask="512">
      <diplocation name="SW3" number="2" inverted="yes" />
      <dipvalue name="Off" value="512" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Stage Edit" tag="SYS-DSW" mask="1024">
      <diplocation name="SW3" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1024" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="SYS-DSW" mask="2048">
      <diplocation name="SW3" number="4" inverted="yes" />
      <dipvalue name="No" value="2048" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Invulnerability (Cheat)" tag="SYS-DSW" mask="4096">
      <diplocation name="SW3" number="5" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4096" />
    </dipswitch>
    <dipswitch name="Save Scores" tag="SYS-DSW" mask="8192">
      <diplocation name="SW3" number="6" inverted="yes" />
      <dipvalue name="Off" value="8192" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Unused" tag="SYS-DSW" mask="16384">
      <diplocation name="SW3" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="16384" />
    </dipswitch>
    <dipswitch name="Unused" tag="SYS-DSW" mask="32768">
      <diplocation name="SW3" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="32768" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":EEPROMOUT" />
    <port tag=":IN" />
    <port tag=":SYS-DSW" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="bbakraidc" sourcefile="toaplan2.cpp" cloneof="bbakraid" romof="bbakraid">
    <description>Battle Bakraid - Unlimited Version (China) (Tue Jun 8 1999)</description>
    <year>1999</year>
    <manufacturer>Eighting</manufacturer>
    <rom name="prg0u022_china.bin" size="524288" crc="760be084" sha1="096c8a2336492d7370ae25f3385faebf6e9c3eca" region="maincpu" offset="0" />
    <rom name="prg1u023.new" merge="prg1u023.new" size="524288" crc="4ae9aa64" sha1="45fdf72141c4c9f24a38d4218c65874799b9c868" region="maincpu" offset="1" />
    <rom name="prg2u021.bin" merge="prg2u021.bin" size="524288" crc="ffba8656" sha1="6526bb65fad3384de3f301a7d1095cbf03757433" region="maincpu" offset="100000" />
    <rom name="prg3u024.bin" merge="prg3u024.bin" size="524288" crc="834b8ad6" sha1="0dd6223bb0749819ad29811eeb04fd08d937abb0" region="maincpu" offset="100001" />
    <rom name="sndu0720.bin" merge="sndu0720.bin" size="131072" crc="e62ab246" sha1="00d23689dd423ecd4024c58b5903d16e890f1dff" region="audiocpu" offset="0" />
    <rom name="gfxu0510.bin" merge="gfxu0510.bin" size="4194304" crc="9cca3446" sha1="1123f8b8bfbe59a2c572cdf61f1ad27ff37f0f0d" region="gp9001_0" offset="0" />
    <rom name="gfxu0512.bin" merge="gfxu0512.bin" size="4194304" crc="a2a281d5" sha1="d9a6623f9433ad682223f9780c26cd1523ebc5c5" region="gp9001_0" offset="400000" />
    <rom name="gfxu0511.bin" merge="gfxu0511.bin" size="4194304" crc="e16472c0" sha1="6068d679a8b3b65e05acd58a7ce9ead90177049f" region="gp9001_0" offset="800000" />
    <rom name="gfxu0513.bin" merge="gfxu0513.bin" size="4194304" crc="8bb635a0" sha1="9064f1a2d8bb88ddbca702fb8556d0dfe6a5cadc" region="gp9001_0" offset="c00000" />
    <rom name="rom6.829" merge="rom6.829" size="4194304" crc="8848b4a0" sha1="e0dce136c5d5a4c1a92b863e57848cd5927d06f1" region="ymz" offset="0" />
    <rom name="rom7.830" merge="rom7.830" size="4194304" crc="d6224267" sha1="5c9b7b13effbef9f707811f84bfe50ca85e605e3" region="ymz" offset="400000" />
    <rom name="rom8.831" merge="rom8.831" size="4194304" crc="a101dfb0" sha1="4b729b0d562e09df35438e9e6b457b8de2690a6e" region="ymz" offset="800000" />
    <rom name="eeprom-bbakraid-new.bin" merge="eeprom-bbakraid-new.bin" size="512" crc="35c9275a" sha1="1282034adf3c7a24545fd273729867058dc93027" region="eeprom" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="93c66_8" />
    <device_ref name="address_map_bank" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ymz280b" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="5333333" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymz" name="Yamaha YMZ280B PCMD8" clock="16934400" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Credits to Start" tag="DSW" mask="2">
      <condition tag="DSW" mask="28" relation="ne" value="28" />
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="1" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="2" value="2">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Joystick Mode" tag="DSW" mask="2">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Normal" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="90 degrees ACW" value="2">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="28">
      <diplocation name="SW1" number="3" inverted="yes" />
      <diplocation name="SW1" number="4" inverted="yes" />
      <diplocation name="SW1" number="5" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="24" />
      <dipvalue name="3 Coins/1 Credit" value="20" />
      <dipvalue name="2 Coins/1 Credit" value="16" />
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="1 Coin/2 Credits" value="4" />
      <dipvalue name="1 Coin/3 Credits" value="8" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="Free Play" value="28" />
    </dipswitch>
    <dipswitch name="Hit Score" tag="DSW" mask="32">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="32">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Sound Effect" tag="DSW" mask="64">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="64">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="128">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="128">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="224">
      <condition tag="DSW" mask="28" relation="ne" value="28" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="192">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="160">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="32">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="96">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="768">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="256" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="512" />
      <dipvalue name="Very Hard" value="768" />
    </dipswitch>
    <dipswitch name="Timer" tag="DSW" mask="3072">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="Highest" value="3072" />
      <dipvalue name="High" value="2048" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Low" value="1024" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSW" mask="12288">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="12288" />
      <dipvalue name="2" value="8192" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="4" value="4096" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSW" mask="49152">
      <diplocation name="SW2" number="7" inverted="yes" />
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="None" value="49152" />
      <dipvalue name="Every 4000k" value="32768" />
      <dipvalue name="Every 3000k" value="16384" />
      <dipvalue name="Every 2000k" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS-DSW" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="SYS-DSW" mask="256">
      <diplocation name="SW3" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="256" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SYS-DSW" mask="512">
      <diplocation name="SW3" number="2" inverted="yes" />
      <dipvalue name="Off" value="512" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Stage Edit" tag="SYS-DSW" mask="1024">
      <diplocation name="SW3" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1024" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="SYS-DSW" mask="2048">
      <diplocation name="SW3" number="4" inverted="yes" />
      <dipvalue name="No" value="2048" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Invulnerability (Cheat)" tag="SYS-DSW" mask="4096">
      <diplocation name="SW3" number="5" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4096" />
    </dipswitch>
    <dipswitch name="Save Scores" tag="SYS-DSW" mask="8192">
      <diplocation name="SW3" number="6" inverted="yes" />
      <dipvalue name="Off" value="8192" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Unused" tag="SYS-DSW" mask="16384">
      <diplocation name="SW3" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="16384" />
    </dipswitch>
    <dipswitch name="Unused" tag="SYS-DSW" mask="32768">
      <diplocation name="SW3" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="32768" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":EEPROMOUT" />
    <port tag=":IN" />
    <port tag=":SYS-DSW" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="bbakraidj" sourcefile="toaplan2.cpp" cloneof="bbakraid" romof="bbakraid">
    <description>Battle Bakraid - Unlimited Version (Japan) (Tue Jun 8 1999)</description>
    <year>1999</year>
    <manufacturer>Eighting</manufacturer>
    <rom name="prg0u022.new" size="524288" crc="fa8d38d3" sha1="aba91d87a8a62d3fe1139b4437b16e2f844264ad" region="maincpu" offset="0" />
    <rom name="prg1u023.new" merge="prg1u023.new" size="524288" crc="4ae9aa64" sha1="45fdf72141c4c9f24a38d4218c65874799b9c868" region="maincpu" offset="1" />
    <rom name="prg2u021.bin" merge="prg2u021.bin" size="524288" crc="ffba8656" sha1="6526bb65fad3384de3f301a7d1095cbf03757433" region="maincpu" offset="100000" />
    <rom name="prg3u024.bin" merge="prg3u024.bin" size="524288" crc="834b8ad6" sha1="0dd6223bb0749819ad29811eeb04fd08d937abb0" region="maincpu" offset="100001" />
    <rom name="sndu0720.bin" merge="sndu0720.bin" size="131072" crc="e62ab246" sha1="00d23689dd423ecd4024c58b5903d16e890f1dff" region="audiocpu" offset="0" />
    <rom name="gfxu0510.bin" merge="gfxu0510.bin" size="4194304" crc="9cca3446" sha1="1123f8b8bfbe59a2c572cdf61f1ad27ff37f0f0d" region="gp9001_0" offset="0" />
    <rom name="gfxu0512.bin" merge="gfxu0512.bin" size="4194304" crc="a2a281d5" sha1="d9a6623f9433ad682223f9780c26cd1523ebc5c5" region="gp9001_0" offset="400000" />
    <rom name="gfxu0511.bin" merge="gfxu0511.bin" size="4194304" crc="e16472c0" sha1="6068d679a8b3b65e05acd58a7ce9ead90177049f" region="gp9001_0" offset="800000" />
    <rom name="gfxu0513.bin" merge="gfxu0513.bin" size="4194304" crc="8bb635a0" sha1="9064f1a2d8bb88ddbca702fb8556d0dfe6a5cadc" region="gp9001_0" offset="c00000" />
    <rom name="rom6.829" merge="rom6.829" size="4194304" crc="8848b4a0" sha1="e0dce136c5d5a4c1a92b863e57848cd5927d06f1" region="ymz" offset="0" />
    <rom name="rom7.830" merge="rom7.830" size="4194304" crc="d6224267" sha1="5c9b7b13effbef9f707811f84bfe50ca85e605e3" region="ymz" offset="400000" />
    <rom name="rom8.831" merge="rom8.831" size="4194304" crc="a101dfb0" sha1="4b729b0d562e09df35438e9e6b457b8de2690a6e" region="ymz" offset="800000" />
    <rom name="eeprom-bbakraid-new.bin" merge="eeprom-bbakraid-new.bin" size="512" crc="35c9275a" sha1="1282034adf3c7a24545fd273729867058dc93027" region="eeprom" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="93c66_8" />
    <device_ref name="address_map_bank" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ymz280b" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="5333333" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymz" name="Yamaha YMZ280B PCMD8" clock="16934400" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Credits to Start" tag="DSW" mask="2">
      <condition tag="DSW" mask="28" relation="ne" value="28" />
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="1" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="2" value="2">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Joystick Mode" tag="DSW" mask="2">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Normal" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="90 degrees ACW" value="2">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="28">
      <diplocation name="SW1" number="3" inverted="yes" />
      <diplocation name="SW1" number="4" inverted="yes" />
      <diplocation name="SW1" number="5" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="24" />
      <dipvalue name="3 Coins/1 Credit" value="20" />
      <dipvalue name="2 Coins/1 Credit" value="16" />
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="1 Coin/2 Credits" value="4" />
      <dipvalue name="1 Coin/3 Credits" value="8" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="Free Play" value="28" />
    </dipswitch>
    <dipswitch name="Hit Score" tag="DSW" mask="32">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="32">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Sound Effect" tag="DSW" mask="64">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="64">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="128">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="128">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="224">
      <condition tag="DSW" mask="28" relation="ne" value="28" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="192">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="160">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="32">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="96">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="768">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="256" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="512" />
      <dipvalue name="Very Hard" value="768" />
    </dipswitch>
    <dipswitch name="Timer" tag="DSW" mask="3072">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="Highest" value="3072" />
      <dipvalue name="High" value="2048" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Low" value="1024" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSW" mask="12288">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="12288" />
      <dipvalue name="2" value="8192" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="4" value="4096" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSW" mask="49152">
      <diplocation name="SW2" number="7" inverted="yes" />
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="None" value="49152" />
      <dipvalue name="Every 4000k" value="32768" />
      <dipvalue name="Every 3000k" value="16384" />
      <dipvalue name="Every 2000k" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS-DSW" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="SYS-DSW" mask="256">
      <diplocation name="SW3" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="256" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SYS-DSW" mask="512">
      <diplocation name="SW3" number="2" inverted="yes" />
      <dipvalue name="Off" value="512" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Stage Edit" tag="SYS-DSW" mask="1024">
      <diplocation name="SW3" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1024" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="SYS-DSW" mask="2048">
      <diplocation name="SW3" number="4" inverted="yes" />
      <dipvalue name="No" value="2048" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Invulnerability (Cheat)" tag="SYS-DSW" mask="4096">
      <diplocation name="SW3" number="5" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4096" />
    </dipswitch>
    <dipswitch name="Save Scores" tag="SYS-DSW" mask="8192">
      <diplocation name="SW3" number="6" inverted="yes" />
      <dipvalue name="Off" value="8192" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Unused" tag="SYS-DSW" mask="16384">
      <diplocation name="SW3" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="16384" />
    </dipswitch>
    <dipswitch name="Unused" tag="SYS-DSW" mask="32768">
      <diplocation name="SW3" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="32768" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":EEPROMOUT" />
    <port tag=":IN" />
    <port tag=":SYS-DSW" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="bbakraidja" sourcefile="toaplan2.cpp" cloneof="bbakraid" romof="bbakraid">
    <description>Battle Bakraid (Japan) (Wed Apr 7 1999)</description>
    <year>1999</year>
    <manufacturer>Eighting</manufacturer>
    <rom name="prg0u022.bin" size="524288" crc="0dd59512" sha1="c6a4e6aa49c6ac3b04ae62a0a4cc8084ae048381" region="maincpu" offset="0" />
    <rom name="prg1u023.bin" size="524288" crc="fecde223" sha1="eb5ac0eda49b4b0f3d25d8a8bb356e77a453d3a7" region="maincpu" offset="1" />
    <rom name="prg2u021.bin" merge="prg2u021.bin" size="524288" crc="ffba8656" sha1="6526bb65fad3384de3f301a7d1095cbf03757433" region="maincpu" offset="100000" />
    <rom name="prg3u024.bin" merge="prg3u024.bin" size="524288" crc="834b8ad6" sha1="0dd6223bb0749819ad29811eeb04fd08d937abb0" region="maincpu" offset="100001" />
    <rom name="sndu0720.bin" merge="sndu0720.bin" size="131072" crc="e62ab246" sha1="00d23689dd423ecd4024c58b5903d16e890f1dff" region="audiocpu" offset="0" />
    <rom name="gfxu0510.bin" merge="gfxu0510.bin" size="4194304" crc="9cca3446" sha1="1123f8b8bfbe59a2c572cdf61f1ad27ff37f0f0d" region="gp9001_0" offset="0" />
    <rom name="gfxu0512.bin" merge="gfxu0512.bin" size="4194304" crc="a2a281d5" sha1="d9a6623f9433ad682223f9780c26cd1523ebc5c5" region="gp9001_0" offset="400000" />
    <rom name="gfxu0511.bin" merge="gfxu0511.bin" size="4194304" crc="e16472c0" sha1="6068d679a8b3b65e05acd58a7ce9ead90177049f" region="gp9001_0" offset="800000" />
    <rom name="gfxu0513.bin" merge="gfxu0513.bin" size="4194304" crc="8bb635a0" sha1="9064f1a2d8bb88ddbca702fb8556d0dfe6a5cadc" region="gp9001_0" offset="c00000" />
    <rom name="rom6.829" merge="rom6.829" size="4194304" crc="8848b4a0" sha1="e0dce136c5d5a4c1a92b863e57848cd5927d06f1" region="ymz" offset="0" />
    <rom name="rom7.830" merge="rom7.830" size="4194304" crc="d6224267" sha1="5c9b7b13effbef9f707811f84bfe50ca85e605e3" region="ymz" offset="400000" />
    <rom name="rom8.831" merge="rom8.831" size="4194304" crc="a101dfb0" sha1="4b729b0d562e09df35438e9e6b457b8de2690a6e" region="ymz" offset="800000" />
    <rom name="eeprom-bbakraid.bin" size="512" crc="7f97d347" sha1="3096c399019924dbb7d6673483f6a011f89467c6" region="eeprom" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="93c66_8" />
    <device_ref name="address_map_bank" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ymz280b" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="5333333" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymz" name="Yamaha YMZ280B PCMD8" clock="16934400" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Credits to Start" tag="DSW" mask="2">
      <condition tag="DSW" mask="28" relation="ne" value="28" />
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="1" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="2" value="2">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Joystick Mode" tag="DSW" mask="2">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Normal" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="90 degrees ACW" value="2">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin A" tag="DSW" mask="28">
      <diplocation name="SW1" number="3" inverted="yes" />
      <diplocation name="SW1" number="4" inverted="yes" />
      <diplocation name="SW1" number="5" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="24" />
      <dipvalue name="3 Coins/1 Credit" value="20" />
      <dipvalue name="2 Coins/1 Credit" value="16" />
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="1 Coin/2 Credits" value="4" />
      <dipvalue name="1 Coin/3 Credits" value="8" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="Free Play" value="28" />
    </dipswitch>
    <dipswitch name="Hit Score" tag="DSW" mask="32">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="32">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Sound Effect" tag="DSW" mask="64">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="64">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="128">
      <condition tag="DSW" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="128">
        <condition tag="DSW" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSW" mask="224">
      <condition tag="DSW" mask="28" relation="ne" value="28" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="192">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="160">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="32">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="96">
        <condition tag="DSW" mask="28" relation="ne" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSW" mask="768">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="256" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="512" />
      <dipvalue name="Very Hard" value="768" />
    </dipswitch>
    <dipswitch name="Timer" tag="DSW" mask="3072">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="Highest" value="3072" />
      <dipvalue name="High" value="2048" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Low" value="1024" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSW" mask="12288">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="12288" />
      <dipvalue name="2" value="8192" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="4" value="4096" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSW" mask="49152">
      <diplocation name="SW2" number="7" inverted="yes" />
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="None" value="49152" />
      <dipvalue name="Every 4000k" value="32768" />
      <dipvalue name="Every 3000k" value="16384" />
      <dipvalue name="Every 2000k" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS-DSW" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="SYS-DSW" mask="256">
      <diplocation name="SW3" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="256" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="SYS-DSW" mask="512">
      <diplocation name="SW3" number="2" inverted="yes" />
      <dipvalue name="Off" value="512" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Stage Edit" tag="SYS-DSW" mask="1024">
      <diplocation name="SW3" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1024" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="SYS-DSW" mask="2048">
      <diplocation name="SW3" number="4" inverted="yes" />
      <dipvalue name="No" value="2048" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Invulnerability (Cheat)" tag="SYS-DSW" mask="4096">
      <diplocation name="SW3" number="5" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4096" />
    </dipswitch>
    <dipswitch name="Save Scores" tag="SYS-DSW" mask="8192">
      <diplocation name="SW3" number="6" inverted="yes" />
      <dipvalue name="Off" value="8192" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Unused" tag="SYS-DSW" mask="16384">
      <diplocation name="SW3" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="16384" />
    </dipswitch>
    <dipswitch name="Unused" tag="SYS-DSW" mask="32768">
      <diplocation name="SW3" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="32768" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":EEPROMOUT" />
    <port tag=":IN" />
    <port tag=":SYS-DSW" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="bgaregga" sourcefile="toaplan2.cpp">
    <description>Battle Garegga (Europe / USA / Japan / Asia) (Sat Feb 3 1996)</description>
    <year>1996</year>
    <manufacturer>Raizing / Eighting</manufacturer>
    <rom name="prg0.bin" size="524288" crc="f80c2fc2" sha1="a9aac5c7f5439b6fe8d1b3db1fb02a27cc28fdf6" region="maincpu" offset="0" />
    <rom name="prg1.bin" size="524288" crc="2ccfdd1e" sha1="7a9f11f851854f3f8389b9c3c0906ebb8dc28712" region="maincpu" offset="1" />
    <rom name="snd.bin" size="131072" crc="68632952" sha1="fb834db83157948e2b420b6051102a9c6ac3969b" region="audiocpu" offset="0" />
    <rom name="rom4.bin" size="2097152" crc="b333d81f" sha1="5481465f1304334fd55798be2f44324c57c2dbcb" region="gp9001_0" offset="0" />
    <rom name="rom3.bin" size="2097152" crc="51b9ebfb" sha1="30e0c326f5175aa436df8dba08f6f4e08130b92f" region="gp9001_0" offset="200000" />
    <rom name="rom2.bin" size="2097152" crc="b330e5e2" sha1="5d48e9d56f99d093b6390e0af1609fd796df2d35" region="gp9001_0" offset="400000" />
    <rom name="rom1.bin" size="2097152" crc="7eafdd70" sha1="7c8da8e86c3f9491719b1d7d5d285568d7614f38" region="gp9001_0" offset="600000" />
    <rom name="text.u81" size="32768" crc="e67fd534" sha1="987d0edffc2c243a13d4567319ea3d185eaadbf8" region="text" offset="0" />
    <rom name="rom5.bin" size="1048576" crc="f6d49863" sha1="3a3c354852adad06e8a051511abfab7606bce382" region="oki1" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="4000000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="2000000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Credits to Start" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="1" value="0" default="yes" />
      <dipvalue name="2" value="2" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="28">
      <diplocation name="SW1" number="3" inverted="yes" />
      <diplocation name="SW1" number="4" inverted="yes" />
      <diplocation name="SW1" number="5" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="24" />
      <dipvalue name="3 Coins/1 Credit" value="20" />
      <dipvalue name="2 Coins/1 Credit" value="16" />
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="1 Coin/2 Credits" value="4" />
      <dipvalue name="1 Coin/3 Credits" value="8" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="Free Play" value="28" />
    </dipswitch>
    <dipswitch name="Joystick Mode" tag="DSWA" mask="32">
      <condition tag="DSWA" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="90 degrees ACW" value="0" default="yes">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="Normal" value="32">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Effect" tag="DSWA" mask="64">
      <condition tag="DSWA" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="64">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Music" tag="DSWA" mask="128">
      <condition tag="DSWA" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="128">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="224">
      <condition tag="DSWA" mask="28" relation="ne" value="28" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="192">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="160">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="32">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="96">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWB" mask="4">
      <diplocation name="SW2" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWB" mask="8">
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="112">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="4" value="16" />
      <dipvalue name="5" value="64" />
      <dipvalue name="6" value="80" />
      <dipvalue name="Infinite" value="96" />
      <dipvalue name="Invulnerability (Cheat)" value="112" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="None" value="0" default="yes">
        <condition tag="JMPR" mask="3" relation="ne" value="0" />
      </dipvalue>
      <dipvalue name="Every 2000k" value="128">
        <condition tag="JMPR" mask="3" relation="ne" value="0" />
      </dipvalue>
      <dipvalue name="1000k and 2000k" value="128">
        <condition tag="JMPR" mask="3" relation="eq" value="0" />
      </dipvalue>
      <dipvalue name="Every 1000k" value="0" default="yes">
        <condition tag="JMPR" mask="3" relation="eq" value="0" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Allow Continue" tag="JMPR" mask="4">
      <diplocation name="SW3" number="2" inverted="yes" />
      <dipvalue name="No" value="4" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Stage Edit" tag="JMPR" mask="8">
      <diplocation name="SW3" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="8" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <configuration name="Region" tag="JMPR" mask="3">
      <confsetting name="Europe (Tuning)" value="1" default="yes" />
      <confsetting name="USA (Fabtek)" value="2" />
      <confsetting name="Japan" value="0" />
      <confsetting name="Asia" value="3" />
    </configuration>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":JMPR" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="bgareggabl" sourcefile="toaplan2.cpp" cloneof="bgaregga" romof="bgaregga">
    <description>1945 Part-2 (Chinese hack of Battle Garegga)</description>
    <year>1996</year>
    <manufacturer>bootleg</manufacturer>
    <rom name="xt-8m.bin" size="1048576" crc="4a6657cb" sha1="1838956e7597eaa78ea5ee58d0ccc79cbbd7ded5" region="maincpu" offset="0" />
    <rom name="snd.bin" merge="snd.bin" size="131072" crc="68632952" sha1="fb834db83157948e2b420b6051102a9c6ac3969b" region="audiocpu" offset="0" />
    <rom name="6@-322" size="4194304" crc="37fe48ed" sha1="ded5d13c33b4582310cdfb3dd52c052f741c00c5" region="gp9001_0" offset="0" />
    <rom name="5@-322" size="4194304" crc="5a06c031" sha1="ee241ff90117cec1f33ab163601a9d5c75609739" region="gp9001_0" offset="400000" />
    <rom name="1@-256" size="32768" crc="760dcd14" sha1="e151e5d7ca5557277f306b9484ec021f4edf1e07" region="text" offset="0" />
    <rom name="2@-256" size="32768" crc="456dd16e" sha1="84779ee64d3ea33ba1ba4dee39b504a81c6811a1" region="user1" offset="0" />
    <rom name="rom5.bin" merge="rom5.bin" size="1048576" crc="f6d49863" sha1="3a3c354852adad06e8a051511abfab7606bce382" region="oki1" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="4000000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="2000000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Credits to Start" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="1" value="0" default="yes" />
      <dipvalue name="2" value="2" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="28">
      <diplocation name="SW1" number="3" inverted="yes" />
      <diplocation name="SW1" number="4" inverted="yes" />
      <diplocation name="SW1" number="5" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="24" />
      <dipvalue name="3 Coins/1 Credit" value="20" />
      <dipvalue name="2 Coins/1 Credit" value="16" />
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="1 Coin/2 Credits" value="4" />
      <dipvalue name="1 Coin/3 Credits" value="8" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="Free Play" value="28" />
    </dipswitch>
    <dipswitch name="Joystick Mode" tag="DSWA" mask="32">
      <condition tag="DSWA" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="90 degrees ACW" value="0" default="yes">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="Normal" value="32">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Effect" tag="DSWA" mask="64">
      <condition tag="DSWA" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="64">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Music" tag="DSWA" mask="128">
      <condition tag="DSWA" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="128">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="224">
      <condition tag="DSWA" mask="28" relation="ne" value="28" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="192">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="160">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="32">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="96">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWB" mask="4">
      <diplocation name="SW2" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWB" mask="8">
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="112">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="4" value="16" />
      <dipvalue name="5" value="64" />
      <dipvalue name="6" value="80" />
      <dipvalue name="Infinite" value="96" />
      <dipvalue name="Invulnerability (Cheat)" value="112" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="None" value="0" default="yes">
        <condition tag="JMPR" mask="3" relation="ne" value="0" />
      </dipvalue>
      <dipvalue name="Every 2000k" value="128">
        <condition tag="JMPR" mask="3" relation="ne" value="0" />
      </dipvalue>
      <dipvalue name="1000k and 2000k" value="128">
        <condition tag="JMPR" mask="3" relation="eq" value="0" />
      </dipvalue>
      <dipvalue name="Every 1000k" value="0" default="yes">
        <condition tag="JMPR" mask="3" relation="eq" value="0" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Allow Continue" tag="JMPR" mask="4">
      <diplocation name="SW3" number="2" inverted="yes" />
      <dipvalue name="No" value="4" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Stage Edit" tag="JMPR" mask="8">
      <diplocation name="SW3" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="8" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <configuration name="Region" tag="JMPR" mask="3">
      <confsetting name="Denmark (Tuning)" value="1" />
      <confsetting name="China" value="3" default="yes" />
    </configuration>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":JMPR" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="bgareggabla" sourcefile="toaplan2.cpp" cloneof="bgaregga" romof="bgaregga">
    <description>Lei Shen Zhuan Thunder Deity Biography (Chinese hack of Battle Garegga)</description>
    <year>1996</year>
    <manufacturer>bootleg</manufacturer>
    <rom name="27c8100.mon-sys" size="1048576" crc="d334e5aa" sha1="41607b5630d7b92a96607ea95c5b55ad43745857" region="maincpu" offset="0" />
    <rom name="snd.bin" merge="snd.bin" size="131072" crc="68632952" sha1="fb834db83157948e2b420b6051102a9c6ac3969b" region="audiocpu" offset="0" />
    <rom name="rom4.bin" merge="rom4.bin" size="2097152" crc="b333d81f" sha1="5481465f1304334fd55798be2f44324c57c2dbcb" region="gp9001_0" offset="0" />
    <rom name="rom3.bin" merge="rom3.bin" size="2097152" crc="51b9ebfb" sha1="30e0c326f5175aa436df8dba08f6f4e08130b92f" region="gp9001_0" offset="200000" />
    <rom name="rom2.bin" merge="rom2.bin" size="2097152" crc="b330e5e2" sha1="5d48e9d56f99d093b6390e0af1609fd796df2d35" region="gp9001_0" offset="400000" />
    <rom name="rom1.bin" merge="rom1.bin" size="2097152" crc="7eafdd70" sha1="7c8da8e86c3f9491719b1d7d5d285568d7614f38" region="gp9001_0" offset="600000" />
    <rom name="text.bin" size="32768" crc="00d100bd" sha1="fb6028e3519d6588a966d1b16d47453db2e51fd7" region="text" offset="0" />
    <rom name="base.bin" size="32768" crc="456dd16e" sha1="84779ee64d3ea33ba1ba4dee39b504a81c6811a1" region="user1" offset="0" />
    <rom name="rom5.bin" merge="rom5.bin" size="1048576" crc="f6d49863" sha1="3a3c354852adad06e8a051511abfab7606bce382" region="oki1" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="4000000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="2000000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Credits to Start" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="1" value="0" default="yes" />
      <dipvalue name="2" value="2" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="28">
      <diplocation name="SW1" number="3" inverted="yes" />
      <diplocation name="SW1" number="4" inverted="yes" />
      <diplocation name="SW1" number="5" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="24" />
      <dipvalue name="3 Coins/1 Credit" value="20" />
      <dipvalue name="2 Coins/1 Credit" value="16" />
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="1 Coin/2 Credits" value="4" />
      <dipvalue name="1 Coin/3 Credits" value="8" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="Free Play" value="28" />
    </dipswitch>
    <dipswitch name="Joystick Mode" tag="DSWA" mask="32">
      <condition tag="DSWA" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="90 degrees ACW" value="0" default="yes">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="Normal" value="32">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Effect" tag="DSWA" mask="64">
      <condition tag="DSWA" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="64">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Music" tag="DSWA" mask="128">
      <condition tag="DSWA" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="128">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="224">
      <condition tag="DSWA" mask="28" relation="ne" value="28" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="192">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="160">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="32">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="96">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWB" mask="4">
      <diplocation name="SW2" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWB" mask="8">
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="112">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="4" value="16" />
      <dipvalue name="5" value="64" />
      <dipvalue name="6" value="80" />
      <dipvalue name="Infinite" value="96" />
      <dipvalue name="Invulnerability (Cheat)" value="112" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="None" value="0" default="yes">
        <condition tag="JMPR" mask="3" relation="ne" value="0" />
      </dipvalue>
      <dipvalue name="Every 2000k" value="128">
        <condition tag="JMPR" mask="3" relation="ne" value="0" />
      </dipvalue>
      <dipvalue name="1000k and 2000k" value="128">
        <condition tag="JMPR" mask="3" relation="eq" value="0" />
      </dipvalue>
      <dipvalue name="Every 1000k" value="0" default="yes">
        <condition tag="JMPR" mask="3" relation="eq" value="0" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Allow Continue" tag="JMPR" mask="4">
      <diplocation name="SW3" number="2" inverted="yes" />
      <dipvalue name="No" value="4" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Stage Edit" tag="JMPR" mask="8">
      <diplocation name="SW3" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="8" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <configuration name="Region" tag="JMPR" mask="3">
      <confsetting name="Denmark (Tuning)" value="1" />
      <confsetting name="China" value="3" default="yes" />
    </configuration>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":JMPR" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="bgareggacn" sourcefile="toaplan2.cpp" cloneof="bgaregga" romof="bgaregga">
    <description>Battle Garegga - Type 2 (Denmark / China) (Tue Apr 2 1996)</description>
    <year>1996</year>
    <manufacturer>Raizing / Eighting</manufacturer>
    <rom name="u123" size="524288" crc="88a4e66a" sha1="ca97e564eed0c5e028b937312e55da56400d5c8c" region="maincpu" offset="0" />
    <rom name="u65" size="524288" crc="5dea32a3" sha1="59df6689e3eb5ea9e49a758604d21a64c65ca14d" region="maincpu" offset="1" />
    <rom name="snd.bin" merge="snd.bin" size="131072" crc="68632952" sha1="fb834db83157948e2b420b6051102a9c6ac3969b" region="audiocpu" offset="0" />
    <rom name="rom4.bin" merge="rom4.bin" size="2097152" crc="b333d81f" sha1="5481465f1304334fd55798be2f44324c57c2dbcb" region="gp9001_0" offset="0" />
    <rom name="rom3.bin" merge="rom3.bin" size="2097152" crc="51b9ebfb" sha1="30e0c326f5175aa436df8dba08f6f4e08130b92f" region="gp9001_0" offset="200000" />
    <rom name="rom2.bin" merge="rom2.bin" size="2097152" crc="b330e5e2" sha1="5d48e9d56f99d093b6390e0af1609fd796df2d35" region="gp9001_0" offset="400000" />
    <rom name="rom1.bin" merge="rom1.bin" size="2097152" crc="7eafdd70" sha1="7c8da8e86c3f9491719b1d7d5d285568d7614f38" region="gp9001_0" offset="600000" />
    <rom name="text.u81" merge="text.u81" size="32768" crc="e67fd534" sha1="987d0edffc2c243a13d4567319ea3d185eaadbf8" region="text" offset="0" />
    <rom name="rom5.bin" merge="rom5.bin" size="1048576" crc="f6d49863" sha1="3a3c354852adad06e8a051511abfab7606bce382" region="oki1" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="4000000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="2000000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Credits to Start" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="1" value="0" default="yes" />
      <dipvalue name="2" value="2" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="28">
      <diplocation name="SW1" number="3" inverted="yes" />
      <diplocation name="SW1" number="4" inverted="yes" />
      <diplocation name="SW1" number="5" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="24" />
      <dipvalue name="3 Coins/1 Credit" value="20" />
      <dipvalue name="2 Coins/1 Credit" value="16" />
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="1 Coin/2 Credits" value="4" />
      <dipvalue name="1 Coin/3 Credits" value="8" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="Free Play" value="28" />
    </dipswitch>
    <dipswitch name="Joystick Mode" tag="DSWA" mask="32">
      <condition tag="DSWA" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="90 degrees ACW" value="0" default="yes">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="Normal" value="32">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Effect" tag="DSWA" mask="64">
      <condition tag="DSWA" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="64">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Music" tag="DSWA" mask="128">
      <condition tag="DSWA" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="128">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="224">
      <condition tag="DSWA" mask="28" relation="ne" value="28" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="192">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="160">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="32">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="96">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWB" mask="4">
      <diplocation name="SW2" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWB" mask="8">
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="112">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="4" value="16" />
      <dipvalue name="5" value="64" />
      <dipvalue name="6" value="80" />
      <dipvalue name="Infinite" value="96" />
      <dipvalue name="Invulnerability (Cheat)" value="112" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="None" value="0" default="yes">
        <condition tag="JMPR" mask="3" relation="ne" value="0" />
      </dipvalue>
      <dipvalue name="Every 2000k" value="128">
        <condition tag="JMPR" mask="3" relation="ne" value="0" />
      </dipvalue>
      <dipvalue name="1000k and 2000k" value="128">
        <condition tag="JMPR" mask="3" relation="eq" value="0" />
      </dipvalue>
      <dipvalue name="Every 1000k" value="0" default="yes">
        <condition tag="JMPR" mask="3" relation="eq" value="0" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Allow Continue" tag="JMPR" mask="4">
      <diplocation name="SW3" number="2" inverted="yes" />
      <dipvalue name="No" value="4" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Stage Edit" tag="JMPR" mask="8">
      <diplocation name="SW3" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="8" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <configuration name="Region" tag="JMPR" mask="3">
      <confsetting name="Denmark (Tuning)" value="1" />
      <confsetting name="China" value="3" default="yes" />
    </configuration>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":JMPR" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="bgareggahk" sourcefile="toaplan2.cpp" cloneof="bgaregga" romof="bgaregga">
    <description>Battle Garegga (Austria / Hong Kong) (Sat Feb 3 1996)</description>
    <year>1996</year>
    <manufacturer>Raizing / Eighting</manufacturer>
    <rom name="prg_0.rom" size="524288" crc="26e0019e" sha1="5197001f5d59246b137e19ed1952a8207b25d4c0" region="maincpu" offset="0" />
    <rom name="prg_1.rom" merge="prg1.bin" size="524288" crc="2ccfdd1e" sha1="7a9f11f851854f3f8389b9c3c0906ebb8dc28712" region="maincpu" offset="1" />
    <rom name="snd.bin" merge="snd.bin" size="131072" crc="68632952" sha1="fb834db83157948e2b420b6051102a9c6ac3969b" region="audiocpu" offset="0" />
    <rom name="rom4.bin" merge="rom4.bin" size="2097152" crc="b333d81f" sha1="5481465f1304334fd55798be2f44324c57c2dbcb" region="gp9001_0" offset="0" />
    <rom name="rom3.bin" merge="rom3.bin" size="2097152" crc="51b9ebfb" sha1="30e0c326f5175aa436df8dba08f6f4e08130b92f" region="gp9001_0" offset="200000" />
    <rom name="rom2.bin" merge="rom2.bin" size="2097152" crc="b330e5e2" sha1="5d48e9d56f99d093b6390e0af1609fd796df2d35" region="gp9001_0" offset="400000" />
    <rom name="rom1.bin" merge="rom1.bin" size="2097152" crc="7eafdd70" sha1="7c8da8e86c3f9491719b1d7d5d285568d7614f38" region="gp9001_0" offset="600000" />
    <rom name="text.u81" merge="text.u81" size="32768" crc="e67fd534" sha1="987d0edffc2c243a13d4567319ea3d185eaadbf8" region="text" offset="0" />
    <rom name="rom5.bin" merge="rom5.bin" size="1048576" crc="f6d49863" sha1="3a3c354852adad06e8a051511abfab7606bce382" region="oki1" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="4000000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="2000000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Credits to Start" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="1" value="0" default="yes" />
      <dipvalue name="2" value="2" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="28">
      <diplocation name="SW1" number="3" inverted="yes" />
      <diplocation name="SW1" number="4" inverted="yes" />
      <diplocation name="SW1" number="5" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="24" />
      <dipvalue name="3 Coins/1 Credit" value="20" />
      <dipvalue name="2 Coins/1 Credit" value="16" />
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="1 Coin/2 Credits" value="4" />
      <dipvalue name="1 Coin/3 Credits" value="8" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="Free Play" value="28" />
    </dipswitch>
    <dipswitch name="Joystick Mode" tag="DSWA" mask="32">
      <condition tag="DSWA" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="90 degrees ACW" value="0" default="yes">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="Normal" value="32">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Effect" tag="DSWA" mask="64">
      <condition tag="DSWA" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="64">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Music" tag="DSWA" mask="128">
      <condition tag="DSWA" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="128">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="224">
      <condition tag="DSWA" mask="28" relation="ne" value="28" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="192">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="160">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="32">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="96">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWB" mask="4">
      <diplocation name="SW2" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWB" mask="8">
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="112">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="4" value="16" />
      <dipvalue name="5" value="64" />
      <dipvalue name="6" value="80" />
      <dipvalue name="Infinite" value="96" />
      <dipvalue name="Invulnerability (Cheat)" value="112" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="None" value="0" default="yes">
        <condition tag="JMPR" mask="3" relation="ne" value="0" />
      </dipvalue>
      <dipvalue name="Every 2000k" value="128">
        <condition tag="JMPR" mask="3" relation="ne" value="0" />
      </dipvalue>
      <dipvalue name="1000k and 2000k" value="128">
        <condition tag="JMPR" mask="3" relation="eq" value="0" />
      </dipvalue>
      <dipvalue name="Every 1000k" value="0" default="yes">
        <condition tag="JMPR" mask="3" relation="eq" value="0" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Allow Continue" tag="JMPR" mask="4">
      <diplocation name="SW3" number="2" inverted="yes" />
      <dipvalue name="No" value="4" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Stage Edit" tag="JMPR" mask="8">
      <diplocation name="SW3" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="8" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <configuration name="Region" tag="JMPR" mask="3">
      <confsetting name="Austria (Tuning)" value="1" />
      <confsetting name="Hong Kong (Metrotainment)" value="3" default="yes" />
    </configuration>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":JMPR" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="bgaregganv" sourcefile="toaplan2.cpp" cloneof="bgaregga" romof="bgaregga">
    <description>Battle Garegga - New Version (Austria / Hong Kong) (Sat Mar 2 1996)</description>
    <year>1996</year>
    <manufacturer>Raizing / Eighting</manufacturer>
    <rom name="prg_0.bin" size="524288" crc="951ecc07" sha1="a82e4b59e4a974566e59f3ab2fbae1aec7d88a2b" region="maincpu" offset="0" />
    <rom name="prg_1.bin" size="524288" crc="729a60c6" sha1="cb6f5d138bb82c32910f42d8ee16fa573a23cef3" region="maincpu" offset="1" />
    <rom name="snd.bin" merge="snd.bin" size="131072" crc="68632952" sha1="fb834db83157948e2b420b6051102a9c6ac3969b" region="audiocpu" offset="0" />
    <rom name="rom4.bin" merge="rom4.bin" size="2097152" crc="b333d81f" sha1="5481465f1304334fd55798be2f44324c57c2dbcb" region="gp9001_0" offset="0" />
    <rom name="rom3.bin" merge="rom3.bin" size="2097152" crc="51b9ebfb" sha1="30e0c326f5175aa436df8dba08f6f4e08130b92f" region="gp9001_0" offset="200000" />
    <rom name="rom2.bin" merge="rom2.bin" size="2097152" crc="b330e5e2" sha1="5d48e9d56f99d093b6390e0af1609fd796df2d35" region="gp9001_0" offset="400000" />
    <rom name="rom1.bin" merge="rom1.bin" size="2097152" crc="7eafdd70" sha1="7c8da8e86c3f9491719b1d7d5d285568d7614f38" region="gp9001_0" offset="600000" />
    <rom name="text.u81" merge="text.u81" size="32768" crc="e67fd534" sha1="987d0edffc2c243a13d4567319ea3d185eaadbf8" region="text" offset="0" />
    <rom name="rom5.bin" merge="rom5.bin" size="1048576" crc="f6d49863" sha1="3a3c354852adad06e8a051511abfab7606bce382" region="oki1" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="4000000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="2000000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Credits to Start" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="1" value="0" default="yes" />
      <dipvalue name="2" value="2" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="28">
      <diplocation name="SW1" number="3" inverted="yes" />
      <diplocation name="SW1" number="4" inverted="yes" />
      <diplocation name="SW1" number="5" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="24" />
      <dipvalue name="3 Coins/1 Credit" value="20" />
      <dipvalue name="2 Coins/1 Credit" value="16" />
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="1 Coin/2 Credits" value="4" />
      <dipvalue name="1 Coin/3 Credits" value="8" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="Free Play" value="28" />
    </dipswitch>
    <dipswitch name="Joystick Mode" tag="DSWA" mask="32">
      <condition tag="DSWA" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="90 degrees ACW" value="0" default="yes">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="Normal" value="32">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Effect" tag="DSWA" mask="64">
      <condition tag="DSWA" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="64">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Music" tag="DSWA" mask="128">
      <condition tag="DSWA" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="128">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="224">
      <condition tag="DSWA" mask="28" relation="ne" value="28" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="192">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="160">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="32">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="96">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWB" mask="4">
      <diplocation name="SW2" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWB" mask="8">
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="112">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="4" value="16" />
      <dipvalue name="5" value="64" />
      <dipvalue name="6" value="80" />
      <dipvalue name="Infinite" value="96" />
      <dipvalue name="Invulnerability (Cheat)" value="112" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="None" value="0" default="yes">
        <condition tag="JMPR" mask="3" relation="ne" value="0" />
      </dipvalue>
      <dipvalue name="Every 2000k" value="128">
        <condition tag="JMPR" mask="3" relation="ne" value="0" />
      </dipvalue>
      <dipvalue name="1000k and 2000k" value="128">
        <condition tag="JMPR" mask="3" relation="eq" value="0" />
      </dipvalue>
      <dipvalue name="Every 1000k" value="0" default="yes">
        <condition tag="JMPR" mask="3" relation="eq" value="0" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Allow Continue" tag="JMPR" mask="4">
      <diplocation name="SW3" number="2" inverted="yes" />
      <dipvalue name="No" value="4" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Stage Edit" tag="JMPR" mask="8">
      <diplocation name="SW3" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="8" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <configuration name="Region" tag="JMPR" mask="3">
      <confsetting name="Austria (Tuning)" value="1" />
      <confsetting name="Hong Kong (Metrotainment)" value="3" default="yes" />
    </configuration>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":JMPR" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="bgareggat" sourcefile="toaplan2.cpp" cloneof="bgaregga" romof="bgaregga">
    <description>Battle Garegga (location test) (Wed Jan 17 1996)</description>
    <year>1996</year>
    <manufacturer>Raizing / Eighting</manufacturer>
    <rom name="battlegaregga-prg0-8-1-17.bin" size="524288" crc="c032176f" sha1="799ba0424489361dd2f814afaf841326bc23300c" region="maincpu" offset="0" />
    <rom name="battlegaregga-prg1-8-1-17.bin" size="524288" crc="3822f375" sha1="a5a84cf48c86d8ac97f401280667658d7f451896" region="maincpu" offset="1" />
    <rom name="battlegaregga-snd-8-1-18-loke-ver.bin" size="131072" crc="f5ea56f7" sha1="9db04069b378dbad6626fd29d3762e3361b9aa0d" region="audiocpu" offset="0" />
    <rom name="rom4.bin" merge="rom4.bin" size="2097152" crc="b333d81f" sha1="5481465f1304334fd55798be2f44324c57c2dbcb" region="gp9001_0" offset="0" />
    <rom name="rom3.bin" merge="rom3.bin" size="2097152" crc="51b9ebfb" sha1="30e0c326f5175aa436df8dba08f6f4e08130b92f" region="gp9001_0" offset="200000" />
    <rom name="rom2.bin" merge="rom2.bin" size="2097152" crc="b330e5e2" sha1="5d48e9d56f99d093b6390e0af1609fd796df2d35" region="gp9001_0" offset="400000" />
    <rom name="rom1.bin" merge="rom1.bin" size="2097152" crc="7eafdd70" sha1="7c8da8e86c3f9491719b1d7d5d285568d7614f38" region="gp9001_0" offset="600000" />
    <rom name="text.u81" merge="text.u81" size="32768" crc="e67fd534" sha1="987d0edffc2c243a13d4567319ea3d185eaadbf8" region="text" offset="0" />
    <rom name="rom5.bin" merge="rom5.bin" size="1048576" crc="f6d49863" sha1="3a3c354852adad06e8a051511abfab7606bce382" region="oki1" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="4000000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="2000000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Credits to Start" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="1" value="0" default="yes" />
      <dipvalue name="2" value="2" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="28">
      <diplocation name="SW1" number="3" inverted="yes" />
      <diplocation name="SW1" number="4" inverted="yes" />
      <diplocation name="SW1" number="5" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="24" />
      <dipvalue name="3 Coins/1 Credit" value="20" />
      <dipvalue name="2 Coins/1 Credit" value="16" />
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="1 Coin/2 Credits" value="4" />
      <dipvalue name="1 Coin/3 Credits" value="8" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="Free Play" value="28" />
    </dipswitch>
    <dipswitch name="Joystick Mode" tag="DSWA" mask="32">
      <condition tag="DSWA" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="90 degrees ACW" value="0" default="yes">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="Normal" value="32">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Effect" tag="DSWA" mask="64">
      <condition tag="DSWA" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="64">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Music" tag="DSWA" mask="128">
      <condition tag="DSWA" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="128">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="224">
      <condition tag="DSWA" mask="28" relation="ne" value="28" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="192">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="160">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="32">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="96">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWB" mask="4">
      <diplocation name="SW2" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWB" mask="8">
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="112">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="4" value="16" />
      <dipvalue name="5" value="64" />
      <dipvalue name="6" value="80" />
      <dipvalue name="Infinite" value="96" />
      <dipvalue name="Invulnerability (Cheat)" value="112" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="None" value="0" default="yes">
        <condition tag="JMPR" mask="3" relation="ne" value="0" />
      </dipvalue>
      <dipvalue name="Every 2000k" value="128">
        <condition tag="JMPR" mask="3" relation="ne" value="0" />
      </dipvalue>
      <dipvalue name="1000k and 2000k" value="128">
        <condition tag="JMPR" mask="3" relation="eq" value="0" />
      </dipvalue>
      <dipvalue name="Every 1000k" value="0" default="yes">
        <condition tag="JMPR" mask="3" relation="eq" value="0" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Allow Continue" tag="JMPR" mask="4">
      <diplocation name="SW3" number="2" inverted="yes" />
      <dipvalue name="No" value="4" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Stage Edit" tag="JMPR" mask="8">
      <diplocation name="SW3" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="8" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <configuration name="Region" tag="JMPR" mask="3">
      <confsetting name="Europe (Tuning)" value="1" default="yes" />
      <confsetting name="USA (Fabtek)" value="2" />
      <confsetting name="Japan" value="0" />
      <confsetting name="Asia" value="3" />
    </configuration>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":JMPR" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="bgareggat2" sourcefile="toaplan2.cpp" cloneof="bgaregga" romof="bgaregga">
    <description>Battle Garegga - Type 2 (Europe / USA / Japan / Asia) (Sat Mar 2 1996)</description>
    <year>1996</year>
    <manufacturer>Raizing / Eighting</manufacturer>
    <rom name="prg0" size="524288" crc="84094099" sha1="49fc68a8bcdae4477e20eade9dd569de88b0b798" region="maincpu" offset="0" />
    <rom name="prg1" size="524288" crc="46f92fe4" sha1="62a02cc1dbdc3ac362339aebb62368eb89b06bad" region="maincpu" offset="1" />
    <rom name="snd.bin" merge="snd.bin" size="131072" crc="68632952" sha1="fb834db83157948e2b420b6051102a9c6ac3969b" region="audiocpu" offset="0" />
    <rom name="rom4.bin" merge="rom4.bin" size="2097152" crc="b333d81f" sha1="5481465f1304334fd55798be2f44324c57c2dbcb" region="gp9001_0" offset="0" />
    <rom name="rom3.bin" merge="rom3.bin" size="2097152" crc="51b9ebfb" sha1="30e0c326f5175aa436df8dba08f6f4e08130b92f" region="gp9001_0" offset="200000" />
    <rom name="rom2.bin" merge="rom2.bin" size="2097152" crc="b330e5e2" sha1="5d48e9d56f99d093b6390e0af1609fd796df2d35" region="gp9001_0" offset="400000" />
    <rom name="rom1.bin" merge="rom1.bin" size="2097152" crc="7eafdd70" sha1="7c8da8e86c3f9491719b1d7d5d285568d7614f38" region="gp9001_0" offset="600000" />
    <rom name="text.u81" merge="text.u81" size="32768" crc="e67fd534" sha1="987d0edffc2c243a13d4567319ea3d185eaadbf8" region="text" offset="0" />
    <rom name="rom5.bin" merge="rom5.bin" size="1048576" crc="f6d49863" sha1="3a3c354852adad06e8a051511abfab7606bce382" region="oki1" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="4000000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="2000000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Credits to Start" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="1" value="0" default="yes" />
      <dipvalue name="2" value="2" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="28">
      <diplocation name="SW1" number="3" inverted="yes" />
      <diplocation name="SW1" number="4" inverted="yes" />
      <diplocation name="SW1" number="5" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="24" />
      <dipvalue name="3 Coins/1 Credit" value="20" />
      <dipvalue name="2 Coins/1 Credit" value="16" />
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="1 Coin/2 Credits" value="4" />
      <dipvalue name="1 Coin/3 Credits" value="8" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="Free Play" value="28" />
    </dipswitch>
    <dipswitch name="Joystick Mode" tag="DSWA" mask="32">
      <condition tag="DSWA" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="90 degrees ACW" value="0" default="yes">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="Normal" value="32">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Effect" tag="DSWA" mask="64">
      <condition tag="DSWA" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="64">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Music" tag="DSWA" mask="128">
      <condition tag="DSWA" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="128">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="224">
      <condition tag="DSWA" mask="28" relation="ne" value="28" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="192">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="160">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="32">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="96">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWB" mask="4">
      <diplocation name="SW2" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWB" mask="8">
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="112">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="4" value="16" />
      <dipvalue name="5" value="64" />
      <dipvalue name="6" value="80" />
      <dipvalue name="Infinite" value="96" />
      <dipvalue name="Invulnerability (Cheat)" value="112" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="None" value="0" default="yes">
        <condition tag="JMPR" mask="3" relation="ne" value="0" />
      </dipvalue>
      <dipvalue name="Every 2000k" value="128">
        <condition tag="JMPR" mask="3" relation="ne" value="0" />
      </dipvalue>
      <dipvalue name="1000k and 2000k" value="128">
        <condition tag="JMPR" mask="3" relation="eq" value="0" />
      </dipvalue>
      <dipvalue name="Every 1000k" value="0" default="yes">
        <condition tag="JMPR" mask="3" relation="eq" value="0" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Allow Continue" tag="JMPR" mask="4">
      <diplocation name="SW3" number="2" inverted="yes" />
      <dipvalue name="No" value="4" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Stage Edit" tag="JMPR" mask="8">
      <diplocation name="SW3" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="8" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <configuration name="Region" tag="JMPR" mask="3">
      <confsetting name="Europe (Tuning)" value="1" default="yes" />
      <confsetting name="USA (Fabtek)" value="2" />
      <confsetting name="Japan" value="0" />
      <confsetting name="Asia" value="3" />
    </configuration>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":JMPR" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="bgareggatw" sourcefile="toaplan2.cpp" cloneof="bgaregga" romof="bgaregga">
    <description>Battle Garegga (Taiwan / Germany) (Thu Feb 1 1996)</description>
    <year>1996</year>
    <manufacturer>Raizing / Eighting</manufacturer>
    <rom name="garegga_prg0.u123" size="524288" crc="235b7405" sha1="a2434801df4231a6b48f6c63f47c202d25a89e79" region="maincpu" offset="0" />
    <rom name="garegga_prg1.u65" size="524288" crc="c29ccf6a" sha1="38806e0b4ff852f4bfefd80c56ca23f71623e275" region="maincpu" offset="1" />
    <rom name="snd.bin" merge="snd.bin" size="131072" crc="68632952" sha1="fb834db83157948e2b420b6051102a9c6ac3969b" region="audiocpu" offset="0" />
    <rom name="rom4.bin" merge="rom4.bin" size="2097152" crc="b333d81f" sha1="5481465f1304334fd55798be2f44324c57c2dbcb" region="gp9001_0" offset="0" />
    <rom name="rom3.bin" merge="rom3.bin" size="2097152" crc="51b9ebfb" sha1="30e0c326f5175aa436df8dba08f6f4e08130b92f" region="gp9001_0" offset="200000" />
    <rom name="rom2.bin" merge="rom2.bin" size="2097152" crc="b330e5e2" sha1="5d48e9d56f99d093b6390e0af1609fd796df2d35" region="gp9001_0" offset="400000" />
    <rom name="rom1.bin" merge="rom1.bin" size="2097152" crc="7eafdd70" sha1="7c8da8e86c3f9491719b1d7d5d285568d7614f38" region="gp9001_0" offset="600000" />
    <rom name="text.u81" merge="text.u81" size="32768" crc="e67fd534" sha1="987d0edffc2c243a13d4567319ea3d185eaadbf8" region="text" offset="0" />
    <rom name="rom5.bin" merge="rom5.bin" size="1048576" crc="f6d49863" sha1="3a3c354852adad06e8a051511abfab7606bce382" region="oki1" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="4000000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="2000000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Credits to Start" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="1" value="0" default="yes" />
      <dipvalue name="2" value="2" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="28">
      <diplocation name="SW1" number="3" inverted="yes" />
      <diplocation name="SW1" number="4" inverted="yes" />
      <diplocation name="SW1" number="5" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="24" />
      <dipvalue name="3 Coins/1 Credit" value="20" />
      <dipvalue name="2 Coins/1 Credit" value="16" />
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="1 Coin/2 Credits" value="4" />
      <dipvalue name="1 Coin/3 Credits" value="8" />
      <dipvalue name="1 Coin/4 Credits" value="12" />
      <dipvalue name="Free Play" value="28" />
    </dipswitch>
    <dipswitch name="Joystick Mode" tag="DSWA" mask="32">
      <condition tag="DSWA" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="90 degrees ACW" value="0" default="yes">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="Normal" value="32">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Effect" tag="DSWA" mask="64">
      <condition tag="DSWA" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="64">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Music" tag="DSWA" mask="128">
      <condition tag="DSWA" mask="28" relation="eq" value="28" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
      <dipvalue name="On" value="128">
        <condition tag="DSWA" mask="28" relation="eq" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="224">
      <condition tag="DSWA" mask="28" relation="ne" value="28" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="192">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="160">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="32">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="96">
        <condition tag="DSWA" mask="28" relation="ne" value="28" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWB" mask="4">
      <diplocation name="SW2" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWB" mask="8">
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="112">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="4" value="16" />
      <dipvalue name="5" value="64" />
      <dipvalue name="6" value="80" />
      <dipvalue name="Infinite" value="96" />
      <dipvalue name="Invulnerability (Cheat)" value="112" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="None" value="0" default="yes">
        <condition tag="JMPR" mask="3" relation="ne" value="0" />
      </dipvalue>
      <dipvalue name="Every 2000k" value="128">
        <condition tag="JMPR" mask="3" relation="ne" value="0" />
      </dipvalue>
      <dipvalue name="1000k and 2000k" value="128">
        <condition tag="JMPR" mask="3" relation="eq" value="0" />
      </dipvalue>
      <dipvalue name="Every 1000k" value="0" default="yes">
        <condition tag="JMPR" mask="3" relation="eq" value="0" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Allow Continue" tag="JMPR" mask="4">
      <diplocation name="SW3" number="2" inverted="yes" />
      <dipvalue name="No" value="4" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Stage Edit" tag="JMPR" mask="8">
      <diplocation name="SW3" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="8" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <configuration name="Region" tag="JMPR" mask="3">
      <confsetting name="Germany (Tuning)" value="1" />
      <confsetting name="Taiwan (Liang Hwa)" value="3" default="yes" />
    </configuration>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":JMPR" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="demonwld" sourcefile="toaplan1.cpp">
    <description>Demon's World / Horror Story (set 1)</description>
    <year>1990</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="o16-10.v2" size="131072" crc="ca8194f3" sha1="176da6739b35ba38b40150fc62380108bcae5a24" region="maincpu" offset="0" />
    <rom name="o16-09.v2" size="131072" crc="7baea7ba" sha1="ae2b40f9efb4440ff7edbcc4f80641655f7c4671" region="maincpu" offset="1" />
    <rom name="rom11.v2" size="32768" crc="dbe08c85" sha1="536a242bfe916d15744b079261507af6f12b5b50" region="audiocpu" offset="0" />
    <rom name="dsp_21.bin" size="2048" crc="2d135376" sha1="67a2cc774d272ee1cd6e6bc1c5fc33fc6968837e" region="dsp" offset="0" />
    <rom name="dsp_22.bin" size="2048" crc="79389a71" sha1="14ec4c1c9b06702319e89a7a250d0038393437f4" region="dsp" offset="1" />
    <rom name="rom05" size="131072" crc="6506c982" sha1="6d4c1ef91e5617724789ff196abb7abf23e4a7fb" region="gfx1" offset="0" />
    <rom name="rom07" size="131072" crc="a3a0d993" sha1="50311b9447eb04271b17b212ca31d083ab5b2414" region="gfx1" offset="1" />
    <rom name="rom06" size="131072" crc="4fc5e5f3" sha1="725d4b009d575ff8ffbe1c00df352ccf235465d7" region="gfx1" offset="40000" />
    <rom name="rom08" size="131072" crc="eb53ab09" sha1="d98195cc1b65b76335b5b24adb31deae1b313f3a" region="gfx1" offset="40001" />
    <rom name="rom01" size="131072" crc="1b3724e9" sha1="3dbb0450ab1e40e6df2b7c7356352419cd3f113d" region="gfx2" offset="0" />
    <rom name="rom02" size="131072" crc="7b20a44d" sha1="4dc1a2fa2058077b112c73492808ee9381060ec7" region="gfx2" offset="1" />
    <rom name="rom03" size="131072" crc="2cacdcd0" sha1="92216d1c6859e05d39363c30e0beb45bc0ae4e1c" region="gfx2" offset="40000" />
    <rom name="rom04" size="131072" crc="76fd3201" sha1="7a12737bf90bd9760074132edeb22f3fd3e16b4f" region="gfx2" offset="40001" />
    <rom name="prom12.bpr" size="32" crc="bc88cced" sha1="5055362710c0f58823c05fb4c0e0eec638b91e3d" region="proms" offset="0" />
    <rom name="prom13.bpr" size="32" crc="a1e17492" sha1="9ddec4c97f2d541f69f3c32c47aaa21fd9699ae2" region="proms" offset="20" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="tms32010" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="ym3812" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="10000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="3500000" />
    <chip type="cpu" tag="dsp" name="Texas Instruments TMS32010" clock="14000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="YM3812 OPL2" clock="3500000" />
    <display tag="screen" type="raster" rotate="0" width="320" height="240" refresh="55.161545" pixclock="7000000" htotal="450" hbend="0" hbstart="320" vtotal="282" vbend="16" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Unused" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48" />
      <dipvalue name="3 Coins/1 Credit" value="32" />
      <dipvalue name="2 Coins/1 Credit" value="16" />
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="64" />
      <dipvalue name="1 Coin/4 Credits" value="128" />
      <dipvalue name="1 Coin/6 Credits" value="192" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Medium" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Hardest" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="30K, every 100K" value="0" default="yes" />
      <dipvalue name="50K and 100K" value="4" />
      <dipvalue name="100K only" value="8" />
      <dipvalue name="None" value="12" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="128" />
    </dipswitch>
    <dipswitch name="Territory/Copyright" tag="TJUMP" mask="1">
      <diplocation name="JMPR" number="1" inverted="yes" />
      <dipvalue name="Toaplan" value="1" default="yes" />
      <dipvalue name="Japan/Taito Corp" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="TJUMP" mask="2">
      <diplocation name="JMPR" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Unknown" tag="TJUMP" mask="4">
      <diplocation name="JMPR" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Unknown" tag="TJUMP" mask="8">
      <diplocation name="JMPR" number="4" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="8" />
    </dipswitch>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SYSTEM" />
    <port tag=":TJUMP" />
    <port tag=":VBLANK" />
    <driver status="good" emulation="good" savestate="unsupported" />
  </machine>
  <machine name="demonwld1" sourcefile="toaplan1.cpp" cloneof="demonwld" romof="demonwld">
    <description>Demon's World / Horror Story (set 2)</description>
    <year>1989</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="o16n-10.bin" size="131072" crc="fc38aeaa" sha1="db338b3ade4ee90a9528b42a6128b854efdb289f" region="maincpu" offset="0" />
    <rom name="o16n-09.bin" size="131072" crc="74f66643" sha1="3a908f9e1cbd59d674ae719e3d9c87e729dd907f" region="maincpu" offset="1" />
    <rom name="o16-11.bin" merge="rom11.v2" size="32768" crc="dbe08c85" sha1="536a242bfe916d15744b079261507af6f12b5b50" region="audiocpu" offset="0" />
    <rom name="dsp_21.bin" merge="dsp_21.bin" size="2048" crc="2d135376" sha1="67a2cc774d272ee1cd6e6bc1c5fc33fc6968837e" region="dsp" offset="0" />
    <rom name="dsp_22.bin" merge="dsp_22.bin" size="2048" crc="79389a71" sha1="14ec4c1c9b06702319e89a7a250d0038393437f4" region="dsp" offset="1" />
    <rom name="rom05" merge="rom05" size="131072" crc="6506c982" sha1="6d4c1ef91e5617724789ff196abb7abf23e4a7fb" region="gfx1" offset="0" />
    <rom name="rom07" merge="rom07" size="131072" crc="a3a0d993" sha1="50311b9447eb04271b17b212ca31d083ab5b2414" region="gfx1" offset="1" />
    <rom name="rom06" merge="rom06" size="131072" crc="4fc5e5f3" sha1="725d4b009d575ff8ffbe1c00df352ccf235465d7" region="gfx1" offset="40000" />
    <rom name="rom08" merge="rom08" size="131072" crc="eb53ab09" sha1="d98195cc1b65b76335b5b24adb31deae1b313f3a" region="gfx1" offset="40001" />
    <rom name="rom01" merge="rom01" size="131072" crc="1b3724e9" sha1="3dbb0450ab1e40e6df2b7c7356352419cd3f113d" region="gfx2" offset="0" />
    <rom name="rom02" merge="rom02" size="131072" crc="7b20a44d" sha1="4dc1a2fa2058077b112c73492808ee9381060ec7" region="gfx2" offset="1" />
    <rom name="rom03" merge="rom03" size="131072" crc="2cacdcd0" sha1="92216d1c6859e05d39363c30e0beb45bc0ae4e1c" region="gfx2" offset="40000" />
    <rom name="rom04" merge="rom04" size="131072" crc="76fd3201" sha1="7a12737bf90bd9760074132edeb22f3fd3e16b4f" region="gfx2" offset="40001" />
    <rom name="prom12.bpr" merge="prom12.bpr" size="32" crc="bc88cced" sha1="5055362710c0f58823c05fb4c0e0eec638b91e3d" region="proms" offset="0" />
    <rom name="prom13.bpr" merge="prom13.bpr" size="32" crc="a1e17492" sha1="9ddec4c97f2d541f69f3c32c47aaa21fd9699ae2" region="proms" offset="20" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="tms32010" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="ym3812" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="10000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="3500000" />
    <chip type="cpu" tag="dsp" name="Texas Instruments TMS32010" clock="14000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="YM3812 OPL2" clock="3500000" />
    <display tag="screen" type="raster" rotate="0" width="320" height="240" refresh="55.161545" pixclock="7000000" htotal="450" hbend="0" hbstart="320" vtotal="282" vbend="16" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Unused" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48" />
      <dipvalue name="3 Coins/1 Credit" value="32" />
      <dipvalue name="2 Coins/1 Credit" value="16" />
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="64" />
      <dipvalue name="1 Coin/4 Credits" value="128" />
      <dipvalue name="1 Coin/6 Credits" value="192" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Medium" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Hardest" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="30K, every 100K" value="0" default="yes" />
      <dipvalue name="50K and 100K" value="4" />
      <dipvalue name="100K only" value="8" />
      <dipvalue name="None" value="12" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="128" />
    </dipswitch>
    <dipswitch name="Territory/Copyright" tag="TJUMP" mask="1">
      <diplocation name="JMPR" number="1" inverted="yes" />
      <dipvalue name="Toaplan" value="1" default="yes" />
      <dipvalue name="Japan/Taito Corp" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="TJUMP" mask="2">
      <diplocation name="JMPR" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Unknown" tag="TJUMP" mask="4">
      <diplocation name="JMPR" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Unknown" tag="TJUMP" mask="8">
      <diplocation name="JMPR" number="4" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="8" />
    </dipswitch>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SYSTEM" />
    <port tag=":TJUMP" />
    <port tag=":VBLANK" />
    <driver status="good" emulation="good" savestate="unsupported" />
  </machine>
  <machine name="demonwld2" sourcefile="toaplan1.cpp" cloneof="demonwld" romof="demonwld">
    <description>Demon's World / Horror Story (set 3)</description>
    <year>1989</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="o16-10.rom" size="131072" crc="036ee46c" sha1="60868e5e08e0c9a538ae786de0de6b2531b30b11" region="maincpu" offset="0" />
    <rom name="o16-09.rom" size="131072" crc="bed746e3" sha1="056668edb7df99bbd240e387af17cf252d1448f3" region="maincpu" offset="1" />
    <rom name="rom11" size="32768" crc="397eca1b" sha1="84073ff6d1bc46ec6162d66ec5de305700938380" region="audiocpu" offset="0" />
    <rom name="dsp_21.bin" merge="dsp_21.bin" size="2048" crc="2d135376" sha1="67a2cc774d272ee1cd6e6bc1c5fc33fc6968837e" region="dsp" offset="0" />
    <rom name="dsp_22.bin" merge="dsp_22.bin" size="2048" crc="79389a71" sha1="14ec4c1c9b06702319e89a7a250d0038393437f4" region="dsp" offset="1" />
    <rom name="rom05" merge="rom05" size="131072" crc="6506c982" sha1="6d4c1ef91e5617724789ff196abb7abf23e4a7fb" region="gfx1" offset="0" />
    <rom name="rom07" merge="rom07" size="131072" crc="a3a0d993" sha1="50311b9447eb04271b17b212ca31d083ab5b2414" region="gfx1" offset="1" />
    <rom name="rom06" merge="rom06" size="131072" crc="4fc5e5f3" sha1="725d4b009d575ff8ffbe1c00df352ccf235465d7" region="gfx1" offset="40000" />
    <rom name="rom08" merge="rom08" size="131072" crc="eb53ab09" sha1="d98195cc1b65b76335b5b24adb31deae1b313f3a" region="gfx1" offset="40001" />
    <rom name="rom01" merge="rom01" size="131072" crc="1b3724e9" sha1="3dbb0450ab1e40e6df2b7c7356352419cd3f113d" region="gfx2" offset="0" />
    <rom name="rom02" merge="rom02" size="131072" crc="7b20a44d" sha1="4dc1a2fa2058077b112c73492808ee9381060ec7" region="gfx2" offset="1" />
    <rom name="rom03" merge="rom03" size="131072" crc="2cacdcd0" sha1="92216d1c6859e05d39363c30e0beb45bc0ae4e1c" region="gfx2" offset="40000" />
    <rom name="rom04" merge="rom04" size="131072" crc="76fd3201" sha1="7a12737bf90bd9760074132edeb22f3fd3e16b4f" region="gfx2" offset="40001" />
    <rom name="prom12.bpr" merge="prom12.bpr" size="32" crc="bc88cced" sha1="5055362710c0f58823c05fb4c0e0eec638b91e3d" region="proms" offset="0" />
    <rom name="prom13.bpr" merge="prom13.bpr" size="32" crc="a1e17492" sha1="9ddec4c97f2d541f69f3c32c47aaa21fd9699ae2" region="proms" offset="20" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="tms32010" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="ym3812" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="10000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="3500000" />
    <chip type="cpu" tag="dsp" name="Texas Instruments TMS32010" clock="14000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="YM3812 OPL2" clock="3500000" />
    <display tag="screen" type="raster" rotate="0" width="320" height="240" refresh="55.161545" pixclock="7000000" htotal="450" hbend="0" hbstart="320" vtotal="282" vbend="16" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Unused" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48" />
      <dipvalue name="3 Coins/1 Credit" value="32" />
      <dipvalue name="2 Coins/1 Credit" value="16" />
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="64" />
      <dipvalue name="1 Coin/4 Credits" value="128" />
      <dipvalue name="1 Coin/6 Credits" value="192" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Medium" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Hardest" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="30K, every 100K" value="0" default="yes" />
      <dipvalue name="50K and 100K" value="4" />
      <dipvalue name="100K only" value="8" />
      <dipvalue name="None" value="12" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="128" />
    </dipswitch>
    <dipswitch name="Territory/Copyright" tag="TJUMP" mask="3">
      <diplocation name="JMPR" number="1" inverted="yes" />
      <diplocation name="JMPR" number="2" inverted="yes" />
      <dipvalue name="World/Taito Japan" value="2" default="yes" />
      <dipvalue name="US/Toaplan" value="3" />
      <dipvalue name="US/Taito America" value="1" />
      <dipvalue name="Japan/Taito Corp" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="TJUMP" mask="4">
      <diplocation name="JMPR" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Unknown" tag="TJUMP" mask="8">
      <diplocation name="JMPR" number="4" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="8" />
    </dipswitch>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SYSTEM" />
    <port tag=":TJUMP" />
    <port tag=":VBLANK" />
    <driver status="good" emulation="good" savestate="unsupported" />
  </machine>
  <machine name="demonwld3" sourcefile="toaplan1.cpp" cloneof="demonwld" romof="demonwld">
    <description>Demon's World / Horror Story (set 4)</description>
    <year>1989</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="o16-10-2.bin" size="131072" crc="84ee5218" sha1="dc2b017ee630330163be320008d8a0d761cb0cfb" region="maincpu" offset="0" />
    <rom name="o16-09-2.bin" size="131072" crc="cf474cb2" sha1="5c049082b8d7118e0d2e50c6ae07f9d3d0110498" region="maincpu" offset="1" />
    <rom name="rom11" size="32768" crc="397eca1b" sha1="84073ff6d1bc46ec6162d66ec5de305700938380" region="audiocpu" offset="0" />
    <rom name="dsp_21.bin" merge="dsp_21.bin" size="2048" crc="2d135376" sha1="67a2cc774d272ee1cd6e6bc1c5fc33fc6968837e" region="dsp" offset="0" />
    <rom name="dsp_22.bin" merge="dsp_22.bin" size="2048" crc="79389a71" sha1="14ec4c1c9b06702319e89a7a250d0038393437f4" region="dsp" offset="1" />
    <rom name="rom05" merge="rom05" size="131072" crc="6506c982" sha1="6d4c1ef91e5617724789ff196abb7abf23e4a7fb" region="gfx1" offset="0" />
    <rom name="rom07" merge="rom07" size="131072" crc="a3a0d993" sha1="50311b9447eb04271b17b212ca31d083ab5b2414" region="gfx1" offset="1" />
    <rom name="rom06" merge="rom06" size="131072" crc="4fc5e5f3" sha1="725d4b009d575ff8ffbe1c00df352ccf235465d7" region="gfx1" offset="40000" />
    <rom name="rom08" merge="rom08" size="131072" crc="eb53ab09" sha1="d98195cc1b65b76335b5b24adb31deae1b313f3a" region="gfx1" offset="40001" />
    <rom name="rom01" merge="rom01" size="131072" crc="1b3724e9" sha1="3dbb0450ab1e40e6df2b7c7356352419cd3f113d" region="gfx2" offset="0" />
    <rom name="rom02" merge="rom02" size="131072" crc="7b20a44d" sha1="4dc1a2fa2058077b112c73492808ee9381060ec7" region="gfx2" offset="1" />
    <rom name="rom03" merge="rom03" size="131072" crc="2cacdcd0" sha1="92216d1c6859e05d39363c30e0beb45bc0ae4e1c" region="gfx2" offset="40000" />
    <rom name="rom04" merge="rom04" size="131072" crc="76fd3201" sha1="7a12737bf90bd9760074132edeb22f3fd3e16b4f" region="gfx2" offset="40001" />
    <rom name="prom12.bpr" merge="prom12.bpr" size="32" crc="bc88cced" sha1="5055362710c0f58823c05fb4c0e0eec638b91e3d" region="proms" offset="0" />
    <rom name="prom13.bpr" merge="prom13.bpr" size="32" crc="a1e17492" sha1="9ddec4c97f2d541f69f3c32c47aaa21fd9699ae2" region="proms" offset="20" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="tms32010" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="ym3812" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="10000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="3500000" />
    <chip type="cpu" tag="dsp" name="Texas Instruments TMS32010" clock="14000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="YM3812 OPL2" clock="3500000" />
    <display tag="screen" type="raster" rotate="0" width="320" height="240" refresh="55.161545" pixclock="7000000" htotal="450" hbend="0" hbstart="320" vtotal="282" vbend="16" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Unused" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48" />
      <dipvalue name="3 Coins/1 Credit" value="32" />
      <dipvalue name="2 Coins/1 Credit" value="16" />
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="64" />
      <dipvalue name="1 Coin/4 Credits" value="128" />
      <dipvalue name="1 Coin/6 Credits" value="192" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Medium" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Hardest" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="30K, every 100K" value="0" default="yes" />
      <dipvalue name="50K and 100K" value="4" />
      <dipvalue name="100K only" value="8" />
      <dipvalue name="None" value="12" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="128" />
    </dipswitch>
    <dipswitch name="Territory/Copyright" tag="TJUMP" mask="3">
      <diplocation name="JMPR" number="1" inverted="yes" />
      <diplocation name="JMPR" number="2" inverted="yes" />
      <dipvalue name="World/Taito Japan" value="2" default="yes" />
      <dipvalue name="US/Toaplan" value="3" />
      <dipvalue name="US/Taito America" value="1" />
      <dipvalue name="Japan/Taito Corp" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="TJUMP" mask="4">
      <diplocation name="JMPR" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Unknown" tag="TJUMP" mask="8">
      <diplocation name="JMPR" number="4" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="8" />
    </dipswitch>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SYSTEM" />
    <port tag=":TJUMP" />
    <port tag=":VBLANK" />
    <driver status="good" emulation="good" savestate="unsupported" />
  </machine>
  <machine name="demonwld4" sourcefile="toaplan1.cpp" cloneof="demonwld" romof="demonwld">
    <description>Demon's World / Horror Story (set 5)</description>
    <year>1989</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="o16-10.bin" size="131072" crc="6f7468e0" sha1="87ef7733fd0d00d0d375dbf30332cf0614480dc2" region="maincpu" offset="0" />
    <rom name="o16-09.bin" size="131072" crc="a572f5f7" sha1="3d6a443cecd46734c7e1b761130909482c7a9914" region="maincpu" offset="1" />
    <rom name="rom11" size="32768" crc="397eca1b" sha1="84073ff6d1bc46ec6162d66ec5de305700938380" region="audiocpu" offset="0" />
    <rom name="dsp_21.bin" merge="dsp_21.bin" size="2048" crc="2d135376" sha1="67a2cc774d272ee1cd6e6bc1c5fc33fc6968837e" region="dsp" offset="0" />
    <rom name="dsp_22.bin" merge="dsp_22.bin" size="2048" crc="79389a71" sha1="14ec4c1c9b06702319e89a7a250d0038393437f4" region="dsp" offset="1" />
    <rom name="rom05" merge="rom05" size="131072" crc="6506c982" sha1="6d4c1ef91e5617724789ff196abb7abf23e4a7fb" region="gfx1" offset="0" />
    <rom name="rom07" merge="rom07" size="131072" crc="a3a0d993" sha1="50311b9447eb04271b17b212ca31d083ab5b2414" region="gfx1" offset="1" />
    <rom name="rom06" merge="rom06" size="131072" crc="4fc5e5f3" sha1="725d4b009d575ff8ffbe1c00df352ccf235465d7" region="gfx1" offset="40000" />
    <rom name="rom08" merge="rom08" size="131072" crc="eb53ab09" sha1="d98195cc1b65b76335b5b24adb31deae1b313f3a" region="gfx1" offset="40001" />
    <rom name="rom01" merge="rom01" size="131072" crc="1b3724e9" sha1="3dbb0450ab1e40e6df2b7c7356352419cd3f113d" region="gfx2" offset="0" />
    <rom name="rom02" merge="rom02" size="131072" crc="7b20a44d" sha1="4dc1a2fa2058077b112c73492808ee9381060ec7" region="gfx2" offset="1" />
    <rom name="rom03" merge="rom03" size="131072" crc="2cacdcd0" sha1="92216d1c6859e05d39363c30e0beb45bc0ae4e1c" region="gfx2" offset="40000" />
    <rom name="rom04" merge="rom04" size="131072" crc="76fd3201" sha1="7a12737bf90bd9760074132edeb22f3fd3e16b4f" region="gfx2" offset="40001" />
    <rom name="prom12.bpr" merge="prom12.bpr" size="32" crc="bc88cced" sha1="5055362710c0f58823c05fb4c0e0eec638b91e3d" region="proms" offset="0" />
    <rom name="prom13.bpr" merge="prom13.bpr" size="32" crc="a1e17492" sha1="9ddec4c97f2d541f69f3c32c47aaa21fd9699ae2" region="proms" offset="20" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="tms32010" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="ym3812" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="10000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="3500000" />
    <chip type="cpu" tag="dsp" name="Texas Instruments TMS32010" clock="14000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="YM3812 OPL2" clock="3500000" />
    <display tag="screen" type="raster" rotate="0" width="320" height="240" refresh="55.161545" pixclock="7000000" htotal="450" hbend="0" hbstart="320" vtotal="282" vbend="16" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Unused" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48" />
      <dipvalue name="3 Coins/1 Credit" value="32" />
      <dipvalue name="2 Coins/1 Credit" value="16" />
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="64" />
      <dipvalue name="1 Coin/4 Credits" value="128" />
      <dipvalue name="1 Coin/6 Credits" value="192" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Medium" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Hardest" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="30K, every 100K" value="0" default="yes" />
      <dipvalue name="50K and 100K" value="4" />
      <dipvalue name="100K only" value="8" />
      <dipvalue name="None" value="12" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="128" />
    </dipswitch>
    <dipswitch name="Territory/Copyright" tag="TJUMP" mask="3">
      <diplocation name="JMPR" number="1" inverted="yes" />
      <diplocation name="JMPR" number="2" inverted="yes" />
      <dipvalue name="World/Taito Japan" value="2" default="yes" />
      <dipvalue name="US/Toaplan" value="3" />
      <dipvalue name="US/Taito America" value="1" />
      <dipvalue name="Japan/Taito Corp" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="TJUMP" mask="4">
      <diplocation name="JMPR" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Unknown" tag="TJUMP" mask="8">
      <diplocation name="JMPR" number="4" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="8" />
    </dipswitch>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SYSTEM" />
    <port tag=":TJUMP" />
    <port tag=":VBLANK" />
    <driver status="good" emulation="good" savestate="unsupported" />
  </machine>
  <machine name="dogyuun" sourcefile="toaplan2.cpp">
    <description>Dogyuun</description>
    <year>1992</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="tp022_01.r16" size="524288" crc="79eb2429" sha1="088c5ed0ed77557ab71f52cafe35028e3648ae1e" region="maincpu" offset="0" />
    <rom name="tp022_3.w92" size="1048576" crc="191b595f" sha1="89344946daa18087cc83f92027cf5da659b1c7a5" region="gp9001_0" offset="0" />
    <rom name="tp022_4.w93" size="1048576" crc="d58d29ca" sha1="90d142fef37764ef817347a2bed77892a288a077" region="gp9001_0" offset="100000" />
    <rom name="tp022_5.w16" size="2097152" crc="d4c1db45" sha1="f5655467149ba737128c2f54c9c6cdaca6e4c35c" region="gp9001_1" offset="0" />
    <rom name="tp022_6.w17" size="2097152" crc="d48dc74f" sha1="081b5a00a2ff2bd82b98b30aab3cb5b6ae1014d5" region="gp9001_1" offset="200000" />
    <rom name="tp022_2.w30" size="262144" crc="043271b3" sha1="c7eaa929e55dd956579b824ea9d20a1d0129a925" region="oki1" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="v25" />
    <device_ref name="screen" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="12500000" />
    <chip type="cpu" tag="audiocpu" name="NEC V25" clock="12500000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3375000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="1041666" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Free Play" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="JMPR" mask="32768" relation="eq" value="32768" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="32768" relation="eq" value="32768" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="32768" relation="ne" value="32768" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="JMPR" mask="32768" relation="eq" value="32768" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="JMPR" mask="32768" relation="ne" value="32768" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="JMPR" mask="32768" relation="ne" value="32768" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="JMPR" mask="32768" relation="ne" value="32768" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="JMPR" mask="32768" relation="ne" value="32768" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="JMPR" mask="32768" relation="ne" value="32768" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="JMPR" mask="32768" relation="ne" value="32768" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="JMPR" mask="32768" relation="eq" value="32768" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="JMPR" mask="32768" relation="eq" value="32768" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="JMPR" mask="32768" relation="eq" value="32768" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="JMPR" mask="32768" relation="eq" value="32768" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="None" value="12" />
      <dipvalue name="400k only" value="8" />
      <dipvalue name="200k only" value="0" default="yes" />
      <dipvalue name="200k, 400k and 600k" value="4" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability (Cheat)" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="No" value="128" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <configuration name="Region" tag="JMPR" mask="33008">
      <confsetting name="Europe" value="32816" default="yes" />
      <confsetting name="USA" value="16" />
      <confsetting name="USA (Atari Games Corp.)" value="32" />
      <confsetting name="Japan" value="0" />
      <confsetting name="Hong Kong (Charterfield); no speedups" value="64" />
      <confsetting name="Korea (Unite Trading); no speedups" value="80" />
      <confsetting name="Taiwan; no speedups" value="96" />
      <confsetting name="USA; no speedups" value="112" />
      <confsetting name="Southeast Asia (Charterfield); no speedups" value="128" />
      <confsetting name="Hong Kong (Charterfield)" value="144" />
      <confsetting name="Korea (Unite Trading)" value="160" />
      <confsetting name="Taiwan" value="176" />
      <confsetting name="USA (Atari Games Corp.); no speedups" value="192" />
      <confsetting name="Southeast Asia (Charterfield)" value="208" />
      <confsetting name="Europe; no speedups" value="32992" />
      <confsetting name="Japan (Taito Corp.)" value="240" />
    </configuration>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":JMPR" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="dogyuuna" sourcefile="toaplan2.cpp" cloneof="dogyuun" romof="dogyuun">
    <description>Dogyuun (older set)</description>
    <year>1992</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="01.u64" size="524288" crc="fe5bd7f4" sha1="9c725466112a514c9ed0fb074422d291c175c3f4" region="maincpu" offset="0" />
    <rom name="tp022_3.w92" merge="tp022_3.w92" size="1048576" crc="191b595f" sha1="89344946daa18087cc83f92027cf5da659b1c7a5" region="gp9001_0" offset="0" />
    <rom name="tp022_4.w93" merge="tp022_4.w93" size="1048576" crc="d58d29ca" sha1="90d142fef37764ef817347a2bed77892a288a077" region="gp9001_0" offset="100000" />
    <rom name="tp022_5.w16" merge="tp022_5.w16" size="2097152" crc="d4c1db45" sha1="f5655467149ba737128c2f54c9c6cdaca6e4c35c" region="gp9001_1" offset="0" />
    <rom name="tp022_6.w17" merge="tp022_6.w17" size="2097152" crc="d48dc74f" sha1="081b5a00a2ff2bd82b98b30aab3cb5b6ae1014d5" region="gp9001_1" offset="200000" />
    <rom name="tp022_2.w30" merge="tp022_2.w30" size="262144" crc="043271b3" sha1="c7eaa929e55dd956579b824ea9d20a1d0129a925" region="oki1" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="v25" />
    <device_ref name="screen" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="12500000" />
    <chip type="cpu" tag="audiocpu" name="NEC V25" clock="12500000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3375000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="1041666" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Free Play" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="JMPR" mask="240" relation="eq" value="48" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="240" relation="eq" value="48" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="240" relation="ne" value="48" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="JMPR" mask="240" relation="eq" value="48" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="JMPR" mask="240" relation="ne" value="48" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="JMPR" mask="240" relation="ne" value="48" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="JMPR" mask="240" relation="ne" value="48" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="JMPR" mask="240" relation="ne" value="48" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="JMPR" mask="240" relation="ne" value="48" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="JMPR" mask="240" relation="ne" value="48" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="JMPR" mask="240" relation="eq" value="48" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="JMPR" mask="240" relation="eq" value="48" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="JMPR" mask="240" relation="eq" value="48" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="JMPR" mask="240" relation="eq" value="48" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="None" value="12" />
      <dipvalue name="400k only" value="8" />
      <dipvalue name="200k only" value="0" default="yes" />
      <dipvalue name="200k, 400k and 600k" value="4" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability (Cheat)" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="No" value="128" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <configuration name="Region" tag="JMPR" mask="240">
      <confsetting name="Europe" value="48" default="yes" />
      <confsetting name="USA" value="16" />
      <confsetting name="USA (Atari Games Corp.)" value="32" />
      <confsetting name="Japan" value="0" />
      <confsetting name="Hong Kong (Charterfield); no speedups" value="64" />
      <confsetting name="Korea (Unite Trading); no speedups" value="80" />
      <confsetting name="Taiwan; no speedups" value="96" />
      <confsetting name="Southeast Asia (Charterfield); no speedups" value="128" />
      <confsetting name="Hong Kong (Charterfield)" value="144" />
      <confsetting name="Korea (Unite Trading)" value="160" />
      <confsetting name="Taiwan" value="176" />
      <confsetting name="Southeast Asia (Charterfield)" value="208" />
      <confsetting name="Japan (Taito Corp.)" value="240" />
    </configuration>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":JMPR" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="dogyuunt" sourcefile="toaplan2.cpp" cloneof="dogyuun" romof="dogyuun">
    <description>Dogyuun (location test)</description>
    <year>1992</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="sample10.9.u64.bin" size="524288" crc="585f5016" sha1="18d57843f33a560a3bb4b6aef176f7ef795b742d" region="maincpu" offset="0" />
    <rom name="tp022_3.w92" merge="tp022_3.w92" size="1048576" crc="191b595f" sha1="89344946daa18087cc83f92027cf5da659b1c7a5" region="gp9001_0" offset="0" />
    <rom name="tp022_4.w93" merge="tp022_4.w93" size="1048576" crc="d58d29ca" sha1="90d142fef37764ef817347a2bed77892a288a077" region="gp9001_0" offset="100000" />
    <rom name="tp022_5.w16" merge="tp022_5.w16" size="2097152" crc="d4c1db45" sha1="f5655467149ba737128c2f54c9c6cdaca6e4c35c" region="gp9001_1" offset="0" />
    <rom name="tp022_6.w17" merge="tp022_6.w17" size="2097152" crc="d48dc74f" sha1="081b5a00a2ff2bd82b98b30aab3cb5b6ae1014d5" region="gp9001_1" offset="200000" />
    <rom name="tp022_2.w30" merge="tp022_2.w30" size="262144" crc="043271b3" sha1="c7eaa929e55dd956579b824ea9d20a1d0129a925" region="oki1" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="v25" />
    <device_ref name="screen" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="12500000" />
    <chip type="cpu" tag="audiocpu" name="NEC V25" clock="12500000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3375000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="1041666" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Free Play" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="JMPR" mask="240" relation="eq" value="32" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="240" relation="eq" value="32" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="240" relation="ne" value="32" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="JMPR" mask="240" relation="eq" value="32" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="JMPR" mask="240" relation="ne" value="32" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="JMPR" mask="240" relation="ne" value="32" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="JMPR" mask="240" relation="ne" value="32" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="JMPR" mask="240" relation="ne" value="32" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="JMPR" mask="240" relation="ne" value="32" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="JMPR" mask="240" relation="ne" value="32" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="JMPR" mask="240" relation="eq" value="32" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="JMPR" mask="240" relation="eq" value="32" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="JMPR" mask="240" relation="eq" value="32" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="JMPR" mask="240" relation="eq" value="32" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="None" value="12" />
      <dipvalue name="400k only" value="8" />
      <dipvalue name="200k only" value="0" default="yes" />
      <dipvalue name="200k, 400k and 600k" value="4" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability (Cheat)" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="No" value="128" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <configuration name="Region" tag="JMPR" mask="240">
      <confsetting name="Europe" value="32" default="yes" />
      <confsetting name="USA" value="16" />
      <confsetting name="Japan" value="0" />
      <confsetting name="Hong Kong" value="48" />
      <confsetting name="Korea" value="64" />
      <confsetting name="Taiwan" value="80" />
      <confsetting name="Southeast Asia (Charterfield)" value="96" />
      <confsetting name="USA (Romstar, Inc.)" value="112" />
      <confsetting name="Hong Kong (Honest Trading Co.)" value="128" />
      <confsetting name="Korea (JC Trading Corp.)" value="144" />
      <confsetting name="USA (Fabtek)" value="160" />
      <confsetting name="Japan (Taito Corp.)" value="240" />
    </configuration>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":JMPR" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="enmadaio" sourcefile="toaplan2.cpp">
    <description>Enma Daio (Japan)</description>
    <year>1993</year>
    <manufacturer>Toaplan / Taito</manufacturer>
    <rom name="03n_u53.c8" size="524288" crc="1a6ca2ee" sha1="13d34a10004ca172db7953e2be8daa90fc5b62ed" region="maincpu" offset="0" />
    <rom name="rom4_u30.c19" size="1048576" crc="7a012d8b" sha1="a33d9490573a9fd1e799d3fe567f991926851c51" region="gp9001_0" offset="0" />
    <rom name="rom5_u31.c18" size="1048576" crc="60b127ab" sha1="98785dfd6a86b4bd2c9786f6f72796c023b5b73a" region="gp9001_0" offset="100000" />
    <rom name="rom6_u65.a1" size="2097152" crc="f33c6c0b" sha1="06d73cd5b6d27de4d68f2dde1ed4dfa72b9a9178" region="oki1" offset="0" />
    <rom name="rom7_u66.a3" size="2097152" crc="1306f8b3" sha1="21b0d3180f1f4af77074c35c66844e38a464fea0" region="oki1" offset="200000" />
    <rom name="rom8_u61.a4" size="2097152" crc="4f211c00" sha1="b067de95ad595a4915effefb83789e4e3d9db6f9" region="oki1" offset="400000" />
    <rom name="rom9_u62.a6" size="2097152" crc="292d3ef6" sha1="d027d4c64e57f46e444ee83b62f6c3bdf02e4eed" region="oki1" offset="600000" />
    <rom name="rom10_u67.a8" size="2097152" crc="5219bf86" sha1="946c8fcf3c04a88517d1a66ccd56609d22da945f" region="oki1" offset="800000" />
    <rom name="rom11_u68.a10" size="2097152" crc="56fe4b1d" sha1="2ea0413b435dd178174eb66d38dc9f7ab3d07ba5" region="oki1" offset="a00000" />
    <rom name="rom12_u63.a11" size="2097152" crc="cc48ff18" sha1="10f6d9f445c9244b797846450f0c94700ccc7367" region="oki1" offset="c00000" />
    <rom name="rom13_u64.a13" size="2097152" crc="a3cd181a" sha1="6a87479c24a61f7ac940e9c9bb62a18f26c9c843" region="oki1" offset="e00000" />
    <rom name="rom14_u69.a14" size="2097152" crc="5d8cddec" sha1="1912850d065d4ce1a1cdfd5a704218e660b5345b" region="oki1" offset="1000000" />
    <rom name="rom15_u70.a16" size="2097152" crc="c75012f5" sha1="b1ba0abab3eb8e9e3778eecab4951d828c85cecb" region="oki1" offset="1200000" />
    <rom name="rom16_u71.a18" size="2097152" crc="efd02b0d" sha1="b23fa3298fc29086f9ab05bc58775ff47b4cb7a9" region="oki1" offset="1400000" />
    <rom name="rom17_u72.a19" size="2097152" crc="6b8717c3" sha1="b5b7e35deaa2f34bccd1e83844d4bc0be845d0b8" region="oki1" offset="1600000" />
    <device_ref name="m68000" />
    <device_ref name="screen" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="10000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3375000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="1" coins="2" tilt="yes">
      <control type="dial" buttons="2" minimum="0" maximum="32768" sensitivity="30" keydelta="15" />
    </input>
    <dipswitch name="Game Mode" tag="DSWA" mask="1">
      <dipvalue name="Normal Game" value="0" default="yes" />
      <dipvalue name="Stop and Slow Mode" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSWA" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <dipvalue name="1 Coin/1 Credit" value="48" default="yes" />
      <dipvalue name="2 Coins/1 Credit" value="0" />
      <dipvalue name="3 Coins/1 Credit" value="16" />
      <dipvalue name="4 Coins/1 Credit" value="32" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSWA" mask="64">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSWA" mask="128">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="128" />
    </dipswitch>
    <dipswitch name="2" tag="MISC2" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="MISC2" mask="2">
      <dipvalue name="Off" value="2" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="MISC2" mask="4">
      <dipvalue name="Off" value="4" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="MISC2" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="MISC2" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="MISC2" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="MISC2" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="MISC2" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="MISC2" mask="256">
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="MISC2" mask="512">
      <dipvalue name="Off" value="512" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="MISC2" mask="1024">
      <dipvalue name="Off" value="1024" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="MISC2" mask="2048">
      <dipvalue name="Off" value="2048" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="MISC2" mask="4096">
      <dipvalue name="Off" value="4096" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="MISC2" mask="8192">
      <dipvalue name="Off" value="8192" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="MISC2" mask="16384">
      <dipvalue name="Off" value="16384" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="MISC2" mask="32768">
      <dipvalue name="Off" value="32768" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="3" tag="MISC3" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="MISC3" mask="2">
      <dipvalue name="Off" value="2" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="MISC3" mask="4">
      <dipvalue name="Off" value="4" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="MISC3" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="MISC3" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="MISC3" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="MISC3" mask="256">
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="MISC3" mask="512">
      <dipvalue name="Off" value="512" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="MISC3" mask="1024">
      <dipvalue name="Off" value="1024" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="MISC3" mask="2048">
      <dipvalue name="Off" value="2048" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="MISC3" mask="4096">
      <dipvalue name="Off" value="4096" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="MISC3" mask="8192">
      <dipvalue name="Off" value="8192" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="MISC3" mask="16384">
      <dipvalue name="Off" value="16384" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="MISC3" mask="32768">
      <dipvalue name="Off" value="32768" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="4" tag="MISC4" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="MISC4" mask="2">
      <dipvalue name="Off" value="2" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Status of Something 1" tag="MISC4" mask="4">
      <dipvalue name="Off" value="4" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Unknown" tag="MISC4" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="MISC4" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="MISC4" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Status of Something 2" tag="MISC4" mask="64">
      <dipvalue name="Off" value="64" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Unknown" tag="MISC4" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="MISC4" mask="256">
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="MISC4" mask="512">
      <dipvalue name="Off" value="512" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="MISC4" mask="1024">
      <dipvalue name="Off" value="1024" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="MISC4" mask="2048">
      <dipvalue name="Off" value="2048" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="MISC4" mask="4096">
      <dipvalue name="Off" value="4096" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="MISC4" mask="8192">
      <dipvalue name="Off" value="8192" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="MISC4" mask="16384">
      <dipvalue name="Off" value="16384" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="MISC4" mask="32768">
      <dipvalue name="Off" value="32768" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Freeze" tag="UNK" mask="256">
      <dipvalue name="Off" value="256" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="UNK" mask="512">
      <dipvalue name="Off" value="512" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="UNK" mask="1024">
      <dipvalue name="Off" value="1024" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="UNK" mask="2048">
      <dipvalue name="Off" value="2048" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="UNK" mask="4096">
      <dipvalue name="Off" value="4096" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="UNK" mask="8192">
      <dipvalue name="Off" value="8192" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="UNK" mask="16384">
      <dipvalue name="Off" value="16384" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="UNK" mask="32768">
      <dipvalue name="Off" value="32768" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSWA" />
    <port tag=":MISC2" />
    <port tag=":MISC3" />
    <port tag=":MISC4" />
    <port tag=":SYS" />
    <port tag=":UNK">
      <analog mask="255" />
    </port>
    <driver status="good" emulation="good" savestate="unsupported" />
  </machine>
  <machine name="fireshrk" sourcefile="toaplan1.cpp">
    <description>Fire Shark</description>
    <year>1990</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="09.8j" size="32768" crc="f0c70e6f" sha1="037690448786d61aa116b24b638430c577ea78e2" region="maincpu" offset="0" />
    <rom name="10.8l" size="32768" crc="9d253d77" sha1="0414d1f475abb9ccfd7daa11c2f400a14f25db09" region="maincpu" offset="1" />
    <rom name="o17_11ii.7j" size="131072" crc="6beac378" sha1="041ba98a89a4bac32575858db8a061bdf7804594" region="maincpu" offset="40000" />
    <rom name="o17_12ii.7l" size="131072" crc="6adb6eb5" sha1="9b6e63aa50d271c2bb0b4cf822fc6f3684f10230" region="maincpu" offset="40001" />
    <rom name="hd647180.017" size="32768" crc="43523032" sha1="1b94003a00e7bf6bdf1b1b946f42ff5d04629949" region="audiocpu" offset="0" />
    <rom name="o17_05.12j" size="131072" crc="565315f8" sha1="6b1c5ef52359483228b329c89c2e1174e3fbf017" region="gfx1" offset="0" />
    <rom name="o17_06.13j" size="131072" crc="95262d4c" sha1="16f3aabecb1c87ce7eadf4f0ff61b29a4c017614" region="gfx1" offset="1" />
    <rom name="o17_07.12l" size="131072" crc="4c4b735c" sha1="812c3bf46bd7764b2bb812bd2b9eb0331ed257ae" region="gfx1" offset="40000" />
    <rom name="o17_08.13l" size="131072" crc="95c6586c" sha1="ff87901f79d80f73ad09664b0c0d892898570616" region="gfx1" offset="40001" />
    <rom name="o17_01.1d" size="131072" crc="ea12e491" sha1="02190722b7c5383471e0af9596be7039a5367240" region="gfx2" offset="0" />
    <rom name="o17_02.3d" size="131072" crc="32a13a9f" sha1="1446acdfd21cd41f3d97aaf30f498c0c5d890605" region="gfx2" offset="1" />
    <rom name="o17_03.5d" size="131072" crc="68723dc9" sha1="4f1b7aa2469c955e03737b611a7d2524f1e4f61e" region="gfx2" offset="40000" />
    <rom name="o17_04.7d" size="131072" crc="fe0ecb13" sha1="634a49262b9c092c25f11b14c6757fe94ea9eddc" region="gfx2" offset="40001" />
    <rom name="prom14.25b" size="32" crc="bc88cced" sha1="5055362710c0f58823c05fb4c0e0eec638b91e3d" region="proms" offset="0" />
    <rom name="prom15.20c" size="32" crc="a1e17492" sha1="9ddec4c97f2d541f69f3c32c47aaa21fd9699ae2" region="proms" offset="20" />
    <device_ref name="m68000" />
    <device_ref name="hd647180x" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="ym3812" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="10000000" />
    <chip type="cpu" tag="audiocpu" name="Hitachi HD647180X MCU" clock="7000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="YM3812 OPL2" clock="3500000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="57.613169" pixclock="7000000" htotal="450" hbend="0" hbstart="320" vtotal="270" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Unknown" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48" />
      <dipvalue name="3 Coins/1 Credit" value="32" />
      <dipvalue name="2 Coins/1 Credit" value="16" />
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="64" />
      <dipvalue name="1 Coin/4 Credits" value="128" />
      <dipvalue name="1 Coin/6 Credits" value="192" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Medium" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Hardest" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="50K, every 150K" value="4" />
      <dipvalue name="70K, every 200K" value="0" default="yes" />
      <dipvalue name="100K" value="8" />
      <dipvalue name="None" value="12" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="2" value="48" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="4" value="32" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="No" value="128" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Show Territory Notice" tag="TJUMP" mask="1">
      <diplocation name="JMPR" number="1" inverted="yes" />
      <dipvalue name="No" value="1" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Region" tag="TJUMP" mask="6">
      <diplocation name="JMPR" number="2" inverted="yes" />
      <diplocation name="JMPR" number="3" inverted="yes" />
      <dipvalue name="Europe" value="2" default="yes" />
      <dipvalue name="USA" value="4" />
      <dipvalue name="USA (Romstar)" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="TJUMP" mask="8">
      <diplocation name="JMPR" number="4" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="8" />
    </dipswitch>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SYSTEM" />
    <port tag=":TJUMP" />
    <port tag=":VBLANK" />
    <driver status="good" emulation="good" savestate="unsupported" />
  </machine>
  <machine name="fireshrka" sourcefile="toaplan1.cpp" cloneof="fireshrk" romof="fireshrk">
    <description>Fire Shark (earlier)</description>
    <year>1989</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="o17_09ii.8j" size="32768" crc="b60541ee" sha1="e4fb752073c99a83939ebc45307777b94519f01c" region="maincpu" offset="0" />
    <rom name="o17_10ii.8l" size="32768" crc="96f5045e" sha1="16cf2f4d55570cf0489a426d6e841d2968f9423a" region="maincpu" offset="1" />
    <rom name="o17_11ii.7j" merge="o17_11ii.7j" size="131072" crc="6beac378" sha1="041ba98a89a4bac32575858db8a061bdf7804594" region="maincpu" offset="40000" />
    <rom name="o17_12ii.7l" merge="o17_12ii.7l" size="131072" crc="6adb6eb5" sha1="9b6e63aa50d271c2bb0b4cf822fc6f3684f10230" region="maincpu" offset="40001" />
    <rom name="hd647180.017" merge="hd647180.017" size="32768" crc="43523032" sha1="1b94003a00e7bf6bdf1b1b946f42ff5d04629949" region="audiocpu" offset="0" />
    <rom name="o17_05.12j" merge="o17_05.12j" size="131072" crc="565315f8" sha1="6b1c5ef52359483228b329c89c2e1174e3fbf017" region="gfx1" offset="0" />
    <rom name="o17_06.13j" merge="o17_06.13j" size="131072" crc="95262d4c" sha1="16f3aabecb1c87ce7eadf4f0ff61b29a4c017614" region="gfx1" offset="1" />
    <rom name="o17_07.12l" merge="o17_07.12l" size="131072" crc="4c4b735c" sha1="812c3bf46bd7764b2bb812bd2b9eb0331ed257ae" region="gfx1" offset="40000" />
    <rom name="o17_08.13l" merge="o17_08.13l" size="131072" crc="95c6586c" sha1="ff87901f79d80f73ad09664b0c0d892898570616" region="gfx1" offset="40001" />
    <rom name="o17_01.1d" merge="o17_01.1d" size="131072" crc="ea12e491" sha1="02190722b7c5383471e0af9596be7039a5367240" region="gfx2" offset="0" />
    <rom name="o17_02.3d" merge="o17_02.3d" size="131072" crc="32a13a9f" sha1="1446acdfd21cd41f3d97aaf30f498c0c5d890605" region="gfx2" offset="1" />
    <rom name="o17_03.5d" merge="o17_03.5d" size="131072" crc="68723dc9" sha1="4f1b7aa2469c955e03737b611a7d2524f1e4f61e" region="gfx2" offset="40000" />
    <rom name="o17_04.7d" merge="o17_04.7d" size="131072" crc="fe0ecb13" sha1="634a49262b9c092c25f11b14c6757fe94ea9eddc" region="gfx2" offset="40001" />
    <rom name="prom14.25b" merge="prom14.25b" size="32" crc="bc88cced" sha1="5055362710c0f58823c05fb4c0e0eec638b91e3d" region="proms" offset="0" />
    <rom name="prom15.20c" merge="prom15.20c" size="32" crc="a1e17492" sha1="9ddec4c97f2d541f69f3c32c47aaa21fd9699ae2" region="proms" offset="20" />
    <device_ref name="m68000" />
    <device_ref name="hd647180x" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="ym3812" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="10000000" />
    <chip type="cpu" tag="audiocpu" name="Hitachi HD647180X MCU" clock="7000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="YM3812 OPL2" clock="3500000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="57.613169" pixclock="7000000" htotal="450" hbend="0" hbstart="320" vtotal="270" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Unknown" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48" />
      <dipvalue name="3 Coins/1 Credit" value="32" />
      <dipvalue name="2 Coins/1 Credit" value="16" />
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="64" />
      <dipvalue name="1 Coin/4 Credits" value="128" />
      <dipvalue name="1 Coin/6 Credits" value="192" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Medium" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Hardest" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="50K, every 150K" value="4" />
      <dipvalue name="70K, every 200K" value="0" default="yes" />
      <dipvalue name="100K" value="8" />
      <dipvalue name="None" value="12" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="2" value="48" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="4" value="32" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="No" value="128" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Region" tag="TJUMP" mask="3">
      <diplocation name="JMPR" number="1" inverted="yes" />
      <diplocation name="JMPR" number="2" inverted="yes" />
      <dipvalue name="Europe" value="3" default="yes" />
      <dipvalue name="Europe" value="2" />
      <dipvalue name="Europe" value="1" />
      <dipvalue name="USA" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="TJUMP" mask="4">
      <diplocation name="JMPR" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Unknown" tag="TJUMP" mask="8">
      <diplocation name="JMPR" number="4" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="8" />
    </dipswitch>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SYSTEM" />
    <port tag=":TJUMP" />
    <port tag=":VBLANK" />
    <driver status="good" emulation="good" savestate="unsupported" />
  </machine>
  <machine name="fireshrkd" sourcefile="toaplan1.cpp" cloneof="fireshrk" romof="fireshrk">
    <description>Fire Shark (Korea, set 1, easier)</description>
    <year>1990</year>
    <manufacturer>Toaplan (Dooyong license)</manufacturer>
    <rom name="o17_09dyn.8j" size="65536" crc="e25eee27" sha1="1ff3f838123180a0b6672c9beee6c0f0092a0f94" region="maincpu" offset="0" />
    <rom name="o17_10dyn.8l" size="65536" crc="c4c58cf6" sha1="5867ecf66cd6c16cfcc54a581d3f4a8b666fd839" region="maincpu" offset="1" />
    <rom name="o17_11ii.7j" merge="o17_11ii.7j" size="131072" crc="6beac378" sha1="041ba98a89a4bac32575858db8a061bdf7804594" region="maincpu" offset="40000" />
    <rom name="o17_12ii.7l" merge="o17_12ii.7l" size="131072" crc="6adb6eb5" sha1="9b6e63aa50d271c2bb0b4cf822fc6f3684f10230" region="maincpu" offset="40001" />
    <rom name="hd647180.017" merge="hd647180.017" size="32768" crc="43523032" sha1="1b94003a00e7bf6bdf1b1b946f42ff5d04629949" region="audiocpu" offset="0" />
    <rom name="o17_05.12j" merge="o17_05.12j" size="131072" crc="565315f8" sha1="6b1c5ef52359483228b329c89c2e1174e3fbf017" region="gfx1" offset="0" />
    <rom name="o17_06.13j" merge="o17_06.13j" size="131072" crc="95262d4c" sha1="16f3aabecb1c87ce7eadf4f0ff61b29a4c017614" region="gfx1" offset="1" />
    <rom name="o17_07.12l" merge="o17_07.12l" size="131072" crc="4c4b735c" sha1="812c3bf46bd7764b2bb812bd2b9eb0331ed257ae" region="gfx1" offset="40000" />
    <rom name="o17_08.13l" merge="o17_08.13l" size="131072" crc="95c6586c" sha1="ff87901f79d80f73ad09664b0c0d892898570616" region="gfx1" offset="40001" />
    <rom name="o17_01.1d" merge="o17_01.1d" size="131072" crc="ea12e491" sha1="02190722b7c5383471e0af9596be7039a5367240" region="gfx2" offset="0" />
    <rom name="o17_02.3d" merge="o17_02.3d" size="131072" crc="32a13a9f" sha1="1446acdfd21cd41f3d97aaf30f498c0c5d890605" region="gfx2" offset="1" />
    <rom name="o17_03.5d" merge="o17_03.5d" size="131072" crc="68723dc9" sha1="4f1b7aa2469c955e03737b611a7d2524f1e4f61e" region="gfx2" offset="40000" />
    <rom name="o17_04.7d" merge="o17_04.7d" size="131072" crc="fe0ecb13" sha1="634a49262b9c092c25f11b14c6757fe94ea9eddc" region="gfx2" offset="40001" />
    <rom name="prom14.25b" merge="prom14.25b" size="32" crc="bc88cced" sha1="5055362710c0f58823c05fb4c0e0eec638b91e3d" region="proms" offset="0" />
    <rom name="prom15.20c" merge="prom15.20c" size="32" crc="a1e17492" sha1="9ddec4c97f2d541f69f3c32c47aaa21fd9699ae2" region="proms" offset="20" />
    <device_ref name="m68000" />
    <device_ref name="hd647180x" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="ym3812" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="10000000" />
    <chip type="cpu" tag="audiocpu" name="Hitachi HD647180X MCU" clock="7000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="YM3812 OPL2" clock="3500000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="57.613169" pixclock="7000000" htotal="450" hbend="0" hbstart="320" vtotal="270" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Unknown" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48" />
      <dipvalue name="3 Coins/1 Credit" value="32" />
      <dipvalue name="2 Coins/1 Credit" value="16" />
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="64" />
      <dipvalue name="1 Coin/4 Credits" value="128" />
      <dipvalue name="1 Coin/6 Credits" value="192" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Medium" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Hardest" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="50K, every 150K" value="4" />
      <dipvalue name="70K, every 200K" value="0" default="yes" />
      <dipvalue name="100K" value="8" />
      <dipvalue name="None" value="12" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="2" value="48" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="4" value="32" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="No" value="128" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Show Territory Notice" tag="TJUMP" mask="3">
      <diplocation name="JMPR" number="1" inverted="yes" />
      <diplocation name="JMPR" number="2" inverted="yes" />
      <dipvalue name="No" value="3" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Unknown" tag="TJUMP" mask="4">
      <diplocation name="JMPR" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Unknown" tag="TJUMP" mask="8">
      <diplocation name="JMPR" number="4" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="8" />
    </dipswitch>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SYSTEM" />
    <port tag=":TJUMP" />
    <port tag=":VBLANK" />
    <driver status="good" emulation="good" savestate="unsupported" />
  </machine>
  <machine name="fireshrkdh" sourcefile="toaplan1.cpp" cloneof="fireshrk" romof="fireshrk">
    <description>Fire Shark (Korea, set 2, harder)</description>
    <year>1990</year>
    <manufacturer>Toaplan (Dooyong license)</manufacturer>
    <rom name="o17_09dyh.8j" size="65536" crc="7b4c14dd" sha1="d40dcf223f16c0f507aeb282d1524dbf1349c536" region="maincpu" offset="0" />
    <rom name="o17_10dyh.8l" size="65536" crc="a3f159f9" sha1="afc9630ca38da730f7cf4954d1333954e8d75787" region="maincpu" offset="1" />
    <rom name="o17_11ii.7j" merge="o17_11ii.7j" size="131072" crc="6beac378" sha1="041ba98a89a4bac32575858db8a061bdf7804594" region="maincpu" offset="40000" />
    <rom name="o17_12ii.7l" merge="o17_12ii.7l" size="131072" crc="6adb6eb5" sha1="9b6e63aa50d271c2bb0b4cf822fc6f3684f10230" region="maincpu" offset="40001" />
    <rom name="hd647180.017" merge="hd647180.017" size="32768" crc="43523032" sha1="1b94003a00e7bf6bdf1b1b946f42ff5d04629949" region="audiocpu" offset="0" />
    <rom name="o17_05.12j" merge="o17_05.12j" size="131072" crc="565315f8" sha1="6b1c5ef52359483228b329c89c2e1174e3fbf017" region="gfx1" offset="0" />
    <rom name="o17_06.13j" merge="o17_06.13j" size="131072" crc="95262d4c" sha1="16f3aabecb1c87ce7eadf4f0ff61b29a4c017614" region="gfx1" offset="1" />
    <rom name="o17_07.12l" merge="o17_07.12l" size="131072" crc="4c4b735c" sha1="812c3bf46bd7764b2bb812bd2b9eb0331ed257ae" region="gfx1" offset="40000" />
    <rom name="o17_08.13l" merge="o17_08.13l" size="131072" crc="95c6586c" sha1="ff87901f79d80f73ad09664b0c0d892898570616" region="gfx1" offset="40001" />
    <rom name="o17_01.1d" merge="o17_01.1d" size="131072" crc="ea12e491" sha1="02190722b7c5383471e0af9596be7039a5367240" region="gfx2" offset="0" />
    <rom name="o17_02.3d" merge="o17_02.3d" size="131072" crc="32a13a9f" sha1="1446acdfd21cd41f3d97aaf30f498c0c5d890605" region="gfx2" offset="1" />
    <rom name="o17_03.5d" merge="o17_03.5d" size="131072" crc="68723dc9" sha1="4f1b7aa2469c955e03737b611a7d2524f1e4f61e" region="gfx2" offset="40000" />
    <rom name="o17_04.7d" merge="o17_04.7d" size="131072" crc="fe0ecb13" sha1="634a49262b9c092c25f11b14c6757fe94ea9eddc" region="gfx2" offset="40001" />
    <rom name="prom14.25b" merge="prom14.25b" size="32" crc="bc88cced" sha1="5055362710c0f58823c05fb4c0e0eec638b91e3d" region="proms" offset="0" />
    <rom name="prom15.20c" merge="prom15.20c" size="32" crc="a1e17492" sha1="9ddec4c97f2d541f69f3c32c47aaa21fd9699ae2" region="proms" offset="20" />
    <device_ref name="m68000" />
    <device_ref name="hd647180x" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="ym3812" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="10000000" />
    <chip type="cpu" tag="audiocpu" name="Hitachi HD647180X MCU" clock="7000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="YM3812 OPL2" clock="3500000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="57.613169" pixclock="7000000" htotal="450" hbend="0" hbstart="320" vtotal="270" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Unknown" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48" />
      <dipvalue name="3 Coins/1 Credit" value="32" />
      <dipvalue name="2 Coins/1 Credit" value="16" />
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="64" />
      <dipvalue name="1 Coin/4 Credits" value="128" />
      <dipvalue name="1 Coin/6 Credits" value="192" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Medium" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Hardest" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="50K, every 150K" value="4" />
      <dipvalue name="70K, every 200K" value="0" default="yes" />
      <dipvalue name="100K" value="8" />
      <dipvalue name="None" value="12" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="2" value="48" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="4" value="32" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="No" value="128" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Show Territory Notice" tag="TJUMP" mask="3">
      <diplocation name="JMPR" number="1" inverted="yes" />
      <diplocation name="JMPR" number="2" inverted="yes" />
      <dipvalue name="No" value="3" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Unknown" tag="TJUMP" mask="4">
      <diplocation name="JMPR" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Unknown" tag="TJUMP" mask="8">
      <diplocation name="JMPR" number="4" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="8" />
    </dipswitch>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SYSTEM" />
    <port tag=":TJUMP" />
    <port tag=":VBLANK" />
    <driver status="good" emulation="good" savestate="unsupported" />
  </machine>
  <machine name="fixeight" sourcefile="toaplan2.cpp">
    <description>FixEight (Europe)</description>
    <year>1992</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="tp-026-1" size="524288" crc="f7b1746a" sha1="0bbea6f111b818bc9b9b2060af4fe900f37cf7f9" region="maincpu" offset="0" />
    <rom name="tp-026-3" size="2097152" crc="e5578d98" sha1="280d2b716d955e767d311fc9596823852435b6d7" region="gp9001_0" offset="0" />
    <rom name="tp-026-4" size="2097152" crc="b760cb53" sha1="bc9c5e49e45cdda0f774be0038aa4deb21d4d285" region="gp9001_0" offset="200000" />
    <rom name="tp-026-2" size="262144" crc="85063f1f" sha1="1bf4d77494de421c98f6273b9876e60d827a6826" region="oki1" offset="0" />
    <rom name="fixeight.nv" size="128" crc="02e925d0" sha1="5839d10aceff84916ea99e9c6afcdc90eef7468b" region="eeprom" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="v25" />
    <device_ref name="93c46_16" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="cpu" tag="audiocpu" name="NEC V25" clock="16000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3375000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="1000000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="3" coins="3" service="yes" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
      <control type="joy" player="3" buttons="2" ways="8" />
    </input>
    <port tag=":EEPROM" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":IN3" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="fixeighta" sourcefile="toaplan2.cpp" cloneof="fixeight" romof="fixeight">
    <description>FixEight (Southeast Asia)</description>
    <year>1992</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="tp-026-1" merge="tp-026-1" size="524288" crc="f7b1746a" sha1="0bbea6f111b818bc9b9b2060af4fe900f37cf7f9" region="maincpu" offset="0" />
    <rom name="tp-026-3" merge="tp-026-3" size="2097152" crc="e5578d98" sha1="280d2b716d955e767d311fc9596823852435b6d7" region="gp9001_0" offset="0" />
    <rom name="tp-026-4" merge="tp-026-4" size="2097152" crc="b760cb53" sha1="bc9c5e49e45cdda0f774be0038aa4deb21d4d285" region="gp9001_0" offset="200000" />
    <rom name="tp-026-2" merge="tp-026-2" size="262144" crc="85063f1f" sha1="1bf4d77494de421c98f6273b9876e60d827a6826" region="oki1" offset="0" />
    <rom name="fixeighta.nv" size="128" crc="2bf17652" sha1="4ec6f188e63610d258cd6b2432d2200d61d80bed" region="eeprom" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="v25" />
    <device_ref name="93c46_16" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="cpu" tag="audiocpu" name="NEC V25" clock="16000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3375000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="1000000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="3" coins="3" service="yes" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
      <control type="joy" player="3" buttons="2" ways="8" />
    </input>
    <port tag=":EEPROM" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":IN3" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="fixeightat" sourcefile="toaplan2.cpp" cloneof="fixeight" romof="fixeight">
    <description>FixEight (Southeast Asia, Taito license)</description>
    <year>1992</year>
    <manufacturer>Toaplan (Taito license)</manufacturer>
    <rom name="tp-026-1" merge="tp-026-1" size="524288" crc="f7b1746a" sha1="0bbea6f111b818bc9b9b2060af4fe900f37cf7f9" region="maincpu" offset="0" />
    <rom name="tp-026-3" merge="tp-026-3" size="2097152" crc="e5578d98" sha1="280d2b716d955e767d311fc9596823852435b6d7" region="gp9001_0" offset="0" />
    <rom name="tp-026-4" merge="tp-026-4" size="2097152" crc="b760cb53" sha1="bc9c5e49e45cdda0f774be0038aa4deb21d4d285" region="gp9001_0" offset="200000" />
    <rom name="tp-026-2" merge="tp-026-2" size="262144" crc="85063f1f" sha1="1bf4d77494de421c98f6273b9876e60d827a6826" region="oki1" offset="0" />
    <rom name="fixeightat.nv" size="128" crc="e9c21987" sha1="7f699e38deb84902ed62b857a3d2b4e3ea1475bb" region="eeprom" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="v25" />
    <device_ref name="93c46_16" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="cpu" tag="audiocpu" name="NEC V25" clock="16000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3375000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="1000000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="3" coins="3" service="yes" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
      <control type="joy" player="3" buttons="2" ways="8" />
    </input>
    <port tag=":EEPROM" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":IN3" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="fixeightbl" sourcefile="toaplan2.cpp" cloneof="fixeight" romof="fixeight">
    <description>FixEight (Korea, bootleg)</description>
    <year>1992</year>
    <manufacturer>bootleg</manufacturer>
    <rom name="3.bin" size="524288" crc="cc77d4b4" sha1="4d3376cbae13d90c6314d8bb9236c2183fc6253c" region="maincpu" offset="0" />
    <rom name="2.bin" size="524288" crc="ed715488" sha1="37be9bc8ff6b54a1f660d89469c6c2da6301e9cd" region="maincpu" offset="1" />
    <rom name="tp-026-3" merge="tp-026-3" size="2097152" crc="e5578d98" sha1="280d2b716d955e767d311fc9596823852435b6d7" region="gp9001_0" offset="0" />
    <rom name="tp-026-4" merge="tp-026-4" size="2097152" crc="b760cb53" sha1="bc9c5e49e45cdda0f774be0038aa4deb21d4d285" region="gp9001_0" offset="200000" />
    <rom name="4.bin" size="32768" crc="a6aca465" sha1="2b331faeee1832e0adc5218254a99d66331862c6" region="text" offset="0" />
    <rom name="1.bin" size="524288" crc="888f19ac" sha1="d2f4f8b7be7a0fdb95baa0af8930e50e2f875c05" region="oki1" offset="0" />
    <rom name="5.bin" size="32768" crc="456dd16e" sha1="84779ee64d3ea33ba1ba4dee39b504a81c6811a1" region="user1" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="10000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="875000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="3" coins="3" service="yes" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
      <control type="joy" player="3" buttons="2" ways="8" />
    </input>
    <dipswitch name="Maximum Players" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="2" value="0" default="yes" />
      <dipvalue name="3" value="1" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Shooting Style" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Semi-Auto" value="4" default="yes" />
      <dipvalue name="Full-Auto" value="0" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="32" />
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48" />
      <dipvalue name="1 Coin/2 Credits" value="16" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128" />
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="192" />
      <dipvalue name="1 Coin/2 Credits" value="64" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="None" value="12" />
      <dipvalue name="500k and every 500k" value="0" default="yes" />
      <dipvalue name="300k only" value="8" />
      <dipvalue name="300k and every 300k" value="4" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability (Cheat)" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="No" value="128" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":IN3" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="fixeighth" sourcefile="toaplan2.cpp" cloneof="fixeight" romof="fixeight">
    <description>FixEight (Hong Kong)</description>
    <year>1992</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="tp-026-1" merge="tp-026-1" size="524288" crc="f7b1746a" sha1="0bbea6f111b818bc9b9b2060af4fe900f37cf7f9" region="maincpu" offset="0" />
    <rom name="tp-026-3" merge="tp-026-3" size="2097152" crc="e5578d98" sha1="280d2b716d955e767d311fc9596823852435b6d7" region="gp9001_0" offset="0" />
    <rom name="tp-026-4" merge="tp-026-4" size="2097152" crc="b760cb53" sha1="bc9c5e49e45cdda0f774be0038aa4deb21d4d285" region="gp9001_0" offset="200000" />
    <rom name="tp-026-2" merge="tp-026-2" size="262144" crc="85063f1f" sha1="1bf4d77494de421c98f6273b9876e60d827a6826" region="oki1" offset="0" />
    <rom name="fixeighth.nv" size="128" crc="95dec584" sha1="1c309074b51da5a5263dee00403296946e41067b" region="eeprom" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="v25" />
    <device_ref name="93c46_16" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="cpu" tag="audiocpu" name="NEC V25" clock="16000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3375000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="1000000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="3" coins="3" service="yes" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
      <control type="joy" player="3" buttons="2" ways="8" />
    </input>
    <port tag=":EEPROM" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":IN3" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="fixeightht" sourcefile="toaplan2.cpp" cloneof="fixeight" romof="fixeight">
    <description>FixEight (Hong Kong, Taito license)</description>
    <year>1992</year>
    <manufacturer>Toaplan (Taito license)</manufacturer>
    <rom name="tp-026-1" merge="tp-026-1" size="524288" crc="f7b1746a" sha1="0bbea6f111b818bc9b9b2060af4fe900f37cf7f9" region="maincpu" offset="0" />
    <rom name="tp-026-3" merge="tp-026-3" size="2097152" crc="e5578d98" sha1="280d2b716d955e767d311fc9596823852435b6d7" region="gp9001_0" offset="0" />
    <rom name="tp-026-4" merge="tp-026-4" size="2097152" crc="b760cb53" sha1="bc9c5e49e45cdda0f774be0038aa4deb21d4d285" region="gp9001_0" offset="200000" />
    <rom name="tp-026-2" merge="tp-026-2" size="262144" crc="85063f1f" sha1="1bf4d77494de421c98f6273b9876e60d827a6826" region="oki1" offset="0" />
    <rom name="fixeightht.nv" size="128" crc="57edaa51" sha1="b8d50e82590b8cbbbcafec5f9cfbc91e4c286db5" region="eeprom" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="v25" />
    <device_ref name="93c46_16" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="cpu" tag="audiocpu" name="NEC V25" clock="16000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3375000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="1000000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="3" coins="3" service="yes" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
      <control type="joy" player="3" buttons="2" ways="8" />
    </input>
    <port tag=":EEPROM" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":IN3" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="fixeightj" sourcefile="toaplan2.cpp" cloneof="fixeight" romof="fixeight">
    <description>FixEight (Japan)</description>
    <year>1992</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="tp-026-1" merge="tp-026-1" size="524288" crc="f7b1746a" sha1="0bbea6f111b818bc9b9b2060af4fe900f37cf7f9" region="maincpu" offset="0" />
    <rom name="tp-026-3" merge="tp-026-3" size="2097152" crc="e5578d98" sha1="280d2b716d955e767d311fc9596823852435b6d7" region="gp9001_0" offset="0" />
    <rom name="tp-026-4" merge="tp-026-4" size="2097152" crc="b760cb53" sha1="bc9c5e49e45cdda0f774be0038aa4deb21d4d285" region="gp9001_0" offset="200000" />
    <rom name="tp-026-2" merge="tp-026-2" size="262144" crc="85063f1f" sha1="1bf4d77494de421c98f6273b9876e60d827a6826" region="oki1" offset="0" />
    <rom name="fixeightj.nv" size="128" crc="21e22038" sha1="29fb10061e62799bb5e4171e144daac49f0cdf06" region="eeprom" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="v25" />
    <device_ref name="93c46_16" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="cpu" tag="audiocpu" name="NEC V25" clock="16000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3375000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="1000000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="3" coins="3" service="yes" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
      <control type="joy" player="3" buttons="2" ways="8" />
    </input>
    <port tag=":EEPROM" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":IN3" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="fixeightjt" sourcefile="toaplan2.cpp" cloneof="fixeight" romof="fixeight">
    <description>FixEight (Japan, Taito license)</description>
    <year>1992</year>
    <manufacturer>Toaplan (Taito license)</manufacturer>
    <rom name="tp-026-1" merge="tp-026-1" size="524288" crc="f7b1746a" sha1="0bbea6f111b818bc9b9b2060af4fe900f37cf7f9" region="maincpu" offset="0" />
    <rom name="tp-026-3" merge="tp-026-3" size="2097152" crc="e5578d98" sha1="280d2b716d955e767d311fc9596823852435b6d7" region="gp9001_0" offset="0" />
    <rom name="tp-026-4" merge="tp-026-4" size="2097152" crc="b760cb53" sha1="bc9c5e49e45cdda0f774be0038aa4deb21d4d285" region="gp9001_0" offset="200000" />
    <rom name="tp-026-2" merge="tp-026-2" size="262144" crc="85063f1f" sha1="1bf4d77494de421c98f6273b9876e60d827a6826" region="oki1" offset="0" />
    <rom name="fixeightjt.nv" size="128" crc="e3d14fed" sha1="ee4982ef195240c5eaa5005ca1d591901fb01b47" region="eeprom" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="v25" />
    <device_ref name="93c46_16" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="cpu" tag="audiocpu" name="NEC V25" clock="16000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3375000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="1000000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="3" coins="3" service="yes" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
      <control type="joy" player="3" buttons="2" ways="8" />
    </input>
    <port tag=":EEPROM" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":IN3" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="fixeightk" sourcefile="toaplan2.cpp" cloneof="fixeight" romof="fixeight">
    <description>FixEight (Korea)</description>
    <year>1992</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="tp-026-1" merge="tp-026-1" size="524288" crc="f7b1746a" sha1="0bbea6f111b818bc9b9b2060af4fe900f37cf7f9" region="maincpu" offset="0" />
    <rom name="tp-026-3" merge="tp-026-3" size="2097152" crc="e5578d98" sha1="280d2b716d955e767d311fc9596823852435b6d7" region="gp9001_0" offset="0" />
    <rom name="tp-026-4" merge="tp-026-4" size="2097152" crc="b760cb53" sha1="bc9c5e49e45cdda0f774be0038aa4deb21d4d285" region="gp9001_0" offset="200000" />
    <rom name="tp-026-2" merge="tp-026-2" size="262144" crc="85063f1f" sha1="1bf4d77494de421c98f6273b9876e60d827a6826" region="oki1" offset="0" />
    <rom name="fixeightk.nv" size="128" crc="cac91c6f" sha1="55b284f081753d60abff63493094322756b7f0c5" region="eeprom" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="v25" />
    <device_ref name="93c46_16" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="cpu" tag="audiocpu" name="NEC V25" clock="16000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3375000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="1000000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="3" coins="3" service="yes" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
      <control type="joy" player="3" buttons="2" ways="8" />
    </input>
    <port tag=":EEPROM" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":IN3" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="fixeightkt" sourcefile="toaplan2.cpp" cloneof="fixeight" romof="fixeight">
    <description>FixEight (Korea, Taito license)</description>
    <year>1992</year>
    <manufacturer>Toaplan (Taito license)</manufacturer>
    <rom name="tp-026-1" merge="tp-026-1" size="524288" crc="f7b1746a" sha1="0bbea6f111b818bc9b9b2060af4fe900f37cf7f9" region="maincpu" offset="0" />
    <rom name="tp-026-3" merge="tp-026-3" size="2097152" crc="e5578d98" sha1="280d2b716d955e767d311fc9596823852435b6d7" region="gp9001_0" offset="0" />
    <rom name="tp-026-4" merge="tp-026-4" size="2097152" crc="b760cb53" sha1="bc9c5e49e45cdda0f774be0038aa4deb21d4d285" region="gp9001_0" offset="200000" />
    <rom name="tp-026-2" merge="tp-026-2" size="262144" crc="85063f1f" sha1="1bf4d77494de421c98f6273b9876e60d827a6826" region="oki1" offset="0" />
    <rom name="fixeightkt.nv" size="128" crc="08fa73ba" sha1="b7761d3dd3f4485e55c8ef2cf1a840ca771ee2fc" region="eeprom" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="v25" />
    <device_ref name="93c46_16" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="cpu" tag="audiocpu" name="NEC V25" clock="16000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3375000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="1000000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="3" coins="3" service="yes" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
      <control type="joy" player="3" buttons="2" ways="8" />
    </input>
    <port tag=":EEPROM" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":IN3" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="fixeightt" sourcefile="toaplan2.cpp" cloneof="fixeight" romof="fixeight">
    <description>FixEight (Europe, Taito license)</description>
    <year>1992</year>
    <manufacturer>Toaplan (Taito license)</manufacturer>
    <rom name="tp-026-1" merge="tp-026-1" size="524288" crc="f7b1746a" sha1="0bbea6f111b818bc9b9b2060af4fe900f37cf7f9" region="maincpu" offset="0" />
    <rom name="tp-026-3" merge="tp-026-3" size="2097152" crc="e5578d98" sha1="280d2b716d955e767d311fc9596823852435b6d7" region="gp9001_0" offset="0" />
    <rom name="tp-026-4" merge="tp-026-4" size="2097152" crc="b760cb53" sha1="bc9c5e49e45cdda0f774be0038aa4deb21d4d285" region="gp9001_0" offset="200000" />
    <rom name="tp-026-2" merge="tp-026-2" size="262144" crc="85063f1f" sha1="1bf4d77494de421c98f6273b9876e60d827a6826" region="oki1" offset="0" />
    <rom name="fixeightt.nv" size="128" crc="c0da4a05" sha1="3686161244e3e8be0e2fdb5fc5c24e39a7aeba85" region="eeprom" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="v25" />
    <device_ref name="93c46_16" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="cpu" tag="audiocpu" name="NEC V25" clock="16000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3375000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="1000000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="3" coins="3" service="yes" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
      <control type="joy" player="3" buttons="2" ways="8" />
    </input>
    <port tag=":EEPROM" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":IN3" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="fixeighttw" sourcefile="toaplan2.cpp" cloneof="fixeight" romof="fixeight">
    <description>FixEight (Taiwan)</description>
    <year>1992</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="tp-026-1" merge="tp-026-1" size="524288" crc="f7b1746a" sha1="0bbea6f111b818bc9b9b2060af4fe900f37cf7f9" region="maincpu" offset="0" />
    <rom name="tp-026-3" merge="tp-026-3" size="2097152" crc="e5578d98" sha1="280d2b716d955e767d311fc9596823852435b6d7" region="gp9001_0" offset="0" />
    <rom name="tp-026-4" merge="tp-026-4" size="2097152" crc="b760cb53" sha1="bc9c5e49e45cdda0f774be0038aa4deb21d4d285" region="gp9001_0" offset="200000" />
    <rom name="tp-026-2" merge="tp-026-2" size="262144" crc="85063f1f" sha1="1bf4d77494de421c98f6273b9876e60d827a6826" region="oki1" offset="0" />
    <rom name="fixeighttw.nv" size="128" crc="74e6afb9" sha1="87bdc95eb0d2d54375de2c622557d503e14154be" region="eeprom" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="v25" />
    <device_ref name="93c46_16" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="cpu" tag="audiocpu" name="NEC V25" clock="16000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3375000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="1000000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="3" coins="3" service="yes" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
      <control type="joy" player="3" buttons="2" ways="8" />
    </input>
    <port tag=":EEPROM" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":IN3" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="fixeighttwt" sourcefile="toaplan2.cpp" cloneof="fixeight" romof="fixeight">
    <description>FixEight (Taiwan, Taito license)</description>
    <year>1992</year>
    <manufacturer>Toaplan (Taito license)</manufacturer>
    <rom name="tp-026-1" merge="tp-026-1" size="524288" crc="f7b1746a" sha1="0bbea6f111b818bc9b9b2060af4fe900f37cf7f9" region="maincpu" offset="0" />
    <rom name="tp-026-3" merge="tp-026-3" size="2097152" crc="e5578d98" sha1="280d2b716d955e767d311fc9596823852435b6d7" region="gp9001_0" offset="0" />
    <rom name="tp-026-4" merge="tp-026-4" size="2097152" crc="b760cb53" sha1="bc9c5e49e45cdda0f774be0038aa4deb21d4d285" region="gp9001_0" offset="200000" />
    <rom name="tp-026-2" merge="tp-026-2" size="262144" crc="85063f1f" sha1="1bf4d77494de421c98f6273b9876e60d827a6826" region="oki1" offset="0" />
    <rom name="fixeighttwt.nv" size="128" crc="b6d5c06c" sha1="7fda380ac6835a983c57d093ccad7bd76893c9ba" region="eeprom" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="v25" />
    <device_ref name="93c46_16" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="cpu" tag="audiocpu" name="NEC V25" clock="16000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3375000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="1000000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="3" coins="3" service="yes" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
      <control type="joy" player="3" buttons="2" ways="8" />
    </input>
    <port tag=":EEPROM" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":IN3" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="fixeightu" sourcefile="toaplan2.cpp" cloneof="fixeight" romof="fixeight">
    <description>FixEight (USA)</description>
    <year>1992</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="tp-026-1" merge="tp-026-1" size="524288" crc="f7b1746a" sha1="0bbea6f111b818bc9b9b2060af4fe900f37cf7f9" region="maincpu" offset="0" />
    <rom name="tp-026-3" merge="tp-026-3" size="2097152" crc="e5578d98" sha1="280d2b716d955e767d311fc9596823852435b6d7" region="gp9001_0" offset="0" />
    <rom name="tp-026-4" merge="tp-026-4" size="2097152" crc="b760cb53" sha1="bc9c5e49e45cdda0f774be0038aa4deb21d4d285" region="gp9001_0" offset="200000" />
    <rom name="tp-026-2" merge="tp-026-2" size="262144" crc="85063f1f" sha1="1bf4d77494de421c98f6273b9876e60d827a6826" region="oki1" offset="0" />
    <rom name="fixeightu.nv" size="128" crc="5dfefc3b" sha1="5203525c58e2ae10575af2e277a5696bd64c5b60" region="eeprom" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="v25" />
    <device_ref name="93c46_16" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="cpu" tag="audiocpu" name="NEC V25" clock="16000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3375000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="1000000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="3" coins="3" service="yes" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
      <control type="joy" player="3" buttons="2" ways="8" />
    </input>
    <port tag=":EEPROM" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":IN3" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="fixeightut" sourcefile="toaplan2.cpp" cloneof="fixeight" romof="fixeight">
    <description>FixEight (USA, Taito license)</description>
    <year>1992</year>
    <manufacturer>Toaplan (Taito license)</manufacturer>
    <rom name="tp-026-1" merge="tp-026-1" size="524288" crc="f7b1746a" sha1="0bbea6f111b818bc9b9b2060af4fe900f37cf7f9" region="maincpu" offset="0" />
    <rom name="tp-026-3" merge="tp-026-3" size="2097152" crc="e5578d98" sha1="280d2b716d955e767d311fc9596823852435b6d7" region="gp9001_0" offset="0" />
    <rom name="tp-026-4" merge="tp-026-4" size="2097152" crc="b760cb53" sha1="bc9c5e49e45cdda0f774be0038aa4deb21d4d285" region="gp9001_0" offset="200000" />
    <rom name="tp-026-2" merge="tp-026-2" size="262144" crc="85063f1f" sha1="1bf4d77494de421c98f6273b9876e60d827a6826" region="oki1" offset="0" />
    <rom name="fixeightut.nv" size="128" crc="9fcd93ee" sha1="4f2750f09d9b8ff358a2fd6c7a4a8ba6de67017a" region="eeprom" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="v25" />
    <device_ref name="93c46_16" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="cpu" tag="audiocpu" name="NEC V25" clock="16000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3375000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="1000000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="3" coins="3" service="yes" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
      <control type="joy" player="3" buttons="2" ways="8" />
    </input>
    <port tag=":EEPROM" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":IN3" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="ghox" sourcefile="toaplan2.cpp">
    <description>Ghox (spinner)</description>
    <year>1991</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="tp021-01.u10" size="131072" crc="9e56ac67" sha1="daf241d9e55a6e60fc004ed61f787641595b1e62" region="maincpu" offset="0" />
    <rom name="tp021-02.u11" size="131072" crc="15cac60f" sha1="6efa3a50a5dfe6ef4072738d6a7d0d95dca8a675" region="maincpu" offset="1" />
    <rom name="hd647180.021" size="32768" crc="6ab59e5b" sha1="d814dd3a8f1ee638794e2bd422eed4247ba4a15e" region="audiocpu" offset="0" />
    <rom name="tp021-03.u36" size="524288" crc="a15d8e9d" sha1="640a33997bdce8e84bea6a944139716379839037" region="gp9001_0" offset="0" />
    <rom name="tp021-04.u37" size="524288" crc="26ed1c9a" sha1="37da8af86ea24327444c2d4ad3dfbd936208d43d" region="gp9001_0" offset="80000" />
    <device_ref name="m68000" />
    <device_ref name="hd647180x" />
    <device_ref name="screen" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="ym2151" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="10000000" />
    <chip type="cpu" tag="audiocpu" name="Hitachi HD647180X MCU" clock="10000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3375000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="dial" player="1" minimum="0" maximum="65280" sensitivity="25" keydelta="15" />
      <control type="joy" player="2" buttons="2" ways="8" />
      <control type="dial" player="2" minimum="0" maximum="255" sensitivity="25" keydelta="15" />
    </input>
    <dipswitch name="Unused" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="None" value="12" />
      <dipvalue name="100k only" value="8" />
      <dipvalue name="100k and 300k" value="4" />
      <dipvalue name="100k and every 200k" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Debug Mode (Cheat)" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="128" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <configuration name="Region" tag="JMPR" mask="524303">
      <confsetting name="Europe" value="524290" default="yes" />
      <confsetting name="USA" value="1" />
      <confsetting name="Japan" value="0" />
      <confsetting name="Hong Kong (Honest Trading Co.)" value="3" />
      <confsetting name="Korea" value="4" />
      <confsetting name="Taiwan" value="5" />
      <confsetting name="Spain &amp; Portugal (APM Electronics S.A.)" value="524294" />
      <confsetting name="Italy (Star Electronica SRL)" value="524295" />
      <confsetting name="UK (JP Leisure Limited)" value="524296" />
      <confsetting name="USA (Romstar, Inc.)" value="9" />
      <confsetting name="Europe (Nova Apparate GMBH &amp; Co.)" value="524298" />
      <confsetting name="USA (Taito America Corporation)" value="11" />
      <confsetting name="USA (Taito Corporation Japan)" value="12" />
      <confsetting name="Europe (Taito Corporation Japan)" value="524301" />
      <confsetting name="Japan (Licensed to [blank])" value="14" />
      <confsetting name="Japan (Taito Corporation)" value="15" />
    </configuration>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":JMPR" />
    <port tag=":PAD1">
      <analog mask="255" />
    </port>
    <port tag=":PAD2">
      <analog mask="255" />
    </port>
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="ghoxj" sourcefile="toaplan2.cpp" cloneof="ghox" romof="ghox">
    <description>Ghox (joystick)</description>
    <year>1991</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="tp021-01a.u10" size="131072" crc="c11b13c8" sha1="da7defc1d3b6ddded910ba56c31fbbdb5ed57b09" region="maincpu" offset="0" />
    <rom name="tp021-02a.u11" size="131072" crc="8d426767" sha1="1ed4a8bcbf4352257e7d58cb5c2c91eb48c2f047" region="maincpu" offset="1" />
    <rom name="hd647180.021" merge="hd647180.021" size="32768" crc="6ab59e5b" sha1="d814dd3a8f1ee638794e2bd422eed4247ba4a15e" region="audiocpu" offset="0" />
    <rom name="tp021-03.u36" merge="tp021-03.u36" size="524288" crc="a15d8e9d" sha1="640a33997bdce8e84bea6a944139716379839037" region="gp9001_0" offset="0" />
    <rom name="tp021-04.u37" merge="tp021-04.u37" size="524288" crc="26ed1c9a" sha1="37da8af86ea24327444c2d4ad3dfbd936208d43d" region="gp9001_0" offset="80000" />
    <device_ref name="m68000" />
    <device_ref name="hd647180x" />
    <device_ref name="screen" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="ym2151" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="10000000" />
    <chip type="cpu" tag="audiocpu" name="Hitachi HD647180X MCU" clock="10000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3375000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="dial" player="1" minimum="0" maximum="65280" sensitivity="25" keydelta="15" />
      <control type="joy" player="2" buttons="2" ways="8" />
      <control type="dial" player="2" minimum="0" maximum="255" sensitivity="25" keydelta="15" />
    </input>
    <dipswitch name="Unused" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="None" value="12" />
      <dipvalue name="100k only" value="8" />
      <dipvalue name="100k and 300k" value="4" />
      <dipvalue name="100k and every 200k" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Debug Mode (Cheat)" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="128" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <configuration name="Region" tag="JMPR" mask="524303">
      <confsetting name="Europe" value="524290" default="yes" />
      <confsetting name="USA" value="1" />
      <confsetting name="Japan" value="0" />
      <confsetting name="Hong Kong (Honest Trading Co.)" value="3" />
      <confsetting name="Korea" value="4" />
      <confsetting name="Taiwan" value="5" />
      <confsetting name="Spain &amp; Portugal (APM Electronics S.A.)" value="524294" />
      <confsetting name="Italy (Star Electronica SRL)" value="524295" />
      <confsetting name="UK (JP Leisure Limited)" value="524296" />
      <confsetting name="USA (Romstar, Inc.)" value="9" />
      <confsetting name="Europe (Nova Apparate GMBH &amp; Co.)" value="524298" />
      <confsetting name="USA (Taito America Corporation)" value="11" />
      <confsetting name="USA (Taito Corporation Japan)" value="12" />
      <confsetting name="Europe (Taito Corporation Japan)" value="524301" />
      <confsetting name="Japan (Licensed to [blank])" value="14" />
      <confsetting name="Japan (Taito Corporation)" value="15" />
    </configuration>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":JMPR" />
    <port tag=":PAD1">
      <analog mask="255" />
    </port>
    <port tag=":PAD2">
      <analog mask="255" />
    </port>
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="ghoxjo" sourcefile="toaplan2.cpp" cloneof="ghox" romof="ghox">
    <description>Ghox (joystick, older)</description>
    <year>1991</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="tp021-01.ghoxsticker.u10" size="131072" crc="ad3a8817" sha1="317267e0c00934a86bf05c5afd6c69a7944a2ed3" region="maincpu" offset="0" />
    <rom name="tp021-02.ghoxsticker.u11" size="131072" crc="2340e981" sha1="d8e3f55e67fe6500f9e6c7eed1388dc895c5f574" region="maincpu" offset="1" />
    <rom name="hd647180.021" merge="hd647180.021" size="32768" crc="6ab59e5b" sha1="d814dd3a8f1ee638794e2bd422eed4247ba4a15e" region="audiocpu" offset="0" />
    <rom name="tp021-03.u36" merge="tp021-03.u36" size="524288" crc="a15d8e9d" sha1="640a33997bdce8e84bea6a944139716379839037" region="gp9001_0" offset="0" />
    <rom name="tp021-04.u37" merge="tp021-04.u37" size="524288" crc="26ed1c9a" sha1="37da8af86ea24327444c2d4ad3dfbd936208d43d" region="gp9001_0" offset="80000" />
    <device_ref name="m68000" />
    <device_ref name="hd647180x" />
    <device_ref name="screen" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="ym2151" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="10000000" />
    <chip type="cpu" tag="audiocpu" name="Hitachi HD647180X MCU" clock="10000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3375000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="dial" player="1" minimum="0" maximum="65280" sensitivity="25" keydelta="15" />
      <control type="joy" player="2" buttons="2" ways="8" />
      <control type="dial" player="2" minimum="0" maximum="255" sensitivity="25" keydelta="15" />
    </input>
    <dipswitch name="Unused" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="None" value="12" />
      <dipvalue name="100k only" value="8" />
      <dipvalue name="100k and 300k" value="4" />
      <dipvalue name="100k and every 200k" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Debug Mode (Cheat)" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="128" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <configuration name="Region" tag="JMPR" mask="524303">
      <confsetting name="Europe" value="524290" default="yes" />
      <confsetting name="USA" value="1" />
      <confsetting name="Japan" value="0" />
      <confsetting name="Hong Kong (Honest Trading Co.)" value="3" />
      <confsetting name="Korea" value="4" />
      <confsetting name="Taiwan" value="5" />
      <confsetting name="Spain &amp; Portugal (APM Electronics S.A.)" value="524294" />
      <confsetting name="Italy (Star Electronica SRL)" value="524295" />
      <confsetting name="UK (JP Leisure Limited)" value="524296" />
      <confsetting name="USA (Romstar, Inc.)" value="9" />
      <confsetting name="Europe (Nova Apparate GMBH &amp; Co.)" value="524298" />
      <confsetting name="Japan (Unused) [b]" value="11" />
      <confsetting name="Japan (Unused) [c]" value="12" />
      <confsetting name="Japan (Unused) [d]" value="13" />
      <confsetting name="Japan (Unused) [e]" value="14" />
      <confsetting name="Japan (Unused) [f]" value="15" />
    </configuration>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":JMPR" />
    <port tag=":PAD1">
      <analog mask="255" />
    </port>
    <port tag=":PAD2">
      <analog mask="255" />
    </port>
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="grindstm" sourcefile="toaplan2.cpp">
    <description>Grind Stormer</description>
    <year>1992</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="01.bin" size="524288" crc="4923f790" sha1="1c2d66b432d190d0fb6ac7ca0ec0687aea3ccbf4" region="maincpu" offset="0" />
    <rom name="tp027_02.bin" size="1048576" crc="877b45e8" sha1="b3ed8d8dbbe51a1919afc55d619d2b6771971493" region="gp9001_0" offset="0" />
    <rom name="tp027_03.bin" size="1048576" crc="b1fc6362" sha1="5e97e3cce31be57689d394a50178cda4d80cce5f" region="gp9001_0" offset="100000" />
    <device_ref name="m68000" />
    <device_ref name="v25" />
    <device_ref name="screen" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="ym2151" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="10000000" />
    <chip type="cpu" tag="audiocpu" name="NEC V25" clock="10000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3375000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Cabinet" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="JMPR" mask="224" relation="eq" value="128" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="224" relation="eq" value="128" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="224" relation="ne" value="128" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="JMPR" mask="224" relation="eq" value="128" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="JMPR" mask="224" relation="ne" value="128" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="JMPR" mask="224" relation="ne" value="128" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="JMPR" mask="224" relation="ne" value="128" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="JMPR" mask="224" relation="ne" value="128" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="JMPR" mask="224" relation="ne" value="128" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="JMPR" mask="224" relation="ne" value="128" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="JMPR" mask="224" relation="eq" value="128" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="JMPR" mask="224" relation="eq" value="128" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="JMPR" mask="224" relation="eq" value="128" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="JMPR" mask="224" relation="eq" value="128" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="None" value="12" />
      <dipvalue name="200k only" value="8" />
      <dipvalue name="300k and 800k" value="0" default="yes" />
      <dipvalue name="300k and every 800k" value="4" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability (Cheat)" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="No" value="128" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <configuration name="Region" tag="JMPR" mask="240">
      <confsetting name="Europe" value="144" default="yes" />
      <confsetting name="USA" value="176" />
      <confsetting name="USA (American Sammy Corporation)" value="160" />
      <confsetting name="Southeast Asia" value="112" />
      <confsetting name="Southeast Asia (Charterfield)" value="96" />
      <confsetting name="Taiwan" value="80" />
      <confsetting name="Taiwan (Anomoto International Inc.)" value="64" />
      <confsetting name="Hong Kong" value="48" />
      <confsetting name="Hong Kong (Charterfield)" value="32" />
      <confsetting name="Korea" value="16" />
      <confsetting name="Korea (Unite Trading)" value="0" />
      <confsetting name="USA; different?" value="208" />
      <confsetting name="USA (American Sammy Corporation); different?" value="192" />
      <confsetting name="Korea; different?" value="224" />
    </configuration>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":JMPR" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="grindstma" sourcefile="toaplan2.cpp" cloneof="grindstm" romof="grindstm">
    <description>Grind Stormer (older set)</description>
    <year>1992</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="tp027-01.rom" size="524288" crc="8d8c0392" sha1="824dde274c8bef8a87c54d8ccdda7f0feb8d11e1" region="maincpu" offset="0" />
    <rom name="tp027_02.bin" merge="tp027_02.bin" size="1048576" crc="877b45e8" sha1="b3ed8d8dbbe51a1919afc55d619d2b6771971493" region="gp9001_0" offset="0" />
    <rom name="tp027_03.bin" merge="tp027_03.bin" size="1048576" crc="b1fc6362" sha1="5e97e3cce31be57689d394a50178cda4d80cce5f" region="gp9001_0" offset="100000" />
    <device_ref name="m68000" />
    <device_ref name="v25" />
    <device_ref name="screen" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="ym2151" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="10000000" />
    <chip type="cpu" tag="audiocpu" name="NEC V25" clock="10000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3375000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Cabinet" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="JMPR" mask="224" relation="eq" value="128" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="224" relation="eq" value="128" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="224" relation="ne" value="128" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="JMPR" mask="224" relation="eq" value="128" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="JMPR" mask="224" relation="ne" value="128" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="JMPR" mask="224" relation="ne" value="128" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="JMPR" mask="224" relation="ne" value="128" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="JMPR" mask="224" relation="ne" value="128" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="JMPR" mask="224" relation="ne" value="128" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="JMPR" mask="224" relation="ne" value="128" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="JMPR" mask="224" relation="eq" value="128" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="JMPR" mask="224" relation="eq" value="128" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="JMPR" mask="224" relation="eq" value="128" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="JMPR" mask="224" relation="eq" value="128" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="None" value="12" />
      <dipvalue name="200k only" value="8" />
      <dipvalue name="300k and 800k" value="0" default="yes" />
      <dipvalue name="300k and every 800k" value="4" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability (Cheat)" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="No" value="128" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <configuration name="Region" tag="JMPR" mask="240">
      <confsetting name="Europe" value="144" default="yes" />
      <confsetting name="USA" value="176" />
      <confsetting name="USA (Atari Games Corp.)" value="160" />
      <confsetting name="Southeast Asia" value="112" />
      <confsetting name="Southeast Asia (Charterfield)" value="96" />
      <confsetting name="Taiwan" value="80" />
      <confsetting name="Hong Kong" value="48" />
      <confsetting name="Hong Kong (Charterfield)" value="32" />
      <confsetting name="Korea" value="16" />
      <confsetting name="Korea (Unite Trading)" value="0" />
      <confsetting name="Korea; different?" value="192" />
    </configuration>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":JMPR" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="hellfire" sourcefile="toaplan1.cpp">
    <description>Hellfire (2P set)</description>
    <year>1989</year>
    <manufacturer>Toaplan (Taito license)</manufacturer>
    <rom name="b90_14.0" size="131072" crc="101df9f5" sha1="27e1430d4c96fe2c830143999a760470c8381ada" region="maincpu" offset="0" />
    <rom name="b90_15.1" size="131072" crc="e67fd452" sha1="baec2a702238f000d0499705d79d7c7577fc2279" region="maincpu" offset="1" />
    <rom name="b90_03.2" size="32768" crc="4058fa67" sha1="155c364273c270cd74955f447efc804bb4c9b560" region="audiocpu" offset="0" />
    <rom name="b90_04.3" size="131072" crc="ea6150fc" sha1="1116947d10ce14fbc6a3b86368fc2024c6f51803" region="gfx1" offset="0" />
    <rom name="b90_05.4" size="131072" crc="bb52c507" sha1="b0b1821476647f10c7023f92a66a7f54b92f50c3" region="gfx1" offset="1" />
    <rom name="b90_06.5" size="131072" crc="cf5b0252" sha1="e2102967af61afb11d2290a40d13d2faf9ef1e12" region="gfx1" offset="40000" />
    <rom name="b90_07.6" size="131072" crc="b98af263" sha1="54d636a50a41dbb58b54c22dfab3eabfdb452575" region="gfx1" offset="40001" />
    <rom name="b90_11.10" size="131072" crc="c33e543c" sha1="b85cba30cc651f820aeedd41e04584df92078ed9" region="gfx2" offset="0" />
    <rom name="b90_10.9" size="131072" crc="35fd1092" sha1="5e136a35eea45034ccd4aea52cc0ffeec944e27e" region="gfx2" offset="1" />
    <rom name="b90_09.8" size="131072" crc="cf01009e" sha1="e260c479fa97f23a65c220e5071aaf2dc2baf46d" region="gfx2" offset="40000" />
    <rom name="b90_08.7" size="131072" crc="3404a5e3" sha1="f717b9e31c2a093dbb060b8ea54a8c3f52688d7a" region="gfx2" offset="40001" />
    <rom name="13.3w" size="32" crc="bc88cced" sha1="5055362710c0f58823c05fb4c0e0eec638b91e3d" region="proms" offset="0" />
    <rom name="12.6b" size="32" crc="a1e17492" sha1="9ddec4c97f2d541f69f3c32c47aaa21fd9699ae2" region="proms" offset="20" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="ym3812" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="10000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="3500000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="YM3812 OPL2" clock="3500000" />
    <display tag="screen" type="raster" rotate="0" width="320" height="240" refresh="57.613169" pixclock="7000000" htotal="450" hbend="0" hbstart="320" vtotal="270" vbend="16" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Unused" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="TJUMP" mask="2" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="TJUMP" mask="2" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="TJUMP" mask="2" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="TJUMP" mask="2" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="TJUMP" mask="2" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="TJUMP" mask="2" relation="ne" value="2" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="TJUMP" mask="2" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="TJUMP" mask="2" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="TJUMP" mask="2" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="TJUMP" mask="2" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="TJUMP" mask="2" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="TJUMP" mask="2" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="TJUMP" mask="2" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="TJUMP" mask="2" relation="eq" value="2" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="70k 270k 200k+" value="0" default="yes" />
      <dipvalue name="100k 350k 250k+" value="4" />
      <dipvalue name="100k Only" value="8" />
      <dipvalue name="200k Only" value="12" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="2" value="48" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="4" value="32" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="128" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYSTEM" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Region" tag="TJUMP" mask="3">
      <diplocation name="JMPR" number="1" inverted="yes" />
      <diplocation name="JMPR" number="2" inverted="yes" />
      <dipvalue name="Europe" value="2" default="yes" />
      <dipvalue name="Europe" value="3" />
      <dipvalue name="USA" value="1" />
      <dipvalue name="Japan" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="TJUMP" mask="4">
      <diplocation name="JMPR" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Unused" tag="TJUMP" mask="8">
      <diplocation name="JMPR" number="4" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="8" />
    </dipswitch>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SYSTEM" />
    <port tag=":TJUMP" />
    <port tag=":VBLANK" />
    <driver status="good" emulation="good" savestate="unsupported" />
  </machine>
  <machine name="hellfire1" sourcefile="toaplan1.cpp" cloneof="hellfire" romof="hellfire">
    <description>Hellfire (1P set)</description>
    <year>1989</year>
    <manufacturer>Toaplan (Taito license)</manufacturer>
    <rom name="b90_01.10m" size="131072" crc="034966d3" sha1="f987d8e7ebe6a546be621fe4d5a59de1284c4ebb" region="maincpu" offset="0" />
    <rom name="b90_02.9m" size="131072" crc="06dd24c7" sha1="a990de7ffac6bd0dd219c7bf9f773ccb41395be6" region="maincpu" offset="1" />
    <rom name="b90_03.2" merge="b90_03.2" size="32768" crc="4058fa67" sha1="155c364273c270cd74955f447efc804bb4c9b560" region="audiocpu" offset="0" />
    <rom name="b90_04.3" merge="b90_04.3" size="131072" crc="ea6150fc" sha1="1116947d10ce14fbc6a3b86368fc2024c6f51803" region="gfx1" offset="0" />
    <rom name="b90_05.4" merge="b90_05.4" size="131072" crc="bb52c507" sha1="b0b1821476647f10c7023f92a66a7f54b92f50c3" region="gfx1" offset="1" />
    <rom name="b90_06.5" merge="b90_06.5" size="131072" crc="cf5b0252" sha1="e2102967af61afb11d2290a40d13d2faf9ef1e12" region="gfx1" offset="40000" />
    <rom name="b90_07.6" merge="b90_07.6" size="131072" crc="b98af263" sha1="54d636a50a41dbb58b54c22dfab3eabfdb452575" region="gfx1" offset="40001" />
    <rom name="b90_11.10" merge="b90_11.10" size="131072" crc="c33e543c" sha1="b85cba30cc651f820aeedd41e04584df92078ed9" region="gfx2" offset="0" />
    <rom name="b90_10.9" merge="b90_10.9" size="131072" crc="35fd1092" sha1="5e136a35eea45034ccd4aea52cc0ffeec944e27e" region="gfx2" offset="1" />
    <rom name="b90_09.8" merge="b90_09.8" size="131072" crc="cf01009e" sha1="e260c479fa97f23a65c220e5071aaf2dc2baf46d" region="gfx2" offset="40000" />
    <rom name="b90_08.7" merge="b90_08.7" size="131072" crc="3404a5e3" sha1="f717b9e31c2a093dbb060b8ea54a8c3f52688d7a" region="gfx2" offset="40001" />
    <rom name="13.3w" merge="13.3w" size="32" crc="bc88cced" sha1="5055362710c0f58823c05fb4c0e0eec638b91e3d" region="proms" offset="0" />
    <rom name="12.6b" merge="12.6b" size="32" crc="a1e17492" sha1="9ddec4c97f2d541f69f3c32c47aaa21fd9699ae2" region="proms" offset="20" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="ym3812" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="10000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="3500000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="YM3812 OPL2" clock="3500000" />
    <display tag="screen" type="raster" rotate="0" width="320" height="240" refresh="57.613169" pixclock="7000000" htotal="450" hbend="0" hbstart="320" vtotal="270" vbend="16" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Cabinet" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Upright" value="1" default="yes" />
      <dipvalue name="Cocktail" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="TJUMP" mask="2" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="TJUMP" mask="2" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="TJUMP" mask="2" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="TJUMP" mask="2" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="TJUMP" mask="2" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="TJUMP" mask="2" relation="ne" value="2" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="TJUMP" mask="2" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="TJUMP" mask="2" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="TJUMP" mask="2" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="TJUMP" mask="2" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="TJUMP" mask="2" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="TJUMP" mask="2" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="TJUMP" mask="2" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="TJUMP" mask="2" relation="eq" value="2" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="70k 270k 200k+" value="0" default="yes" />
      <dipvalue name="100k 350k 250k+" value="4" />
      <dipvalue name="100k Only" value="8" />
      <dipvalue name="200k Only" value="12" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="2" value="48" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="4" value="32" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="No" value="128" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYSTEM" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Region" tag="TJUMP" mask="3">
      <diplocation name="JMPR" number="1" inverted="yes" />
      <diplocation name="JMPR" number="2" inverted="yes" />
      <dipvalue name="Europe" value="2" default="yes" />
      <dipvalue name="Europe" value="3" />
      <dipvalue name="USA" value="1" />
      <dipvalue name="Japan" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="TJUMP" mask="4">
      <diplocation name="JMPR" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Unused" tag="TJUMP" mask="8">
      <diplocation name="JMPR" number="4" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="8" />
    </dipswitch>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SYSTEM" />
    <port tag=":TJUMP" />
    <port tag=":VBLANK" />
    <driver status="good" emulation="good" savestate="unsupported" />
  </machine>
  <machine name="hellfire1a" sourcefile="toaplan1.cpp" cloneof="hellfire" romof="hellfire">
    <description>Hellfire (1P set, older)</description>
    <year>1989</year>
    <manufacturer>Toaplan (Taito license)</manufacturer>
    <rom name="b90_14x.0" size="131072" crc="a3141ea5" sha1="9b456cb908e193198110a628d98567a3b8351591" region="maincpu" offset="0" />
    <rom name="b90_15x.1" size="131072" crc="e864daf4" sha1="382f02df8419310cef5d7fb68a9376eeac2f3685" region="maincpu" offset="1" />
    <rom name="b90_03x.2" size="32768" crc="f58c368f" sha1="2ee5396a4b70a3374f3a3bbd791b1d962f6a8a52" region="audiocpu" offset="0" />
    <rom name="b90_04.3" merge="b90_04.3" size="131072" crc="ea6150fc" sha1="1116947d10ce14fbc6a3b86368fc2024c6f51803" region="gfx1" offset="0" />
    <rom name="b90_05.4" merge="b90_05.4" size="131072" crc="bb52c507" sha1="b0b1821476647f10c7023f92a66a7f54b92f50c3" region="gfx1" offset="1" />
    <rom name="b90_06.5" merge="b90_06.5" size="131072" crc="cf5b0252" sha1="e2102967af61afb11d2290a40d13d2faf9ef1e12" region="gfx1" offset="40000" />
    <rom name="b90_07.6" merge="b90_07.6" size="131072" crc="b98af263" sha1="54d636a50a41dbb58b54c22dfab3eabfdb452575" region="gfx1" offset="40001" />
    <rom name="b90_11.10" merge="b90_11.10" size="131072" crc="c33e543c" sha1="b85cba30cc651f820aeedd41e04584df92078ed9" region="gfx2" offset="0" />
    <rom name="b90_10.9" merge="b90_10.9" size="131072" crc="35fd1092" sha1="5e136a35eea45034ccd4aea52cc0ffeec944e27e" region="gfx2" offset="1" />
    <rom name="b90_09.8" merge="b90_09.8" size="131072" crc="cf01009e" sha1="e260c479fa97f23a65c220e5071aaf2dc2baf46d" region="gfx2" offset="40000" />
    <rom name="b90_08.7" merge="b90_08.7" size="131072" crc="3404a5e3" sha1="f717b9e31c2a093dbb060b8ea54a8c3f52688d7a" region="gfx2" offset="40001" />
    <rom name="13.3w" merge="13.3w" size="32" crc="bc88cced" sha1="5055362710c0f58823c05fb4c0e0eec638b91e3d" region="proms" offset="0" />
    <rom name="12.6b" merge="12.6b" size="32" crc="a1e17492" sha1="9ddec4c97f2d541f69f3c32c47aaa21fd9699ae2" region="proms" offset="20" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="ym3812" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="10000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="3500000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="YM3812 OPL2" clock="3500000" />
    <display tag="screen" type="raster" rotate="0" width="320" height="240" refresh="57.613169" pixclock="7000000" htotal="450" hbend="0" hbstart="320" vtotal="270" vbend="16" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Cabinet" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Upright" value="1" default="yes" />
      <dipvalue name="Cocktail" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="TJUMP" mask="3" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="TJUMP" mask="3" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="TJUMP" mask="3" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="TJUMP" mask="3" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="TJUMP" mask="3" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="TJUMP" mask="3" relation="ne" value="2" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="TJUMP" mask="3" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="TJUMP" mask="3" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="TJUMP" mask="3" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="TJUMP" mask="3" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="TJUMP" mask="3" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="TJUMP" mask="3" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="TJUMP" mask="3" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="TJUMP" mask="3" relation="eq" value="2" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="70k 270k 200k+" value="0" default="yes" />
      <dipvalue name="100k 350k 250k+" value="4" />
      <dipvalue name="100k Only" value="8" />
      <dipvalue name="200k Only" value="12" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="2" value="48" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="4" value="32" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Dip Switch Display" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="No" value="128" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYSTEM" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Region" tag="TJUMP" mask="3">
      <diplocation name="JMPR" number="1" inverted="yes" />
      <diplocation name="JMPR" number="2" inverted="yes" />
      <dipvalue name="Europe" value="2" default="yes" />
      <dipvalue name="Europe" value="3" />
      <dipvalue name="USA" value="1" />
      <dipvalue name="Japan" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="TJUMP" mask="4">
      <diplocation name="JMPR" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Unused" tag="TJUMP" mask="8">
      <diplocation name="JMPR" number="4" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="8" />
    </dipswitch>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SYSTEM" />
    <port tag=":TJUMP" />
    <port tag=":VBLANK" />
    <driver status="good" emulation="good" savestate="unsupported" />
  </machine>
  <machine name="hellfire2a" sourcefile="toaplan1.cpp" cloneof="hellfire" romof="hellfire">
    <description>Hellfire (2P set, older)</description>
    <year>1989</year>
    <manufacturer>Toaplan (Taito license)</manufacturer>
    <rom name="b90_01.0" size="131072" crc="c94acf53" sha1="5710861dbe976fe53b93d3428147d1ce7aaae18a" region="maincpu" offset="0" />
    <rom name="b90_02.1" size="131072" crc="d17f03c3" sha1="ac41e6c29aa507872caeeaec6a3bc24c705a3702" region="maincpu" offset="1" />
    <rom name="b90_03.2" merge="b90_03.2" size="32768" crc="4058fa67" sha1="155c364273c270cd74955f447efc804bb4c9b560" region="audiocpu" offset="0" />
    <rom name="b90_04.3" merge="b90_04.3" size="131072" crc="ea6150fc" sha1="1116947d10ce14fbc6a3b86368fc2024c6f51803" region="gfx1" offset="0" />
    <rom name="b90_05.4" merge="b90_05.4" size="131072" crc="bb52c507" sha1="b0b1821476647f10c7023f92a66a7f54b92f50c3" region="gfx1" offset="1" />
    <rom name="b90_06.5" merge="b90_06.5" size="131072" crc="cf5b0252" sha1="e2102967af61afb11d2290a40d13d2faf9ef1e12" region="gfx1" offset="40000" />
    <rom name="b90_07.6" merge="b90_07.6" size="131072" crc="b98af263" sha1="54d636a50a41dbb58b54c22dfab3eabfdb452575" region="gfx1" offset="40001" />
    <rom name="b90_11.10" merge="b90_11.10" size="131072" crc="c33e543c" sha1="b85cba30cc651f820aeedd41e04584df92078ed9" region="gfx2" offset="0" />
    <rom name="b90_10.9" merge="b90_10.9" size="131072" crc="35fd1092" sha1="5e136a35eea45034ccd4aea52cc0ffeec944e27e" region="gfx2" offset="1" />
    <rom name="b90_09.8" merge="b90_09.8" size="131072" crc="cf01009e" sha1="e260c479fa97f23a65c220e5071aaf2dc2baf46d" region="gfx2" offset="40000" />
    <rom name="b90_08.7" merge="b90_08.7" size="131072" crc="3404a5e3" sha1="f717b9e31c2a093dbb060b8ea54a8c3f52688d7a" region="gfx2" offset="40001" />
    <rom name="13.3w" merge="13.3w" size="32" crc="bc88cced" sha1="5055362710c0f58823c05fb4c0e0eec638b91e3d" region="proms" offset="0" />
    <rom name="12.6b" merge="12.6b" size="32" crc="a1e17492" sha1="9ddec4c97f2d541f69f3c32c47aaa21fd9699ae2" region="proms" offset="20" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="ym3812" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="10000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="3500000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="YM3812 OPL2" clock="3500000" />
    <display tag="screen" type="raster" rotate="0" width="320" height="240" refresh="57.613169" pixclock="7000000" htotal="450" hbend="0" hbstart="320" vtotal="270" vbend="16" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Unused" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="TJUMP" mask="2" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="TJUMP" mask="2" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="TJUMP" mask="2" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="TJUMP" mask="2" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="TJUMP" mask="2" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="TJUMP" mask="2" relation="ne" value="2" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="TJUMP" mask="2" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="TJUMP" mask="2" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="TJUMP" mask="2" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="TJUMP" mask="2" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="TJUMP" mask="2" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="TJUMP" mask="2" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="TJUMP" mask="2" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="TJUMP" mask="2" relation="eq" value="2" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="70k 270k 200k+" value="0" default="yes" />
      <dipvalue name="100k 350k 250k+" value="4" />
      <dipvalue name="100k Only" value="8" />
      <dipvalue name="200k Only" value="12" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="2" value="48" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="4" value="32" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Dip Switch Display" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="128" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYSTEM" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Region" tag="TJUMP" mask="3">
      <diplocation name="JMPR" number="1" inverted="yes" />
      <diplocation name="JMPR" number="2" inverted="yes" />
      <dipvalue name="Europe" value="2" default="yes" />
      <dipvalue name="Europe" value="3" />
      <dipvalue name="USA" value="1" />
      <dipvalue name="Japan" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="TJUMP" mask="4">
      <diplocation name="JMPR" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Unused" tag="TJUMP" mask="8">
      <diplocation name="JMPR" number="4" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="8" />
    </dipswitch>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SYSTEM" />
    <port tag=":TJUMP" />
    <port tag=":VBLANK" />
    <driver status="good" emulation="good" savestate="unsupported" />
  </machine>
  <machine name="kbash" sourcefile="toaplan2.cpp">
    <description>Knuckle Bash</description>
    <year>1993</year>
    <manufacturer>Toaplan / Atari</manufacturer>
    <rom name="tp023_01.bin" size="524288" crc="2965f81d" sha1="46f2df30fa92c80ba5a37f75e756424e15534784" region="maincpu" offset="0" />
    <rom name="tp023_02.bin" size="32768" crc="4cd882a1" sha1="7199a5c384918f775f0815e09c46b2a58141814a" region="audiocpu" offset="0" />
    <rom name="tp023_3.bin" size="2097152" crc="32ad508b" sha1="e473489beaf649d3e5236770eb043327e309850c" region="gp9001_0" offset="0" />
    <rom name="tp023_5.bin" size="2097152" crc="b84c90eb" sha1="17a1531d884d9a9696d1b25d65f9155f02396e0e" region="gp9001_0" offset="200000" />
    <rom name="tp023_4.bin" size="2097152" crc="e493c077" sha1="0edcfb70483ad07206695d9283031b85cd198a36" region="gp9001_0" offset="400000" />
    <rom name="tp023_6.bin" size="2097152" crc="9084b50a" sha1="03b58278619524d2f09a4b1c152d5e057e792a56" region="gp9001_0" offset="600000" />
    <rom name="tp023_7.bin" size="262144" crc="3732318f" sha1="f0768459f5ad2dee53d408a0a5ae3a314864e667" region="oki1" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="v25" />
    <device_ref name="screen" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="cpu" tag="audiocpu" name="NEC V25" clock="16000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3375000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="1000000" />
    <display tag="screen" type="raster" rotate="0" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Continue Price" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Discount" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="JMPR" mask="112" relation="eq" value="32" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="112" relation="eq" value="32" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="112" relation="ne" value="32" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="JMPR" mask="112" relation="eq" value="32" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="JMPR" mask="112" relation="ne" value="32" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="JMPR" mask="112" relation="ne" value="32" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="JMPR" mask="112" relation="ne" value="32" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="JMPR" mask="112" relation="ne" value="32" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="JMPR" mask="112" relation="ne" value="32" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="JMPR" mask="112" relation="ne" value="32" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="JMPR" mask="112" relation="eq" value="32" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="JMPR" mask="112" relation="eq" value="32" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="JMPR" mask="112" relation="eq" value="32" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="JMPR" mask="112" relation="eq" value="32" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="None" value="12" />
      <dipvalue name="200k only" value="8" />
      <dipvalue name="100k only" value="4" />
      <dipvalue name="100k and 400k" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="0" default="yes" />
      <dipvalue name="3" value="32" />
      <dipvalue name="4" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability (Cheat)" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="No" value="128" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <configuration name="Region" tag="JMPR" mask="240">
      <confsetting name="Europe, USA (Atari Games)" value="32" default="yes" />
      <confsetting name="USA, Europe (Atari Games)" value="16" />
      <confsetting name="Japan" value="0" />
      <confsetting name="Korea" value="48" />
      <confsetting name="Hong Kong" value="64" />
      <confsetting name="Taiwan" value="80" />
      <confsetting name="Southeast Asia" value="96" />
      <confsetting name="USA" value="144" />
      <confsetting name="Europe" value="160" />
    </configuration>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":JMPR" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="kbash2" sourcefile="toaplan2.cpp">
    <description>Knuckle Bash 2 (bootleg)</description>
    <year>1999</year>
    <manufacturer>bootleg</manufacturer>
    <rom name="mecat-m" size="524288" crc="bd2263c6" sha1="eb794c0fc9c1fb4337114d48149283d42d22e4b3" region="maincpu" offset="0" />
    <rom name="mecat-34" size="4194304" crc="6be7b37e" sha1="13160ad0712fee932bb98cc226e651895b19228a" region="gp9001_0" offset="0" />
    <rom name="mecat-12" size="4194304" crc="49e46b1f" sha1="d12b12696a8473eb34f3cd247ab060289a6c0e9c" region="gp9001_0" offset="400000" />
    <rom name="mecat-s" size="524288" crc="3eb7adf4" sha1="b0e6e99726b854858bd0e69eb77f12b9664b35e6" region="oki1" offset="0" />
    <rom name="eprom" size="262144" crc="31115cb9" sha1="c79ea01bd865e2fc3aaab3ff05483c8fd27e5c98" region="oki2" offset="0" />
    <rom name="050917-10" size="65536" crc="6b213183" sha1="599c59d155d11edb151bfaed1d24ef964462a447" region="user1" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="screen" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="okim6295" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="1000000" />
    <chip type="audio" tag="oki2" name="OKI MSM6295 ADPCM" clock="1000000" />
    <display tag="screen" type="raster" rotate="0" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Continue Price" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Discount" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="JMPR" mask="7" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="7" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="7" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="JMPR" mask="7" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="JMPR" mask="7" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="JMPR" mask="7" relation="ne" value="2" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="JMPR" mask="7" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="JMPR" mask="7" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="JMPR" mask="7" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="JMPR" mask="7" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="JMPR" mask="7" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="JMPR" mask="7" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="JMPR" mask="7" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="JMPR" mask="7" relation="eq" value="2" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="None" value="12" />
      <dipvalue name="200k only" value="8" />
      <dipvalue name="100k only" value="4" />
      <dipvalue name="100k and 400k" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="0" default="yes" />
      <dipvalue name="3" value="32" />
      <dipvalue name="4" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability (Cheat)" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="No" value="128" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <configuration name="Region" tag="JMPR" mask="15">
      <confsetting name="Japan (Taito Corp.)" value="0" />
      <confsetting name="Korea (Unite Trading)" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="Taiwan" value="5" />
      <confsetting name="Southeast Asia (Charterfield)" value="6" default="yes" />
      <confsetting name="Japan" value="8" />
      <confsetting name="Korea" value="11" />
      <confsetting name="Southeast Asia" value="14" />
    </configuration>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":JMPR" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="kbashk" sourcefile="toaplan2.cpp" cloneof="kbash" romof="kbash">
    <description>Knuckle Bash (Korean PCB)</description>
    <year>1993</year>
    <manufacturer>Toaplan / Taito</manufacturer>
    <rom name="tp023_01.u52" size="524288" crc="099aefbc" sha1="8daa0deffe221e1bb5a8744ced18c23ad319ffd3" region="maincpu" offset="0" />
    <rom name="tp023_02.bin" merge="tp023_02.bin" size="32768" crc="4cd882a1" sha1="7199a5c384918f775f0815e09c46b2a58141814a" region="audiocpu" offset="0" />
    <rom name="tp023_3.bin" merge="tp023_3.bin" size="2097152" crc="32ad508b" sha1="e473489beaf649d3e5236770eb043327e309850c" region="gp9001_0" offset="0" />
    <rom name="tp023_5.bin" merge="tp023_5.bin" size="2097152" crc="b84c90eb" sha1="17a1531d884d9a9696d1b25d65f9155f02396e0e" region="gp9001_0" offset="200000" />
    <rom name="tp023_4.bin" merge="tp023_4.bin" size="2097152" crc="e493c077" sha1="0edcfb70483ad07206695d9283031b85cd198a36" region="gp9001_0" offset="400000" />
    <rom name="tp023_6.bin" merge="tp023_6.bin" size="2097152" crc="9084b50a" sha1="03b58278619524d2f09a4b1c152d5e057e792a56" region="gp9001_0" offset="600000" />
    <rom name="tp023_7.bin" merge="tp023_7.bin" size="262144" crc="3732318f" sha1="f0768459f5ad2dee53d408a0a5ae3a314864e667" region="oki1" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="v25" />
    <device_ref name="screen" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="cpu" tag="audiocpu" name="NEC V25" clock="16000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3375000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="1000000" />
    <display tag="screen" type="raster" rotate="0" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Continue Price" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Discount" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="JMPR" mask="112" relation="eq" value="32" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="112" relation="eq" value="32" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="112" relation="ne" value="32" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="JMPR" mask="112" relation="eq" value="32" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="JMPR" mask="112" relation="ne" value="32" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="JMPR" mask="112" relation="ne" value="32" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="JMPR" mask="112" relation="ne" value="32" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="JMPR" mask="112" relation="ne" value="32" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="JMPR" mask="112" relation="ne" value="32" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="JMPR" mask="112" relation="ne" value="32" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="JMPR" mask="112" relation="eq" value="32" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="JMPR" mask="112" relation="eq" value="32" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="JMPR" mask="112" relation="eq" value="32" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="JMPR" mask="112" relation="eq" value="32" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="None" value="12" />
      <dipvalue name="200k only" value="8" />
      <dipvalue name="100k only" value="4" />
      <dipvalue name="100k and 400k" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="0" default="yes" />
      <dipvalue name="3" value="32" />
      <dipvalue name="4" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability (Cheat)" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="No" value="128" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <configuration name="Region" tag="JMPR" mask="240">
      <confsetting name="Japan (Taito license)" value="0" default="yes" />
      <confsetting name="Unused" value="16" />
      <confsetting name="Unused" value="32" />
      <confsetting name="Korea" value="48" />
      <confsetting name="Hong Kong" value="64" />
      <confsetting name="Taiwan" value="80" />
      <confsetting name="Southeast Asia" value="96" />
      <confsetting name="Unused" value="112" />
      <confsetting name="Japan" value="128" />
      <confsetting name="Unused" value="144" />
      <confsetting name="Unused" value="160" />
      <confsetting name="Korea" value="176" />
      <confsetting name="Hong Kong" value="192" />
      <confsetting name="Taiwan" value="208" />
      <confsetting name="Southeast Asia" value="224" />
      <confsetting name="Unused" value="240" />
    </configuration>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":JMPR" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="kingdmgp" sourcefile="toaplan2.cpp">
    <description>Kingdom Grandprix</description>
    <year>1994</year>
    <manufacturer>Raizing / Eighting</manufacturer>
    <rom name="ma02rom1.bin" size="524288" crc="a678b149" sha1="8c1a631e023dbba0a3fa6cd1b7d10dec1663213a" region="maincpu" offset="0" />
    <rom name="ma02rom0.bin" size="524288" crc="f226a212" sha1="526acf3d05fdc88054a772fbea3de2af532bf3d2" region="maincpu" offset="1" />
    <rom name="ma02rom2.bin" size="65536" crc="dde8a57e" sha1="f522a3f17e229c71512464349760a9e27778bf6a" region="audiocpu" offset="0" />
    <rom name="ma02rom3.bin" size="2097152" crc="0e797142" sha1="a480ccd151e49b886d3175a6deff56e1f2c26c3e" region="gp9001_0" offset="0" />
    <rom name="ma02rom4.bin" size="2097152" crc="72a6fa53" sha1="ce92e65205b84361cfb90305a61e9541b5c4dc2f" region="gp9001_0" offset="200000" />
    <rom name="ma02rom5.eng" size="32768" crc="8c28460b" sha1="0aed170762f6044896a7e608df60bbd37c583a71" region="text" offset="0" />
    <rom name="ma02rom6.bin" size="524288" crc="199e7cae" sha1="0f5e13cc8ec42c80bb4bbff90aba29cdb15213d4" region="oki1" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3375000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="1000000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Free Play" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="JMPR" mask="14" relation="eq" value="4" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="14" relation="eq" value="4" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="14" relation="ne" value="4" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="JMPR" mask="14" relation="eq" value="4" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="JMPR" mask="14" relation="ne" value="4" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="JMPR" mask="14" relation="ne" value="4" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="JMPR" mask="14" relation="ne" value="4" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="JMPR" mask="14" relation="ne" value="4" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="JMPR" mask="14" relation="ne" value="4" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="JMPR" mask="14" relation="ne" value="4" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="JMPR" mask="14" relation="eq" value="4" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="JMPR" mask="14" relation="eq" value="4" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="JMPR" mask="14" relation="eq" value="4" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="JMPR" mask="14" relation="eq" value="4" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="None" value="12" />
      <dipvalue name="200k only" value="8" />
      <dipvalue name="Every 300k" value="0" default="yes" />
      <dipvalue name="200k and 500k" value="4" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability (Cheat)" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="No" value="128" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <configuration name="Unused" tag="JMPR" mask="1">
      <confsetting name="Off" value="0" default="yes" />
      <confsetting name="On" value="1" />
    </configuration>
    <configuration name="Region" tag="JMPR" mask="14">
      <confsetting name="Europe" value="4" default="yes" />
      <confsetting name="USA" value="2" />
      <confsetting name="Southeast Asia" value="6" />
      <confsetting name="China" value="8" />
      <confsetting name="Korea (Unite Trading license)" value="10" />
      <confsetting name="Hong Kong" value="12" />
      <confsetting name="Taiwan" value="14" />
    </configuration>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":JMPR" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="mahoudai" sourcefile="toaplan2.cpp" cloneof="sstriker" romof="sstriker">
    <description>Mahou Daisakusen (Japan)</description>
    <year>1993</year>
    <manufacturer>Raizing (Able license)</manufacturer>
    <rom name="ra_ma_01_01.u65" size="524288" crc="970ccc5c" sha1="c87cab83bde0284e631f02e50068407fee81d941" region="maincpu" offset="0" />
    <rom name="ra-ma-01_02.u66" merge="ra-ma-01_02.u66" size="65536" crc="eabfa46d" sha1="402c99ebf88f9025f74f0a28ced22b7882a65eb3" region="audiocpu" offset="0" />
    <rom name="ra-ma01-rom2.u2" merge="ra-ma01-rom2.u2" size="1048576" crc="54e2bd95" sha1="341359dd46152615675bb90e8a184216c8feebff" region="gp9001_0" offset="0" />
    <rom name="ra-ma01-rom3.u1" merge="ra-ma01-rom3.u1" size="1048576" crc="21cd378f" sha1="e1695bccec949d18b1c03e9c42dca384554b0d7c" region="gp9001_0" offset="100000" />
    <rom name="ra_ma_01_05.u81" size="32768" crc="c00d1e80" sha1="53e64c4c0c6309130b37597d13b44a9e95b717d8" region="text" offset="0" />
    <rom name="ra-ma01-rom1.u57" merge="ra-ma01-rom1.u57" size="262144" crc="6edb2ab8" sha1="e3032e8eda2686f30df4b7a088c5a4d4d45782ed" region="oki1" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3375000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="1000000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Free Play" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="JMPR" mask="14" relation="eq" value="4" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="14" relation="eq" value="4" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="14" relation="ne" value="4" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="JMPR" mask="14" relation="eq" value="4" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="JMPR" mask="14" relation="ne" value="4" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="JMPR" mask="14" relation="ne" value="4" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="JMPR" mask="14" relation="ne" value="4" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="JMPR" mask="14" relation="ne" value="4" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="JMPR" mask="14" relation="ne" value="4" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="JMPR" mask="14" relation="ne" value="4" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="JMPR" mask="14" relation="eq" value="4" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="JMPR" mask="14" relation="eq" value="4" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="JMPR" mask="14" relation="eq" value="4" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="JMPR" mask="14" relation="eq" value="4" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="None" value="12" />
      <dipvalue name="200k only" value="8" />
      <dipvalue name="Every 300k" value="0" default="yes" />
      <dipvalue name="200k and 500k" value="4" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability (Cheat)" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="No" value="128" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":JMPR" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="nprobowl" sourcefile="toaplan2.cpp" ismechanical="yes">
    <description>New Pro Bowl</description>
    <year>1996</year>
    <manufacturer>Zuck / Able Corp</manufacturer>
    <rom name="newprobowl-prg0-u021" size="524288" crc="3a57f122" sha1="cc361c295f23bc0479ba49eb15de2ec6ca535a56" region="maincpu" offset="0" />
    <rom name="newprobowl-prg1-u024" size="524288" crc="9e9bb58a" sha1="3d2159bde418dee5d89e3df9a248b4b1989e6ee9" region="maincpu" offset="1" />
    <rom name="newprobowl-chr0-u0518" size="524288" crc="0736cccd" sha1="5a4b691be1df697fef3847456c0f4bb3466c403f" region="gp9001_0" offset="0" />
    <rom name="newprobowl-chr1-u0519" size="524288" crc="6700a9bf" sha1="12a72aa0b91119fbbed994aec702a6869af6f287" region="gp9001_0" offset="1" />
    <rom name="newprobowl-chr2-u0520" size="524288" crc="e5f6d0b6" sha1="6e1a4792698be4b478118e8c82edb0cf3e2286f2" region="gp9001_0" offset="100000" />
    <rom name="newprobowl-chr3-u0521" size="524288" crc="00c21951" sha1="922abde172fb82b504dce41b95227740f16208a7" region="gp9001_0" offset="100001" />
    <rom name="newprobowl-adpcm0-u0834" size="524288" crc="3b40b161" sha1="ff8ba38dd7e0dadbf72810470e3d9afb1cd983d2" region="oki1" offset="0" />
    <rom name="newprobowl-adpcm1-u0835" size="524288" crc="8c191e60" sha1="f81c2849ffc553d921fc680cd50c2997b834c44a" region="oki1" offset="80000" />
    <device_ref name="m68000" />
    <device_ref name="address_map_bank" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="4000000" />
    <display tag="screen" type="raster" rotate="0" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="1" coins="1">
      <control type="only_buttons" buttons="6" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <diplocation name="SW0323" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="2">
      <diplocation name="SW0323" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSW" mask="4">
      <diplocation name="SW0323" number="3" inverted="yes" />
      <dipvalue name="On" value="4" default="yes" />
      <dipvalue name="Off" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="8">
      <diplocation name="SW0323" number="4" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="8" />
    </dipswitch>
    <dipswitch name="Coinage" tag="DSW" mask="112">
      <diplocation name="SW0323" number="5" inverted="yes" />
      <diplocation name="SW0323" number="6" inverted="yes" />
      <diplocation name="SW0323" number="7" inverted="yes" />
      <dipvalue name="5 Coins/1 Credit" value="112" />
      <dipvalue name="4 Coins/1 Credit" value="96" />
      <dipvalue name="3 Coins/1 Credit" value="80" />
      <dipvalue name="2 Coins/1 Credit" value="64" />
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="1 Coin/2 Credits" value="16" />
      <dipvalue name="1 Coin/3 Credits" value="32" />
      <dipvalue name="1 Coin/4 Credits" value="48" />
    </dipswitch>
    <dipswitch name="Free Play" tag="DSW" mask="128">
      <diplocation name="SW0323" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="128" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="256">
      <diplocation name="SW0324" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="256" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="512">
      <diplocation name="SW0324" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="512" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="1024">
      <diplocation name="SW0324" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1024" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="2048">
      <diplocation name="SW0324" number="4" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2048" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="4096">
      <diplocation name="SW0324" number="5" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4096" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="8192">
      <diplocation name="SW0324" number="6" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="8192" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="16384">
      <diplocation name="SW0324" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="16384" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="32768">
      <diplocation name="SW0324" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="32768" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":IN" />
    <port tag=":UNK" />
    <driver status="preliminary" emulation="preliminary" savestate="supported" />
    <feature type="graphics" status="imperfect" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="othldrby" sourcefile="toaplan2.cpp">
    <description>Othello Derby (Japan)</description>
    <year>1995</year>
    <manufacturer>Sunwise</manufacturer>
    <rom name="db0.1" size="524288" crc="6b4008d3" sha1="4cf838c47563ba482be8364b2e115569a4a06c83" region="maincpu" offset="0" />
    <rom name="db0-r2" size="2097152" crc="4efff265" sha1="4cd239ff42f532495946cb52bd1fee412f84e192" region="gp9001_0" offset="0" />
    <rom name="db0-r3" size="2097152" crc="5c142b38" sha1="5466a8b061a0f2545493de0f96fd4387beea276a" region="gp9001_0" offset="200000" />
    <rom name="db0.4" size="524288" crc="a9701868" sha1="9ee89556666d358e8d3915622573b3ba660048b8" region="oki1" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="upd4992" />
    <device_ref name="nvram" />
    <device_ref name="screen" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="3375000" />
    <display tag="screen" type="raster" rotate="0" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="1">
      <dipvalue name="Off" value="1" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSWA" mask="8">
      <dipvalue name="No" value="8" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <dipvalue name="3 Coins/1 Credit" value="48" />
      <dipvalue name="2 Coins/1 Credit" value="32" />
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="1 Coin/2 Credits" value="16" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <dipvalue name="3 Coins/1 Credit" value="192" />
      <dipvalue name="2 Coins/1 Credit" value="128" />
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="1 Coin/2 Credits" value="64" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWB" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWB" mask="8">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="8" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWB" mask="16">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="16" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWB" mask="32">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="32" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWB" mask="64">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWB" mask="128">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="128" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="unsupported" />
  </machine>
  <machine name="outzone" sourcefile="toaplan1.cpp">
    <description>Out Zone</description>
    <year>1990</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="tp_018_07.bin" size="131072" crc="9704db16" sha1="12b43a6961a7f63f29563eb77aaacb70d3c368dd" region="maincpu" offset="1" />
    <rom name="tp_018_08.bin" size="131072" crc="127a38d7" sha1="d7f1ed91ff7d4de9e8215aa3b5cb65693145e433" region="maincpu" offset="0" />
    <rom name="tp_018_09.bin" size="32768" crc="73d8e235" sha1="f37ad497259a467cdf2ec8b3e6e7d3e873087e6c" region="audiocpu" offset="0" />
    <rom name="tp-018_rom5.bin" size="524288" crc="c64ec7b6" sha1="e73b51c3713c2ea7a572a02531c15d1261ddeaa0" region="gfx1" offset="0" />
    <rom name="tp-018_rom6.bin" size="524288" crc="64b6c5ac" sha1="07fa20115f603445c0d51af3465c0471c09d76b1" region="gfx1" offset="80000" />
    <rom name="tp-018_rom2.bin" size="131072" crc="6bb72d16" sha1="a127b10d9c255542bd09fcb5df057c12fd28c0d1" region="gfx2" offset="0" />
    <rom name="tp-018_rom1.bin" size="131072" crc="0934782d" sha1="e4a775ead23227d7d6e76aea23aa3103b511d031" region="gfx2" offset="1" />
    <rom name="tp-018_rom3.bin" size="131072" crc="ec903c07" sha1="75906f31200877fc8f6e78c2606ad5be49778165" region="gfx2" offset="40000" />
    <rom name="tp-018_rom4.bin" size="131072" crc="50cbf1a8" sha1="cfab1504746654b4a61912155e9aeca746c65321" region="gfx2" offset="40001" />
    <rom name="tp018_10.bpr" size="32" crc="bc88cced" sha1="5055362710c0f58823c05fb4c0e0eec638b91e3d" region="proms" offset="0" />
    <rom name="tp018_11.bpr" size="32" crc="a1e17492" sha1="9ddec4c97f2d541f69f3c32c47aaa21fd9699ae2" region="proms" offset="20" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="ym3812" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="10000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="3500000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="YM3812 OPL2" clock="3500000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="55.161545" pixclock="7000000" htotal="450" hbend="0" hbstart="320" vtotal="282" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Unused" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="Every 300k" value="0" default="yes" />
      <dipvalue name="200k and 500k" value="4" />
      <dipvalue name="300k Only" value="8" />
      <dipvalue name="None" value="12" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="128" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYSTEM" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Region" tag="TJUMP" mask="15">
      <diplocation name="JMPR" number="1" inverted="yes" />
      <diplocation name="JMPR" number="2" inverted="yes" />
      <diplocation name="JMPR" number="3" inverted="yes" />
      <diplocation name="JMPR" number="4" inverted="yes" />
      <dipvalue name="Japan" value="0" />
      <dipvalue name="USA" value="1" />
      <dipvalue name="Europe" value="2" default="yes" />
      <dipvalue name="Hong Kong" value="3" />
      <dipvalue name="Korea" value="4" />
      <dipvalue name="Taiwan" value="5" />
      <dipvalue name="Taiwan (Spacy Co., Ltd.)" value="6" />
      <dipvalue name="USA (Romstar, Inc.)" value="7" />
      <dipvalue name="Hong Kong &amp; China (Honest Trading Co.)" value="8" />
      <dipvalue name="Japan" value="9" />
      <dipvalue name="Japan" value="10" />
      <dipvalue name="Japan" value="11" />
      <dipvalue name="Japan" value="12" />
      <dipvalue name="Japan" value="13" />
      <dipvalue name="Japan" value="14" />
      <dipvalue name="Japan" value="15" />
    </dipswitch>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SYSTEM" />
    <port tag=":TJUMP" />
    <port tag=":VBLANK" />
    <driver status="good" emulation="good" savestate="unsupported" />
  </machine>
  <machine name="outzonea" sourcefile="toaplan1.cpp" cloneof="outzone" romof="outzone">
    <description>Out Zone (old set)</description>
    <year>1990</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="18.bin" size="131072" crc="31a171bb" sha1="4ee707e758ab21d2809b65daf0081f86bd9328d9" region="maincpu" offset="0" />
    <rom name="19.bin" size="131072" crc="804ecfd1" sha1="7dead8064445c6d44ebd0889583deb5e17b1954a" region="maincpu" offset="1" />
    <rom name="tp_018_09.bin" merge="tp_018_09.bin" size="32768" crc="73d8e235" sha1="f37ad497259a467cdf2ec8b3e6e7d3e873087e6c" region="audiocpu" offset="0" />
    <rom name="tp-018_rom5.bin" merge="tp-018_rom5.bin" size="524288" crc="c64ec7b6" sha1="e73b51c3713c2ea7a572a02531c15d1261ddeaa0" region="gfx1" offset="0" />
    <rom name="tp-018_rom6.bin" merge="tp-018_rom6.bin" size="524288" crc="64b6c5ac" sha1="07fa20115f603445c0d51af3465c0471c09d76b1" region="gfx1" offset="80000" />
    <rom name="tp-018_rom2.bin" merge="tp-018_rom2.bin" size="131072" crc="6bb72d16" sha1="a127b10d9c255542bd09fcb5df057c12fd28c0d1" region="gfx2" offset="0" />
    <rom name="tp-018_rom1.bin" merge="tp-018_rom1.bin" size="131072" crc="0934782d" sha1="e4a775ead23227d7d6e76aea23aa3103b511d031" region="gfx2" offset="1" />
    <rom name="tp-018_rom3.bin" merge="tp-018_rom3.bin" size="131072" crc="ec903c07" sha1="75906f31200877fc8f6e78c2606ad5be49778165" region="gfx2" offset="40000" />
    <rom name="tp-018_rom4.bin" merge="tp-018_rom4.bin" size="131072" crc="50cbf1a8" sha1="cfab1504746654b4a61912155e9aeca746c65321" region="gfx2" offset="40001" />
    <rom name="tp018_10.bpr" merge="tp018_10.bpr" size="32" crc="bc88cced" sha1="5055362710c0f58823c05fb4c0e0eec638b91e3d" region="proms" offset="0" />
    <rom name="tp018_11.bpr" merge="tp018_11.bpr" size="32" crc="a1e17492" sha1="9ddec4c97f2d541f69f3c32c47aaa21fd9699ae2" region="proms" offset="20" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="ym3812" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="10000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="3500000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="YM3812 OPL2" clock="3500000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="55.161545" pixclock="7000000" htotal="450" hbend="0" hbstart="320" vtotal="282" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Unused" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="Every 300k" value="0" default="yes" />
      <dipvalue name="200k and 500k" value="4" />
      <dipvalue name="300k Only" value="8" />
      <dipvalue name="None" value="12" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="128" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYSTEM" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Region" tag="TJUMP" mask="15">
      <diplocation name="JMPR" number="1" inverted="yes" />
      <diplocation name="JMPR" number="2" inverted="yes" />
      <diplocation name="JMPR" number="3" inverted="yes" />
      <diplocation name="JMPR" number="4" inverted="yes" />
      <dipvalue name="Japan" value="0" />
      <dipvalue name="USA" value="1" />
      <dipvalue name="Europe" value="2" default="yes" />
      <dipvalue name="Hong Kong" value="3" />
      <dipvalue name="Korea" value="4" />
      <dipvalue name="Taiwan" value="5" />
      <dipvalue name="Taiwan (Spacy Co., Ltd.)" value="6" />
      <dipvalue name="USA (Romstar, Inc.)" value="7" />
      <dipvalue name="Hong Kong (Honest Trading Co.)" value="8" />
      <dipvalue name="Japan" value="9" />
      <dipvalue name="Japan" value="10" />
      <dipvalue name="Japan" value="11" />
      <dipvalue name="Japan" value="12" />
      <dipvalue name="Japan" value="13" />
      <dipvalue name="Japan" value="14" />
      <dipvalue name="Japan" value="15" />
    </dipswitch>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SYSTEM" />
    <port tag=":TJUMP" />
    <port tag=":VBLANK" />
    <driver status="good" emulation="good" savestate="unsupported" />
  </machine>
  <machine name="outzoneb" sourcefile="toaplan1.cpp" cloneof="outzone" romof="outzone">
    <description>Out Zone (older set)</description>
    <year>1990</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="tp07.bin" size="131072" crc="a85a1d48" sha1="74f16ef5126f0ce3d94a66849ccd7c28338e3974" region="maincpu" offset="0" />
    <rom name="tp08.bin" size="131072" crc="d8cc44af" sha1="da9c07e3670e5c7a2c1f9bc433e604a2a13b8a54" region="maincpu" offset="1" />
    <rom name="tp09.bin" size="32768" crc="dd56041f" sha1="a481b8959b349761624166906175f8efcbebb7e7" region="audiocpu" offset="0" />
    <rom name="tp-018_rom5.bin" merge="tp-018_rom5.bin" size="524288" crc="c64ec7b6" sha1="e73b51c3713c2ea7a572a02531c15d1261ddeaa0" region="gfx1" offset="0" />
    <rom name="tp-018_rom6.bin" merge="tp-018_rom6.bin" size="524288" crc="64b6c5ac" sha1="07fa20115f603445c0d51af3465c0471c09d76b1" region="gfx1" offset="80000" />
    <rom name="tp-018_rom2.bin" merge="tp-018_rom2.bin" size="131072" crc="6bb72d16" sha1="a127b10d9c255542bd09fcb5df057c12fd28c0d1" region="gfx2" offset="0" />
    <rom name="tp-018_rom1.bin" merge="tp-018_rom1.bin" size="131072" crc="0934782d" sha1="e4a775ead23227d7d6e76aea23aa3103b511d031" region="gfx2" offset="1" />
    <rom name="tp-018_rom3.bin" merge="tp-018_rom3.bin" size="131072" crc="ec903c07" sha1="75906f31200877fc8f6e78c2606ad5be49778165" region="gfx2" offset="40000" />
    <rom name="tp-018_rom4.bin" merge="tp-018_rom4.bin" size="131072" crc="50cbf1a8" sha1="cfab1504746654b4a61912155e9aeca746c65321" region="gfx2" offset="40001" />
    <rom name="tp018_10.bpr" merge="tp018_10.bpr" size="32" crc="bc88cced" sha1="5055362710c0f58823c05fb4c0e0eec638b91e3d" region="proms" offset="0" />
    <rom name="tp018_11.bpr" merge="tp018_11.bpr" size="32" crc="a1e17492" sha1="9ddec4c97f2d541f69f3c32c47aaa21fd9699ae2" region="proms" offset="20" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="ym3812" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="10000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="3500000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="YM3812 OPL2" clock="3500000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="55.161545" pixclock="7000000" htotal="450" hbend="0" hbstart="320" vtotal="282" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Unused" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="Every 300k" value="0" default="yes" />
      <dipvalue name="200k and 500k" value="4" />
      <dipvalue name="300k Only" value="8" />
      <dipvalue name="None" value="12" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="128" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYSTEM" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Region" tag="TJUMP" mask="15">
      <diplocation name="JMPR" number="1" inverted="yes" />
      <diplocation name="JMPR" number="2" inverted="yes" />
      <diplocation name="JMPR" number="3" inverted="yes" />
      <diplocation name="JMPR" number="4" inverted="yes" />
      <dipvalue name="Japan" value="0" />
      <dipvalue name="USA" value="1" />
      <dipvalue name="Europe" value="2" default="yes" />
      <dipvalue name="Hong Kong" value="3" />
      <dipvalue name="Korea" value="4" />
      <dipvalue name="Taiwan" value="5" />
      <dipvalue name="Taiwan (Spacy Co., Ltd.)" value="6" />
      <dipvalue name="USA (Romstar, Inc.)" value="7" />
      <dipvalue name="Hong Kong (Honest Trading Co.)" value="8" />
      <dipvalue name="Japan" value="9" />
      <dipvalue name="Japan" value="10" />
      <dipvalue name="Japan" value="11" />
      <dipvalue name="Japan" value="12" />
      <dipvalue name="Japan" value="13" />
      <dipvalue name="Japan" value="14" />
      <dipvalue name="Japan" value="15" />
    </dipswitch>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SYSTEM" />
    <port tag=":TJUMP" />
    <port tag=":VBLANK" />
    <driver status="good" emulation="good" savestate="unsupported" />
  </machine>
  <machine name="outzonec" sourcefile="toaplan1.cpp" cloneof="outzone" romof="outzone">
    <description>Out Zone (oldest set)</description>
    <year>1990</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="rom7.bin" size="131072" crc="936e25d8" sha1="ffb7990ea1539d868a9ad2fb711b0febd90f098d" region="maincpu" offset="0" />
    <rom name="rom8.bin" size="131072" crc="d19b3ecf" sha1="b406999b9f1e2104d958b42cc745bf79dbfe50b3" region="maincpu" offset="1" />
    <rom name="tp_018_09.bin" merge="tp_018_09.bin" size="32768" crc="73d8e235" sha1="f37ad497259a467cdf2ec8b3e6e7d3e873087e6c" status="baddump" region="audiocpu" offset="0" />
    <rom name="tp-018_rom5.bin" merge="tp-018_rom5.bin" size="524288" crc="c64ec7b6" sha1="e73b51c3713c2ea7a572a02531c15d1261ddeaa0" region="gfx1" offset="0" />
    <rom name="tp-018_rom6.bin" merge="tp-018_rom6.bin" size="524288" crc="64b6c5ac" sha1="07fa20115f603445c0d51af3465c0471c09d76b1" region="gfx1" offset="80000" />
    <rom name="tp-018_rom2.bin" merge="tp-018_rom2.bin" size="131072" crc="6bb72d16" sha1="a127b10d9c255542bd09fcb5df057c12fd28c0d1" region="gfx2" offset="0" />
    <rom name="tp-018_rom1.bin" merge="tp-018_rom1.bin" size="131072" crc="0934782d" sha1="e4a775ead23227d7d6e76aea23aa3103b511d031" region="gfx2" offset="1" />
    <rom name="tp-018_rom3.bin" merge="tp-018_rom3.bin" size="131072" crc="ec903c07" sha1="75906f31200877fc8f6e78c2606ad5be49778165" region="gfx2" offset="40000" />
    <rom name="tp-018_rom4.bin" merge="tp-018_rom4.bin" size="131072" crc="50cbf1a8" sha1="cfab1504746654b4a61912155e9aeca746c65321" region="gfx2" offset="40001" />
    <rom name="tp018_10.bpr" merge="tp018_10.bpr" size="32" crc="bc88cced" sha1="5055362710c0f58823c05fb4c0e0eec638b91e3d" region="proms" offset="0" />
    <rom name="tp018_11.bpr" merge="tp018_11.bpr" size="32" crc="a1e17492" sha1="9ddec4c97f2d541f69f3c32c47aaa21fd9699ae2" region="proms" offset="20" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="ym3812" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="10000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="3500000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="YM3812 OPL2" clock="3500000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="55.161545" pixclock="7000000" htotal="450" hbend="0" hbstart="320" vtotal="282" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Unused" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="Every 300k" value="0" default="yes" />
      <dipvalue name="200k and 500k" value="4" />
      <dipvalue name="300k Only" value="8" />
      <dipvalue name="None" value="12" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="128" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYSTEM" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Region" tag="TJUMP" mask="7">
      <diplocation name="JMPR" number="1" inverted="yes" />
      <diplocation name="JMPR" number="2" inverted="yes" />
      <diplocation name="JMPR" number="3" inverted="yes" />
      <dipvalue name="Japan" value="0" />
      <dipvalue name="USA" value="1" />
      <dipvalue name="Europe" value="2" />
      <dipvalue name="Hong Kong" value="3" />
      <dipvalue name="Korea" value="4" />
      <dipvalue name="Taiwan" value="5" />
      <dipvalue name="World" value="6" default="yes" />
      <dipvalue name="World" value="7" />
    </dipswitch>
    <dipswitch name="Unused" tag="TJUMP" mask="8">
      <diplocation name="JMPR" number="4" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="8" />
    </dipswitch>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SYSTEM" />
    <port tag=":TJUMP" />
    <port tag=":VBLANK" />
    <driver status="imperfect" emulation="good" savestate="unsupported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="outzonecv" sourcefile="toaplan1.cpp" cloneof="outzone" romof="outzone">
    <description>Out Zone (Zero Wing TP-015 PCB conversion)</description>
    <year>1990</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="tp_018_07+.bin" size="131072" crc="8768d843" sha1="17421d390e490191aa419bc541d78456a1675bc4" region="maincpu" offset="0" />
    <rom name="tp_018_08+.bin" size="131072" crc="af238f71" sha1="2643f8d9e78ddd04ceb40d8f8c6412129c678baf" region="maincpu" offset="1" />
    <rom name="tp_018_09+.bin" size="32768" crc="b7201606" sha1="d413074b59f25eb2136c1bc98189550410658493" region="audiocpu" offset="0" />
    <rom name="tp-018_rom5.bin" merge="tp-018_rom5.bin" size="524288" crc="c64ec7b6" sha1="e73b51c3713c2ea7a572a02531c15d1261ddeaa0" region="gfx1" offset="0" />
    <rom name="tp-018_rom6.bin" merge="tp-018_rom6.bin" size="524288" crc="64b6c5ac" sha1="07fa20115f603445c0d51af3465c0471c09d76b1" region="gfx1" offset="80000" />
    <rom name="tp-018_rom2.bin" merge="tp-018_rom2.bin" size="131072" crc="6bb72d16" sha1="a127b10d9c255542bd09fcb5df057c12fd28c0d1" region="gfx2" offset="0" />
    <rom name="tp-018_rom1.bin" merge="tp-018_rom1.bin" size="131072" crc="0934782d" sha1="e4a775ead23227d7d6e76aea23aa3103b511d031" region="gfx2" offset="1" />
    <rom name="tp-018_rom3.bin" merge="tp-018_rom3.bin" size="131072" crc="ec903c07" sha1="75906f31200877fc8f6e78c2606ad5be49778165" region="gfx2" offset="40000" />
    <rom name="tp-018_rom4.bin" merge="tp-018_rom4.bin" size="131072" crc="50cbf1a8" sha1="cfab1504746654b4a61912155e9aeca746c65321" region="gfx2" offset="40001" />
    <rom name="tp018_10.bpr" merge="tp018_10.bpr" size="32" crc="bc88cced" sha1="5055362710c0f58823c05fb4c0e0eec638b91e3d" region="proms" offset="0" />
    <rom name="tp018_11.bpr" merge="tp018_11.bpr" size="32" crc="a1e17492" sha1="9ddec4c97f2d541f69f3c32c47aaa21fd9699ae2" region="proms" offset="20" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="ym3812" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="10000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="3500000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="YM3812 OPL2" clock="3500000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="57.613169" pixclock="7000000" htotal="450" hbend="0" hbstart="320" vtotal="270" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Unused" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="Every 300k" value="0" default="yes" />
      <dipvalue name="200k and 500k" value="4" />
      <dipvalue name="300k Only" value="8" />
      <dipvalue name="None" value="12" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="128" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYSTEM" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Region" tag="TJUMP" mask="15">
      <diplocation name="JMPR" number="1" inverted="yes" />
      <diplocation name="JMPR" number="2" inverted="yes" />
      <diplocation name="JMPR" number="3" inverted="yes" />
      <diplocation name="JMPR" number="4" inverted="yes" />
      <dipvalue name="Japan" value="0" />
      <dipvalue name="USA" value="1" />
      <dipvalue name="Europe" value="2" default="yes" />
      <dipvalue name="Hong Kong" value="3" />
      <dipvalue name="Korea" value="4" />
      <dipvalue name="Taiwan" value="5" />
      <dipvalue name="Taiwan (Spacy Co., Ltd.)" value="6" />
      <dipvalue name="USA (Romstar, Inc.)" value="7" />
      <dipvalue name="Hong Kong &amp; China (Honest Trading Co.)" value="8" />
      <dipvalue name="Japan" value="9" />
      <dipvalue name="Japan" value="10" />
      <dipvalue name="Japan" value="11" />
      <dipvalue name="Japan" value="12" />
      <dipvalue name="Japan" value="13" />
      <dipvalue name="Japan" value="14" />
      <dipvalue name="Japan" value="15" />
    </dipswitch>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SYSTEM" />
    <port tag=":TJUMP" />
    <port tag=":VBLANK" />
    <driver status="good" emulation="good" savestate="unsupported" />
  </machine>
  <machine name="outzoneh" sourcefile="toaplan1.cpp" cloneof="outzone" romof="outzone">
    <description>Out Zone (harder)</description>
    <year>1990</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="tp_018_07h.bin" size="131072" crc="0c2ac02d" sha1="78fda906ef7e0bb8e4ad44f34a8ac934b75d4bd8" region="maincpu" offset="0" />
    <rom name="tp_018_08h.bin" size="131072" crc="ca7e48aa" sha1="c5073e6c124d74f16d01e67949965fdca929a886" region="maincpu" offset="1" />
    <rom name="tp_018_09.bin" merge="tp_018_09.bin" size="32768" crc="73d8e235" sha1="f37ad497259a467cdf2ec8b3e6e7d3e873087e6c" region="audiocpu" offset="0" />
    <rom name="tp-018_rom5.bin" merge="tp-018_rom5.bin" size="524288" crc="c64ec7b6" sha1="e73b51c3713c2ea7a572a02531c15d1261ddeaa0" region="gfx1" offset="0" />
    <rom name="tp-018_rom6.bin" merge="tp-018_rom6.bin" size="524288" crc="64b6c5ac" sha1="07fa20115f603445c0d51af3465c0471c09d76b1" region="gfx1" offset="80000" />
    <rom name="tp-018_rom2.bin" merge="tp-018_rom2.bin" size="131072" crc="6bb72d16" sha1="a127b10d9c255542bd09fcb5df057c12fd28c0d1" region="gfx2" offset="0" />
    <rom name="tp-018_rom1.bin" merge="tp-018_rom1.bin" size="131072" crc="0934782d" sha1="e4a775ead23227d7d6e76aea23aa3103b511d031" region="gfx2" offset="1" />
    <rom name="tp-018_rom3.bin" merge="tp-018_rom3.bin" size="131072" crc="ec903c07" sha1="75906f31200877fc8f6e78c2606ad5be49778165" region="gfx2" offset="40000" />
    <rom name="tp-018_rom4.bin" merge="tp-018_rom4.bin" size="131072" crc="50cbf1a8" sha1="cfab1504746654b4a61912155e9aeca746c65321" region="gfx2" offset="40001" />
    <rom name="tp018_10.bpr" merge="tp018_10.bpr" size="32" crc="bc88cced" sha1="5055362710c0f58823c05fb4c0e0eec638b91e3d" region="proms" offset="0" />
    <rom name="tp018_11.bpr" merge="tp018_11.bpr" size="32" crc="a1e17492" sha1="9ddec4c97f2d541f69f3c32c47aaa21fd9699ae2" region="proms" offset="20" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="ym3812" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="10000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="3500000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="YM3812 OPL2" clock="3500000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="55.161545" pixclock="7000000" htotal="450" hbend="0" hbstart="320" vtotal="282" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Unused" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="Every 300k" value="0" default="yes" />
      <dipvalue name="200k and 500k" value="4" />
      <dipvalue name="300k Only" value="8" />
      <dipvalue name="None" value="12" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="128" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYSTEM" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Region" tag="TJUMP" mask="15">
      <diplocation name="JMPR" number="1" inverted="yes" />
      <diplocation name="JMPR" number="2" inverted="yes" />
      <diplocation name="JMPR" number="3" inverted="yes" />
      <diplocation name="JMPR" number="4" inverted="yes" />
      <dipvalue name="Japan" value="0" />
      <dipvalue name="USA" value="1" />
      <dipvalue name="Europe" value="2" default="yes" />
      <dipvalue name="Hong Kong" value="3" />
      <dipvalue name="Korea" value="4" />
      <dipvalue name="Taiwan" value="5" />
      <dipvalue name="Taiwan (Spacy Co., Ltd.)" value="6" />
      <dipvalue name="USA (Romstar, Inc.)" value="7" />
      <dipvalue name="Hong Kong &amp; China (Honest Trading Co.)" value="8" />
      <dipvalue name="Japan" value="9" />
      <dipvalue name="Japan" value="10" />
      <dipvalue name="Japan" value="11" />
      <dipvalue name="Japan" value="12" />
      <dipvalue name="Japan" value="13" />
      <dipvalue name="Japan" value="14" />
      <dipvalue name="Japan" value="15" />
    </dipswitch>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SYSTEM" />
    <port tag=":TJUMP" />
    <port tag=":VBLANK" />
    <driver status="good" emulation="good" savestate="unsupported" />
  </machine>
  <machine name="pipibibs" sourcefile="toaplan2.cpp">
    <description>Pipi &amp; Bibis / Whoopee!! (Z80 sound cpu, set 1)</description>
    <year>1991</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="tp025-1.bin" size="131072" crc="b2ea8659" sha1="400431b656dbfbd5a9bc5961c3ea04c4d38b6f77" region="maincpu" offset="0" />
    <rom name="tp025-2.bin" size="131072" crc="dc53b939" sha1="e4de371f97ba7c350273ad43b7f58ff31672a269" region="maincpu" offset="1" />
    <rom name="tp025-5.bin" size="32768" crc="bf8ffde5" sha1="79c09cc9a0ea979f5af5a7e5ad671ea486f5f43e" region="audiocpu" offset="0" />
    <rom name="tp025-4.bin" size="1048576" crc="ab97f744" sha1="c1620e614345dbd5c6567e4cb6f55c61b900d0ee" region="gp9001_0" offset="0" />
    <rom name="tp025-3.bin" size="1048576" crc="7b16101e" sha1="ae0119bbfa0937d18c4fbb0a3ef7cdc3b9fa6b56" region="gp9001_0" offset="100000" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="screen" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="ym3812" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="10000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="3375000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="YM3812 OPL2" clock="3375000" />
    <display tag="screen" type="raster" rotate="0" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Unused" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="JMPR" mask="6" relation="eq" value="6" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="6" relation="eq" value="6" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="6" relation="ne" value="6" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="JMPR" mask="6" relation="eq" value="6" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="JMPR" mask="6" relation="ne" value="6" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="JMPR" mask="6" relation="ne" value="6" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="JMPR" mask="6" relation="ne" value="6" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="JMPR" mask="6" relation="ne" value="6" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="JMPR" mask="6" relation="ne" value="6" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="JMPR" mask="6" relation="ne" value="6" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="JMPR" mask="6" relation="eq" value="6" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="JMPR" mask="6" relation="eq" value="6" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="JMPR" mask="6" relation="eq" value="6" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="JMPR" mask="6" relation="eq" value="6" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="None" value="12" />
      <dipvalue name="200k only" value="8" />
      <dipvalue name="200k and every 300k" value="0" default="yes" />
      <dipvalue name="150k and every 200k" value="4" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability (Cheat)" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="128" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <configuration name="Region" tag="JMPR" mask="7">
      <confsetting name="Europe" value="6" default="yes" />
      <confsetting name="USA" value="4" />
      <confsetting name="Japan" value="0" />
      <confsetting name="Asia" value="1" />
      <confsetting name="Hong Kong (Honest Trading Co.)" value="2" />
      <confsetting name="Taiwan" value="3" />
      <confsetting name="USA (Romstar, Inc.)" value="5" />
      <confsetting name="Europe (Nova Apparate GMBH &amp; Co.)" value="7" />
    </configuration>
    <configuration name="Nudity" tag="JMPR" mask="8">
      <confsetting name="Low" value="8" />
      <confsetting name="High, but censored" value="0" default="yes" />
    </configuration>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":JMPR" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="pipibibsa" sourcefile="toaplan2.cpp" cloneof="pipibibs" romof="pipibibs">
    <description>Pipi &amp; Bibis / Whoopee!! (Z80 sound cpu, set 2)</description>
    <year>1991</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="tp025-1.alt.bin" size="131072" crc="3e522d98" sha1="043dd76b99e130909e47063d4cc773177a2eaccf" region="maincpu" offset="0" />
    <rom name="tp025-2.alt.bin" size="131072" crc="48370485" sha1="9895e086c9a5eeec4f454cbc6098adb2f66d4e11" region="maincpu" offset="1" />
    <rom name="tp025-5.bin" merge="tp025-5.bin" size="32768" crc="bf8ffde5" sha1="79c09cc9a0ea979f5af5a7e5ad671ea486f5f43e" region="audiocpu" offset="0" />
    <rom name="tp025-4.bin" merge="tp025-4.bin" size="1048576" crc="ab97f744" sha1="c1620e614345dbd5c6567e4cb6f55c61b900d0ee" region="gp9001_0" offset="0" />
    <rom name="tp025-3.bin" merge="tp025-3.bin" size="1048576" crc="7b16101e" sha1="ae0119bbfa0937d18c4fbb0a3ef7cdc3b9fa6b56" region="gp9001_0" offset="100000" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="screen" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="ym3812" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="10000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="3375000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="YM3812 OPL2" clock="3375000" />
    <display tag="screen" type="raster" rotate="0" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Unused" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="JMPR" mask="6" relation="eq" value="6" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="6" relation="eq" value="6" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="6" relation="ne" value="6" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="JMPR" mask="6" relation="eq" value="6" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="JMPR" mask="6" relation="ne" value="6" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="JMPR" mask="6" relation="ne" value="6" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="JMPR" mask="6" relation="ne" value="6" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="JMPR" mask="6" relation="ne" value="6" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="JMPR" mask="6" relation="ne" value="6" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="JMPR" mask="6" relation="ne" value="6" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="JMPR" mask="6" relation="eq" value="6" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="JMPR" mask="6" relation="eq" value="6" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="JMPR" mask="6" relation="eq" value="6" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="JMPR" mask="6" relation="eq" value="6" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="None" value="12" />
      <dipvalue name="200k only" value="8" />
      <dipvalue name="200k and every 300k" value="0" default="yes" />
      <dipvalue name="150k and every 200k" value="4" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability (Cheat)" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="128" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <configuration name="Region" tag="JMPR" mask="7">
      <confsetting name="Europe" value="6" default="yes" />
      <confsetting name="USA" value="4" />
      <confsetting name="Japan" value="0" />
      <confsetting name="Asia" value="1" />
      <confsetting name="Hong Kong (Honest Trading Co.)" value="2" />
      <confsetting name="Taiwan" value="3" />
      <confsetting name="USA (Romstar, Inc.)" value="5" />
      <confsetting name="Europe (Nova Apparate GMBH &amp; Co.)" value="7" />
    </configuration>
    <configuration name="Nudity" tag="JMPR" mask="8">
      <confsetting name="Low" value="8" />
      <confsetting name="High, but censored" value="0" default="yes" />
    </configuration>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":JMPR" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="pipibibsbl" sourcefile="toaplan2.cpp" cloneof="pipibibs" romof="pipibibs">
    <description>Pipi &amp; Bibis / Whoopee!! (Ryouta Kikaku bootleg, encrypted)</description>
    <year>1991</year>
    <manufacturer>bootleg (Ryouta Kikaku)</manufacturer>
    <rom name="ppbb06.bin" size="131072" crc="14c92515" sha1="2d7f7c89272bb2a8115f163ad651bef3bca5107e" region="maincpu" offset="0" />
    <rom name="ppbb05.bin" size="131072" crc="3d51133c" sha1="d7bd94ad11e9aeb5a5165c5ac6f71950849bcd2f" region="maincpu" offset="1" />
    <rom name="ppbb08.bin" size="32768" crc="101c0358" sha1="162e02d00b7bdcdd3b48a0cd0527b7428435ec50" region="audiocpu" offset="0" />
    <rom name="ppbb01.bin" size="524288" crc="0fcae44b" sha1="ac72bc79e3a5d0a81647c312d310d00ace017272" region="gp9001_0" offset="0" />
    <rom name="ppbb02.bin" size="524288" crc="8bfcdf87" sha1="4537a7d646d3014f069c6fd0be457bb32e2f18ac" region="gp9001_0" offset="1" />
    <rom name="ppbb03.bin" size="524288" crc="abdd2b8b" sha1="a4246dd63515f01d1227c9a9e16d9f1c739ee39e" region="gp9001_0" offset="100000" />
    <rom name="ppbb04.bin" size="524288" crc="70faa734" sha1="4448f4dbded56c142e57293d371e0a422c3a667e" region="gp9001_0" offset="100001" />
    <rom name="ppbb07.bin" size="32768" crc="456dd16e" sha1="84779ee64d3ea33ba1ba4dee39b504a81c6811a1" region="user1" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="screen" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="ym3812" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="12000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="6000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="YM3812 OPL2" clock="3540250" />
    <display tag="screen" type="raster" rotate="0" width="320" height="240" refresh="60.055131" pixclock="7080500" htotal="450" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Unused" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="None" value="12" />
      <dipvalue name="200k only" value="8" />
      <dipvalue name="200k and every 300k" value="0" default="yes" />
      <dipvalue name="150k and every 200k" value="4" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability (Cheat)" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="128" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <configuration name="Region" tag="JMPR" mask="524295">
      <confsetting name="World" value="2" default="yes" />
      <confsetting name="Europe" value="524293" />
      <confsetting name="USA" value="4" />
      <confsetting name="Japan (Ryouta Kikaku)" value="0" />
      <confsetting name="Hong Kong (Honest Trading Co.)" value="1" />
      <confsetting name="Spain &amp; Portugal (APM Electronics S.A.)" value="524294" />
      <confsetting name="World (Ryouta Kikaku)" value="7" />
    </configuration>
    <configuration name="Nudity" tag="JMPR" mask="8">
      <confsetting name="Low" value="8" />
      <confsetting name="High, but censored" value="0" default="yes" />
    </configuration>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":JMPR" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="pipibibsbl2" sourcefile="toaplan2.cpp" cloneof="pipibibs" romof="pipibibs">
    <description>Pipi &amp; Bibis / Whoopee!! (bootleg, decrypted)</description>
    <year>1991</year>
    <manufacturer>bootleg</manufacturer>
    <rom name="06.bin" size="131072" crc="25f49c2f" sha1="a61246ec8a07ba14ee0a01c3458c59840b435c0b" region="maincpu" offset="0" />
    <rom name="07.bin" size="131072" crc="15250177" sha1="a5ee5ccc219f300d7387b45dc8f8b72fd0f37d7e" region="maincpu" offset="1" />
    <rom name="08.bin" size="65536" crc="f2080071" sha1="68cbae9559879b2dc19c41a7efbd13ab4a569d3f" region="audiocpu" offset="0" />
    <rom name="01.bin" size="524288" crc="505e9e9f" sha1="998995d94585d785263cc926f68632065aa6c366" region="gp9001_0" offset="0" />
    <rom name="02.bin" size="524288" crc="860018f5" sha1="7f42dffb27940629447d688e1771b4ecf04f3b43" region="gp9001_0" offset="1" />
    <rom name="03.bin" size="524288" crc="ece1bc0f" sha1="d29f1520f1a3a9d276d36af650bc0d70bcb5b8da" region="gp9001_0" offset="100000" />
    <rom name="04.bin" size="524288" crc="f328d7a3" sha1="2c4fb5d6202f847aaf7c7be719c0c92b8bb5946b" region="gp9001_0" offset="100001" />
    <rom name="5.bin" size="131072" crc="8107c4bd" sha1="64e2fafa808c16c722454b611a8492a4620a925c" region="user1" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="screen" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="ym3812" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="12000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="6000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="YM3812 OPL2" clock="3540250" />
    <display tag="screen" type="raster" rotate="0" width="320" height="240" refresh="60.055131" pixclock="7080500" htotal="450" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Unused" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="None" value="12" />
      <dipvalue name="200k only" value="8" />
      <dipvalue name="200k and every 300k" value="0" default="yes" />
      <dipvalue name="150k and every 200k" value="4" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability (Cheat)" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="128" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <configuration name="Region" tag="JMPR" mask="524295">
      <confsetting name="World" value="2" default="yes" />
      <confsetting name="Europe" value="524293" />
      <confsetting name="USA" value="4" />
      <confsetting name="Japan (Ryouta Kikaku)" value="0" />
      <confsetting name="Hong Kong (Honest Trading Co.)" value="1" />
      <confsetting name="Spain &amp; Portugal (APM Electronics S.A.)" value="524294" />
      <confsetting name="World (Ryouta Kikaku)" value="7" />
    </configuration>
    <configuration name="Nudity" tag="JMPR" mask="8">
      <confsetting name="Low" value="8" />
      <confsetting name="High, but censored" value="0" default="yes" />
    </configuration>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":JMPR" />
    <port tag=":SYS" />
    <driver status="preliminary" emulation="preliminary" savestate="supported" />
  </machine>
  <machine name="pipibibsbl3" sourcefile="toaplan2.cpp" cloneof="pipibibs" romof="pipibibs">
    <description>Pipi &amp; Bibis / Whoopee!! (Ryouta Kikaku bootleg, decrypted)</description>
    <year>1991</year>
    <manufacturer>bootleg (Ryouta Kikaku)</manufacturer>
    <rom name="5.bin" size="131072" crc="7fab770c" sha1="c96808870c5906e0203f38114702bd660e491a7d" region="maincpu" offset="0" />
    <rom name="6.bin" size="131072" crc="9007ef00" sha1="594052be7351e0b8e30f83abd9a91ab1429d82ef" region="maincpu" offset="1" />
    <rom name="7.bin" size="32768" crc="101c0358" sha1="162e02d00b7bdcdd3b48a0cd0527b7428435ec50" region="audiocpu" offset="0" />
    <rom name="4.bin" size="524288" crc="0fcae44b" sha1="ac72bc79e3a5d0a81647c312d310d00ace017272" region="gp9001_0" offset="0" />
    <rom name="3.bin" size="524288" crc="8bfcdf87" sha1="4537a7d646d3014f069c6fd0be457bb32e2f18ac" region="gp9001_0" offset="1" />
    <rom name="2.bin" size="524288" crc="abdd2b8b" sha1="a4246dd63515f01d1227c9a9e16d9f1c739ee39e" region="gp9001_0" offset="100000" />
    <rom name="1.bin" size="524288" crc="70faa734" sha1="4448f4dbded56c142e57293d371e0a422c3a667e" region="gp9001_0" offset="100001" />
    <rom name="8.bin" size="32768" crc="456dd16e" sha1="84779ee64d3ea33ba1ba4dee39b504a81c6811a1" region="user1" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="screen" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="ym3812" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="12000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="6000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="YM3812 OPL2" clock="3540250" />
    <display tag="screen" type="raster" rotate="0" width="320" height="240" refresh="60.055131" pixclock="7080500" htotal="450" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Unused" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="None" value="12" />
      <dipvalue name="200k only" value="8" />
      <dipvalue name="200k and every 300k" value="0" default="yes" />
      <dipvalue name="150k and every 200k" value="4" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability (Cheat)" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="128" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <configuration name="Region" tag="JMPR" mask="524295">
      <confsetting name="World" value="2" default="yes" />
      <confsetting name="Europe" value="524293" />
      <confsetting name="USA" value="4" />
      <confsetting name="Japan (Ryouta Kikaku)" value="0" />
      <confsetting name="Hong Kong (Honest Trading Co.)" value="1" />
      <confsetting name="Spain &amp; Portugal (APM Electronics S.A.)" value="524294" />
      <confsetting name="World (Ryouta Kikaku)" value="7" />
    </configuration>
    <configuration name="Nudity" tag="JMPR" mask="8">
      <confsetting name="Low" value="8" />
      <confsetting name="High, but censored" value="0" default="yes" />
    </configuration>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":JMPR" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="pipibibsp" sourcefile="toaplan2.cpp" cloneof="pipibibs" romof="pipibibs">
    <description>Pipi &amp; Bibis / Whoopee!! (prototype)</description>
    <year>1991</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="pip_cpu_e" size="131072" crc="ae3205bd" sha1="1613fec637dfed213433dca0d267e49f4848df81" region="maincpu" offset="0" />
    <rom name="pip_cpu_o" size="131072" crc="241669a9" sha1="234e0bb819453e16625d15d2cf22496bbc547943" region="maincpu" offset="1" />
    <rom name="pip_snd" size="32768" crc="8ebf183b" sha1="602b138c85b02d121d007f6788b322aa107c7d91" region="audiocpu" offset="0" />
    <rom name="cg_01_l" size="524288" crc="21d1ef46" sha1="d7ccbe56eb08be421c241065cbaa99cc9cca4d73" region="gp9001_0" offset="0" />
    <rom name="cg_01_h" size="524288" crc="d5726328" sha1="26401ba8ce22fda161306b91d70afefa959cde8c" region="gp9001_0" offset="80000" />
    <rom name="cg_23_l" size="524288" crc="114d41d0" sha1="d1166d495d92c6082fffbed422deb7605c5a41a2" region="gp9001_0" offset="100000" />
    <rom name="cg_23_h" size="524288" crc="e0468152" sha1="f5a872d8658e959ec6cce51c7798291b5b973f15" region="gp9001_0" offset="180000" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="screen" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="ym3812" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="10000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="3375000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="YM3812 OPL2" clock="3375000" />
    <display tag="screen" type="raster" rotate="0" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Unused" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="JMPR" mask="524288" relation="ne" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="JMPR" mask="524288" relation="eq" value="524288" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="None" value="12" />
      <dipvalue name="200k only" value="8" />
      <dipvalue name="200k and every 300k" value="0" default="yes" />
      <dipvalue name="150k and every 200k" value="4" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability (Cheat)" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="128" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <configuration name="Region" tag="JMPR" mask="524295">
      <confsetting name="World" value="2" default="yes" />
      <confsetting name="Europe" value="524293" />
      <confsetting name="USA" value="4" />
      <confsetting name="Japan (Ryouta Kikaku)" value="0" />
      <confsetting name="Hong Kong (Honest Trading Co.)" value="1" />
      <confsetting name="Spain &amp; Portugal (APM Electronics S.A.)" value="524294" />
      <confsetting name="World (Ryouta Kikaku)" value="7" />
    </configuration>
    <configuration name="Nudity" tag="JMPR" mask="8">
      <confsetting name="Low" value="8" />
      <confsetting name="High, but censored" value="0" default="yes" />
    </configuration>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":JMPR" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="pwrkick" sourcefile="toaplan2.cpp">
    <description>Power Kick (Japan)</description>
    <year>1994</year>
    <manufacturer>Sunwise</manufacturer>
    <rom name="1.u61" size="524288" crc="118b5899" sha1="7a1637a63eb17e3892d79aede5730013a1dc00f9" region="maincpu" offset="0" />
    <rom name="2.u26" size="524288" crc="a190eaea" sha1="2c7b8c8026873e0f591fbcbc2e72b196ef84e162" region="gp9001_0" offset="0" />
    <rom name="3.u27" size="524288" crc="0b81e038" sha1="8376617ae519a8ef604f20b26e941aa5b8066602" region="gp9001_0" offset="80000" />
    <rom name="4.u33" size="524288" crc="3ab742f1" sha1="ce8ca02ca57fd77872e421ce601afd017d3518a0" region="oki1" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="upd4992" />
    <device_ref name="nvram" />
    <device_ref name="ticket_dispenser" />
    <device_ref name="screen" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="3375000" />
    <display tag="screen" type="raster" rotate="0" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="1" coins="3" service="yes">
      <control type="gambling" buttons="6" />
    </input>
    <dipswitch name="Difficulty" tag="DSWA" mask="3">
      <diplocation name="SW1" number="1" inverted="yes" />
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Easy" value="0" default="yes" />
      <dipvalue name="Normal" value="1" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="32">
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="Off" value="32" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Payout" tag="DSWA" mask="92">
      <diplocation name="SW1" number="3" inverted="yes" />
      <diplocation name="SW1" number="4" inverted="yes" />
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="7" inverted="yes" />
      <dipvalue name="110" value="0" default="yes" />
      <dipvalue name="105" value="4" />
      <dipvalue name="100" value="8" />
      <dipvalue name="95" value="12" />
      <dipvalue name="90" value="16" />
      <dipvalue name="85" value="20" />
      <dipvalue name="80" value="24" />
      <dipvalue name="75" value="28" />
      <dipvalue name="70" value="64" />
      <dipvalue name="65" value="68" />
      <dipvalue name="60" value="72" />
      <dipvalue name="55" value="76" />
      <dipvalue name="50" value="80" />
      <dipvalue name="45" value="84" />
      <dipvalue name="40" value="88" />
      <dipvalue name="35" value="92" />
    </dipswitch>
    <dipswitch name="Diagnostic" tag="DSWA" mask="128">
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="128" />
    </dipswitch>
    <dipswitch name="Play Credit" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="¥10" value="0" default="yes" />
      <dipvalue name="¥20" value="1" />
      <dipvalue name="¥30" value="2" />
      <dipvalue name="¥40" value="3" />
    </dipswitch>
    <dipswitch name="Coin Exchange" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="12" value="0" default="yes" />
      <dipvalue name="10" value="4" />
      <dipvalue name="6" value="8" />
      <dipvalue name="5" value="12" />
    </dipswitch>
    <dipswitch name="Game Mode" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Shot" value="16" />
      <dipvalue name="Auto" value="32" />
      <dipvalue name="S-Manual" value="48" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="128" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWC" mask="1">
      <diplocation name="SW3" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWC" mask="2">
      <diplocation name="SW3" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWC" mask="4">
      <diplocation name="SW3" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWC" mask="8">
      <diplocation name="SW3" number="4" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="8" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWC" mask="16">
      <diplocation name="SW3" number="5" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="16" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWC" mask="32">
      <diplocation name="SW3" number="6" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="32" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWC" mask="64">
      <diplocation name="SW3" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWC" mask="128">
      <diplocation name="SW3" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="128" />
    </dipswitch>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":DSWC" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="unsupported" />
  </machine>
  <machine name="rallybik" sourcefile="toaplan1.cpp">
    <description>Rally Bike / Dash Yarou</description>
    <year>1988</year>
    <manufacturer>Toaplan / Taito Corporation</manufacturer>
    <rom name="b45-02.rom" size="32768" crc="383386d7" sha1="fc420b6adc79a408a68f0661d0c62ed7dbe8b6d7" region="maincpu" offset="0" />
    <rom name="b45-01.rom" size="32768" crc="7602f6a7" sha1="2939c261a4bc63586681080f5643916c85e81c7d" region="maincpu" offset="1" />
    <rom name="b45-04.rom" size="131072" crc="e9b005b1" sha1="19b5acfd5fb2683a56a701400b11ee6f64a9bdf1" region="maincpu" offset="40000" />
    <rom name="b45-03.rom" size="131072" crc="555344ce" sha1="398963f488fe6f19c0b8518d80c946c242d0fc45" region="maincpu" offset="40001" />
    <rom name="b45-05.rom" size="16384" crc="10814601" sha1="bad7a834d8849752a7f3000bb5154ec0fa50d695" region="audiocpu" offset="0" />
    <rom name="b45-09.bin" size="131072" crc="1dc7b010" sha1="67e8633bd787ffcae0e7867e7e591c492c4f2d63" region="gfx1" offset="0" />
    <rom name="b45-08.bin" size="131072" crc="fab661ba" sha1="acc43cd6d979b1c6a348727f315643d7b8f1496a" region="gfx1" offset="1" />
    <rom name="b45-07.bin" size="131072" crc="cd3748b4" sha1="a20eb19a0f813112b4e5d9cd91db29de9b37af17" region="gfx1" offset="40000" />
    <rom name="b45-06.bin" size="131072" crc="144b085c" sha1="84b7412d58fe9c5e9915896db92e80a621571b74" region="gfx1" offset="40001" />
    <rom name="b45-11.rom" size="65536" crc="0d56e8bb" sha1="c29cb53f846c73b7cf9936051fb0f9dd3805f53f" region="scu" offset="0" />
    <rom name="b45-10.rom" size="65536" crc="dbb7c57e" sha1="268132965cd65b5e972ca9d0258c30b8a86f3703" region="scu" offset="10000" />
    <rom name="b45-12.rom" size="65536" crc="cf5aae4e" sha1="5832c52d2e9b86414d8ee2926fa190abe9e41da4" region="scu" offset="20000" />
    <rom name="b45-13.rom" size="65536" crc="1683b07c" sha1="54356893357cd1297f24f1d85b7289d80740262d" region="scu" offset="30000" />
    <rom name="b45-15.bpr" size="256" crc="24e7d62f" sha1="1c06a1ef1b6a722794ca1d5ee2c476ecaa5178a3" region="proms" offset="0" />
    <rom name="b45-16.bpr" size="256" crc="a50cef09" sha1="55cafb5b2551b80ae708e9b966cf37c70a16d310" region="proms" offset="100" />
    <rom name="b45-14.bpr" size="32" crc="f72482db" sha1="b0cb911f9c81f6088a5aa8760916ddae1f8534d7" region="proms" offset="200" />
    <rom name="b45-17.bpr" size="32" crc="bc88cced" sha1="5055362710c0f58823c05fb4c0e0eec638b91e3d" region="proms" offset="220" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="ls259" />
    <device_ref name="screen" />
    <device_ref name="toaplan_scu" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="ym3812" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="10000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="3500000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="YM3812 OPL2" clock="3500000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="55.161545" pixclock="7000000" htotal="450" hbend="0" hbstart="320" vtotal="282" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Cabinet" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Upright" value="1" default="yes" />
      <dipvalue name="Cocktail" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="DSWB" mask="48" relation="eq" value="32" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="DSWB" mask="48" relation="eq" value="32" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="DSWB" mask="48" relation="ne" value="32" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="DSWB" mask="48" relation="eq" value="32" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="DSWB" mask="48" relation="ne" value="32" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="DSWB" mask="48" relation="ne" value="32" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="DSWB" mask="48" relation="ne" value="32" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="DSWB" mask="48" relation="ne" value="32" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="DSWB" mask="48" relation="ne" value="32" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="DSWB" mask="48" relation="ne" value="32" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="DSWB" mask="48" relation="eq" value="32" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="DSWB" mask="48" relation="eq" value="32" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="DSWB" mask="48" relation="eq" value="32" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="DSWB" mask="48" relation="eq" value="32" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWB" mask="4">
      <diplocation name="SW2" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWB" mask="8">
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="8" />
    </dipswitch>
    <dipswitch name="Region" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="Europe" value="32" default="yes" />
      <dipvalue name="USA" value="16" />
      <dipvalue name="USA (Romstar license)" value="48" />
      <dipvalue name="Japan" value="0" />
    </dipswitch>
    <dipswitch name="Dip Switch Display" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="No" value="128" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYSTEM" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SYSTEM" />
    <port tag=":VBLANK" />
    <driver status="good" emulation="good" savestate="unsupported" />
  </machine>
  <machine name="samesame" sourcefile="toaplan1.cpp" cloneof="fireshrk" romof="fireshrk">
    <description>Same! Same! Same! (1P set)</description>
    <year>1989</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="o17_09.8j" size="32768" crc="3f69e437" sha1="f2a40fd42cb5ecb2e514b72e7550aa479a9f9ad6" region="maincpu" offset="0" />
    <rom name="o17_10.8l" size="32768" crc="4e723e0a" sha1="e06394d50addeda1045c02c646964afbc6005a82" region="maincpu" offset="1" />
    <rom name="o17_11.7j" size="131072" crc="be07d101" sha1="1eda14ba24532b565d6ad57490b73ff312f98b53" region="maincpu" offset="40000" />
    <rom name="o17_12.7l" size="131072" crc="ef698811" sha1="4c729704eba0bf469599c79009327e4fa5dc540b" region="maincpu" offset="40001" />
    <rom name="hd647180.017" merge="hd647180.017" size="32768" crc="43523032" sha1="1b94003a00e7bf6bdf1b1b946f42ff5d04629949" region="audiocpu" offset="0" />
    <rom name="o17_05.12j" merge="o17_05.12j" size="131072" crc="565315f8" sha1="6b1c5ef52359483228b329c89c2e1174e3fbf017" region="gfx1" offset="0" />
    <rom name="o17_06.13j" merge="o17_06.13j" size="131072" crc="95262d4c" sha1="16f3aabecb1c87ce7eadf4f0ff61b29a4c017614" region="gfx1" offset="1" />
    <rom name="o17_07.12l" merge="o17_07.12l" size="131072" crc="4c4b735c" sha1="812c3bf46bd7764b2bb812bd2b9eb0331ed257ae" region="gfx1" offset="40000" />
    <rom name="o17_08.13l" merge="o17_08.13l" size="131072" crc="95c6586c" sha1="ff87901f79d80f73ad09664b0c0d892898570616" region="gfx1" offset="40001" />
    <rom name="o17_01.1d" merge="o17_01.1d" size="131072" crc="ea12e491" sha1="02190722b7c5383471e0af9596be7039a5367240" region="gfx2" offset="0" />
    <rom name="o17_02.3d" merge="o17_02.3d" size="131072" crc="32a13a9f" sha1="1446acdfd21cd41f3d97aaf30f498c0c5d890605" region="gfx2" offset="1" />
    <rom name="o17_03.5d" merge="o17_03.5d" size="131072" crc="68723dc9" sha1="4f1b7aa2469c955e03737b611a7d2524f1e4f61e" region="gfx2" offset="40000" />
    <rom name="o17_04.7d" merge="o17_04.7d" size="131072" crc="fe0ecb13" sha1="634a49262b9c092c25f11b14c6757fe94ea9eddc" region="gfx2" offset="40001" />
    <rom name="prom14.25b" merge="prom14.25b" size="32" crc="bc88cced" sha1="5055362710c0f58823c05fb4c0e0eec638b91e3d" region="proms" offset="0" />
    <rom name="prom15.20c" merge="prom15.20c" size="32" crc="a1e17492" sha1="9ddec4c97f2d541f69f3c32c47aaa21fd9699ae2" region="proms" offset="20" />
    <device_ref name="m68000" />
    <device_ref name="hd647180x" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="ym3812" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="10000000" />
    <chip type="cpu" tag="audiocpu" name="Hitachi HD647180X MCU" clock="7000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="YM3812 OPL2" clock="3500000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="57.613169" pixclock="7000000" htotal="450" hbend="0" hbstart="320" vtotal="270" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Cabinet" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Cocktail" value="0" />
      <dipvalue name="Upright" value="1" default="yes" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSWA" mask="16">
      <diplocation name="SW1" number="5" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="16" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSWA" mask="32">
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="32" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSWA" mask="64">
      <diplocation name="SW1" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSWA" mask="128">
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="128" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Medium" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Hardest" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="50K, every 150K" value="4" />
      <dipvalue name="70K, every 200K" value="0" default="yes" />
      <dipvalue name="100K" value="8" />
      <dipvalue name="None" value="12" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="2" value="48" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="4" value="32" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="No" value="128" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Unknown" tag="TJUMP" mask="1">
      <diplocation name="JMPR" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Unknown" tag="TJUMP" mask="2">
      <diplocation name="JMPR" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Unknown" tag="TJUMP" mask="4">
      <diplocation name="JMPR" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Unknown" tag="TJUMP" mask="8">
      <diplocation name="JMPR" number="4" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="8" />
    </dipswitch>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SYSTEM" />
    <port tag=":TJUMP" />
    <port tag=":VBLANK" />
    <driver status="good" emulation="good" savestate="unsupported" />
  </machine>
  <machine name="samesame2" sourcefile="toaplan1.cpp" cloneof="fireshrk" romof="fireshrk">
    <description>Same! Same! Same! (2P set)</description>
    <year>1989</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="o17_09x.8j" size="32768" crc="3472e03e" sha1="a0f12622a1963bfac2d5f357afbfb5d7db2cd8df" region="maincpu" offset="0" />
    <rom name="o17_10x.8l" size="32768" crc="a3ac49b5" sha1="c5adf026b9129b64acee5a079e102377a8488220" region="maincpu" offset="1" />
    <rom name="o17_11ii.7j" merge="o17_11ii.7j" size="131072" crc="6beac378" sha1="041ba98a89a4bac32575858db8a061bdf7804594" region="maincpu" offset="40000" />
    <rom name="o17_12ii.7l" merge="o17_12ii.7l" size="131072" crc="6adb6eb5" sha1="9b6e63aa50d271c2bb0b4cf822fc6f3684f10230" region="maincpu" offset="40001" />
    <rom name="hd647180.017" merge="hd647180.017" size="32768" crc="43523032" sha1="1b94003a00e7bf6bdf1b1b946f42ff5d04629949" region="audiocpu" offset="0" />
    <rom name="o17_05.12j" merge="o17_05.12j" size="131072" crc="565315f8" sha1="6b1c5ef52359483228b329c89c2e1174e3fbf017" region="gfx1" offset="0" />
    <rom name="o17_06.13j" merge="o17_06.13j" size="131072" crc="95262d4c" sha1="16f3aabecb1c87ce7eadf4f0ff61b29a4c017614" region="gfx1" offset="1" />
    <rom name="o17_07.12l" merge="o17_07.12l" size="131072" crc="4c4b735c" sha1="812c3bf46bd7764b2bb812bd2b9eb0331ed257ae" region="gfx1" offset="40000" />
    <rom name="o17_08.13l" merge="o17_08.13l" size="131072" crc="95c6586c" sha1="ff87901f79d80f73ad09664b0c0d892898570616" region="gfx1" offset="40001" />
    <rom name="o17_01.1d" merge="o17_01.1d" size="131072" crc="ea12e491" sha1="02190722b7c5383471e0af9596be7039a5367240" region="gfx2" offset="0" />
    <rom name="o17_02.3d" merge="o17_02.3d" size="131072" crc="32a13a9f" sha1="1446acdfd21cd41f3d97aaf30f498c0c5d890605" region="gfx2" offset="1" />
    <rom name="o17_03.5d" merge="o17_03.5d" size="131072" crc="68723dc9" sha1="4f1b7aa2469c955e03737b611a7d2524f1e4f61e" region="gfx2" offset="40000" />
    <rom name="o17_04.7d" merge="o17_04.7d" size="131072" crc="fe0ecb13" sha1="634a49262b9c092c25f11b14c6757fe94ea9eddc" region="gfx2" offset="40001" />
    <rom name="prom14.25b" merge="prom14.25b" size="32" crc="bc88cced" sha1="5055362710c0f58823c05fb4c0e0eec638b91e3d" region="proms" offset="0" />
    <rom name="prom15.20c" merge="prom15.20c" size="32" crc="a1e17492" sha1="9ddec4c97f2d541f69f3c32c47aaa21fd9699ae2" region="proms" offset="20" />
    <device_ref name="m68000" />
    <device_ref name="hd647180x" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="ym3812" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="10000000" />
    <chip type="cpu" tag="audiocpu" name="Hitachi HD647180X MCU" clock="7000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="YM3812 OPL2" clock="3500000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="57.613169" pixclock="7000000" htotal="450" hbend="0" hbstart="320" vtotal="270" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Unknown" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48" />
      <dipvalue name="3 Coins/1 Credit" value="32" />
      <dipvalue name="2 Coins/1 Credit" value="16" />
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes" />
      <dipvalue name="1 Coin/3 Credits" value="64" />
      <dipvalue name="1 Coin/4 Credits" value="128" />
      <dipvalue name="1 Coin/6 Credits" value="192" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Medium" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Hardest" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="50K, every 150K" value="4" />
      <dipvalue name="70K, every 200K" value="0" default="yes" />
      <dipvalue name="100K" value="8" />
      <dipvalue name="None" value="12" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="2" value="48" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="4" value="32" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="No" value="128" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Show Territory Notice" tag="TJUMP" mask="3">
      <diplocation name="JMPR" number="1" inverted="yes" />
      <diplocation name="JMPR" number="2" inverted="yes" />
      <dipvalue name="No" value="3" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Unknown" tag="TJUMP" mask="4">
      <diplocation name="JMPR" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Unknown" tag="TJUMP" mask="8">
      <diplocation name="JMPR" number="4" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="8" />
    </dipswitch>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SYSTEM" />
    <port tag=":TJUMP" />
    <port tag=":VBLANK" />
    <driver status="good" emulation="good" savestate="unsupported" />
  </machine>
  <machine name="samesamecn" sourcefile="toaplan1.cpp" cloneof="fireshrk" romof="fireshrk">
    <description>Jiao! Jiao! Jiao! (China, 2P set)</description>
    <year>1990</year>
    <manufacturer>Toaplan (Hong Kong Honest Trading license)</manufacturer>
    <rom name="o17-09-h2.8j" size="32768" crc="fc8c2420" sha1="cf8333d3749213f2007467d3a80bd36ff7b4ce92" region="maincpu" offset="0" />
    <rom name="o17_10-h2.8l" size="32768" crc="cc0ffbeb" sha1="1cf85f68b4e368294069053ba8f5710d6c557ede" region="maincpu" offset="1" />
    <rom name="o17-11-2.7j" merge="o17_11ii.7j" size="131072" crc="6beac378" sha1="041ba98a89a4bac32575858db8a061bdf7804594" region="maincpu" offset="40000" />
    <rom name="o17-12-2.7l" merge="o17_12ii.7l" size="131072" crc="6adb6eb5" sha1="9b6e63aa50d271c2bb0b4cf822fc6f3684f10230" region="maincpu" offset="40001" />
    <rom name="hd647180.017" merge="hd647180.017" size="32768" crc="43523032" sha1="1b94003a00e7bf6bdf1b1b946f42ff5d04629949" region="audiocpu" offset="0" />
    <rom name="o17_05.12j" merge="o17_05.12j" size="131072" crc="565315f8" sha1="6b1c5ef52359483228b329c89c2e1174e3fbf017" region="gfx1" offset="0" />
    <rom name="o17_06.13j" merge="o17_06.13j" size="131072" crc="95262d4c" sha1="16f3aabecb1c87ce7eadf4f0ff61b29a4c017614" region="gfx1" offset="1" />
    <rom name="o17_07.12l" merge="o17_07.12l" size="131072" crc="4c4b735c" sha1="812c3bf46bd7764b2bb812bd2b9eb0331ed257ae" region="gfx1" offset="40000" />
    <rom name="o17_08.13l" merge="o17_08.13l" size="131072" crc="95c6586c" sha1="ff87901f79d80f73ad09664b0c0d892898570616" region="gfx1" offset="40001" />
    <rom name="o17_01.1d" merge="o17_01.1d" size="131072" crc="ea12e491" sha1="02190722b7c5383471e0af9596be7039a5367240" region="gfx2" offset="0" />
    <rom name="o17_02.3d" merge="o17_02.3d" size="131072" crc="32a13a9f" sha1="1446acdfd21cd41f3d97aaf30f498c0c5d890605" region="gfx2" offset="1" />
    <rom name="o17_03.5d" merge="o17_03.5d" size="131072" crc="68723dc9" sha1="4f1b7aa2469c955e03737b611a7d2524f1e4f61e" region="gfx2" offset="40000" />
    <rom name="o17_04.7d" merge="o17_04.7d" size="131072" crc="fe0ecb13" sha1="634a49262b9c092c25f11b14c6757fe94ea9eddc" region="gfx2" offset="40001" />
    <rom name="prom14.25b" merge="prom14.25b" size="32" crc="bc88cced" sha1="5055362710c0f58823c05fb4c0e0eec638b91e3d" region="proms" offset="0" />
    <rom name="prom15.20c" merge="prom15.20c" size="32" crc="a1e17492" sha1="9ddec4c97f2d541f69f3c32c47aaa21fd9699ae2" region="proms" offset="20" />
    <device_ref name="m68000" />
    <device_ref name="hd647180x" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="ym3812" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="10000000" />
    <chip type="cpu" tag="audiocpu" name="Hitachi HD647180X MCU" clock="7000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="YM3812 OPL2" clock="3500000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="57.613169" pixclock="7000000" htotal="450" hbend="0" hbstart="320" vtotal="270" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Unknown" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="TJUMP" mask="1" relation="eq" value="1" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="TJUMP" mask="1" relation="eq" value="1" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="TJUMP" mask="1" relation="eq" value="1" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="TJUMP" mask="1" relation="eq" value="1" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="TJUMP" mask="1" relation="eq" value="0" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="TJUMP" mask="1" relation="eq" value="0" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="TJUMP" mask="1" relation="eq" value="0" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="TJUMP" mask="1" relation="eq" value="0" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="TJUMP" mask="1" relation="eq" value="1" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="TJUMP" mask="1" relation="eq" value="1" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="TJUMP" mask="1" relation="eq" value="1" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="TJUMP" mask="1" relation="eq" value="1" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="TJUMP" mask="1" relation="eq" value="0" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="TJUMP" mask="1" relation="eq" value="0" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="TJUMP" mask="1" relation="eq" value="0" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="TJUMP" mask="1" relation="eq" value="0" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Medium" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Hardest" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="50K, every 150K" value="4" />
      <dipvalue name="70K, every 200K" value="0" default="yes" />
      <dipvalue name="100K" value="8" />
      <dipvalue name="None" value="12" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="2" value="48" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="4" value="32" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="No" value="128" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coinage Style" tag="TJUMP" mask="1">
      <diplocation name="JMPR" number="1" inverted="yes" />
      <dipvalue name="Fire Shark" value="1" />
      <dipvalue name="Same! Same! Same!" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Unknown" tag="TJUMP" mask="2">
      <diplocation name="JMPR" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Unknown" tag="TJUMP" mask="4">
      <diplocation name="JMPR" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Unknown" tag="TJUMP" mask="8">
      <diplocation name="JMPR" number="4" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="8" />
    </dipswitch>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SYSTEM" />
    <port tag=":TJUMP" />
    <port tag=":VBLANK" />
    <driver status="good" emulation="good" savestate="unsupported" />
  </machine>
  <machine name="samesamenh" sourcefile="toaplan1.cpp" cloneof="fireshrk" romof="fireshrk">
    <description>Same! Same! Same! (1P set, NEW VER! hack)</description>
    <year>2015</year>
    <manufacturer>hack (trap15)</manufacturer>
    <rom name="o17_09_nv.8j" size="32768" crc="f60af2f9" sha1="ce41efd5ca4f4adc8bf1976f61a8a8d357fb234a" region="maincpu" offset="0" />
    <rom name="o17_10_nv.8l" size="32768" crc="023bcb95" sha1="69a051fb223e6cacaf1cda8bf5430933d24fb8a7" region="maincpu" offset="1" />
    <rom name="o17_11.7j" size="131072" crc="be07d101" sha1="1eda14ba24532b565d6ad57490b73ff312f98b53" region="maincpu" offset="40000" />
    <rom name="o17_12.7l" size="131072" crc="ef698811" sha1="4c729704eba0bf469599c79009327e4fa5dc540b" region="maincpu" offset="40001" />
    <rom name="hd647180.017" merge="hd647180.017" size="32768" crc="43523032" sha1="1b94003a00e7bf6bdf1b1b946f42ff5d04629949" region="audiocpu" offset="0" />
    <rom name="o17_05.12j" merge="o17_05.12j" size="131072" crc="565315f8" sha1="6b1c5ef52359483228b329c89c2e1174e3fbf017" region="gfx1" offset="0" />
    <rom name="o17_06.13j" merge="o17_06.13j" size="131072" crc="95262d4c" sha1="16f3aabecb1c87ce7eadf4f0ff61b29a4c017614" region="gfx1" offset="1" />
    <rom name="o17_07.12l" merge="o17_07.12l" size="131072" crc="4c4b735c" sha1="812c3bf46bd7764b2bb812bd2b9eb0331ed257ae" region="gfx1" offset="40000" />
    <rom name="o17_08.13l" merge="o17_08.13l" size="131072" crc="95c6586c" sha1="ff87901f79d80f73ad09664b0c0d892898570616" region="gfx1" offset="40001" />
    <rom name="o17_01.1d" merge="o17_01.1d" size="131072" crc="ea12e491" sha1="02190722b7c5383471e0af9596be7039a5367240" region="gfx2" offset="0" />
    <rom name="o17_02.3d" merge="o17_02.3d" size="131072" crc="32a13a9f" sha1="1446acdfd21cd41f3d97aaf30f498c0c5d890605" region="gfx2" offset="1" />
    <rom name="o17_03.5d" merge="o17_03.5d" size="131072" crc="68723dc9" sha1="4f1b7aa2469c955e03737b611a7d2524f1e4f61e" region="gfx2" offset="40000" />
    <rom name="o17_04.7d" merge="o17_04.7d" size="131072" crc="fe0ecb13" sha1="634a49262b9c092c25f11b14c6757fe94ea9eddc" region="gfx2" offset="40001" />
    <rom name="prom14.25b" merge="prom14.25b" size="32" crc="bc88cced" sha1="5055362710c0f58823c05fb4c0e0eec638b91e3d" region="proms" offset="0" />
    <rom name="prom15.20c" merge="prom15.20c" size="32" crc="a1e17492" sha1="9ddec4c97f2d541f69f3c32c47aaa21fd9699ae2" region="proms" offset="20" />
    <device_ref name="m68000" />
    <device_ref name="hd647180x" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="ym3812" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="10000000" />
    <chip type="cpu" tag="audiocpu" name="Hitachi HD647180X MCU" clock="7000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="YM3812 OPL2" clock="3500000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="57.613169" pixclock="7000000" htotal="450" hbend="0" hbstart="320" vtotal="270" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Cabinet" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Cocktail" value="0" />
      <dipvalue name="Upright" value="1" default="yes" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSWA" mask="16">
      <diplocation name="SW1" number="5" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="16" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSWA" mask="32">
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="32" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSWA" mask="64">
      <diplocation name="SW1" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSWA" mask="128">
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="128" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Medium" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Hardest" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="50K, every 150K" value="4" />
      <dipvalue name="70K, every 200K" value="0" default="yes" />
      <dipvalue name="100K" value="8" />
      <dipvalue name="None" value="12" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="2" value="48" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="4" value="32" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="No" value="128" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Unknown" tag="TJUMP" mask="1">
      <diplocation name="JMPR" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Unknown" tag="TJUMP" mask="2">
      <diplocation name="JMPR" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Unknown" tag="TJUMP" mask="4">
      <diplocation name="JMPR" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Unknown" tag="TJUMP" mask="8">
      <diplocation name="JMPR" number="4" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="8" />
    </dipswitch>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SYSTEM" />
    <port tag=":TJUMP" />
    <port tag=":VBLANK" />
    <driver status="good" emulation="good" savestate="unsupported" />
  </machine>
  <machine name="shippumd" sourcefile="toaplan2.cpp" cloneof="kingdmgp" romof="kingdmgp">
    <description>Shippu Mahou Daisakusen (Japan)</description>
    <year>1994</year>
    <manufacturer>Raizing / Eighting</manufacturer>
    <rom name="ma02rom1.bin" merge="ma02rom1.bin" size="524288" crc="a678b149" sha1="8c1a631e023dbba0a3fa6cd1b7d10dec1663213a" region="maincpu" offset="0" />
    <rom name="ma02rom0.bin" merge="ma02rom0.bin" size="524288" crc="f226a212" sha1="526acf3d05fdc88054a772fbea3de2af532bf3d2" region="maincpu" offset="1" />
    <rom name="ma02rom2.bin" merge="ma02rom2.bin" size="65536" crc="dde8a57e" sha1="f522a3f17e229c71512464349760a9e27778bf6a" region="audiocpu" offset="0" />
    <rom name="ma02rom3.bin" merge="ma02rom3.bin" size="2097152" crc="0e797142" sha1="a480ccd151e49b886d3175a6deff56e1f2c26c3e" region="gp9001_0" offset="0" />
    <rom name="ma02rom4.bin" merge="ma02rom4.bin" size="2097152" crc="72a6fa53" sha1="ce92e65205b84361cfb90305a61e9541b5c4dc2f" region="gp9001_0" offset="200000" />
    <rom name="ma02rom5.bin" size="32768" crc="116ae559" sha1="4cc2d2a23cc0aefd457111b7990e47184e79204c" region="text" offset="0" />
    <rom name="ma02rom6.bin" merge="ma02rom6.bin" size="524288" crc="199e7cae" sha1="0f5e13cc8ec42c80bb4bbff90aba29cdb15213d4" region="oki1" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3375000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="1000000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Free Play" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="JMPR" mask="14" relation="eq" value="4" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="14" relation="eq" value="4" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="14" relation="ne" value="4" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="JMPR" mask="14" relation="eq" value="4" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="JMPR" mask="14" relation="ne" value="4" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="JMPR" mask="14" relation="ne" value="4" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="JMPR" mask="14" relation="ne" value="4" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="JMPR" mask="14" relation="ne" value="4" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="JMPR" mask="14" relation="ne" value="4" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="JMPR" mask="14" relation="ne" value="4" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="JMPR" mask="14" relation="eq" value="4" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="JMPR" mask="14" relation="eq" value="4" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="JMPR" mask="14" relation="eq" value="4" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="JMPR" mask="14" relation="eq" value="4" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="None" value="12" />
      <dipvalue name="200k only" value="8" />
      <dipvalue name="Every 300k" value="0" default="yes" />
      <dipvalue name="200k and 500k" value="4" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability (Cheat)" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="No" value="128" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":JMPR" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="snowbro2" sourcefile="toaplan2.cpp">
    <description>Snow Bros. 2 - With New Elves / Otenki Paradise (Hanafram)</description>
    <year>1994</year>
    <manufacturer>Hanafram</manufacturer>
    <rom name="pro-4" size="524288" crc="4c7ee341" sha1="ad46c605a38565d0148daac301be4e4b72302fe7" region="maincpu" offset="0" />
    <rom name="rom2-l" size="1048576" crc="e9d366a9" sha1="e87e3966fce3395324b90db6c134b3345104c04b" region="gp9001_0" offset="0" />
    <rom name="rom2-h" size="524288" crc="9aab7a62" sha1="611f6a15fdbac5d3063426a365538c1482e996bf" region="gp9001_0" offset="100000" />
    <rom name="rom3-l" size="1048576" crc="eb06e332" sha1="7cd597bfffc153d178530c0f0903bebd751c9dd1" region="gp9001_0" offset="180000" />
    <rom name="rom3-h" size="524288" crc="df4a952a" sha1="b76af61c8437caca573ff1312832898666a611aa" region="gp9001_0" offset="280000" />
    <rom name="rom4" size="524288" crc="638f341e" sha1="aa3fca25f099339ece1878ea730c5e9f18ec4823" region="oki1" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="screen" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3375000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="2700000" />
    <display tag="screen" type="raster" rotate="0" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="4" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
      <control type="joy" player="3" buttons="2" ways="8" />
      <control type="joy" player="4" buttons="2" ways="8" />
    </input>
    <dipswitch name="Continue Price" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Discount" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="JMPR" mask="7168" relation="eq" value="2048" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="7168" relation="eq" value="2048" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="7168" relation="ne" value="2048" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="JMPR" mask="7168" relation="eq" value="2048" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="JMPR" mask="7168" relation="ne" value="2048" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="JMPR" mask="7168" relation="ne" value="2048" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="JMPR" mask="7168" relation="ne" value="2048" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="JMPR" mask="7168" relation="ne" value="2048" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="JMPR" mask="7168" relation="ne" value="2048" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="JMPR" mask="7168" relation="ne" value="2048" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="JMPR" mask="7168" relation="eq" value="2048" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="JMPR" mask="7168" relation="eq" value="2048" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="JMPR" mask="7168" relation="eq" value="2048" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="JMPR" mask="7168" relation="eq" value="2048" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="None" value="12" />
      <dipvalue name="200k only" value="8" />
      <dipvalue name="100k only" value="0" default="yes" />
      <dipvalue name="100k and every 500k" value="4" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="4" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability (Cheat)" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Maximum Players" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="2" value="128" />
      <dipvalue name="4" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <configuration name="Region" tag="JMPR" mask="7168">
      <confsetting name="Europe" value="2048" default="yes" />
      <confsetting name="USA" value="1024" />
      <confsetting name="Japan" value="0" />
      <confsetting name="Korea" value="3072" />
      <confsetting name="Hong Kong" value="4096" />
      <confsetting name="Taiwan" value="5120" />
      <confsetting name="Southeast Asia" value="6144" />
    </configuration>
    <configuration name="Show All Rights Reserved" tag="JMPR" mask="8192">
      <confsetting name="No" value="0" default="yes" />
      <confsetting name="Yes" value="8192" />
    </configuration>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":IN3" />
    <port tag=":IN4" />
    <port tag=":JMPR" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="snowbro2b" sourcefile="toaplan2.cpp" cloneof="snowbro2" romof="snowbro2">
    <description>Snow Bros. 2 - With New Elves / Otenki Paradise (bootleg, set 1)</description>
    <year>1998</year>
    <manufacturer>bootleg</manufacturer>
    <rom name="sb2-prg1.u39" size="262144" crc="e1fec8a2" sha1="30c1a351070d784da9ba0dca68be8a262dba2045" region="maincpu" offset="0" />
    <rom name="sb2-prg0.u23" size="262144" crc="b473cd57" sha1="331130faa9de01b3ca93845174e8c3684bd269c7" region="maincpu" offset="1" />
    <rom name="sb2-gfx.u177" size="2097152" crc="ebeec910" sha1="e179f393b98135caa8419b68cd979038ab47a413" region="gp9001_0" offset="0" />
    <rom name="sb2-gfx.u175" size="2097152" crc="e349c75b" sha1="7d40d00fc0e15a68c427fe94db410bb7cbe00117" region="gp9001_0" offset="200000" />
    <rom name="sb2-snd-4.u17" merge="rom4" size="524288" crc="638f341e" sha1="aa3fca25f099339ece1878ea730c5e9f18ec4823" region="oki1" offset="0" />
    <rom name="sb2-unk.u100" size="32768" crc="456dd16e" sha1="84779ee64d3ea33ba1ba4dee39b504a81c6811a1" region="user1" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="screen" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3375000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="2700000" />
    <display tag="screen" type="raster" rotate="0" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="4" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
      <control type="joy" player="3" buttons="2" ways="8" />
      <control type="joy" player="4" buttons="2" ways="8" />
    </input>
    <dipswitch name="Continue Price" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Discount" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="JMPR" mask="7168" relation="eq" value="2048" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="7168" relation="eq" value="2048" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="7168" relation="ne" value="2048" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="JMPR" mask="7168" relation="eq" value="2048" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="JMPR" mask="7168" relation="ne" value="2048" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="JMPR" mask="7168" relation="ne" value="2048" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="JMPR" mask="7168" relation="ne" value="2048" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="JMPR" mask="7168" relation="ne" value="2048" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="JMPR" mask="7168" relation="ne" value="2048" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="JMPR" mask="7168" relation="ne" value="2048" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="JMPR" mask="7168" relation="eq" value="2048" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="JMPR" mask="7168" relation="eq" value="2048" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="JMPR" mask="7168" relation="eq" value="2048" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="JMPR" mask="7168" relation="eq" value="2048" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="None" value="12" />
      <dipvalue name="200k only" value="8" />
      <dipvalue name="100k only" value="0" default="yes" />
      <dipvalue name="100k and every 500k" value="4" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="4" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability (Cheat)" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Maximum Players" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="2" value="128" />
      <dipvalue name="4" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <configuration name="Region" tag="JMPR" mask="7168">
      <confsetting name="Europe" value="2048" default="yes" />
      <confsetting name="USA" value="1024" />
      <confsetting name="Japan" value="0" />
      <confsetting name="Korea" value="3072" />
      <confsetting name="Hong Kong" value="4096" />
      <confsetting name="Taiwan" value="5120" />
      <confsetting name="Southeast Asia" value="6144" />
    </configuration>
    <configuration name="Show All Rights Reserved" tag="JMPR" mask="8192">
      <confsetting name="No" value="0" default="yes" />
      <confsetting name="Yes" value="8192" />
    </configuration>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":IN3" />
    <port tag=":IN4" />
    <port tag=":JMPR" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="snowbro2b2" sourcefile="toaplan2.cpp" cloneof="snowbro2" romof="snowbro2">
    <description>Snow Bros. 2 - With New Elves / Otenki Paradise (bootleg, set 2)</description>
    <year>1994</year>
    <manufacturer>bootleg (Q Elec)</manufacturer>
    <rom name="rom10.bin" size="524288" crc="3e96da41" sha1="692211d40f506efb9cb49848521de2da7890e248" region="maincpu" offset="0" />
    <rom name="rom07.bin" size="524288" crc="c54ae0b3" sha1="94099b2da52eb12638799eab0819fe8a13aa3879" region="gp9001_0" offset="0" />
    <rom name="rom05.bin" size="524288" crc="af3c74d1" sha1="e97a688db50dfe41723452a9f652564e89e367ed" region="gp9001_0" offset="1" />
    <rom name="rom08.bin" size="262144" crc="72812088" sha1="1c0d410a7dd8de0bc48b7ff677979ad269966f7d" region="gp9001_0" offset="100000" />
    <rom name="rom06.bin" size="262144" crc="c8f80774" sha1="004752d7dfa08c3beb774f545fe3260d328abff0" region="gp9001_0" offset="100001" />
    <rom name="rom03.bin" size="524288" crc="42fecbd7" sha1="96dc9d5495d7830400ca7475c6613119099e93f2" region="gp9001_0" offset="180000" />
    <rom name="rom01.bin" size="524288" crc="e7134937" sha1="7c12e7c6b08f804613e5ea0db8d622bda01bc036" region="gp9001_0" offset="180001" />
    <rom name="rom04.bin" size="262144" crc="3343b7a7" sha1="10efcb2dfae635f005773655faa573bf51ddc6a3" region="gp9001_0" offset="280000" />
    <rom name="rom02.bin" size="262144" crc="af4d9551" sha1="adcf1641e37b239b1ae4322b5710d49e53c30684" region="gp9001_0" offset="280001" />
    <rom name="rom09.bin" merge="rom4" size="524288" crc="638f341e" sha1="aa3fca25f099339ece1878ea730c5e9f18ec4823" region="oki1" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="screen" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3375000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="2700000" />
    <display tag="screen" type="raster" rotate="0" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="4" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
      <control type="joy" player="3" buttons="2" ways="8" />
      <control type="joy" player="4" buttons="2" ways="8" />
    </input>
    <dipswitch name="Continue Price" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Discount" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="JMPR" mask="7168" relation="eq" value="2048" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="7168" relation="eq" value="2048" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="7168" relation="ne" value="2048" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="JMPR" mask="7168" relation="eq" value="2048" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="JMPR" mask="7168" relation="ne" value="2048" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="JMPR" mask="7168" relation="ne" value="2048" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="JMPR" mask="7168" relation="ne" value="2048" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="JMPR" mask="7168" relation="ne" value="2048" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="JMPR" mask="7168" relation="ne" value="2048" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="JMPR" mask="7168" relation="ne" value="2048" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="JMPR" mask="7168" relation="eq" value="2048" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="JMPR" mask="7168" relation="eq" value="2048" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="JMPR" mask="7168" relation="eq" value="2048" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="JMPR" mask="7168" relation="eq" value="2048" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="None" value="12" />
      <dipvalue name="200k only" value="8" />
      <dipvalue name="100k only" value="0" default="yes" />
      <dipvalue name="100k and every 500k" value="4" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="4" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability (Cheat)" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Maximum Players" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="2" value="128" />
      <dipvalue name="4" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <configuration name="Region" tag="JMPR" mask="7168">
      <confsetting name="Europe" value="2048" default="yes" />
      <confsetting name="USA" value="1024" />
      <confsetting name="Japan" value="0" />
      <confsetting name="Korea" value="3072" />
      <confsetting name="Hong Kong" value="4096" />
      <confsetting name="Taiwan" value="5120" />
      <confsetting name="Southeast Asia" value="6144" />
    </configuration>
    <configuration name="Show All Rights Reserved" tag="JMPR" mask="8192">
      <confsetting name="No" value="0" default="yes" />
      <confsetting name="Yes" value="8192" />
    </configuration>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":IN3" />
    <port tag=":IN4" />
    <port tag=":JMPR" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="snowbro2ny" sourcefile="toaplan2.cpp" cloneof="snowbro2" romof="snowbro2">
    <description>Snow Bros. 2 - With New Elves / Otenki Paradise (Nyanko)</description>
    <year>1994</year>
    <manufacturer>Nyanko</manufacturer>
    <rom name="rom1_c8.u61" size="524288" crc="9e6eb76b" sha1="9e8b356dabedeb4ae9e08d60fbf6ed4a09edc0bd" region="maincpu" offset="0" />
    <rom name="rom2-l_tp-033.u13" merge="rom2-l" size="1048576" crc="e9d366a9" sha1="e87e3966fce3395324b90db6c134b3345104c04b" region="gp9001_0" offset="0" />
    <rom name="rom2-h_c10.u26" merge="rom2-h" size="524288" crc="9aab7a62" sha1="611f6a15fdbac5d3063426a365538c1482e996bf" region="gp9001_0" offset="100000" />
    <rom name="rom3-l_tp-033.u12" merge="rom3-l" size="1048576" crc="eb06e332" sha1="7cd597bfffc153d178530c0f0903bebd751c9dd1" region="gp9001_0" offset="180000" />
    <rom name="rom3-h_c9.u27" size="524288" crc="6de2b059" sha1="695e789849c34de5d83e40b0e834b2106fcd78db" region="gp9001_0" offset="280000" />
    <rom name="rom4-tp-033.u33" merge="rom4" size="524288" crc="638f341e" sha1="aa3fca25f099339ece1878ea730c5e9f18ec4823" region="oki1" offset="0" />
    <rom name="13_gal16v8-25lnc.u91" size="279" status="nodump" region="plds" offset="0" />
    <rom name="14_gal16v8-25lnc.u92" size="279" status="nodump" region="plds" offset="117" />
    <rom name="15_gal16v8-25lnc.u93" size="279" status="nodump" region="plds" offset="22e" />
    <device_ref name="m68000" />
    <device_ref name="screen" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3375000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="2700000" />
    <display tag="screen" type="raster" rotate="0" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="4" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
      <control type="joy" player="3" buttons="2" ways="8" />
      <control type="joy" player="4" buttons="2" ways="8" />
    </input>
    <dipswitch name="Continue Price" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Discount" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="JMPR" mask="7168" relation="eq" value="2048" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="7168" relation="eq" value="2048" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="7168" relation="ne" value="2048" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="JMPR" mask="7168" relation="eq" value="2048" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="JMPR" mask="7168" relation="ne" value="2048" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="JMPR" mask="7168" relation="ne" value="2048" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="JMPR" mask="7168" relation="ne" value="2048" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="JMPR" mask="7168" relation="ne" value="2048" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="JMPR" mask="7168" relation="ne" value="2048" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="JMPR" mask="7168" relation="ne" value="2048" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="JMPR" mask="7168" relation="eq" value="2048" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="JMPR" mask="7168" relation="eq" value="2048" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="JMPR" mask="7168" relation="eq" value="2048" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="JMPR" mask="7168" relation="eq" value="2048" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="None" value="12" />
      <dipvalue name="200k only" value="8" />
      <dipvalue name="100k only" value="0" default="yes" />
      <dipvalue name="100k and every 500k" value="4" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="4" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability (Cheat)" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Maximum Players" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="2" value="128" />
      <dipvalue name="4" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <configuration name="Region" tag="JMPR" mask="7168">
      <confsetting name="Europe" value="2048" default="yes" />
      <confsetting name="USA" value="1024" />
      <confsetting name="Japan" value="0" />
      <confsetting name="Korea" value="3072" />
      <confsetting name="Hong Kong" value="4096" />
      <confsetting name="Taiwan" value="5120" />
      <confsetting name="Southeast Asia" value="6144" />
    </configuration>
    <configuration name="Show All Rights Reserved" tag="JMPR" mask="8192">
      <confsetting name="No" value="0" default="yes" />
      <confsetting name="Yes" value="8192" />
    </configuration>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":IN3" />
    <port tag=":IN4" />
    <port tag=":JMPR" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="sstriker" sourcefile="toaplan2.cpp">
    <description>Sorcer Striker</description>
    <year>1993</year>
    <manufacturer>Raizing</manufacturer>
    <rom name="ra-ma_01_01.u65" size="524288" crc="708fd51d" sha1="167186d4cf13af37ec0fa6a59c738c54dbbf3c7c" region="maincpu" offset="0" />
    <rom name="ra-ma-01_02.u66" size="65536" crc="eabfa46d" sha1="402c99ebf88f9025f74f0a28ced22b7882a65eb3" region="audiocpu" offset="0" />
    <rom name="ra-ma01-rom2.u2" size="1048576" crc="54e2bd95" sha1="341359dd46152615675bb90e8a184216c8feebff" region="gp9001_0" offset="0" />
    <rom name="ra-ma01-rom3.u1" size="1048576" crc="21cd378f" sha1="e1695bccec949d18b1c03e9c42dca384554b0d7c" region="gp9001_0" offset="100000" />
    <rom name="ra-ma-01_05.u81" size="32768" crc="88b58841" sha1="1d16b538c11a291bd1f46a510bfbd6259b45a0b5" region="text" offset="0" />
    <rom name="ra-ma01-rom1.u57" size="262144" crc="6edb2ab8" sha1="e3032e8eda2686f30df4b7a088c5a4d4d45782ed" region="oki1" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3375000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="1000000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Free Play" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="JMPR" mask="14" relation="eq" value="4" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="14" relation="eq" value="4" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="14" relation="ne" value="4" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="JMPR" mask="14" relation="eq" value="4" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="JMPR" mask="14" relation="ne" value="4" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="JMPR" mask="14" relation="ne" value="4" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="JMPR" mask="14" relation="ne" value="4" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="JMPR" mask="14" relation="ne" value="4" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="JMPR" mask="14" relation="ne" value="4" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="JMPR" mask="14" relation="ne" value="4" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="JMPR" mask="14" relation="eq" value="4" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="JMPR" mask="14" relation="eq" value="4" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="JMPR" mask="14" relation="eq" value="4" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="JMPR" mask="14" relation="eq" value="4" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="None" value="12" />
      <dipvalue name="200k only" value="8" />
      <dipvalue name="Every 300k" value="0" default="yes" />
      <dipvalue name="200k and 500k" value="4" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability (Cheat)" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="No" value="128" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <configuration name="FBI Logo" tag="JMPR" mask="1">
      <confsetting name="Off" value="1" default="yes" />
      <confsetting name="On" value="0" />
    </configuration>
    <configuration name="Region" tag="JMPR" mask="14">
      <confsetting name="Europe" value="4" default="yes" />
      <confsetting name="USA" value="2" />
      <confsetting name="Japan" value="0" />
      <confsetting name="Southeast Asia" value="6" />
      <confsetting name="China" value="8" />
      <confsetting name="Korea" value="10" />
      <confsetting name="Hong Kong" value="12" />
      <confsetting name="Taiwan" value="14" />
    </configuration>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":JMPR" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="sstrikerk" sourcefile="toaplan2.cpp" cloneof="sstriker" romof="sstriker">
    <description>Sorcer Striker (Korea)</description>
    <year>1993</year>
    <manufacturer>Raizing (Unite Trading license)</manufacturer>
    <rom name="ra-ma-01_01.u65" size="524288" crc="92259f84" sha1="127e62e407d95efd360bfe2cac9577f326abf6ef" region="maincpu" offset="0" />
    <rom name="ra-ma-01_02.u66" merge="ra-ma-01_02.u66" size="65536" crc="eabfa46d" sha1="402c99ebf88f9025f74f0a28ced22b7882a65eb3" region="audiocpu" offset="0" />
    <rom name="ra-ma01-rom2.u2" merge="ra-ma01-rom2.u2" size="1048576" crc="54e2bd95" sha1="341359dd46152615675bb90e8a184216c8feebff" region="gp9001_0" offset="0" />
    <rom name="ra-ma01-rom3.u1" merge="ra-ma01-rom3.u1" size="1048576" crc="21cd378f" sha1="e1695bccec949d18b1c03e9c42dca384554b0d7c" region="gp9001_0" offset="100000" />
    <rom name="ra-ma-01_05.u81" merge="ra-ma-01_05.u81" size="32768" crc="88b58841" sha1="1d16b538c11a291bd1f46a510bfbd6259b45a0b5" region="text" offset="0" />
    <rom name="ra-ma01-rom1.u57" merge="ra-ma01-rom1.u57" size="262144" crc="6edb2ab8" sha1="e3032e8eda2686f30df4b7a088c5a4d4d45782ed" region="oki1" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="4000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3375000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="1000000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Free Play" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="JMPR" mask="14" relation="eq" value="4" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="14" relation="eq" value="4" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="14" relation="ne" value="4" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="JMPR" mask="14" relation="eq" value="4" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="JMPR" mask="14" relation="ne" value="4" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="JMPR" mask="14" relation="ne" value="4" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="JMPR" mask="14" relation="ne" value="4" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="JMPR" mask="14" relation="ne" value="4" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="JMPR" mask="14" relation="ne" value="4" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="JMPR" mask="14" relation="ne" value="4" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="JMPR" mask="14" relation="eq" value="4" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="JMPR" mask="14" relation="eq" value="4" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="JMPR" mask="14" relation="eq" value="4" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="JMPR" mask="14" relation="eq" value="4" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="None" value="12" />
      <dipvalue name="200k only" value="8" />
      <dipvalue name="Every 300k" value="0" default="yes" />
      <dipvalue name="200k and 500k" value="4" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability (Cheat)" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="No" value="128" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <configuration name="FBI Logo" tag="JMPR" mask="1">
      <confsetting name="Off" value="1" default="yes" />
      <confsetting name="On" value="0" />
    </configuration>
    <configuration name="Region" tag="JMPR" mask="14">
      <confsetting name="Europe" value="4" />
      <confsetting name="USA" value="2" />
      <confsetting name="Japan" value="0" />
      <confsetting name="Southeast Asia" value="6" />
      <confsetting name="China" value="8" />
      <confsetting name="Korea (Unite Trading)" value="10" default="yes" />
      <confsetting name="Hong Kong" value="12" />
      <confsetting name="Taiwan" value="14" />
    </configuration>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":JMPR" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="tekipaki" sourcefile="toaplan2.cpp">
    <description>Teki Paki</description>
    <year>1991</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="tp020-1.bin" size="65536" crc="d8420bd5" sha1="30c1ad9e053cd7e79adb42aa428ebee28e144755" region="maincpu" offset="0" />
    <rom name="tp020-2.bin" size="65536" crc="7222de8e" sha1="8352ae23efc24a2e20cc24b6d37cb8fc6b1a730c" region="maincpu" offset="1" />
    <rom name="hd647180.020" size="32768" crc="d5157c12" sha1="b2c6c087bb539456a9e562d0b40f05dde26cacd3" region="audiocpu" offset="0" />
    <rom name="tp020-4.bin" size="524288" crc="3ebbe41e" sha1="cea196c5f83e1a23d5b538a0db9bbbffa7af5118" region="gp9001_0" offset="0" />
    <rom name="tp020-3.bin" size="524288" crc="2d5e2201" sha1="5846c844eedd48305c1c67dc645b6e070b3f5b98" region="gp9001_0" offset="80000" />
    <device_ref name="m68000" />
    <device_ref name="hd647180x" />
    <device_ref name="screen" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ym3812" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="10000000" />
    <chip type="cpu" tag="audiocpu" name="Hitachi HD647180X MCU" clock="10000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="YM3812 OPL2" clock="3375000" />
    <display tag="screen" type="raster" rotate="0" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Unused" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="JMPR" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="JMPR" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="JMPR" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="JMPR" mask="15" relation="ne" value="2" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="JMPR" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="JMPR" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="JMPR" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="JMPR" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="JMPR" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="JMPR" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="JMPR" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="JMPR" mask="15" relation="eq" value="2" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWB" mask="4">
      <diplocation name="SW2" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWB" mask="8">
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="8" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWB" mask="16">
      <diplocation name="SW2" number="5" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="16" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWB" mask="32">
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="32" />
    </dipswitch>
    <dipswitch name="Stop Mode (Cheat)" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="128" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <configuration name="Region" tag="JMPR" mask="15">
      <conflocation name="JP" number="4" inverted="yes" />
      <conflocation name="JP" number="3" inverted="yes" />
      <conflocation name="JP" number="2" inverted="yes" />
      <conflocation name="JP" number="1" inverted="yes" />
      <confsetting name="Europe" value="2" default="yes" />
      <confsetting name="USA" value="1" />
      <confsetting name="Japan" value="0" />
      <confsetting name="Hong Kong" value="3" />
      <confsetting name="Korea" value="4" />
      <confsetting name="Taiwan" value="5" />
      <confsetting name="Taiwan (Spacy Co., Ltd." value="6" />
      <confsetting name="USA (Romstar, Inc.)" value="7" />
      <confsetting name="Hong Kong (Honest Trading Co.)" value="8" />
      <confsetting name="Japan (Distributed by Tecmo)" value="15" />
    </configuration>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":JMPR" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="tekipakit" sourcefile="toaplan2.cpp" cloneof="tekipaki" romof="tekipaki">
    <description>Teki Paki (location test)</description>
    <year>1991</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="e.e5" size="65536" crc="89affc73" sha1="3930bf0c2528de28dcb0cf2cd537adb62a2172e3" region="maincpu" offset="0" />
    <rom name="o.e6" size="65536" crc="a2244558" sha1="5291cfbea4d4d1c45d6d4bd21b3c466459a0fa17" region="maincpu" offset="1" />
    <rom name="hd647180.020" merge="hd647180.020" size="32768" crc="d5157c12" sha1="b2c6c087bb539456a9e562d0b40f05dde26cacd3" region="audiocpu" offset="0" />
    <rom name="0-1_4.4_cb45.a16" size="524288" crc="35e14729" sha1="8c929604953b78c6e72744a38e06a988510193a5" region="gp9001_0" offset="0" />
    <rom name="3-4_4.4_547d.a15" size="524288" crc="41975fcc" sha1="f850d5a9638d41bb69f204a9cd54e2fd693b57ef" region="gp9001_0" offset="80000" />
    <device_ref name="m68000" />
    <device_ref name="hd647180x" />
    <device_ref name="screen" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ym3812" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="10000000" />
    <chip type="cpu" tag="audiocpu" name="Hitachi HD647180X MCU" clock="10000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="YM3812 OPL2" clock="3375000" />
    <display tag="screen" type="raster" rotate="0" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Unused" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="JMPR" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="JMPR" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="JMPR" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="JMPR" mask="15" relation="ne" value="2" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="JMPR" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="JMPR" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="JMPR" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="JMPR" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="JMPR" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="JMPR" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="JMPR" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="JMPR" mask="15" relation="eq" value="2" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWB" mask="4">
      <diplocation name="SW2" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWB" mask="8">
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="8" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWB" mask="16">
      <diplocation name="SW2" number="5" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="16" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWB" mask="32">
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="32" />
    </dipswitch>
    <dipswitch name="Stop Mode (Cheat)" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="128" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <configuration name="Region" tag="JMPR" mask="15">
      <conflocation name="JP" number="4" inverted="yes" />
      <conflocation name="JP" number="3" inverted="yes" />
      <conflocation name="JP" number="2" inverted="yes" />
      <conflocation name="JP" number="1" inverted="yes" />
      <confsetting name="Europe" value="2" default="yes" />
      <confsetting name="USA" value="1" />
      <confsetting name="Japan" value="0" />
      <confsetting name="Hong Kong" value="3" />
      <confsetting name="Korea" value="4" />
      <confsetting name="Taiwan" value="5" />
      <confsetting name="Taiwan (Spacy Co., Ltd." value="6" />
      <confsetting name="USA (Romstar, Inc.)" value="7" />
      <confsetting name="Hong Kong (Honest Trading Co.)" value="8" />
      <confsetting name="Japan (Distributed by Tecmo)" value="15" />
    </configuration>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":JMPR" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="truxton" sourcefile="toaplan1.cpp">
    <description>Truxton / Tatsujin</description>
    <year>1988</year>
    <manufacturer>Toaplan / Taito Corporation</manufacturer>
    <rom name="b65_11.bin" size="131072" crc="1a62379a" sha1="b9470d4b70c38f2523b22636874d742abe4099eb" region="maincpu" offset="0" />
    <rom name="b65_10.bin" size="131072" crc="aff5195d" sha1="a7f379dc35e3acf9e7a8ae8a47a9b5b4193f93a1" region="maincpu" offset="1" />
    <rom name="b65_09.bin" size="16384" crc="1bdd4ddc" sha1="6bf7e3a7ca42f79082503ef471f30f271e2f0f99" region="audiocpu" offset="0" />
    <rom name="b65_08.bin" size="131072" crc="d2315b37" sha1="eb42a884df319728c830c067c2423043ed4536ee" region="gfx1" offset="0" />
    <rom name="b65_07.bin" size="131072" crc="fb83252a" sha1="48a38584d223f56286137f7acdfaec86ee6588e7" region="gfx1" offset="1" />
    <rom name="b65_06.bin" size="131072" crc="36cedcbe" sha1="f79d4b1e98b3c9091ae907fb671ad201d3698b42" region="gfx1" offset="40000" />
    <rom name="b65_05.bin" size="131072" crc="81cd95f1" sha1="526a437fbe033ac21054ee5c3bf1ba2fed354c7a" region="gfx1" offset="40001" />
    <rom name="b65_04.bin" size="131072" crc="8c6ff461" sha1="5199e31f4eb23bad01f7d1079f3618fe39d8a32e" region="gfx2" offset="0" />
    <rom name="b65_03.bin" size="131072" crc="58b1350b" sha1="7eb2fe329579a6f651d3c1aed9155ac6ffefbc4b" region="gfx2" offset="1" />
    <rom name="b65_02.bin" size="131072" crc="1dd55161" sha1="c537456ac56801dea0ac48fb1389228530d00a61" region="gfx2" offset="40000" />
    <rom name="b65_01.bin" size="131072" crc="e974937f" sha1="ab282472c04ce6d9ed368956c427403275bc9080" region="gfx2" offset="40001" />
    <rom name="b65_12.bpr" size="32" crc="bc88cced" sha1="5055362710c0f58823c05fb4c0e0eec638b91e3d" region="proms" offset="0" />
    <rom name="b65_13.bpr" size="32" crc="a1e17492" sha1="9ddec4c97f2d541f69f3c32c47aaa21fd9699ae2" region="proms" offset="20" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="ym3812" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="10000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="3500000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="YM3812 OPL2" clock="3500000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="57.613169" pixclock="7000000" htotal="450" hbend="0" hbstart="320" vtotal="270" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Cabinet" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Upright" value="1" default="yes" />
      <dipvalue name="Cocktail" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="TJUMP" mask="3" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="TJUMP" mask="3" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="TJUMP" mask="3" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="TJUMP" mask="3" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="TJUMP" mask="3" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="TJUMP" mask="3" relation="ne" value="2" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="TJUMP" mask="3" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="TJUMP" mask="3" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="TJUMP" mask="3" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="TJUMP" mask="3" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="TJUMP" mask="3" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="TJUMP" mask="3" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="TJUMP" mask="3" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="TJUMP" mask="3" relation="eq" value="2" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="50k 200k 150k+" value="4" />
      <dipvalue name="70k 270k 200k+" value="0" default="yes" />
      <dipvalue name="100k Only" value="8" />
      <dipvalue name="None" value="12" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="2" value="48" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="4" value="32" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Dip Switch Display" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="No" value="128" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYSTEM" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Region" tag="TJUMP" mask="7">
      <diplocation name="JMPR" number="1" inverted="yes" />
      <diplocation name="JMPR" number="2" inverted="yes" />
      <diplocation name="JMPR" number="3" inverted="yes" />
      <dipvalue name="Europe" value="2" default="yes" />
      <dipvalue name="Europe" value="3" />
      <dipvalue name="Europe" value="6" />
      <dipvalue name="Europe" value="7" />
      <dipvalue name="USA" value="5" />
      <dipvalue name="USA" value="4" />
      <dipvalue name="USA (Romstar license)" value="1" />
      <dipvalue name="Japan" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="TJUMP" mask="8">
      <diplocation name="JMPR" number="4" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="8" />
    </dipswitch>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SYSTEM" />
    <port tag=":TJUMP" />
    <port tag=":VBLANK" />
    <driver status="good" emulation="good" savestate="unsupported" />
  </machine>
  <machine name="truxton2" sourcefile="toaplan2.cpp">
    <description>Truxton II / Tatsujin Oh</description>
    <year>1992</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="tp024_1.bin" size="524288" crc="f5cfe6ee" sha1="30979888a4cd6500244117748f28386a7e20a169" region="maincpu" offset="0" />
    <rom name="tp024_4.bin" size="1048576" crc="805c449e" sha1="fdf985344145bd320b88b9b0c25e73066c9b2ada" region="gp9001_0" offset="0" />
    <rom name="tp024_3.bin" size="1048576" crc="47587164" sha1="bac493e2d5507286b984957b289c929335d27eaa" region="gp9001_0" offset="100000" />
    <rom name="tp024_2.bin" size="524288" crc="f2f6cae4" sha1="bb4e8c36531bed97ced4696ca12fd40ede2531aa" region="oki1" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="ym2151" />
    <device_ref name="okim6295" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="16000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3375000" />
    <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="4000000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="3" ways="8" />
      <control type="joy" player="2" buttons="3" ways="8" />
    </input>
    <dipswitch name="Rapid Fire" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="1" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="JMPR" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="JMPR" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="JMPR" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="JMPR" mask="15" relation="ne" value="2" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="JMPR" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="JMPR" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="JMPR" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="JMPR" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="JMPR" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="JMPR" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="JMPR" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="JMPR" mask="15" relation="eq" value="2" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="200k only" value="12" />
      <dipvalue name="100k only" value="8" />
      <dipvalue name="100k and 250k" value="4" />
      <dipvalue name="70k and 200k" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="2" value="48" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="4" value="32" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability (Cheat)" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="No" value="128" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <configuration name="Region" tag="JMPR" mask="15">
      <confsetting name="Europe" value="2" default="yes" />
      <confsetting name="USA" value="1" />
      <confsetting name="Japan" value="0" />
      <confsetting name="Hong Kong" value="3" />
      <confsetting name="Korea" value="4" />
      <confsetting name="Taiwan" value="5" />
      <confsetting name="Southeast Asia (Charterfield)" value="6" />
      <confsetting name="USA (Romstar, Inc.)" value="7" />
      <confsetting name="Hong Kong (Honest Trading Co.)" value="8" />
      <confsetting name="Korea (JC Trading Corp.)" value="9" />
      <confsetting name="USA (Fabtek)" value="10" />
      <confsetting name="Japan (Taito Corp.)" value="15" />
    </configuration>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":JMPR" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="vfive" sourcefile="toaplan2.cpp" cloneof="grindstm" romof="grindstm">
    <description>V-Five (Japan)</description>
    <year>1993</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="tp027_01.bin" size="524288" crc="731d50f4" sha1="794255d0a809cda9170f5bac473df9d7f0efdac8" region="maincpu" offset="0" />
    <rom name="tp027_02.bin" merge="tp027_02.bin" size="1048576" crc="877b45e8" sha1="b3ed8d8dbbe51a1919afc55d619d2b6771971493" region="gp9001_0" offset="0" />
    <rom name="tp027_03.bin" merge="tp027_03.bin" size="1048576" crc="b1fc6362" sha1="5e97e3cce31be57689d394a50178cda4d80cce5f" region="gp9001_0" offset="100000" />
    <device_ref name="m68000" />
    <device_ref name="v25" />
    <device_ref name="screen" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="ym2151" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="10000000" />
    <chip type="cpu" tag="audiocpu" name="NEC V25" clock="10000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="Yamaha YM2151 OPM" clock="3375000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Cabinet" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Upright" value="0" default="yes" />
      <dipvalue name="Cocktail" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="32" />
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48" />
      <dipvalue name="1 Coin/2 Credits" value="16" />
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128" />
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="192" />
      <dipvalue name="1 Coin/2 Credits" value="64" />
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="None" value="12" />
      <dipvalue name="200k only" value="8" />
      <dipvalue name="300k and 800k" value="0" default="yes" />
      <dipvalue name="300k and every 800k" value="4" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability (Cheat)" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="No" value="128" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <configuration name="Copyright" tag="JMPR" mask="48">
      <confsetting name="All Rights Reserved" value="0" default="yes" />
      <confsetting name="Licensed to Taito Corp." value="48" />
    </configuration>
    <configuration name="Unused" tag="JMPR" mask="64">
      <confsetting name="Off" value="0" default="yes" />
      <confsetting name="On" value="64" />
    </configuration>
    <configuration name="Unknown" tag="JMPR" mask="128">
      <confsetting name="Off" value="0" default="yes" />
      <confsetting name="On" value="128" />
    </configuration>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":JMPR" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="vimana" sourcefile="toaplan1.cpp">
    <description>Vimana (World, set 1)</description>
    <year>1991</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="tp019-7a.bin" size="131072" crc="5a4bf73e" sha1="9a43d822bc24b59278f294d0b3275595de997d16" region="maincpu" offset="0" />
    <rom name="tp019-8a.bin" size="131072" crc="03ba27e8" sha1="edb5fe741d2a6a7fe5cde9a82317ea1e9447cf73" region="maincpu" offset="1" />
    <rom name="hd647180.019" size="32768" crc="41a97ebe" sha1="9b377086e4d9b8de6e3c8c7d2dd099b80ab88934" region="audiocpu" offset="0" />
    <rom name="vim6.bin" size="131072" crc="2886878d" sha1="f44933d87bbcd3bd58f46e0f0f89b05c409b713b" region="gfx1" offset="0" />
    <rom name="vim5.bin" size="131072" crc="61a63d7a" sha1="5cdebc03110252cc43d31b6f87f9a23556892977" region="gfx1" offset="1" />
    <rom name="vim4.bin" size="131072" crc="b0515768" sha1="9907b52b4d30ce5324270a12c40250068adafca8" region="gfx1" offset="40000" />
    <rom name="vim3.bin" size="131072" crc="0b539131" sha1="07f3e3b9b28c8218e36668c24d16dbb6e9a66889" region="gfx1" offset="40001" />
    <rom name="vim1.bin" size="524288" crc="cdde26cd" sha1="27893af4692ec7bcbaac9e790c0707c98df84e62" region="gfx2" offset="0" />
    <rom name="vim2.bin" size="524288" crc="1dbfc118" sha1="4fd039a3172f73ad910349b2d360e8ae77ccddb2" region="gfx2" offset="80000" />
    <rom name="tp019-09.bpr" size="32" crc="bc88cced" sha1="5055362710c0f58823c05fb4c0e0eec638b91e3d" region="proms" offset="0" />
    <rom name="tp019-10.bpr" size="32" crc="a1e17492" sha1="9ddec4c97f2d541f69f3c32c47aaa21fd9699ae2" region="proms" offset="20" />
    <device_ref name="m68000" />
    <device_ref name="hd647180x" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="ym3812" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="10000000" />
    <chip type="cpu" tag="audiocpu" name="Hitachi HD647180X MCU" clock="7000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="YM3812 OPL2" clock="3500000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="57.613169" pixclock="7000000" htotal="450" hbend="0" hbstart="320" vtotal="270" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Unused" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="70k 270k 200k+" value="0" default="yes" />
      <dipvalue name="100k 350k 250k+" value="4" />
      <dipvalue name="100k Only" value="8" />
      <dipvalue name="200k Only" value="12" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="2" value="48" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="4" value="32" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="No" value="128" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYSTEM" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Region" tag="TJUMP" mask="15">
      <diplocation name="JMPR" number="1" inverted="yes" />
      <diplocation name="JMPR" number="2" inverted="yes" />
      <diplocation name="JMPR" number="3" inverted="yes" />
      <diplocation name="JMPR" number="4" inverted="yes" />
      <dipvalue name="Europe" value="2" default="yes" />
      <dipvalue name="USA" value="1" />
      <dipvalue name="USA (Romstar license)" value="7" />
      <dipvalue name="Japan (distributed by Tecmo)" value="0" />
      <dipvalue name="Japan (distributed by Tecmo)" value="15" />
      <dipvalue name="Korea" value="4" />
      <dipvalue name="Hong Kong" value="3" />
      <dipvalue name="Hong Kong (Honest Trading license)" value="8" />
      <dipvalue name="Taiwan" value="5" />
      <dipvalue name="Taiwan (Spacy license)" value="6" />
      <dipvalue name="???" value="9" />
      <dipvalue name="???" value="10" />
      <dipvalue name="???" value="11" />
      <dipvalue name="???" value="12" />
      <dipvalue name="???" value="13" />
      <dipvalue name="???" value="14" />
    </dipswitch>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SYSTEM" />
    <port tag=":TJUMP" />
    <port tag=":VBLANK" />
    <driver status="good" emulation="good" savestate="unsupported" />
  </machine>
  <machine name="vimanaj" sourcefile="toaplan1.cpp" cloneof="vimana" romof="vimana">
    <description>Vimana (Japan)</description>
    <year>1991</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="vim07.bin" size="131072" crc="1efaea84" sha1="f9c5d2365d8948fa66dbe61d355919db15843a28" region="maincpu" offset="0" />
    <rom name="vim08.bin" size="131072" crc="e45b7def" sha1="6b92a91d64581954da8ecdbeb5fed79bcc9c5217" region="maincpu" offset="1" />
    <rom name="hd647180.019" merge="hd647180.019" size="32768" crc="41a97ebe" sha1="9b377086e4d9b8de6e3c8c7d2dd099b80ab88934" region="audiocpu" offset="0" />
    <rom name="vim6.bin" merge="vim6.bin" size="131072" crc="2886878d" sha1="f44933d87bbcd3bd58f46e0f0f89b05c409b713b" region="gfx1" offset="0" />
    <rom name="vim5.bin" merge="vim5.bin" size="131072" crc="61a63d7a" sha1="5cdebc03110252cc43d31b6f87f9a23556892977" region="gfx1" offset="1" />
    <rom name="vim4.bin" merge="vim4.bin" size="131072" crc="b0515768" sha1="9907b52b4d30ce5324270a12c40250068adafca8" region="gfx1" offset="40000" />
    <rom name="vim3.bin" merge="vim3.bin" size="131072" crc="0b539131" sha1="07f3e3b9b28c8218e36668c24d16dbb6e9a66889" region="gfx1" offset="40001" />
    <rom name="vim1.bin" merge="vim1.bin" size="524288" crc="cdde26cd" sha1="27893af4692ec7bcbaac9e790c0707c98df84e62" region="gfx2" offset="0" />
    <rom name="vim2.bin" merge="vim2.bin" size="524288" crc="1dbfc118" sha1="4fd039a3172f73ad910349b2d360e8ae77ccddb2" region="gfx2" offset="80000" />
    <rom name="tp019-09.bpr" merge="tp019-09.bpr" size="32" crc="bc88cced" sha1="5055362710c0f58823c05fb4c0e0eec638b91e3d" region="proms" offset="0" />
    <rom name="tp019-10.bpr" merge="tp019-10.bpr" size="32" crc="a1e17492" sha1="9ddec4c97f2d541f69f3c32c47aaa21fd9699ae2" region="proms" offset="20" />
    <device_ref name="m68000" />
    <device_ref name="hd647180x" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="ym3812" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="10000000" />
    <chip type="cpu" tag="audiocpu" name="Hitachi HD647180X MCU" clock="7000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="YM3812 OPL2" clock="3500000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="57.613169" pixclock="7000000" htotal="450" hbend="0" hbstart="320" vtotal="270" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Unused" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="70k 270k 200k+" value="0" default="yes" />
      <dipvalue name="100k 350k 250k+" value="4" />
      <dipvalue name="100k Only" value="8" />
      <dipvalue name="200k Only" value="12" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="2" value="48" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="4" value="32" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="No" value="128" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYSTEM" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Region" tag="TJUMP" mask="15">
      <diplocation name="JMPR" number="1" inverted="yes" />
      <diplocation name="JMPR" number="2" inverted="yes" />
      <diplocation name="JMPR" number="3" inverted="yes" />
      <diplocation name="JMPR" number="4" inverted="yes" />
      <dipvalue name="Europe" value="2" />
      <dipvalue name="USA" value="1" />
      <dipvalue name="USA (Romstar license)" value="7" />
      <dipvalue name="Japan (distributed by Tecmo)" value="0" default="yes" />
      <dipvalue name="Japan (distributed by Tecmo)" value="15" />
      <dipvalue name="Korea" value="4" />
      <dipvalue name="Hong Kong" value="3" />
      <dipvalue name="Hong Kong (Honest Trading license)" value="8" />
      <dipvalue name="Taiwan" value="5" />
      <dipvalue name="Taiwan (Spacy license)" value="6" />
      <dipvalue name="???" value="9" />
      <dipvalue name="???" value="10" />
      <dipvalue name="???" value="11" />
      <dipvalue name="???" value="12" />
      <dipvalue name="???" value="13" />
      <dipvalue name="???" value="14" />
    </dipswitch>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SYSTEM" />
    <port tag=":TJUMP" />
    <port tag=":VBLANK" />
    <driver status="good" emulation="good" savestate="unsupported" />
  </machine>
  <machine name="vimanan" sourcefile="toaplan1.cpp" cloneof="vimana" romof="vimana">
    <description>Vimana (World, set 2)</description>
    <year>1991</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="tp019-07.rom" size="131072" crc="78888ff2" sha1="7e1d248f806d585952eb35ceec6a7e63ae4e22f9" region="maincpu" offset="0" />
    <rom name="tp019-08.rom" size="131072" crc="6cd2dc3c" sha1="029d974eb938c5e2fbe7575f0dda342b4b12b731" region="maincpu" offset="1" />
    <rom name="hd647180.019" merge="hd647180.019" size="32768" crc="41a97ebe" sha1="9b377086e4d9b8de6e3c8c7d2dd099b80ab88934" region="audiocpu" offset="0" />
    <rom name="vim6.bin" merge="vim6.bin" size="131072" crc="2886878d" sha1="f44933d87bbcd3bd58f46e0f0f89b05c409b713b" region="gfx1" offset="0" />
    <rom name="vim5.bin" merge="vim5.bin" size="131072" crc="61a63d7a" sha1="5cdebc03110252cc43d31b6f87f9a23556892977" region="gfx1" offset="1" />
    <rom name="vim4.bin" merge="vim4.bin" size="131072" crc="b0515768" sha1="9907b52b4d30ce5324270a12c40250068adafca8" region="gfx1" offset="40000" />
    <rom name="vim3.bin" merge="vim3.bin" size="131072" crc="0b539131" sha1="07f3e3b9b28c8218e36668c24d16dbb6e9a66889" region="gfx1" offset="40001" />
    <rom name="vim1.bin" merge="vim1.bin" size="524288" crc="cdde26cd" sha1="27893af4692ec7bcbaac9e790c0707c98df84e62" region="gfx2" offset="0" />
    <rom name="vim2.bin" merge="vim2.bin" size="524288" crc="1dbfc118" sha1="4fd039a3172f73ad910349b2d360e8ae77ccddb2" region="gfx2" offset="80000" />
    <rom name="tp019-09.bpr" merge="tp019-09.bpr" size="32" crc="bc88cced" sha1="5055362710c0f58823c05fb4c0e0eec638b91e3d" region="proms" offset="0" />
    <rom name="tp019-10.bpr" merge="tp019-10.bpr" size="32" crc="a1e17492" sha1="9ddec4c97f2d541f69f3c32c47aaa21fd9699ae2" region="proms" offset="20" />
    <device_ref name="m68000" />
    <device_ref name="hd647180x" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="ym3812" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="10000000" />
    <chip type="cpu" tag="audiocpu" name="Hitachi HD647180X MCU" clock="7000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="YM3812 OPL2" clock="3500000" />
    <display tag="screen" type="raster" rotate="270" width="320" height="240" refresh="57.613169" pixclock="7000000" htotal="450" hbend="0" hbstart="320" vtotal="270" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Unused" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="TJUMP" mask="15" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="TJUMP" mask="15" relation="eq" value="2" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="70k 270k 200k+" value="0" default="yes" />
      <dipvalue name="100k 350k 250k+" value="4" />
      <dipvalue name="100k Only" value="8" />
      <dipvalue name="200k Only" value="12" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="2" value="48" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="4" value="32" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="No" value="128" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYSTEM" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Region" tag="TJUMP" mask="15">
      <diplocation name="JMPR" number="1" inverted="yes" />
      <diplocation name="JMPR" number="2" inverted="yes" />
      <diplocation name="JMPR" number="3" inverted="yes" />
      <diplocation name="JMPR" number="4" inverted="yes" />
      <dipvalue name="Europe (Nova Apparate license)" value="2" default="yes" />
      <dipvalue name="USA" value="1" />
      <dipvalue name="USA (Romstar license)" value="7" />
      <dipvalue name="Japan (distributed by Tecmo)" value="0" />
      <dipvalue name="Japan (distributed by Tecmo)" value="15" />
      <dipvalue name="Korea" value="4" />
      <dipvalue name="Hong Kong" value="3" />
      <dipvalue name="Hong Kong (Honest Trading license)" value="8" />
      <dipvalue name="Taiwan" value="5" />
      <dipvalue name="Taiwan (Spacy license)" value="6" />
      <dipvalue name="???" value="9" />
      <dipvalue name="???" value="10" />
      <dipvalue name="???" value="11" />
      <dipvalue name="???" value="12" />
      <dipvalue name="???" value="13" />
      <dipvalue name="???" value="14" />
    </dipswitch>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SYSTEM" />
    <port tag=":TJUMP" />
    <port tag=":VBLANK" />
    <driver status="good" emulation="good" savestate="unsupported" />
  </machine>
  <machine name="whoopee" sourcefile="toaplan2.cpp" cloneof="pipibibs" romof="pipibibs">
    <description>Pipi &amp; Bibis / Whoopee!! (Teki Paki hardware)</description>
    <year>1991</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="whoopee.1" size="131072" crc="28882e7e" sha1="8fcd278a7d005eb81cd9e461139c0c0f756a4fa4" region="maincpu" offset="0" />
    <rom name="whoopee.2" size="131072" crc="6796f133" sha1="d4e657be260ba3fd3f0556ade617882513b52685" region="maincpu" offset="1" />
    <rom name="hd647180.025" size="32768" crc="c02436f6" sha1="385343f88991646ec23b385eaea82718f1251ea6" region="audiocpu" offset="0" />
    <rom name="tp025-4.bin" merge="tp025-4.bin" size="1048576" crc="ab97f744" sha1="c1620e614345dbd5c6567e4cb6f55c61b900d0ee" region="gp9001_0" offset="0" />
    <rom name="tp025-3.bin" merge="tp025-3.bin" size="1048576" crc="7b16101e" sha1="ae0119bbfa0937d18c4fbb0a3ef7cdc3b9fa6b56" region="gp9001_0" offset="100000" />
    <device_ref name="m68000" />
    <device_ref name="hd647180x" />
    <device_ref name="screen" />
    <device_ref name="palette" />
    <device_ref name="gp9001vdp" />
    <device_ref name="buffered_spriteram16" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ym3812" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="10000000" />
    <chip type="cpu" tag="audiocpu" name="Hitachi HD647180X MCU" clock="10000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="YM3812 OPL2" clock="3375000" />
    <display tag="screen" type="raster" rotate="0" width="320" height="240" refresh="59.637405" pixclock="6750000" htotal="432" hbend="0" hbstart="320" vtotal="262" vbend="0" vbstart="240" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Unused" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="JMPR" mask="6" relation="eq" value="6" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="6" relation="eq" value="6" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="JMPR" mask="6" relation="ne" value="6" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="JMPR" mask="6" relation="eq" value="6" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="JMPR" mask="6" relation="ne" value="6" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="JMPR" mask="6" relation="ne" value="6" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="JMPR" mask="6" relation="ne" value="6" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="JMPR" mask="6" relation="ne" value="6" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="JMPR" mask="6" relation="ne" value="6" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="JMPR" mask="6" relation="ne" value="6" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="JMPR" mask="6" relation="eq" value="6" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="JMPR" mask="6" relation="eq" value="6" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="JMPR" mask="6" relation="eq" value="6" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="JMPR" mask="6" relation="eq" value="6" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="None" value="12" />
      <dipvalue name="200k only" value="8" />
      <dipvalue name="200k and every 300k" value="0" default="yes" />
      <dipvalue name="150k and every 200k" value="4" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="1" value="48" />
      <dipvalue name="2" value="32" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability (Cheat)" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="128" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYS" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <configuration name="Region" tag="JMPR" mask="7">
      <confsetting name="Europe" value="6" default="yes" />
      <confsetting name="USA" value="4" />
      <confsetting name="Japan" value="0" />
      <confsetting name="Asia" value="1" />
      <confsetting name="Hong Kong (Honest Trading Co.)" value="2" />
      <confsetting name="Taiwan" value="3" />
      <confsetting name="USA (Romstar, Inc.)" value="5" />
      <confsetting name="Europe (Nova Apparate GMBH &amp; Co.)" value="7" />
    </configuration>
    <configuration name="Nudity" tag="JMPR" mask="8">
      <confsetting name="Low" value="8" />
      <confsetting name="High, but censored" value="0" default="yes" />
    </configuration>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":IN1" />
    <port tag=":IN2" />
    <port tag=":JMPR" />
    <port tag=":SYS" />
    <driver status="good" emulation="good" savestate="supported" />
  </machine>
  <machine name="zerowing" sourcefile="toaplan1.cpp">
    <description>Zero Wing (2P set)</description>
    <year>1989</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="o15-11ii.bin" size="32768" crc="e697ecb9" sha1="444bf4c06844bd119cf152a35a5483e0f0dcecd4" region="maincpu" offset="0" />
    <rom name="o15-12ii.bin" size="32768" crc="b29ee3ad" sha1="631695dfe5c2ee39effcfa4312ea6c14f7b7c302" region="maincpu" offset="1" />
    <rom name="o15-09.rom" size="131072" crc="13764e95" sha1="61da49b73ba81edd951e96e9ce6673c1c3bd65f2" region="maincpu" offset="40000" />
    <rom name="o15-10.rom" size="131072" crc="351ba71a" sha1="937331549140506711b08252497cc0f2efa58268" region="maincpu" offset="40001" />
    <rom name="o15-13.rom" size="32768" crc="e7b72383" sha1="ea1f6f33a86d14d58bd396fd46081462f00177d5" region="audiocpu" offset="0" />
    <rom name="o15-05.rom" size="131072" crc="4e5dd246" sha1="5366b4a6f3c900a4f57a6583b7399163a06f42d7" region="gfx1" offset="0" />
    <rom name="o15-06.rom" size="131072" crc="c8c6d428" sha1="76ee5bcb8f10fe201fc5c32697beee3de9d8b751" region="gfx1" offset="1" />
    <rom name="o15-07.rom" size="131072" crc="efc40e99" sha1="a04fad4197a7fb4787cd9bebf43e1d9b02b2f61b" region="gfx1" offset="40000" />
    <rom name="o15-08.rom" size="131072" crc="1b019eab" sha1="c9569ca85696825142acc5cde9ac829e82b1ca1b" region="gfx1" offset="40001" />
    <rom name="o15-03.rom" size="131072" crc="7f245fd3" sha1="efbcb3663d4accc4f8128a8fee5475bc109bc17a" region="gfx2" offset="0" />
    <rom name="o15-04.rom" size="131072" crc="0b1a1289" sha1="ce6c06342392d11952873e3b1d6aea8dc02a551c" region="gfx2" offset="1" />
    <rom name="o15-01.rom" size="131072" crc="70570e43" sha1="acc9baec71b0930cb2f193677e0663efa5d5551d" region="gfx2" offset="40000" />
    <rom name="o15-02.rom" size="131072" crc="724b487f" sha1="06af31520866eea69aebbd5d428f80e882289a15" region="gfx2" offset="40001" />
    <rom name="tp015_14.bpr" size="32" crc="bc88cced" sha1="5055362710c0f58823c05fb4c0e0eec638b91e3d" region="proms" offset="0" />
    <rom name="tp015_15.bpr" size="32" crc="a1e17492" sha1="9ddec4c97f2d541f69f3c32c47aaa21fd9699ae2" region="proms" offset="20" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="ym3812" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="10000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="3500000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="YM3812 OPL2" clock="3500000" />
    <display tag="screen" type="raster" rotate="0" width="320" height="240" refresh="57.613169" pixclock="7000000" htotal="450" hbend="0" hbstart="320" vtotal="270" vbend="16" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Unused" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="TJUMP" mask="2" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="TJUMP" mask="2" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="TJUMP" mask="2" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="TJUMP" mask="2" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="TJUMP" mask="2" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="TJUMP" mask="2" relation="ne" value="2" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="TJUMP" mask="2" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="TJUMP" mask="2" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="TJUMP" mask="2" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="TJUMP" mask="2" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="TJUMP" mask="2" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="TJUMP" mask="2" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="TJUMP" mask="2" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="TJUMP" mask="2" relation="eq" value="2" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="200k 700k 500k+" value="0" default="yes" />
      <dipvalue name="500k 1500k 1000k+" value="4" />
      <dipvalue name="500k Only" value="8" />
      <dipvalue name="None" value="12" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="2" value="48" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="4" value="32" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="128" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYSTEM" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Unused" tag="TJUMP" mask="1">
      <diplocation name="JMPR" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Region" tag="TJUMP" mask="2">
      <diplocation name="JMPR" number="2" inverted="yes" />
      <dipvalue name="USA" value="0" default="yes" />
      <dipvalue name="Europe" value="2" />
    </dipswitch>
    <dipswitch name="Unused" tag="TJUMP" mask="4">
      <diplocation name="JMPR" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Unused" tag="TJUMP" mask="8">
      <diplocation name="JMPR" number="4" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="8" />
    </dipswitch>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SYSTEM" />
    <port tag=":TJUMP" />
    <port tag=":VBLANK" />
    <driver status="good" emulation="good" savestate="unsupported" />
  </machine>
  <machine name="zerowing1" sourcefile="toaplan1.cpp" cloneof="zerowing" romof="zerowing">
    <description>Zero Wing (1P set)</description>
    <year>1989</year>
    <manufacturer>Toaplan</manufacturer>
    <rom name="o15-11.rom" size="32768" crc="6ff2b9a0" sha1="c9f2a631f185689dfc42a451d85fac23c2f4b64b" region="maincpu" offset="0" />
    <rom name="o15-12.rom" size="32768" crc="9773e60b" sha1="b733e9d38a233d010cc5ea41e7e61695082c3a22" region="maincpu" offset="1" />
    <rom name="o15-09.rom" merge="o15-09.rom" size="131072" crc="13764e95" sha1="61da49b73ba81edd951e96e9ce6673c1c3bd65f2" region="maincpu" offset="40000" />
    <rom name="o15-10.rom" merge="o15-10.rom" size="131072" crc="351ba71a" sha1="937331549140506711b08252497cc0f2efa58268" region="maincpu" offset="40001" />
    <rom name="o15-13.rom" merge="o15-13.rom" size="32768" crc="e7b72383" sha1="ea1f6f33a86d14d58bd396fd46081462f00177d5" region="audiocpu" offset="0" />
    <rom name="o15-05.rom" merge="o15-05.rom" size="131072" crc="4e5dd246" sha1="5366b4a6f3c900a4f57a6583b7399163a06f42d7" region="gfx1" offset="0" />
    <rom name="o15-06.rom" merge="o15-06.rom" size="131072" crc="c8c6d428" sha1="76ee5bcb8f10fe201fc5c32697beee3de9d8b751" region="gfx1" offset="1" />
    <rom name="o15-07.rom" merge="o15-07.rom" size="131072" crc="efc40e99" sha1="a04fad4197a7fb4787cd9bebf43e1d9b02b2f61b" region="gfx1" offset="40000" />
    <rom name="o15-08.rom" merge="o15-08.rom" size="131072" crc="1b019eab" sha1="c9569ca85696825142acc5cde9ac829e82b1ca1b" region="gfx1" offset="40001" />
    <rom name="o15-03.rom" merge="o15-03.rom" size="131072" crc="7f245fd3" sha1="efbcb3663d4accc4f8128a8fee5475bc109bc17a" region="gfx2" offset="0" />
    <rom name="o15-04.rom" merge="o15-04.rom" size="131072" crc="0b1a1289" sha1="ce6c06342392d11952873e3b1d6aea8dc02a551c" region="gfx2" offset="1" />
    <rom name="o15-01.rom" merge="o15-01.rom" size="131072" crc="70570e43" sha1="acc9baec71b0930cb2f193677e0663efa5d5551d" region="gfx2" offset="40000" />
    <rom name="o15-02.rom" merge="o15-02.rom" size="131072" crc="724b487f" sha1="06af31520866eea69aebbd5d428f80e882289a15" region="gfx2" offset="40001" />
    <rom name="tp015_14.bpr" merge="tp015_14.bpr" size="32" crc="bc88cced" sha1="5055362710c0f58823c05fb4c0e0eec638b91e3d" region="proms" offset="0" />
    <rom name="tp015_15.bpr" merge="tp015_15.bpr" size="32" crc="a1e17492" sha1="9ddec4c97f2d541f69f3c32c47aaa21fd9699ae2" region="proms" offset="20" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="ym3812" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="10000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="3500000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="YM3812 OPL2" clock="3500000" />
    <display tag="screen" type="raster" rotate="0" width="320" height="240" refresh="57.613169" pixclock="7000000" htotal="450" hbend="0" hbstart="320" vtotal="270" vbend="16" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Cabinet" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Upright" value="1" default="yes" />
      <dipvalue name="Cocktail" value="0" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="TJUMP" mask="2" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="TJUMP" mask="2" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="TJUMP" mask="2" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="TJUMP" mask="2" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="TJUMP" mask="2" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="TJUMP" mask="2" relation="ne" value="2" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="TJUMP" mask="2" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="TJUMP" mask="2" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="TJUMP" mask="2" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="TJUMP" mask="2" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="TJUMP" mask="2" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="TJUMP" mask="2" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="TJUMP" mask="2" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="TJUMP" mask="2" relation="eq" value="2" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="200k 700k 500k+" value="0" default="yes" />
      <dipvalue name="500k 1500k 1000k+" value="4" />
      <dipvalue name="500k Only" value="8" />
      <dipvalue name="None" value="12" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="2" value="48" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="4" value="32" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Allow Continue" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="No" value="128" />
      <dipvalue name="Yes" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYSTEM" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Region" tag="TJUMP" mask="3">
      <diplocation name="JMPR" number="1" inverted="yes" />
      <diplocation name="JMPR" number="2" inverted="yes" />
      <dipvalue name="Europe" value="3" default="yes" />
      <dipvalue name="Europe" value="2" />
      <dipvalue name="USA" value="1" />
      <dipvalue name="Japan" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="TJUMP" mask="4">
      <diplocation name="JMPR" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Unused" tag="TJUMP" mask="8">
      <diplocation name="JMPR" number="4" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="8" />
    </dipswitch>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SYSTEM" />
    <port tag=":TJUMP" />
    <port tag=":VBLANK" />
    <driver status="good" emulation="good" savestate="unsupported" />
  </machine>
  <machine name="zerowingw" sourcefile="toaplan1.cpp" cloneof="zerowing" romof="zerowing">
    <description>Zero Wing (2P set, Williams license)</description>
    <year>1989</year>
    <manufacturer>Toaplan (Williams license)</manufacturer>
    <rom name="o15-11iiw.bin" size="32768" crc="38b0bb5b" sha1="e5a4c0b6c279a55701c82bf9e285a806054f8d23" region="maincpu" offset="0" />
    <rom name="o15-12iiw.bin" size="32768" crc="74c91e6f" sha1="8cf5d10a5f4efda0903a4c5d56599861ccc8f1c1" region="maincpu" offset="1" />
    <rom name="o15-09.rom" merge="o15-09.rom" size="131072" crc="13764e95" sha1="61da49b73ba81edd951e96e9ce6673c1c3bd65f2" region="maincpu" offset="40000" />
    <rom name="o15-10.rom" merge="o15-10.rom" size="131072" crc="351ba71a" sha1="937331549140506711b08252497cc0f2efa58268" region="maincpu" offset="40001" />
    <rom name="o15-13.rom" merge="o15-13.rom" size="32768" crc="e7b72383" sha1="ea1f6f33a86d14d58bd396fd46081462f00177d5" region="audiocpu" offset="0" />
    <rom name="o15-05.rom" merge="o15-05.rom" size="131072" crc="4e5dd246" sha1="5366b4a6f3c900a4f57a6583b7399163a06f42d7" region="gfx1" offset="0" />
    <rom name="o15-06.rom" merge="o15-06.rom" size="131072" crc="c8c6d428" sha1="76ee5bcb8f10fe201fc5c32697beee3de9d8b751" region="gfx1" offset="1" />
    <rom name="o15-07.rom" merge="o15-07.rom" size="131072" crc="efc40e99" sha1="a04fad4197a7fb4787cd9bebf43e1d9b02b2f61b" region="gfx1" offset="40000" />
    <rom name="o15-08.rom" merge="o15-08.rom" size="131072" crc="1b019eab" sha1="c9569ca85696825142acc5cde9ac829e82b1ca1b" region="gfx1" offset="40001" />
    <rom name="o15-03.rom" merge="o15-03.rom" size="131072" crc="7f245fd3" sha1="efbcb3663d4accc4f8128a8fee5475bc109bc17a" region="gfx2" offset="0" />
    <rom name="o15-04.rom" merge="o15-04.rom" size="131072" crc="0b1a1289" sha1="ce6c06342392d11952873e3b1d6aea8dc02a551c" region="gfx2" offset="1" />
    <rom name="o15-01.rom" merge="o15-01.rom" size="131072" crc="70570e43" sha1="acc9baec71b0930cb2f193677e0663efa5d5551d" region="gfx2" offset="40000" />
    <rom name="o15-02.rom" merge="o15-02.rom" size="131072" crc="724b487f" sha1="06af31520866eea69aebbd5d428f80e882289a15" region="gfx2" offset="40001" />
    <rom name="tp015_14.bpr" merge="tp015_14.bpr" size="32" crc="bc88cced" sha1="5055362710c0f58823c05fb4c0e0eec638b91e3d" region="proms" offset="0" />
    <rom name="tp015_15.bpr" merge="tp015_15.bpr" size="32" crc="a1e17492" sha1="9ddec4c97f2d541f69f3c32c47aaa21fd9699ae2" region="proms" offset="20" />
    <device_ref name="m68000" />
    <device_ref name="z80" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="ym3812" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="10000000" />
    <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="3500000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ymsnd" name="YM3812 OPL2" clock="3500000" />
    <display tag="screen" type="raster" rotate="0" width="320" height="240" refresh="57.613169" pixclock="7000000" htotal="450" hbend="0" hbstart="320" vtotal="270" vbend="16" vbstart="256" />
    <sound channels="1" />
    <input players="2" coins="2" tilt="yes">
      <control type="joy" player="1" buttons="2" ways="8" />
      <control type="joy" player="2" buttons="2" ways="8" />
    </input>
    <dipswitch name="Unused" tag="DSWA" mask="1">
      <diplocation name="SW1" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Flip Screen" tag="DSWA" mask="2">
      <diplocation name="SW1" number="2" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="2" />
    </dipswitch>
    <dipswitch name="Service Mode" tag="DSWA" mask="4">
      <diplocation name="SW1" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Demo Sounds" tag="DSWA" mask="8">
      <diplocation name="SW1" number="4" inverted="yes" />
      <dipvalue name="Off" value="8" />
      <dipvalue name="On" value="0" default="yes" />
    </dipswitch>
    <dipswitch name="Coin A" tag="DSWA" mask="48">
      <diplocation name="SW1" number="5" inverted="yes" />
      <diplocation name="SW1" number="6" inverted="yes" />
      <dipvalue name="4 Coins/1 Credit" value="48">
        <condition tag="TJUMP" mask="2" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="3 Coins/1 Credit" value="32">
        <condition tag="TJUMP" mask="2" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="32">
        <condition tag="TJUMP" mask="2" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/1 Credit" value="16">
        <condition tag="TJUMP" mask="2" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes" />
      <dipvalue name="2 Coins/3 Credits" value="48">
        <condition tag="TJUMP" mask="2" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="16">
        <condition tag="TJUMP" mask="2" relation="ne" value="2" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Coin B" tag="DSWA" mask="192">
      <diplocation name="SW1" number="7" inverted="yes" />
      <diplocation name="SW1" number="8" inverted="yes" />
      <dipvalue name="2 Coins/1 Credit" value="128">
        <condition tag="TJUMP" mask="2" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/1 Credit" value="0" default="yes">
        <condition tag="TJUMP" mask="2" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="2 Coins/3 Credits" value="192">
        <condition tag="TJUMP" mask="2" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="64">
        <condition tag="TJUMP" mask="2" relation="ne" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/2 Credits" value="0" default="yes">
        <condition tag="TJUMP" mask="2" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/3 Credits" value="64">
        <condition tag="TJUMP" mask="2" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/4 Credits" value="128">
        <condition tag="TJUMP" mask="2" relation="eq" value="2" />
      </dipvalue>
      <dipvalue name="1 Coin/6 Credits" value="192">
        <condition tag="TJUMP" mask="2" relation="eq" value="2" />
      </dipvalue>
    </dipswitch>
    <dipswitch name="Difficulty" tag="DSWB" mask="3">
      <diplocation name="SW2" number="1" inverted="yes" />
      <diplocation name="SW2" number="2" inverted="yes" />
      <dipvalue name="Easy" value="1" />
      <dipvalue name="Normal" value="0" default="yes" />
      <dipvalue name="Hard" value="2" />
      <dipvalue name="Very Hard" value="3" />
    </dipswitch>
    <dipswitch name="Bonus Life" tag="DSWB" mask="12">
      <diplocation name="SW2" number="3" inverted="yes" />
      <diplocation name="SW2" number="4" inverted="yes" />
      <dipvalue name="200k 700k 500k+" value="0" default="yes" />
      <dipvalue name="500k 1500k 1000k+" value="4" />
      <dipvalue name="500k Only" value="8" />
      <dipvalue name="None" value="12" />
    </dipswitch>
    <dipswitch name="Lives" tag="DSWB" mask="48">
      <diplocation name="SW2" number="5" inverted="yes" />
      <diplocation name="SW2" number="6" inverted="yes" />
      <dipvalue name="2" value="48" />
      <dipvalue name="3" value="0" default="yes" />
      <dipvalue name="4" value="32" />
      <dipvalue name="5" value="16" />
    </dipswitch>
    <dipswitch name="Invulnerability" tag="DSWB" mask="64">
      <diplocation name="SW2" number="7" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="64" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSWB" mask="128">
      <diplocation name="SW2" number="8" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="128" />
    </dipswitch>
    <dipswitch name="Test Switch" tag="SYSTEM" mask="4">
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Unused" tag="TJUMP" mask="1">
      <diplocation name="JMPR" number="1" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="1" />
    </dipswitch>
    <dipswitch name="Region" tag="TJUMP" mask="2">
      <diplocation name="JMPR" number="2" inverted="yes" />
      <dipvalue name="USA" value="0" default="yes" />
      <dipvalue name="Europe" value="2" />
    </dipswitch>
    <dipswitch name="Unused" tag="TJUMP" mask="4">
      <diplocation name="JMPR" number="3" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="4" />
    </dipswitch>
    <dipswitch name="Unused" tag="TJUMP" mask="8">
      <diplocation name="JMPR" number="4" inverted="yes" />
      <dipvalue name="Off" value="0" default="yes" />
      <dipvalue name="On" value="8" />
    </dipswitch>
    <port tag=":DSWA" />
    <port tag=":DSWB" />
    <port tag=":P1" />
    <port tag=":P2" />
    <port tag=":SYSTEM" />
    <port tag=":TJUMP" />
    <port tag=":VBLANK" />
    <driver status="good" emulation="good" savestate="unsupported" />
  </machine>
</datafile>