<machine name="ryukendnb" sourcefile="tecmo/gaiden.cpp" cloneof="shadoww" romof="shadoww" isbios="no" isdevice="no" ismechanical="no" runnable="yes">
  <description>Ninja Ryukenden (Japan, set 3)</description>
  <year>1989</year>
  <manufacturer>Tecmo</manufacturer>
  <rom name="1.3s" size="131072" crc="0ed5464c" sha1="2eab6650ad1c38cd560ec3d084f47156756c97a4" region="maincpu" offset="0" status="good" optional="no" />
  <rom name="2.4s" size="131072" crc="a93a8256" sha1="6bf6c189f82cb9341d3427a822de83cbaed27bc0" region="maincpu" offset="1" status="good" optional="no" />
  <rom name="3.4b" size="65536" crc="6b686b69" sha1="f0fa553acb3945f8dbbf466073c8bae35a0375ef" region="audiocpu" offset="0" status="good" optional="no" />
  <rom name="hn27512p.7a" size="65536" crc="765e7baa" sha1="4d0a50f091b284739b6d9a8ceb4f81999da445fc" region="txtiles" offset="0" status="good" optional="no" />
  <rom name="14.3a" merge="14.3a" size="131072" crc="1ecfddaa" sha1="e71d60ae1a98fe8512498f91cce01c16be9f0871" region="bgtiles" offset="0" status="good" optional="no" />
  <rom name="15.3b" merge="15.3b" size="131072" crc="1291a696" sha1="023b05260214adc39bdba81d5e2aa246b6d74a6a" region="bgtiles" offset="20000" status="good" optional="no" />
  <rom name="16.1a" merge="16.1a" size="131072" crc="140b47ca" sha1="6ffd9b7116658a46a124f9085602d88aa143d829" region="bgtiles" offset="40000" status="good" optional="no" />
  <rom name="17.1b" merge="17.1b" size="131072" crc="7638cccb" sha1="780d47d3aa248346e0e7abc6e6284542e7392919" region="bgtiles" offset="60000" status="good" optional="no" />
  <rom name="18.6a" merge="18.6a" size="131072" crc="3fadafd6" sha1="0cb5387a354c631d5c6aca8f77ecbbc0d175a574" region="fgtiles" offset="0" status="good" optional="no" />
  <rom name="19.6b" merge="19.6b" size="131072" crc="ddae9d5b" sha1="108b202ae7ae124a32400a0a404c7d2b614c60bd" region="fgtiles" offset="20000" status="good" optional="no" />
  <rom name="20.4b" merge="20.4b" size="131072" crc="08cf7a93" sha1="fd3278c3fb3ef30ed03c8a95656d86ba82a163d8" region="fgtiles" offset="40000" status="good" optional="no" />
  <rom name="21.4b" merge="21.4b" size="131072" crc="1ac892f5" sha1="28364266ca9d1955fb7953f5c2d6f35e114beec6" region="fgtiles" offset="60000" status="good" optional="no" />
  <rom name="6.3m" merge="6.3m" size="131072" crc="e7ccdf9f" sha1="80ffcefc95660471124898a9c2bee55df36bda13" region="sprites" offset="0" status="good" optional="no" />
  <rom name="7.1m" merge="7.1m" size="131072" crc="016bec95" sha1="6a6757c52ca9a2398ea43d1af4a8d5adde6f4cd2" region="sprites" offset="1" status="good" optional="no" />
  <rom name="8.3n" merge="8.3n" size="131072" crc="7ef7f880" sha1="26ba9a76adce24beea3cffa1cb95aeafe6f82f96" region="sprites" offset="40000" status="good" optional="no" />
  <rom name="9.1n" merge="9.1n" size="131072" crc="6e9b7fd3" sha1="c86ff61844fc94c02625bb812b9062d0649c8fdf" region="sprites" offset="40001" status="good" optional="no" />
  <rom name="10.3r" merge="10.3r" size="131072" crc="a6451dec" sha1="553e7a1453b59055fa0b10ca04125543d9f8987c" region="sprites" offset="80000" status="good" optional="no" />
  <rom name="11.1r" merge="11.1r" size="131072" crc="7fbfdf5e" sha1="ab67b72dcadb5f2236d29de751de5bf890a9e423" region="sprites" offset="80001" status="good" optional="no" />
  <rom name="12.3s" size="131072" crc="277204f0" sha1="918e05f10959f2b50c16b6e0dc62e3076c99250e" region="sprites" offset="c0000" status="good" optional="no" />
  <rom name="13.1s" size="131072" crc="4e56a508" sha1="f89a6037e602b26d6ce11859e0b43a602b50d985" region="sprites" offset="c0001" status="good" optional="no" />
  <rom name="4.4a" merge="4.4a" size="131072" crc="b0e0faf9" sha1="2275d2ef5eee356ccf80b9e9644d16fc30a4d107" region="oki" offset="0" status="good" optional="no" />
  <device_ref tag=":maincpu" name="m68000" />
  <device_ref tag=":audiocpu" name="z80" />
  <device_ref tag=":watchdog" name="watchdog" />
  <device_ref tag=":spriteram" name="buffered_spriteram16" />
  <device_ref tag=":screen" name="screen" />
  <device_ref tag=":gfxdecode" name="gfxdecode" />
  <device_ref tag=":palette" name="palette" />
  <device_ref tag=":spritegen" name="tecmo_spr" />
  <device_ref tag=":mixer" name="tecmo_mix" />
  <device_ref tag=":mono" name="speaker" />
  <device_ref tag=":soundlatch" name="generic_latch_8" />
  <device_ref tag=":ym1" name="ym2203" />
  <device_ref tag=":ym2" name="ym2203" />
  <device_ref tag=":oki" name="okim6295" />
  <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="9216000" />
  <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="4000000" />
  <chip type="audio" tag="mono" name="Speaker" />
  <chip type="audio" tag="ym1" name="YM2203 OPN" clock="4000000" />
  <chip type="audio" tag="ym2" name="YM2203 OPN" clock="4000000" />
  <chip type="audio" tag="oki" name="OKI MSM6295 ADPCM" clock="1000000" />
  <display tag="screen" type="raster" rotate="0" width="256" height="224" refresh="59.170000" flipx="no" />
  <sound channels="1" />
  <input players="2" coins="2" service="no" tilt="no">
    <control type="joy" player="1" buttons="3" ways="8" reverse="no" />
    <control type="joy" player="2" buttons="3" ways="8" reverse="no" />
  </input>
  <dipswitch name="Demo Sounds" tag="DSW" mask="1">
    <diplocation name="SWA" number="8" inverted="no" />
    <dipvalue name="Off" value="0" default="no" />
    <dipvalue name="On" value="1" default="yes" />
  </dipswitch>
  <dipswitch name="Flip Screen" tag="DSW" mask="2">
    <diplocation name="SWA" number="7" inverted="no" />
    <dipvalue name="Off" value="2" default="yes" />
    <dipvalue name="On" value="0" default="no" />
  </dipswitch>
  <dipswitch name="Coin B" tag="DSW" mask="28">
    <diplocation name="SWA" number="6" inverted="no" />
    <diplocation name="SWA" number="5" inverted="no" />
    <diplocation name="SWA" number="4" inverted="no" />
    <dipvalue name="5 Coins/1 Credit" value="0" default="no" />
    <dipvalue name="4 Coins/1 Credit" value="16" default="no" />
    <dipvalue name="3 Coins/1 Credit" value="8" default="no" />
    <dipvalue name="2 Coins/1 Credit" value="4" default="no" />
    <dipvalue name="1 Coin/1 Credit" value="28" default="yes" />
    <dipvalue name="1 Coin/2 Credits" value="12" default="no" />
    <dipvalue name="1 Coin/3 Credits" value="20" default="no" />
    <dipvalue name="1 Coin/4 Credits" value="24" default="no" />
  </dipswitch>
  <dipswitch name="Coin A" tag="DSW" mask="224">
    <diplocation name="SWA" number="3" inverted="no" />
    <diplocation name="SWA" number="2" inverted="no" />
    <diplocation name="SWA" number="1" inverted="no" />
    <dipvalue name="5 Coins/1 Credit" value="0" default="no" />
    <dipvalue name="4 Coins/1 Credit" value="128" default="no" />
    <dipvalue name="3 Coins/1 Credit" value="64" default="no" />
    <dipvalue name="2 Coins/1 Credit" value="32" default="no" />
    <dipvalue name="1 Coin/1 Credit" value="224" default="yes" />
    <dipvalue name="1 Coin/2 Credits" value="96" default="no" />
    <dipvalue name="1 Coin/3 Credits" value="160" default="no" />
    <dipvalue name="1 Coin/4 Credits" value="192" default="no" />
  </dipswitch>
  <dipswitch name="Unused" tag="DSW" mask="256">
    <diplocation name="SWB" number="8" inverted="no" />
    <dipvalue name="Off" value="256" default="yes" />
    <dipvalue name="On" value="0" default="no" />
  </dipswitch>
  <dipswitch name="Unused" tag="DSW" mask="512">
    <diplocation name="SWB" number="7" inverted="no" />
    <dipvalue name="Off" value="512" default="yes" />
    <dipvalue name="On" value="0" default="no" />
  </dipswitch>
  <dipswitch name="Difficulty" tag="DSW" mask="3072">
    <diplocation name="SWB" number="6" inverted="no" />
    <diplocation name="SWB" number="5" inverted="no" />
    <dipvalue name="Normal" value="3072" default="yes" />
    <dipvalue name="TBL 1" value="1024" default="no" />
    <dipvalue name="TBL 2" value="2048" default="no" />
    <dipvalue name="TBL 3" value="0" default="no" />
  </dipswitch>
  <dipswitch name="Energy" tag="DSW" mask="12288">
    <diplocation name="SWB" number="4" inverted="no" />
    <diplocation name="SWB" number="3" inverted="no" />
    <dipvalue name="2" value="0" default="no" />
    <dipvalue name="3" value="12288" default="yes" />
    <dipvalue name="4" value="4096" default="no" />
    <dipvalue name="5" value="8192" default="no" />
  </dipswitch>
  <dipswitch name="Lives" tag="DSW" mask="49152">
    <diplocation name="SWB" number="2" inverted="no" />
    <diplocation name="SWB" number="1" inverted="no" />
    <dipvalue name="1" value="0" default="no" />
    <dipvalue name="2" value="49152" default="yes" />
    <dipvalue name="3" value="16384" default="no" />
    <dipvalue name="4" value="32768" default="no" />
  </dipswitch>
  <port tag=":DSW"></port>
  <port tag=":P1_P2"></port>
  <port tag=":SYSTEM"></port>
  <driver status="good" emulation="good" savestate="supported" requiresartwork="no" unofficial="no" nosoundhardware="no" incomplete="no" />
</machine>