{
  "machine": {
    "name": "junai",
    "sourcefile": "nichibutsu/hrdvd.cpp",
    "romof": "nichidvd",
    "isbios": "no",
    "isdevice": "no",
    "ismechanical": "no",
    "runnable": "yes",
    "description": "Junai - Manatsu no First Kiss (Japan)",
    "year": "1998",
    "manufacturer": "Nichibutsu/eic",
    "biosset": [
      {
        "name": "vb102",
        "description": "va1b102",
        "default": "no"
      },
      {
        "name": "vb101",
        "description": "va1b101",
        "default": "no"
      },
      {
        "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"
      },
      {
        "name": "va1b101.u2",
        "merge": "va1b101.u2",
        "bios": "vb101",
        "size": "131072",
        "crc": "b92a83c8",
        "sha1": "bd6d9adaa74cf7512478838d1bd5a79dbd0c4aa1",
        "region": "subcpu",
        "offset": "0",
        "status": "good",
        "optional": "no"
      },
      {
        "name": "va1a101.u2",
        "merge": "va1a101.u2",
        "bios": "va101",
        "size": "131072",
        "crc": "36135792",
        "sha1": "1b9c50bd02df8227b228b35cc485efd5a13ec639",
        "region": "subcpu",
        "offset": "0",
        "status": "good",
        "optional": "no"
      },
      {
        "name": "2.ic3",
        "size": "131072",
        "crc": "5923bf2e",
        "sha1": "8fc7b95a44eb792ce03c1bffb9ad56f82d34b470",
        "region": "maincpu",
        "offset": "0",
        "status": "good",
        "optional": "no"
      },
      {
        "name": "1.ic2",
        "size": "131072",
        "crc": "4ac649ee",
        "sha1": "f5b5bccecb6eba5addcf6a57e54deff7f29f6381",
        "region": "maincpu",
        "offset": "1",
        "status": "good",
        "optional": "no"
      },
      {
        "name": "11.ic51",
        "size": "131072",
        "crc": "a0472ea5",
        "sha1": "0fd04941ff595cffe64357f3a1a9dc1170db8703",
        "region": "nichisnd:audiorom",
        "offset": "0",
        "status": "good",
        "optional": "no"
      },
      {
        "name": "3.ic40",
        "size": "524288",
        "crc": "f17fa4c4",
        "sha1": "fd8b69b18f9ac00f468d751bf1ea0715498ea742",
        "region": "blit_gfx",
        "offset": "1",
        "status": "good",
        "optional": "no"
      },
      {
        "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"
      },
      {
        "tag": ":subcpu",
        "name": "h83002"
      },
      {
        "tag": ":subcpu:intc",
        "name": "h8h_intc"
      },
      {
        "tag": ":subcpu:adc",
        "name": "h8_adc_3337"
      },
      {
        "tag": ":subcpu:dma",
        "name": "h8h_dma"
      },
      {
        "tag": ":subcpu:dma:0",
        "name": "h8h_dma_channel"
      },
      {
        "tag": ":subcpu:dma:1",
        "name": "h8h_dma_channel"
      },
      {
        "tag": ":subcpu:port4",
        "name": "h8_digital_port"
      },
      {
        "tag": ":subcpu:port6",
        "name": "h8_digital_port"
      },
      {
        "tag": ":subcpu:port7",
        "name": "h8_digital_port"
      },
      {
        "tag": ":subcpu:port8",
        "name": "h8_digital_port"
      },
      {
        "tag": ":subcpu:port9",
        "name": "h8_digital_port"
      },
      {
        "tag": ":subcpu:porta",
        "name": "h8_digital_port"
      },
      {
        "tag": ":subcpu:portb",
        "name": "h8_digital_port"
      },
      {
        "tag": ":subcpu:timer16",
        "name": "h8_timer16"
      },
      {
        "tag": ":subcpu:timer16:0",
        "name": "h8h_timer16_channel"
      },
      {
        "tag": ":subcpu:timer16:1",
        "name": "h8h_timer16_channel"
      },
      {
        "tag": ":subcpu:timer16:2",
        "name": "h8h_timer16_channel"
      },
      {
        "tag": ":subcpu:timer16:3",
        "name": "h8h_timer16_channel"
      },
      {
        "tag": ":subcpu:timer16:4",
        "name": "h8h_timer16_channel"
      },
      {
        "tag": ":subcpu:sci0",
        "name": "h8_sci"
      },
      {
        "tag": ":subcpu:sci1",
        "name": "h8_sci"
      },
      {
        "tag": ":subcpu:watchdog",
        "name": "h8_watchdog"
      },
      {
        "tag": ":ata",
        "name": "hrdvd_atactrl"
      },
      {
        "tag": ":ata:0",
        "name": "ata_slot"
      },
      {
        "tag": ":ata:0:dvdrom",
        "name": "dvdrom"
      },
      {
        "tag": ":ata:0:dvdrom:image",
        "name": "dvdrom_image"
      },
      {
        "tag": ":ata:0:dvdrom:cdda",
        "name": "cdda"
      },
      {
        "tag": ":ata:1",
        "name": "ata_slot"
      },
      {
        "tag": ":pll",
        "name": "tc9223"
      },
      {
        "tag": ":v9958",
        "name": "v9958"
      },
      {
        "tag": ":screen",
        "name": "screen"
      },
      {
        "tag": ":mpeg",
        "name": "zr36110"
      },
      {
        "tag": ":mpeg_audio",
        "name": "nn71003f"
      },
      {
        "tag": ":speaker",
        "name": "speaker"
      },
      {
        "tag": ":nichisnd",
        "name": "nichisnd"
      },
      {
        "tag": ":nichisnd:audiocpu",
        "name": "tmpz84c011"
      },
      {
        "tag": ":nichisnd:audiocpu:tmpz84c011_ctc",
        "name": "z80ctc"
      },
      {
        "tag": ":nichisnd:audiocpu:tmpz84c011_ctc:ch0",
        "name": "z80ctc_channel"
      },
      {
        "tag": ":nichisnd:audiocpu:tmpz84c011_ctc:ch1",
        "name": "z80ctc_channel"
      },
      {
        "tag": ":nichisnd:audiocpu:tmpz84c011_ctc:ch2",
        "name": "z80ctc_channel"
      },
      {
        "tag": ":nichisnd:audiocpu:tmpz84c011_ctc:ch3",
        "name": "z80ctc_channel"
      },
      {
        "tag": ":nichisnd:soundlatch",
        "name": "generic_latch_8"
      },
      {
        "tag": ":nichisnd:ymsnd",
        "name": "ym3812"
      },
      {
        "tag": ":nichisnd:dac1",
        "name": "dac_8bit_r2r"
      },
      {
        "tag": ":nichisnd:dac2",
        "name": "dac_8bit_r2r"
      }
    ],
    "chip": [
      {
        "type": "cpu",
        "tag": "maincpu",
        "name": "Toshiba TMP68301",
        "clock": "12288000"
      },
      {
        "type": "cpu",
        "tag": "subcpu",
        "name": "Hitachi H8/3002",
        "clock": "13500000"
      },
      {
        "type": "cpu",
        "tag": "nichisnd:audiocpu",
        "name": "Toshiba TMPZ84C011",
        "clock": "8000000"
      },
      {
        "type": "audio",
        "tag": "ata:0:dvdrom:cdda",
        "name": "CD/DA",
        "clock": "44100"
      },
      {
        "type": "audio",
        "tag": "mpeg_audio",
        "name": "NN71003F mpeg audio chip"
      },
      {
        "type": "audio",
        "tag": "speaker",
        "name": "Speaker"
      },
      {
        "type": "audio",
        "tag": "nichisnd",
        "name": "Nichibutsu Sound Device"
      },
      {
        "type": "audio",
        "tag": "nichisnd:ymsnd",
        "name": "YM3812 OPL2",
        "clock": "4000000"
      },
      {
        "type": "audio",
        "tag": "nichisnd:dac1",
        "name": "8-Bit R-2R DAC"
      },
      {
        "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"
        },
        {
          "type": "gambling",
          "player": "1",
          "buttons": "1",
          "reverse": "no"
        },
        {
          "type": "mahjong",
          "player": "2",
          "buttons": "26",
          "reverse": "no"
        }
      ]
    },
    "dipswitch": [
      {
        "name": "Difficulty",
        "tag": "DSW",
        "mask": "7",
        "diplocation": [
          {
            "name": "SWA",
            "number": "1",
            "inverted": "no"
          },
          {
            "name": "SWA",
            "number": "2",
            "inverted": "no"
          },
          {
            "name": "SWA",
            "number": "3",
            "inverted": "no"
          }
        ],
        "dipvalue": [
          {
            "name": "1",
            "value": "7",
            "default": "no"
          },
          {
            "name": "2",
            "value": "6",
            "default": "no"
          },
          {
            "name": "3",
            "value": "5",
            "default": "no"
          },
          {
            "name": "4",
            "value": "4",
            "default": "yes"
          },
          {
            "name": "5",
            "value": "3",
            "default": "no"
          },
          {
            "name": "6",
            "value": "2",
            "default": "no"
          },
          {
            "name": "7",
            "value": "1",
            "default": "no"
          },
          {
            "name": "8",
            "value": "0",
            "default": "no"
          }
        ]
      },
      {
        "name": "Coinage",
        "tag": "DSW",
        "mask": "8",
        "diplocation": {
          "name": "SWA",
          "number": "4",
          "inverted": "no"
        },
        "dipvalue": [
          {
            "name": "1 Coin/1 Credit",
            "value": "8",
            "default": "yes"
          },
          {
            "name": "1 Coin/2 Credits",
            "value": "0",
            "default": "no"
          }
        ]
      },
      {
        "name": "Show girls in attract mode",
        "tag": "DSW",
        "mask": "16",
        "diplocation": {
          "name": "SWA",
          "number": "5",
          "inverted": "no"
        },
        "dipvalue": [
          {
            "name": "No",
            "value": "16",
            "default": "no"
          },
          {
            "name": "Yes",
            "value": "0",
            "default": "yes"
          }
        ]
      },
      {
        "name": "Demo Sounds",
        "tag": "DSW",
        "mask": "32",
        "diplocation": {
          "name": "SWA",
          "number": "6",
          "inverted": "no"
        },
        "dipvalue": [
          {
            "name": "Off",
            "value": "32",
            "default": "no"
          },
          {
            "name": "On",
            "value": "0",
            "default": "yes"
          }
        ]
      },
      {
        "name": "Color Test",
        "tag": "DSW",
        "mask": "64",
        "diplocation": {
          "name": "SWA",
          "number": "7",
          "inverted": "no"
        },
        "dipvalue": [
          {
            "name": "No",
            "value": "64",
            "default": "yes"
          },
          {
            "name": "Yes",
            "value": "0",
            "default": "no"
          }
        ]
      },
      {
        "name": "Unused",
        "tag": "DSW",
        "mask": "128",
        "diplocation": {
          "name": "SWA",
          "number": "8",
          "inverted": "no"
        },
        "dipvalue": [
          {
            "name": "Off",
            "value": "128",
            "default": "yes"
          },
          {
            "name": "On",
            "value": "0",
            "default": "no"
          }
        ]
      },
      {
        "name": "Use Koi Koi local ruleset",
        "tag": "DSW",
        "mask": "256",
        "diplocation": {
          "name": "SWB",
          "number": "1",
          "inverted": "no"
        },
        "dipvalue": [
          {
            "name": "No",
            "value": "0",
            "default": "no"
          },
          {
            "name": "Yes",
            "value": "256",
            "default": "yes"
          }
        ]
      },
      {
        "name": "Koi Koi input layout",
        "tag": "DSW",
        "mask": "512",
        "diplocation": {
          "name": "SWB",
          "number": "2",
          "inverted": "no"
        },
        "dipvalue": [
          {
            "name": "A Type",
            "value": "0",
            "default": "yes"
          },
          {
            "name": "B Type",
            "value": "512",
            "default": "no"
          }
        ]
      },
      {
        "name": "Unused",
        "tag": "DSW",
        "mask": "1024",
        "diplocation": {
          "name": "SWB",
          "number": "3",
          "inverted": "no"
        },
        "dipvalue": [
          {
            "name": "Off",
            "value": "1024",
            "default": "yes"
          },
          {
            "name": "On",
            "value": "0",
            "default": "no"
          }
        ]
      },
      {
        "name": "Background type",
        "tag": "DSW",
        "mask": "6144",
        "diplocation": [
          {
            "name": "SWB",
            "number": "4",
            "inverted": "no"
          },
          {
            "name": "SWB",
            "number": "5",
            "inverted": "no"
          }
        ],
        "dipvalue": [
          {
            "name": "Color in-game and attract",
            "value": "2048",
            "default": "no"
          },
          {
            "name": "Girls in-game, color in attract",
            "value": "4096",
            "default": "no"
          },
          {
            "name": "Girls in-game and attract",
            "value": "6144",
            "default": "yes"
          }
        ]
      },
      {
        "name": "Analyzer",
        "tag": "DSW",
        "mask": "8192",
        "diplocation": {
          "name": "SWB",
          "number": "6",
          "inverted": "no"
        },
        "dipvalue": [
          {
            "name": "Yes",
            "value": "0",
            "default": "no"
          },
          {
            "name": "No",
            "value": "8192",
            "default": "yes"
          }
        ]
      },
      {
        "name": "Unused",
        "tag": "DSW",
        "mask": "16384",
        "diplocation": {
          "name": "SWB",
          "number": "7",
          "inverted": "no"
        },
        "dipvalue": [
          {
            "name": "Off",
            "value": "16384",
            "default": "yes"
          },
          {
            "name": "On",
            "value": "0",
            "default": "no"
          }
        ]
      },
      {
        "name": "Unused",
        "tag": "DSW",
        "mask": "32768",
        "diplocation": {
          "name": "SWB",
          "number": "8",
          "inverted": "no"
        },
        "dipvalue": [
          {
            "name": "Off",
            "value": "32768",
            "default": "yes"
          },
          {
            "name": "On",
            "value": "0",
            "default": "no"
          }
        ]
      }
    ],
    "port": [
      {
        "tag": ":DSW"
      },
      {
        "tag": ":KEY.0"
      },
      {
        "tag": ":KEY.1"
      },
      {
        "tag": ":KEY.2"
      },
      {
        "tag": ":KEY.3"
      },
      {
        "tag": ":KEY.4"
      },
      {
        "tag": ":SYSTEM"
      }
    ],
    "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"
        },
        {
          "name": "cue"
        },
        {
          "name": "toc"
        },
        {
          "name": "nrg"
        },
        {
          "name": "gdi"
        },
        {
          "name": "iso"
        },
        {
          "name": "cdr"
        }
      ]
    }
  }
}