<machine name="themj" sourcefile="seta/rmhaihai.cpp" isbios="no" isdevice="no" ismechanical="no" runnable="yes">
  <description>The Mah-jong (Japan, set 1)</description>
  <year>1987</year>
  <manufacturer>Visco</manufacturer>
  <rom name="t7.bin" size="16384" crc="a58563c3" sha1="53faeb66606214eb97ef8ff9affe68705e18a0b3" region="maincpu" offset="0" status="good" optional="no" />
  <rom name="t8.bin" size="16384" crc="bdf29475" sha1="6296561da9c3a299d69bba8a98362c40b677ea9a" region="maincpu" offset="4000" status="good" optional="no" />
  <rom name="t9.bin" size="8192" crc="d5537d03" sha1="ba27e83fcc9b6962373e2f723fc681481ec76864" region="maincpu" offset="e000" status="good" optional="no" />
  <rom name="no1.bin" size="65536" crc="a67dd977" sha1="835648c5df51053c883d90d7309e53232b945ceb" region="maincpu" offset="10000" status="good" optional="no" />
  <rom name="t3.bin" size="32768" crc="f0735c62" sha1="5ff0da7fc72512797ec59ee57467fa81abcfdb8b" region="gfx1" offset="0" status="good" optional="no" />
  <rom name="t4.bin" size="32768" crc="952227fa" sha1="7c2b5fe18bbaa482d93ab99a8f886838b596df8d" region="gfx1" offset="8000" status="good" optional="no" />
  <rom name="t5.bin" size="32768" crc="3deea9b4" sha1="e445b545a8d293f6a5724e6c484cb1062c631bcc" region="gfx1" offset="10000" status="good" optional="no" />
  <rom name="t6.bin" size="32768" crc="47717958" sha1="b25a9bd72bf5aa024ce2631440bb2ad762544e54" region="gfx1" offset="18000" status="good" optional="no" />
  <rom name="t1.bin" size="32768" crc="9b9a458e" sha1="91146bd3ed7ed016c90ae5c3e3510d0d8d216ba5" region="gfx1" offset="20000" status="good" optional="no" />
  <rom name="t2.bin" size="32768" crc="4702375f" sha1="9e824007e3e26ad6fb2ccbbcf35aa7cfdf5c469e" region="gfx1" offset="28000" status="good" optional="no" />
  <rom name="5.bin" size="512" crc="062fb055" sha1="20a6d236e3ab1df8c471cccca31ec05442595c82" region="proms" offset="0" status="good" optional="no" />
  <rom name="4.bin" size="512" crc="9f81a6d7" sha1="2735815c0c922d0c81559d792fcaa39bd9615536" region="proms" offset="200" status="good" optional="no" />
  <rom name="6.bin" size="512" crc="61373ec7" sha1="73861914aae29e3996f9991f324c358a29c46969" region="proms" offset="400" status="good" optional="no" />
  <rom name="t0.bin" size="32768" crc="3e412c1a" sha1="bc5e324ea26b8dd1e37c4e8b0d7ba712c1222bc7" region="adpcm" offset="0" status="good" optional="no" />
  <device_ref tag=":maincpu" name="z80" />
  <device_ref tag=":screen" name="screen" />
  <device_ref tag=":gfxdecode" name="gfxdecode" />
  <device_ref tag=":palette" name="palette" />
  <device_ref tag=":mono" name="speaker" />
  <device_ref tag=":aysnd" name="ay8910" />
  <device_ref tag=":msm" name="msm5205" />
  <chip type="cpu" tag="maincpu" name="Zilog Z80" clock="5000000" />
  <chip type="audio" tag="mono" name="Speaker" />
  <chip type="audio" tag="aysnd" name="AY-3-8910A PSG" clock="1250000" />
  <chip type="audio" tag="msm" name="OKI MSM5205 ADPCM" clock="500000" />
  <display tag="screen" type="raster" rotate="0" width="448" height="224" refresh="60.000000" flipx="no" />
  <sound channels="1" />
  <input players="2" coins="2" service="no" tilt="no">
    <control type="mahjong" player="1" buttons="26" reverse="no" />
    <control type="mahjong" player="2" buttons="26" reverse="no" />
  </input>
  <dipswitch name="Free Play" tag="DSW1" mask="1">
    <diplocation name="D. SW1" number="8" inverted="no" />
    <dipvalue name="Off" value="1" default="yes" />
    <dipvalue name="On" value="0" default="no" />
  </dipswitch>
  <dipswitch name="Service Mode" tag="DSW1" mask="2">
    <diplocation name="D. SW1" number="7" inverted="no" />
    <dipvalue name="Off" value="2" default="yes" />
    <dipvalue name="On" value="0" default="no" />
  </dipswitch>
  <dipswitch name="Coinage" tag="DSW1" mask="12">
    <diplocation name="D. SW1" number="6" inverted="no" />
    <diplocation name="D. SW1" number="5" inverted="no" />
    <dipvalue name="A 2/1 B 1/2" value="0" default="no" />
    <dipvalue name="1 Coin/1 Credit" value="12" default="yes" />
    <dipvalue name="A 1/2 B 2/1" value="4" default="no" />
    <dipvalue name="A 1/3 B 3/1" value="8" default="no" />
  </dipswitch>
  <dipswitch name="Demo Sounds" tag="DSW1" mask="16">
    <diplocation name="D. SW1" number="4" inverted="no" />
    <dipvalue name="Off" value="16" default="no" />
    <dipvalue name="On" value="0" default="yes" />
  </dipswitch>
  <dipswitch name="Flip Screen" tag="DSW1" mask="32">
    <diplocation name="D. SW1" number="3" inverted="no" />
    <dipvalue name="Off" value="32" default="yes" />
    <dipvalue name="On" value="0" default="no" />
  </dipswitch>
  <dipswitch name="Cabinet" tag="DSW1" mask="64">
    <diplocation name="D. SW1" number="2" inverted="no" />
    <dipvalue name="Cocktail" value="64" default="no" />
    <dipvalue name="Upright" value="0" default="yes" />
  </dipswitch>
  <dipswitch name="Medal" tag="DSW1" mask="128">
    <diplocation name="D. SW1" number="1" inverted="no" />
    <dipvalue name="Off" value="128" default="yes" />
    <dipvalue name="On" value="0" default="no" />
  </dipswitch>
  <dipswitch name="Unknown" tag="DSW2" mask="1">
    <diplocation name="D. SW2" number="8" inverted="no" />
    <dipvalue name="Off" value="1" default="yes" />
    <dipvalue name="On" value="0" default="no" />
  </dipswitch>
  <dipswitch name="Computer Win Probability" tag="DSW2" mask="254">
    <diplocation name="D. SW2" number="7" inverted="no" />
    <diplocation name="D. SW2" number="6" inverted="no" />
    <diplocation name="D. SW2" number="5" inverted="no" />
    <diplocation name="D. SW2" number="4" inverted="no" />
    <diplocation name="D. SW2" number="3" inverted="no" />
    <diplocation name="D. SW2" number="2" inverted="no" />
    <diplocation name="D. SW2" number="1" inverted="no" />
    <dipvalue name="20% (Weak)" value="254" default="yes" />
    <dipvalue name="30%" value="126" default="no" />
    <dipvalue name="40%" value="190" default="no" />
    <dipvalue name="50%" value="222" default="no" />
    <dipvalue name="60%" value="238" default="no" />
    <dipvalue name="70&amp;%" value="246" default="no" />
    <dipvalue name="80%" value="250" default="no" />
    <dipvalue name="90% (Strong)" value="252" default="no" />
  </dipswitch>
  <port tag=":DSW1"></port>
  <port tag=":DSW2"></port>
  <port tag=":KEY0"></port>
  <port tag=":KEY1"></port>
  <port tag=":KEY2"></port>
  <port tag=":KEY3"></port>
  <driver status="good" emulation="good" savestate="supported" requiresartwork="no" unofficial="no" nosoundhardware="no" incomplete="no" />
</machine>