<?xml version="1.0" encoding="utf-8"?>
<datafile>
  <header>
    <name>Cave PGM</name>
    <description>Cave PGM 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="ddp2" sourcefile="pgm.cpp" romof="pgm">
    <description>DoDonPachi II - Bee Storm (World, ver. 102)</description>
    <year>2001</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v102.u8" size="2097152" crc="5a9ea040" sha1="51eaec46c368f7cfc5245e64896092f52b1193e0" region="maincpu" offset="100000" />
    <rom name="ddp2_igs027a_world.bin" size="16384" crc="3654e20b" sha1="e00ef1d51efe66354e3eaf4750d9d819c74ddfbf" region="prot" offset="0" />
    <rom name="v100_210.u23" size="131072" crc="06c3dd29" sha1="20c9479f158467fc2037dcf162b6c6be18c91d46" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t1300.u21" size="8388608" crc="e748f0cb" sha1="5843bee3a17c33648ce904af2b98c6a90aff7393" region="tiles" offset="180000" />
    <rom name="pgm_a1300.u1" size="8388608" crc="fc87a405" sha1="115c21ecc56997652e527c92654076870bc9fa51" region="sprcol" offset="0" />
    <rom name="pgm_a1301.u2" size="8388608" crc="0c8520da" sha1="390317857ae5baa94a4cc042874b00a811f06a63" region="sprcol" offset="800000" />
    <rom name="pgm_b1300.u7" size="8388608" crc="ef646604" sha1="d737ff513792962f18df88c2caa9dd71de449079" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m1300.u5" size="4194304" crc="82d4015d" sha1="d4cdc1aec1c97cf23ff7a20ccaad822962e66ffa" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="270" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="ddp2100" sourcefile="pgm.cpp" cloneof="ddp2" romof="ddp2">
    <description>DoDonPachi II - Bee Storm (World, ver. 100)</description>
    <year>2001</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v100.u8" size="2097152" crc="0c8aa8ea" sha1="57e33224622607a1df8daabf26ba063cf8a6d3fc" region="maincpu" offset="100000" />
    <rom name="ddp2_igs027a_world.bin" merge="ddp2_igs027a_world.bin" size="16384" crc="3654e20b" sha1="e00ef1d51efe66354e3eaf4750d9d819c74ddfbf" region="prot" offset="0" />
    <rom name="v100_210.u23" merge="v100_210.u23" size="131072" crc="06c3dd29" sha1="20c9479f158467fc2037dcf162b6c6be18c91d46" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t1300.u21" merge="pgm_t1300.u21" size="8388608" crc="e748f0cb" sha1="5843bee3a17c33648ce904af2b98c6a90aff7393" region="tiles" offset="180000" />
    <rom name="pgm_a1300.u1" merge="pgm_a1300.u1" size="8388608" crc="fc87a405" sha1="115c21ecc56997652e527c92654076870bc9fa51" region="sprcol" offset="0" />
    <rom name="pgm_a1301.u2" merge="pgm_a1301.u2" size="8388608" crc="0c8520da" sha1="390317857ae5baa94a4cc042874b00a811f06a63" region="sprcol" offset="800000" />
    <rom name="pgm_b1300.u7" merge="pgm_b1300.u7" size="8388608" crc="ef646604" sha1="d737ff513792962f18df88c2caa9dd71de449079" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m1300.u5" merge="pgm_m1300.u5" size="4194304" crc="82d4015d" sha1="d4cdc1aec1c97cf23ff7a20ccaad822962e66ffa" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="270" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="ddp2100c" sourcefile="pgm.cpp" cloneof="ddp2" romof="ddp2">
    <description>DoDonPachi - Feng Bao (China, ver. 100)</description>
    <year>2001</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v100.u8" size="2097152" crc="0c8aa8ea" sha1="57e33224622607a1df8daabf26ba063cf8a6d3fc" region="maincpu" offset="100000" />
    <rom name="ddp2_igs027a_china.bin" size="16384" crc="8c566319" sha1="bb001d8ada56bf446f9ab88e00936501652daf11" region="prot" offset="0" />
    <rom name="v100_210.u23" merge="v100_210.u23" size="131072" crc="06c3dd29" sha1="20c9479f158467fc2037dcf162b6c6be18c91d46" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t1300.u21" merge="pgm_t1300.u21" size="8388608" crc="e748f0cb" sha1="5843bee3a17c33648ce904af2b98c6a90aff7393" region="tiles" offset="180000" />
    <rom name="pgm_a1300.u1" merge="pgm_a1300.u1" size="8388608" crc="fc87a405" sha1="115c21ecc56997652e527c92654076870bc9fa51" region="sprcol" offset="0" />
    <rom name="pgm_a1301.u2" merge="pgm_a1301.u2" size="8388608" crc="0c8520da" sha1="390317857ae5baa94a4cc042874b00a811f06a63" region="sprcol" offset="800000" />
    <rom name="pgm_b1300.u7" merge="pgm_b1300.u7" size="8388608" crc="ef646604" sha1="d737ff513792962f18df88c2caa9dd71de449079" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m1300.u5" merge="pgm_m1300.u5" size="4194304" crc="82d4015d" sha1="d4cdc1aec1c97cf23ff7a20ccaad822962e66ffa" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="270" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="ddp2100hk" sourcefile="pgm.cpp" cloneof="ddp2" romof="ddp2">
    <description>DoDonPachi II - Fung Bou (Hong Kong, ver. 100)</description>
    <year>2001</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v100.u8" size="2097152" crc="0c8aa8ea" sha1="57e33224622607a1df8daabf26ba063cf8a6d3fc" region="maincpu" offset="100000" />
    <rom name="ddp2_igs027a_hong_kong.bin" size="16384" crc="a7d1cace" sha1="b9391da52c8234ca0182484f33b5242827c51c76" region="prot" offset="0" />
    <rom name="v100_210.u23" merge="v100_210.u23" size="131072" crc="06c3dd29" sha1="20c9479f158467fc2037dcf162b6c6be18c91d46" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t1300.u21" merge="pgm_t1300.u21" size="8388608" crc="e748f0cb" sha1="5843bee3a17c33648ce904af2b98c6a90aff7393" region="tiles" offset="180000" />
    <rom name="pgm_a1300.u1" merge="pgm_a1300.u1" size="8388608" crc="fc87a405" sha1="115c21ecc56997652e527c92654076870bc9fa51" region="sprcol" offset="0" />
    <rom name="pgm_a1301.u2" merge="pgm_a1301.u2" size="8388608" crc="0c8520da" sha1="390317857ae5baa94a4cc042874b00a811f06a63" region="sprcol" offset="800000" />
    <rom name="pgm_b1300.u7" merge="pgm_b1300.u7" size="8388608" crc="ef646604" sha1="d737ff513792962f18df88c2caa9dd71de449079" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m1300.u5" merge="pgm_m1300.u5" size="4194304" crc="82d4015d" sha1="d4cdc1aec1c97cf23ff7a20ccaad822962e66ffa" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="270" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="ddp2100j" sourcefile="pgm.cpp" cloneof="ddp2" romof="ddp2">
    <description>DoDonPachi II (Japan, ver. 100)</description>
    <year>2001</year>
    <manufacturer>IGS (Cave license)</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v100.u8" size="2097152" crc="0c8aa8ea" sha1="57e33224622607a1df8daabf26ba063cf8a6d3fc" region="maincpu" offset="100000" />
    <rom name="ddp2_igs027a_japan.bin" size="16384" crc="742d34d2" sha1="4491c08f3cefef2933ad5a741f4bb05cc2f3e1a0" region="prot" offset="0" />
    <rom name="v100_210.u23" merge="v100_210.u23" size="131072" crc="06c3dd29" sha1="20c9479f158467fc2037dcf162b6c6be18c91d46" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t1300.u21" merge="pgm_t1300.u21" size="8388608" crc="e748f0cb" sha1="5843bee3a17c33648ce904af2b98c6a90aff7393" region="tiles" offset="180000" />
    <rom name="pgm_a1300.u1" merge="pgm_a1300.u1" size="8388608" crc="fc87a405" sha1="115c21ecc56997652e527c92654076870bc9fa51" region="sprcol" offset="0" />
    <rom name="pgm_a1301.u2" merge="pgm_a1301.u2" size="8388608" crc="0c8520da" sha1="390317857ae5baa94a4cc042874b00a811f06a63" region="sprcol" offset="800000" />
    <rom name="pgm_b1300.u7" merge="pgm_b1300.u7" size="8388608" crc="ef646604" sha1="d737ff513792962f18df88c2caa9dd71de449079" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m1300.u5" merge="pgm_m1300.u5" size="4194304" crc="82d4015d" sha1="d4cdc1aec1c97cf23ff7a20ccaad822962e66ffa" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="270" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="ddp2100k" sourcefile="pgm.cpp" cloneof="ddp2" romof="ddp2">
    <description>DoDonPachi II - Bee Storm (Korea, ver. 100)</description>
    <year>2001</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v100.u8" size="2097152" crc="0c8aa8ea" sha1="57e33224622607a1df8daabf26ba063cf8a6d3fc" region="maincpu" offset="100000" />
    <rom name="ddp2_igs027a_korea.bin" size="16384" crc="e5a81c17" sha1="cfe4e28a44a1b3a5c1c9e303941b335dbde7dd8d" region="prot" offset="0" />
    <rom name="v100_210.u23" merge="v100_210.u23" size="131072" crc="06c3dd29" sha1="20c9479f158467fc2037dcf162b6c6be18c91d46" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t1300.u21" merge="pgm_t1300.u21" size="8388608" crc="e748f0cb" sha1="5843bee3a17c33648ce904af2b98c6a90aff7393" region="tiles" offset="180000" />
    <rom name="pgm_a1300.u1" merge="pgm_a1300.u1" size="8388608" crc="fc87a405" sha1="115c21ecc56997652e527c92654076870bc9fa51" region="sprcol" offset="0" />
    <rom name="pgm_a1301.u2" merge="pgm_a1301.u2" size="8388608" crc="0c8520da" sha1="390317857ae5baa94a4cc042874b00a811f06a63" region="sprcol" offset="800000" />
    <rom name="pgm_b1300.u7" merge="pgm_b1300.u7" size="8388608" crc="ef646604" sha1="d737ff513792962f18df88c2caa9dd71de449079" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m1300.u5" merge="pgm_m1300.u5" size="4194304" crc="82d4015d" sha1="d4cdc1aec1c97cf23ff7a20ccaad822962e66ffa" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="270" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="ddp2100t" sourcefile="pgm.cpp" cloneof="ddp2" romof="ddp2">
    <description>DoDonPachi - Feng Bao (Taiwan, ver. 100)</description>
    <year>2001</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v100.u8" size="2097152" crc="0c8aa8ea" sha1="57e33224622607a1df8daabf26ba063cf8a6d3fc" region="maincpu" offset="100000" />
    <rom name="ddp2_igs027a_taiwan.bin" size="16384" crc="1dd34bdc" sha1="4f2ee38ee37d5cc63b2a63ef51bd392e4f18d836" region="prot" offset="0" />
    <rom name="v100_210.u23" merge="v100_210.u23" size="131072" crc="06c3dd29" sha1="20c9479f158467fc2037dcf162b6c6be18c91d46" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t1300.u21" merge="pgm_t1300.u21" size="8388608" crc="e748f0cb" sha1="5843bee3a17c33648ce904af2b98c6a90aff7393" region="tiles" offset="180000" />
    <rom name="pgm_a1300.u1" merge="pgm_a1300.u1" size="8388608" crc="fc87a405" sha1="115c21ecc56997652e527c92654076870bc9fa51" region="sprcol" offset="0" />
    <rom name="pgm_a1301.u2" merge="pgm_a1301.u2" size="8388608" crc="0c8520da" sha1="390317857ae5baa94a4cc042874b00a811f06a63" region="sprcol" offset="800000" />
    <rom name="pgm_b1300.u7" merge="pgm_b1300.u7" size="8388608" crc="ef646604" sha1="d737ff513792962f18df88c2caa9dd71de449079" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m1300.u5" merge="pgm_m1300.u5" size="4194304" crc="82d4015d" sha1="d4cdc1aec1c97cf23ff7a20ccaad822962e66ffa" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="270" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="ddp2101" sourcefile="pgm.cpp" cloneof="ddp2" romof="ddp2">
    <description>DoDonPachi II - Bee Storm (World, ver. 101)</description>
    <year>2001</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v101_16m.u8" size="2097152" crc="5e5786fd" sha1="c6fc2956b5dc6a97c0d7d808a8c58aa21fa023b9" region="maincpu" offset="100000" />
    <rom name="ddp2_igs027a_world.bin" merge="ddp2_igs027a_world.bin" size="16384" crc="3654e20b" sha1="e00ef1d51efe66354e3eaf4750d9d819c74ddfbf" region="prot" offset="0" />
    <rom name="v100_210.u23" merge="v100_210.u23" size="131072" crc="06c3dd29" sha1="20c9479f158467fc2037dcf162b6c6be18c91d46" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t1300.u21" merge="pgm_t1300.u21" size="8388608" crc="e748f0cb" sha1="5843bee3a17c33648ce904af2b98c6a90aff7393" region="tiles" offset="180000" />
    <rom name="pgm_a1300.u1" merge="pgm_a1300.u1" size="8388608" crc="fc87a405" sha1="115c21ecc56997652e527c92654076870bc9fa51" region="sprcol" offset="0" />
    <rom name="pgm_a1301.u2" merge="pgm_a1301.u2" size="8388608" crc="0c8520da" sha1="390317857ae5baa94a4cc042874b00a811f06a63" region="sprcol" offset="800000" />
    <rom name="pgm_b1300.u7" merge="pgm_b1300.u7" size="8388608" crc="ef646604" sha1="d737ff513792962f18df88c2caa9dd71de449079" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m1300.u5" merge="pgm_m1300.u5" size="4194304" crc="82d4015d" sha1="d4cdc1aec1c97cf23ff7a20ccaad822962e66ffa" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="270" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="ddp2101c" sourcefile="pgm.cpp" cloneof="ddp2" romof="ddp2">
    <description>DoDonPachi - Feng Bao (China, ver. 101)</description>
    <year>2001</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v101_16m.u8" size="2097152" crc="5e5786fd" sha1="c6fc2956b5dc6a97c0d7d808a8c58aa21fa023b9" region="maincpu" offset="100000" />
    <rom name="ddp2_igs027a_china.bin" size="16384" crc="8c566319" sha1="bb001d8ada56bf446f9ab88e00936501652daf11" region="prot" offset="0" />
    <rom name="v100_210.u23" merge="v100_210.u23" size="131072" crc="06c3dd29" sha1="20c9479f158467fc2037dcf162b6c6be18c91d46" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t1300.u21" merge="pgm_t1300.u21" size="8388608" crc="e748f0cb" sha1="5843bee3a17c33648ce904af2b98c6a90aff7393" region="tiles" offset="180000" />
    <rom name="pgm_a1300.u1" merge="pgm_a1300.u1" size="8388608" crc="fc87a405" sha1="115c21ecc56997652e527c92654076870bc9fa51" region="sprcol" offset="0" />
    <rom name="pgm_a1301.u2" merge="pgm_a1301.u2" size="8388608" crc="0c8520da" sha1="390317857ae5baa94a4cc042874b00a811f06a63" region="sprcol" offset="800000" />
    <rom name="pgm_b1300.u7" merge="pgm_b1300.u7" size="8388608" crc="ef646604" sha1="d737ff513792962f18df88c2caa9dd71de449079" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m1300.u5" merge="pgm_m1300.u5" size="4194304" crc="82d4015d" sha1="d4cdc1aec1c97cf23ff7a20ccaad822962e66ffa" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="270" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="ddp2101hk" sourcefile="pgm.cpp" cloneof="ddp2" romof="ddp2">
    <description>DoDonPachi II - Fung Bou (Hong Kong, ver. 101)</description>
    <year>2001</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v101_16m.u8" size="2097152" crc="5e5786fd" sha1="c6fc2956b5dc6a97c0d7d808a8c58aa21fa023b9" region="maincpu" offset="100000" />
    <rom name="ddp2_igs027a_hong_kong.bin" size="16384" crc="a7d1cace" sha1="b9391da52c8234ca0182484f33b5242827c51c76" region="prot" offset="0" />
    <rom name="v100_210.u23" merge="v100_210.u23" size="131072" crc="06c3dd29" sha1="20c9479f158467fc2037dcf162b6c6be18c91d46" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t1300.u21" merge="pgm_t1300.u21" size="8388608" crc="e748f0cb" sha1="5843bee3a17c33648ce904af2b98c6a90aff7393" region="tiles" offset="180000" />
    <rom name="pgm_a1300.u1" merge="pgm_a1300.u1" size="8388608" crc="fc87a405" sha1="115c21ecc56997652e527c92654076870bc9fa51" region="sprcol" offset="0" />
    <rom name="pgm_a1301.u2" merge="pgm_a1301.u2" size="8388608" crc="0c8520da" sha1="390317857ae5baa94a4cc042874b00a811f06a63" region="sprcol" offset="800000" />
    <rom name="pgm_b1300.u7" merge="pgm_b1300.u7" size="8388608" crc="ef646604" sha1="d737ff513792962f18df88c2caa9dd71de449079" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m1300.u5" merge="pgm_m1300.u5" size="4194304" crc="82d4015d" sha1="d4cdc1aec1c97cf23ff7a20ccaad822962e66ffa" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="270" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="ddp2101j" sourcefile="pgm.cpp" cloneof="ddp2" romof="ddp2">
    <description>DoDonPachi II (Japan, ver. 101)</description>
    <year>2001</year>
    <manufacturer>IGS (Cave license)</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v101_16m.u8" size="2097152" crc="5e5786fd" sha1="c6fc2956b5dc6a97c0d7d808a8c58aa21fa023b9" region="maincpu" offset="100000" />
    <rom name="ddp2_igs027a_japan.bin" size="16384" crc="742d34d2" sha1="4491c08f3cefef2933ad5a741f4bb05cc2f3e1a0" region="prot" offset="0" />
    <rom name="v100_210.u23" merge="v100_210.u23" size="131072" crc="06c3dd29" sha1="20c9479f158467fc2037dcf162b6c6be18c91d46" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t1300.u21" merge="pgm_t1300.u21" size="8388608" crc="e748f0cb" sha1="5843bee3a17c33648ce904af2b98c6a90aff7393" region="tiles" offset="180000" />
    <rom name="pgm_a1300.u1" merge="pgm_a1300.u1" size="8388608" crc="fc87a405" sha1="115c21ecc56997652e527c92654076870bc9fa51" region="sprcol" offset="0" />
    <rom name="pgm_a1301.u2" merge="pgm_a1301.u2" size="8388608" crc="0c8520da" sha1="390317857ae5baa94a4cc042874b00a811f06a63" region="sprcol" offset="800000" />
    <rom name="pgm_b1300.u7" merge="pgm_b1300.u7" size="8388608" crc="ef646604" sha1="d737ff513792962f18df88c2caa9dd71de449079" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m1300.u5" merge="pgm_m1300.u5" size="4194304" crc="82d4015d" sha1="d4cdc1aec1c97cf23ff7a20ccaad822962e66ffa" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="270" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="ddp2101k" sourcefile="pgm.cpp" cloneof="ddp2" romof="ddp2">
    <description>DoDonPachi II - Bee Storm (Korea, ver. 101)</description>
    <year>2001</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v101_16m.u8" size="2097152" crc="5e5786fd" sha1="c6fc2956b5dc6a97c0d7d808a8c58aa21fa023b9" region="maincpu" offset="100000" />
    <rom name="ddp2_igs027a_korea.bin" size="16384" crc="e5a81c17" sha1="cfe4e28a44a1b3a5c1c9e303941b335dbde7dd8d" region="prot" offset="0" />
    <rom name="v100_210.u23" merge="v100_210.u23" size="131072" crc="06c3dd29" sha1="20c9479f158467fc2037dcf162b6c6be18c91d46" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t1300.u21" merge="pgm_t1300.u21" size="8388608" crc="e748f0cb" sha1="5843bee3a17c33648ce904af2b98c6a90aff7393" region="tiles" offset="180000" />
    <rom name="pgm_a1300.u1" merge="pgm_a1300.u1" size="8388608" crc="fc87a405" sha1="115c21ecc56997652e527c92654076870bc9fa51" region="sprcol" offset="0" />
    <rom name="pgm_a1301.u2" merge="pgm_a1301.u2" size="8388608" crc="0c8520da" sha1="390317857ae5baa94a4cc042874b00a811f06a63" region="sprcol" offset="800000" />
    <rom name="pgm_b1300.u7" merge="pgm_b1300.u7" size="8388608" crc="ef646604" sha1="d737ff513792962f18df88c2caa9dd71de449079" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m1300.u5" merge="pgm_m1300.u5" size="4194304" crc="82d4015d" sha1="d4cdc1aec1c97cf23ff7a20ccaad822962e66ffa" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="270" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="ddp2101t" sourcefile="pgm.cpp" cloneof="ddp2" romof="ddp2">
    <description>DoDonPachi - Feng Bao (Taiwan, ver. 101)</description>
    <year>2001</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v101_16m.u8" size="2097152" crc="5e5786fd" sha1="c6fc2956b5dc6a97c0d7d808a8c58aa21fa023b9" region="maincpu" offset="100000" />
    <rom name="ddp2_igs027a_taiwan.bin" size="16384" crc="1dd34bdc" sha1="4f2ee38ee37d5cc63b2a63ef51bd392e4f18d836" region="prot" offset="0" />
    <rom name="v100_210.u23" merge="v100_210.u23" size="131072" crc="06c3dd29" sha1="20c9479f158467fc2037dcf162b6c6be18c91d46" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t1300.u21" merge="pgm_t1300.u21" size="8388608" crc="e748f0cb" sha1="5843bee3a17c33648ce904af2b98c6a90aff7393" region="tiles" offset="180000" />
    <rom name="pgm_a1300.u1" merge="pgm_a1300.u1" size="8388608" crc="fc87a405" sha1="115c21ecc56997652e527c92654076870bc9fa51" region="sprcol" offset="0" />
    <rom name="pgm_a1301.u2" merge="pgm_a1301.u2" size="8388608" crc="0c8520da" sha1="390317857ae5baa94a4cc042874b00a811f06a63" region="sprcol" offset="800000" />
    <rom name="pgm_b1300.u7" merge="pgm_b1300.u7" size="8388608" crc="ef646604" sha1="d737ff513792962f18df88c2caa9dd71de449079" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m1300.u5" merge="pgm_m1300.u5" size="4194304" crc="82d4015d" sha1="d4cdc1aec1c97cf23ff7a20ccaad822962e66ffa" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="270" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="ddp2c" sourcefile="pgm.cpp" cloneof="ddp2" romof="ddp2">
    <description>DoDonPachi - Feng Bao (China, ver. 102)</description>
    <year>2001</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v102.u8" merge="v102.u8" size="2097152" crc="5a9ea040" sha1="51eaec46c368f7cfc5245e64896092f52b1193e0" region="maincpu" offset="100000" />
    <rom name="ddp2_igs027a_china.bin" size="16384" crc="8c566319" sha1="bb001d8ada56bf446f9ab88e00936501652daf11" region="prot" offset="0" />
    <rom name="v100_210.u23" merge="v100_210.u23" size="131072" crc="06c3dd29" sha1="20c9479f158467fc2037dcf162b6c6be18c91d46" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t1300.u21" merge="pgm_t1300.u21" size="8388608" crc="e748f0cb" sha1="5843bee3a17c33648ce904af2b98c6a90aff7393" region="tiles" offset="180000" />
    <rom name="pgm_a1300.u1" merge="pgm_a1300.u1" size="8388608" crc="fc87a405" sha1="115c21ecc56997652e527c92654076870bc9fa51" region="sprcol" offset="0" />
    <rom name="pgm_a1301.u2" merge="pgm_a1301.u2" size="8388608" crc="0c8520da" sha1="390317857ae5baa94a4cc042874b00a811f06a63" region="sprcol" offset="800000" />
    <rom name="pgm_b1300.u7" merge="pgm_b1300.u7" size="8388608" crc="ef646604" sha1="d737ff513792962f18df88c2caa9dd71de449079" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m1300.u5" merge="pgm_m1300.u5" size="4194304" crc="82d4015d" sha1="d4cdc1aec1c97cf23ff7a20ccaad822962e66ffa" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="270" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="ddp2hk" sourcefile="pgm.cpp" cloneof="ddp2" romof="ddp2">
    <description>DoDonPachi II - Fung Bou (Hong Kong, ver. 102)</description>
    <year>2001</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v102.u8" merge="v102.u8" size="2097152" crc="5a9ea040" sha1="51eaec46c368f7cfc5245e64896092f52b1193e0" region="maincpu" offset="100000" />
    <rom name="ddp2_igs027a_hong_kong.bin" size="16384" crc="a7d1cace" sha1="b9391da52c8234ca0182484f33b5242827c51c76" region="prot" offset="0" />
    <rom name="v100_210.u23" merge="v100_210.u23" size="131072" crc="06c3dd29" sha1="20c9479f158467fc2037dcf162b6c6be18c91d46" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t1300.u21" merge="pgm_t1300.u21" size="8388608" crc="e748f0cb" sha1="5843bee3a17c33648ce904af2b98c6a90aff7393" region="tiles" offset="180000" />
    <rom name="pgm_a1300.u1" merge="pgm_a1300.u1" size="8388608" crc="fc87a405" sha1="115c21ecc56997652e527c92654076870bc9fa51" region="sprcol" offset="0" />
    <rom name="pgm_a1301.u2" merge="pgm_a1301.u2" size="8388608" crc="0c8520da" sha1="390317857ae5baa94a4cc042874b00a811f06a63" region="sprcol" offset="800000" />
    <rom name="pgm_b1300.u7" merge="pgm_b1300.u7" size="8388608" crc="ef646604" sha1="d737ff513792962f18df88c2caa9dd71de449079" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m1300.u5" merge="pgm_m1300.u5" size="4194304" crc="82d4015d" sha1="d4cdc1aec1c97cf23ff7a20ccaad822962e66ffa" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="270" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="ddp2j" sourcefile="pgm.cpp" cloneof="ddp2" romof="ddp2">
    <description>DoDonPachi II (Japan, ver. 102)</description>
    <year>2001</year>
    <manufacturer>IGS (Cave license)</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v102.u8" merge="v102.u8" size="2097152" crc="5a9ea040" sha1="51eaec46c368f7cfc5245e64896092f52b1193e0" region="maincpu" offset="100000" />
    <rom name="ddp2_igs027a_japan.bin" size="16384" crc="742d34d2" sha1="4491c08f3cefef2933ad5a741f4bb05cc2f3e1a0" region="prot" offset="0" />
    <rom name="v100_210.u23" merge="v100_210.u23" size="131072" crc="06c3dd29" sha1="20c9479f158467fc2037dcf162b6c6be18c91d46" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t1300.u21" merge="pgm_t1300.u21" size="8388608" crc="e748f0cb" sha1="5843bee3a17c33648ce904af2b98c6a90aff7393" region="tiles" offset="180000" />
    <rom name="pgm_a1300.u1" merge="pgm_a1300.u1" size="8388608" crc="fc87a405" sha1="115c21ecc56997652e527c92654076870bc9fa51" region="sprcol" offset="0" />
    <rom name="pgm_a1301.u2" merge="pgm_a1301.u2" size="8388608" crc="0c8520da" sha1="390317857ae5baa94a4cc042874b00a811f06a63" region="sprcol" offset="800000" />
    <rom name="pgm_b1300.u7" merge="pgm_b1300.u7" size="8388608" crc="ef646604" sha1="d737ff513792962f18df88c2caa9dd71de449079" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m1300.u5" merge="pgm_m1300.u5" size="4194304" crc="82d4015d" sha1="d4cdc1aec1c97cf23ff7a20ccaad822962e66ffa" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="270" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="ddp2k" sourcefile="pgm.cpp" cloneof="ddp2" romof="ddp2">
    <description>DoDonPachi II - Bee Storm (Korea, ver. 102)</description>
    <year>2001</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v102.u8" merge="v102.u8" size="2097152" crc="5a9ea040" sha1="51eaec46c368f7cfc5245e64896092f52b1193e0" region="maincpu" offset="100000" />
    <rom name="ddp2_igs027a_korea.bin" size="16384" crc="e5a81c17" sha1="cfe4e28a44a1b3a5c1c9e303941b335dbde7dd8d" region="prot" offset="0" />
    <rom name="v100_210.u23" merge="v100_210.u23" size="131072" crc="06c3dd29" sha1="20c9479f158467fc2037dcf162b6c6be18c91d46" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t1300.u21" merge="pgm_t1300.u21" size="8388608" crc="e748f0cb" sha1="5843bee3a17c33648ce904af2b98c6a90aff7393" region="tiles" offset="180000" />
    <rom name="pgm_a1300.u1" merge="pgm_a1300.u1" size="8388608" crc="fc87a405" sha1="115c21ecc56997652e527c92654076870bc9fa51" region="sprcol" offset="0" />
    <rom name="pgm_a1301.u2" merge="pgm_a1301.u2" size="8388608" crc="0c8520da" sha1="390317857ae5baa94a4cc042874b00a811f06a63" region="sprcol" offset="800000" />
    <rom name="pgm_b1300.u7" merge="pgm_b1300.u7" size="8388608" crc="ef646604" sha1="d737ff513792962f18df88c2caa9dd71de449079" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m1300.u5" merge="pgm_m1300.u5" size="4194304" crc="82d4015d" sha1="d4cdc1aec1c97cf23ff7a20ccaad822962e66ffa" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="270" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="ddp2t" sourcefile="pgm.cpp" cloneof="ddp2" romof="ddp2">
    <description>DoDonPachi - Feng Bao (Taiwan, ver. 102)</description>
    <year>2001</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v102.u8" merge="v102.u8" size="2097152" crc="5a9ea040" sha1="51eaec46c368f7cfc5245e64896092f52b1193e0" region="maincpu" offset="100000" />
    <rom name="ddp2_igs027a_taiwan.bin" size="16384" crc="1dd34bdc" sha1="4f2ee38ee37d5cc63b2a63ef51bd392e4f18d836" region="prot" offset="0" />
    <rom name="v100_210.u23" merge="v100_210.u23" size="131072" crc="06c3dd29" sha1="20c9479f158467fc2037dcf162b6c6be18c91d46" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t1300.u21" merge="pgm_t1300.u21" size="8388608" crc="e748f0cb" sha1="5843bee3a17c33648ce904af2b98c6a90aff7393" region="tiles" offset="180000" />
    <rom name="pgm_a1300.u1" merge="pgm_a1300.u1" size="8388608" crc="fc87a405" sha1="115c21ecc56997652e527c92654076870bc9fa51" region="sprcol" offset="0" />
    <rom name="pgm_a1301.u2" merge="pgm_a1301.u2" size="8388608" crc="0c8520da" sha1="390317857ae5baa94a4cc042874b00a811f06a63" region="sprcol" offset="800000" />
    <rom name="pgm_b1300.u7" merge="pgm_b1300.u7" size="8388608" crc="ef646604" sha1="d737ff513792962f18df88c2caa9dd71de449079" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m1300.u5" merge="pgm_m1300.u5" size="4194304" crc="82d4015d" sha1="d4cdc1aec1c97cf23ff7a20ccaad822962e66ffa" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="270" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="ddp3" sourcefile="pgm.cpp">
    <description>DoDonPachi III (World, 2002.05.15 Master Ver)</description>
    <year>2002</year>
    <manufacturer>Cave (AMI license)</manufacturer>
    <rom name="ddp3_bios.u37" size="524288" crc="b3cc5c8f" sha1="02d9511cf71e4a0d6ca8fd9a1ef2c79b0d001824" region="maincpu" offset="0" />
    <rom name="ddp3_v101_16m.u36" size="2097152" crc="fba2180e" sha1="59c1a76243e587c07215c8a76649401ef0bff7c7" region="maincpu" offset="100000" />
    <rom name="ddp3_igs027a.bin" size="16384" status="nodump" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="cave_t04401w064.u19" size="8388608" crc="3a95f19c" sha1="fd3c47cf0b8b1e20c6bec4be68a089fc8bbf4dbe" region="tiles" offset="180000" />
    <rom name="cave_a04401w064.u7" size="8388608" crc="ed229794" sha1="1cf1863495a18c7c7d277a9be43ec116b00960b0" region="sprcol" offset="0" />
    <rom name="cave_a04402w064.u8" size="8388608" crc="752167b0" sha1="c33c3398dd8e479c9d5bd348924958a6aecbf0fc" region="sprcol" offset="800000" />
    <rom name="cave_b04401w064.u1" size="8388608" crc="17731c9d" sha1="0e0aa0ec01035323985ac8e08228a0fd6edf6689" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="cave_m04401b032.u17" size="4194304" crc="5a0dbd76" sha1="06ab202f6bd5ebfb35b9d8cc7a8fb83ec8840659" region="ics" offset="400000" />
    <rom name="ddp3_defaults.nv" size="131072" crc="571e96c0" sha1="348940c77ca348213331b85b9b1d3aabb96a528a" region="sram" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="270" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <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" />
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="2">
      <diplocation name="SW1" number="2" />
      <dipvalue name="Off" value="2" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="4">
      <diplocation name="SW1" number="3" />
      <dipvalue name="Off" value="4" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="8">
      <diplocation name="SW1" number="4" />
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="16">
      <diplocation name="SW1" number="5" />
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="32">
      <diplocation name="SW1" number="6" />
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="64">
      <diplocation name="SW1" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="128">
      <diplocation name="SW1" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="ddpdoj" sourcefile="pgm.cpp" cloneof="ddp3" romof="ddp3">
    <description>DoDonPachi Dai-Ou-Jou (Japan, 2002.04.05.Master Ver, 68k Label V101)</description>
    <year>2002</year>
    <manufacturer>Cave (AMI license)</manufacturer>
    <rom name="ddp3_bios.u37" merge="ddp3_bios.u37" size="524288" crc="b3cc5c8f" sha1="02d9511cf71e4a0d6ca8fd9a1ef2c79b0d001824" region="maincpu" offset="0" />
    <rom name="ddp3_v101.u36" size="2097152" crc="195b5c1e" sha1="f18d791c034b0a3d85888a92fb5d326ee3deb04f" region="maincpu" offset="100000" />
    <rom name="ddp3_igs027a.bin" size="16384" status="nodump" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="cave_t04401w064.u19" merge="cave_t04401w064.u19" size="8388608" crc="3a95f19c" sha1="fd3c47cf0b8b1e20c6bec4be68a089fc8bbf4dbe" region="tiles" offset="180000" />
    <rom name="cave_a04401w064.u7" merge="cave_a04401w064.u7" size="8388608" crc="ed229794" sha1="1cf1863495a18c7c7d277a9be43ec116b00960b0" region="sprcol" offset="0" />
    <rom name="cave_a04402w064.u8" merge="cave_a04402w064.u8" size="8388608" crc="752167b0" sha1="c33c3398dd8e479c9d5bd348924958a6aecbf0fc" region="sprcol" offset="800000" />
    <rom name="cave_b04401w064.u1" merge="cave_b04401w064.u1" size="8388608" crc="17731c9d" sha1="0e0aa0ec01035323985ac8e08228a0fd6edf6689" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="cave_m04401b032.u17" merge="cave_m04401b032.u17" size="4194304" crc="5a0dbd76" sha1="06ab202f6bd5ebfb35b9d8cc7a8fb83ec8840659" region="ics" offset="400000" />
    <rom name="ddp3_defaults.nv" merge="ddp3_defaults.nv" size="131072" crc="571e96c0" sha1="348940c77ca348213331b85b9b1d3aabb96a528a" region="sram" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="270" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <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" />
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="2">
      <diplocation name="SW1" number="2" />
      <dipvalue name="Off" value="2" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="4">
      <diplocation name="SW1" number="3" />
      <dipvalue name="Off" value="4" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="8">
      <diplocation name="SW1" number="4" />
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="16">
      <diplocation name="SW1" number="5" />
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="32">
      <diplocation name="SW1" number="6" />
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="64">
      <diplocation name="SW1" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="128">
      <diplocation name="SW1" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="ddpdoja" sourcefile="pgm.cpp" cloneof="ddp3" romof="ddp3">
    <description>DoDonPachi Dai-Ou-Jou (Japan, 2002.04.05.Master Ver, 68k Label V100)</description>
    <year>2002</year>
    <manufacturer>Cave (AMI license)</manufacturer>
    <rom name="ddp3_bios.u37" merge="ddp3_bios.u37" size="524288" crc="b3cc5c8f" sha1="02d9511cf71e4a0d6ca8fd9a1ef2c79b0d001824" region="maincpu" offset="0" />
    <rom name="ddp3_d_d_1_0.u36" size="2097152" crc="5d3f85ba" sha1="4c24ea206140863d456179750366921442e1d2b8" region="maincpu" offset="100000" />
    <rom name="ddp3_igs027a.bin" size="16384" status="nodump" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="cave_t04401w064.u19" merge="cave_t04401w064.u19" size="8388608" crc="3a95f19c" sha1="fd3c47cf0b8b1e20c6bec4be68a089fc8bbf4dbe" region="tiles" offset="180000" />
    <rom name="cave_a04401w064.u7" merge="cave_a04401w064.u7" size="8388608" crc="ed229794" sha1="1cf1863495a18c7c7d277a9be43ec116b00960b0" region="sprcol" offset="0" />
    <rom name="cave_a04402w064.u8" merge="cave_a04402w064.u8" size="8388608" crc="752167b0" sha1="c33c3398dd8e479c9d5bd348924958a6aecbf0fc" region="sprcol" offset="800000" />
    <rom name="cave_b04401w064.u1" merge="cave_b04401w064.u1" size="8388608" crc="17731c9d" sha1="0e0aa0ec01035323985ac8e08228a0fd6edf6689" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="cave_m04401b032.u17" merge="cave_m04401b032.u17" size="4194304" crc="5a0dbd76" sha1="06ab202f6bd5ebfb35b9d8cc7a8fb83ec8840659" region="ics" offset="400000" />
    <rom name="ddp3_defaults.nv" merge="ddp3_defaults.nv" size="131072" crc="571e96c0" sha1="348940c77ca348213331b85b9b1d3aabb96a528a" region="sram" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="270" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <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" />
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="2">
      <diplocation name="SW1" number="2" />
      <dipvalue name="Off" value="2" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="4">
      <diplocation name="SW1" number="3" />
      <dipvalue name="Off" value="4" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="8">
      <diplocation name="SW1" number="4" />
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="16">
      <diplocation name="SW1" number="5" />
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="32">
      <diplocation name="SW1" number="6" />
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="64">
      <diplocation name="SW1" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="128">
      <diplocation name="SW1" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="ddpdojb" sourcefile="pgm.cpp" cloneof="ddp3" romof="ddp3">
    <description>DoDonPachi Dai-Ou-Jou (Japan, 2002.04.05 Master Ver)</description>
    <year>2002</year>
    <manufacturer>Cave (AMI license)</manufacturer>
    <rom name="ddp3_bios.u37" merge="ddp3_bios.u37" size="524288" crc="b3cc5c8f" sha1="02d9511cf71e4a0d6ca8fd9a1ef2c79b0d001824" region="maincpu" offset="0" />
    <rom name="dd_v100.u36" size="2097152" crc="7da0c1e4" sha1="aca2fe35ba0ab3628900fa2aba2d22fc4fd7046d" region="maincpu" offset="100000" />
    <rom name="ddp3_igs027a.bin" size="16384" status="nodump" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="cave_t04401w064.u19" merge="cave_t04401w064.u19" size="8388608" crc="3a95f19c" sha1="fd3c47cf0b8b1e20c6bec4be68a089fc8bbf4dbe" region="tiles" offset="180000" />
    <rom name="cave_a04401w064.u7" merge="cave_a04401w064.u7" size="8388608" crc="ed229794" sha1="1cf1863495a18c7c7d277a9be43ec116b00960b0" region="sprcol" offset="0" />
    <rom name="cave_a04402w064.u8" merge="cave_a04402w064.u8" size="8388608" crc="752167b0" sha1="c33c3398dd8e479c9d5bd348924958a6aecbf0fc" region="sprcol" offset="800000" />
    <rom name="cave_b04401w064.u1" merge="cave_b04401w064.u1" size="8388608" crc="17731c9d" sha1="0e0aa0ec01035323985ac8e08228a0fd6edf6689" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="cave_m04401b032.u17" merge="cave_m04401b032.u17" size="4194304" crc="5a0dbd76" sha1="06ab202f6bd5ebfb35b9d8cc7a8fb83ec8840659" region="ics" offset="400000" />
    <rom name="ddp3_defaults.nv" merge="ddp3_defaults.nv" size="131072" crc="571e96c0" sha1="348940c77ca348213331b85b9b1d3aabb96a528a" region="sram" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="270" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <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" />
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="2">
      <diplocation name="SW1" number="2" />
      <dipvalue name="Off" value="2" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="4">
      <diplocation name="SW1" number="3" />
      <dipvalue name="Off" value="4" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="8">
      <diplocation name="SW1" number="4" />
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="16">
      <diplocation name="SW1" number="5" />
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="32">
      <diplocation name="SW1" number="6" />
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="64">
      <diplocation name="SW1" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="128">
      <diplocation name="SW1" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="ddpdojblk" sourcefile="pgm.cpp" cloneof="ddp3" romof="ddp3">
    <description>DoDonPachi Dai-Ou-Jou Black Label (Japan, 2002.10.07.Black Ver)</description>
    <year>2002</year>
    <manufacturer>Cave (AMI license)</manufacturer>
    <rom name="ddp3_bios.u37" merge="ddp3_bios.u37" size="524288" crc="b3cc5c8f" sha1="02d9511cf71e4a0d6ca8fd9a1ef2c79b0d001824" region="maincpu" offset="0" />
    <rom name="ddb_1dot.u45" size="2097152" crc="265f26cd" sha1="91abc7fc4722f3d01d76a4c1ae14c4132e4e576c" region="maincpu" offset="100000" />
    <rom name="ddp3_igs027a.bin" size="16384" status="nodump" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="cave_t04401w064.u19" merge="cave_t04401w064.u19" size="8388608" crc="3a95f19c" sha1="fd3c47cf0b8b1e20c6bec4be68a089fc8bbf4dbe" region="tiles" offset="180000" />
    <rom name="cave_a04401w064.u7" merge="cave_a04401w064.u7" size="8388608" crc="ed229794" sha1="1cf1863495a18c7c7d277a9be43ec116b00960b0" region="sprcol" offset="0" />
    <rom name="cave_a04402w064.u8" merge="cave_a04402w064.u8" size="8388608" crc="752167b0" sha1="c33c3398dd8e479c9d5bd348924958a6aecbf0fc" region="sprcol" offset="800000" />
    <rom name="cave_b04401w064.u1" merge="cave_b04401w064.u1" size="8388608" crc="17731c9d" sha1="0e0aa0ec01035323985ac8e08228a0fd6edf6689" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="cave_m04401b032.u17" merge="cave_m04401b032.u17" size="4194304" crc="5a0dbd76" sha1="06ab202f6bd5ebfb35b9d8cc7a8fb83ec8840659" region="ics" offset="400000" />
    <rom name="ddp3blk_defaults.nv" size="131072" crc="a1651904" sha1="5b80d3c4c764895c40953a66161d4dd84f742604" region="sram" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="270" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <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" />
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="2">
      <diplocation name="SW1" number="2" />
      <dipvalue name="Off" value="2" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="4">
      <diplocation name="SW1" number="3" />
      <dipvalue name="Off" value="4" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="8">
      <diplocation name="SW1" number="4" />
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="16">
      <diplocation name="SW1" number="5" />
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="32">
      <diplocation name="SW1" number="6" />
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="64">
      <diplocation name="SW1" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="128">
      <diplocation name="SW1" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="ddpdojblka" sourcefile="pgm.cpp" cloneof="ddp3" romof="ddp3">
    <description>DoDonPachi Dai-Ou-Jou Black Label (Japan, 2002.10.07 Black Ver)</description>
    <year>2002</year>
    <manufacturer>Cave (AMI license)</manufacturer>
    <rom name="ddp3_bios.u37" merge="ddp3_bios.u37" size="524288" crc="b3cc5c8f" sha1="02d9511cf71e4a0d6ca8fd9a1ef2c79b0d001824" region="maincpu" offset="0" />
    <rom name="ddb10.u45" size="2097152" crc="72b35510" sha1="9a432e5e1ebe61aafd737b6acc905653e5af0d38" region="maincpu" offset="100000" />
    <rom name="ddp3_igs027a.bin" size="16384" status="nodump" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="cave_t04401w064.u19" merge="cave_t04401w064.u19" size="8388608" crc="3a95f19c" sha1="fd3c47cf0b8b1e20c6bec4be68a089fc8bbf4dbe" region="tiles" offset="180000" />
    <rom name="cave_a04401w064.u7" merge="cave_a04401w064.u7" size="8388608" crc="ed229794" sha1="1cf1863495a18c7c7d277a9be43ec116b00960b0" region="sprcol" offset="0" />
    <rom name="cave_a04402w064.u8" merge="cave_a04402w064.u8" size="8388608" crc="752167b0" sha1="c33c3398dd8e479c9d5bd348924958a6aecbf0fc" region="sprcol" offset="800000" />
    <rom name="cave_b04401w064.u1" merge="cave_b04401w064.u1" size="8388608" crc="17731c9d" sha1="0e0aa0ec01035323985ac8e08228a0fd6edf6689" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="cave_m04401b032.u17" merge="cave_m04401b032.u17" size="4194304" crc="5a0dbd76" sha1="06ab202f6bd5ebfb35b9d8cc7a8fb83ec8840659" region="ics" offset="400000" />
    <rom name="ddp3blk_defaults.nv" size="131072" crc="a1651904" sha1="5b80d3c4c764895c40953a66161d4dd84f742604" region="sram" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="270" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <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" />
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="2">
      <diplocation name="SW1" number="2" />
      <dipvalue name="Off" value="2" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="4">
      <diplocation name="SW1" number="3" />
      <dipvalue name="Off" value="4" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="8">
      <diplocation name="SW1" number="4" />
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="16">
      <diplocation name="SW1" number="5" />
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="32">
      <diplocation name="SW1" number="6" />
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="64">
      <diplocation name="SW1" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="128">
      <diplocation name="SW1" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="ddpdojblkbl" sourcefile="pgm.cpp" cloneof="ddp3" romof="ddp3">
    <description>DoDonPachi Dai-Ou-Jou Black Label (Japan, 2002.10.07 Black Ver., bootleg Knights of Valour Super Heroes conversion)</description>
    <year>2012</year>
    <manufacturer>bootleg</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="ddp_doj_u1.bin" size="4194304" crc="eb4ab06a" sha1="187c37e5319395e36a1cf3626b53e08df615cc0c" region="maincpu" offset="100000" />
    <rom name="kovsh_v100_china.asic" size="16384" crc="0f09a5c1" sha1="621b38c05f33277608d58b49822aebc930ae4870" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="t04401w064.u19" merge="cave_t04401w064.u19" size="8388608" crc="3a95f19c" sha1="fd3c47cf0b8b1e20c6bec4be68a089fc8bbf4dbe" region="tiles" offset="180000" />
    <rom name="a04401w064.u7" merge="cave_a04401w064.u7" size="8388608" crc="ed229794" sha1="1cf1863495a18c7c7d277a9be43ec116b00960b0" region="sprcol" offset="0" />
    <rom name="a04402w064.u8" merge="cave_a04402w064.u8" size="8388608" crc="752167b0" sha1="c33c3398dd8e479c9d5bd348924958a6aecbf0fc" region="sprcol" offset="800000" />
    <rom name="b04401w064_corrupt.u1" size="8388608" crc="8cbff066" sha1="eef1cd566bc70ebf45f047e56026803d5c1dac43" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="m04401b032.u17" merge="cave_m04401b032.u17" size="4194304" crc="5a0dbd76" sha1="06ab202f6bd5ebfb35b9d8cc7a8fb83ec8840659" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="270" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="ddpdojp" sourcefile="pgm.cpp" cloneof="ddp3" romof="ddp3">
    <description>DoDonPachi Dai-Ou-Jou (Japan, 2002.04.05 Master Ver, location test)</description>
    <year>2002</year>
    <manufacturer>Cave (AMI license)</manufacturer>
    <rom name="pgmbios.u20.27c210" size="131072" crc="1d2a7c15" sha1="025a9f2bb64887699bf7ccab0f2ccfc55c3ad75c" region="maincpu" offset="0" />
    <rom name="ca008.cod_prom.u13.27c322" size="4194304" crc="2ba7fa3b" sha1="c4c5425a2455cb95555d94bbf8afc83cf0b140e8" region="maincpu" offset="100000" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="fnt_cg.0_cgrom0.u8.27c322" size="4194304" crc="1805e198" sha1="23db96eddfb47dfef9dcfab52ae2582ad3c0fc90" region="tiles" offset="180000" />
    <rom name="fnt_cg.1_cgrom1.u10.27c322" size="4194304" crc="f06ce99c" sha1="24482e2bb2485855e300b6b3e07962d4f0a6ab83" region="tiles" offset="580000" />
    <rom name="sp_cg.0_imcs0.u11.27c322" size="4194304" crc="c66bdd8e" sha1="dde26821a3ef8ad5c3c29e11c55f8f6953c085dd" region="sprcol" offset="0" />
    <rom name="sp_cg.1_imcs1.u13.27c322" size="4194304" crc="d30eac89" sha1="78b18ff71136df0ffadb87fc53b60943dd62bcdd" region="sprcol" offset="400000" />
    <rom name="sp_cg.2_imcs2.u15.27c322" size="4194304" crc="f31b010e" sha1="1987e9cd2abcf57be990853fbd305474e58da5b8" region="sprcol" offset="800000" />
    <rom name="sp_cg.3_imcs3.u17.27c322" size="4194304" crc="01ec23f5" sha1="ff22642f914b0f8911a221df1e9073bdc9434660" region="sprcol" offset="c00000" />
    <rom name="sp_mp.0_bitcs0.u5.27c322" size="4194304" crc="e30494a4" sha1="12d216252a916be4fd8d77b89497cee9b04861e5" region="sprmask" offset="0" />
    <rom name="sp_mp.1_bitcs1.u6.27c322" size="4194304" crc="0239daec" sha1="506c4d8a4bfa988d81565c47f742f1b06175915e" region="sprmask" offset="400000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="sndmask.rom_mcs1.u3.27c322" merge="cave_m04401b032.u17" size="4194304" crc="5a0dbd76" sha1="06ab202f6bd5ebfb35b9d8cc7a8fb83ec8840659" region="ics" offset="400000" />
    <rom name="ddp3_defaults.nv" merge="ddp3_defaults.nv" size="131072" crc="571e96c0" sha1="348940c77ca348213331b85b9b1d3aabb96a528a" region="sram" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="270" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <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" />
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="2">
      <diplocation name="SW1" number="2" />
      <dipvalue name="Off" value="2" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="4">
      <diplocation name="SW1" number="3" />
      <dipvalue name="Off" value="4" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="8">
      <diplocation name="SW1" number="4" />
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="16">
      <diplocation name="SW1" number="5" />
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="32">
      <diplocation name="SW1" number="6" />
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="64">
      <diplocation name="SW1" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="128">
      <diplocation name="SW1" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="dmnfrnt" sourcefile="pgm.cpp" romof="pgm">
    <description>Demon Front / Moyu Zhanxian (68k label V105, ROM M105XX 08/05/02) (ARM label V105, ROM 08/05/02 S105XX)</description>
    <year>2002</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v105_16m.u5" size="2097152" crc="bda083bd" sha1="58d6438737a2c43aa8bbcb7f34fb51375b781b1c" region="maincpu" offset="100000" />
    <rom name="dmnfrnt_igs027a.bin" size="16384" status="nodump" region="prot" offset="0" />
    <rom name="v105_32m.u26" size="4194304" crc="c798c2ef" sha1="91e364c33b935293fa765ca521cdb67ac45ec70f" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="igs_t04501w064.u29" size="8388608" crc="900eaaac" sha1="4033cb7b28fcadb92d5af3ea7fdd1c22747618fd" region="tiles" offset="180000" />
    <rom name="igs_a04501w064.u3" size="8388608" crc="9741bea6" sha1="e3e904249be228628c8c2bd3495cda23586dc048" region="sprcol" offset="0" />
    <rom name="igs_a04502w064.u4" size="8388608" crc="e104f405" sha1="124b3deed3e838f8bae6c7d78bdd788859597585" region="sprcol" offset="800000" />
    <rom name="igs_a04503w064.u6" size="8388608" crc="bfd5cfe3" sha1="fbe4c0a2987c2036df707b86597d78124ee2e665" region="sprcol" offset="1000000" />
    <rom name="igs_b04501w064.u9" size="8388608" crc="29320b7d" sha1="59c78805e666f912df201c34616744f46057937b" region="sprmask" offset="0" />
    <rom name="igs_b04502w016.u11" size="2097152" crc="578c00e9" sha1="14235cc8b0f8c7dd659512f017a2d4aacd91d89d" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="igs_w04501b064.u5" size="8388608" crc="3ab58137" sha1="b221f7e551ff0bfa3fd97b6ebedbac69442a66e9" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="22000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="dmnfrnt102" sourcefile="pgm.cpp" cloneof="dmnfrnt" romof="dmnfrnt">
    <description>Demon Front / Moyu Zhanxian (68k label V102, ROM M102XX 06/19/02) (ARM label V102, ROM 05/24/02 S101XX)</description>
    <year>2002</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v102_16m.u5" size="2097152" crc="3d4d481a" sha1="95953b8f31343389405cc722b4177ff5adf67b62" region="maincpu" offset="100000" />
    <rom name="dmnfrnt_igs027a.bin" size="16384" status="nodump" region="prot" offset="0" />
    <rom name="v101_32m.u26" size="4194304" crc="93965281" sha1="89da198aaa7ca759cb96b5f18859a477e55fd590" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="igs_t04501w064.u29" merge="igs_t04501w064.u29" size="8388608" crc="900eaaac" sha1="4033cb7b28fcadb92d5af3ea7fdd1c22747618fd" region="tiles" offset="180000" />
    <rom name="igs_a04501w064.u3" merge="igs_a04501w064.u3" size="8388608" crc="9741bea6" sha1="e3e904249be228628c8c2bd3495cda23586dc048" region="sprcol" offset="0" />
    <rom name="igs_a04502w064.u4" merge="igs_a04502w064.u4" size="8388608" crc="e104f405" sha1="124b3deed3e838f8bae6c7d78bdd788859597585" region="sprcol" offset="800000" />
    <rom name="igs_a04503w064.u6" merge="igs_a04503w064.u6" size="8388608" crc="bfd5cfe3" sha1="fbe4c0a2987c2036df707b86597d78124ee2e665" region="sprcol" offset="1000000" />
    <rom name="igs_b04501w064.u9" merge="igs_b04501w064.u9" size="8388608" crc="29320b7d" sha1="59c78805e666f912df201c34616744f46057937b" region="sprmask" offset="0" />
    <rom name="igs_b04502w016.u11" merge="igs_b04502w016.u11" size="2097152" crc="578c00e9" sha1="14235cc8b0f8c7dd659512f017a2d4aacd91d89d" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="igs_w04501b064.u5" merge="igs_w04501b064.u5" size="8388608" crc="3ab58137" sha1="b221f7e551ff0bfa3fd97b6ebedbac69442a66e9" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="22000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="dmnfrnt103" sourcefile="pgm.cpp" cloneof="dmnfrnt" romof="dmnfrnt">
    <description>Demon Front / Moyu Zhanxian (68k label V103, ROM M103XX 07/05/02) (ARM label V103, ROM 07/05/02 S103XX)</description>
    <year>2002</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v103_16m.u5" size="2097152" crc="2ddafb3d" sha1="c7d22e007952459de6d23a42ce32aab67b493fc3" region="maincpu" offset="100000" />
    <rom name="dmnfrnt_igs027a.bin" size="16384" status="nodump" region="prot" offset="0" />
    <rom name="v103_32m.u26" size="4194304" crc="e78383a3" sha1="7ae99e93489e79fb1e4240124d22b6002fb7fe18" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="igs_t04501w064.u29" merge="igs_t04501w064.u29" size="8388608" crc="900eaaac" sha1="4033cb7b28fcadb92d5af3ea7fdd1c22747618fd" region="tiles" offset="180000" />
    <rom name="igs_a04501w064.u3" merge="igs_a04501w064.u3" size="8388608" crc="9741bea6" sha1="e3e904249be228628c8c2bd3495cda23586dc048" region="sprcol" offset="0" />
    <rom name="igs_a04502w064.u4" merge="igs_a04502w064.u4" size="8388608" crc="e104f405" sha1="124b3deed3e838f8bae6c7d78bdd788859597585" region="sprcol" offset="800000" />
    <rom name="igs_a04503w064.u6" merge="igs_a04503w064.u6" size="8388608" crc="bfd5cfe3" sha1="fbe4c0a2987c2036df707b86597d78124ee2e665" region="sprcol" offset="1000000" />
    <rom name="igs_b04501w064.u9" merge="igs_b04501w064.u9" size="8388608" crc="29320b7d" sha1="59c78805e666f912df201c34616744f46057937b" region="sprmask" offset="0" />
    <rom name="igs_b04502w016.u11" merge="igs_b04502w016.u11" size="2097152" crc="578c00e9" sha1="14235cc8b0f8c7dd659512f017a2d4aacd91d89d" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="igs_w04501b064.u5" merge="igs_w04501b064.u5" size="8388608" crc="3ab58137" sha1="b221f7e551ff0bfa3fd97b6ebedbac69442a66e9" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="22000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="dmnfrntpcb" sourcefile="pgm.cpp" cloneof="dmnfrnt" romof="dmnfrnt">
    <description>Demon Front V1.1 / Moyu Zhanxian V1.1 (68k label V107KR, ROM M107KR 11/03/03) (ARM label V106KR, ROM 10/16/03 S106KR) (JAMMA PCB)</description>
    <year>2002</year>
    <manufacturer>IGS</manufacturer>
    <rom name="pgm_p02s.u42" merge="pgm_p02s.u20" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="demonfront_v107kr_u43.u43" size="2097152" crc="671d8a31" sha1="a0c2af67d7c56b4b355883892a47640fc72408a1" region="maincpu" offset="100000" />
    <rom name="dmnfrnt_igs027a.bin" size="16384" status="nodump" region="prot" offset="0" />
    <rom name="demonfront_v107kr_u62.u62" size="4194304" crc="cb94772e" sha1="4213600be41fd9ea295dd308920b1d89b635724f" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="igs_t04501w064.u71" merge="igs_t04501w064.u29" size="8388608" crc="900eaaac" sha1="4033cb7b28fcadb92d5af3ea7fdd1c22747618fd" region="tiles" offset="180000" />
    <rom name="igs_a04501w064.u30" merge="igs_a04501w064.u3" size="8388608" crc="9741bea6" sha1="e3e904249be228628c8c2bd3495cda23586dc048" region="sprcol" offset="0" />
    <rom name="igs_a04502w064.u31" merge="igs_a04502w064.u4" size="8388608" crc="e104f405" sha1="124b3deed3e838f8bae6c7d78bdd788859597585" region="sprcol" offset="800000" />
    <rom name="igs_a04503w064.u32" merge="igs_a04503w064.u6" size="8388608" crc="bfd5cfe3" sha1="fbe4c0a2987c2036df707b86597d78124ee2e665" region="sprcol" offset="1000000" />
    <rom name="igs_b04501w064.u40" merge="igs_b04501w064.u9" size="8388608" crc="29320b7d" sha1="59c78805e666f912df201c34616744f46057937b" region="sprmask" offset="0" />
    <rom name="igs_b04502w016.u41" merge="igs_b04502w016.u11" size="2097152" crc="578c00e9" sha1="14235cc8b0f8c7dd659512f017a2d4aacd91d89d" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="igs_w04501b064.u8" merge="igs_w04501b064.u5" size="8388608" crc="3ab58137" sha1="b221f7e551ff0bfa3fd97b6ebedbac69442a66e9" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="24000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="preliminary" emulation="preliminary" savestate="supported" />
    <feature type="protection" status="imperfect" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="drgw2" sourcefile="pgm.cpp" romof="pgm">
    <description>Dragon World II (ver. 110X, Export)</description>
    <year>1997</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="dragon_ii_v-110x.u2" size="524288" crc="1978106b" sha1="af8a13d7783b755a58762c98bdc32cab845b2251" region="maincpu" offset="100000" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0200.u7" size="4194304" crc="b0f6534d" sha1="174cacd81169a0e0d14790ac06d03caed737e05d" region="tiles" offset="180000" />
    <rom name="pgm_a0200.u5" size="4194304" crc="13b95069" sha1="4888b06002afb18eab81c010e9362629045767af" region="sprcol" offset="0" />
    <rom name="pgm_b0200.u9" size="4194304" crc="932d0f13" sha1="4b8e008f9c617cb2b95effeb81abc065b30e5c86" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="igs025" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="drgw2100c" sourcefile="pgm.cpp" cloneof="drgw2" romof="drgw2">
    <description>Zhongguo Long II (ver. 100C, China)</description>
    <year>1997</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="dragon_ii_v-100c.u2" size="524288" crc="67467981" sha1="58af01a3871b6179fe42ff471cc39a2161940043" region="maincpu" offset="100000" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0200.u7" merge="pgm_t0200.u7" size="4194304" crc="b0f6534d" sha1="174cacd81169a0e0d14790ac06d03caed737e05d" region="tiles" offset="180000" />
    <rom name="pgm_a0200.u5" merge="pgm_a0200.u5" size="4194304" crc="13b95069" sha1="4888b06002afb18eab81c010e9362629045767af" region="sprcol" offset="0" />
    <rom name="pgm_b0200.u9" merge="pgm_b0200.u9" size="4194304" crc="932d0f13" sha1="4b8e008f9c617cb2b95effeb81abc065b30e5c86" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="igs025" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="drgw2100hk" sourcefile="pgm.cpp" cloneof="drgw2" romof="drgw2">
    <description>Dungfong Zi Zyu II (ver. 100H, Hong Kong)</description>
    <year>1997</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="dragon_ii_v-100-h.u2" size="524288" crc="c6e2e6ec" sha1="84145dfb26857ea20efb233363f175bc9bb25b0c" region="maincpu" offset="100000" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0200.u7" merge="pgm_t0200.u7" size="4194304" crc="b0f6534d" sha1="174cacd81169a0e0d14790ac06d03caed737e05d" region="tiles" offset="180000" />
    <rom name="pgm_a0200.u5" merge="pgm_a0200.u5" size="4194304" crc="13b95069" sha1="4888b06002afb18eab81c010e9362629045767af" region="sprcol" offset="0" />
    <rom name="pgm_b0200.u9" merge="pgm_b0200.u9" size="4194304" crc="932d0f13" sha1="4b8e008f9c617cb2b95effeb81abc065b30e5c86" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="igs025" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="preliminary" emulation="preliminary" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="drgw2100j" sourcefile="pgm.cpp" cloneof="drgw2" romof="drgw2">
    <description>Chuugokuryuu II (ver. 100J, Japan)</description>
    <year>1997</year>
    <manufacturer>IGS (Alta license)</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="dragon_ii_v-100j.u2" size="524288" crc="f8f8393e" sha1="ef0db668b4e4f661d4c1e95d57afe881bcdf13cc" region="maincpu" offset="100000" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0200.u7" merge="pgm_t0200.u7" size="4194304" crc="b0f6534d" sha1="174cacd81169a0e0d14790ac06d03caed737e05d" region="tiles" offset="180000" />
    <rom name="pgm_a0200.u5" merge="pgm_a0200.u5" size="4194304" crc="13b95069" sha1="4888b06002afb18eab81c010e9362629045767af" region="sprcol" offset="0" />
    <rom name="pgm_b0200.u9" merge="pgm_b0200.u9" size="4194304" crc="932d0f13" sha1="4b8e008f9c617cb2b95effeb81abc065b30e5c86" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="igs025" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="drgw2100x" sourcefile="pgm.cpp" cloneof="drgw2" romof="drgw2">
    <description>Dragon World II (ver. 100X, Export)</description>
    <year>1997</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="dragon_ii_v-100x.u2" size="524288" crc="5e71851d" sha1="62052469f69daec88efd26652c1b893d6f981912" region="maincpu" offset="100000" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0200.u7" merge="pgm_t0200.u7" size="4194304" crc="b0f6534d" sha1="174cacd81169a0e0d14790ac06d03caed737e05d" region="tiles" offset="180000" />
    <rom name="pgm_a0200.u5" merge="pgm_a0200.u5" size="4194304" crc="13b95069" sha1="4888b06002afb18eab81c010e9362629045767af" region="sprcol" offset="0" />
    <rom name="pgm_b0200.u9" merge="pgm_b0200.u9" size="4194304" crc="932d0f13" sha1="4b8e008f9c617cb2b95effeb81abc065b30e5c86" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="igs025" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="drgw2101c" sourcefile="pgm.cpp" cloneof="drgw2" romof="drgw2">
    <description>Zhongguo Long II (ver. 101C, China)</description>
    <year>1997</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="dragon_ii_v-101c.u2" size="524288" crc="b0c592fa" sha1="87ccfdb940303ebcf42cb2952aecae97648c1e0d" region="maincpu" offset="100000" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0200.u7" merge="pgm_t0200.u7" size="4194304" crc="b0f6534d" sha1="174cacd81169a0e0d14790ac06d03caed737e05d" region="tiles" offset="180000" />
    <rom name="pgm_a0200.u5" merge="pgm_a0200.u5" size="4194304" crc="13b95069" sha1="4888b06002afb18eab81c010e9362629045767af" region="sprcol" offset="0" />
    <rom name="pgm_b0200.u9" merge="pgm_b0200.u9" size="4194304" crc="932d0f13" sha1="4b8e008f9c617cb2b95effeb81abc065b30e5c86" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="igs025" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="drgw3" sourcefile="pgm.cpp" romof="pgm">
    <description>Dragon World 3 / Zhongguo Long 3 / Dungfong Zi Zyu 3 / Chuugokuryuu 3 Special (ver. 106)</description>
    <year>1998</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="dw3_v106_u12.u12" size="524288" crc="c3f6838b" sha1="c135b1d4dd62af308139d40d03c29be7508fb1e7" region="maincpu" offset="100001" />
    <rom name="dw3_v106_u13.u13" size="524288" crc="28284e22" sha1="4643a69881ddb7383ca10f3eb2aa2cf41be39e9f" region="maincpu" offset="100000" />
    <rom name="dw3_text_u15.u15" size="65536" crc="03dc4fdf" sha1="b329b04325d4f725231b1bb7862eedef2319b652" region="igs022" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0400.u18" size="4194304" crc="b70f3357" sha1="8733969d7d21f540f295a9f747a4bb8f0d325cf0" region="tiles" offset="180000" />
    <rom name="pgm_a0400.u9" size="4194304" crc="dd7bfd40" sha1="fb7ec5bf89a413c5208716083762a725ff63f5db" region="sprcol" offset="0" />
    <rom name="pgm_a0401.u10" size="4194304" crc="cab6557f" sha1="1904dd86645eea27ac1ab8a2462b20f6531356f8" region="sprcol" offset="400000" />
    <rom name="pgm_b0400.u13" size="4194304" crc="4bb87cc0" sha1="71b2dc43fd11f7a6dffaba501e4e344b843583d8" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m0400.u1" size="4194304" crc="031eb9ce" sha1="0673ec194732becc6648c2ae1396e894aa269f9a" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="igs025" />
    <device_ref name="igs022" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="Region" mask="15">
      <confsetting name="Japan" value="1" />
      <confsetting name="Korea" value="2" />
      <confsetting name="Taiwan" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="China" value="5" />
      <confsetting name="World" value="6" default="yes" />
      <confsetting name="Singapore" value="7" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="preliminary" emulation="good" savestate="supported" />
    <feature type="protection" status="imperfect" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="drgw3100" sourcefile="pgm.cpp" cloneof="drgw3" romof="drgw3">
    <description>Chuugokuryuu 3 Special (Japan, ver. 100)</description>
    <year>1998</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="dw3_v100_u12.u12" size="524288" crc="47243906" sha1="9cd46e3cba97f049bcb238ceb6edf27a760ef831" region="maincpu" offset="100001" />
    <rom name="dw3_v100_u13.u13" size="524288" crc="b7cded21" sha1="c1ae2af2e42227503c81bbcd2bd6862aa416bd78" region="maincpu" offset="100000" />
    <rom name="dw3_v100_u15.u15" merge="dw3_text_u15.u15" size="65536" crc="03dc4fdf" sha1="b329b04325d4f725231b1bb7862eedef2319b652" region="igs022" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0400.u18" merge="pgm_t0400.u18" size="4194304" crc="b70f3357" sha1="8733969d7d21f540f295a9f747a4bb8f0d325cf0" region="tiles" offset="180000" />
    <rom name="pgm_a0400.u9" merge="pgm_a0400.u9" size="4194304" crc="dd7bfd40" sha1="fb7ec5bf89a413c5208716083762a725ff63f5db" region="sprcol" offset="0" />
    <rom name="pgm_a0401.u10" merge="pgm_a0401.u10" size="4194304" crc="cab6557f" sha1="1904dd86645eea27ac1ab8a2462b20f6531356f8" region="sprcol" offset="400000" />
    <rom name="pgm_b0400.u13" merge="pgm_b0400.u13" size="4194304" crc="4bb87cc0" sha1="71b2dc43fd11f7a6dffaba501e4e344b843583d8" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m0400.u1" merge="pgm_m0400.u1" size="4194304" crc="031eb9ce" sha1="0673ec194732becc6648c2ae1396e894aa269f9a" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="igs025" />
    <device_ref name="igs022" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="Region" mask="15">
      <confsetting name="Japan" value="1" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="preliminary" emulation="good" savestate="supported" />
    <feature type="protection" status="imperfect" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="drgw3103" sourcefile="pgm.cpp" cloneof="drgw3" romof="drgw3">
    <description>Chuugokuryuu 3 Special (Japan, ver. 103)</description>
    <year>1998</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="dragon_iii_v103j_u12.u12" size="524288" crc="275b39a2" sha1="8ba4d2601734c2dda3d4269fbe8f543dc3f0b212" region="maincpu" offset="100001" />
    <rom name="dragon_iii_v103j_u13.u13" size="524288" crc="9aa56e8f" sha1="c3f27d8b59adf72040a2e2c11e34f9b07efd7e9e" region="maincpu" offset="100000" />
    <rom name="dw3_v100_u15.u15" merge="dw3_text_u15.u15" size="65536" crc="03dc4fdf" sha1="b329b04325d4f725231b1bb7862eedef2319b652" region="igs022" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0400.u18" merge="pgm_t0400.u18" size="4194304" crc="b70f3357" sha1="8733969d7d21f540f295a9f747a4bb8f0d325cf0" region="tiles" offset="180000" />
    <rom name="pgm_a0400.u9" merge="pgm_a0400.u9" size="4194304" crc="dd7bfd40" sha1="fb7ec5bf89a413c5208716083762a725ff63f5db" region="sprcol" offset="0" />
    <rom name="pgm_a0401.u10" merge="pgm_a0401.u10" size="4194304" crc="cab6557f" sha1="1904dd86645eea27ac1ab8a2462b20f6531356f8" region="sprcol" offset="400000" />
    <rom name="pgm_b0400.u13" merge="pgm_b0400.u13" size="4194304" crc="4bb87cc0" sha1="71b2dc43fd11f7a6dffaba501e4e344b843583d8" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m0400.u1" merge="pgm_m0400.u1" size="4194304" crc="031eb9ce" sha1="0673ec194732becc6648c2ae1396e894aa269f9a" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="igs025" />
    <device_ref name="igs022" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="Region" mask="15">
      <confsetting name="Japan" value="1" />
      <confsetting name="Korea" value="2" />
      <confsetting name="Taiwan" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="China" value="5" />
      <confsetting name="World" value="6" default="yes" />
      <confsetting name="Singapore" value="7" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="preliminary" emulation="good" savestate="supported" />
    <feature type="protection" status="imperfect" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="drgw3105" sourcefile="pgm.cpp" cloneof="drgw3" romof="drgw3">
    <description>Dragon World 3 / Zhongguo Long 3 / Dungfong Zi Zyu 3 / Chuugokuryuu 3 Special (ver. 105)</description>
    <year>1998</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="dw3_v105_u12.u12" size="524288" crc="c5e24318" sha1="c6954495bbc72c3985df75aecf6afd6826c8e30e" region="maincpu" offset="100001" />
    <rom name="dw3_v105_u13.u13" size="524288" crc="8d6c9d39" sha1="cb79303ab551e91f07e11414db4254d5b161d415" region="maincpu" offset="100000" />
    <rom name="dw3_v100.u15" merge="dw3_text_u15.u15" size="65536" crc="03dc4fdf" sha1="b329b04325d4f725231b1bb7862eedef2319b652" region="igs022" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0400.u18" merge="pgm_t0400.u18" size="4194304" crc="b70f3357" sha1="8733969d7d21f540f295a9f747a4bb8f0d325cf0" region="tiles" offset="180000" />
    <rom name="pgm_a0400.u9" merge="pgm_a0400.u9" size="4194304" crc="dd7bfd40" sha1="fb7ec5bf89a413c5208716083762a725ff63f5db" region="sprcol" offset="0" />
    <rom name="pgm_a0401.u10" merge="pgm_a0401.u10" size="4194304" crc="cab6557f" sha1="1904dd86645eea27ac1ab8a2462b20f6531356f8" region="sprcol" offset="400000" />
    <rom name="pgm_b0400.u13" merge="pgm_b0400.u13" size="4194304" crc="4bb87cc0" sha1="71b2dc43fd11f7a6dffaba501e4e344b843583d8" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m0400.u1" merge="pgm_m0400.u1" size="4194304" crc="031eb9ce" sha1="0673ec194732becc6648c2ae1396e894aa269f9a" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="igs025" />
    <device_ref name="igs022" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="Region" mask="15">
      <confsetting name="Japan" value="1" />
      <confsetting name="Korea" value="2" />
      <confsetting name="Taiwan" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="China" value="5" />
      <confsetting name="World" value="6" default="yes" />
      <confsetting name="Singapore" value="7" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="preliminary" emulation="good" savestate="supported" />
    <feature type="protection" status="imperfect" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="dw2001" sourcefile="pgm.cpp" romof="pgm">
    <description>Chuugokuryuu 2001 [Dragon World 2001] (V100 02/21/01 16:05:16, Japan)</description>
    <year>2001</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="dw2001_u22.u22" size="524288" crc="5cabed92" sha1="d513e353c5c4695b16228e0bda9388c396aa4a81" region="maincpu" offset="100000" />
    <rom name="dw2001_igs027a_japan.bin" size="16384" crc="3a79159b" sha1="0d693c798ce24c6a749669be8c7b1e4633409e49" region="prot" offset="0" />
    <rom name="dw2001_u12.u12" size="524288" crc="973db1ab" sha1="cc35e1a8534fa5d59d888f530769bae4e08c62ca" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="dw2001_u11.u11" size="2097152" crc="b27cf093" sha1="7c5736a3d72b89742da1c92b2604d66e48b95e56" region="tiles" offset="180000" />
    <rom name="dw2001_u2.u2" size="2097152" crc="d11c733c" sha1="8faad32e8e215631a2263bdd51a9ae434540d028" region="sprcol" offset="0" />
    <rom name="dw2001_u3.u3" size="2097152" crc="1435aef2" sha1="582eb9f6415c89418401be7ebad041adeb600515" region="sprcol" offset="200000" />
    <rom name="dw2001_u9.u9" size="2097152" crc="ccbca572" sha1="4d3512e82cb65e5cdfcc6cb18deec9f4a6dd350a" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="dw2001_u7.u7" size="2097152" crc="4ea62f21" sha1="318f8a1ff5d4ff029a1c4133fe7acc2fc185d112" region="ics" offset="200000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="22000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="Region" mask="15">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="dwex" sourcefile="pgm.cpp" romof="pgm">
    <description>Dragon World 3 EX / Zhongguo Long 3 EX / Dungfong Zi Zyu 3 EX / Chuugokuryuu 3 EX (ver. 100)</description>
    <year>2000</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="dwex_v100.u12" size="524288" crc="bc171799" sha1="142329dffbca199f3e748a52146a03e27b36db6a" region="maincpu" offset="100001" />
    <rom name="dwex_v100.u13" size="524288" crc="7afe6322" sha1="a52d71af1d6de16c5a3df23eacdab3466693ba8d" region="maincpu" offset="100000" />
    <rom name="dwiii_data_u15.u15" size="65536" crc="03dc4fdf" sha1="b329b04325d4f725231b1bb7862eedef2319b652" region="igs022" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0400.u18" size="2097152" crc="9ecc950d" sha1="fd97f43818a3eb18254636166871fa09bd0d6c07" region="tiles" offset="180000" />
    <rom name="pgm_a0400.u9" size="4194304" crc="dd7bfd40" sha1="fb7ec5bf89a413c5208716083762a725ff63f5db" region="sprcol" offset="0" />
    <rom name="pgm_a0401.u10" size="2097152" crc="d36c06a4" sha1="f192e8bfdfbe3d82a49d8f0d3cb0603e39719773" region="sprcol" offset="400000" />
    <rom name="pgm_b0400.u13" size="4194304" crc="4bb87cc0" sha1="71b2dc43fd11f7a6dffaba501e4e344b843583d8" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m0400.u1" size="2097152" crc="42d54fd5" sha1="ad915b514aa6cae6f72dea78e6208f40b08ceac0" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="igs025" />
    <device_ref name="igs022" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="Region" mask="15">
      <confsetting name="Japan" value="1" />
      <confsetting name="Korea" value="2" />
      <confsetting name="Taiwan" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="China" value="5" />
      <confsetting name="World" value="6" default="yes" />
      <confsetting name="Singapore" value="7" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="preliminary" emulation="good" savestate="supported" />
    <feature type="protection" status="imperfect" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="dwex101cn" sourcefile="pgm.cpp" cloneof="dwex" romof="dwex">
    <description>Dragon World 3 EX / Zhongguo Long 3 EX / Dungfong Zi Zyu 3 EX / Chuugokuryuu 3 EX (ver. 101CN)</description>
    <year>2001</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="dwex_v101cn.u12" size="524288" crc="4f951f42" sha1="830a943ce34c63ce418f60d913fae333377a9704" region="maincpu" offset="100001" />
    <rom name="dwex_v101cn.u13" size="524288" crc="66172511" sha1="eb1a6fc9c22f04fcca0395a4b5c2972438c60a78" region="maincpu" offset="100000" />
    <rom name="dwiii_data_u15.u15" merge="dwiii_data_u15.u15" size="65536" crc="03dc4fdf" sha1="b329b04325d4f725231b1bb7862eedef2319b652" region="igs022" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0400.u18" merge="pgm_t0400.u18" size="2097152" crc="9ecc950d" sha1="fd97f43818a3eb18254636166871fa09bd0d6c07" region="tiles" offset="180000" />
    <rom name="pgm_a0400.u9" merge="pgm_a0400.u9" size="4194304" crc="dd7bfd40" sha1="fb7ec5bf89a413c5208716083762a725ff63f5db" region="sprcol" offset="0" />
    <rom name="pgm_a0401.u10" merge="pgm_a0401.u10" size="2097152" crc="d36c06a4" sha1="f192e8bfdfbe3d82a49d8f0d3cb0603e39719773" region="sprcol" offset="400000" />
    <rom name="pgm_b0400.u13" merge="pgm_b0400.u13" size="4194304" crc="4bb87cc0" sha1="71b2dc43fd11f7a6dffaba501e4e344b843583d8" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m0400.u1" merge="pgm_m0400.u1" size="2097152" crc="42d54fd5" sha1="ad915b514aa6cae6f72dea78e6208f40b08ceac0" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="igs025" />
    <device_ref name="igs022" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="Region" mask="15">
      <confsetting name="Japan" value="1" />
      <confsetting name="Korea" value="2" />
      <confsetting name="Taiwan" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="China" value="5" />
      <confsetting name="World" value="6" default="yes" />
      <confsetting name="Singapore" value="7" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="preliminary" emulation="good" savestate="supported" />
    <feature type="protection" status="imperfect" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="dwpc" sourcefile="pgm.cpp" romof="pgm">
    <description>Zhongguo Long Pretty Chance [Dragon World Pretty Chance] (V110 03/19/02 11:13:16, China)</description>
    <year>2001</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="dwpc_v110cn_u22.u22" size="524288" crc="64f22362" sha1="5f7c58498ae5cbec1c36eaa65c75287c36b6bd52" region="maincpu" offset="100000" />
    <rom name="dw2001_igs027a_japan.bin" size="16384" crc="3a79159b" sha1="0d693c798ce24c6a749669be8c7b1e4633409e49" status="baddump" region="prot" offset="0" />
    <rom name="dwpc_v110cn_u12.u12" size="524288" crc="5bb1ee6a" sha1="7844e7eb8c10a5aeb18c6057d9dc2fee7ff822ba" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="dwpc_v110cn_u11.u11" size="4194304" crc="db219cb8" sha1="8af5a8dac8db93a7720675c64212293d7eab106d" region="tiles" offset="180000" />
    <rom name="dwpc_v101xx_u2.u2" size="2097152" crc="48b2f407" sha1="9b3c0f315805aaca72c9dc3a35406f775856a8bb" region="sprcol" offset="0" />
    <rom name="dwpc_v101xx_u3.u3" size="2097152" crc="3bb45a97" sha1="5c5cd5a241ed25dbb83690cb879472b60cd03260" region="sprcol" offset="200000" />
    <rom name="dwpc_v101xx_u9.u9" size="2097152" crc="481b89b1" sha1="6a241dc3b4a53ce320f3f17e972ffffe46adda4f" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="dwpc_v101xx_u7.u7" size="2097152" crc="5cf9bada" sha1="c5868a31e09e6909c724411a402d8964c29584fc" region="ics" offset="200000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="22000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="Region" mask="15">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="preliminary" emulation="good" savestate="supported" />
    <feature type="protection" status="imperfect" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="dwpc101j" sourcefile="pgm.cpp" cloneof="dwpc" romof="dwpc">
    <description>Chuugokuryuu Pretty Chance [Dragon World Pretty Chance] (V101 09/26/01 10:23:26, Japan)</description>
    <year>2001</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="dwpc_v101jp_u22.u22" size="524288" crc="b93027c0" sha1="602e5f651ccb63e6465ebd7762d8d2dcf7d54077" region="maincpu" offset="100000" />
    <rom name="dw2001_igs027a_japan.bin" merge="dw2001_igs027a_japan.bin" size="16384" crc="3a79159b" sha1="0d693c798ce24c6a749669be8c7b1e4633409e49" region="prot" offset="0" />
    <rom name="dwpc_v100jp_u12.u12" size="524288" crc="0d112126" sha1="2b569b8ef974d1d9906cc052eee63b869c8d4fa4" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="dwpc_v100jp_u11.u11" size="4194304" crc="3aa5a787" sha1="ef7bb83f7141b24621c86237244fd9f280923ed1" region="tiles" offset="180000" />
    <rom name="dwpc_v100jp_u2.u2" size="2097152" crc="e7115763" sha1="f1bf06e9434a3b962166849f51b9dc3a74d7f2a4" region="sprcol" offset="0" />
    <rom name="dwpc_v100jp_u3.u3" size="2097152" crc="49c184a4" sha1="320504adf596c38db56247e9cef02e7c7a363ccb" region="sprcol" offset="200000" />
    <rom name="dwpc_v100jp_u9.u9" size="2097152" crc="412b9913" sha1="52fc42a966575e02991aa92382b855744f44854a" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="dwpc_v100jp_u7.u7" merge="dwpc_v101xx_u7.u7" size="2097152" crc="5cf9bada" sha1="c5868a31e09e6909c724411a402d8964c29584fc" region="ics" offset="200000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="22000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="Region" mask="15">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="espgal" sourcefile="pgm.cpp">
    <description>Espgaluda (2003/10/15 Master Ver)</description>
    <year>2003</year>
    <manufacturer>Cave (AMI license)</manufacturer>
    <rom name="espgaluda_v100.u38" size="2097152" crc="08ecec34" sha1="bce2e7fb9105ed51603d09cbd3a9eeb5b8f47ee2" region="maincpu" offset="0" />
    <rom name="espgal_igs027a.bin" size="16384" status="nodump" region="prot" offset="0" />
    <rom name="t01s.u18" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="cave_t04801w064.u19" size="8388608" crc="6021c79e" sha1="fbc340dafb18aa3094de29b881318a5a9794e4bc" region="tiles" offset="180000" />
    <rom name="cave_a04801w064.u7" size="8388608" crc="26dd4932" sha1="9bbabb5a53cb5ba88397cc2c258980f3b70314ce" region="sprcol" offset="0" />
    <rom name="cave_a04802w064.u8" size="8388608" crc="0e6bf7a9" sha1="a7541e2b5a0df2bc62a5b347e54dbc2ed1922db2" region="sprcol" offset="800000" />
    <rom name="cave_b04801w064.u1" size="8388608" crc="98dce13a" sha1="61d48b7117459f7babc022b68231f6928177a71d" region="sprmask" offset="0" />
    <rom name="cave_w04801b032.u17" size="4194304" crc="60298536" sha1="6b7333f16cce778c5725dbdf75a5446f0906397a" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="270" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <diplocation name="SW1" number="1" />
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="2">
      <diplocation name="SW1" number="2" />
      <dipvalue name="Off" value="2" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="4">
      <diplocation name="SW1" number="3" />
      <dipvalue name="Off" value="4" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="8">
      <diplocation name="SW1" number="4" />
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="16">
      <diplocation name="SW1" number="5" />
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="32">
      <diplocation name="SW1" number="6" />
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="64">
      <diplocation name="SW1" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="128">
      <diplocation name="SW1" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="espgalbl" sourcefile="pgm.cpp" cloneof="espgal" romof="espgal">
    <description>Espgaluda (2003/10/15 Master Ver, bootleg cartridge conversion)</description>
    <year>2003</year>
    <manufacturer>bootleg</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="espgaluda_u8.bin" size="4194304" crc="6a92dd52" sha1="d4b694c88deaeebb7b1c0ddbf29a06380b06426f" region="maincpu" offset="0" />
    <rom name="ddp2_igs027a_japan.bin" size="16384" crc="742d34d2" sha1="4491c08f3cefef2933ad5a741f4bb05cc2f3e1a0" region="prot" offset="0" />
    <rom name="v100.u23" size="131072" crc="06c3dd29" sha1="20c9479f158467fc2037dcf162b6c6be18c91d46" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="t01s.u18" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="t04801w064.u19" merge="cave_t04801w064.u19" size="8388608" crc="6021c79e" sha1="fbc340dafb18aa3094de29b881318a5a9794e4bc" region="tiles" offset="180000" />
    <rom name="a04801w064.u7" merge="cave_a04801w064.u7" size="8388608" crc="26dd4932" sha1="9bbabb5a53cb5ba88397cc2c258980f3b70314ce" region="sprcol" offset="0" />
    <rom name="a04802w064.u8" merge="cave_a04802w064.u8" size="8388608" crc="0e6bf7a9" sha1="a7541e2b5a0df2bc62a5b347e54dbc2ed1922db2" region="sprcol" offset="800000" />
    <rom name="b04801w064.u1" merge="cave_b04801w064.u1" size="8388608" crc="98dce13a" sha1="61d48b7117459f7babc022b68231f6928177a71d" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="w04801b032.u17" merge="cave_w04801b032.u17" size="4194304" crc="60298536" sha1="6b7333f16cce778c5725dbdf75a5446f0906397a" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="270" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="happy6" sourcefile="pgm.cpp" romof="pgm">
    <description>Huanle Liuhe Yi (Happy 6-in-1) (M68K ver. V101, ARM ver. V102CN)</description>
    <year>2004</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="s101xx_u5.u5" size="524288" crc="aa4646e3" sha1="e6772cc480ddd3e1d199364b1f2ff93b973e6842" region="maincpu" offset="100000" />
    <rom name="happy6_igs027a_execute_only_area" size="392" status="nodump" region="prot" offset="0" />
    <rom name="happy6_igs027a_v100_china.bin" size="15992" crc="ed530445" sha1="05c92d649701be2541557b1334dd6c820ca1009e" region="prot" offset="188" />
    <rom name="v-102cn_u26.u26" size="4194304" crc="310510fb" sha1="e0e80a04e9f7bf27e6581a8935c960bad33bb6de" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="t01w64m_u29.u29" size="8388608" crc="2d3feb8b" sha1="9832b1c46b1ee73febf5c5c8913859f4e0581665" region="tiles" offset="180000" />
    <rom name="a01w64m_u5.u5" size="8388608" crc="bbaa3df3" sha1="a72268d3989e96d571242279922291d0dc72db28" region="sprcol" offset="0" />
    <rom name="a02w64m_u6.u6" size="8388608" crc="f8c9cd36" sha1="d9613a83bcc2364492fa922fde1c4f0d07b3009c" region="sprcol" offset="800000" />
    <rom name="b01w64m_u19.u19" size="8388608" crc="73f5f225" sha1="507126fa96dcec967bdbc0978d79fbce9d25db37" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="w01w64m_u17.u17" size="8388608" crc="7e23e2be" sha1="5e920b8e480f00b6666292d4a56039b40af18141" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="24000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="RegionHack" mask="255">
      <confsetting name="China" value="0" default="yes" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Hong Kong" value="2" />
      <confsetting name="Singapore" value="3" />
      <confsetting name="Oversea" value="4" />
      <confsetting name="Don't Change" value="255" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":RegionHack" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="happy6100cn" sourcefile="pgm.cpp" cloneof="happy6" romof="happy6">
    <description>Huanle Liuhe Yi (Happy 6-in-1) (M68K ver. V100, ARM ver. V100CN)</description>
    <year>2004</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v100cn_u5.u5" size="524288" crc="a25418e8" sha1="acd7e7b69956cb4ce8e26c6420cb97bb4bf404e7" region="maincpu" offset="100000" />
    <rom name="happy6_igs027a_execute_only_area" size="392" status="nodump" region="prot" offset="0" />
    <rom name="happy6_igs027a_v100_china.bin" merge="happy6_igs027a_v100_china.bin" size="15992" crc="ed530445" sha1="05c92d649701be2541557b1334dd6c820ca1009e" region="prot" offset="188" />
    <rom name="v100cn_u26.u26" size="4194304" crc="9c29e482" sha1="17a054cb4ab0663e3eba9661c3a9d4dfb7dad010" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="t01w64m_u29.u29" merge="t01w64m_u29.u29" size="8388608" crc="2d3feb8b" sha1="9832b1c46b1ee73febf5c5c8913859f4e0581665" region="tiles" offset="180000" />
    <rom name="a01w64m_u5.u5" merge="a01w64m_u5.u5" size="8388608" crc="bbaa3df3" sha1="a72268d3989e96d571242279922291d0dc72db28" region="sprcol" offset="0" />
    <rom name="a02w64m_u6.u6" merge="a02w64m_u6.u6" size="8388608" crc="f8c9cd36" sha1="d9613a83bcc2364492fa922fde1c4f0d07b3009c" region="sprcol" offset="800000" />
    <rom name="b01w64m_u19.u19" merge="b01w64m_u19.u19" size="8388608" crc="73f5f225" sha1="507126fa96dcec967bdbc0978d79fbce9d25db37" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="w01w64m_u17.u17" merge="w01w64m_u17.u17" size="8388608" crc="7e23e2be" sha1="5e920b8e480f00b6666292d4a56039b40af18141" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="24000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="RegionHack" mask="255">
      <confsetting name="China" value="0" default="yes" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Hong Kong" value="2" />
      <confsetting name="Singapore" value="3" />
      <confsetting name="Oversea" value="4" />
      <confsetting name="Don't Change" value="255" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":RegionHack" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="happy6100hk" sourcefile="pgm.cpp" cloneof="happy6" romof="happy6">
    <description>Huanle Liuhe Yi (Happy 6-in-1) (M68K ver. V100HK, ARM ver. V100HK)</description>
    <year>2004</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v100hk_u5.u5" size="524288" crc="a25418e8" sha1="acd7e7b69956cb4ce8e26c6420cb97bb4bf404e7" region="maincpu" offset="100000" />
    <rom name="happy6_igs027a_execute_only_area" size="392" status="nodump" region="prot" offset="0" />
    <rom name="happy6_igs027a_v100_china.bin" merge="happy6_igs027a_v100_china.bin" size="15992" crc="ed530445" sha1="05c92d649701be2541557b1334dd6c820ca1009e" status="baddump" region="prot" offset="188" />
    <rom name="v100hk_u26.u26" size="4194304" crc="8f2feb1f" sha1="acbc6620a296e8a6819bf088886bcbfc329f286d" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="t01w64m_u29.u29" merge="t01w64m_u29.u29" size="8388608" crc="2d3feb8b" sha1="9832b1c46b1ee73febf5c5c8913859f4e0581665" region="tiles" offset="180000" />
    <rom name="a01w64m_u5.u5" merge="a01w64m_u5.u5" size="8388608" crc="bbaa3df3" sha1="a72268d3989e96d571242279922291d0dc72db28" region="sprcol" offset="0" />
    <rom name="a02w64m_u6.u6" merge="a02w64m_u6.u6" size="8388608" crc="f8c9cd36" sha1="d9613a83bcc2364492fa922fde1c4f0d07b3009c" region="sprcol" offset="800000" />
    <rom name="b01w64m_u19.u19" merge="b01w64m_u19.u19" size="8388608" crc="73f5f225" sha1="507126fa96dcec967bdbc0978d79fbce9d25db37" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="w01w64m_u17.u17" merge="w01w64m_u17.u17" size="8388608" crc="7e23e2be" sha1="5e920b8e480f00b6666292d4a56039b40af18141" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="24000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="RegionHack" mask="255">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Hong Kong" value="2" default="yes" />
      <confsetting name="Singapore" value="3" />
      <confsetting name="Oversea" value="4" />
      <confsetting name="Don't Change" value="255" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":RegionHack" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="happy6101" sourcefile="pgm.cpp" cloneof="happy6" romof="happy6">
    <description>Huanle Liuhe Yi (Happy 6-in-1) (M68K ver. V100, ARM ver. V101CN)</description>
    <year>2004</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v100cn_u5.u5" size="524288" crc="a25418e8" sha1="acd7e7b69956cb4ce8e26c6420cb97bb4bf404e7" region="maincpu" offset="100000" />
    <rom name="happy6_igs027a_execute_only_area" size="392" status="nodump" region="prot" offset="0" />
    <rom name="happy6_igs027a_v100_china.bin" merge="happy6_igs027a_v100_china.bin" size="15992" crc="ed530445" sha1="05c92d649701be2541557b1334dd6c820ca1009e" region="prot" offset="188" />
    <rom name="v101cn_u26.u26" size="4194304" crc="4a48ca1c" sha1="3bebc091787903d45cb84c7302046602a903f59c" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="t01w64m_u29.u29" merge="t01w64m_u29.u29" size="8388608" crc="2d3feb8b" sha1="9832b1c46b1ee73febf5c5c8913859f4e0581665" region="tiles" offset="180000" />
    <rom name="a01w64m_u5.u5" merge="a01w64m_u5.u5" size="8388608" crc="bbaa3df3" sha1="a72268d3989e96d571242279922291d0dc72db28" region="sprcol" offset="0" />
    <rom name="a02w64m_u6.u6" merge="a02w64m_u6.u6" size="8388608" crc="f8c9cd36" sha1="d9613a83bcc2364492fa922fde1c4f0d07b3009c" region="sprcol" offset="800000" />
    <rom name="b01w64m_u19.u19" merge="b01w64m_u19.u19" size="8388608" crc="73f5f225" sha1="507126fa96dcec967bdbc0978d79fbce9d25db37" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="w01w64m_u17.u17" merge="w01w64m_u17.u17" size="8388608" crc="7e23e2be" sha1="5e920b8e480f00b6666292d4a56039b40af18141" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="24000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="RegionHack" mask="255">
      <confsetting name="China" value="0" default="yes" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Hong Kong" value="2" />
      <confsetting name="Singapore" value="3" />
      <confsetting name="Oversea" value="4" />
      <confsetting name="Don't Change" value="255" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":RegionHack" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="ket" sourcefile="pgm.cpp">
    <description>Ketsui: Kizuna Jigoku Tachi (2003/01/01. Master Ver.)</description>
    <year>2002</year>
    <manufacturer>Cave (AMI license)</manufacturer>
    <rom name="ketsui_v100.u38" size="2097152" crc="dfe62f3b" sha1="baa58d1ce47a707f84f65779ac0689894793e9d9" region="maincpu" offset="0" />
    <rom name="ket_igs027a.bin" size="16384" status="nodump" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="cave_t04701w064.u19" size="8388608" crc="2665b041" sha1="fb1107778b66f2af0de77ac82e1ee2902f53a959" region="tiles" offset="180000" />
    <rom name="cave_a04701w064.u7" size="8388608" crc="5ef1b94b" sha1="f10dfa46e0a4d297c3a856aea5b49d648f98935c" region="sprcol" offset="0" />
    <rom name="cave_a04702w064.u8" size="8388608" crc="26d6da7f" sha1="f20e07a7994f41b5ed917f8b0119dc5542f3541c" region="sprcol" offset="800000" />
    <rom name="cave_b04701w064.u1" size="8388608" crc="1bec008d" sha1="07d117dc2eebb35727fb18a7c563acbaf25a8d36" region="sprmask" offset="0" />
    <rom name="cave_m04701b032.u17" size="4194304" crc="b46e22d1" sha1="670853dc485942fb96380568494bdf3235f446ee" region="ics" offset="400000" />
    <rom name="ket_defaults.nv" size="131072" crc="3ca892d8" sha1="67430df5217e453ae8140c5653deeadfad8fa684" region="sram" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="270" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <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" />
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="2">
      <diplocation name="SW1" number="2" />
      <dipvalue name="Off" value="2" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="4">
      <diplocation name="SW1" number="3" />
      <dipvalue name="Off" value="4" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="8">
      <diplocation name="SW1" number="4" />
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="16">
      <diplocation name="SW1" number="5" />
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="32">
      <diplocation name="SW1" number="6" />
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="64">
      <diplocation name="SW1" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="128">
      <diplocation name="SW1" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="ket1" sourcefile="pgm.cpp" cloneof="ket" romof="ket">
    <description>Ketsui: Kizuna Jigoku Tachi (2003/01/01. Master Ver.) (alt rom fill)</description>
    <year>2002</year>
    <manufacturer>Cave (AMI license)</manufacturer>
    <rom name="ketsui_v100_alt_fill.u38" size="2097152" crc="e140f8a4" sha1="34fd25f8896935503d7537e89a4cd174e8995070" region="maincpu" offset="0" />
    <rom name="ket_igs027a.bin" size="16384" status="nodump" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="cave_t04701w064.u19" merge="cave_t04701w064.u19" size="8388608" crc="2665b041" sha1="fb1107778b66f2af0de77ac82e1ee2902f53a959" region="tiles" offset="180000" />
    <rom name="cave_a04701w064.u7" merge="cave_a04701w064.u7" size="8388608" crc="5ef1b94b" sha1="f10dfa46e0a4d297c3a856aea5b49d648f98935c" region="sprcol" offset="0" />
    <rom name="cave_a04702w064.u8" merge="cave_a04702w064.u8" size="8388608" crc="26d6da7f" sha1="f20e07a7994f41b5ed917f8b0119dc5542f3541c" region="sprcol" offset="800000" />
    <rom name="cave_b04701w064.u1" merge="cave_b04701w064.u1" size="8388608" crc="1bec008d" sha1="07d117dc2eebb35727fb18a7c563acbaf25a8d36" region="sprmask" offset="0" />
    <rom name="cave_m04701b032.u17" merge="cave_m04701b032.u17" size="4194304" crc="b46e22d1" sha1="670853dc485942fb96380568494bdf3235f446ee" region="ics" offset="400000" />
    <rom name="ket_defaults.nv" merge="ket_defaults.nv" size="131072" crc="3ca892d8" sha1="67430df5217e453ae8140c5653deeadfad8fa684" region="sram" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="270" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <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" />
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="2">
      <diplocation name="SW1" number="2" />
      <dipvalue name="Off" value="2" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="4">
      <diplocation name="SW1" number="3" />
      <dipvalue name="Off" value="4" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="8">
      <diplocation name="SW1" number="4" />
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="16">
      <diplocation name="SW1" number="5" />
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="32">
      <diplocation name="SW1" number="6" />
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="64">
      <diplocation name="SW1" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="128">
      <diplocation name="SW1" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="keta" sourcefile="pgm.cpp" cloneof="ket" romof="ket">
    <description>Ketsui: Kizuna Jigoku Tachi (2003/01/01 Master Ver.)</description>
    <year>2002</year>
    <manufacturer>Cave (AMI license)</manufacturer>
    <rom name="ketsui_prg_revised.bin" size="2097152" crc="69fcf5eb" sha1="f726e251b4daa2f8d717e32000d4d7abc71c710d" region="maincpu" offset="0" />
    <rom name="ket_igs027a.bin" size="16384" status="nodump" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="cave_t04701w064.u19" merge="cave_t04701w064.u19" size="8388608" crc="2665b041" sha1="fb1107778b66f2af0de77ac82e1ee2902f53a959" region="tiles" offset="180000" />
    <rom name="cave_a04701w064.u7" merge="cave_a04701w064.u7" size="8388608" crc="5ef1b94b" sha1="f10dfa46e0a4d297c3a856aea5b49d648f98935c" region="sprcol" offset="0" />
    <rom name="cave_a04702w064.u8" merge="cave_a04702w064.u8" size="8388608" crc="26d6da7f" sha1="f20e07a7994f41b5ed917f8b0119dc5542f3541c" region="sprcol" offset="800000" />
    <rom name="cave_b04701w064.u1" merge="cave_b04701w064.u1" size="8388608" crc="1bec008d" sha1="07d117dc2eebb35727fb18a7c563acbaf25a8d36" region="sprmask" offset="0" />
    <rom name="cave_m04701b032.u17" merge="cave_m04701b032.u17" size="4194304" crc="b46e22d1" sha1="670853dc485942fb96380568494bdf3235f446ee" region="ics" offset="400000" />
    <rom name="ket_defaults.nv" merge="ket_defaults.nv" size="131072" crc="3ca892d8" sha1="67430df5217e453ae8140c5653deeadfad8fa684" region="sram" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="270" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <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" />
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="2">
      <diplocation name="SW1" number="2" />
      <dipvalue name="Off" value="2" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="4">
      <diplocation name="SW1" number="3" />
      <dipvalue name="Off" value="4" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="8">
      <diplocation name="SW1" number="4" />
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="16">
      <diplocation name="SW1" number="5" />
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="32">
      <diplocation name="SW1" number="6" />
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="64">
      <diplocation name="SW1" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="128">
      <diplocation name="SW1" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="ketarr" sourcefile="pgm.cpp" cloneof="ket" romof="ket">
    <description>Ketsui: Kizuna Jigoku Tachi (2014/07/16 ARRANGE 1.7 VER) (hack)</description>
    <year>2014</year>
    <manufacturer>hack (trap15)</manufacturer>
    <rom name="ketarr17_v100.u38" size="2097152" crc="2cb80b89" sha1="e1aa072b8344890486e11795e02703aa2d234bb1" region="maincpu" offset="0" />
    <rom name="ket_igs027a.bin" size="16384" status="nodump" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="cave_t04701w064.u19" merge="cave_t04701w064.u19" size="8388608" crc="2665b041" sha1="fb1107778b66f2af0de77ac82e1ee2902f53a959" region="tiles" offset="180000" />
    <rom name="cave_a04701w064.u7" merge="cave_a04701w064.u7" size="8388608" crc="5ef1b94b" sha1="f10dfa46e0a4d297c3a856aea5b49d648f98935c" region="sprcol" offset="0" />
    <rom name="cave_a04702w064.u8" merge="cave_a04702w064.u8" size="8388608" crc="26d6da7f" sha1="f20e07a7994f41b5ed917f8b0119dc5542f3541c" region="sprcol" offset="800000" />
    <rom name="cave_b04701w064.u1" merge="cave_b04701w064.u1" size="8388608" crc="1bec008d" sha1="07d117dc2eebb35727fb18a7c563acbaf25a8d36" region="sprmask" offset="0" />
    <rom name="cave_m04701b032.u17" merge="cave_m04701b032.u17" size="4194304" crc="b46e22d1" sha1="670853dc485942fb96380568494bdf3235f446ee" region="ics" offset="400000" />
    <rom name="ket_defaults.nv" merge="ket_defaults.nv" size="131072" crc="3ca892d8" sha1="67430df5217e453ae8140c5653deeadfad8fa684" region="sram" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="270" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <diplocation name="SW1" number="1" />
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="2">
      <diplocation name="SW1" number="2" />
      <dipvalue name="Off" value="2" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="4">
      <diplocation name="SW1" number="3" />
      <dipvalue name="Off" value="4" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="8">
      <diplocation name="SW1" number="4" />
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="16">
      <diplocation name="SW1" number="5" />
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="32">
      <diplocation name="SW1" number="6" />
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="64">
      <diplocation name="SW1" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="128">
      <diplocation name="SW1" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" overall="imperfect" />
  </machine>
  <machine name="ketarr10" sourcefile="pgm.cpp" cloneof="ket" romof="ket">
    <description>Ketsui: Kizuna Jigoku Tachi (2012/04/17 ARRANGE VER) (hack)</description>
    <year>2012</year>
    <manufacturer>hack (trap15)</manufacturer>
    <rom name="ketarr_v100.u38" size="2097152" crc="d4c7a8ab" sha1="65d104d17bd4fd03a2b44297a003ba03d746c7ee" region="maincpu" offset="0" />
    <rom name="ket_igs027a.bin" size="16384" status="nodump" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="cave_t04701w064.u19" merge="cave_t04701w064.u19" size="8388608" crc="2665b041" sha1="fb1107778b66f2af0de77ac82e1ee2902f53a959" region="tiles" offset="180000" />
    <rom name="cave_a04701w064.u7" merge="cave_a04701w064.u7" size="8388608" crc="5ef1b94b" sha1="f10dfa46e0a4d297c3a856aea5b49d648f98935c" region="sprcol" offset="0" />
    <rom name="cave_a04702w064.u8" merge="cave_a04702w064.u8" size="8388608" crc="26d6da7f" sha1="f20e07a7994f41b5ed917f8b0119dc5542f3541c" region="sprcol" offset="800000" />
    <rom name="cave_b04701w064.u1" merge="cave_b04701w064.u1" size="8388608" crc="1bec008d" sha1="07d117dc2eebb35727fb18a7c563acbaf25a8d36" region="sprmask" offset="0" />
    <rom name="cave_m04701b032.u17" merge="cave_m04701b032.u17" size="4194304" crc="b46e22d1" sha1="670853dc485942fb96380568494bdf3235f446ee" region="ics" offset="400000" />
    <rom name="ket_defaults.nv" merge="ket_defaults.nv" size="131072" crc="3ca892d8" sha1="67430df5217e453ae8140c5653deeadfad8fa684" region="sram" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="270" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <diplocation name="SW1" number="1" />
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="2">
      <diplocation name="SW1" number="2" />
      <dipvalue name="Off" value="2" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="4">
      <diplocation name="SW1" number="3" />
      <dipvalue name="Off" value="4" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="8">
      <diplocation name="SW1" number="4" />
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="16">
      <diplocation name="SW1" number="5" />
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="32">
      <diplocation name="SW1" number="6" />
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="64">
      <diplocation name="SW1" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="128">
      <diplocation name="SW1" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" overall="imperfect" />
  </machine>
  <machine name="ketarr15" sourcefile="pgm.cpp" cloneof="ket" romof="ket">
    <description>Ketsui: Kizuna Jigoku Tachi (2012/06/26 ARRANGE 1.5 VER) (hack)</description>
    <year>2012</year>
    <manufacturer>hack (trap15)</manufacturer>
    <rom name="ketarr15_v100.u38" size="2097152" crc="552a7d95" sha1="4f3fb13f34d58a7482e1d26623d38aa0b54ca8dd" region="maincpu" offset="0" />
    <rom name="ket_igs027a.bin" size="16384" status="nodump" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="cave_t04701w064.u19" merge="cave_t04701w064.u19" size="8388608" crc="2665b041" sha1="fb1107778b66f2af0de77ac82e1ee2902f53a959" region="tiles" offset="180000" />
    <rom name="cave_a04701w064.u7" merge="cave_a04701w064.u7" size="8388608" crc="5ef1b94b" sha1="f10dfa46e0a4d297c3a856aea5b49d648f98935c" region="sprcol" offset="0" />
    <rom name="cave_a04702w064.u8" merge="cave_a04702w064.u8" size="8388608" crc="26d6da7f" sha1="f20e07a7994f41b5ed917f8b0119dc5542f3541c" region="sprcol" offset="800000" />
    <rom name="cave_b04701w064.u1" merge="cave_b04701w064.u1" size="8388608" crc="1bec008d" sha1="07d117dc2eebb35727fb18a7c563acbaf25a8d36" region="sprmask" offset="0" />
    <rom name="cave_m04701b032.u17" merge="cave_m04701b032.u17" size="4194304" crc="b46e22d1" sha1="670853dc485942fb96380568494bdf3235f446ee" region="ics" offset="400000" />
    <rom name="ket_defaults.nv" merge="ket_defaults.nv" size="131072" crc="3ca892d8" sha1="67430df5217e453ae8140c5653deeadfad8fa684" region="sram" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="270" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <diplocation name="SW1" number="1" />
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="2">
      <diplocation name="SW1" number="2" />
      <dipvalue name="Off" value="2" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="4">
      <diplocation name="SW1" number="3" />
      <dipvalue name="Off" value="4" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="8">
      <diplocation name="SW1" number="4" />
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="16">
      <diplocation name="SW1" number="5" />
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="32">
      <diplocation name="SW1" number="6" />
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="64">
      <diplocation name="SW1" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="128">
      <diplocation name="SW1" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" overall="imperfect" />
  </machine>
  <machine name="ketarr151" sourcefile="pgm.cpp" cloneof="ket" romof="ket">
    <description>Ketsui: Kizuna Jigoku Tachi (2012/06/26 ARRANGE 1.51 VER) (hack)</description>
    <year>2012</year>
    <manufacturer>hack (trap15)</manufacturer>
    <rom name="ketarr151_v100.u38" size="2097152" crc="2b7c030d" sha1="9aaba1242d7ce29915a31d40341da82985927f9d" region="maincpu" offset="0" />
    <rom name="ket_igs027a.bin" size="16384" status="nodump" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="cave_t04701w064.u19" merge="cave_t04701w064.u19" size="8388608" crc="2665b041" sha1="fb1107778b66f2af0de77ac82e1ee2902f53a959" region="tiles" offset="180000" />
    <rom name="cave_a04701w064.u7" merge="cave_a04701w064.u7" size="8388608" crc="5ef1b94b" sha1="f10dfa46e0a4d297c3a856aea5b49d648f98935c" region="sprcol" offset="0" />
    <rom name="cave_a04702w064.u8" merge="cave_a04702w064.u8" size="8388608" crc="26d6da7f" sha1="f20e07a7994f41b5ed917f8b0119dc5542f3541c" region="sprcol" offset="800000" />
    <rom name="cave_b04701w064.u1" merge="cave_b04701w064.u1" size="8388608" crc="1bec008d" sha1="07d117dc2eebb35727fb18a7c563acbaf25a8d36" region="sprmask" offset="0" />
    <rom name="cave_m04701b032.u17" merge="cave_m04701b032.u17" size="4194304" crc="b46e22d1" sha1="670853dc485942fb96380568494bdf3235f446ee" region="ics" offset="400000" />
    <rom name="ket_defaults.nv" merge="ket_defaults.nv" size="131072" crc="3ca892d8" sha1="67430df5217e453ae8140c5653deeadfad8fa684" region="sram" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="270" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="2" coins="2">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <diplocation name="SW1" number="1" />
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="2">
      <diplocation name="SW1" number="2" />
      <dipvalue name="Off" value="2" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="4">
      <diplocation name="SW1" number="3" />
      <dipvalue name="Off" value="4" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="8">
      <diplocation name="SW1" number="4" />
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="16">
      <diplocation name="SW1" number="5" />
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="32">
      <diplocation name="SW1" number="6" />
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="64">
      <diplocation name="SW1" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="128">
      <diplocation name="SW1" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" overall="imperfect" />
  </machine>
  <machine name="ketarrf" sourcefile="pgm.cpp" cloneof="ket" romof="ket">
    <description>Ketsui: Kizuna Jigoku Tachi (2012/04/17 FAST. VER) (hack)</description>
    <year>2012</year>
    <manufacturer>hack (trap15)</manufacturer>
    <rom name="ketarrf_v100.u38" size="2097152" crc="6ad17aa4" sha1="791bd1a107433a3811c8a79ea26a73e66ddd296f" region="maincpu" offset="0" />
    <rom name="ket_igs027a.bin" size="16384" status="nodump" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="cave_t04701w064.u19" merge="cave_t04701w064.u19" size="8388608" crc="2665b041" sha1="fb1107778b66f2af0de77ac82e1ee2902f53a959" region="tiles" offset="180000" />
    <rom name="cave_a04701w064.u7" merge="cave_a04701w064.u7" size="8388608" crc="5ef1b94b" sha1="f10dfa46e0a4d297c3a856aea5b49d648f98935c" region="sprcol" offset="0" />
    <rom name="cave_a04702w064.u8" merge="cave_a04702w064.u8" size="8388608" crc="26d6da7f" sha1="f20e07a7994f41b5ed917f8b0119dc5542f3541c" region="sprcol" offset="800000" />
    <rom name="cave_b04701w064.u1" merge="cave_b04701w064.u1" size="8388608" crc="1bec008d" sha1="07d117dc2eebb35727fb18a7c563acbaf25a8d36" region="sprmask" offset="0" />
    <rom name="cave_m04701b032.u17" merge="cave_m04701b032.u17" size="4194304" crc="b46e22d1" sha1="670853dc485942fb96380568494bdf3235f446ee" region="ics" offset="400000" />
    <rom name="ket_defaults.nv" merge="ket_defaults.nv" size="131072" crc="3ca892d8" sha1="67430df5217e453ae8140c5653deeadfad8fa684" region="sram" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="270" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <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" />
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="2">
      <diplocation name="SW1" number="2" />
      <dipvalue name="Off" value="2" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="4">
      <diplocation name="SW1" number="3" />
      <dipvalue name="Off" value="4" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="8">
      <diplocation name="SW1" number="4" />
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="16">
      <diplocation name="SW1" number="5" />
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="32">
      <diplocation name="SW1" number="6" />
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="64">
      <diplocation name="SW1" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="128">
      <diplocation name="SW1" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" overall="imperfect" />
  </machine>
  <machine name="ketarrs15" sourcefile="pgm.cpp" cloneof="ket" romof="ket">
    <description>Ketsui: Kizuna Jigoku Tachi (2012/06/27 MR.STOIC 1.5 VER) (hack)</description>
    <year>2012</year>
    <manufacturer>hack (trap15)</manufacturer>
    <rom name="ketarrs15_v100.u38" size="2097152" crc="a95e71e0" sha1="182c12e3581ebb20176d8abca41ee62aadcd63e0" region="maincpu" offset="0" />
    <rom name="ket_igs027a.bin" size="16384" status="nodump" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="cave_t04701w064.u19" merge="cave_t04701w064.u19" size="8388608" crc="2665b041" sha1="fb1107778b66f2af0de77ac82e1ee2902f53a959" region="tiles" offset="180000" />
    <rom name="cave_a04701w064.u7" merge="cave_a04701w064.u7" size="8388608" crc="5ef1b94b" sha1="f10dfa46e0a4d297c3a856aea5b49d648f98935c" region="sprcol" offset="0" />
    <rom name="cave_a04702w064.u8" merge="cave_a04702w064.u8" size="8388608" crc="26d6da7f" sha1="f20e07a7994f41b5ed917f8b0119dc5542f3541c" region="sprcol" offset="800000" />
    <rom name="cave_b04701w064.u1" merge="cave_b04701w064.u1" size="8388608" crc="1bec008d" sha1="07d117dc2eebb35727fb18a7c563acbaf25a8d36" region="sprmask" offset="0" />
    <rom name="cave_m04701b032.u17" merge="cave_m04701b032.u17" size="4194304" crc="b46e22d1" sha1="670853dc485942fb96380568494bdf3235f446ee" region="ics" offset="400000" />
    <rom name="ket_defaults.nv" merge="ket_defaults.nv" size="131072" crc="3ca892d8" sha1="67430df5217e453ae8140c5653deeadfad8fa684" region="sram" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="270" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <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" />
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="2">
      <diplocation name="SW1" number="2" />
      <dipvalue name="Off" value="2" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="4">
      <diplocation name="SW1" number="3" />
      <dipvalue name="Off" value="4" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="8">
      <diplocation name="SW1" number="4" />
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="16">
      <diplocation name="SW1" number="5" />
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="32">
      <diplocation name="SW1" number="6" />
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="64">
      <diplocation name="SW1" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="128">
      <diplocation name="SW1" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" overall="imperfect" />
  </machine>
  <machine name="ketarrs151" sourcefile="pgm.cpp" cloneof="ket" romof="ket">
    <description>Ketsui: Kizuna Jigoku Tachi (2012/06/27 MR.STOIC 1.51 VER) (hack)</description>
    <year>2012</year>
    <manufacturer>hack (trap15)</manufacturer>
    <rom name="ketarrs151_v100.u38" size="2097152" crc="35c984e4" sha1="d4517f318de0c40a3b30e41374f33bb355581434" region="maincpu" offset="0" />
    <rom name="ket_igs027a.bin" size="16384" status="nodump" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="cave_t04701w064.u19" merge="cave_t04701w064.u19" size="8388608" crc="2665b041" sha1="fb1107778b66f2af0de77ac82e1ee2902f53a959" region="tiles" offset="180000" />
    <rom name="cave_a04701w064.u7" merge="cave_a04701w064.u7" size="8388608" crc="5ef1b94b" sha1="f10dfa46e0a4d297c3a856aea5b49d648f98935c" region="sprcol" offset="0" />
    <rom name="cave_a04702w064.u8" merge="cave_a04702w064.u8" size="8388608" crc="26d6da7f" sha1="f20e07a7994f41b5ed917f8b0119dc5542f3541c" region="sprcol" offset="800000" />
    <rom name="cave_b04701w064.u1" merge="cave_b04701w064.u1" size="8388608" crc="1bec008d" sha1="07d117dc2eebb35727fb18a7c563acbaf25a8d36" region="sprmask" offset="0" />
    <rom name="cave_m04701b032.u17" merge="cave_m04701b032.u17" size="4194304" crc="b46e22d1" sha1="670853dc485942fb96380568494bdf3235f446ee" region="ics" offset="400000" />
    <rom name="ket_defaults.nv" merge="ket_defaults.nv" size="131072" crc="3ca892d8" sha1="67430df5217e453ae8140c5653deeadfad8fa684" region="sram" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="270" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <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" />
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="2">
      <diplocation name="SW1" number="2" />
      <dipvalue name="Off" value="2" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="4">
      <diplocation name="SW1" number="3" />
      <dipvalue name="Off" value="4" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="8">
      <diplocation name="SW1" number="4" />
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="16">
      <diplocation name="SW1" number="5" />
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="32">
      <diplocation name="SW1" number="6" />
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="64">
      <diplocation name="SW1" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="128">
      <diplocation name="SW1" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" overall="imperfect" />
  </machine>
  <machine name="ketb" sourcefile="pgm.cpp" cloneof="ket" romof="ket">
    <description>Ketsui: Kizuna Jigoku Tachi (2003/01/01 Master Ver)</description>
    <year>2002</year>
    <manufacturer>Cave (AMI license)</manufacturer>
    <rom name="ketsui_prg_original.bin" size="2097152" crc="cca5e153" sha1="b653feaa2004c379312def6b1613c3497f654ddf" region="maincpu" offset="0" />
    <rom name="ket_igs027a.bin" size="16384" status="nodump" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="cave_t04701w064.u19" merge="cave_t04701w064.u19" size="8388608" crc="2665b041" sha1="fb1107778b66f2af0de77ac82e1ee2902f53a959" region="tiles" offset="180000" />
    <rom name="cave_a04701w064.u7" merge="cave_a04701w064.u7" size="8388608" crc="5ef1b94b" sha1="f10dfa46e0a4d297c3a856aea5b49d648f98935c" region="sprcol" offset="0" />
    <rom name="cave_a04702w064.u8" merge="cave_a04702w064.u8" size="8388608" crc="26d6da7f" sha1="f20e07a7994f41b5ed917f8b0119dc5542f3541c" region="sprcol" offset="800000" />
    <rom name="cave_b04701w064.u1" merge="cave_b04701w064.u1" size="8388608" crc="1bec008d" sha1="07d117dc2eebb35727fb18a7c563acbaf25a8d36" region="sprmask" offset="0" />
    <rom name="cave_m04701b032.u17" merge="cave_m04701b032.u17" size="4194304" crc="b46e22d1" sha1="670853dc485942fb96380568494bdf3235f446ee" region="ics" offset="400000" />
    <rom name="ket_defaults.nv" merge="ket_defaults.nv" size="131072" crc="3ca892d8" sha1="67430df5217e453ae8140c5653deeadfad8fa684" region="sram" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="270" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <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" />
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="2">
      <diplocation name="SW1" number="2" />
      <dipvalue name="Off" value="2" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="4">
      <diplocation name="SW1" number="3" />
      <dipvalue name="Off" value="4" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="8">
      <diplocation name="SW1" number="4" />
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="16">
      <diplocation name="SW1" number="5" />
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="32">
      <diplocation name="SW1" number="6" />
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="64">
      <diplocation name="SW1" number="7" />
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unknown" tag="DSW" mask="128">
      <diplocation name="SW1" number="8" />
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="ketbl" sourcefile="pgm.cpp" cloneof="ket" romof="ket">
    <description>Ketsui: Kizuna Jigoku Tachi (2003/01/01. Master Ver., bootleg cartridge conversion)</description>
    <year>2002</year>
    <manufacturer>bootleg</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="ketsui_u1.bin" size="4194304" crc="391767b4" sha1="722e364d3a8982a40df8f898e995212a1a6fee35" region="maincpu" offset="0" />
    <rom name="ddp2_igs027a_japan.bin" size="16384" crc="742d34d2" sha1="4491c08f3cefef2933ad5a741f4bb05cc2f3e1a0" region="prot" offset="0" />
    <rom name="v100.u23" size="131072" crc="06c3dd29" sha1="20c9479f158467fc2037dcf162b6c6be18c91d46" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="t04701w064.u19" merge="cave_t04701w064.u19" size="8388608" crc="2665b041" sha1="fb1107778b66f2af0de77ac82e1ee2902f53a959" region="tiles" offset="180000" />
    <rom name="a04701w064.u7" merge="cave_a04701w064.u7" size="8388608" crc="5ef1b94b" sha1="f10dfa46e0a4d297c3a856aea5b49d648f98935c" region="sprcol" offset="0" />
    <rom name="a04702w064.u8" merge="cave_a04702w064.u8" size="8388608" crc="26d6da7f" sha1="f20e07a7994f41b5ed917f8b0119dc5542f3541c" region="sprcol" offset="800000" />
    <rom name="b04701w064.u1" merge="cave_b04701w064.u1" size="8388608" crc="1bec008d" sha1="07d117dc2eebb35727fb18a7c563acbaf25a8d36" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="m04701b032.u17" merge="cave_m04701b032.u17" size="4194304" crc="b46e22d1" sha1="670853dc485942fb96380568494bdf3235f446ee" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="270" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="killbld" sourcefile="pgm.cpp" romof="pgm">
    <description>The Killing Blade / Ao Jian Kuang Dao (ver. 109, Chinese Board)</description>
    <year>1998</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="p0300_v109.u9" size="2097152" crc="2fcee215" sha1="855281a9090bfdf3da9f4d50c121765131a13400" region="maincpu" offset="100000" />
    <rom name="kb_u2_v109.u2" size="65536" crc="de3eae63" sha1="03af767ef764055bda528b5cc6a24b9e1218cca8" region="igs022" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0300.u14" size="4194304" crc="0922f7d9" sha1="4302b4b7369e13f315fad14f7d6cad1321101d24" region="tiles" offset="180000" />
    <rom name="pgm_a0300.u9" size="4194304" crc="3f9455d3" sha1="3718ce00ad93975383aafc14e5a74dc297b011a1" region="sprcol" offset="0" />
    <rom name="pgm_a0301.u10" size="4194304" crc="92776889" sha1="6d677837fefff47bfd1c6166322f69f89989a5e2" region="sprcol" offset="400000" />
    <rom name="pgm_a0303.u11" size="4194304" crc="33f5cc69" sha1="9cacd5058d4bb25b77f71658bbbbd4b38d0a6b6a" region="sprcol" offset="800000" />
    <rom name="pgm_a0306.u12" size="4194304" crc="cc018a8e" sha1="37752d46f238fb57c0ab5a4f96b1e013f2077347" region="sprcol" offset="c00000" />
    <rom name="pgm_a0307.u2" size="4194304" crc="bc772e39" sha1="079cc42a190cb916f02b59bca8fa90e524acefe9" region="sprcol" offset="1000000" />
    <rom name="pgm_b0300.u13" size="4194304" crc="7f876981" sha1="43555a200929ad5ecc42137fc9aeb42dc4f50d20" region="sprmask" offset="0" />
    <rom name="pgm_b0302.u14" size="4194304" crc="eea9c502" sha1="04b3972c7111ea59a3cceab6ad124080c4ce3520" region="sprmask" offset="400000" />
    <rom name="pgm_b0303.u15" size="2097152" crc="77a9652e" sha1="2342f643d37945fbda224a5034c013796e5134ca" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m0300.u1" size="4194304" crc="93159695" sha1="50c5976c9b681bd3d1ebefa3bfa9fe6e72dcb96f" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="igs025" />
    <device_ref name="igs022" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Region" tag="Region" mask="255">
      <dipvalue name="Taiwan" value="22" />
      <dipvalue name="China" value="23" />
      <dipvalue name="Hong Kong" value="24" />
      <dipvalue name="Japan" value="25" />
      <dipvalue name="Korea" value="32" />
      <dipvalue name="World" value="33" default="yes" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="killbld104" sourcefile="pgm.cpp" cloneof="killbld" romof="killbld">
    <description>The Killing Blade / Ao Jian Kuang Dao (ver. 104)</description>
    <year>1998</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="kb_u3_v104.u3" size="524288" crc="6db1d719" sha1="804002f014d275aaf0368fb7f904938fe4ac07ee" region="maincpu" offset="100001" />
    <rom name="kb_u6_v104.u6" size="524288" crc="31ecc978" sha1="82666d534e4151775063af6d39f575faba0f1047" region="maincpu" offset="100000" />
    <rom name="kb_u4_v104.u4" size="524288" crc="1ed8b2e7" sha1="331c037640cfc1fe743cd0e65a1156c470b3303e" region="maincpu" offset="200001" />
    <rom name="kb_u5_v104.u5" size="524288" crc="a0bafc29" sha1="b20db7c16353c6f87ed3c08c9d037b07336711f1" region="maincpu" offset="200000" />
    <rom name="kb_u2_v104.u2" size="65536" crc="c970f6d5" sha1="399fc6f80262784c566363c847dc3fdc4fb37494" region="igs022" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0300.u14" merge="pgm_t0300.u14" size="4194304" crc="0922f7d9" sha1="4302b4b7369e13f315fad14f7d6cad1321101d24" region="tiles" offset="180000" />
    <rom name="pgm_a0300.u9" merge="pgm_a0300.u9" size="4194304" crc="3f9455d3" sha1="3718ce00ad93975383aafc14e5a74dc297b011a1" region="sprcol" offset="0" />
    <rom name="pgm_a0301.u10" merge="pgm_a0301.u10" size="4194304" crc="92776889" sha1="6d677837fefff47bfd1c6166322f69f89989a5e2" region="sprcol" offset="400000" />
    <rom name="pgm_a0303.u11" merge="pgm_a0303.u11" size="4194304" crc="33f5cc69" sha1="9cacd5058d4bb25b77f71658bbbbd4b38d0a6b6a" region="sprcol" offset="800000" />
    <rom name="pgm_a0306.u12" merge="pgm_a0306.u12" size="4194304" crc="cc018a8e" sha1="37752d46f238fb57c0ab5a4f96b1e013f2077347" region="sprcol" offset="c00000" />
    <rom name="pgm_a0307.u2" merge="pgm_a0307.u2" size="4194304" crc="bc772e39" sha1="079cc42a190cb916f02b59bca8fa90e524acefe9" region="sprcol" offset="1000000" />
    <rom name="pgm_b0300.u13" merge="pgm_b0300.u13" size="4194304" crc="7f876981" sha1="43555a200929ad5ecc42137fc9aeb42dc4f50d20" region="sprmask" offset="0" />
    <rom name="pgm_b0302.u14" merge="pgm_b0302.u14" size="4194304" crc="eea9c502" sha1="04b3972c7111ea59a3cceab6ad124080c4ce3520" region="sprmask" offset="400000" />
    <rom name="pgm_b0303.u15" merge="pgm_b0303.u15" size="2097152" crc="77a9652e" sha1="2342f643d37945fbda224a5034c013796e5134ca" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m0300.u1" merge="pgm_m0300.u1" size="4194304" crc="93159695" sha1="50c5976c9b681bd3d1ebefa3bfa9fe6e72dcb96f" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="igs025" />
    <device_ref name="igs022" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Region" tag="Region" mask="255">
      <dipvalue name="Taiwan" value="22" />
      <dipvalue name="China" value="23" />
      <dipvalue name="Hong Kong" value="24" />
      <dipvalue name="Japan" value="25" />
      <dipvalue name="Korea" value="32" />
      <dipvalue name="World" value="33" default="yes" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="killbld106" sourcefile="pgm.cpp" cloneof="killbld" romof="killbld">
    <description>The Killing Blade / Ao Jian Kuang Dao (ver. 106)</description>
    <year>1998</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="kb_u3_v106.u3" size="524288" crc="33b9111a" sha1="26875a9e502af9a36d13077cb7b07f9d28773d72" region="maincpu" offset="100001" />
    <rom name="kb_u6_v106.u6" size="524288" crc="1c957bd7" sha1="2bb54915166b4a62148de043b2c2088d39b91f14" region="maincpu" offset="100000" />
    <rom name="kb_u4_v106.u4" size="524288" crc="169bbaaf" sha1="a1833d3fd024c43ba7642f13e83a5b7b66631136" region="maincpu" offset="200001" />
    <rom name="kb_u5_v106.u5" size="524288" crc="df85abd4" sha1="f9e37f76c7af8a8492bd1fd22d8b3fbda194ed03" region="maincpu" offset="200000" />
    <rom name="kb_u2_v106.u2" size="65536" crc="5df8cf51" sha1="d82e281a43015da653fc37e97f52943e03a07112" region="igs022" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0300.u14" merge="pgm_t0300.u14" size="4194304" crc="0922f7d9" sha1="4302b4b7369e13f315fad14f7d6cad1321101d24" region="tiles" offset="180000" />
    <rom name="pgm_a0300.u9" merge="pgm_a0300.u9" size="4194304" crc="3f9455d3" sha1="3718ce00ad93975383aafc14e5a74dc297b011a1" region="sprcol" offset="0" />
    <rom name="pgm_a0301.u10" merge="pgm_a0301.u10" size="4194304" crc="92776889" sha1="6d677837fefff47bfd1c6166322f69f89989a5e2" region="sprcol" offset="400000" />
    <rom name="pgm_a0303.u11" merge="pgm_a0303.u11" size="4194304" crc="33f5cc69" sha1="9cacd5058d4bb25b77f71658bbbbd4b38d0a6b6a" region="sprcol" offset="800000" />
    <rom name="pgm_a0306.u12" merge="pgm_a0306.u12" size="4194304" crc="cc018a8e" sha1="37752d46f238fb57c0ab5a4f96b1e013f2077347" region="sprcol" offset="c00000" />
    <rom name="pgm_a0307.u2" merge="pgm_a0307.u2" size="4194304" crc="bc772e39" sha1="079cc42a190cb916f02b59bca8fa90e524acefe9" region="sprcol" offset="1000000" />
    <rom name="pgm_b0300.u13" merge="pgm_b0300.u13" size="4194304" crc="7f876981" sha1="43555a200929ad5ecc42137fc9aeb42dc4f50d20" region="sprmask" offset="0" />
    <rom name="pgm_b0302.u14" merge="pgm_b0302.u14" size="4194304" crc="eea9c502" sha1="04b3972c7111ea59a3cceab6ad124080c4ce3520" region="sprmask" offset="400000" />
    <rom name="pgm_b0303.u15" merge="pgm_b0303.u15" size="2097152" crc="77a9652e" sha1="2342f643d37945fbda224a5034c013796e5134ca" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m0300.u1" merge="pgm_m0300.u1" size="4194304" crc="93159695" sha1="50c5976c9b681bd3d1ebefa3bfa9fe6e72dcb96f" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="igs025" />
    <device_ref name="igs022" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Region" tag="Region" mask="255">
      <dipvalue name="Taiwan" value="22" />
      <dipvalue name="China" value="23" />
      <dipvalue name="Hong Kong" value="24" />
      <dipvalue name="Japan" value="25" />
      <dipvalue name="Korea" value="32" />
      <dipvalue name="World" value="33" default="yes" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="killbldp" sourcefile="pgm.cpp" romof="pgm">
    <description>The Killing Blade Plus / Ao Jian Kuang Dao Jiaqiang Ban (China, ver. 300)</description>
    <year>2005</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v300xx_u6.u6" size="524288" crc="b7fb8ec9" sha1="e71b2d74269a82c7155b9818821156e128b68b28" region="maincpu" offset="100000" />
    <rom name="killbldp_igs027a_alt.bin" size="16384" crc="98316b06" sha1="09be9fad24d68980a0a5beae60ced48012286216" region="prot" offset="0" />
    <rom name="v300xx_u26.u26" size="2097152" crc="144388c8" sha1="d7469df077c1a674129f18210584ba4d05a61888" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="igs_t05701w032.u33" size="4194304" crc="567c714f" sha1="b25b20e1ec9f077d6f7b9d41723a68d0d461bef2" region="tiles" offset="180000" />
    <rom name="igs_a05701w064.u3" size="8388608" crc="8c0c992c" sha1="28391e50ca4400060676f1524bd49ede373292da" region="sprcol" offset="0" />
    <rom name="igs_a05702w064.u4" size="8388608" crc="7e5b0f27" sha1="9e8d69f34c30216925fcb7af87f8b37f703317e7" region="sprcol" offset="800000" />
    <rom name="igs_a05703w064.u6" size="8388608" crc="accbdb44" sha1="d59b2452c7a5b4e666473dc973b73a0f2b4edc13" region="sprcol" offset="1000000" />
    <rom name="igs_b05701w064.u9" size="8388608" crc="a20cdcef" sha1="029a49971adf1e72ab556a207172bdfbd0b86b03" region="sprmask" offset="0" />
    <rom name="igs_b05702w016.u11" size="2097152" crc="fe7457df" sha1="d66b1b31102b0210f9faf40e1473cd1511ccaf1f" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="igs_w05701b032.u5" size="4194304" crc="2d3ae593" sha1="b9c1d2994be95ba974bc134a3bf115bc9c9c9c16" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="33868800" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="kov" sourcefile="pgm.cpp" romof="pgm">
    <description>Knights of Valour / Sanguo Zhan Ji / Sangoku Senki (ver. 117)</description>
    <year>1999</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="p0600.117" size="4194304" crc="c4d19fe6" sha1="14ef31539bfbc665e76c9703ee01b12228344052" region="maincpu" offset="100000" />
    <rom name="kov_igs027a.bin" size="16384" status="nodump" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0600.u11" size="8388608" crc="4acc1ad6" sha1="0668dbd5e856c2406910c6b7382548b37c631780" region="tiles" offset="180000" />
    <rom name="pgm_a0600.u2" size="8388608" crc="d8167834" sha1="fa55a99629d03b2ea253392352f70d2c8639a991" region="sprcol" offset="0" />
    <rom name="pgm_a0601.u4" size="8388608" crc="ff7a4373" sha1="7def9fca7513ad5a117da230bebd2e3c78679041" region="sprcol" offset="800000" />
    <rom name="pgm_a0602.u6" size="8388608" crc="e7a32959" sha1="3d0ed684dc5b269238890836b2ce7ef46aa5265b" region="sprcol" offset="1000000" />
    <rom name="pgm_a0603.u9" size="4194304" crc="ec31abda" sha1="ee526655369bae63b0ef0730e9768b765c9950fc" region="sprcol" offset="1800000" />
    <rom name="pgm_b0600.u5" size="8388608" crc="7d3cd059" sha1="00cf994b63337e0e4ebe96453daf45f24192af1c" region="sprmask" offset="0" />
    <rom name="pgm_b0601.u7" size="4194304" crc="a0bb1c2f" sha1="0542348c6e27779e0a98de16f04f9c18158f2b28" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m0600.u3" size="4194304" crc="3ada4fd6" sha1="4c87adb25d31cbd41f04fbffe31f7bc37173da76" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="Region" mask="15">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="preliminary" emulation="good" savestate="supported" />
    <feature type="protection" status="imperfect" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="kov111" sourcefile="pgm.cpp" cloneof="kov" romof="kov">
    <description>Knights of Valour / Sanguo Zhan Ji / Sangoku Senki (ver. 111, Japanese Board)</description>
    <year>1999</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="sav111_u4.u4" size="524288" crc="ae2f1b4e" sha1="2ac9d84f5dee52f374941cfd68e2b98ecad436a8" region="maincpu" offset="100001" />
    <rom name="sav111_u7.u7" size="524288" crc="95eedf0e" sha1="582a54e9a1eda7ff73e20f0e69d2d50141772378" region="maincpu" offset="100000" />
    <rom name="sav111_u5.u5" size="524288" crc="5fdd4aa8" sha1="43c96e21ad4f11148e1e94a59c53780b2edd43ba" region="maincpu" offset="200001" />
    <rom name="sav111_u8.u8" size="524288" crc="003cbf49" sha1="fb5bea47ecae025b1b425af52cd05e061f45e377" region="maincpu" offset="200000" />
    <rom name="sav111_u10.u10" size="524288" crc="d5536107" sha1="f963e015d99c1621323eecf63e773c0b9f4b6a43" region="maincpu" offset="300000" />
    <rom name="kov_igs027a.bin" size="16384" status="nodump" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0600.u11" merge="pgm_t0600.u11" size="8388608" crc="4acc1ad6" sha1="0668dbd5e856c2406910c6b7382548b37c631780" region="tiles" offset="180000" />
    <rom name="pgm_a0600.u2" merge="pgm_a0600.u2" size="8388608" crc="d8167834" sha1="fa55a99629d03b2ea253392352f70d2c8639a991" region="sprcol" offset="0" />
    <rom name="pgm_a0601.u4" merge="pgm_a0601.u4" size="8388608" crc="ff7a4373" sha1="7def9fca7513ad5a117da230bebd2e3c78679041" region="sprcol" offset="800000" />
    <rom name="pgm_a0602.u6" merge="pgm_a0602.u6" size="8388608" crc="e7a32959" sha1="3d0ed684dc5b269238890836b2ce7ef46aa5265b" region="sprcol" offset="1000000" />
    <rom name="pgm_a0603.u9" merge="pgm_a0603.u9" size="4194304" crc="ec31abda" sha1="ee526655369bae63b0ef0730e9768b765c9950fc" region="sprcol" offset="1800000" />
    <rom name="pgm_b0600.u5" merge="pgm_b0600.u5" size="8388608" crc="7d3cd059" sha1="00cf994b63337e0e4ebe96453daf45f24192af1c" region="sprmask" offset="0" />
    <rom name="pgm_b0601.u7" merge="pgm_b0601.u7" size="4194304" crc="a0bb1c2f" sha1="0542348c6e27779e0a98de16f04f9c18158f2b28" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m0600.u3" merge="pgm_m0600.u3" size="4194304" crc="3ada4fd6" sha1="4c87adb25d31cbd41f04fbffe31f7bc37173da76" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="Region" mask="15">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="preliminary" emulation="good" savestate="supported" />
    <feature type="protection" status="imperfect" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="kov114" sourcefile="pgm.cpp" cloneof="kov" romof="kov">
    <description>Knights of Valour / Sanguo Zhan Ji / Sangoku Senki (ver. 114, Hong Kong)</description>
    <year>1999</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="sav114_u4.u4" size="524288" crc="4db3d4d3" sha1="924734ec3b3d6de21872890b9575f72f81c7b636" region="maincpu" offset="100001" />
    <rom name="sav114_u7.u7" size="524288" crc="b8d12b0c" sha1="f4c02e494a479c3021b56bb87341d507104f93d5" region="maincpu" offset="100000" />
    <rom name="sav114_u5.u5" size="524288" crc="9e586dab" sha1="3de948decf2b7bcbbbc37d2e6fa7a2a71f0b8d5e" region="maincpu" offset="200001" />
    <rom name="sav114_u8.u8" size="524288" crc="ab129997" sha1="b0e56a09df0def3e8b584ca6f53cd3c88634653e" region="maincpu" offset="200000" />
    <rom name="sav114_u10.u10" size="524288" crc="8f84ecfd" sha1="2e7f322da6c4b1d6daf7a308229f4cf2e69fda8f" region="maincpu" offset="300000" />
    <rom name="kov_igs027.bin" size="16384" status="nodump" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0600.u11" merge="pgm_t0600.u11" size="8388608" crc="4acc1ad6" sha1="0668dbd5e856c2406910c6b7382548b37c631780" region="tiles" offset="180000" />
    <rom name="pgm_a0600.u2" merge="pgm_a0600.u2" size="8388608" crc="d8167834" sha1="fa55a99629d03b2ea253392352f70d2c8639a991" region="sprcol" offset="0" />
    <rom name="pgm_a0601.u4" merge="pgm_a0601.u4" size="8388608" crc="ff7a4373" sha1="7def9fca7513ad5a117da230bebd2e3c78679041" region="sprcol" offset="800000" />
    <rom name="pgm_a0602.u6" merge="pgm_a0602.u6" size="8388608" crc="e7a32959" sha1="3d0ed684dc5b269238890836b2ce7ef46aa5265b" region="sprcol" offset="1000000" />
    <rom name="pgm_a0603.u9" merge="pgm_a0603.u9" size="4194304" crc="ec31abda" sha1="ee526655369bae63b0ef0730e9768b765c9950fc" region="sprcol" offset="1800000" />
    <rom name="pgm_b0600.u5" merge="pgm_b0600.u5" size="8388608" crc="7d3cd059" sha1="00cf994b63337e0e4ebe96453daf45f24192af1c" region="sprmask" offset="0" />
    <rom name="pgm_b0601.u7" merge="pgm_b0601.u7" size="4194304" crc="a0bb1c2f" sha1="0542348c6e27779e0a98de16f04f9c18158f2b28" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m0600.u3" merge="pgm_m0600.u3" size="4194304" crc="3ada4fd6" sha1="4c87adb25d31cbd41f04fbffe31f7bc37173da76" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="Region" mask="15">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="preliminary" emulation="good" savestate="supported" />
    <feature type="protection" status="imperfect" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="kov115" sourcefile="pgm.cpp" cloneof="kov" romof="kov">
    <description>Knights of Valour / Sanguo Zhan Ji / Sangoku Senki (ver. 115)</description>
    <year>1999</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="p0600.115" size="4194304" crc="527a2924" sha1="7e3b166dddc5245d7b408e78437c16fd2986d1d9" region="maincpu" offset="100000" />
    <rom name="kov_igs027a.bin" size="16384" status="nodump" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0600.u11" merge="pgm_t0600.u11" size="8388608" crc="4acc1ad6" sha1="0668dbd5e856c2406910c6b7382548b37c631780" region="tiles" offset="180000" />
    <rom name="pgm_a0600.u2" merge="pgm_a0600.u2" size="8388608" crc="d8167834" sha1="fa55a99629d03b2ea253392352f70d2c8639a991" region="sprcol" offset="0" />
    <rom name="pgm_a0601.u4" merge="pgm_a0601.u4" size="8388608" crc="ff7a4373" sha1="7def9fca7513ad5a117da230bebd2e3c78679041" region="sprcol" offset="800000" />
    <rom name="pgm_a0602.u6" merge="pgm_a0602.u6" size="8388608" crc="e7a32959" sha1="3d0ed684dc5b269238890836b2ce7ef46aa5265b" region="sprcol" offset="1000000" />
    <rom name="pgm_a0603.u9" merge="pgm_a0603.u9" size="4194304" crc="ec31abda" sha1="ee526655369bae63b0ef0730e9768b765c9950fc" region="sprcol" offset="1800000" />
    <rom name="pgm_b0600.u5" merge="pgm_b0600.u5" size="8388608" crc="7d3cd059" sha1="00cf994b63337e0e4ebe96453daf45f24192af1c" region="sprmask" offset="0" />
    <rom name="pgm_b0601.u7" merge="pgm_b0601.u7" size="4194304" crc="a0bb1c2f" sha1="0542348c6e27779e0a98de16f04f9c18158f2b28" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m0600.u3" merge="pgm_m0600.u3" size="4194304" crc="3ada4fd6" sha1="4c87adb25d31cbd41f04fbffe31f7bc37173da76" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="Region" mask="15">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="preliminary" emulation="good" savestate="supported" />
    <feature type="protection" status="imperfect" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="kov2" sourcefile="pgm.cpp" romof="pgm">
    <description>Knights of Valour 2 / Sanguo Zhan Ji 2 / Sangoku Senki 2 (ver. 107, 102, 100HK)</description>
    <year>2000</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v107_u18.u18" size="4194304" crc="661a5b2c" sha1="125054fabc93d4f4cba869c3e6adf863650d30cf" region="maincpu" offset="100000" />
    <rom name="kov2_v100_hongkong.asic" size="16384" crc="e0d7679f" sha1="e1c2d127eba4ddbeb8ad173c55b90ac1467e1ca8" region="prot" offset="0" />
    <rom name="v102_u19.u19" size="2097152" crc="462e2980" sha1="3da7c3d2c65b59f50c78be1c25922b71d40f6080" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t1200.u27" size="8388608" crc="d7e26609" sha1="bdad810f82fcf1d50a8791bdc495374ec5a309c6" region="tiles" offset="180000" />
    <rom name="pgm_a1200.u1" size="8388608" crc="ceeb81d8" sha1="5476729443fc1bc9593ae10fbf7cbc5d7290b017" region="sprcol" offset="0" />
    <rom name="pgm_a1201.u4" size="8388608" crc="21063ca7" sha1="cf561b44902425a920d5cbea5bf65dd9530b2289" region="sprcol" offset="800000" />
    <rom name="pgm_a1202.u6" size="8388608" crc="4bb92fae" sha1="f0b6d72ed425de1c69dc8f8d5795ea760a4a59b0" region="sprcol" offset="1000000" />
    <rom name="pgm_a1203.u8" size="8388608" crc="e73cb627" sha1="4c6e48b845a5d1e8f9899010fbf273d54c2b8899" region="sprcol" offset="1800000" />
    <rom name="pgm_a1204.u10" size="2097152" crc="14b4b5bb" sha1="d7db5740eec971f2782fb2885ee3af8f2a796550" region="sprcol" offset="2000000" />
    <rom name="pgm_b1200.u5" size="8388608" crc="bed7d994" sha1="019dfba8154256d64cd249eb0fa4c451edce34b8" region="sprmask" offset="0" />
    <rom name="pgm_b1201.u7" size="8388608" crc="f251eb57" sha1="56a5fc14ab7822f83379cecb26638e5bb266349a" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m1200.u3" size="8388608" crc="b0d88720" sha1="44ab137e3f8e15b7cb5697ffbd9b1143d8210c4f" region="ics" offset="800000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="RegionHack" mask="255">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" />
      <confsetting name="Untouched" value="255" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":RegionHack" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="kov2100" sourcefile="pgm.cpp" cloneof="kov2" romof="kov2">
    <description>Knights of Valour 2 / Sanguo Zhan Ji 2 / Sangoku Senki 2 (ver. 100, 100, 100HK)</description>
    <year>2000</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v100_u18.u18" size="4194304" crc="86205879" sha1="f73d5b70b41d39be1cac75e474b025de2cce0b01" region="maincpu" offset="100000" />
    <rom name="kov2_v100_hongkong.asic" merge="kov2_v100_hongkong.asic" size="16384" crc="e0d7679f" sha1="e1c2d127eba4ddbeb8ad173c55b90ac1467e1ca8" region="prot" offset="0" />
    <rom name="v100_u19.u19" size="2097152" crc="edd59922" sha1="09b14f20f685944a93292c83e5830849aade42c9" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t1200.u27" merge="pgm_t1200.u27" size="8388608" crc="d7e26609" sha1="bdad810f82fcf1d50a8791bdc495374ec5a309c6" region="tiles" offset="180000" />
    <rom name="pgm_a1200.u1" merge="pgm_a1200.u1" size="8388608" crc="ceeb81d8" sha1="5476729443fc1bc9593ae10fbf7cbc5d7290b017" region="sprcol" offset="0" />
    <rom name="pgm_a1201.u4" merge="pgm_a1201.u4" size="8388608" crc="21063ca7" sha1="cf561b44902425a920d5cbea5bf65dd9530b2289" region="sprcol" offset="800000" />
    <rom name="pgm_a1202.u6" merge="pgm_a1202.u6" size="8388608" crc="4bb92fae" sha1="f0b6d72ed425de1c69dc8f8d5795ea760a4a59b0" region="sprcol" offset="1000000" />
    <rom name="pgm_a1203.u8" merge="pgm_a1203.u8" size="8388608" crc="e73cb627" sha1="4c6e48b845a5d1e8f9899010fbf273d54c2b8899" region="sprcol" offset="1800000" />
    <rom name="pgm_a1204.u10" merge="pgm_a1204.u10" size="2097152" crc="14b4b5bb" sha1="d7db5740eec971f2782fb2885ee3af8f2a796550" region="sprcol" offset="2000000" />
    <rom name="pgm_b1200.u5" merge="pgm_b1200.u5" size="8388608" crc="bed7d994" sha1="019dfba8154256d64cd249eb0fa4c451edce34b8" region="sprmask" offset="0" />
    <rom name="pgm_b1201.u7" merge="pgm_b1201.u7" size="8388608" crc="f251eb57" sha1="56a5fc14ab7822f83379cecb26638e5bb266349a" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m1200.u3" merge="pgm_m1200.u3" size="8388608" crc="b0d88720" sha1="44ab137e3f8e15b7cb5697ffbd9b1143d8210c4f" region="ics" offset="800000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="RegionHack" mask="255">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" />
      <confsetting name="Untouched" value="255" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":RegionHack" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="kov2101" sourcefile="pgm.cpp" cloneof="kov2" romof="kov2">
    <description>Knights of Valour 2 / Sanguo Zhan Ji 2 / Sangoku Senki 2 (ver. 101, 101, 100HK)</description>
    <year>2000</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v101_u18.u18" size="4194304" crc="c9926f35" sha1="a9c72d0c5d239164107894c7d3fffe4af29ed201" region="maincpu" offset="100000" />
    <rom name="kov2_v100_hongkong.asic" merge="kov2_v100_hongkong.asic" size="16384" crc="e0d7679f" sha1="e1c2d127eba4ddbeb8ad173c55b90ac1467e1ca8" region="prot" offset="0" />
    <rom name="v101_u19.u19" size="2097152" crc="8c35f2fe" sha1="d4858f97fcfad0f342fccbc9cf1590276cc3c69c" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t1200.u27" merge="pgm_t1200.u27" size="8388608" crc="d7e26609" sha1="bdad810f82fcf1d50a8791bdc495374ec5a309c6" region="tiles" offset="180000" />
    <rom name="pgm_a1200.u1" merge="pgm_a1200.u1" size="8388608" crc="ceeb81d8" sha1="5476729443fc1bc9593ae10fbf7cbc5d7290b017" region="sprcol" offset="0" />
    <rom name="pgm_a1201.u4" merge="pgm_a1201.u4" size="8388608" crc="21063ca7" sha1="cf561b44902425a920d5cbea5bf65dd9530b2289" region="sprcol" offset="800000" />
    <rom name="pgm_a1202.u6" merge="pgm_a1202.u6" size="8388608" crc="4bb92fae" sha1="f0b6d72ed425de1c69dc8f8d5795ea760a4a59b0" region="sprcol" offset="1000000" />
    <rom name="pgm_a1203.u8" merge="pgm_a1203.u8" size="8388608" crc="e73cb627" sha1="4c6e48b845a5d1e8f9899010fbf273d54c2b8899" region="sprcol" offset="1800000" />
    <rom name="pgm_a1204.u10" merge="pgm_a1204.u10" size="2097152" crc="14b4b5bb" sha1="d7db5740eec971f2782fb2885ee3af8f2a796550" region="sprcol" offset="2000000" />
    <rom name="pgm_b1200.u5" merge="pgm_b1200.u5" size="8388608" crc="bed7d994" sha1="019dfba8154256d64cd249eb0fa4c451edce34b8" region="sprmask" offset="0" />
    <rom name="pgm_b1201.u7" merge="pgm_b1201.u7" size="8388608" crc="f251eb57" sha1="56a5fc14ab7822f83379cecb26638e5bb266349a" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m1200.u3" merge="pgm_m1200.u3" size="8388608" crc="b0d88720" sha1="44ab137e3f8e15b7cb5697ffbd9b1143d8210c4f" region="ics" offset="800000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="RegionHack" mask="255">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" />
      <confsetting name="Untouched" value="255" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":RegionHack" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="kov2102" sourcefile="pgm.cpp" cloneof="kov2" romof="kov2">
    <description>Knights of Valour 2 / Sanguo Zhan Ji 2 / Sangoku Senki 2 (ver. 102, 101, 100HK)</description>
    <year>2000</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v102_u18.u18" size="4194304" crc="a2489c37" sha1="77ea7cdec211848296dafd45bee1d042133ea2a6" region="maincpu" offset="100000" />
    <rom name="kov2_v100_hongkong.asic" merge="kov2_v100_hongkong.asic" size="16384" crc="e0d7679f" sha1="e1c2d127eba4ddbeb8ad173c55b90ac1467e1ca8" region="prot" offset="0" />
    <rom name="v101_u19.u19" size="2097152" crc="8c35f2fe" sha1="d4858f97fcfad0f342fccbc9cf1590276cc3c69c" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t1200.u27" merge="pgm_t1200.u27" size="8388608" crc="d7e26609" sha1="bdad810f82fcf1d50a8791bdc495374ec5a309c6" region="tiles" offset="180000" />
    <rom name="pgm_a1200.u1" merge="pgm_a1200.u1" size="8388608" crc="ceeb81d8" sha1="5476729443fc1bc9593ae10fbf7cbc5d7290b017" region="sprcol" offset="0" />
    <rom name="pgm_a1201.u4" merge="pgm_a1201.u4" size="8388608" crc="21063ca7" sha1="cf561b44902425a920d5cbea5bf65dd9530b2289" region="sprcol" offset="800000" />
    <rom name="pgm_a1202.u6" merge="pgm_a1202.u6" size="8388608" crc="4bb92fae" sha1="f0b6d72ed425de1c69dc8f8d5795ea760a4a59b0" region="sprcol" offset="1000000" />
    <rom name="pgm_a1203.u8" merge="pgm_a1203.u8" size="8388608" crc="e73cb627" sha1="4c6e48b845a5d1e8f9899010fbf273d54c2b8899" region="sprcol" offset="1800000" />
    <rom name="pgm_a1204.u10" merge="pgm_a1204.u10" size="2097152" crc="14b4b5bb" sha1="d7db5740eec971f2782fb2885ee3af8f2a796550" region="sprcol" offset="2000000" />
    <rom name="pgm_b1200.u5" merge="pgm_b1200.u5" size="8388608" crc="bed7d994" sha1="019dfba8154256d64cd249eb0fa4c451edce34b8" region="sprmask" offset="0" />
    <rom name="pgm_b1201.u7" merge="pgm_b1201.u7" size="8388608" crc="f251eb57" sha1="56a5fc14ab7822f83379cecb26638e5bb266349a" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m1200.u3" merge="pgm_m1200.u3" size="8388608" crc="b0d88720" sha1="44ab137e3f8e15b7cb5697ffbd9b1143d8210c4f" region="ics" offset="800000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="RegionHack" mask="255">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" />
      <confsetting name="Untouched" value="255" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":RegionHack" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="kov2103" sourcefile="pgm.cpp" cloneof="kov2" romof="kov2">
    <description>Knights of Valour 2 / Sanguo Zhan Ji 2 / Sangoku Senki 2 (ver. 103, 101, 100HK)</description>
    <year>2000</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v103_u18.u18" size="4194304" crc="98c32f76" sha1="ec7e35e8071bb7097e415493be4e40be0ca19fd6" region="maincpu" offset="100000" />
    <rom name="kov2_v100_hongkong.asic" merge="kov2_v100_hongkong.asic" size="16384" crc="e0d7679f" sha1="e1c2d127eba4ddbeb8ad173c55b90ac1467e1ca8" region="prot" offset="0" />
    <rom name="v101_u19.u19" size="2097152" crc="8c35f2fe" sha1="d4858f97fcfad0f342fccbc9cf1590276cc3c69c" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t1200.u27" merge="pgm_t1200.u27" size="8388608" crc="d7e26609" sha1="bdad810f82fcf1d50a8791bdc495374ec5a309c6" region="tiles" offset="180000" />
    <rom name="pgm_a1200.u1" merge="pgm_a1200.u1" size="8388608" crc="ceeb81d8" sha1="5476729443fc1bc9593ae10fbf7cbc5d7290b017" region="sprcol" offset="0" />
    <rom name="pgm_a1201.u4" merge="pgm_a1201.u4" size="8388608" crc="21063ca7" sha1="cf561b44902425a920d5cbea5bf65dd9530b2289" region="sprcol" offset="800000" />
    <rom name="pgm_a1202.u6" merge="pgm_a1202.u6" size="8388608" crc="4bb92fae" sha1="f0b6d72ed425de1c69dc8f8d5795ea760a4a59b0" region="sprcol" offset="1000000" />
    <rom name="pgm_a1203.u8" merge="pgm_a1203.u8" size="8388608" crc="e73cb627" sha1="4c6e48b845a5d1e8f9899010fbf273d54c2b8899" region="sprcol" offset="1800000" />
    <rom name="pgm_a1204.u10" merge="pgm_a1204.u10" size="2097152" crc="14b4b5bb" sha1="d7db5740eec971f2782fb2885ee3af8f2a796550" region="sprcol" offset="2000000" />
    <rom name="pgm_b1200.u5" merge="pgm_b1200.u5" size="8388608" crc="bed7d994" sha1="019dfba8154256d64cd249eb0fa4c451edce34b8" region="sprmask" offset="0" />
    <rom name="pgm_b1201.u7" merge="pgm_b1201.u7" size="8388608" crc="f251eb57" sha1="56a5fc14ab7822f83379cecb26638e5bb266349a" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m1200.u3" merge="pgm_m1200.u3" size="8388608" crc="b0d88720" sha1="44ab137e3f8e15b7cb5697ffbd9b1143d8210c4f" region="ics" offset="800000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="RegionHack" mask="255">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" />
      <confsetting name="Untouched" value="255" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":RegionHack" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="kov2104" sourcefile="pgm.cpp" cloneof="kov2" romof="kov2">
    <description>Knights of Valour 2 / Sanguo Zhan Ji 2 / Sangoku Senki 2 (ver. 104, 102, 100HK)</description>
    <year>2000</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v104_u18.u18" size="4194304" crc="0fdb050b" sha1="8ac704459e1a17d0956dd3529e81b6bcd8abf361" region="maincpu" offset="100000" />
    <rom name="kov2_v100_hongkong.asic" merge="kov2_v100_hongkong.asic" size="16384" crc="e0d7679f" sha1="e1c2d127eba4ddbeb8ad173c55b90ac1467e1ca8" region="prot" offset="0" />
    <rom name="v102_u19.u19" merge="v102_u19.u19" size="2097152" crc="462e2980" sha1="3da7c3d2c65b59f50c78be1c25922b71d40f6080" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t1200.u27" merge="pgm_t1200.u27" size="8388608" crc="d7e26609" sha1="bdad810f82fcf1d50a8791bdc495374ec5a309c6" region="tiles" offset="180000" />
    <rom name="pgm_a1200.u1" merge="pgm_a1200.u1" size="8388608" crc="ceeb81d8" sha1="5476729443fc1bc9593ae10fbf7cbc5d7290b017" region="sprcol" offset="0" />
    <rom name="pgm_a1201.u4" merge="pgm_a1201.u4" size="8388608" crc="21063ca7" sha1="cf561b44902425a920d5cbea5bf65dd9530b2289" region="sprcol" offset="800000" />
    <rom name="pgm_a1202.u6" merge="pgm_a1202.u6" size="8388608" crc="4bb92fae" sha1="f0b6d72ed425de1c69dc8f8d5795ea760a4a59b0" region="sprcol" offset="1000000" />
    <rom name="pgm_a1203.u8" merge="pgm_a1203.u8" size="8388608" crc="e73cb627" sha1="4c6e48b845a5d1e8f9899010fbf273d54c2b8899" region="sprcol" offset="1800000" />
    <rom name="pgm_a1204.u10" merge="pgm_a1204.u10" size="2097152" crc="14b4b5bb" sha1="d7db5740eec971f2782fb2885ee3af8f2a796550" region="sprcol" offset="2000000" />
    <rom name="pgm_b1200.u5" merge="pgm_b1200.u5" size="8388608" crc="bed7d994" sha1="019dfba8154256d64cd249eb0fa4c451edce34b8" region="sprmask" offset="0" />
    <rom name="pgm_b1201.u7" merge="pgm_b1201.u7" size="8388608" crc="f251eb57" sha1="56a5fc14ab7822f83379cecb26638e5bb266349a" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m1200.u3" merge="pgm_m1200.u3" size="8388608" crc="b0d88720" sha1="44ab137e3f8e15b7cb5697ffbd9b1143d8210c4f" region="ics" offset="800000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="RegionHack" mask="255">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" />
      <confsetting name="Untouched" value="255" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":RegionHack" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="kov2106" sourcefile="pgm.cpp" cloneof="kov2" romof="kov2">
    <description>Knights of Valour 2 / Sanguo Zhan Ji 2 / Sangoku Senki 2 (ver. 106, 102, 100HK)</description>
    <year>2000</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v106_u18.u18" size="4194304" crc="40051ad9" sha1="ba2ddf267fe688d5dfed575aeeccbab10135b37b" region="maincpu" offset="100000" />
    <rom name="kov2_v100_hongkong.asic" merge="kov2_v100_hongkong.asic" size="16384" crc="e0d7679f" sha1="e1c2d127eba4ddbeb8ad173c55b90ac1467e1ca8" region="prot" offset="0" />
    <rom name="v102_u19.u19" merge="v102_u19.u19" size="2097152" crc="462e2980" sha1="3da7c3d2c65b59f50c78be1c25922b71d40f6080" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t1200.u27" merge="pgm_t1200.u27" size="8388608" crc="d7e26609" sha1="bdad810f82fcf1d50a8791bdc495374ec5a309c6" region="tiles" offset="180000" />
    <rom name="pgm_a1200.u1" merge="pgm_a1200.u1" size="8388608" crc="ceeb81d8" sha1="5476729443fc1bc9593ae10fbf7cbc5d7290b017" region="sprcol" offset="0" />
    <rom name="pgm_a1201.u4" merge="pgm_a1201.u4" size="8388608" crc="21063ca7" sha1="cf561b44902425a920d5cbea5bf65dd9530b2289" region="sprcol" offset="800000" />
    <rom name="pgm_a1202.u6" merge="pgm_a1202.u6" size="8388608" crc="4bb92fae" sha1="f0b6d72ed425de1c69dc8f8d5795ea760a4a59b0" region="sprcol" offset="1000000" />
    <rom name="pgm_a1203.u8" merge="pgm_a1203.u8" size="8388608" crc="e73cb627" sha1="4c6e48b845a5d1e8f9899010fbf273d54c2b8899" region="sprcol" offset="1800000" />
    <rom name="pgm_a1204.u10" merge="pgm_a1204.u10" size="2097152" crc="14b4b5bb" sha1="d7db5740eec971f2782fb2885ee3af8f2a796550" region="sprcol" offset="2000000" />
    <rom name="pgm_b1200.u5" merge="pgm_b1200.u5" size="8388608" crc="bed7d994" sha1="019dfba8154256d64cd249eb0fa4c451edce34b8" region="sprmask" offset="0" />
    <rom name="pgm_b1201.u7" merge="pgm_b1201.u7" size="8388608" crc="f251eb57" sha1="56a5fc14ab7822f83379cecb26638e5bb266349a" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m1200.u3" merge="pgm_m1200.u3" size="8388608" crc="b0d88720" sha1="44ab137e3f8e15b7cb5697ffbd9b1143d8210c4f" region="ics" offset="800000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="RegionHack" mask="255">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" />
      <confsetting name="Untouched" value="255" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":RegionHack" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="kov2p" sourcefile="pgm.cpp" romof="pgm">
    <description>Knights of Valour 2 Plus - Nine Dragons / Sanguo Zhan Ji 2 Qunxiong Zhengba / Sanguo Zhan Ji 2 Feilong Zai Tian / Sangoku Senki Busyou Souha (ver. M205XX, 200, 100CN)</description>
    <year>2001</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v205_32m.u8" size="4194304" crc="3a2cc0de" sha1="d7511478b34bfb03b2fb5b8268b60502d05b9414" region="maincpu" offset="100000" />
    <rom name="kov2p_igs027a_china.bin" size="16384" crc="19a0bd95" sha1="83e9f22512832a51d41c588debe8be7adb3b1df7" region="prot" offset="0" />
    <rom name="v200_16m.u23" size="2097152" crc="16a0c11f" sha1="ce449cef76ebd5657d49b57951e2eb0f132e203e" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t1200.u27" size="8388608" crc="d7e26609" sha1="bdad810f82fcf1d50a8791bdc495374ec5a309c6" region="tiles" offset="180000" />
    <rom name="pgm_a1200.u1" size="8388608" crc="ceeb81d8" sha1="5476729443fc1bc9593ae10fbf7cbc5d7290b017" region="sprcol" offset="0" />
    <rom name="pgm_a1201.u4" size="8388608" crc="21063ca7" sha1="cf561b44902425a920d5cbea5bf65dd9530b2289" region="sprcol" offset="800000" />
    <rom name="pgm_a1202.u6" size="8388608" crc="4bb92fae" sha1="f0b6d72ed425de1c69dc8f8d5795ea760a4a59b0" region="sprcol" offset="1000000" />
    <rom name="pgm_a1203.u8" size="8388608" crc="e73cb627" sha1="4c6e48b845a5d1e8f9899010fbf273d54c2b8899" region="sprcol" offset="1800000" />
    <rom name="pgm_a1204.u10" size="2097152" crc="14b4b5bb" sha1="d7db5740eec971f2782fb2885ee3af8f2a796550" region="sprcol" offset="2000000" />
    <rom name="pgm_b1200.u5" size="8388608" crc="bed7d994" sha1="019dfba8154256d64cd249eb0fa4c451edce34b8" region="sprmask" offset="0" />
    <rom name="pgm_b1201.u7" size="8388608" crc="f251eb57" sha1="56a5fc14ab7822f83379cecb26638e5bb266349a" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m1200.u3" size="8388608" crc="b0d88720" sha1="44ab137e3f8e15b7cb5697ffbd9b1143d8210c4f" region="ics" offset="800000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="RegionHack" mask="255">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" />
      <confsetting name="Untouched" value="255" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":RegionHack" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="kov2p200" sourcefile="pgm.cpp" cloneof="kov2p" romof="kov2p">
    <description>Knights of Valour 2 Plus - Nine Dragons / Sanguo Zhan Ji 2 Qunxiong Zhengba / Sanguo Zhan Ji 2 Feilong Zai Tian / Sangoku Senki Busyou Souha (ver. M200XX, 200, 100CN)</description>
    <year>2001</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v200_32m.u8" size="4194304" crc="9a09fd61" sha1="690a0b323e1f275a08ba84febf93bf8edc2d0802" region="maincpu" offset="100000" />
    <rom name="kov2p_igs027a_china.bin" merge="kov2p_igs027a_china.bin" size="16384" crc="19a0bd95" sha1="83e9f22512832a51d41c588debe8be7adb3b1df7" region="prot" offset="0" />
    <rom name="v200_16m.u23" merge="v200_16m.u23" size="2097152" crc="16a0c11f" sha1="ce449cef76ebd5657d49b57951e2eb0f132e203e" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t1200.u27" merge="pgm_t1200.u27" size="8388608" crc="d7e26609" sha1="bdad810f82fcf1d50a8791bdc495374ec5a309c6" region="tiles" offset="180000" />
    <rom name="pgm_a1200.u1" merge="pgm_a1200.u1" size="8388608" crc="ceeb81d8" sha1="5476729443fc1bc9593ae10fbf7cbc5d7290b017" region="sprcol" offset="0" />
    <rom name="pgm_a1201.u4" merge="pgm_a1201.u4" size="8388608" crc="21063ca7" sha1="cf561b44902425a920d5cbea5bf65dd9530b2289" region="sprcol" offset="800000" />
    <rom name="pgm_a1202.u6" merge="pgm_a1202.u6" size="8388608" crc="4bb92fae" sha1="f0b6d72ed425de1c69dc8f8d5795ea760a4a59b0" region="sprcol" offset="1000000" />
    <rom name="pgm_a1203.u8" merge="pgm_a1203.u8" size="8388608" crc="e73cb627" sha1="4c6e48b845a5d1e8f9899010fbf273d54c2b8899" region="sprcol" offset="1800000" />
    <rom name="pgm_a1204.u10" merge="pgm_a1204.u10" size="2097152" crc="14b4b5bb" sha1="d7db5740eec971f2782fb2885ee3af8f2a796550" region="sprcol" offset="2000000" />
    <rom name="pgm_b1200.u5" merge="pgm_b1200.u5" size="8388608" crc="bed7d994" sha1="019dfba8154256d64cd249eb0fa4c451edce34b8" region="sprmask" offset="0" />
    <rom name="pgm_b1201.u7" merge="pgm_b1201.u7" size="8388608" crc="f251eb57" sha1="56a5fc14ab7822f83379cecb26638e5bb266349a" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m1200.u3" merge="pgm_m1200.u3" size="8388608" crc="b0d88720" sha1="44ab137e3f8e15b7cb5697ffbd9b1143d8210c4f" region="ics" offset="800000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="RegionHack" mask="255">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" />
      <confsetting name="Untouched" value="255" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":RegionHack" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="kov2p202" sourcefile="pgm.cpp" cloneof="kov2p" romof="kov2p">
    <description>Knights of Valour 2 Plus - Nine Dragons / Sanguo Zhan Ji 2 Qunxiong Zhengba / Sanguo Zhan Ji 2 Feilong Zai Tian / Sangoku Senki Busyou Souha (ver. M202XX, 200, 100CN)</description>
    <year>2001</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v202_32m.u8" size="4194304" crc="e9b5aa0c" sha1="39a776c8501e8557d305cfa56c997f9adeb6bcd2" region="maincpu" offset="100000" />
    <rom name="kov2p_igs027a_china.bin" merge="kov2p_igs027a_china.bin" size="16384" crc="19a0bd95" sha1="83e9f22512832a51d41c588debe8be7adb3b1df7" region="prot" offset="0" />
    <rom name="v200_16m.u23" merge="v200_16m.u23" size="2097152" crc="16a0c11f" sha1="ce449cef76ebd5657d49b57951e2eb0f132e203e" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t1200.u27" merge="pgm_t1200.u27" size="8388608" crc="d7e26609" sha1="bdad810f82fcf1d50a8791bdc495374ec5a309c6" region="tiles" offset="180000" />
    <rom name="pgm_a1200.u1" merge="pgm_a1200.u1" size="8388608" crc="ceeb81d8" sha1="5476729443fc1bc9593ae10fbf7cbc5d7290b017" region="sprcol" offset="0" />
    <rom name="pgm_a1201.u4" merge="pgm_a1201.u4" size="8388608" crc="21063ca7" sha1="cf561b44902425a920d5cbea5bf65dd9530b2289" region="sprcol" offset="800000" />
    <rom name="pgm_a1202.u6" merge="pgm_a1202.u6" size="8388608" crc="4bb92fae" sha1="f0b6d72ed425de1c69dc8f8d5795ea760a4a59b0" region="sprcol" offset="1000000" />
    <rom name="pgm_a1203.u8" merge="pgm_a1203.u8" size="8388608" crc="e73cb627" sha1="4c6e48b845a5d1e8f9899010fbf273d54c2b8899" region="sprcol" offset="1800000" />
    <rom name="pgm_a1204.u10" merge="pgm_a1204.u10" size="2097152" crc="14b4b5bb" sha1="d7db5740eec971f2782fb2885ee3af8f2a796550" region="sprcol" offset="2000000" />
    <rom name="pgm_b1200.u5" merge="pgm_b1200.u5" size="8388608" crc="bed7d994" sha1="019dfba8154256d64cd249eb0fa4c451edce34b8" region="sprmask" offset="0" />
    <rom name="pgm_b1201.u7" merge="pgm_b1201.u7" size="8388608" crc="f251eb57" sha1="56a5fc14ab7822f83379cecb26638e5bb266349a" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m1200.u3" merge="pgm_m1200.u3" size="8388608" crc="b0d88720" sha1="44ab137e3f8e15b7cb5697ffbd9b1143d8210c4f" region="ics" offset="800000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="RegionHack" mask="255">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" />
      <confsetting name="Untouched" value="255" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":RegionHack" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="kov2p203" sourcefile="pgm.cpp" cloneof="kov2p" romof="kov2p">
    <description>Knights of Valour 2 Plus - Nine Dragons / Sanguo Zhan Ji 2 Qunxiong Zhengba / Sanguo Zhan Ji 2 Feilong Zai Tian / Sangoku Senki Busyou Souha (ver. M203XX, 200, 100CN)</description>
    <year>2001</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v203_32m.u8" size="4194304" crc="11416886" sha1="00088165893ed0b5fb8bbac3def0edeb9ff0c4fd" region="maincpu" offset="100000" />
    <rom name="kov2p_igs027a_china.bin" merge="kov2p_igs027a_china.bin" size="16384" crc="19a0bd95" sha1="83e9f22512832a51d41c588debe8be7adb3b1df7" region="prot" offset="0" />
    <rom name="v200_16m.u23" merge="v200_16m.u23" size="2097152" crc="16a0c11f" sha1="ce449cef76ebd5657d49b57951e2eb0f132e203e" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t1200.u27" merge="pgm_t1200.u27" size="8388608" crc="d7e26609" sha1="bdad810f82fcf1d50a8791bdc495374ec5a309c6" region="tiles" offset="180000" />
    <rom name="pgm_a1200.u1" merge="pgm_a1200.u1" size="8388608" crc="ceeb81d8" sha1="5476729443fc1bc9593ae10fbf7cbc5d7290b017" region="sprcol" offset="0" />
    <rom name="pgm_a1201.u4" merge="pgm_a1201.u4" size="8388608" crc="21063ca7" sha1="cf561b44902425a920d5cbea5bf65dd9530b2289" region="sprcol" offset="800000" />
    <rom name="pgm_a1202.u6" merge="pgm_a1202.u6" size="8388608" crc="4bb92fae" sha1="f0b6d72ed425de1c69dc8f8d5795ea760a4a59b0" region="sprcol" offset="1000000" />
    <rom name="pgm_a1203.u8" merge="pgm_a1203.u8" size="8388608" crc="e73cb627" sha1="4c6e48b845a5d1e8f9899010fbf273d54c2b8899" region="sprcol" offset="1800000" />
    <rom name="pgm_a1204.u10" merge="pgm_a1204.u10" size="2097152" crc="14b4b5bb" sha1="d7db5740eec971f2782fb2885ee3af8f2a796550" region="sprcol" offset="2000000" />
    <rom name="pgm_b1200.u5" merge="pgm_b1200.u5" size="8388608" crc="bed7d994" sha1="019dfba8154256d64cd249eb0fa4c451edce34b8" region="sprmask" offset="0" />
    <rom name="pgm_b1201.u7" merge="pgm_b1201.u7" size="8388608" crc="f251eb57" sha1="56a5fc14ab7822f83379cecb26638e5bb266349a" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m1200.u3" merge="pgm_m1200.u3" size="8388608" crc="b0d88720" sha1="44ab137e3f8e15b7cb5697ffbd9b1143d8210c4f" region="ics" offset="800000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="RegionHack" mask="255">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" />
      <confsetting name="Untouched" value="255" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":RegionHack" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="kov2p204" sourcefile="pgm.cpp" cloneof="kov2p" romof="kov2p">
    <description>Knights of Valour 2 Plus - Nine Dragons / Sanguo Zhan Ji 2 Qunxiong Zhengba / Sanguo Zhan Ji 2 Feilong Zai Tian / Sangoku Senki Busyou Souha (ver. M204XX, 200, 100CN)</description>
    <year>2001</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v204_32m.u8" size="4194304" crc="583e0650" sha1="2e5656dd9c6cba9f84af9baa3f5f70cdccf9db47" region="maincpu" offset="100000" />
    <rom name="kov2p_igs027a_china.bin" merge="kov2p_igs027a_china.bin" size="16384" crc="19a0bd95" sha1="83e9f22512832a51d41c588debe8be7adb3b1df7" region="prot" offset="0" />
    <rom name="v200_16m.u23" merge="v200_16m.u23" size="2097152" crc="16a0c11f" sha1="ce449cef76ebd5657d49b57951e2eb0f132e203e" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t1200.u27" merge="pgm_t1200.u27" size="8388608" crc="d7e26609" sha1="bdad810f82fcf1d50a8791bdc495374ec5a309c6" region="tiles" offset="180000" />
    <rom name="pgm_a1200.u1" merge="pgm_a1200.u1" size="8388608" crc="ceeb81d8" sha1="5476729443fc1bc9593ae10fbf7cbc5d7290b017" region="sprcol" offset="0" />
    <rom name="pgm_a1201.u4" merge="pgm_a1201.u4" size="8388608" crc="21063ca7" sha1="cf561b44902425a920d5cbea5bf65dd9530b2289" region="sprcol" offset="800000" />
    <rom name="pgm_a1202.u6" merge="pgm_a1202.u6" size="8388608" crc="4bb92fae" sha1="f0b6d72ed425de1c69dc8f8d5795ea760a4a59b0" region="sprcol" offset="1000000" />
    <rom name="pgm_a1203.u8" merge="pgm_a1203.u8" size="8388608" crc="e73cb627" sha1="4c6e48b845a5d1e8f9899010fbf273d54c2b8899" region="sprcol" offset="1800000" />
    <rom name="pgm_a1204.u10" merge="pgm_a1204.u10" size="2097152" crc="14b4b5bb" sha1="d7db5740eec971f2782fb2885ee3af8f2a796550" region="sprcol" offset="2000000" />
    <rom name="pgm_b1200.u5" merge="pgm_b1200.u5" size="8388608" crc="bed7d994" sha1="019dfba8154256d64cd249eb0fa4c451edce34b8" region="sprmask" offset="0" />
    <rom name="pgm_b1201.u7" merge="pgm_b1201.u7" size="8388608" crc="f251eb57" sha1="56a5fc14ab7822f83379cecb26638e5bb266349a" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m1200.u3" merge="pgm_m1200.u3" size="8388608" crc="b0d88720" sha1="44ab137e3f8e15b7cb5697ffbd9b1143d8210c4f" region="ics" offset="800000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="RegionHack" mask="255">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" />
      <confsetting name="Untouched" value="255" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":RegionHack" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="kovlsjb" sourcefile="pgm.cpp" cloneof="kovshp" romof="kovshp">
    <description>Luanshi Jie Ba (bootleg of Knights of Valour Super Heroes Plus, ver. 200CN, set 1)</description>
    <year>200?</year>
    <manufacturer>bootleg</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="lsjb_prg.rom" size="4194304" crc="adf06b37" sha1="be3c0af64de374046d28492ac49c01da1ec78e40" region="maincpu" offset="100000" />
    <rom name="kovsh_v100_china.asic" merge="kovsh_v100_china.asic" size="16384" crc="0f09a5c1" sha1="621b38c05f33277608d58b49822aebc930ae4870" status="baddump" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="lsqh2_t01.rom" size="16777216" crc="d498d97f" sha1="97a7b6d2ed1170449e7c2899448af7cbbca4c94f" region="tiles" offset="180000" />
    <rom name="lsqh2_a01.rom" size="16777216" crc="25ae3efd" sha1="083d977602ddb5ad54fbdcba000cd4287de8d463" region="sprcol" offset="0" />
    <rom name="lsqh2_a23.rom" size="16777216" crc="7a779112" sha1="0a7d36b3715063d8eac629b95a9bb3ecd8e54fca" region="sprcol" offset="1000000" />
    <rom name="lsqh2_a45.rom" size="16777216" crc="5d7de052" sha1="7663b6cf09f65c4644661005a38f9aba84a32913" region="sprcol" offset="2000000" />
    <rom name="lsqh2_b01.rom" size="16777216" crc="df7ca696" sha1="7af3d27957a39de7e4873867c9972c05af7e7964" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="lsqh2_m01.rom" size="16777216" crc="01af1b65" sha1="6cf523fa8f1e03f974771611bb9a4e08a4d4443f" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="RegionHack" mask="255">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" />
      <confsetting name="Untouched" value="255" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":RegionHack" />
    <port tag=":Service" />
    <driver status="preliminary" emulation="preliminary" savestate="supported" />
    <feature type="protection" status="imperfect" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="kovlsjba" sourcefile="pgm.cpp" cloneof="kovshp" romof="kovshp">
    <description>Luanshi Jie Ba (bootleg of Knights of Valour Super Heroes Plus, ver. 200CN, set 2)</description>
    <year>200?</year>
    <manufacturer>bootleg</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="lsjba_prg.rom" size="4194304" crc="8b42f456" sha1="48796e48f6f1a5f68442cf15a6b195095d443a35" region="maincpu" offset="100000" />
    <rom name="kovsh_v100_china.asic" merge="kovsh_v100_china.asic" size="16384" crc="0f09a5c1" sha1="621b38c05f33277608d58b49822aebc930ae4870" status="baddump" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="lsqh2_t01.rom" size="16777216" crc="d498d97f" sha1="97a7b6d2ed1170449e7c2899448af7cbbca4c94f" region="tiles" offset="180000" />
    <rom name="lsqh2_a01.rom" size="16777216" crc="25ae3efd" sha1="083d977602ddb5ad54fbdcba000cd4287de8d463" region="sprcol" offset="0" />
    <rom name="lsqh2_a23.rom" size="16777216" crc="7a779112" sha1="0a7d36b3715063d8eac629b95a9bb3ecd8e54fca" region="sprcol" offset="1000000" />
    <rom name="lsqh2_a45.rom" size="16777216" crc="5d7de052" sha1="7663b6cf09f65c4644661005a38f9aba84a32913" region="sprcol" offset="2000000" />
    <rom name="lsqh2_b01.rom" size="16777216" crc="df7ca696" sha1="7af3d27957a39de7e4873867c9972c05af7e7964" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="lsqh2_m01.rom" size="16777216" crc="01af1b65" sha1="6cf523fa8f1e03f974771611bb9a4e08a4d4443f" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="RegionHack" mask="255">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" />
      <confsetting name="Untouched" value="255" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":RegionHack" />
    <port tag=":Service" />
    <driver status="preliminary" emulation="preliminary" savestate="supported" />
    <feature type="protection" status="imperfect" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="kovlsqh" sourcefile="pgm.cpp" cloneof="kovshp" romof="kovshp">
    <description>Luanshi Quanhuang (bootleg of Knights of Valour Super Heroes Plus, ver. 200CN)</description>
    <year>200?</year>
    <manufacturer>bootleg</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="lsqh_v200cn.rom" size="4194304" crc="9935a27a" sha1="3075935293172466c4bd997dcb67f864ae26493e" region="maincpu" offset="100000" />
    <rom name="kovsh_v100_china.asic" merge="kovsh_v100_china.asic" size="16384" crc="0f09a5c1" sha1="621b38c05f33277608d58b49822aebc930ae4870" status="baddump" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="lsqh2_t01.rom" size="16777216" crc="d498d97f" sha1="97a7b6d2ed1170449e7c2899448af7cbbca4c94f" region="tiles" offset="180000" />
    <rom name="lsqh2_a01.rom" size="16777216" crc="25ae3efd" sha1="083d977602ddb5ad54fbdcba000cd4287de8d463" region="sprcol" offset="0" />
    <rom name="lsqh2_a23.rom" size="16777216" crc="7a779112" sha1="0a7d36b3715063d8eac629b95a9bb3ecd8e54fca" region="sprcol" offset="1000000" />
    <rom name="lsqh2_a45.rom" size="16777216" crc="5d7de052" sha1="7663b6cf09f65c4644661005a38f9aba84a32913" region="sprcol" offset="2000000" />
    <rom name="lsqh2_b01.rom" size="16777216" crc="df7ca696" sha1="7af3d27957a39de7e4873867c9972c05af7e7964" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="lsqh2_m01.rom" size="16777216" crc="01af1b65" sha1="6cf523fa8f1e03f974771611bb9a4e08a4d4443f" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="RegionHack" mask="255">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" />
      <confsetting name="Untouched" value="255" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":RegionHack" />
    <port tag=":Service" />
    <driver status="preliminary" emulation="preliminary" savestate="supported" />
    <feature type="protection" status="imperfect" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="kovlsqh2" sourcefile="pgm.cpp" cloneof="kovshp" romof="kovshp">
    <description>Luanshi Quanhuang 2 (bootleg of Knights of Valour Super Heroes Plus, ver. 200CN)</description>
    <year>200?</year>
    <manufacturer>bootleg</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="lsqh2_prg.rom" size="4194304" crc="d71e3d50" sha1="bda78648bc176b0ded74118a8e340ee661bb930d" region="maincpu" offset="100000" />
    <rom name="kovsh_v100_china.asic" merge="kovsh_v100_china.asic" size="16384" crc="0f09a5c1" sha1="621b38c05f33277608d58b49822aebc930ae4870" status="baddump" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="lsqh2_t01.rom" size="16777216" crc="d498d97f" sha1="97a7b6d2ed1170449e7c2899448af7cbbca4c94f" region="tiles" offset="180000" />
    <rom name="lsqh2_a01.rom" size="16777216" crc="25ae3efd" sha1="083d977602ddb5ad54fbdcba000cd4287de8d463" region="sprcol" offset="0" />
    <rom name="lsqh2_a23.rom" size="16777216" crc="7a779112" sha1="0a7d36b3715063d8eac629b95a9bb3ecd8e54fca" region="sprcol" offset="1000000" />
    <rom name="lsqh2_a45.rom" size="16777216" crc="5d7de052" sha1="7663b6cf09f65c4644661005a38f9aba84a32913" region="sprcol" offset="2000000" />
    <rom name="lsqh2_b01.rom" size="16777216" crc="df7ca696" sha1="7af3d27957a39de7e4873867c9972c05af7e7964" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="lsqh2_m01.rom" size="16777216" crc="01af1b65" sha1="6cf523fa8f1e03f974771611bb9a4e08a4d4443f" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="RegionHack" mask="255">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" />
      <confsetting name="Untouched" value="255" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":RegionHack" />
    <port tag=":Service" />
    <driver status="preliminary" emulation="preliminary" savestate="supported" />
    <feature type="protection" status="imperfect" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="kovplus" sourcefile="pgm.cpp" romof="pgm">
    <description>Knights of Valour Plus / Sanguo Zhan Ji Zhengzong Plus / Sangoku Senki Masamune Plus (ver. 119, set 1)</description>
    <year>1999</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="pgm_p0603_v119.u1" size="4194304" crc="e4b0875d" sha1="e8382e131b0e431406dc2a05cc1ef128302d987c" region="maincpu" offset="100000" />
    <rom name="kov_igs027a.bin" size="16384" status="nodump" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0600.u11" size="8388608" crc="4acc1ad6" sha1="0668dbd5e856c2406910c6b7382548b37c631780" region="tiles" offset="180000" />
    <rom name="pgm_a0600.u2" size="8388608" crc="d8167834" sha1="fa55a99629d03b2ea253392352f70d2c8639a991" region="sprcol" offset="0" />
    <rom name="pgm_a0601.u4" size="8388608" crc="ff7a4373" sha1="7def9fca7513ad5a117da230bebd2e3c78679041" region="sprcol" offset="800000" />
    <rom name="pgm_a0602.u6" size="8388608" crc="e7a32959" sha1="3d0ed684dc5b269238890836b2ce7ef46aa5265b" region="sprcol" offset="1000000" />
    <rom name="pgm_a0603.u9" size="4194304" crc="ec31abda" sha1="ee526655369bae63b0ef0730e9768b765c9950fc" region="sprcol" offset="1800000" />
    <rom name="pgm_b0600.u5" size="8388608" crc="7d3cd059" sha1="00cf994b63337e0e4ebe96453daf45f24192af1c" region="sprmask" offset="0" />
    <rom name="pgm_b0601.u7" size="4194304" crc="a0bb1c2f" sha1="0542348c6e27779e0a98de16f04f9c18158f2b28" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m0600.u3" size="4194304" crc="3ada4fd6" sha1="4c87adb25d31cbd41f04fbffe31f7bc37173da76" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="Region" mask="15">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="preliminary" emulation="good" savestate="supported" />
    <feature type="protection" status="imperfect" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="kovplusa" sourcefile="pgm.cpp" cloneof="kovplus" romof="kovplus">
    <description>Knights of Valour Plus / Sanguo Zhan Ji Zhengzong Plus / Sangoku Senki Masamune Plus (ver. 119, set 2)</description>
    <year>1999</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v119.u4" size="524288" crc="6750388f" sha1="869f4ad27f2992cc62baa9a78bf7984a43ec4cc5" region="maincpu" offset="100001" />
    <rom name="v119.u7" size="524288" crc="d4101ffd" sha1="a327fd56eec65b07df9305cd93ef2c46bf8e40f3" region="maincpu" offset="100000" />
    <rom name="v119.u5" size="524288" crc="8200ece6" sha1="97081d2e8aed2ac6fbe5951890aecea18af5ce2e" region="maincpu" offset="200001" />
    <rom name="v119.u8" size="524288" crc="71e28f27" sha1="db382807e9185f0dc17124f210165fa1b36ca6ac" region="maincpu" offset="200000" />
    <rom name="v119.u10" size="524288" crc="29588ef2" sha1="17d1a308d44434cf65224a24360cf4b6e32d28f3" region="maincpu" offset="300000" />
    <rom name="kov_igs027a.bin" size="16384" status="nodump" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0600.u11" merge="pgm_t0600.u11" size="8388608" crc="4acc1ad6" sha1="0668dbd5e856c2406910c6b7382548b37c631780" region="tiles" offset="180000" />
    <rom name="pgm_a0600.u2" merge="pgm_a0600.u2" size="8388608" crc="d8167834" sha1="fa55a99629d03b2ea253392352f70d2c8639a991" region="sprcol" offset="0" />
    <rom name="pgm_a0601.u4" merge="pgm_a0601.u4" size="8388608" crc="ff7a4373" sha1="7def9fca7513ad5a117da230bebd2e3c78679041" region="sprcol" offset="800000" />
    <rom name="pgm_a0602.u6" merge="pgm_a0602.u6" size="8388608" crc="e7a32959" sha1="3d0ed684dc5b269238890836b2ce7ef46aa5265b" region="sprcol" offset="1000000" />
    <rom name="pgm_a0603.u9" merge="pgm_a0603.u9" size="4194304" crc="ec31abda" sha1="ee526655369bae63b0ef0730e9768b765c9950fc" region="sprcol" offset="1800000" />
    <rom name="pgm_b0600.u5" merge="pgm_b0600.u5" size="8388608" crc="7d3cd059" sha1="00cf994b63337e0e4ebe96453daf45f24192af1c" region="sprmask" offset="0" />
    <rom name="pgm_b0601.u7" merge="pgm_b0601.u7" size="4194304" crc="a0bb1c2f" sha1="0542348c6e27779e0a98de16f04f9c18158f2b28" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m0600.u3" merge="pgm_m0600.u3" size="4194304" crc="3ada4fd6" sha1="4c87adb25d31cbd41f04fbffe31f7bc37173da76" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="Region" mask="15">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="preliminary" emulation="good" savestate="supported" />
    <feature type="protection" status="imperfect" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="kovqhsgs" sourcefile="pgm.cpp" cloneof="kovsh" romof="kovsh">
    <description>Quanhuang Sanguo Tebie Ban (bootleg of Knights of Valour Super Heroes, V303CN, Nov 21 2008 19:03:49)</description>
    <year>2008</year>
    <manufacturer>bootleg</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="qhsg_c51.rom" size="4194304" crc="e5cbac85" sha1="4b424206387057863990b04f6d5bd0b6f754814f" region="maincpu" offset="100000" />
    <rom name="qhsg_prot.c51" merge="kovsh_v100_china.asic" size="16384" crc="0f09a5c1" sha1="621b38c05f33277608d58b49822aebc930ae4870" status="baddump" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="lsqh2_t01.rom" size="16777216" crc="d498d97f" sha1="97a7b6d2ed1170449e7c2899448af7cbbca4c94f" region="tiles" offset="180000" />
    <rom name="lsqh2_a01.rom" size="16777216" crc="25ae3efd" sha1="083d977602ddb5ad54fbdcba000cd4287de8d463" region="sprcol" offset="0" />
    <rom name="lsqh2_a23.rom" size="16777216" crc="7a779112" sha1="0a7d36b3715063d8eac629b95a9bb3ecd8e54fca" region="sprcol" offset="1000000" />
    <rom name="lsqh2_a45.rom" size="16777216" crc="5d7de052" sha1="7663b6cf09f65c4644661005a38f9aba84a32913" region="sprcol" offset="2000000" />
    <rom name="lsqh2_b01.rom" size="16777216" crc="df7ca696" sha1="7af3d27957a39de7e4873867c9972c05af7e7964" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="lsqh2_m01.rom" size="16777216" crc="01af1b65" sha1="6cf523fa8f1e03f974771611bb9a4e08a4d4443f" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="RegionHack" mask="255">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" />
      <confsetting name="Untouched" value="255" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":RegionHack" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="kovsgqyz" sourcefile="pgm.cpp" cloneof="kovplus" romof="kovplus">
    <description>Sanguo Qunying Chuan Zhengzong Plus (bootleg of Knights of Valour Plus, set 1)</description>
    <year>1999</year>
    <manufacturer>bootleg</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="pgm_sgqyz.rom" size="4194304" crc="18e1eed9" sha1="db18d9121bb533140957e9c58dbc38211d164b01" region="maincpu" offset="100000" />
    <rom name="kovsgqyz_igs027a.bin" size="16384" status="nodump" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0600.u11" merge="pgm_t0600.u11" size="8388608" crc="4acc1ad6" sha1="0668dbd5e856c2406910c6b7382548b37c631780" region="tiles" offset="180000" />
    <rom name="pgm_a0600.u2" merge="pgm_a0600.u2" size="8388608" crc="d8167834" sha1="fa55a99629d03b2ea253392352f70d2c8639a991" region="sprcol" offset="0" />
    <rom name="pgm_a0601.u4" merge="pgm_a0601.u4" size="8388608" crc="ff7a4373" sha1="7def9fca7513ad5a117da230bebd2e3c78679041" region="sprcol" offset="800000" />
    <rom name="pgm_a0602.u6" merge="pgm_a0602.u6" size="8388608" crc="e7a32959" sha1="3d0ed684dc5b269238890836b2ce7ef46aa5265b" region="sprcol" offset="1000000" />
    <rom name="qyza0603.rom" size="8388608" crc="c8b92220" sha1="4f9c43970d92ac8a8f1563021022797ae8e32012" region="sprcol" offset="1800000" />
    <rom name="pgm_b0600.u5" merge="pgm_b0600.u5" size="8388608" crc="7d3cd059" sha1="00cf994b63337e0e4ebe96453daf45f24192af1c" region="sprmask" offset="0" />
    <rom name="qyzb0601.rom" size="8388608" crc="64f55882" sha1="ab9ac1396587c3d78d06f6ec83cab61d6a9faacd" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m0600.u3" merge="pgm_m0600.u3" size="4194304" crc="3ada4fd6" sha1="4c87adb25d31cbd41f04fbffe31f7bc37173da76" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="Region" mask="15">
      <confsetting name="China" value="0" default="yes" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="preliminary" emulation="good" savestate="supported" />
    <feature type="protection" status="imperfect" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="kovsgqyza" sourcefile="pgm.cpp" cloneof="kovplus" romof="kovplus">
    <description>Sanguo Qunying Chuan Zhengzong Plus (bootleg of Knights of Valour Plus, set 2)</description>
    <year>1999</year>
    <manufacturer>bootleg</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="pgm_sgqyza.rom" size="4194304" crc="5a30dcb7" sha1="64f34faf99a19c0a54899990695129c512d5a3c8" region="maincpu" offset="100000" />
    <rom name="kovsgqyza_igs027a.bin" size="16384" status="nodump" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0600.u11" merge="pgm_t0600.u11" size="8388608" crc="4acc1ad6" sha1="0668dbd5e856c2406910c6b7382548b37c631780" region="tiles" offset="180000" />
    <rom name="pgm_a0600.u2" merge="pgm_a0600.u2" size="8388608" crc="d8167834" sha1="fa55a99629d03b2ea253392352f70d2c8639a991" region="sprcol" offset="0" />
    <rom name="pgm_a0601.u4" merge="pgm_a0601.u4" size="8388608" crc="ff7a4373" sha1="7def9fca7513ad5a117da230bebd2e3c78679041" region="sprcol" offset="800000" />
    <rom name="pgm_a0602.u6" merge="pgm_a0602.u6" size="8388608" crc="e7a32959" sha1="3d0ed684dc5b269238890836b2ce7ef46aa5265b" region="sprcol" offset="1000000" />
    <rom name="qyza0603.rom" size="8388608" crc="c8b92220" sha1="4f9c43970d92ac8a8f1563021022797ae8e32012" region="sprcol" offset="1800000" />
    <rom name="pgm_b0600.u5" merge="pgm_b0600.u5" size="8388608" crc="7d3cd059" sha1="00cf994b63337e0e4ebe96453daf45f24192af1c" region="sprmask" offset="0" />
    <rom name="qyzb0601.rom" size="8388608" crc="64f55882" sha1="ab9ac1396587c3d78d06f6ec83cab61d6a9faacd" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m0600.u3" merge="pgm_m0600.u3" size="4194304" crc="3ada4fd6" sha1="4c87adb25d31cbd41f04fbffe31f7bc37173da76" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="Region" mask="15">
      <confsetting name="China" value="0" default="yes" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="preliminary" emulation="good" savestate="supported" />
    <feature type="protection" status="imperfect" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="kovsgqyzb" sourcefile="pgm.cpp" cloneof="kovplus" romof="kovplus">
    <description>Sanguo Qunying Chuan Zhengzong Plus (bootleg of Knights of Valour Plus, set 3)</description>
    <year>1999</year>
    <manufacturer>bootleg</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="pgm_sgqyzb.rom" size="4194304" crc="18b8b9c0" sha1="f4937aa21cd11af16fb50e7a75c8d4c4ed27c5cf" region="maincpu" offset="100000" />
    <rom name="kovsgqyzb_igs027a.bin" size="16384" status="nodump" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0600.u11" merge="pgm_t0600.u11" size="8388608" crc="4acc1ad6" sha1="0668dbd5e856c2406910c6b7382548b37c631780" region="tiles" offset="180000" />
    <rom name="pgm_a0600.u2" merge="pgm_a0600.u2" size="8388608" crc="d8167834" sha1="fa55a99629d03b2ea253392352f70d2c8639a991" region="sprcol" offset="0" />
    <rom name="pgm_a0601.u4" merge="pgm_a0601.u4" size="8388608" crc="ff7a4373" sha1="7def9fca7513ad5a117da230bebd2e3c78679041" region="sprcol" offset="800000" />
    <rom name="pgm_a0602.u6" merge="pgm_a0602.u6" size="8388608" crc="e7a32959" sha1="3d0ed684dc5b269238890836b2ce7ef46aa5265b" region="sprcol" offset="1000000" />
    <rom name="qyza0603.rom" size="8388608" crc="c8b92220" sha1="4f9c43970d92ac8a8f1563021022797ae8e32012" region="sprcol" offset="1800000" />
    <rom name="pgm_b0600.u5" merge="pgm_b0600.u5" size="8388608" crc="7d3cd059" sha1="00cf994b63337e0e4ebe96453daf45f24192af1c" region="sprmask" offset="0" />
    <rom name="qyzb0601.rom" size="8388608" crc="64f55882" sha1="ab9ac1396587c3d78d06f6ec83cab61d6a9faacd" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m0600.u3" merge="pgm_m0600.u3" size="4194304" crc="3ada4fd6" sha1="4c87adb25d31cbd41f04fbffe31f7bc37173da76" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="Region" mask="15">
      <confsetting name="China" value="0" default="yes" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="preliminary" emulation="good" savestate="supported" />
    <feature type="protection" status="imperfect" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="kovsh" sourcefile="pgm.cpp" romof="pgm">
    <description>Knights of Valour Super Heroes / Sanguo Zhan Ji Fengyun Zaiqi / Sangoku Senki Super Heroes (ver. 104, CN)</description>
    <year>1999</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="pgm_p0605_v104.u1" size="4194304" crc="7c78e5f3" sha1="9b1e4bd63fb1294ebeb539966842273c8dc7683b" region="maincpu" offset="100000" />
    <rom name="kovsh_v100_china.asic" size="16384" crc="0f09a5c1" sha1="621b38c05f33277608d58b49822aebc930ae4870" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0600.u11" size="8388608" crc="4acc1ad6" sha1="0668dbd5e856c2406910c6b7382548b37c631780" region="tiles" offset="180000" />
    <rom name="pgm_a0600.u1" size="8388608" crc="d8167834" sha1="fa55a99629d03b2ea253392352f70d2c8639a991" region="sprcol" offset="0" />
    <rom name="pgm_a0601.u3" size="8388608" crc="ff7a4373" sha1="7def9fca7513ad5a117da230bebd2e3c78679041" region="sprcol" offset="800000" />
    <rom name="pgm_a0602.u5" size="8388608" crc="e7a32959" sha1="3d0ed684dc5b269238890836b2ce7ef46aa5265b" region="sprcol" offset="1000000" />
    <rom name="pgm_a0603.u7" size="4194304" crc="ec31abda" sha1="ee526655369bae63b0ef0730e9768b765c9950fc" region="sprcol" offset="1800000" />
    <rom name="pgm_a0604_v200.u9" size="4194304" crc="26b59fd3" sha1="53219376056f4766dc5236735599d982ceb56b84" region="sprcol" offset="1a00000" />
    <rom name="pgm_b0600.u6" size="8388608" crc="7d3cd059" sha1="00cf994b63337e0e4ebe96453daf45f24192af1c" region="sprmask" offset="0" />
    <rom name="pgm_b0601.u8" size="4194304" crc="a0bb1c2f" sha1="0542348c6e27779e0a98de16f04f9c18158f2b28" region="sprmask" offset="800000" />
    <rom name="pgm_b0602_v200.u10" size="1048576" crc="9df77934" sha1="99a3fe337c13702c9aa2373bcd1bb1befd0e2a13" region="sprmask" offset="c00000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m0600.u4" size="4194304" crc="3ada4fd6" sha1="4c87adb25d31cbd41f04fbffe31f7bc37173da76" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="RegionHack" mask="255">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" />
      <confsetting name="Untouched" value="255" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":RegionHack" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="kovsh100" sourcefile="pgm.cpp" cloneof="kovsh" romof="kovsh">
    <description>Knights of Valour Super Heroes / Sanguo Zhan Ji Fengyun Zaiqi / Sangoku Senki Super Heroes (ver. 100, CN)</description>
    <year>1999</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="kovsh-v0100-u1.bin" size="4194304" crc="d145c1ca" sha1="ce4da36791bc5eea9fe1ef6db180d789bab0bab7" region="maincpu" offset="100000" />
    <rom name="kovsh_v100_china.asic" merge="kovsh_v100_china.asic" size="16384" crc="0f09a5c1" sha1="621b38c05f33277608d58b49822aebc930ae4870" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0600.u11" merge="pgm_t0600.u11" size="8388608" crc="4acc1ad6" sha1="0668dbd5e856c2406910c6b7382548b37c631780" region="tiles" offset="180000" />
    <rom name="pgm_a0600.u1" merge="pgm_a0600.u1" size="8388608" crc="d8167834" sha1="fa55a99629d03b2ea253392352f70d2c8639a991" region="sprcol" offset="0" />
    <rom name="pgm_a0601.u3" merge="pgm_a0601.u3" size="8388608" crc="ff7a4373" sha1="7def9fca7513ad5a117da230bebd2e3c78679041" region="sprcol" offset="800000" />
    <rom name="pgm_a0602.u5" merge="pgm_a0602.u5" size="8388608" crc="e7a32959" sha1="3d0ed684dc5b269238890836b2ce7ef46aa5265b" region="sprcol" offset="1000000" />
    <rom name="pgm_a0603.u7" merge="pgm_a0603.u7" size="4194304" crc="ec31abda" sha1="ee526655369bae63b0ef0730e9768b765c9950fc" region="sprcol" offset="1800000" />
    <rom name="pgm_a0604_v200.u9" merge="pgm_a0604_v200.u9" size="4194304" crc="26b59fd3" sha1="53219376056f4766dc5236735599d982ceb56b84" region="sprcol" offset="1a00000" />
    <rom name="pgm_b0600.u6" merge="pgm_b0600.u6" size="8388608" crc="7d3cd059" sha1="00cf994b63337e0e4ebe96453daf45f24192af1c" region="sprmask" offset="0" />
    <rom name="pgm_b0601.u8" merge="pgm_b0601.u8" size="4194304" crc="a0bb1c2f" sha1="0542348c6e27779e0a98de16f04f9c18158f2b28" region="sprmask" offset="800000" />
    <rom name="pgm_b0602_v200.u10" merge="pgm_b0602_v200.u10" size="1048576" crc="9df77934" sha1="99a3fe337c13702c9aa2373bcd1bb1befd0e2a13" region="sprmask" offset="c00000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m0600.u4" merge="pgm_m0600.u4" size="4194304" crc="3ada4fd6" sha1="4c87adb25d31cbd41f04fbffe31f7bc37173da76" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="RegionHack" mask="255">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" />
      <confsetting name="Untouched" value="255" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":RegionHack" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="kovsh101" sourcefile="pgm.cpp" cloneof="kovsh" romof="kovsh">
    <description>Knights of Valour Super Heroes / Sanguo Zhan Ji Fengyun Zaiqi / Sangoku Senki Super Heroes (ver. 101, CN)</description>
    <year>1999</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="p0600.101" size="4194304" crc="517a9bcf" sha1="1ee0333aee2a7569e15bb2a1be8dd03f8b08e08c" region="maincpu" offset="100000" />
    <rom name="kovsh_v100_china.asic" merge="kovsh_v100_china.asic" size="16384" crc="0f09a5c1" sha1="621b38c05f33277608d58b49822aebc930ae4870" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0600.u11" merge="pgm_t0600.u11" size="8388608" crc="4acc1ad6" sha1="0668dbd5e856c2406910c6b7382548b37c631780" region="tiles" offset="180000" />
    <rom name="pgm_a0600.u1" merge="pgm_a0600.u1" size="8388608" crc="d8167834" sha1="fa55a99629d03b2ea253392352f70d2c8639a991" region="sprcol" offset="0" />
    <rom name="pgm_a0601.u3" merge="pgm_a0601.u3" size="8388608" crc="ff7a4373" sha1="7def9fca7513ad5a117da230bebd2e3c78679041" region="sprcol" offset="800000" />
    <rom name="pgm_a0602.u5" merge="pgm_a0602.u5" size="8388608" crc="e7a32959" sha1="3d0ed684dc5b269238890836b2ce7ef46aa5265b" region="sprcol" offset="1000000" />
    <rom name="pgm_a0603.u7" merge="pgm_a0603.u7" size="4194304" crc="ec31abda" sha1="ee526655369bae63b0ef0730e9768b765c9950fc" region="sprcol" offset="1800000" />
    <rom name="pgm_a0604_v200.u9" merge="pgm_a0604_v200.u9" size="4194304" crc="26b59fd3" sha1="53219376056f4766dc5236735599d982ceb56b84" region="sprcol" offset="1a00000" />
    <rom name="pgm_b0600.u6" merge="pgm_b0600.u6" size="8388608" crc="7d3cd059" sha1="00cf994b63337e0e4ebe96453daf45f24192af1c" region="sprmask" offset="0" />
    <rom name="pgm_b0601.u8" merge="pgm_b0601.u8" size="4194304" crc="a0bb1c2f" sha1="0542348c6e27779e0a98de16f04f9c18158f2b28" region="sprmask" offset="800000" />
    <rom name="pgm_b0602_v200.u10" merge="pgm_b0602_v200.u10" size="1048576" crc="9df77934" sha1="99a3fe337c13702c9aa2373bcd1bb1befd0e2a13" region="sprmask" offset="c00000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m0600.u4" merge="pgm_m0600.u4" size="4194304" crc="3ada4fd6" sha1="4c87adb25d31cbd41f04fbffe31f7bc37173da76" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="RegionHack" mask="255">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" />
      <confsetting name="Untouched" value="255" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":RegionHack" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="kovsh102" sourcefile="pgm.cpp" cloneof="kovsh" romof="kovsh">
    <description>Knights of Valour Super Heroes / Sanguo Zhan Ji Fengyun Zaiqi / Sangoku Senki Super Heroes (ver. 102, CN)</description>
    <year>1999</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="p0600.102" size="4194304" crc="fdd4fb0f" sha1="6906ce68f37b82e52ba30e5cceb1304d9e01430a" region="maincpu" offset="100000" />
    <rom name="kovsh_v100_china.asic" merge="kovsh_v100_china.asic" size="16384" crc="0f09a5c1" sha1="621b38c05f33277608d58b49822aebc930ae4870" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0600.u11" merge="pgm_t0600.u11" size="8388608" crc="4acc1ad6" sha1="0668dbd5e856c2406910c6b7382548b37c631780" region="tiles" offset="180000" />
    <rom name="pgm_a0600.u1" merge="pgm_a0600.u1" size="8388608" crc="d8167834" sha1="fa55a99629d03b2ea253392352f70d2c8639a991" region="sprcol" offset="0" />
    <rom name="pgm_a0601.u3" merge="pgm_a0601.u3" size="8388608" crc="ff7a4373" sha1="7def9fca7513ad5a117da230bebd2e3c78679041" region="sprcol" offset="800000" />
    <rom name="pgm_a0602.u5" merge="pgm_a0602.u5" size="8388608" crc="e7a32959" sha1="3d0ed684dc5b269238890836b2ce7ef46aa5265b" region="sprcol" offset="1000000" />
    <rom name="pgm_a0603.u7" merge="pgm_a0603.u7" size="4194304" crc="ec31abda" sha1="ee526655369bae63b0ef0730e9768b765c9950fc" region="sprcol" offset="1800000" />
    <rom name="pgm_a0604_v200.u9" merge="pgm_a0604_v200.u9" size="4194304" crc="26b59fd3" sha1="53219376056f4766dc5236735599d982ceb56b84" region="sprcol" offset="1a00000" />
    <rom name="pgm_b0600.u6" merge="pgm_b0600.u6" size="8388608" crc="7d3cd059" sha1="00cf994b63337e0e4ebe96453daf45f24192af1c" region="sprmask" offset="0" />
    <rom name="pgm_b0601.u8" merge="pgm_b0601.u8" size="4194304" crc="a0bb1c2f" sha1="0542348c6e27779e0a98de16f04f9c18158f2b28" region="sprmask" offset="800000" />
    <rom name="pgm_b0602_v200.u10" merge="pgm_b0602_v200.u10" size="1048576" crc="9df77934" sha1="99a3fe337c13702c9aa2373bcd1bb1befd0e2a13" region="sprmask" offset="c00000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m0600.u4" merge="pgm_m0600.u4" size="4194304" crc="3ada4fd6" sha1="4c87adb25d31cbd41f04fbffe31f7bc37173da76" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="RegionHack" mask="255">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" />
      <confsetting name="Untouched" value="255" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":RegionHack" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="kovsh103" sourcefile="pgm.cpp" cloneof="kovsh" romof="kovsh">
    <description>Knights of Valour Super Heroes / Sanguo Zhan Ji Fengyun Zaiqi / Sangoku Senki Super Heroes (ver. 103, CN)</description>
    <year>1999</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="pgm_p0604_v103.u1" size="4194304" crc="f0b3da82" sha1="4067beb69c049b51bce6154f4cf880600ca4de11" region="maincpu" offset="100000" />
    <rom name="kovsh_v100_china.asic" merge="kovsh_v100_china.asic" size="16384" crc="0f09a5c1" sha1="621b38c05f33277608d58b49822aebc930ae4870" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0600.u11" merge="pgm_t0600.u11" size="8388608" crc="4acc1ad6" sha1="0668dbd5e856c2406910c6b7382548b37c631780" region="tiles" offset="180000" />
    <rom name="pgm_a0600.u1" merge="pgm_a0600.u1" size="8388608" crc="d8167834" sha1="fa55a99629d03b2ea253392352f70d2c8639a991" region="sprcol" offset="0" />
    <rom name="pgm_a0601.u3" merge="pgm_a0601.u3" size="8388608" crc="ff7a4373" sha1="7def9fca7513ad5a117da230bebd2e3c78679041" region="sprcol" offset="800000" />
    <rom name="pgm_a0602.u5" merge="pgm_a0602.u5" size="8388608" crc="e7a32959" sha1="3d0ed684dc5b269238890836b2ce7ef46aa5265b" region="sprcol" offset="1000000" />
    <rom name="pgm_a0603.u7" merge="pgm_a0603.u7" size="4194304" crc="ec31abda" sha1="ee526655369bae63b0ef0730e9768b765c9950fc" region="sprcol" offset="1800000" />
    <rom name="pgm_a0604_v200.u9" merge="pgm_a0604_v200.u9" size="4194304" crc="26b59fd3" sha1="53219376056f4766dc5236735599d982ceb56b84" region="sprcol" offset="1a00000" />
    <rom name="pgm_b0600.u6" merge="pgm_b0600.u6" size="8388608" crc="7d3cd059" sha1="00cf994b63337e0e4ebe96453daf45f24192af1c" region="sprmask" offset="0" />
    <rom name="pgm_b0601.u8" merge="pgm_b0601.u8" size="4194304" crc="a0bb1c2f" sha1="0542348c6e27779e0a98de16f04f9c18158f2b28" region="sprmask" offset="800000" />
    <rom name="pgm_b0602_v200.u10" merge="pgm_b0602_v200.u10" size="1048576" crc="9df77934" sha1="99a3fe337c13702c9aa2373bcd1bb1befd0e2a13" region="sprmask" offset="c00000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m0600.u4" merge="pgm_m0600.u4" size="4194304" crc="3ada4fd6" sha1="4c87adb25d31cbd41f04fbffe31f7bc37173da76" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="RegionHack" mask="255">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" />
      <confsetting name="Untouched" value="255" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":RegionHack" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="kovshp" sourcefile="pgm.cpp" romof="pgm">
    <description>Knights of Valour Super Heroes Plus / Sanguo Zhan Ji Luanshi Xiaoxiong (ver. 101)</description>
    <year>2004</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="p0600h_101.rom" size="4194304" crc="e1d89a19" sha1="30e11c145652d03464b14d3cd09e4f35fff6120e" region="maincpu" offset="100000" />
    <rom name="kovsh_v100_china.asic" size="16384" crc="0f09a5c1" sha1="621b38c05f33277608d58b49822aebc930ae4870" status="baddump" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0600.u2" size="8388608" crc="4acc1ad6" sha1="0668dbd5e856c2406910c6b7382548b37c631780" region="tiles" offset="180000" />
    <rom name="pgm_a0600.u3" size="8388608" crc="d8167834" sha1="fa55a99629d03b2ea253392352f70d2c8639a991" region="sprcol" offset="0" />
    <rom name="pgm_a0601.u4" size="8388608" crc="ff7a4373" sha1="7def9fca7513ad5a117da230bebd2e3c78679041" region="sprcol" offset="800000" />
    <rom name="pgm_a0602.u6" size="8388608" crc="e7a32959" sha1="3d0ed684dc5b269238890836b2ce7ef46aa5265b" region="sprcol" offset="1000000" />
    <rom name="igs_a05401w064.u8" size="8388608" crc="4fd3413e" sha1="5e8f3e421342bf558c77e59635f9b5d713e825c2" region="sprcol" offset="1800000" />
    <rom name="pgm_b0600.u9" size="8388608" crc="7d3cd059" sha1="00cf994b63337e0e4ebe96453daf45f24192af1c" region="sprmask" offset="0" />
    <rom name="igs_b05401w064.u11" size="8388608" crc="60999757" sha1="118cf058e67858958bcb931e14f5d160c7de87cc" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m0600.u5" size="4194304" crc="3ada4fd6" sha1="4c87adb25d31cbd41f04fbffe31f7bc37173da76" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="RegionHack" mask="255">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" />
      <confsetting name="Untouched" value="255" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":RegionHack" />
    <port tag=":Service" />
    <driver status="preliminary" emulation="preliminary" savestate="supported" />
    <feature type="protection" status="imperfect" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="kovshp100" sourcefile="pgm.cpp" cloneof="kovshp" romof="kovshp">
    <description>Knights of Valour Super Heroes Plus / Sanguo Zhan Ji Luanshi Xiaoxiong (ver. 100)</description>
    <year>2004</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="s__s_m-100cn.u10" size="4194304" crc="e251e8e4" sha1="af5b7c81632a39e1450d932951bed634c76b84e8" region="maincpu" offset="100000" />
    <rom name="kovsh_v100_china.asic" merge="kovsh_v100_china.asic" size="16384" crc="0f09a5c1" sha1="621b38c05f33277608d58b49822aebc930ae4870" status="baddump" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0600.u2" merge="pgm_t0600.u2" size="8388608" crc="4acc1ad6" sha1="0668dbd5e856c2406910c6b7382548b37c631780" region="tiles" offset="180000" />
    <rom name="pgm_a0600.u3" merge="pgm_a0600.u3" size="8388608" crc="d8167834" sha1="fa55a99629d03b2ea253392352f70d2c8639a991" region="sprcol" offset="0" />
    <rom name="pgm_a0601.u4" merge="pgm_a0601.u4" size="8388608" crc="ff7a4373" sha1="7def9fca7513ad5a117da230bebd2e3c78679041" region="sprcol" offset="800000" />
    <rom name="pgm_a0602.u6" merge="pgm_a0602.u6" size="8388608" crc="e7a32959" sha1="3d0ed684dc5b269238890836b2ce7ef46aa5265b" region="sprcol" offset="1000000" />
    <rom name="igs_a05401w064.u8" merge="igs_a05401w064.u8" size="8388608" crc="4fd3413e" sha1="5e8f3e421342bf558c77e59635f9b5d713e825c2" region="sprcol" offset="1800000" />
    <rom name="pgm_b0600.u9" merge="pgm_b0600.u9" size="8388608" crc="7d3cd059" sha1="00cf994b63337e0e4ebe96453daf45f24192af1c" region="sprmask" offset="0" />
    <rom name="igs_b05401w064.u11" merge="igs_b05401w064.u11" size="8388608" crc="60999757" sha1="118cf058e67858958bcb931e14f5d160c7de87cc" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m0600.u5" merge="pgm_m0600.u5" size="4194304" crc="3ada4fd6" sha1="4c87adb25d31cbd41f04fbffe31f7bc37173da76" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="RegionHack" mask="255">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" />
      <confsetting name="Untouched" value="255" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":RegionHack" />
    <port tag=":Service" />
    <driver status="preliminary" emulation="preliminary" savestate="supported" />
    <feature type="protection" status="imperfect" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="kovshxas" sourcefile="pgm.cpp" cloneof="kovshp" romof="kovshp">
    <description>Aoshi Sanguo (bootleg of Knights of Valour Super Heroes Plus, V202CN, Oct 6 2008 09:59:26)</description>
    <year>2008</year>
    <manufacturer>bootleg</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="assg_v202cn.rom" size="4194304" crc="3b7b627f" sha1="b331148501f9349fbd5882fb3f184f6304e58646" region="maincpu" offset="100000" />
    <rom name="kovsh_v100_china.asic" merge="kovsh_v100_china.asic" size="16384" crc="0f09a5c1" sha1="621b38c05f33277608d58b49822aebc930ae4870" status="baddump" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="t0600.rom" merge="pgm_t0600.u2" size="8388608" crc="4acc1ad6" sha1="0668dbd5e856c2406910c6b7382548b37c631780" region="tiles" offset="180000" />
    <rom name="a0600.rom" merge="pgm_a0600.u3" size="8388608" crc="d8167834" sha1="fa55a99629d03b2ea253392352f70d2c8639a991" region="sprcol" offset="0" />
    <rom name="a0601.rom" merge="pgm_a0601.u4" size="8388608" crc="ff7a4373" sha1="7def9fca7513ad5a117da230bebd2e3c78679041" region="sprcol" offset="800000" />
    <rom name="a0602.rom" merge="pgm_a0602.u6" size="8388608" crc="e7a32959" sha1="3d0ed684dc5b269238890836b2ce7ef46aa5265b" region="sprcol" offset="1000000" />
    <rom name="a0603as.rom" size="8388608" crc="7057b37e" sha1="85a19f23303b4d581c4fa315b2c204af92fcb424" region="sprcol" offset="1800000" />
    <rom name="b0600.rom" merge="pgm_b0600.u9" size="8388608" crc="7d3cd059" sha1="00cf994b63337e0e4ebe96453daf45f24192af1c" region="sprmask" offset="0" />
    <rom name="b0601as.rom" size="8388608" crc="3784fb49" sha1="7e85fe5b5fb8746f1321c03ad2350d2a58969d7a" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="m0600.rom" merge="pgm_m0600.u5" size="4194304" crc="3ada4fd6" sha1="4c87adb25d31cbd41f04fbffe31f7bc37173da76" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="RegionHack" mask="255">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" />
      <confsetting name="Untouched" value="255" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":RegionHack" />
    <port tag=":Service" />
    <driver status="preliminary" emulation="preliminary" savestate="supported" />
    <feature type="protection" status="imperfect" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="kovytzy" sourcefile="pgm.cpp" romof="pgm">
    <description>Knights of Valour Super Heroes / Sanguo Zhan Ji Fengyun Zaiqi / Sangoku Senki Super Heroes (SANGO EX+) (ver. 201 'Yitong Zhongyuan', China)</description>
    <year>1999</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="ytzy_v201cn.rom" size="4194304" crc="f3705ea0" sha1="e31ad474d0c2364311d21a8ce37d49919c7b999c" region="maincpu" offset="100000" />
    <rom name="kovsh_v100_china.asic" size="16384" crc="0f09a5c1" sha1="621b38c05f33277608d58b49822aebc930ae4870" status="baddump" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0600.u2" size="8388608" crc="4acc1ad6" sha1="0668dbd5e856c2406910c6b7382548b37c631780" region="tiles" offset="180000" />
    <rom name="pgm_a0600.u3" size="8388608" crc="d8167834" sha1="fa55a99629d03b2ea253392352f70d2c8639a991" region="sprcol" offset="0" />
    <rom name="pgm_a0601.u4" size="8388608" crc="ff7a4373" sha1="7def9fca7513ad5a117da230bebd2e3c78679041" region="sprcol" offset="800000" />
    <rom name="pgm_a0602.u6" size="8388608" crc="e7a32959" sha1="3d0ed684dc5b269238890836b2ce7ef46aa5265b" region="sprcol" offset="1000000" />
    <rom name="igs_a05401w064.u8" size="8388608" crc="4fd3413e" sha1="5e8f3e421342bf558c77e59635f9b5d713e825c2" region="sprcol" offset="1800000" />
    <rom name="pgm_b0600.u9" size="8388608" crc="7d3cd059" sha1="00cf994b63337e0e4ebe96453daf45f24192af1c" region="sprmask" offset="0" />
    <rom name="igs_b05401w064.u11" size="8388608" crc="60999757" sha1="118cf058e67858958bcb931e14f5d160c7de87cc" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m0600.u5" size="4194304" crc="3ada4fd6" sha1="4c87adb25d31cbd41f04fbffe31f7bc37173da76" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="RegionHack" mask="255">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" />
      <confsetting name="Untouched" value="255" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":RegionHack" />
    <port tag=":Service" />
    <driver status="preliminary" emulation="preliminary" savestate="supported" />
    <feature type="protection" status="imperfect" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="martmast" sourcefile="pgm.cpp" romof="pgm">
    <description>Martial Masters / Xing Yi Quan (ver. 104, 102, 102US)</description>
    <year>2001</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v104_32m.u9" size="4194304" crc="cfd9dff4" sha1="328eaf6ac49a73265ee4e0f992b1b1312f49877b" region="maincpu" offset="100000" />
    <rom name="martial_masters_v102_usa.asic" size="16384" crc="a6c0828c" sha1="0a5bda56dca264c3c7ff7698b8f699563f203c4d" region="prot" offset="0" />
    <rom name="v102_16m.u10" size="2097152" crc="18b745e6" sha1="7bcb58dd3a2d6072f492cf0dd7181cb061c1f49d" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t1000.u3" size="8388608" crc="bbf879b5" sha1="bd9a6aea34ad4001e89e62ff4b7a2292eb833c00" region="tiles" offset="180000" />
    <rom name="pgm_a1000.u3" size="8388608" crc="43577ac8" sha1="6eea8b455985d5bac74dcc9943cdc3c0902de6cc" region="sprcol" offset="0" />
    <rom name="pgm_a1001.u4" size="8388608" crc="fe7a476f" sha1="a8c7f1f0dd3e53141aed6d927eb88a3ceebb81e4" region="sprcol" offset="800000" />
    <rom name="pgm_a1002.u6" size="8388608" crc="62e33d38" sha1="96163d583e25073594f8413ce263e56b66bd69a1" region="sprcol" offset="1000000" />
    <rom name="pgm_a1003.u8" size="8388608" crc="b2c4945a" sha1="7b18287a2db56db3651cfd4deb607af53522fefd" region="sprcol" offset="1800000" />
    <rom name="pgm_a1004.u10" size="4194304" crc="9fd3f5fd" sha1="057531f91062be51589c6cf8f4170089b9be6380" region="sprcol" offset="2000000" />
    <rom name="pgm_b1000.u9" size="8388608" crc="c5961f6f" sha1="a68060b10edbd084cbde79d2ed1c9084777beb10" region="sprmask" offset="0" />
    <rom name="pgm_b1001.u11" size="8388608" crc="0b7e1c06" sha1="545e15e0087f8621d593fecd8b4013f7ca311686" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m1000.u5" size="8388608" crc="ed407ae8" sha1="a6e9c09b39c13e8fb7fbc89fa9f823cbeb66e901" region="ics" offset="400000" />
    <rom name="pgm_m1001.u7" size="4194304" crc="662d2d48" sha1="2fcc3099d9c04456cae3b13035fb28eaf709e7d8" region="ics" offset="c00000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="22000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="RegionHack" mask="255">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" />
      <confsetting name="USA (Andamiro USA license)" value="6" />
      <confsetting name="Untouched" value="255" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":RegionHack" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="martmast102c" sourcefile="pgm.cpp" cloneof="martmast" romof="martmast">
    <description>Martial Masters / Xing Yi Quan (ver. 102, 101, 101CN)</description>
    <year>2001</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="mm_v102_u9.u9" size="4194304" crc="bb24b92a" sha1="442cb9e3f51727be82f71c078c5c3e49dc1a23f0" region="maincpu" offset="100000" />
    <rom name="martial_masters_v101_cn.asic" size="16384" crc="b3e25b7d" sha1="6147d7ee2e11636521df1bb96ed5da8ad21b2a57" region="prot" offset="0" />
    <rom name="mm_v101_u10.u10" size="4194304" crc="41b9497c" sha1="a941abbb938fb769112eaad374cc513a71aaa556" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t1000.u3" merge="pgm_t1000.u3" size="8388608" crc="bbf879b5" sha1="bd9a6aea34ad4001e89e62ff4b7a2292eb833c00" region="tiles" offset="180000" />
    <rom name="pgm_a1000.u3" merge="pgm_a1000.u3" size="8388608" crc="43577ac8" sha1="6eea8b455985d5bac74dcc9943cdc3c0902de6cc" region="sprcol" offset="0" />
    <rom name="pgm_a1001.u4" merge="pgm_a1001.u4" size="8388608" crc="fe7a476f" sha1="a8c7f1f0dd3e53141aed6d927eb88a3ceebb81e4" region="sprcol" offset="800000" />
    <rom name="pgm_a1002.u6" merge="pgm_a1002.u6" size="8388608" crc="62e33d38" sha1="96163d583e25073594f8413ce263e56b66bd69a1" region="sprcol" offset="1000000" />
    <rom name="pgm_a1003.u8" merge="pgm_a1003.u8" size="8388608" crc="b2c4945a" sha1="7b18287a2db56db3651cfd4deb607af53522fefd" region="sprcol" offset="1800000" />
    <rom name="pgm_a1004.u10" merge="pgm_a1004.u10" size="4194304" crc="9fd3f5fd" sha1="057531f91062be51589c6cf8f4170089b9be6380" region="sprcol" offset="2000000" />
    <rom name="pgm_b1000.u9" merge="pgm_b1000.u9" size="8388608" crc="c5961f6f" sha1="a68060b10edbd084cbde79d2ed1c9084777beb10" region="sprmask" offset="0" />
    <rom name="pgm_b1001.u11" merge="pgm_b1001.u11" size="8388608" crc="0b7e1c06" sha1="545e15e0087f8621d593fecd8b4013f7ca311686" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m1000.u5" merge="pgm_m1000.u5" size="8388608" crc="ed407ae8" sha1="a6e9c09b39c13e8fb7fbc89fa9f823cbeb66e901" region="ics" offset="400000" />
    <rom name="pgm_m1001.u7" merge="pgm_m1001.u7" size="4194304" crc="662d2d48" sha1="2fcc3099d9c04456cae3b13035fb28eaf709e7d8" region="ics" offset="c00000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="22000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="RegionHack" mask="255">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" />
      <confsetting name="USA (Andamiro USA license)" value="6" />
      <confsetting name="Untouched" value="255" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":RegionHack" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="martmast103c" sourcefile="pgm.cpp" cloneof="martmast" romof="martmast">
    <description>Martial Masters / Xing Yi Quan (ver. 103, 102, 101CN)</description>
    <year>2001</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v103_32m.u9" size="4194304" crc="df5ffbe9" sha1="cd37900b3741707f81077ca07565997031409131" region="maincpu" offset="100000" />
    <rom name="martial_masters_v101_cn.asic" size="16384" crc="b3e25b7d" sha1="6147d7ee2e11636521df1bb96ed5da8ad21b2a57" region="prot" offset="0" />
    <rom name="v102_16m.u10" merge="v102_16m.u10" size="2097152" crc="18b745e6" sha1="7bcb58dd3a2d6072f492cf0dd7181cb061c1f49d" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t1000.u3" merge="pgm_t1000.u3" size="8388608" crc="bbf879b5" sha1="bd9a6aea34ad4001e89e62ff4b7a2292eb833c00" region="tiles" offset="180000" />
    <rom name="pgm_a1000.u3" merge="pgm_a1000.u3" size="8388608" crc="43577ac8" sha1="6eea8b455985d5bac74dcc9943cdc3c0902de6cc" region="sprcol" offset="0" />
    <rom name="pgm_a1001.u4" merge="pgm_a1001.u4" size="8388608" crc="fe7a476f" sha1="a8c7f1f0dd3e53141aed6d927eb88a3ceebb81e4" region="sprcol" offset="800000" />
    <rom name="pgm_a1002.u6" merge="pgm_a1002.u6" size="8388608" crc="62e33d38" sha1="96163d583e25073594f8413ce263e56b66bd69a1" region="sprcol" offset="1000000" />
    <rom name="pgm_a1003.u8" merge="pgm_a1003.u8" size="8388608" crc="b2c4945a" sha1="7b18287a2db56db3651cfd4deb607af53522fefd" region="sprcol" offset="1800000" />
    <rom name="pgm_a1004.u10" merge="pgm_a1004.u10" size="4194304" crc="9fd3f5fd" sha1="057531f91062be51589c6cf8f4170089b9be6380" region="sprcol" offset="2000000" />
    <rom name="pgm_b1000.u9" merge="pgm_b1000.u9" size="8388608" crc="c5961f6f" sha1="a68060b10edbd084cbde79d2ed1c9084777beb10" region="sprmask" offset="0" />
    <rom name="pgm_b1001.u11" merge="pgm_b1001.u11" size="8388608" crc="0b7e1c06" sha1="545e15e0087f8621d593fecd8b4013f7ca311686" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m1000.u5" merge="pgm_m1000.u5" size="8388608" crc="ed407ae8" sha1="a6e9c09b39c13e8fb7fbc89fa9f823cbeb66e901" region="ics" offset="400000" />
    <rom name="pgm_m1001.u7" merge="pgm_m1001.u7" size="4194304" crc="662d2d48" sha1="2fcc3099d9c04456cae3b13035fb28eaf709e7d8" region="ics" offset="c00000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="22000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="RegionHack" mask="255">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" />
      <confsetting name="USA (Andamiro USA license)" value="6" />
      <confsetting name="Untouched" value="255" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":RegionHack" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="martmast104c" sourcefile="pgm.cpp" cloneof="martmast" romof="martmast">
    <description>Martial Masters / Xing Yi Quan (ver. 104, 102, 101CN)</description>
    <year>2001</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v104_32m.u9" merge="v104_32m.u9" size="4194304" crc="cfd9dff4" sha1="328eaf6ac49a73265ee4e0f992b1b1312f49877b" region="maincpu" offset="100000" />
    <rom name="martial_masters_v101_cn.asic" size="16384" crc="b3e25b7d" sha1="6147d7ee2e11636521df1bb96ed5da8ad21b2a57" region="prot" offset="0" />
    <rom name="v102_16m.u10" merge="v102_16m.u10" size="2097152" crc="18b745e6" sha1="7bcb58dd3a2d6072f492cf0dd7181cb061c1f49d" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t1000.u3" merge="pgm_t1000.u3" size="8388608" crc="bbf879b5" sha1="bd9a6aea34ad4001e89e62ff4b7a2292eb833c00" region="tiles" offset="180000" />
    <rom name="pgm_a1000.u3" merge="pgm_a1000.u3" size="8388608" crc="43577ac8" sha1="6eea8b455985d5bac74dcc9943cdc3c0902de6cc" region="sprcol" offset="0" />
    <rom name="pgm_a1001.u4" merge="pgm_a1001.u4" size="8388608" crc="fe7a476f" sha1="a8c7f1f0dd3e53141aed6d927eb88a3ceebb81e4" region="sprcol" offset="800000" />
    <rom name="pgm_a1002.u6" merge="pgm_a1002.u6" size="8388608" crc="62e33d38" sha1="96163d583e25073594f8413ce263e56b66bd69a1" region="sprcol" offset="1000000" />
    <rom name="pgm_a1003.u8" merge="pgm_a1003.u8" size="8388608" crc="b2c4945a" sha1="7b18287a2db56db3651cfd4deb607af53522fefd" region="sprcol" offset="1800000" />
    <rom name="pgm_a1004.u10" merge="pgm_a1004.u10" size="4194304" crc="9fd3f5fd" sha1="057531f91062be51589c6cf8f4170089b9be6380" region="sprcol" offset="2000000" />
    <rom name="pgm_b1000.u9" merge="pgm_b1000.u9" size="8388608" crc="c5961f6f" sha1="a68060b10edbd084cbde79d2ed1c9084777beb10" region="sprmask" offset="0" />
    <rom name="pgm_b1001.u11" merge="pgm_b1001.u11" size="8388608" crc="0b7e1c06" sha1="545e15e0087f8621d593fecd8b4013f7ca311686" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m1000.u5" merge="pgm_m1000.u5" size="8388608" crc="ed407ae8" sha1="a6e9c09b39c13e8fb7fbc89fa9f823cbeb66e901" region="ics" offset="400000" />
    <rom name="pgm_m1001.u7" merge="pgm_m1001.u7" size="4194304" crc="662d2d48" sha1="2fcc3099d9c04456cae3b13035fb28eaf709e7d8" region="ics" offset="c00000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="22000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="RegionHack" mask="255">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" />
      <confsetting name="USA (Andamiro USA license)" value="6" />
      <confsetting name="Untouched" value="255" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":RegionHack" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="martmasttw" sourcefile="pgm.cpp" cloneof="martmast" romof="martmast">
    <description>Martial Masters / Xing Yi Quan (ver. 102, 101, 101TW)</description>
    <year>2001</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="mm_v102_u9.u9" size="4194304" crc="7eb41ed4" sha1="7df7789db8f9110fe747f41e193b4a28096018e7" region="maincpu" offset="100000" />
    <rom name="martial_masters_v101_tw.asic" size="16384" status="nodump" region="prot" offset="0" />
    <rom name="mm_v101_u10.u10" size="4194304" crc="917beb91" sha1="0d867d8382518197ac98522bfc69063042db9890" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t1000.u3" merge="pgm_t1000.u3" size="8388608" crc="bbf879b5" sha1="bd9a6aea34ad4001e89e62ff4b7a2292eb833c00" region="tiles" offset="180000" />
    <rom name="pgm_a1000.u3" merge="pgm_a1000.u3" size="8388608" crc="43577ac8" sha1="6eea8b455985d5bac74dcc9943cdc3c0902de6cc" region="sprcol" offset="0" />
    <rom name="pgm_a1001.u4" merge="pgm_a1001.u4" size="8388608" crc="fe7a476f" sha1="a8c7f1f0dd3e53141aed6d927eb88a3ceebb81e4" region="sprcol" offset="800000" />
    <rom name="pgm_a1002.u6" merge="pgm_a1002.u6" size="8388608" crc="62e33d38" sha1="96163d583e25073594f8413ce263e56b66bd69a1" region="sprcol" offset="1000000" />
    <rom name="pgm_a1003.u8" merge="pgm_a1003.u8" size="8388608" crc="b2c4945a" sha1="7b18287a2db56db3651cfd4deb607af53522fefd" region="sprcol" offset="1800000" />
    <rom name="pgm_a1004.u10" merge="pgm_a1004.u10" size="4194304" crc="9fd3f5fd" sha1="057531f91062be51589c6cf8f4170089b9be6380" region="sprcol" offset="2000000" />
    <rom name="pgm_b1000.u9" merge="pgm_b1000.u9" size="8388608" crc="c5961f6f" sha1="a68060b10edbd084cbde79d2ed1c9084777beb10" region="sprmask" offset="0" />
    <rom name="pgm_b1001.u11" merge="pgm_b1001.u11" size="8388608" crc="0b7e1c06" sha1="545e15e0087f8621d593fecd8b4013f7ca311686" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m1000.u5" merge="pgm_m1000.u5" size="8388608" crc="ed407ae8" sha1="a6e9c09b39c13e8fb7fbc89fa9f823cbeb66e901" region="ics" offset="400000" />
    <rom name="pgm_m1001.u7" merge="pgm_m1001.u7" size="4194304" crc="662d2d48" sha1="2fcc3099d9c04456cae3b13035fb28eaf709e7d8" region="ics" offset="c00000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="22000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="RegionHack" mask="255">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" />
      <confsetting name="USA (Andamiro USA license)" value="6" />
      <confsetting name="Untouched" value="255" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":RegionHack" />
    <port tag=":Service" />
    <driver status="preliminary" emulation="preliminary" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="olds" sourcefile="pgm.cpp" romof="pgm">
    <description>Oriental Legend Super / Xiyou Shi E Chuan Super (ver. 101, Korean Board)</description>
    <year>1998</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="sp_v101_u2.u2" size="524288" crc="08eb9661" sha1="105946e72e562adb1a9fd794ca0fd2c91967eb56" region="maincpu" offset="100001" />
    <rom name="sp_v101_u3.u3" size="524288" crc="0a358c1e" sha1="95c7c3f069c5d05001e22535750f6b3cd7de105f" region="maincpu" offset="100000" />
    <rom name="sp_v101_u4.u4" size="524288" crc="766570e0" sha1="e7c3f5664ec69b662b82c2e1375555db7305390c" region="maincpu" offset="200001" />
    <rom name="sp_v101_u5.u5" size="524288" crc="58662e12" sha1="2b39bd847e9c4968a8e77a2f3cec77cf323ceee3" region="maincpu" offset="200000" />
    <rom name="sp_v101_u1.u1" size="524288" crc="2b2f4f1e" sha1="67b97cf8cc7f517d67cd45588addd2ad8e24612a" region="maincpu" offset="300000" />
    <rom name="sp_v101_u6.u6" size="65536" crc="097046bc" sha1="6d75db85cf4c79b63e837897785c253014b2126d" region="user1" offset="0" />
    <rom name="ram_dump" size="16384" crc="280cfb4e" sha1="cd2bdcaa21347952c2bf38b105a204d327fde39e" region="user2" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0500.u18" size="4194304" crc="d881726c" sha1="a82517e665996f7b7017c940f1fcf016fccb65c2" region="tiles" offset="180000" />
    <rom name="pgm_t0501.u19" size="2097152" crc="d2106864" sha1="65d827135b87d82196433aea3279608ee263feca" region="tiles" offset="580000" />
    <rom name="pgm_a0500.u5" size="4194304" crc="80a59197" sha1="7d0108e2f0d0347d43ace2d96c0388202c05fdfb" region="sprcol" offset="0" />
    <rom name="pgm_a0501.u6" size="4194304" crc="98c931b1" sha1="9b70d1a7beb4c3a0c1436c25fd1fb76e47539538" region="sprcol" offset="400000" />
    <rom name="pgm_a0502.u7" size="4194304" crc="c3fcdf1d" sha1="107585fd103fcd0af0fb7db283be4f7c7058aef7" region="sprcol" offset="800000" />
    <rom name="pgm_a0503.u8" size="4194304" crc="066dffec" sha1="f023032a7202b7090fb609a39e0f19018e664bf3" region="sprcol" offset="c00000" />
    <rom name="pgm_a0504.u11" size="4194304" crc="45337583" sha1="c954d0e5bf7fa99c90b0d154e7119d2b0c461f1c" region="sprcol" offset="1000000" />
    <rom name="pgm_a0505.u12" size="4194304" crc="5b8cf3a5" sha1="856d1e47b5d9a66dcfbdc74a51ed646fd7d96a35" region="sprcol" offset="1400000" />
    <rom name="pgm_a0506.u13" size="4194304" crc="087ac60c" sha1="3d5bf7dd40c8a3c1224cf82e12410ca904c0c5db" region="sprcol" offset="1800000" />
    <rom name="pgm_b0500.u9" size="4194304" crc="cde07f74" sha1="1fe90db7c57faa28f3a054b2c07909bef89e3efb" region="sprmask" offset="0" />
    <rom name="pgm_b0501.u10" size="4194304" crc="1546c2e9" sha1="a7b9c8b44203db54a59d49fe469bb52bba807ba2" region="sprmask" offset="400000" />
    <rom name="pgm_b0502.u15" size="4194304" crc="e97b31c3" sha1="1a7ca4f6c8644e84a33ae41cd4637f21046b14c5" region="sprmask" offset="800000" />
    <rom name="pgm_b0503.u16" size="4194304" crc="e41d98e4" sha1="f80b27fcee81762993e09bf1b3cad6e85274760c" region="sprmask" offset="c00000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m0500.u1" size="2097152" crc="37928cdd" sha1="e80498cabc2a6a54d4f3ebcb097d4b3fad96fe55" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="igs025" />
    <device_ref name="igs028" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="Region" mask="15">
      <confsetting name="Taiwan" value="1" />
      <confsetting name="China" value="2" />
      <confsetting name="Japan" value="3" />
      <confsetting name="Korea" value="4" />
      <confsetting name="Hong Kong" value="5" />
      <confsetting name="World" value="6" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="preliminary" emulation="good" savestate="supported" />
    <feature type="protection" status="imperfect" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="olds100" sourcefile="pgm.cpp" cloneof="olds" romof="olds">
    <description>Oriental Legend Special / Xiyou Shi E Chuan Super (ver. 100, set 1)</description>
    <year>1998</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="sp_v100_u2.u2" size="524288" crc="517c2a06" sha1="bbf5b311fac9b0bb4d4129c0561e5e24f6963fa2" region="maincpu" offset="100001" />
    <rom name="sp_v100_u3.u3" size="524288" crc="d0e2b741" sha1="2e671dbb4320d1f0c059b35efd33cdea26f12131" region="maincpu" offset="100000" />
    <rom name="sp_v100_u4.u4" size="524288" crc="32a6bdbd" sha1="a93d7f4eae722a58eca9ec351ad5890cefda56f0" region="maincpu" offset="200001" />
    <rom name="sp_v100_u5.u5" size="524288" crc="b4a1cafb" sha1="b2fccd480ede93f58ad043387b18b898152f06ef" region="maincpu" offset="200000" />
    <rom name="sp_v100_u1.u1" size="524288" crc="37ea4e75" sha1="a94fcb89da3394a43d360f885419677f511d2580" region="maincpu" offset="300000" />
    <rom name="ram_dump" merge="ram_dump" size="16384" crc="280cfb4e" sha1="cd2bdcaa21347952c2bf38b105a204d327fde39e" region="user2" offset="0" />
    <rom name="sp_v100_u6.u6" size="65536" crc="e7613dda" sha1="0d7c043b90e2f9a36a45066f22e3e305dc716676" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0500.u18" merge="pgm_t0500.u18" size="4194304" crc="d881726c" sha1="a82517e665996f7b7017c940f1fcf016fccb65c2" region="tiles" offset="180000" />
    <rom name="pgm_t0501.u19" merge="pgm_t0501.u19" size="2097152" crc="d2106864" sha1="65d827135b87d82196433aea3279608ee263feca" region="tiles" offset="580000" />
    <rom name="pgm_a0500.u5" merge="pgm_a0500.u5" size="4194304" crc="80a59197" sha1="7d0108e2f0d0347d43ace2d96c0388202c05fdfb" region="sprcol" offset="0" />
    <rom name="pgm_a0501.u6" merge="pgm_a0501.u6" size="4194304" crc="98c931b1" sha1="9b70d1a7beb4c3a0c1436c25fd1fb76e47539538" region="sprcol" offset="400000" />
    <rom name="pgm_a0502.u7" merge="pgm_a0502.u7" size="4194304" crc="c3fcdf1d" sha1="107585fd103fcd0af0fb7db283be4f7c7058aef7" region="sprcol" offset="800000" />
    <rom name="pgm_a0503.u8" merge="pgm_a0503.u8" size="4194304" crc="066dffec" sha1="f023032a7202b7090fb609a39e0f19018e664bf3" region="sprcol" offset="c00000" />
    <rom name="pgm_a0504.u11" merge="pgm_a0504.u11" size="4194304" crc="45337583" sha1="c954d0e5bf7fa99c90b0d154e7119d2b0c461f1c" region="sprcol" offset="1000000" />
    <rom name="pgm_a0505.u12" merge="pgm_a0505.u12" size="4194304" crc="5b8cf3a5" sha1="856d1e47b5d9a66dcfbdc74a51ed646fd7d96a35" region="sprcol" offset="1400000" />
    <rom name="pgm_a0506.u13" merge="pgm_a0506.u13" size="4194304" crc="087ac60c" sha1="3d5bf7dd40c8a3c1224cf82e12410ca904c0c5db" region="sprcol" offset="1800000" />
    <rom name="pgm_b0500.u9" merge="pgm_b0500.u9" size="4194304" crc="cde07f74" sha1="1fe90db7c57faa28f3a054b2c07909bef89e3efb" region="sprmask" offset="0" />
    <rom name="pgm_b0501.u10" merge="pgm_b0501.u10" size="4194304" crc="1546c2e9" sha1="a7b9c8b44203db54a59d49fe469bb52bba807ba2" region="sprmask" offset="400000" />
    <rom name="pgm_b0502.u15" merge="pgm_b0502.u15" size="4194304" crc="e97b31c3" sha1="1a7ca4f6c8644e84a33ae41cd4637f21046b14c5" region="sprmask" offset="800000" />
    <rom name="pgm_b0503.u16" merge="pgm_b0503.u16" size="4194304" crc="e41d98e4" sha1="f80b27fcee81762993e09bf1b3cad6e85274760c" region="sprmask" offset="c00000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m0500.u1" merge="pgm_m0500.u1" size="2097152" crc="37928cdd" sha1="e80498cabc2a6a54d4f3ebcb097d4b3fad96fe55" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="igs025" />
    <device_ref name="igs028" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="Region" mask="15">
      <confsetting name="Taiwan" value="1" />
      <confsetting name="China" value="2" />
      <confsetting name="Japan" value="3" />
      <confsetting name="Korea" value="4" />
      <confsetting name="Hong Kong" value="5" />
      <confsetting name="World" value="6" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="preliminary" emulation="good" savestate="supported" />
    <feature type="protection" status="imperfect" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="olds100a" sourcefile="pgm.cpp" cloneof="olds" romof="olds">
    <description>Oriental Legend Special / Xiyou Shi E Chuan Super (ver. 100, set 2)</description>
    <year>1998</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="pgm_p0500_v100.u24" size="4194304" crc="8981fc87" sha1="678d6705d06b99bca5951ff77708adadc4c4396b" region="maincpu" offset="100000" />
    <rom name="sp_data.u6" size="65536" crc="e7613dda" sha1="0d7c043b90e2f9a36a45066f22e3e305dc716676" region="user1" offset="0" />
    <rom name="ram_dump" merge="ram_dump" size="16384" crc="280cfb4e" sha1="cd2bdcaa21347952c2bf38b105a204d327fde39e" region="user2" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0500.u18" merge="pgm_t0500.u18" size="4194304" crc="d881726c" sha1="a82517e665996f7b7017c940f1fcf016fccb65c2" region="tiles" offset="180000" />
    <rom name="pgm_t0501.u19" merge="pgm_t0501.u19" size="2097152" crc="d2106864" sha1="65d827135b87d82196433aea3279608ee263feca" region="tiles" offset="580000" />
    <rom name="pgm_a0500.u5" merge="pgm_a0500.u5" size="4194304" crc="80a59197" sha1="7d0108e2f0d0347d43ace2d96c0388202c05fdfb" region="sprcol" offset="0" />
    <rom name="pgm_a0501.u6" merge="pgm_a0501.u6" size="4194304" crc="98c931b1" sha1="9b70d1a7beb4c3a0c1436c25fd1fb76e47539538" region="sprcol" offset="400000" />
    <rom name="pgm_a0502.u7" merge="pgm_a0502.u7" size="4194304" crc="c3fcdf1d" sha1="107585fd103fcd0af0fb7db283be4f7c7058aef7" region="sprcol" offset="800000" />
    <rom name="pgm_a0503.u8" merge="pgm_a0503.u8" size="4194304" crc="066dffec" sha1="f023032a7202b7090fb609a39e0f19018e664bf3" region="sprcol" offset="c00000" />
    <rom name="pgm_a0504.u11" merge="pgm_a0504.u11" size="4194304" crc="45337583" sha1="c954d0e5bf7fa99c90b0d154e7119d2b0c461f1c" region="sprcol" offset="1000000" />
    <rom name="pgm_a0505.u12" merge="pgm_a0505.u12" size="4194304" crc="5b8cf3a5" sha1="856d1e47b5d9a66dcfbdc74a51ed646fd7d96a35" region="sprcol" offset="1400000" />
    <rom name="pgm_a0506.u13" merge="pgm_a0506.u13" size="4194304" crc="087ac60c" sha1="3d5bf7dd40c8a3c1224cf82e12410ca904c0c5db" region="sprcol" offset="1800000" />
    <rom name="pgm_b0500.u9" merge="pgm_b0500.u9" size="4194304" crc="cde07f74" sha1="1fe90db7c57faa28f3a054b2c07909bef89e3efb" region="sprmask" offset="0" />
    <rom name="pgm_b0501.u10" merge="pgm_b0501.u10" size="4194304" crc="1546c2e9" sha1="a7b9c8b44203db54a59d49fe469bb52bba807ba2" region="sprmask" offset="400000" />
    <rom name="pgm_b0502.u15" merge="pgm_b0502.u15" size="4194304" crc="e97b31c3" sha1="1a7ca4f6c8644e84a33ae41cd4637f21046b14c5" region="sprmask" offset="800000" />
    <rom name="pgm_b0503.u16" merge="pgm_b0503.u16" size="4194304" crc="e41d98e4" sha1="f80b27fcee81762993e09bf1b3cad6e85274760c" region="sprmask" offset="c00000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m0500.u1" merge="pgm_m0500.u1" size="2097152" crc="37928cdd" sha1="e80498cabc2a6a54d4f3ebcb097d4b3fad96fe55" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="igs025" />
    <device_ref name="igs028" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="Region" mask="15">
      <confsetting name="Taiwan" value="1" />
      <confsetting name="China" value="2" />
      <confsetting name="Japan" value="3" />
      <confsetting name="Korea" value="4" />
      <confsetting name="Hong Kong" value="5" />
      <confsetting name="World" value="6" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="preliminary" emulation="preliminary" savestate="supported" />
    <feature type="protection" status="imperfect" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="olds103t" sourcefile="pgm.cpp" cloneof="olds" romof="olds">
    <description>Xiyou Shi E Chuan Super (ver. 103, China, Tencent) (unprotected)</description>
    <year>1998</year>
    <manufacturer>bootleg</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="p0500.v103" size="4194304" crc="17e32e14" sha1="b8f731087af2c59fe5b1da31f1cb055d35c8b440" region="maincpu" offset="100000" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0500.u18" merge="pgm_t0500.u18" size="4194304" crc="d881726c" sha1="a82517e665996f7b7017c940f1fcf016fccb65c2" region="tiles" offset="180000" />
    <rom name="pgm_t0501.u19" merge="pgm_t0501.u19" size="2097152" crc="d2106864" sha1="65d827135b87d82196433aea3279608ee263feca" region="tiles" offset="580000" />
    <rom name="pgm_a0500.u5" merge="pgm_a0500.u5" size="4194304" crc="80a59197" sha1="7d0108e2f0d0347d43ace2d96c0388202c05fdfb" region="sprcol" offset="0" />
    <rom name="pgm_a0501.u6" merge="pgm_a0501.u6" size="4194304" crc="98c931b1" sha1="9b70d1a7beb4c3a0c1436c25fd1fb76e47539538" region="sprcol" offset="400000" />
    <rom name="pgm_a0502.u7" merge="pgm_a0502.u7" size="4194304" crc="c3fcdf1d" sha1="107585fd103fcd0af0fb7db283be4f7c7058aef7" region="sprcol" offset="800000" />
    <rom name="pgm_a0503.u8" merge="pgm_a0503.u8" size="4194304" crc="066dffec" sha1="f023032a7202b7090fb609a39e0f19018e664bf3" region="sprcol" offset="c00000" />
    <rom name="pgm_a0504.u11" merge="pgm_a0504.u11" size="4194304" crc="45337583" sha1="c954d0e5bf7fa99c90b0d154e7119d2b0c461f1c" region="sprcol" offset="1000000" />
    <rom name="pgm_a0505.u12" merge="pgm_a0505.u12" size="4194304" crc="5b8cf3a5" sha1="856d1e47b5d9a66dcfbdc74a51ed646fd7d96a35" region="sprcol" offset="1400000" />
    <rom name="pgm_a0506.u13" merge="pgm_a0506.u13" size="4194304" crc="087ac60c" sha1="3d5bf7dd40c8a3c1224cf82e12410ca904c0c5db" region="sprcol" offset="1800000" />
    <rom name="pgm_b0500.u9" merge="pgm_b0500.u9" size="4194304" crc="cde07f74" sha1="1fe90db7c57faa28f3a054b2c07909bef89e3efb" region="sprmask" offset="0" />
    <rom name="pgm_b0501.u10" merge="pgm_b0501.u10" size="4194304" crc="1546c2e9" sha1="a7b9c8b44203db54a59d49fe469bb52bba807ba2" region="sprmask" offset="400000" />
    <rom name="pgm_b0502.u15" merge="pgm_b0502.u15" size="4194304" crc="e97b31c3" sha1="1a7ca4f6c8644e84a33ae41cd4637f21046b14c5" region="sprmask" offset="800000" />
    <rom name="pgm_b0503.u16" merge="pgm_b0503.u16" size="4194304" crc="e41d98e4" sha1="f80b27fcee81762993e09bf1b3cad6e85274760c" region="sprmask" offset="c00000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m0500.u1" merge="pgm_m0500.u1" size="2097152" crc="37928cdd" sha1="e80498cabc2a6a54d4f3ebcb097d4b3fad96fe55" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="oldsplus" sourcefile="pgm.cpp" romof="pgm">
    <description>Oriental Legend 2 (Korea) / Xiyou Shi E Chuan Qunmoluanwu (World, China, Japan, Hong Kong, Taiwan) (ver. 205) [Oriental Ex]</description>
    <year>2004</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v-205cn.u10" size="4194304" crc="923f7246" sha1="818ade79e9724f5a2b0cc5a647ae5d4ee0374799" region="maincpu" offset="100000" />
    <rom name="oldsplus_igs027a.bin" size="16384" status="nodump" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="igs_t05301w064.u2" size="8388608" crc="8257bbb0" sha1="b48067b7e7081a15fddf21739b641d677c2df3d9" region="tiles" offset="180000" />
    <rom name="igs_a05301w064.u3" size="8388608" crc="57946fd2" sha1="5d79bc71a1881f3099821a9b255a5f271e0eeff6" region="sprcol" offset="0" />
    <rom name="igs_a05302w064.u4" size="8388608" crc="3459a0b8" sha1="94ab6f980b5582f1db9bb12019d03f0b6e0a06df" region="sprcol" offset="800000" />
    <rom name="igs_a05303w064.u6" size="8388608" crc="13475d85" sha1="4683a3bf304fdc15ffb1c61b7957ad68b023fa33" region="sprcol" offset="1000000" />
    <rom name="igs_a05304w064.u8" size="8388608" crc="f03ef7a6" sha1="c18b1b622b430d5e031e65daa6819b84c3e12ef5" region="sprcol" offset="1800000" />
    <rom name="igs_b05301w064.u9" size="8388608" crc="fd98f503" sha1="02046ab1aa89f63bff149003d9d61776e025a92a" region="sprmask" offset="0" />
    <rom name="igs_b05302w064.u11" size="8388608" crc="9f6094a8" sha1="69f6f2003ab975eae13ea6b5c2ffa40df6e6bdf6" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="igs_w05301b032.u5" size="4194304" crc="86ec83bc" sha1="067cb7ec449eacd1f49298f45a364368934db5dd" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="Region" mask="15">
      <confsetting name="China" value="1" default="yes" />
      <confsetting name="Japan" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" />
      <confsetting name="Taiwan" value="6" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="preliminary" emulation="preliminary" savestate="supported" />
    <feature type="protection" status="imperfect" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="oldsplus203" sourcefile="pgm.cpp" cloneof="oldsplus" romof="oldsplus">
    <description>Oriental Legend 2 (Korea) / Xiyou Shi E Chuan Qunmoluanwu (World, China, Japan, Hong Kong, Taiwan) (ver. 203) [Oriental Ex]</description>
    <year>2004</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v-203cn.u10" size="4194304" crc="c728cadc" sha1="7e6acd2535b1700fdefc048bd521c305d3170108" region="maincpu" offset="100000" />
    <rom name="oldsplus_igs027a.bin" size="16384" status="nodump" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="igs_t05301w064.u2" merge="igs_t05301w064.u2" size="8388608" crc="8257bbb0" sha1="b48067b7e7081a15fddf21739b641d677c2df3d9" region="tiles" offset="180000" />
    <rom name="igs_a05301w064.u3" merge="igs_a05301w064.u3" size="8388608" crc="57946fd2" sha1="5d79bc71a1881f3099821a9b255a5f271e0eeff6" region="sprcol" offset="0" />
    <rom name="igs_a05302w064.u4" merge="igs_a05302w064.u4" size="8388608" crc="3459a0b8" sha1="94ab6f980b5582f1db9bb12019d03f0b6e0a06df" region="sprcol" offset="800000" />
    <rom name="igs_a05303w064.u6" merge="igs_a05303w064.u6" size="8388608" crc="13475d85" sha1="4683a3bf304fdc15ffb1c61b7957ad68b023fa33" region="sprcol" offset="1000000" />
    <rom name="igs_a05304w064.u8" merge="igs_a05304w064.u8" size="8388608" crc="f03ef7a6" sha1="c18b1b622b430d5e031e65daa6819b84c3e12ef5" region="sprcol" offset="1800000" />
    <rom name="igs_b05301w064.u9" merge="igs_b05301w064.u9" size="8388608" crc="fd98f503" sha1="02046ab1aa89f63bff149003d9d61776e025a92a" region="sprmask" offset="0" />
    <rom name="igs_b05302w064.u11" merge="igs_b05302w064.u11" size="8388608" crc="9f6094a8" sha1="69f6f2003ab975eae13ea6b5c2ffa40df6e6bdf6" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="igs_w05301b032.u5" merge="igs_w05301b032.u5" size="4194304" crc="86ec83bc" sha1="067cb7ec449eacd1f49298f45a364368934db5dd" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="Region" mask="15">
      <confsetting name="China" value="1" default="yes" />
      <confsetting name="Japan" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" />
      <confsetting name="Taiwan" value="6" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="preliminary" emulation="preliminary" savestate="supported" />
    <feature type="protection" status="imperfect" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="orlegend" sourcefile="pgm.cpp" romof="pgm">
    <description>Oriental Legend / Xiyou Shi E Chuan (ver. 126)</description>
    <year>1997</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="p0103.rom" size="2097152" crc="d5e93543" sha1="f081edc26514ca8354c13c7f6f89aba8e4d3e7d2" region="maincpu" offset="100000" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0100.u8" size="4194304" crc="61425e1e" sha1="20753b86fc12003cfd763d903f034dbba8010b32" region="tiles" offset="180000" />
    <rom name="pgm_a0100.u5" size="4194304" crc="8b3bd88a" sha1="42db3a60c6ba9d83ebe2008c8047d094027f65a7" region="sprcol" offset="0" />
    <rom name="pgm_a0101.u6" size="4194304" crc="3b9e9644" sha1="5b95ec1d25c3bc3504c93547f5adb5ce24376405" region="sprcol" offset="400000" />
    <rom name="pgm_a0102.u7" size="4194304" crc="069e2c38" sha1="9bddca8c2f5bd80f4abe4e1f062751736dc151dd" region="sprcol" offset="800000" />
    <rom name="pgm_a0103.u8" size="4194304" crc="4460a3fd" sha1="cbebdb65c17605853f7d0b298018dd8801a25a58" region="sprcol" offset="c00000" />
    <rom name="pgm_a0104.u11" size="4194304" crc="5f8abb56" sha1="6c1ddc0309862a141aa0c0f63b641aec9257aaee" region="sprcol" offset="1000000" />
    <rom name="pgm_a0105.u12" size="4194304" crc="a17a7147" sha1="44eeb43c6b0ebb829559a20ae357383fbdeecd82" region="sprcol" offset="1400000" />
    <rom name="pgm_b0100.u9" size="4194304" crc="69d2e48c" sha1="5b5f759007264c07b3b39be8e03a713698e1fc2a" region="sprmask" offset="0" />
    <rom name="pgm_b0101.u10" size="4194304" crc="0d587bf3" sha1="5347828b0a6e4ddd7a263663d2c2604407e4d49c" region="sprmask" offset="400000" />
    <rom name="pgm_b0102.u15" size="4194304" crc="43823c1e" sha1="e10a1a9a81b51b11044934ff702e35d8d7ab1b08" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m0100.u1" size="2097152" crc="e5c36c83" sha1="50c6f66770e8faa3df349f7d68c407a7ad021716" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Region" tag="Region" mask="3">
      <dipvalue name="World" value="0" default="yes" />
      <dipvalue name="World (duplicate)" value="1" />
      <dipvalue name="Korea" value="2" />
      <dipvalue name="China" value="3" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="orlegend105k" sourcefile="pgm.cpp" cloneof="orlegend" romof="orlegend">
    <description>Oriental Legend / Xiyou Shi E Chuan (ver. 105, Korean Board)</description>
    <year>1997</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="olv105ko.u6" size="524288" crc="b86703fe" sha1="a3529b45efd400ecd5e76f764b528ebce46e24ab" region="maincpu" offset="100001" />
    <rom name="olv105ko.u9" size="524288" crc="5a108e39" sha1="2033f4fe3f2dfd725dac535324f58348b9ac3914" region="maincpu" offset="100000" />
    <rom name="olv105ko.u7" size="524288" crc="5712facc" sha1="2d95ebd1703874e89ac3a206f8c1f0ece6e833e0" region="maincpu" offset="200001" />
    <rom name="olv105ko.u11" size="524288" crc="40ae4d9e" sha1="62d7a96438b7fe93f74753333f50e077d417971e" region="maincpu" offset="200000" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0100.u8" merge="pgm_t0100.u8" size="4194304" crc="61425e1e" sha1="20753b86fc12003cfd763d903f034dbba8010b32" region="tiles" offset="180000" />
    <rom name="pgm_a0100.u5" merge="pgm_a0100.u5" size="4194304" crc="8b3bd88a" sha1="42db3a60c6ba9d83ebe2008c8047d094027f65a7" region="sprcol" offset="0" />
    <rom name="pgm_a0101.u6" merge="pgm_a0101.u6" size="4194304" crc="3b9e9644" sha1="5b95ec1d25c3bc3504c93547f5adb5ce24376405" region="sprcol" offset="400000" />
    <rom name="pgm_a0102.u7" merge="pgm_a0102.u7" size="4194304" crc="069e2c38" sha1="9bddca8c2f5bd80f4abe4e1f062751736dc151dd" region="sprcol" offset="800000" />
    <rom name="pgm_a0103.u8" merge="pgm_a0103.u8" size="4194304" crc="4460a3fd" sha1="cbebdb65c17605853f7d0b298018dd8801a25a58" region="sprcol" offset="c00000" />
    <rom name="pgm_a0104.u11" merge="pgm_a0104.u11" size="4194304" crc="5f8abb56" sha1="6c1ddc0309862a141aa0c0f63b641aec9257aaee" region="sprcol" offset="1000000" />
    <rom name="pgm_a0105.u12" merge="pgm_a0105.u12" size="4194304" crc="a17a7147" sha1="44eeb43c6b0ebb829559a20ae357383fbdeecd82" region="sprcol" offset="1400000" />
    <rom name="pgm_b0100.u9" merge="pgm_b0100.u9" size="4194304" crc="69d2e48c" sha1="5b5f759007264c07b3b39be8e03a713698e1fc2a" region="sprmask" offset="0" />
    <rom name="pgm_b0101.u10" merge="pgm_b0101.u10" size="4194304" crc="0d587bf3" sha1="5347828b0a6e4ddd7a263663d2c2604407e4d49c" region="sprmask" offset="400000" />
    <rom name="pgm_b0102.u15" merge="pgm_b0102.u15" size="4194304" crc="43823c1e" sha1="e10a1a9a81b51b11044934ff702e35d8d7ab1b08" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m0100.u1" merge="pgm_m0100.u1" size="2097152" crc="e5c36c83" sha1="50c6f66770e8faa3df349f7d68c407a7ad021716" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Region" tag="Region" mask="7">
      <dipvalue name="Invalid 00?" value="0" />
      <dipvalue name="Invalid 01?" value="1" />
      <dipvalue name="Korea" value="2" default="yes" />
      <dipvalue name="Invalid 03?" value="3" />
      <dipvalue name="Invalid 04?" value="4" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="orlegend105t" sourcefile="pgm.cpp" cloneof="orlegend" romof="orlegend">
    <description>Oriental Legend / Xiyou Shi E Chuan (ver. 105, Taiwanese Board)</description>
    <year>1997</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="olv_105_taiwan_u6.u6" size="524288" crc="2b14331f" sha1="3909b5480764916761895ad3f25dd4f40762a2d8" region="maincpu" offset="100001" />
    <rom name="olv_105_taiwan_u9.u9" size="524288" crc="ae9d71e4" sha1="20f84c18808a80464f22c72eafe7680690274f39" region="maincpu" offset="100000" />
    <rom name="olv_105_taiwan_u7.u7" size="524288" crc="5712facc" sha1="2d95ebd1703874e89ac3a206f8c1f0ece6e833e0" region="maincpu" offset="200001" />
    <rom name="olv_105_taiwan_u11.u11" size="524288" crc="40ae4d9e" sha1="62d7a96438b7fe93f74753333f50e077d417971e" region="maincpu" offset="200000" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0100.u8" merge="pgm_t0100.u8" size="4194304" crc="61425e1e" sha1="20753b86fc12003cfd763d903f034dbba8010b32" region="tiles" offset="180000" />
    <rom name="pgm_a0100.u5" merge="pgm_a0100.u5" size="4194304" crc="8b3bd88a" sha1="42db3a60c6ba9d83ebe2008c8047d094027f65a7" region="sprcol" offset="0" />
    <rom name="pgm_a0101.u6" merge="pgm_a0101.u6" size="4194304" crc="3b9e9644" sha1="5b95ec1d25c3bc3504c93547f5adb5ce24376405" region="sprcol" offset="400000" />
    <rom name="pgm_a0102.u7" merge="pgm_a0102.u7" size="4194304" crc="069e2c38" sha1="9bddca8c2f5bd80f4abe4e1f062751736dc151dd" region="sprcol" offset="800000" />
    <rom name="pgm_a0103.u8" merge="pgm_a0103.u8" size="4194304" crc="4460a3fd" sha1="cbebdb65c17605853f7d0b298018dd8801a25a58" region="sprcol" offset="c00000" />
    <rom name="pgm_a0104.u11" merge="pgm_a0104.u11" size="4194304" crc="5f8abb56" sha1="6c1ddc0309862a141aa0c0f63b641aec9257aaee" region="sprcol" offset="1000000" />
    <rom name="pgm_a0105.u12" merge="pgm_a0105.u12" size="4194304" crc="a17a7147" sha1="44eeb43c6b0ebb829559a20ae357383fbdeecd82" region="sprcol" offset="1400000" />
    <rom name="pgm_b0100.u9" merge="pgm_b0100.u9" size="4194304" crc="69d2e48c" sha1="5b5f759007264c07b3b39be8e03a713698e1fc2a" region="sprmask" offset="0" />
    <rom name="pgm_b0101.u10" merge="pgm_b0101.u10" size="4194304" crc="0d587bf3" sha1="5347828b0a6e4ddd7a263663d2c2604407e4d49c" region="sprmask" offset="400000" />
    <rom name="pgm_b0102.u15" merge="pgm_b0102.u15" size="4194304" crc="43823c1e" sha1="e10a1a9a81b51b11044934ff702e35d8d7ab1b08" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m0100.u1" merge="pgm_m0100.u1" size="2097152" crc="e5c36c83" sha1="50c6f66770e8faa3df349f7d68c407a7ad021716" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Region" tag="Region" mask="7">
      <dipvalue name="Invalid 00?" value="0" />
      <dipvalue name="Invalid 01?" value="1" />
      <dipvalue name="Invalid 02?" value="2" />
      <dipvalue name="Invalid 03?" value="3" />
      <dipvalue name="Taiwan" value="4" default="yes" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="orlegend111c" sourcefile="pgm.cpp" cloneof="orlegend" romof="orlegend">
    <description>Oriental Legend / Xiyou Shi E Chuan (ver. 111, Chinese Board)</description>
    <year>1997</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="olv_111_china_u6.u6" size="524288" crc="5fb86373" sha1="2fc58eff1f38754c75819fde666244b867ca4f05" region="maincpu" offset="100001" />
    <rom name="olv_111_china_u9.u9" size="524288" crc="83cf09c8" sha1="959780b45326059517f3008a356657f4f3d2908f" region="maincpu" offset="100000" />
    <rom name="olv_111_china_u7.u7" size="524288" crc="6ee79faf" sha1="039b4b07b8577f0d3022ae01210c00375624cb3c" region="maincpu" offset="200001" />
    <rom name="olv_111_china_u11.u11" size="524288" crc="b80ddd3c" sha1="55c700ce71ffdee392e03fd9d4719542c3527132" region="maincpu" offset="200000" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0100.u8" merge="pgm_t0100.u8" size="4194304" crc="61425e1e" sha1="20753b86fc12003cfd763d903f034dbba8010b32" region="tiles" offset="180000" />
    <rom name="pgm_a0100.u5" merge="pgm_a0100.u5" size="4194304" crc="8b3bd88a" sha1="42db3a60c6ba9d83ebe2008c8047d094027f65a7" region="sprcol" offset="0" />
    <rom name="pgm_a0101.u6" merge="pgm_a0101.u6" size="4194304" crc="3b9e9644" sha1="5b95ec1d25c3bc3504c93547f5adb5ce24376405" region="sprcol" offset="400000" />
    <rom name="pgm_a0102.u7" merge="pgm_a0102.u7" size="4194304" crc="069e2c38" sha1="9bddca8c2f5bd80f4abe4e1f062751736dc151dd" region="sprcol" offset="800000" />
    <rom name="pgm_a0103.u8" merge="pgm_a0103.u8" size="4194304" crc="4460a3fd" sha1="cbebdb65c17605853f7d0b298018dd8801a25a58" region="sprcol" offset="c00000" />
    <rom name="pgm_a0104.u11" merge="pgm_a0104.u11" size="4194304" crc="5f8abb56" sha1="6c1ddc0309862a141aa0c0f63b641aec9257aaee" region="sprcol" offset="1000000" />
    <rom name="pgm_a0105.u12" merge="pgm_a0105.u12" size="4194304" crc="a17a7147" sha1="44eeb43c6b0ebb829559a20ae357383fbdeecd82" region="sprcol" offset="1400000" />
    <rom name="pgm_b0100.u9" merge="pgm_b0100.u9" size="4194304" crc="69d2e48c" sha1="5b5f759007264c07b3b39be8e03a713698e1fc2a" region="sprmask" offset="0" />
    <rom name="pgm_b0101.u10" merge="pgm_b0101.u10" size="4194304" crc="0d587bf3" sha1="5347828b0a6e4ddd7a263663d2c2604407e4d49c" region="sprmask" offset="400000" />
    <rom name="pgm_b0102.u15" merge="pgm_b0102.u15" size="4194304" crc="43823c1e" sha1="e10a1a9a81b51b11044934ff702e35d8d7ab1b08" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m0100.u1" merge="pgm_m0100.u1" size="2097152" crc="e5c36c83" sha1="50c6f66770e8faa3df349f7d68c407a7ad021716" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Region" tag="Region" mask="3">
      <dipvalue name="World" value="0" default="yes" />
      <dipvalue name="World (duplicate)" value="1" />
      <dipvalue name="Korea" value="2" />
      <dipvalue name="China" value="3" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="orlegend111k" sourcefile="pgm.cpp" cloneof="orlegend" romof="orlegend">
    <description>Oriental Legend / Xiyou Shi E Chuan (ver. 111, Korean Board)</description>
    <year>1997</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="olv_111_korea_u6.u6" size="524288" crc="1ff35baa" sha1="f6791cc37ea468d0154b0e31a99f6f33a74bca81" region="maincpu" offset="100001" />
    <rom name="olv_111_korea_u9.u9" size="524288" crc="87b6d202" sha1="32828166a645158630f79e7d493a2774e69bc265" region="maincpu" offset="100000" />
    <rom name="olv_111_korea_u7.u7" size="524288" crc="27628e87" sha1="a0effd83dc57ac72ba4f110737a075705d78e798" region="maincpu" offset="200001" />
    <rom name="olv_111_korea_u11.u11" size="524288" crc="23f33bc9" sha1="f24490370d40d905afe8b716a3953b4e9f0aada4" region="maincpu" offset="200000" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0100.u8" merge="pgm_t0100.u8" size="4194304" crc="61425e1e" sha1="20753b86fc12003cfd763d903f034dbba8010b32" region="tiles" offset="180000" />
    <rom name="pgm_a0100.u5" merge="pgm_a0100.u5" size="4194304" crc="8b3bd88a" sha1="42db3a60c6ba9d83ebe2008c8047d094027f65a7" region="sprcol" offset="0" />
    <rom name="pgm_a0101.u6" merge="pgm_a0101.u6" size="4194304" crc="3b9e9644" sha1="5b95ec1d25c3bc3504c93547f5adb5ce24376405" region="sprcol" offset="400000" />
    <rom name="pgm_a0102.u7" merge="pgm_a0102.u7" size="4194304" crc="069e2c38" sha1="9bddca8c2f5bd80f4abe4e1f062751736dc151dd" region="sprcol" offset="800000" />
    <rom name="pgm_a0103.u8" merge="pgm_a0103.u8" size="4194304" crc="4460a3fd" sha1="cbebdb65c17605853f7d0b298018dd8801a25a58" region="sprcol" offset="c00000" />
    <rom name="pgm_a0104.u11" merge="pgm_a0104.u11" size="4194304" crc="5f8abb56" sha1="6c1ddc0309862a141aa0c0f63b641aec9257aaee" region="sprcol" offset="1000000" />
    <rom name="pgm_a0105.u12" merge="pgm_a0105.u12" size="4194304" crc="a17a7147" sha1="44eeb43c6b0ebb829559a20ae357383fbdeecd82" region="sprcol" offset="1400000" />
    <rom name="pgm_b0100.u9" merge="pgm_b0100.u9" size="4194304" crc="69d2e48c" sha1="5b5f759007264c07b3b39be8e03a713698e1fc2a" region="sprmask" offset="0" />
    <rom name="pgm_b0101.u10" merge="pgm_b0101.u10" size="4194304" crc="0d587bf3" sha1="5347828b0a6e4ddd7a263663d2c2604407e4d49c" region="sprmask" offset="400000" />
    <rom name="pgm_b0102.u15" merge="pgm_b0102.u15" size="4194304" crc="43823c1e" sha1="e10a1a9a81b51b11044934ff702e35d8d7ab1b08" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m0100.u1" merge="pgm_m0100.u1" size="2097152" crc="e5c36c83" sha1="50c6f66770e8faa3df349f7d68c407a7ad021716" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Region" tag="Region" mask="7">
      <dipvalue name="Invalid 00?" value="0" />
      <dipvalue name="Invalid 01?" value="1" />
      <dipvalue name="Korea" value="2" default="yes" />
      <dipvalue name="Invalid 03?" value="3" />
      <dipvalue name="Invalid 04?" value="4" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="orlegend111t" sourcefile="pgm.cpp" cloneof="orlegend" romof="orlegend">
    <description>Oriental Legend / Xiyou Shi E Chuan (ver. 111, Taiwanese Board)</description>
    <year>1997</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="olv_111_taiwan_u6.u6" size="524288" crc="b205a733" sha1="33f4c9162e36be4957004f80593f94fc33b163f8" region="maincpu" offset="100001" />
    <rom name="olv_111_taiwan_u9.u9" size="524288" crc="6d9d29b4" sha1="29a18de7e5b58c2f3125d6dc9cc8a8186180e956" region="maincpu" offset="100000" />
    <rom name="olv_111_taiwan_u7.u7" size="524288" crc="27628e87" sha1="a0effd83dc57ac72ba4f110737a075705d78e798" region="maincpu" offset="200001" />
    <rom name="olv_111_taiwan_u11.u11" size="524288" crc="23f33bc9" sha1="f24490370d40d905afe8b716a3953b4e9f0aada4" region="maincpu" offset="200000" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0100.u8" merge="pgm_t0100.u8" size="4194304" crc="61425e1e" sha1="20753b86fc12003cfd763d903f034dbba8010b32" region="tiles" offset="180000" />
    <rom name="pgm_a0100.u5" merge="pgm_a0100.u5" size="4194304" crc="8b3bd88a" sha1="42db3a60c6ba9d83ebe2008c8047d094027f65a7" region="sprcol" offset="0" />
    <rom name="pgm_a0101.u6" merge="pgm_a0101.u6" size="4194304" crc="3b9e9644" sha1="5b95ec1d25c3bc3504c93547f5adb5ce24376405" region="sprcol" offset="400000" />
    <rom name="pgm_a0102.u7" merge="pgm_a0102.u7" size="4194304" crc="069e2c38" sha1="9bddca8c2f5bd80f4abe4e1f062751736dc151dd" region="sprcol" offset="800000" />
    <rom name="pgm_a0103.u8" merge="pgm_a0103.u8" size="4194304" crc="4460a3fd" sha1="cbebdb65c17605853f7d0b298018dd8801a25a58" region="sprcol" offset="c00000" />
    <rom name="pgm_a0104.u11" merge="pgm_a0104.u11" size="4194304" crc="5f8abb56" sha1="6c1ddc0309862a141aa0c0f63b641aec9257aaee" region="sprcol" offset="1000000" />
    <rom name="pgm_a0105.u12" merge="pgm_a0105.u12" size="4194304" crc="a17a7147" sha1="44eeb43c6b0ebb829559a20ae357383fbdeecd82" region="sprcol" offset="1400000" />
    <rom name="pgm_b0100.u9" merge="pgm_b0100.u9" size="4194304" crc="69d2e48c" sha1="5b5f759007264c07b3b39be8e03a713698e1fc2a" region="sprmask" offset="0" />
    <rom name="pgm_b0101.u10" merge="pgm_b0101.u10" size="4194304" crc="0d587bf3" sha1="5347828b0a6e4ddd7a263663d2c2604407e4d49c" region="sprmask" offset="400000" />
    <rom name="pgm_b0102.u15" merge="pgm_b0102.u15" size="4194304" crc="43823c1e" sha1="e10a1a9a81b51b11044934ff702e35d8d7ab1b08" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m0100.u1" merge="pgm_m0100.u1" size="2097152" crc="e5c36c83" sha1="50c6f66770e8faa3df349f7d68c407a7ad021716" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Region" tag="Region" mask="7">
      <dipvalue name="Invalid 00?" value="0" />
      <dipvalue name="Invalid 01?" value="1" />
      <dipvalue name="Invalid 02?" value="2" />
      <dipvalue name="Invalid 03?" value="3" />
      <dipvalue name="Taiwan" value="4" default="yes" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="orlegendc" sourcefile="pgm.cpp" cloneof="orlegend" romof="orlegend">
    <description>Oriental Legend / Xiyou Shi E Chuan (ver. 112, Chinese Board)</description>
    <year>1997</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="p0101.160" size="2097152" crc="b24f0c1e" sha1="a2cf75d739681f091c24ef78ed6fc13aa8cfe0c6" region="maincpu" offset="100000" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0100.u8" merge="pgm_t0100.u8" size="4194304" crc="61425e1e" sha1="20753b86fc12003cfd763d903f034dbba8010b32" region="tiles" offset="180000" />
    <rom name="pgm_a0100.u5" merge="pgm_a0100.u5" size="4194304" crc="8b3bd88a" sha1="42db3a60c6ba9d83ebe2008c8047d094027f65a7" region="sprcol" offset="0" />
    <rom name="pgm_a0101.u6" merge="pgm_a0101.u6" size="4194304" crc="3b9e9644" sha1="5b95ec1d25c3bc3504c93547f5adb5ce24376405" region="sprcol" offset="400000" />
    <rom name="pgm_a0102.u7" merge="pgm_a0102.u7" size="4194304" crc="069e2c38" sha1="9bddca8c2f5bd80f4abe4e1f062751736dc151dd" region="sprcol" offset="800000" />
    <rom name="pgm_a0103.u8" merge="pgm_a0103.u8" size="4194304" crc="4460a3fd" sha1="cbebdb65c17605853f7d0b298018dd8801a25a58" region="sprcol" offset="c00000" />
    <rom name="pgm_a0104.u11" merge="pgm_a0104.u11" size="4194304" crc="5f8abb56" sha1="6c1ddc0309862a141aa0c0f63b641aec9257aaee" region="sprcol" offset="1000000" />
    <rom name="pgm_a0105.u12" merge="pgm_a0105.u12" size="4194304" crc="a17a7147" sha1="44eeb43c6b0ebb829559a20ae357383fbdeecd82" region="sprcol" offset="1400000" />
    <rom name="pgm_b0100.u9" merge="pgm_b0100.u9" size="4194304" crc="69d2e48c" sha1="5b5f759007264c07b3b39be8e03a713698e1fc2a" region="sprmask" offset="0" />
    <rom name="pgm_b0101.u10" merge="pgm_b0101.u10" size="4194304" crc="0d587bf3" sha1="5347828b0a6e4ddd7a263663d2c2604407e4d49c" region="sprmask" offset="400000" />
    <rom name="pgm_b0102.u15" merge="pgm_b0102.u15" size="4194304" crc="43823c1e" sha1="e10a1a9a81b51b11044934ff702e35d8d7ab1b08" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m0100.u1" merge="pgm_m0100.u1" size="2097152" crc="e5c36c83" sha1="50c6f66770e8faa3df349f7d68c407a7ad021716" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Region" tag="Region" mask="3">
      <dipvalue name="World" value="0" default="yes" />
      <dipvalue name="World (duplicate)" value="1" />
      <dipvalue name="Korea" value="2" />
      <dipvalue name="China" value="3" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="orlegendca" sourcefile="pgm.cpp" cloneof="orlegend" romof="orlegend">
    <description>Oriental Legend / Xiyou Shi E Chuan (ver. ???, Chinese Board)</description>
    <year>1997</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="p0101.102" size="2097152" crc="7a22e1cb" sha1="4fe0fde00521b0915146334ea7213f3eb7e2affc" region="maincpu" offset="100000" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0100.u8" merge="pgm_t0100.u8" size="4194304" crc="61425e1e" sha1="20753b86fc12003cfd763d903f034dbba8010b32" region="tiles" offset="180000" />
    <rom name="pgm_a0100.u5" merge="pgm_a0100.u5" size="4194304" crc="8b3bd88a" sha1="42db3a60c6ba9d83ebe2008c8047d094027f65a7" region="sprcol" offset="0" />
    <rom name="pgm_a0101.u6" merge="pgm_a0101.u6" size="4194304" crc="3b9e9644" sha1="5b95ec1d25c3bc3504c93547f5adb5ce24376405" region="sprcol" offset="400000" />
    <rom name="pgm_a0102.u7" merge="pgm_a0102.u7" size="4194304" crc="069e2c38" sha1="9bddca8c2f5bd80f4abe4e1f062751736dc151dd" region="sprcol" offset="800000" />
    <rom name="pgm_a0103.u8" merge="pgm_a0103.u8" size="4194304" crc="4460a3fd" sha1="cbebdb65c17605853f7d0b298018dd8801a25a58" region="sprcol" offset="c00000" />
    <rom name="pgm_a0104.u11" merge="pgm_a0104.u11" size="4194304" crc="5f8abb56" sha1="6c1ddc0309862a141aa0c0f63b641aec9257aaee" region="sprcol" offset="1000000" />
    <rom name="pgm_a0105.u12" merge="pgm_a0105.u12" size="4194304" crc="a17a7147" sha1="44eeb43c6b0ebb829559a20ae357383fbdeecd82" region="sprcol" offset="1400000" />
    <rom name="pgm_b0100.u9" merge="pgm_b0100.u9" size="4194304" crc="69d2e48c" sha1="5b5f759007264c07b3b39be8e03a713698e1fc2a" region="sprmask" offset="0" />
    <rom name="pgm_b0101.u10" merge="pgm_b0101.u10" size="4194304" crc="0d587bf3" sha1="5347828b0a6e4ddd7a263663d2c2604407e4d49c" region="sprmask" offset="400000" />
    <rom name="pgm_b0102.u15" merge="pgm_b0102.u15" size="4194304" crc="43823c1e" sha1="e10a1a9a81b51b11044934ff702e35d8d7ab1b08" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m0100.u1" merge="pgm_m0100.u1" size="2097152" crc="e5c36c83" sha1="50c6f66770e8faa3df349f7d68c407a7ad021716" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Region" tag="Region" mask="3">
      <dipvalue name="World" value="0" default="yes" />
      <dipvalue name="World (duplicate)" value="1" />
      <dipvalue name="Korea" value="2" />
      <dipvalue name="China" value="3" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="orlegende" sourcefile="pgm.cpp" cloneof="orlegend" romof="orlegend">
    <description>Oriental Legend / Xiyou Shi E Chuan (ver. 112)</description>
    <year>1997</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="pgm_p0102.u2" size="2097152" crc="4d0f6cc5" sha1="8d41f0a712fb11a1da865f5159e5e27447b4388a" region="maincpu" offset="100000" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0100.u8" merge="pgm_t0100.u8" size="4194304" crc="61425e1e" sha1="20753b86fc12003cfd763d903f034dbba8010b32" region="tiles" offset="180000" />
    <rom name="pgm_a0100.u5" merge="pgm_a0100.u5" size="4194304" crc="8b3bd88a" sha1="42db3a60c6ba9d83ebe2008c8047d094027f65a7" region="sprcol" offset="0" />
    <rom name="pgm_a0101.u6" merge="pgm_a0101.u6" size="4194304" crc="3b9e9644" sha1="5b95ec1d25c3bc3504c93547f5adb5ce24376405" region="sprcol" offset="400000" />
    <rom name="pgm_a0102.u7" merge="pgm_a0102.u7" size="4194304" crc="069e2c38" sha1="9bddca8c2f5bd80f4abe4e1f062751736dc151dd" region="sprcol" offset="800000" />
    <rom name="pgm_a0103.u8" merge="pgm_a0103.u8" size="4194304" crc="4460a3fd" sha1="cbebdb65c17605853f7d0b298018dd8801a25a58" region="sprcol" offset="c00000" />
    <rom name="pgm_a0104.u11" merge="pgm_a0104.u11" size="4194304" crc="5f8abb56" sha1="6c1ddc0309862a141aa0c0f63b641aec9257aaee" region="sprcol" offset="1000000" />
    <rom name="pgm_a0105.u12" merge="pgm_a0105.u12" size="4194304" crc="a17a7147" sha1="44eeb43c6b0ebb829559a20ae357383fbdeecd82" region="sprcol" offset="1400000" />
    <rom name="pgm_b0100.u9" merge="pgm_b0100.u9" size="4194304" crc="69d2e48c" sha1="5b5f759007264c07b3b39be8e03a713698e1fc2a" region="sprmask" offset="0" />
    <rom name="pgm_b0101.u10" merge="pgm_b0101.u10" size="4194304" crc="0d587bf3" sha1="5347828b0a6e4ddd7a263663d2c2604407e4d49c" region="sprmask" offset="400000" />
    <rom name="pgm_b0102.u15" merge="pgm_b0102.u15" size="4194304" crc="43823c1e" sha1="e10a1a9a81b51b11044934ff702e35d8d7ab1b08" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m0100.u1" merge="pgm_m0100.u1" size="2097152" crc="e5c36c83" sha1="50c6f66770e8faa3df349f7d68c407a7ad021716" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Region" tag="Region" mask="3">
      <dipvalue name="World" value="0" default="yes" />
      <dipvalue name="World (duplicate)" value="1" />
      <dipvalue name="Korea" value="2" />
      <dipvalue name="China" value="3" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="pgm" sourcefile="pgm.cpp" isbios="yes">
    <description>PGM (Polygame Master) System BIOS</description>
    <year>1997</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="unsupported" />
    <feature type="sound" overall="imperfect" />
  </machine>
  <machine name="pgm3in1" sourcefile="pgm.cpp" romof="pgm">
    <description>Shan Liang San He Yi (Flash 3-in-1) (V102 08/23/04 13:03:26)</description>
    <year>2004</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v-102cn.u3" size="2097152" crc="72e06b2b" sha1="0d72f90b1a2df5f0e8708b59d2a7c13dba998acd" region="maincpu" offset="100000" />
    <rom name="igs027a_pgm3in1.asic" size="16384" status="nodump" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="u5.u5" size="2097152" crc="da375a50" sha1="62cd2fd3dfc1897528eaa38d243d7a9526eac71b" region="tiles" offset="180000" />
    <rom name="pgm_a1100.u4" size="8388608" crc="e32ce499" sha1="f84c7daa55c25a05da467b5654ebf432b7ce1754" region="sprcol" offset="0" />
    <rom name="pgm_a1101.u5" size="8388608" crc="4e7568bc" sha1="bf9cc453191bd5ec9fbcce62891809f253a44267" region="sprcol" offset="800000" />
    <rom name="pgm_a1102.u6" size="8388608" crc="6da7c143" sha1="9408ba7722bfc8013f851aadea5e2819f5263129" region="sprcol" offset="1000000" />
    <rom name="pgm_a1103.u7" size="8388608" crc="0ebebfdc" sha1="4faad7f97c7e734f179ec934a37e75d8d6adccf4" region="sprcol" offset="1800000" />
    <rom name="ext_bit_cg.u20" size="4194304" crc="fe314754" sha1="ae3e8bbdce852a3fa39806a5221c053dee5abfd4" region="sprcol" offset="2000000" />
    <rom name="pgm_b1100.u8" size="8388608" crc="fa53d6f6" sha1="c2da55f4b7e721fa1c63bd7f9528f261643164e8" region="sprmask" offset="0" />
    <rom name="pgm_b1101.u9" size="8388608" crc="001e4c81" sha1="21119055f8fd7f831529e73ff9c97bca3987a1dc" region="sprmask" offset="800000" />
    <rom name="ext_bit_map.u21" size="2097152" crc="fe31dca6" sha1="825bab7342c944794514fc7fe3e41779de3b5cd4" region="sprmask" offset="f00000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m1100.u17" size="2097152" crc="fb1515f8" sha1="90e5e5bfdac9a460445bf224952e4a536888dc1b" region="ics" offset="400000" />
    <rom name="u16.u16" size="8388608" crc="714c33e5" sha1="5478d5247349cdfb5f835171615d6ca2e5689140" region="ics" offset="600000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="Region" mask="15">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Hong Kong" value="2" />
      <confsetting name="World" value="3" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="preliminary" emulation="preliminary" savestate="unsupported" />
    <feature type="sound" overall="imperfect" />
  </machine>
  <machine name="pgm3in1c100" sourcefile="pgm.cpp" cloneof="pgm3in1" romof="pgm3in1">
    <description>Shan Liang San He Yi (Flash 3-in-1) (V100 07/13/04 12:09:20)</description>
    <year>2004</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v-100cn.u3" size="2097152" crc="a39f59b4" sha1="4eb53fb9f173cb470e16dc8f193c8909cf045e3d" region="maincpu" offset="100000" />
    <rom name="igs027a_pgm3in1.asic" size="16384" status="nodump" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="u5.u5" merge="u5.u5" size="2097152" crc="da375a50" sha1="62cd2fd3dfc1897528eaa38d243d7a9526eac71b" region="tiles" offset="180000" />
    <rom name="pgm_a1100.u4" merge="pgm_a1100.u4" size="8388608" crc="e32ce499" sha1="f84c7daa55c25a05da467b5654ebf432b7ce1754" region="sprcol" offset="0" />
    <rom name="pgm_a1101.u5" merge="pgm_a1101.u5" size="8388608" crc="4e7568bc" sha1="bf9cc453191bd5ec9fbcce62891809f253a44267" region="sprcol" offset="800000" />
    <rom name="pgm_a1102.u6" merge="pgm_a1102.u6" size="8388608" crc="6da7c143" sha1="9408ba7722bfc8013f851aadea5e2819f5263129" region="sprcol" offset="1000000" />
    <rom name="pgm_a1103.u7" merge="pgm_a1103.u7" size="8388608" crc="0ebebfdc" sha1="4faad7f97c7e734f179ec934a37e75d8d6adccf4" region="sprcol" offset="1800000" />
    <rom name="ext_bit_cg.u20" merge="ext_bit_cg.u20" size="4194304" crc="fe314754" sha1="ae3e8bbdce852a3fa39806a5221c053dee5abfd4" region="sprcol" offset="2000000" />
    <rom name="pgm_b1100.u8" merge="pgm_b1100.u8" size="8388608" crc="fa53d6f6" sha1="c2da55f4b7e721fa1c63bd7f9528f261643164e8" region="sprmask" offset="0" />
    <rom name="pgm_b1101.u9" merge="pgm_b1101.u9" size="8388608" crc="001e4c81" sha1="21119055f8fd7f831529e73ff9c97bca3987a1dc" region="sprmask" offset="800000" />
    <rom name="ext_bit_map.u21" merge="ext_bit_map.u21" size="2097152" crc="fe31dca6" sha1="825bab7342c944794514fc7fe3e41779de3b5cd4" region="sprmask" offset="f00000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m1100.u17" merge="pgm_m1100.u17" size="2097152" crc="fb1515f8" sha1="90e5e5bfdac9a460445bf224952e4a536888dc1b" region="ics" offset="400000" />
    <rom name="u16.u16" merge="u16.u16" size="8388608" crc="714c33e5" sha1="5478d5247349cdfb5f835171615d6ca2e5689140" region="ics" offset="600000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="Region" mask="15">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Hong Kong" value="2" />
      <confsetting name="World" value="3" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="preliminary" emulation="preliminary" savestate="unsupported" />
    <feature type="sound" overall="imperfect" />
  </machine>
  <machine name="photoy2k" sourcefile="pgm.cpp" romof="pgm">
    <description>Photo Y2K / Chaoji Bi Yi Bi / Dajia Lai Zhao Cha / Real and Fake (ver. 105)</description>
    <year>1999</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="pgm_p0701_v105.u2" size="2097152" crc="fab142e0" sha1="8dc7e53b740ed68bac98c0ef7ca4943c517e6f5d" region="maincpu" offset="100000" />
    <rom name="igs027a_photoy2k_v100_china.asic" size="16384" crc="1a0b68f6" sha1="290441ed652f54b26ace8f59a26220881fb62084" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0700.u11" size="524288" crc="93943b4d" sha1="3b439903853727d45d62c781af6073024eb3c5a3" region="tiles" offset="180000" />
    <rom name="pgm_a0700.u2" size="8388608" crc="503c855b" sha1="aa910cc33a23ac8f1c91f88da388ed92e49fa1b8" region="sprcol" offset="0" />
    <rom name="pgm_a0701.u4" size="8388608" crc="845e11a8" sha1="9e35d0e6620acd023eba83f86d970e9895204767" region="sprcol" offset="800000" />
    <rom name="pgm_a0702.u3" size="524288" crc="42239e1b" sha1="2b6d20958abf8a67ce525d5c8964b6d225ccaeda" region="sprcol" offset="1000000" />
    <rom name="pgm_b0700.u7" size="8388608" crc="8cd027f6" sha1="e377c64facbf657f58b8567d8b483ca067967fc0" region="sprmask" offset="0" />
    <rom name="photo_y2k_cg_v101_u6.u6" size="131072" crc="da02ec3e" sha1="7ee21d748c9b932f53e790a9040167f904fecefc" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m0700.u5" size="524288" crc="acc7afce" sha1="ac2d344ebac336f0f363bb045dd8ea4e83d1fb50" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="RegionHack" mask="255">
      <confsetting name="Taiwan" value="0" />
      <confsetting name="China" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="World" value="3" />
      <confsetting name="Korea" value="4" />
      <confsetting name="Hong Kong" value="5" />
      <confsetting name="Untouched" value="255" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":RegionHack" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="photoy2k102j" sourcefile="pgm.cpp" cloneof="photoy2k" romof="photoy2k">
    <description>Photo Y2K / Chaoji Bi Yi Bi / Dajia Lai Zhao Cha / Real and Fake (ver. 102, Japanese Board)</description>
    <year>1999</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="photo_y2k_v102_u4.u4" size="524288" crc="a65eda9f" sha1="6307cacf4a262e781753eff14700a0455837780c" region="maincpu" offset="100001" />
    <rom name="photo_y2k_v102_u6.u6" size="524288" crc="b9ca5504" sha1="058cf01316f233236ca9861349f515935283b75e" region="maincpu" offset="100000" />
    <rom name="photo_y2k_v102_u5.u5" size="524288" crc="9201621b" sha1="1ca3ebe7eec40614bfa8b911657fa2b51f2c51a4" region="maincpu" offset="200001" />
    <rom name="photo_y2k_v102_u8.u8" size="524288" crc="3be22b8f" sha1="03634fbd6a8a8369c6cb1fd6694a3784dac5bf59" region="maincpu" offset="200000" />
    <rom name="igs027a_photoy2k_v100_china_alt.asic" size="16384" crc="6dd7f257" sha1="1984f98a282d8b3264674f231c3b7def1757cf72" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0700.u11" merge="pgm_t0700.u11" size="524288" crc="93943b4d" sha1="3b439903853727d45d62c781af6073024eb3c5a3" region="tiles" offset="180000" />
    <rom name="pgm_a0700.u2" merge="pgm_a0700.u2" size="8388608" crc="503c855b" sha1="aa910cc33a23ac8f1c91f88da388ed92e49fa1b8" region="sprcol" offset="0" />
    <rom name="pgm_a0701.u4" merge="pgm_a0701.u4" size="8388608" crc="845e11a8" sha1="9e35d0e6620acd023eba83f86d970e9895204767" region="sprcol" offset="800000" />
    <rom name="pgm_a0702.u3" merge="pgm_a0702.u3" size="524288" crc="42239e1b" sha1="2b6d20958abf8a67ce525d5c8964b6d225ccaeda" region="sprcol" offset="1000000" />
    <rom name="pgm_b0700.u7" merge="pgm_b0700.u7" size="8388608" crc="8cd027f6" sha1="e377c64facbf657f58b8567d8b483ca067967fc0" region="sprmask" offset="0" />
    <rom name="photo_y2k_cg_v101_u6.u6" merge="photo_y2k_cg_v101_u6.u6" size="131072" crc="da02ec3e" sha1="7ee21d748c9b932f53e790a9040167f904fecefc" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="photo_y2k_sp_v102_u5.u5" merge="pgm_m0700.u5" size="524288" crc="acc7afce" sha1="ac2d344ebac336f0f363bb045dd8ea4e83d1fb50" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="RegionHack" mask="255">
      <confsetting name="Taiwan" value="0" />
      <confsetting name="China" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="World" value="3" />
      <confsetting name="Korea" value="4" />
      <confsetting name="Hong Kong" value="5" />
      <confsetting name="Untouched" value="255" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":RegionHack" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="photoy2k103j" sourcefile="pgm.cpp" cloneof="photoy2k" romof="photoy2k">
    <description>Photo Y2K / Chaoji Bi Yi Bi / Dajia Lai Zhao Cha / Real and Fake (ver. 103, Japanese Board)</description>
    <year>1999</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="photo_y2k_v103.u4" size="524288" crc="c16dc699" sha1="062d38ed32f56c1e640c5e2be046bc6e150123b1" region="maincpu" offset="100001" />
    <rom name="photo_y2k_v103.u6" size="524288" crc="2e2671a4" sha1="5f37b6d789fedeb5e291081f2908061f30875dc6" region="maincpu" offset="100000" />
    <rom name="photo_y2k_v103.u5" size="524288" crc="97839a61" sha1="bf34e3fab90a846baa5b5e0a3c3d9d99a603c8ee" region="maincpu" offset="200001" />
    <rom name="photo_y2k_v103.u8" size="524288" crc="43af9664" sha1="00dc74960cb126adfc223783b09a2787fe37625e" region="maincpu" offset="200000" />
    <rom name="igs027a_photoy2k_v100_china.asic" merge="igs027a_photoy2k_v100_china.asic" size="16384" crc="1a0b68f6" sha1="290441ed652f54b26ace8f59a26220881fb62084" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0700.u11" merge="pgm_t0700.u11" size="524288" crc="93943b4d" sha1="3b439903853727d45d62c781af6073024eb3c5a3" region="tiles" offset="180000" />
    <rom name="pgm_a0700.u2" merge="pgm_a0700.u2" size="8388608" crc="503c855b" sha1="aa910cc33a23ac8f1c91f88da388ed92e49fa1b8" region="sprcol" offset="0" />
    <rom name="pgm_a0701.u4" merge="pgm_a0701.u4" size="8388608" crc="845e11a8" sha1="9e35d0e6620acd023eba83f86d970e9895204767" region="sprcol" offset="800000" />
    <rom name="pgm_a0702.u3" merge="pgm_a0702.u3" size="524288" crc="42239e1b" sha1="2b6d20958abf8a67ce525d5c8964b6d225ccaeda" region="sprcol" offset="1000000" />
    <rom name="pgm_b0700.u7" merge="pgm_b0700.u7" size="8388608" crc="8cd027f6" sha1="e377c64facbf657f58b8567d8b483ca067967fc0" region="sprmask" offset="0" />
    <rom name="photo_y2k_cg_v101_u6.u6" merge="photo_y2k_cg_v101_u6.u6" size="131072" crc="da02ec3e" sha1="7ee21d748c9b932f53e790a9040167f904fecefc" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="photo_y2k_sp_v102_u5.u5" merge="pgm_m0700.u5" size="524288" crc="acc7afce" sha1="ac2d344ebac336f0f363bb045dd8ea4e83d1fb50" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="RegionHack" mask="255">
      <confsetting name="Taiwan" value="0" />
      <confsetting name="China" value="1" />
      <confsetting name="Japan (Alta license)" value="2" default="yes" />
      <confsetting name="World" value="3" />
      <confsetting name="Korea" value="4" />
      <confsetting name="Hong Kong" value="5" />
      <confsetting name="Untouched" value="255" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":RegionHack" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="photoy2k104" sourcefile="pgm.cpp" cloneof="photoy2k" romof="photoy2k">
    <description>Photo Y2K / Chaoji Bi Yi Bi / Dajia Lai Zhao Cha / Real and Fake (ver. 104)</description>
    <year>1999</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v104.16m" size="2097152" crc="e051070f" sha1="a5a1a8dd7542a30632501af8d02fda07475fd9aa" region="maincpu" offset="100000" />
    <rom name="igs027a_photoy2k_v100_china_alt.asic" size="16384" crc="6dd7f257" sha1="1984f98a282d8b3264674f231c3b7def1757cf72" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0700.u11" merge="pgm_t0700.u11" size="524288" crc="93943b4d" sha1="3b439903853727d45d62c781af6073024eb3c5a3" region="tiles" offset="180000" />
    <rom name="pgm_a0700.u2" merge="pgm_a0700.u2" size="8388608" crc="503c855b" sha1="aa910cc33a23ac8f1c91f88da388ed92e49fa1b8" region="sprcol" offset="0" />
    <rom name="pgm_a0701.u4" merge="pgm_a0701.u4" size="8388608" crc="845e11a8" sha1="9e35d0e6620acd023eba83f86d970e9895204767" region="sprcol" offset="800000" />
    <rom name="pgm_a0702.u3" merge="pgm_a0702.u3" size="524288" crc="42239e1b" sha1="2b6d20958abf8a67ce525d5c8964b6d225ccaeda" region="sprcol" offset="1000000" />
    <rom name="pgm_b0700.u7" merge="pgm_b0700.u7" size="8388608" crc="8cd027f6" sha1="e377c64facbf657f58b8567d8b483ca067967fc0" region="sprmask" offset="0" />
    <rom name="photo_y2k_cg_v101_u6.u6" merge="photo_y2k_cg_v101_u6.u6" size="131072" crc="da02ec3e" sha1="7ee21d748c9b932f53e790a9040167f904fecefc" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m0700.u5" merge="pgm_m0700.u5" size="524288" crc="acc7afce" sha1="ac2d344ebac336f0f363bb045dd8ea4e83d1fb50" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="RegionHack" mask="255">
      <confsetting name="Taiwan" value="0" />
      <confsetting name="China" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="World" value="3" />
      <confsetting name="Korea" value="4" />
      <confsetting name="Hong Kong" value="5" />
      <confsetting name="Untouched" value="255" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":RegionHack" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="puzlstar" sourcefile="pgm.cpp" romof="pgm">
    <description>Puzzle Star / Mohuan Xingzuo (ver. 100MG, 09/30/99 build)</description>
    <year>1999</year>
    <manufacturer>IGS (Metro license)</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="puzzlestar_u1_v100mg.u1" size="524288" crc="c6ee43d7" sha1="2419414ded556b5e4868d51b0da5dfce374d6bc0" region="maincpu" offset="100000" />
    <rom name="puzzlestar_u2_v100mg.u2" size="524288" crc="42aa03ce" sha1="8e1666cc3ded98179a3e4854973604172921bbd6" region="maincpu" offset="100001" />
    <rom name="puzlstar_igs027a.bin" size="16384" status="nodump" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0800.u5" size="2097152" crc="f9d84e59" sha1="80ec77025ac5bf355b1a60f2a678dd4c56071f6b" region="tiles" offset="180000" />
    <rom name="pgm_a0800.u1" size="4194304" crc="e1e6ec40" sha1="390432431f144ef63424a426582b311765a61771" region="sprcol" offset="0" />
    <rom name="pgm_b0800.u3" size="2097152" crc="52e7bef5" sha1="a678251b7e46a1016d0afc1d8d5c9928008ad5b1" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m0800.u2" size="4194304" crc="e1a46541" sha1="6fe9de5700d8638374734d80551dcedb62975140" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="Region" mask="15">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="preliminary" emulation="preliminary" savestate="supported" />
    <feature type="protection" status="imperfect" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="puzlstara" sourcefile="pgm.cpp" cloneof="puzlstar" romof="puzlstar">
    <description>Puzzle Star / Mohuan Xingzuo (ver. 100MG, 09/20/99 build)</description>
    <year>1999</year>
    <manufacturer>IGS (Metro license)</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v100mg.u1" size="524288" crc="5788b77d" sha1="7770aae6e686da92b2623c977d1bc8f019f48267" region="maincpu" offset="100000" />
    <rom name="v100mg.u2" size="524288" crc="4c79d979" sha1="3b92052a35994f2b3dd164930154184c45d5e2d0" region="maincpu" offset="100001" />
    <rom name="puzlstar_igs027a.bin" size="16384" status="nodump" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0800.u5" merge="pgm_t0800.u5" size="2097152" crc="f9d84e59" sha1="80ec77025ac5bf355b1a60f2a678dd4c56071f6b" region="tiles" offset="180000" />
    <rom name="pgm_a0800.u1" merge="pgm_a0800.u1" size="4194304" crc="e1e6ec40" sha1="390432431f144ef63424a426582b311765a61771" region="sprcol" offset="0" />
    <rom name="pgm_b0800.u3" merge="pgm_b0800.u3" size="2097152" crc="52e7bef5" sha1="a678251b7e46a1016d0afc1d8d5c9928008ad5b1" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m0800.u2" merge="pgm_m0800.u2" size="4194304" crc="e1a46541" sha1="6fe9de5700d8638374734d80551dcedb62975140" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="Region" mask="15">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="preliminary" emulation="preliminary" savestate="supported" />
    <feature type="protection" status="imperfect" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="puzzli2" sourcefile="pgm.cpp" romof="pgm">
    <description>Puzzli 2 / Pao Pao Yu (ver. 100)</description>
    <year>1999</year>
    <manufacturer>IGS (Metro license)</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v100_u5.u5" size="2097152" crc="1abb4595" sha1="860bb49efc3cb55b6b9846f5ab787d6fd586432d" region="maincpu" offset="100000" />
    <rom name="puzzli2_igs027a.bin" size="16384" status="nodump" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0900.u9" size="2097152" crc="70615611" sha1="a46d4aa71396947b427f9ba4ba0e636876c09d6b" region="tiles" offset="180000" />
    <rom name="pgm_a0900.u3" size="4194304" crc="14911251" sha1="e0d10ef50c408dbcf0907f81d4f0e49aeb651a6c" region="sprcol" offset="0" />
    <rom name="pgm_b0900.u4" size="2097152" crc="6f0638b6" sha1="14b315fe9e80b3314bb63487e6ea9ce04c9703bd" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m0900.u2" size="4194304" crc="9ea7af2e" sha1="d2593d391a93c5cf5a554750c32886dea6599b3d" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="Region" mask="15">
      <confsetting name="Taiwan" value="0" />
      <confsetting name="China" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="puzzli2s" sourcefile="pgm.cpp" cloneof="puzzli2" romof="puzzli2">
    <description>Puzzli 2 Super / Pao Pao Yu Super (ver. 200)</description>
    <year>2001</year>
    <manufacturer>IGS (Metro license)</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="2sp_v200.u3" size="524288" crc="2a5ba8a6" sha1="4c87b849fd6f39152e3e2ef699b78ce24b3fb6d0" region="maincpu" offset="100000" />
    <rom name="2sp_v200.u4" size="524288" crc="fa5c86c1" sha1="11c219722b891b775c0f7f9bc8276cdd8f74d657" region="maincpu" offset="100001" />
    <rom name="puzzli2_igs027a.bin" size="16384" status="nodump" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_t0900.u9" merge="pgm_t0900.u9" size="2097152" crc="70615611" sha1="a46d4aa71396947b427f9ba4ba0e636876c09d6b" region="tiles" offset="180000" />
    <rom name="pgm_a0900.u3" merge="pgm_a0900.u3" size="4194304" crc="14911251" sha1="e0d10ef50c408dbcf0907f81d4f0e49aeb651a6c" region="sprcol" offset="0" />
    <rom name="pgm_b0900.u4" merge="pgm_b0900.u4" size="2097152" crc="6f0638b6" sha1="14b315fe9e80b3314bb63487e6ea9ce04c9703bd" region="sprmask" offset="0" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m0900.u2" merge="pgm_m0900.u2" size="4194304" crc="9ea7af2e" sha1="d2593d391a93c5cf5a554750c32886dea6599b3d" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="Region" mask="15">
      <confsetting name="Taiwan" value="0" />
      <confsetting name="China" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="World" value="5" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="py2k2" sourcefile="pgm.cpp" romof="pgm">
    <description>Photo Y2K 2 / Chaoji Bi Yi Bi 2 / Dajia Lai Zhao Cha 2 / Real and Fake 2 Photo Y2K (M101XX 05/25/01 11:02:54)</description>
    <year>2001</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="y2k2_m-101xx.u1" size="2097152" crc="c47795f1" sha1="5be4af4275571932d7740c3ea0857a1f58a3f6d9" region="maincpu" offset="100000" />
    <rom name="igs027a_photoy2k2.asic" size="16384" status="nodump" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_a1100.u6" size="8388608" crc="e32ce499" sha1="f84c7daa55c25a05da467b5654ebf432b7ce1754" region="sprcol" offset="0" />
    <rom name="pgm_a1101.u7" size="8388608" crc="4e7568bc" sha1="bf9cc453191bd5ec9fbcce62891809f253a44267" region="sprcol" offset="800000" />
    <rom name="pgm_a1102.u8" size="8388608" crc="6da7c143" sha1="9408ba7722bfc8013f851aadea5e2819f5263129" region="sprcol" offset="1000000" />
    <rom name="pgm_a1103.u9" size="8388608" crc="0ebebfdc" sha1="4faad7f97c7e734f179ec934a37e75d8d6adccf4" region="sprcol" offset="1800000" />
    <rom name="pgm_b1100.u4" size="8388608" crc="fa53d6f6" sha1="c2da55f4b7e721fa1c63bd7f9528f261643164e8" region="sprmask" offset="0" />
    <rom name="pgm_b1101.u5" size="8388608" crc="001e4c81" sha1="21119055f8fd7f831529e73ff9c97bca3987a1dc" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m1100.u3" size="2097152" crc="fb1515f8" sha1="90e5e5bfdac9a460445bf224952e4a536888dc1b" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="Region" mask="15">
      <confsetting name="Taiwan" value="0" />
      <confsetting name="China" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="World" value="3" default="yes" />
      <confsetting name="Korea" value="4" />
      <confsetting name="Hong Kong" value="5" />
      <confsetting name="Singapore, Malaysia" value="6" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="py2k2100" sourcefile="pgm.cpp" cloneof="py2k2" romof="py2k2">
    <description>Photo Y2K 2 / Chaoji Bi Yi Bi 2 / Dajia Lai Zhao Cha 2 / Real and Fake 2 Photo Y2K (ver. 100, Japanese Board)</description>
    <year>2000</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="y2kii_v100.u1" size="1048576" crc="7a1e36ac" sha1="0ff9a30733ca8026e4acce45a8993c8ab4b242b5" region="maincpu" offset="100000" />
    <rom name="igs027a_photoy2k2.asic" size="16384" status="nodump" region="prot" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="pgm_a1100.u6" merge="pgm_a1100.u6" size="8388608" crc="e32ce499" sha1="f84c7daa55c25a05da467b5654ebf432b7ce1754" region="sprcol" offset="0" />
    <rom name="pgm_a1101.u7" merge="pgm_a1101.u7" size="8388608" crc="4e7568bc" sha1="bf9cc453191bd5ec9fbcce62891809f253a44267" region="sprcol" offset="800000" />
    <rom name="pgm_a1102.u8" merge="pgm_a1102.u8" size="8388608" crc="6da7c143" sha1="9408ba7722bfc8013f851aadea5e2819f5263129" region="sprcol" offset="1000000" />
    <rom name="pgm_a1103.u9" merge="pgm_a1103.u9" size="8388608" crc="0ebebfdc" sha1="4faad7f97c7e734f179ec934a37e75d8d6adccf4" region="sprcol" offset="1800000" />
    <rom name="pgm_b1100.u4" merge="pgm_b1100.u4" size="8388608" crc="fa53d6f6" sha1="c2da55f4b7e721fa1c63bd7f9528f261643164e8" region="sprmask" offset="0" />
    <rom name="pgm_b1101.u5" merge="pgm_b1101.u5" size="8388608" crc="001e4c81" sha1="21119055f8fd7f831529e73ff9c97bca3987a1dc" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="pgm_m1100.u3" merge="pgm_m1100.u3" size="2097152" crc="fb1515f8" sha1="90e5e5bfdac9a460445bf224952e4a536888dc1b" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="20000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="Region" mask="15">
      <confsetting name="Taiwan" value="0" />
      <confsetting name="China" value="1" />
      <confsetting name="Japan (Alta license)" value="2" />
      <confsetting name="World" value="3" default="yes" />
      <confsetting name="Korea" value="4" />
      <confsetting name="Hong Kong" value="5" />
      <confsetting name="Singapore, Malaysia" value="6" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="svg" sourcefile="pgm.cpp" romof="pgm">
    <description>S.V.G. - Spectral vs Generation / Sheng Mo Shiji (M68k label V200) (ARM label V200, ROM 10/11/05 S.V.G V201)</description>
    <year>2005</year>
    <manufacturer>IGS / Idea Factory</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="svg_v200_u30.u30" size="524288" crc="34c18f3f" sha1="42d1edd0dcfaa5e44861c6a1d4cb24f51ba23de8" region="maincpu" offset="100000" />
    <rom name="svg_igs027a_execute_only_area" size="392" status="nodump" region="prot" offset="0" />
    <rom name="svg_igs027a_v200_china.bin" size="15992" crc="72b73169" sha1="ffc0caea855ab4b01beb3aebd0bf17187c66c22c" region="prot" offset="188" />
    <rom name="epr.u26" size="4194304" crc="46826ec8" sha1="ad1daf6f615fb8d748ce7f98f19dd3bf22f79fba" region="user1" offset="0" />
    <rom name="epr.u36" size="4194304" crc="fa5f3901" sha1="8ab7c6763df4f752b50ed2197063f58046b32ddb" region="user1" offset="400000" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="igs_t05601w016.u29" size="2097152" crc="03e110dc" sha1="41c8f286e9303b24ba6235b341371c298226fb6a" region="tiles" offset="180000" />
    <rom name="igs_a05601w064.u3" size="8388608" crc="ea6453e4" sha1="b5c82edafa8008ad59b5f2219511947d078d446e" region="sprcol" offset="0" />
    <rom name="igs_a05602w064.u4" size="8388608" crc="6d00621b" sha1="55a4bc357e14b975b0234a9cd49e2224f509dad9" region="sprcol" offset="800000" />
    <rom name="igs_a05603w064.u6" size="8388608" crc="7b71c64f" sha1="bec7c7edf0634cf8351a54abb867c56af08ad2c3" region="sprcol" offset="1000000" />
    <rom name="igs_a05604w032.u8" size="4194304" crc="9452a567" sha1="01fdb8e1f131603843ef4c49ab76d7a56b2d6414" region="sprcol" offset="1800000" />
    <rom name="igs_b05601w064.u9" size="8388608" crc="35c0a489" sha1="a7d5527da01f8eaa7499fb6785b57094521bce97" region="sprmask" offset="0" />
    <rom name="igs_b05602w064.u11" size="8388608" crc="8aad3f85" sha1="da6996d901d42b3a2ba7019ad014bb938a5e328b" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="igs_w05601b064.u5" size="8388608" crc="bfe61a71" sha1="e682ca8d57ca51c4d72f64fc091161f3dbdce871" region="ics" offset="400000" />
    <rom name="igs_w05602b032.u7" size="4194304" crc="0685166d" sha1="64dac49abd2a46d5fb58c678027aa5e23d672dc4" region="ics" offset="c00000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="33000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="RegionHack" mask="255">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan (AMI license)" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="Spanish Territories" value="5" />
      <confsetting name="World" value="6" />
      <confsetting name="Don't Change" value="255" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":RegionHack" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="svgpcb" sourcefile="pgm.cpp" cloneof="svg" romof="svg">
    <description>S.V.G. - Spectral vs Generation / Sheng Mo Shiji (M68k label V100JP) (ARM label V100JP, ROM 05/12/05 S.V.G V100) (Japan, JAMMA PCB)</description>
    <year>2005</year>
    <manufacturer>IGS / Idea Factory (AMI license)</manufacturer>
    <rom name="svg_bios.u49" size="131072" crc="3346401f" sha1="28bd730b6026c1e521c95072d33c7bdcd19c1460" region="maincpu" offset="0" />
    <rom name="svg_v100jp_u50.u50" size="524288" crc="8d0405e4" sha1="b6175c9ffeaac531d28e7845cb34c673476e286a" region="maincpu" offset="100000" />
    <rom name="svgpcb_igs027a_execute_only_area" size="392" status="nodump" region="prot" offset="0" />
    <rom name="svgcpb_igs027a_v100_japan.bin" size="15992" crc="7a59da5d" sha1="d67ba465db40ca716b4b901b1c8e762716fb954e" region="prot" offset="188" />
    <rom name="svg_v100jp_u64.u64" size="4194304" crc="399d4a8b" sha1="b120e8386a259e6fd7941acf3c33cf288eda616c" region="user1" offset="0" />
    <rom name="svg_v100jp_u65.u65" size="4194304" crc="6e1c33b1" sha1="66f26b2f4c0b3dcf6d1bb1df48e2ddbcc9d9432d" region="user1" offset="400000" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="igs_t05601w016.u70" merge="igs_t05601w016.u29" size="2097152" crc="03e110dc" sha1="41c8f286e9303b24ba6235b341371c298226fb6a" region="tiles" offset="180000" />
    <rom name="igs_a05601w064.u44" merge="igs_a05601w064.u3" size="8388608" crc="ea6453e4" sha1="b5c82edafa8008ad59b5f2219511947d078d446e" region="sprcol" offset="0" />
    <rom name="igs_a05602w064.u45" merge="igs_a05602w064.u4" size="8388608" crc="6d00621b" sha1="55a4bc357e14b975b0234a9cd49e2224f509dad9" region="sprcol" offset="800000" />
    <rom name="igs_a05603w064.u46" merge="igs_a05603w064.u6" size="8388608" crc="7b71c64f" sha1="bec7c7edf0634cf8351a54abb867c56af08ad2c3" region="sprcol" offset="1000000" />
    <rom name="igs_a05604w032.u47" merge="igs_a05604w032.u8" size="4194304" crc="9452a567" sha1="01fdb8e1f131603843ef4c49ab76d7a56b2d6414" region="sprcol" offset="1800000" />
    <rom name="igs_b05601w064.u61" merge="igs_b05601w064.u9" size="8388608" crc="35c0a489" sha1="a7d5527da01f8eaa7499fb6785b57094521bce97" region="sprmask" offset="0" />
    <rom name="igs_b05602w064.u62" merge="igs_b05602w064.u11" size="8388608" crc="8aad3f85" sha1="da6996d901d42b3a2ba7019ad014bb938a5e328b" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="igs_w05601b064.u30" merge="igs_w05601b064.u5" size="8388608" crc="bfe61a71" sha1="e682ca8d57ca51c4d72f64fc091161f3dbdce871" region="ics" offset="400000" />
    <rom name="igs_w05602b032.u31" merge="igs_w05602b032.u7" size="4194304" crc="0685166d" sha1="64dac49abd2a46d5fb58c678027aa5e23d672dc4" region="ics" offset="c00000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="33000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="RegionHack" mask="255">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Japan" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="Spanish Territories" value="5" />
      <confsetting name="World" value="6" />
      <confsetting name="Don't Change" value="255" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":RegionHack" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="svgtw" sourcefile="pgm.cpp" cloneof="svg" romof="svg">
    <description>S.V.G. - Spectral vs Generation / Sheng Mo Shiji (M68k label V101TW) (ARM label V101TW, ROM 06/20/05 S.V.G V100)</description>
    <year>2005</year>
    <manufacturer>IGS / Idea Factory</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v101tw_u30.u30" size="524288" crc="8d0405e4" sha1="b6175c9ffeaac531d28e7845cb34c673476e286a" region="maincpu" offset="100000" />
    <rom name="svgpcb_igs027a_execute_only_area" size="392" status="nodump" region="prot" offset="0" />
    <rom name="svgcpb_igs027a_v100_japan.bin" size="15992" crc="7a59da5d" sha1="d67ba465db40ca716b4b901b1c8e762716fb954e" region="prot" offset="188" />
    <rom name="v101tw_u26.u26" size="4194304" crc="cc24f542" sha1="623ed398d2eeea229833d92eb4fb6492133202b3" region="user1" offset="0" />
    <rom name="v101tw_u36.u36" size="4194304" crc="f18283e2" sha1="15323c5f816a0bf6f510311eb49d485ccf713cf7" region="user1" offset="400000" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="igs_t05601w016.u29" merge="igs_t05601w016.u29" size="2097152" crc="03e110dc" sha1="41c8f286e9303b24ba6235b341371c298226fb6a" region="tiles" offset="180000" />
    <rom name="igs_a05601w064.u3" merge="igs_a05601w064.u3" size="8388608" crc="ea6453e4" sha1="b5c82edafa8008ad59b5f2219511947d078d446e" region="sprcol" offset="0" />
    <rom name="igs_a05602w064.u4" merge="igs_a05602w064.u4" size="8388608" crc="6d00621b" sha1="55a4bc357e14b975b0234a9cd49e2224f509dad9" region="sprcol" offset="800000" />
    <rom name="igs_a05603w064.u6" merge="igs_a05603w064.u6" size="8388608" crc="7b71c64f" sha1="bec7c7edf0634cf8351a54abb867c56af08ad2c3" region="sprcol" offset="1000000" />
    <rom name="igs_a05604w032.u8" merge="igs_a05604w032.u8" size="4194304" crc="9452a567" sha1="01fdb8e1f131603843ef4c49ab76d7a56b2d6414" region="sprcol" offset="1800000" />
    <rom name="igs_b05601w064.u9" merge="igs_b05601w064.u9" size="8388608" crc="35c0a489" sha1="a7d5527da01f8eaa7499fb6785b57094521bce97" region="sprmask" offset="0" />
    <rom name="igs_b05602w064.u11" merge="igs_b05602w064.u11" size="8388608" crc="8aad3f85" sha1="da6996d901d42b3a2ba7019ad014bb938a5e328b" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="igs_w05601b064.u5" merge="igs_w05601b064.u5" size="8388608" crc="bfe61a71" sha1="e682ca8d57ca51c4d72f64fc091161f3dbdce871" region="ics" offset="400000" />
    <rom name="igs_w05602b032.u7" merge="igs_w05602b032.u7" size="4194304" crc="0685166d" sha1="64dac49abd2a46d5fb58c678027aa5e23d672dc4" region="ics" offset="c00000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="33000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="RegionHack" mask="255">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" default="yes" />
      <confsetting name="Japan (AMI license)" value="2" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="Spanish Territories" value="5" />
      <confsetting name="World" value="6" />
      <confsetting name="Don't Change" value="255" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":RegionHack" />
    <port tag=":Service" />
    <driver status="preliminary" emulation="preliminary" savestate="unsupported" />
    <feature type="sound" overall="imperfect" />
  </machine>
  <machine name="theglad" sourcefile="pgm.cpp" romof="pgm">
    <description>The Gladiator / Shen Jian Fu Mo Lu / Shen Jian Fengyun (M68k label V101) (ARM label V107, ROM 06/06/03 SHEN JIAN V107)</description>
    <year>2003</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v101_u6.u6" size="524288" crc="f799e866" sha1="dccc3c903357c40c3cf85ac0ae8fc12fb0f853a6" region="maincpu" offset="100000" />
    <rom name="theglad_igs027a_execute_only_area" size="392" status="nodump" region="prot" offset="0" />
    <rom name="theglad_igs027a_v100_overseas.bin" size="15992" crc="02fe6f52" sha1="0b0ddf4507856cfc5b7d4ef7e4c5375254c2a024" region="prot" offset="188" />
    <rom name="v107_u26.u26" size="2097152" crc="f7c61357" sha1="52d31c464dfc83c5371b078cb6b73c0d0e0d57e3" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="igs_t04601w64m.u33" size="8388608" crc="e5dab371" sha1="2e3c93958eb0326b6b84b95c2168626f26bbac76" region="tiles" offset="180000" />
    <rom name="igs_a04601w64m.u2" size="8388608" crc="d9b2e004" sha1="8e1882b800fe9f12d7d49303e7417ba5b6f8ef85" region="sprcol" offset="0" />
    <rom name="igs_a04602w64m.u4" size="8388608" crc="14f22308" sha1="7fad54704e8c97eab723f53dfb50fb3e7bb606d2" region="sprcol" offset="800000" />
    <rom name="igs_a04603w64m.u6" size="8388608" crc="8f621e17" sha1="b0f87f378e0115d0c95017ca0f1b0d508827a7c6" region="sprcol" offset="1000000" />
    <rom name="igs_b04601w64m.u11" size="8388608" crc="ee72bccf" sha1="73c25fe659f6c903447066e4ef83d2f580449d76" region="sprmask" offset="0" />
    <rom name="igs_b04602w32m.u12" size="4194304" crc="7dba9c38" sha1="a03d509274e8f6a500a7ebe2da5aab8bed4e7f2f" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="igs_w04601b64m.u1" size="8388608" crc="5f15ddb3" sha1="c38dcef8e06802a84e42a7fc9fa505475fc3ac65" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="22000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="RegionHack" mask="255">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="Spanish Territories" value="5" />
      <confsetting name="World" value="6" />
      <confsetting name="Don't Change" value="255" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":RegionHack" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="theglad100" sourcefile="pgm.cpp" cloneof="theglad" romof="theglad">
    <description>The Gladiator / Shen Jian Fu Mo Lu / Shen Jian Fengyun (M68k label V100) (ARM label V100, ROM 01/16/03 SHEN JIAN)</description>
    <year>2003</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="u6.rom" size="524288" crc="14c85212" sha1="8d2489708e176a2c460498a13173be01f645b79e" region="maincpu" offset="100000" />
    <rom name="theglad_igs027a_execute_only_area" size="392" status="nodump" region="prot" offset="0" />
    <rom name="theglad_igs027a_older.bin" merge="theglad_igs027a_v100_overseas.bin" size="15992" crc="02fe6f52" sha1="0b0ddf4507856cfc5b7d4ef7e4c5375254c2a024" status="baddump" region="prot" offset="188" />
    <rom name="u2.rom" size="2097152" crc="c7bcf2ae" sha1="10bc012c83987f594d5375a51bc4be2e17568a81" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="igs_t04601w64m.u33" merge="igs_t04601w64m.u33" size="8388608" crc="e5dab371" sha1="2e3c93958eb0326b6b84b95c2168626f26bbac76" region="tiles" offset="180000" />
    <rom name="igs_a04601w64m.u2" merge="igs_a04601w64m.u2" size="8388608" crc="d9b2e004" sha1="8e1882b800fe9f12d7d49303e7417ba5b6f8ef85" region="sprcol" offset="0" />
    <rom name="igs_a04602w64m.u4" merge="igs_a04602w64m.u4" size="8388608" crc="14f22308" sha1="7fad54704e8c97eab723f53dfb50fb3e7bb606d2" region="sprcol" offset="800000" />
    <rom name="igs_a04603w64m.u6" merge="igs_a04603w64m.u6" size="8388608" crc="8f621e17" sha1="b0f87f378e0115d0c95017ca0f1b0d508827a7c6" region="sprcol" offset="1000000" />
    <rom name="igs_b04601w64m.u11" merge="igs_b04601w64m.u11" size="8388608" crc="ee72bccf" sha1="73c25fe659f6c903447066e4ef83d2f580449d76" region="sprmask" offset="0" />
    <rom name="igs_b04602w32m.u12" merge="igs_b04602w32m.u12" size="4194304" crc="7dba9c38" sha1="a03d509274e8f6a500a7ebe2da5aab8bed4e7f2f" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="igs_w04601b64m.u1" merge="igs_w04601b64m.u1" size="8388608" crc="5f15ddb3" sha1="c38dcef8e06802a84e42a7fc9fa505475fc3ac65" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="22000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="RegionHack" mask="255">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="Spanish Territories" value="5" />
      <confsetting name="World" value="6" />
      <confsetting name="Don't Change" value="255" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":RegionHack" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="theglad101" sourcefile="pgm.cpp" cloneof="theglad" romof="theglad">
    <description>The Gladiator / Shen Jian Fu Mo Lu / Shen Jian Fengyun (M68k label V100) (ARM label V101, ROM 03/13/03 SHEN JIAN)</description>
    <year>2003</year>
    <manufacturer>IGS</manufacturer>
    <biosset name="v2" description="PGM Bios V2" />
    <biosset name="v1" description="PGM Bios V1" />
    <rom name="pgm_p02s.u20" merge="pgm_p02s.u20" bios="v2" size="131072" crc="78c15fa2" sha1="885a6558e022602cc6f482ac9667ba9f61e75092" region="maincpu" offset="0" />
    <rom name="pgm_p01s.u20" merge="pgm_p01s.u20" bios="v1" size="131072" crc="e42b166e" sha1="2a9df9ec746b14b74fae48b1a438da14973702ea" region="maincpu" offset="0" />
    <rom name="v100.u6" size="524288" crc="bcf3b172" sha1="df7e2808c0341be0a59eefa852c857a3a919223e" region="maincpu" offset="100000" />
    <rom name="theglad_igs027a_execute_only_area" size="392" status="nodump" region="prot" offset="0" />
    <rom name="theglad_igs027a_v100_overseas.bin" merge="theglad_igs027a_v100_overseas.bin" size="15992" crc="02fe6f52" sha1="0b0ddf4507856cfc5b7d4ef7e4c5375254c2a024" region="prot" offset="188" />
    <rom name="v101.u26" size="2097152" crc="23faec02" sha1="9065d55c2a14e6889e735a452bbc32530056645a" region="user1" offset="0" />
    <rom name="pgm_t01s.rom" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="igs_t04601w64m.u33" merge="igs_t04601w64m.u33" size="8388608" crc="e5dab371" sha1="2e3c93958eb0326b6b84b95c2168626f26bbac76" region="tiles" offset="180000" />
    <rom name="igs_a04601w64m.u2" merge="igs_a04601w64m.u2" size="8388608" crc="d9b2e004" sha1="8e1882b800fe9f12d7d49303e7417ba5b6f8ef85" region="sprcol" offset="0" />
    <rom name="igs_a04602w64m.u4" merge="igs_a04602w64m.u4" size="8388608" crc="14f22308" sha1="7fad54704e8c97eab723f53dfb50fb3e7bb606d2" region="sprcol" offset="800000" />
    <rom name="igs_a04603w64m.u6" merge="igs_a04603w64m.u6" size="8388608" crc="8f621e17" sha1="b0f87f378e0115d0c95017ca0f1b0d508827a7c6" region="sprcol" offset="1000000" />
    <rom name="igs_b04601w64m.u11" merge="igs_b04601w64m.u11" size="8388608" crc="ee72bccf" sha1="73c25fe659f6c903447066e4ef83d2f580449d76" region="sprmask" offset="0" />
    <rom name="igs_b04602w32m.u12" merge="igs_b04602w32m.u12" size="4194304" crc="7dba9c38" sha1="a03d509274e8f6a500a7ebe2da5aab8bed4e7f2f" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.rom" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="igs_w04601b64m.u1" merge="igs_w04601b64m.u1" size="8388608" crc="5f15ddb3" sha1="c38dcef8e06802a84e42a7fc9fa505475fc3ac65" region="ics" offset="400000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="22000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <configuration name="Region" tag="RegionHack" mask="255">
      <confsetting name="China" value="0" />
      <confsetting name="Taiwan" value="1" />
      <confsetting name="Korea" value="3" />
      <confsetting name="Hong Kong" value="4" />
      <confsetting name="Spanish Territories" value="5" />
      <confsetting name="World" value="6" />
      <confsetting name="Don't Change" value="255" default="yes" />
    </configuration>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":RegionHack" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="thegladpcb" sourcefile="pgm.cpp" cloneof="theglad" romof="theglad">
    <description>Tougenkyou - Road of the Sword (M68k label V100) (ARM label V101, ROM 03/13/03 SHEN JIAN) (Japan, JAMMA PCB)</description>
    <year>2003</year>
    <manufacturer>IGS (Alta/AMI license)</manufacturer>
    <rom name="bios.42" size="131072" crc="517cf7a2" sha1="f5720b29e3be6ec22be03a768618cb2a1aa4ade7" region="maincpu" offset="0" />
    <rom name="v100_u43.u43" size="524288" crc="bcf3b172" sha1="df7e2808c0341be0a59eefa852c857a3a919223e" region="maincpu" offset="100000" />
    <rom name="thegladpcb_igs027a_execute_only_area" size="392" status="nodump" region="prot" offset="0" />
    <rom name="thegladpcb_igs027a_v100_japan.bin" size="15992" crc="d7f06e2d" sha1="9c3aca7a487f5329d84731e2c63d5ed591bf9d24" region="prot" offset="188" />
    <rom name="v101_u62.u62" size="2097152" crc="23faec02" sha1="9065d55c2a14e6889e735a452bbc32530056645a" region="user1" offset="0" />
    <rom name="pgm_t01s.u72" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="igs_t04601w64m.u71" merge="igs_t04601w64m.u33" size="8388608" crc="e5dab371" sha1="2e3c93958eb0326b6b84b95c2168626f26bbac76" region="tiles" offset="180000" />
    <rom name="igs_a04601w64m.u30" merge="igs_a04601w64m.u2" size="8388608" crc="d9b2e004" sha1="8e1882b800fe9f12d7d49303e7417ba5b6f8ef85" region="sprcol" offset="0" />
    <rom name="igs_a04602w64m.u31" merge="igs_a04602w64m.u4" size="8388608" crc="14f22308" sha1="7fad54704e8c97eab723f53dfb50fb3e7bb606d2" region="sprcol" offset="800000" />
    <rom name="igs_a04603w64m.u32" merge="igs_a04603w64m.u6" size="8388608" crc="8f621e17" sha1="b0f87f378e0115d0c95017ca0f1b0d508827a7c6" region="sprcol" offset="1000000" />
    <rom name="igs_b04601w64m.u40" merge="igs_b04601w64m.u11" size="8388608" crc="ee72bccf" sha1="73c25fe659f6c903447066e4ef83d2f580449d76" region="sprmask" offset="0" />
    <rom name="igs_b04602w32m.u41" merge="igs_b04602w32m.u12" size="4194304" crc="7dba9c38" sha1="a03d509274e8f6a500a7ebe2da5aab8bed4e7f2f" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.u4" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="igs_w04601b64m.u8" merge="igs_w04601b64m.u1" size="8388608" crc="5f15ddb3" sha1="c38dcef8e06802a84e42a7fc9fa505475fc3ac65" region="ics" offset="400000" />
    <rom name="wave_u29.u29" size="2097152" crc="51acb395" sha1="65a2ecd3de2ff782f2aa0f0f905f9b18323aea64" region="ics" offset="c00000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="33000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
  <machine name="thegladpcba" sourcefile="pgm.cpp" cloneof="theglad" romof="theglad">
    <description>Tougenkyou - Road of the Sword (M68k label V100) (ARM label V100, ROM 02/25/03 SHEN JIAN) (Japan, JAMMA PCB)</description>
    <year>2003</year>
    <manufacturer>IGS (Alta/AMI license)</manufacturer>
    <rom name="bios.42" size="131072" crc="517cf7a2" sha1="f5720b29e3be6ec22be03a768618cb2a1aa4ade7" region="maincpu" offset="0" />
    <rom name="v100_u43.u43" size="524288" crc="bcf3b172" sha1="df7e2808c0341be0a59eefa852c857a3a919223e" region="maincpu" offset="100000" />
    <rom name="thegladpcb_igs027a_execute_only_area" size="392" status="nodump" region="prot" offset="0" />
    <rom name="thegladpcb_igs027a_v100_japan.bin" size="15992" crc="d7f06e2d" sha1="9c3aca7a487f5329d84731e2c63d5ed591bf9d24" region="prot" offset="188" />
    <rom name="v100_u62.u62" size="2097152" crc="0f3f511e" sha1="28dd8d27495cec86e968a3ea549c5b30513dbb6e" region="user1" offset="0" />
    <rom name="pgm_t01s.u72" merge="pgm_t01s.rom" size="2097152" crc="1a7123a0" sha1="cc567f577bfbf45427b54d6695b11b74f2578af3" region="tiles" offset="0" />
    <rom name="igs_t04601w64m.u71" merge="igs_t04601w64m.u33" size="8388608" crc="e5dab371" sha1="2e3c93958eb0326b6b84b95c2168626f26bbac76" region="tiles" offset="180000" />
    <rom name="igs_a04601w64m.u30" merge="igs_a04601w64m.u2" size="8388608" crc="d9b2e004" sha1="8e1882b800fe9f12d7d49303e7417ba5b6f8ef85" region="sprcol" offset="0" />
    <rom name="igs_a04602w64m.u31" merge="igs_a04602w64m.u4" size="8388608" crc="14f22308" sha1="7fad54704e8c97eab723f53dfb50fb3e7bb606d2" region="sprcol" offset="800000" />
    <rom name="igs_a04603w64m.u32" merge="igs_a04603w64m.u6" size="8388608" crc="8f621e17" sha1="b0f87f378e0115d0c95017ca0f1b0d508827a7c6" region="sprcol" offset="1000000" />
    <rom name="igs_b04601w64m.u40" merge="igs_b04601w64m.u11" size="8388608" crc="ee72bccf" sha1="73c25fe659f6c903447066e4ef83d2f580449d76" region="sprmask" offset="0" />
    <rom name="igs_b04602w32m.u41" merge="igs_b04602w32m.u12" size="4194304" crc="7dba9c38" sha1="a03d509274e8f6a500a7ebe2da5aab8bed4e7f2f" region="sprmask" offset="800000" />
    <rom name="pgm_m01s.u4" merge="pgm_m01s.rom" size="2097152" crc="45ae7159" sha1="d3ed3ff3464557fd0df6b069b2e431528b0ebfa8" region="ics" offset="0" />
    <rom name="igs_w04601b64m.u8" merge="igs_w04601b64m.u1" size="8388608" crc="5f15ddb3" sha1="c38dcef8e06802a84e42a7fc9fa505475fc3ac65" region="ics" offset="400000" />
    <rom name="wave_u29.u29" size="2097152" crc="51acb395" sha1="65a2ecd3de2ff782f2aa0f0f905f9b18323aea64" region="ics" offset="c00000" />
    <device_ref name="m68000" />
    <device_ref name="timer" />
    <device_ref name="z80" />
    <device_ref name="nvram" />
    <device_ref name="v3021" />
    <device_ref name="screen" />
    <device_ref name="gfxdecode" />
    <device_ref name="palette" />
    <device_ref name="speaker" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="generic_latch_8" />
    <device_ref name="ics2115" />
    <device_ref name="arm7_le" />
    <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="20000000" />
    <chip type="cpu" tag="soundcpu" name="Zilog Z80" clock="8467200" />
    <chip type="cpu" tag="prot" name="ARM7 (little)" clock="33000000" />
    <chip type="audio" tag="mono" name="Speaker" />
    <chip type="audio" tag="ics" name="ICS2115 WaveFront Synthesizer" clock="33868800" />
    <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="59.185606" pixclock="10000000" htotal="640" hbend="0" hbstart="448" vtotal="264" vbend="0" vbstart="224" />
    <sound channels="1" />
    <input players="4" coins="4">
      <control type="joy" player="1" buttons="4" ways="8" />
      <control type="joy" player="2" buttons="4" ways="8" />
      <control type="joy" player="3" buttons="4" ways="8" />
      <control type="joy" player="4" buttons="4" ways="8" />
    </input>
    <dipswitch name="Service Mode" tag="DSW" mask="1">
      <dipvalue name="Off" value="1" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Music" tag="DSW" mask="2">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="2" default="yes" />
    </dipswitch>
    <dipswitch name="Voice" tag="DSW" mask="4">
      <dipvalue name="Off" value="0" />
      <dipvalue name="On" value="4" default="yes" />
    </dipswitch>
    <dipswitch name="Free" tag="DSW" mask="8">
      <dipvalue name="Off" value="8" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Stop" tag="DSW" mask="16">
      <dipvalue name="Off" value="16" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="32">
      <dipvalue name="Off" value="32" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="64">
      <dipvalue name="Off" value="64" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <dipswitch name="Unused" tag="DSW" mask="128">
      <dipvalue name="Off" value="128" default="yes" />
      <dipvalue name="On" value="0" />
    </dipswitch>
    <port tag=":DSW" />
    <port tag=":P1P2" />
    <port tag=":P3P4" />
    <port tag=":Region" />
    <port tag=":Service" />
    <driver status="imperfect" emulation="good" savestate="supported" />
    <feature type="sound" status="imperfect" />
  </machine>
</datafile>