<machine name="junai" sourcefile="nichibutsu/hrdvd.cpp" romof="nichidvd" isbios="no" isdevice="no" ismechanical="no" runnable="yes">
  <description>Junai - Manatsu no First Kiss (Japan)</description>
  <year>1998</year>
  <manufacturer>Nichibutsu/eic</manufacturer>
  <biosset name="vb102" description="va1b102" default="no" />
  <biosset name="vb101" description="va1b101" default="no" />
  <biosset name="va101" description="va1a101" default="no" />
  <rom name="va1b102.u2" merge="va1b102.u2" bios="vb102" size="131072" crc="67374715" sha1="8767cbd81614c2686a1adb70159f909e8ffd634d" region="subcpu" offset="0" status="good" optional="no" />
  <rom name="va1b101.u2" merge="va1b101.u2" bios="vb101" size="131072" crc="b92a83c8" sha1="bd6d9adaa74cf7512478838d1bd5a79dbd0c4aa1" region="subcpu" offset="0" status="good" optional="no" />
  <rom name="va1a101.u2" merge="va1a101.u2" bios="va101" size="131072" crc="36135792" sha1="1b9c50bd02df8227b228b35cc485efd5a13ec639" region="subcpu" offset="0" status="good" optional="no" />
  <rom name="2.ic3" size="131072" crc="5923bf2e" sha1="8fc7b95a44eb792ce03c1bffb9ad56f82d34b470" region="maincpu" offset="0" status="good" optional="no" />
  <rom name="1.ic2" size="131072" crc="4ac649ee" sha1="f5b5bccecb6eba5addcf6a57e54deff7f29f6381" region="maincpu" offset="1" status="good" optional="no" />
  <rom name="11.ic51" size="131072" crc="a0472ea5" sha1="0fd04941ff595cffe64357f3a1a9dc1170db8703" region="nichisnd:audiorom" offset="0" status="good" optional="no" />
  <rom name="3.ic40" size="524288" crc="f17fa4c4" sha1="fd8b69b18f9ac00f468d751bf1ea0715498ea742" region="blit_gfx" offset="1" status="good" optional="no" />
  <rom name="4.ic41" size="524288" crc="4182dc30" sha1="89601c62b74aff3d65b075d4b5cd1eb2ccf4e386" region="blit_gfx" offset="0" status="good" optional="no" />
  <disk name="nb8003" sha1="098925d09cfdd2c970edf40054b36423f6e71a42" region="ata:0:dvdrom" index="0" writable="no" status="good" optional="no" />
  <device_ref tag=":maincpu" name="tmp68301" />
  <device_ref tag=":subcpu" name="h83002" />
  <device_ref tag=":subcpu:intc" name="h8h_intc" />
  <device_ref tag=":subcpu:adc" name="h8_adc_3337" />
  <device_ref tag=":subcpu:dma" name="h8h_dma" />
  <device_ref tag=":subcpu:dma:0" name="h8h_dma_channel" />
  <device_ref tag=":subcpu:dma:1" name="h8h_dma_channel" />
  <device_ref tag=":subcpu:port4" name="h8_digital_port" />
  <device_ref tag=":subcpu:port6" name="h8_digital_port" />
  <device_ref tag=":subcpu:port7" name="h8_digital_port" />
  <device_ref tag=":subcpu:port8" name="h8_digital_port" />
  <device_ref tag=":subcpu:port9" name="h8_digital_port" />
  <device_ref tag=":subcpu:porta" name="h8_digital_port" />
  <device_ref tag=":subcpu:portb" name="h8_digital_port" />
  <device_ref tag=":subcpu:timer16" name="h8_timer16" />
  <device_ref tag=":subcpu:timer16:0" name="h8h_timer16_channel" />
  <device_ref tag=":subcpu:timer16:1" name="h8h_timer16_channel" />
  <device_ref tag=":subcpu:timer16:2" name="h8h_timer16_channel" />
  <device_ref tag=":subcpu:timer16:3" name="h8h_timer16_channel" />
  <device_ref tag=":subcpu:timer16:4" name="h8h_timer16_channel" />
  <device_ref tag=":subcpu:sci0" name="h8_sci" />
  <device_ref tag=":subcpu:sci1" name="h8_sci" />
  <device_ref tag=":subcpu:watchdog" name="h8_watchdog" />
  <device_ref tag=":ata" name="hrdvd_atactrl" />
  <device_ref tag=":ata:0" name="ata_slot" />
  <device_ref tag=":ata:0:dvdrom" name="dvdrom" />
  <device_ref tag=":ata:0:dvdrom:image" name="dvdrom_image" />
  <device_ref tag=":ata:0:dvdrom:cdda" name="cdda" />
  <device_ref tag=":ata:1" name="ata_slot" />
  <device_ref tag=":pll" name="tc9223" />
  <device_ref tag=":v9958" name="v9958" />
  <device_ref tag=":screen" name="screen" />
  <device_ref tag=":mpeg" name="zr36110" />
  <device_ref tag=":mpeg_audio" name="nn71003f" />
  <device_ref tag=":speaker" name="speaker" />
  <device_ref tag=":nichisnd" name="nichisnd" />
  <device_ref tag=":nichisnd:audiocpu" name="tmpz84c011" />
  <device_ref tag=":nichisnd:audiocpu:tmpz84c011_ctc" name="z80ctc" />
  <device_ref tag=":nichisnd:audiocpu:tmpz84c011_ctc:ch0" name="z80ctc_channel" />
  <device_ref tag=":nichisnd:audiocpu:tmpz84c011_ctc:ch1" name="z80ctc_channel" />
  <device_ref tag=":nichisnd:audiocpu:tmpz84c011_ctc:ch2" name="z80ctc_channel" />
  <device_ref tag=":nichisnd:audiocpu:tmpz84c011_ctc:ch3" name="z80ctc_channel" />
  <device_ref tag=":nichisnd:soundlatch" name="generic_latch_8" />
  <device_ref tag=":nichisnd:ymsnd" name="ym3812" />
  <device_ref tag=":nichisnd:dac1" name="dac_8bit_r2r" />
  <device_ref tag=":nichisnd:dac2" name="dac_8bit_r2r" />
  <chip type="cpu" tag="maincpu" name="Toshiba TMP68301" clock="12288000" />
  <chip type="cpu" tag="subcpu" name="Hitachi H8/3002" clock="13500000" />
  <chip type="cpu" tag="nichisnd:audiocpu" name="Toshiba TMPZ84C011" clock="8000000" />
  <chip type="audio" tag="ata:0:dvdrom:cdda" name="CD/DA" clock="44100" />
  <chip type="audio" tag="mpeg_audio" name="NN71003F mpeg audio chip" />
  <chip type="audio" tag="speaker" name="Speaker" />
  <chip type="audio" tag="nichisnd" name="Nichibutsu Sound Device" />
  <chip type="audio" tag="nichisnd:ymsnd" name="YM3812 OPL2" clock="4000000" />
  <chip type="audio" tag="nichisnd:dac1" name="8-Bit R-2R DAC" />
  <chip type="audio" tag="nichisnd:dac2" name="8-Bit R-2R DAC" />
  <display tag="screen" type="raster" rotate="0" width="543" height="465" refresh="59.922749" pixclock="21477272" htotal="684" hbend="0" hbstart="543" vtotal="524" vbend="10" vbstart="475" flipx="no" />
  <sound channels="1" />
  <input players="2" coins="2" service="yes" tilt="no">
    <control type="mahjong" player="1" buttons="26" reverse="no" />
    <control type="gambling" player="1" buttons="1" reverse="no" />
    <control type="mahjong" player="2" buttons="26" reverse="no" />
  </input>
  <dipswitch name="Difficulty" tag="DSW" mask="7">
    <diplocation name="SWA" number="1" inverted="no" />
    <diplocation name="SWA" number="2" inverted="no" />
    <diplocation name="SWA" number="3" inverted="no" />
    <dipvalue name="1" value="7" default="no" />
    <dipvalue name="2" value="6" default="no" />
    <dipvalue name="3" value="5" default="no" />
    <dipvalue name="4" value="4" default="yes" />
    <dipvalue name="5" value="3" default="no" />
    <dipvalue name="6" value="2" default="no" />
    <dipvalue name="7" value="1" default="no" />
    <dipvalue name="8" value="0" default="no" />
  </dipswitch>
  <dipswitch name="Coinage" tag="DSW" mask="8">
    <diplocation name="SWA" number="4" inverted="no" />
    <dipvalue name="1 Coin/1 Credit" value="8" default="yes" />
    <dipvalue name="1 Coin/2 Credits" value="0" default="no" />
  </dipswitch>
  <dipswitch name="Show girls in attract mode" tag="DSW" mask="16">
    <diplocation name="SWA" number="5" inverted="no" />
    <dipvalue name="No" value="16" default="no" />
    <dipvalue name="Yes" value="0" default="yes" />
  </dipswitch>
  <dipswitch name="Demo Sounds" tag="DSW" mask="32">
    <diplocation name="SWA" number="6" inverted="no" />
    <dipvalue name="Off" value="32" default="no" />
    <dipvalue name="On" value="0" default="yes" />
  </dipswitch>
  <dipswitch name="Color Test" tag="DSW" mask="64">
    <diplocation name="SWA" number="7" inverted="no" />
    <dipvalue name="No" value="64" default="yes" />
    <dipvalue name="Yes" value="0" default="no" />
  </dipswitch>
  <dipswitch name="Unused" tag="DSW" mask="128">
    <diplocation name="SWA" number="8" inverted="no" />
    <dipvalue name="Off" value="128" default="yes" />
    <dipvalue name="On" value="0" default="no" />
  </dipswitch>
  <dipswitch name="Use Koi Koi local ruleset" tag="DSW" mask="256">
    <diplocation name="SWB" number="1" inverted="no" />
    <dipvalue name="No" value="0" default="no" />
    <dipvalue name="Yes" value="256" default="yes" />
  </dipswitch>
  <dipswitch name="Koi Koi input layout" tag="DSW" mask="512">
    <diplocation name="SWB" number="2" inverted="no" />
    <dipvalue name="A Type" value="0" default="yes" />
    <dipvalue name="B Type" value="512" default="no" />
  </dipswitch>
  <dipswitch name="Unused" tag="DSW" mask="1024">
    <diplocation name="SWB" number="3" inverted="no" />
    <dipvalue name="Off" value="1024" default="yes" />
    <dipvalue name="On" value="0" default="no" />
  </dipswitch>
  <dipswitch name="Background type" tag="DSW" mask="6144">
    <diplocation name="SWB" number="4" inverted="no" />
    <diplocation name="SWB" number="5" inverted="no" />
    <dipvalue name="Color in-game and attract" value="2048" default="no" />
    <dipvalue name="Girls in-game, color in attract" value="4096" default="no" />
    <dipvalue name="Girls in-game and attract" value="6144" default="yes" />
  </dipswitch>
  <dipswitch name="Analyzer" tag="DSW" mask="8192">
    <diplocation name="SWB" number="6" inverted="no" />
    <dipvalue name="Yes" value="0" default="no" />
    <dipvalue name="No" value="8192" default="yes" />
  </dipswitch>
  <dipswitch name="Unused" tag="DSW" mask="16384">
    <diplocation name="SWB" number="7" inverted="no" />
    <dipvalue name="Off" value="16384" default="yes" />
    <dipvalue name="On" value="0" default="no" />
  </dipswitch>
  <dipswitch name="Unused" tag="DSW" mask="32768">
    <diplocation name="SWB" number="8" inverted="no" />
    <dipvalue name="Off" value="32768" default="yes" />
    <dipvalue name="On" value="0" default="no" />
  </dipswitch>
  <port tag=":DSW"></port>
  <port tag=":KEY.0"></port>
  <port tag=":KEY.1"></port>
  <port tag=":KEY.2"></port>
  <port tag=":KEY.3"></port>
  <port tag=":KEY.4"></port>
  <port tag=":SYSTEM"></port>
  <driver status="preliminary" emulation="preliminary" savestate="unsupported" requiresartwork="no" unofficial="no" nosoundhardware="no" incomplete="no" />
  <device type="cdrom" tag="ata:0:dvdrom:image" interface="cdrom">
    <instance name="cdrom" briefname="cdrm" />
    <extension name="chd" />
    <extension name="cue" />
    <extension name="toc" />
    <extension name="nrg" />
    <extension name="gdi" />
    <extension name="iso" />
    <extension name="cdr" />
  </device>
</machine>