{
  "machine": {
    "name": "triplew1",
    "sourcefile": "nichibutsu/nbmj8991.cpp",
    "isbios": "no",
    "isdevice": "no",
    "ismechanical": "no",
    "runnable": "yes",
    "description": "Mahjong Triple Wars (Japan)",
    "year": "1989",
    "manufacturer": "Nichibutsu",
    "rom": [
      {
        "name": "tpw1_01.bin",
        "size": "65536",
        "crc": "2542958a",
        "sha1": "3d904990ac4d51f80aefe3f84252603de87e791d",
        "region": "maincpu",
        "offset": "0",
        "status": "good",
        "optional": "no"
      },
      {
        "name": "tpw1_03.bin",
        "size": "65536",
        "crc": "d86cc7d2",
        "sha1": "430f1d2bad2dbab8f39829d3353fff52308542cb",
        "region": "audiocpu",
        "offset": "0",
        "status": "good",
        "optional": "no"
      },
      {
        "name": "tpw1_02.bin",
        "size": "65536",
        "crc": "857656a7",
        "sha1": "9e35e4970b4a80cf98c86cd6384022d62a5e543d",
        "region": "audiocpu",
        "offset": "10000",
        "status": "good",
        "optional": "no"
      },
      {
        "name": "tpw1_04.bin",
        "size": "131072",
        "crc": "ca26ccb3",
        "sha1": "36c60dbef81119be9b39bc584a79d466ec45502b",
        "region": "gfx1",
        "offset": "0",
        "status": "good",
        "optional": "no"
      },
      {
        "name": "tpw1_05.bin",
        "size": "131072",
        "crc": "26501af0",
        "sha1": "7e7447085b8387cfa1111ae402f2b1ff48f8753e",
        "region": "gfx1",
        "offset": "20000",
        "status": "good",
        "optional": "no"
      },
      {
        "name": "tpw1_06.bin",
        "size": "65536",
        "crc": "789bbacd",
        "sha1": "90dbe6ac4231ce6f6885f19f38a312a4d35cb4da",
        "region": "gfx1",
        "offset": "40000",
        "status": "good",
        "optional": "no"
      },
      {
        "name": "tpw1_07.bin",
        "size": "65536",
        "crc": "38aaad61",
        "sha1": "fae23d5b9d5fe2cad0cb1cc3b6c5f144d9e4d10e",
        "region": "gfx1",
        "offset": "50000",
        "status": "good",
        "optional": "no"
      },
      {
        "name": "tpw1_08.bin",
        "size": "65536",
        "crc": "9f4042b4",
        "sha1": "0bfdebea60230c5889e57beb27086cf819f56614",
        "region": "gfx1",
        "offset": "60000",
        "status": "good",
        "optional": "no"
      },
      {
        "name": "tpw1_09.bin",
        "size": "65536",
        "crc": "388a78b9",
        "sha1": "dc994f98fff70483437f622c0a729de4fcc285d6",
        "region": "gfx1",
        "offset": "70000",
        "status": "good",
        "optional": "no"
      },
      {
        "name": "tpw1_10.bin",
        "size": "65536",
        "crc": "7a19730d",
        "sha1": "a3dbb2880b15ba5bd4dc1830ebfa8c3ad1da6c2d",
        "region": "gfx1",
        "offset": "80000",
        "status": "good",
        "optional": "no"
      },
      {
        "name": "tpw1_11.bin",
        "size": "65536",
        "crc": "1239a0c6",
        "sha1": "bb76b72fbca75b447751e08b74c519a725a0df45",
        "region": "gfx1",
        "offset": "90000",
        "status": "good",
        "optional": "no"
      },
      {
        "name": "tpw1_12.bin",
        "size": "65536",
        "crc": "ca469c52",
        "sha1": "602251d149324ca0aa5160d8b90a9b83a2bd6109",
        "region": "gfx1",
        "offset": "a0000",
        "status": "good",
        "optional": "no"
      },
      {
        "name": "tpw1_13.bin",
        "size": "65536",
        "crc": "0ca520c0",
        "sha1": "7515e135ddcd0dc75d330a499e5182382d1b2e30",
        "region": "gfx1",
        "offset": "b0000",
        "status": "good",
        "optional": "no"
      },
      {
        "name": "tpw1_14.bin",
        "size": "65536",
        "crc": "3880db99",
        "sha1": "cf3826fc0da0a5f9d84ac1d6b079f524c3587a0c",
        "region": "gfx1",
        "offset": "c0000",
        "status": "good",
        "optional": "no"
      },
      {
        "name": "tpw1_15.bin",
        "size": "65536",
        "crc": "996ea3e8",
        "sha1": "7f7b938c7952c0474fef6af137705661cc35e290",
        "region": "gfx1",
        "offset": "d0000",
        "status": "good",
        "optional": "no"
      },
      {
        "name": "tpw1_16.bin",
        "size": "65536",
        "crc": "415ae47c",
        "sha1": "68b8386a1730e1d919a4ac0e592188313f9431aa",
        "region": "gfx1",
        "offset": "e0000",
        "status": "good",
        "optional": "no"
      },
      {
        "name": "tpw1_17.bin",
        "size": "65536",
        "crc": "b5c88f0e",
        "sha1": "efc13818faed5a249631f41ca09fd17241aa8b26",
        "region": "gfx1",
        "offset": "f0000",
        "status": "good",
        "optional": "no"
      },
      {
        "name": "tpw1_18.bin",
        "size": "65536",
        "crc": "def06191",
        "sha1": "ff1ba2a53c307706b8e676e0dd52e798e500c10c",
        "region": "gfx1",
        "offset": "100000",
        "status": "good",
        "optional": "no"
      },
      {
        "name": "tpw1_19.bin",
        "size": "65536",
        "crc": "b293561b",
        "sha1": "fc32c18a8d242953f1fb98af7e453f97f50a908c",
        "region": "gfx1",
        "offset": "110000",
        "status": "good",
        "optional": "no"
      },
      {
        "name": "tpw1_20.bin",
        "size": "65536",
        "crc": "81bfa331",
        "sha1": "5fef84db195aa4a670bb3edb17afcc131e79c412",
        "region": "gfx1",
        "offset": "120000",
        "status": "good",
        "optional": "no"
      },
      {
        "name": "tpw1_21.bin",
        "size": "65536",
        "crc": "2dbb68e5",
        "sha1": "1cc327362d69908189621595ce018c5d1761ba13",
        "region": "gfx1",
        "offset": "130000",
        "status": "good",
        "optional": "no"
      },
      {
        "name": "tpw1_22.bin",
        "size": "65536",
        "crc": "9633278c",
        "sha1": "279d059f731dc81230cf0038f53318cfdade6fae",
        "region": "gfx1",
        "offset": "140000",
        "status": "good",
        "optional": "no"
      },
      {
        "name": "tpw1_23.bin",
        "size": "65536",
        "crc": "11580513",
        "sha1": "8c2e9e91ffdc1f323290f3d67bf10e1f3275e8bd",
        "region": "gfx1",
        "offset": "150000",
        "status": "good",
        "optional": "no"
      }
    ],
    "device_ref": [
      {
        "tag": ":maincpu",
        "name": "z80"
      },
      {
        "tag": ":nb1413m3",
        "name": "nb1413m3"
      },
      {
        "tag": ":audiocpu",
        "name": "z80"
      },
      {
        "tag": ":screen",
        "name": "screen"
      },
      {
        "tag": ":palette",
        "name": "palette"
      },
      {
        "tag": ":speaker",
        "name": "speaker"
      },
      {
        "tag": ":soundlatch",
        "name": "generic_latch_8"
      },
      {
        "tag": ":fmsnd",
        "name": "ym3812"
      },
      {
        "tag": ":dac1",
        "name": "dac_8bit_r2r"
      },
      {
        "tag": ":dac2",
        "name": "dac_8bit_r2r"
      }
    ],
    "chip": [
      {
        "type": "cpu",
        "tag": "maincpu",
        "name": "Zilog Z80",
        "clock": "3000000"
      },
      {
        "type": "cpu",
        "tag": "audiocpu",
        "name": "Zilog Z80",
        "clock": "4000000"
      },
      {
        "type": "audio",
        "tag": "speaker",
        "name": "Speaker"
      },
      {
        "type": "audio",
        "tag": "fmsnd",
        "name": "YM3812 OPL2",
        "clock": "4000000"
      },
      {
        "type": "audio",
        "tag": "dac1",
        "name": "8-Bit R-2R DAC"
      },
      {
        "type": "audio",
        "tag": "dac2",
        "name": "8-Bit R-2R DAC"
      }
    ],
    "display": {
      "tag": "screen",
      "type": "raster",
      "rotate": "180",
      "width": "640",
      "height": "240",
      "refresh": "60.000000",
      "flipx": "no"
    },
    "sound": {
      "channels": "1"
    },
    "input": {
      "players": "2",
      "coins": "1",
      "service": "no",
      "tilt": "no",
      "control": [
        {
          "type": "mahjong",
          "player": "1",
          "buttons": "26",
          "reverse": "no"
        },
        {
          "type": "mahjong",
          "player": "2",
          "buttons": "26",
          "reverse": "no"
        }
      ]
    },
    "dipswitch": [
      {
        "name": "Difficulty",
        "tag": "DSWA",
        "mask": "3",
        "diplocation": [
          {
            "name": "SWA",
            "number": "1",
            "inverted": "no"
          },
          {
            "name": "SWA",
            "number": "2",
            "inverted": "no"
          }
        ],
        "dipvalue": [
          {
            "name": "1 (Easy)",
            "value": "3",
            "default": "yes"
          },
          {
            "name": "2",
            "value": "2",
            "default": "no"
          },
          {
            "name": "3",
            "value": "1",
            "default": "no"
          },
          {
            "name": "4 (Hard)",
            "value": "0",
            "default": "no"
          }
        ]
      },
      {
        "name": "Coinage",
        "tag": "DSWA",
        "mask": "4",
        "diplocation": {
          "name": "SWA",
          "number": "3",
          "inverted": "no"
        },
        "dipvalue": [
          {
            "name": "1 Coin/1 Credit",
            "value": "4",
            "default": "yes"
          },
          {
            "name": "1 Coin/2 Credits",
            "value": "0",
            "default": "no"
          }
        ]
      },
      {
        "name": "Demo Sounds",
        "tag": "DSWA",
        "mask": "8",
        "diplocation": {
          "name": "SWA",
          "number": "4",
          "inverted": "no"
        },
        "dipvalue": [
          {
            "name": "Off",
            "value": "0",
            "default": "no"
          },
          {
            "name": "On",
            "value": "8",
            "default": "yes"
          }
        ]
      },
      {
        "name": "Game Sounds",
        "tag": "DSWA",
        "mask": "16",
        "diplocation": {
          "name": "SWA",
          "number": "5",
          "inverted": "no"
        },
        "dipvalue": [
          {
            "name": "Off",
            "value": "0",
            "default": "no"
          },
          {
            "name": "On",
            "value": "16",
            "default": "yes"
          }
        ]
      },
      {
        "name": "Flip Screen",
        "tag": "DSWA",
        "mask": "32",
        "diplocation": {
          "name": "SWA",
          "number": "6",
          "inverted": "no"
        },
        "dipvalue": [
          {
            "name": "Off",
            "value": "32",
            "default": "yes"
          },
          {
            "name": "On",
            "value": "0",
            "default": "no"
          }
        ]
      },
      {
        "name": "Character Display Test",
        "tag": "DSWA",
        "mask": "64",
        "diplocation": {
          "name": "SWA",
          "number": "7",
          "inverted": "no"
        },
        "dipvalue": [
          {
            "name": "Off",
            "value": "64",
            "default": "yes"
          },
          {
            "name": "On",
            "value": "0",
            "default": "no"
          }
        ]
      },
      {
        "name": "Graphic ROM Test",
        "tag": "DSWA",
        "mask": "128",
        "diplocation": {
          "name": "SWA",
          "number": "8",
          "inverted": "no"
        },
        "dipvalue": [
          {
            "name": "Off",
            "value": "128",
            "default": "yes"
          },
          {
            "name": "On",
            "value": "0",
            "default": "no"
          }
        ]
      },
      {
        "name": "Service Mode",
        "tag": "SYSTEM",
        "mask": "16",
        "dipvalue": [
          {
            "name": "Off",
            "value": "16",
            "default": "yes"
          },
          {
            "name": "On",
            "value": "0",
            "default": "no"
          }
        ]
      }
    ],
    "port": [
      {
        "tag": ":DSWA"
      },
      {
        "tag": ":DSWB"
      },
      {
        "tag": ":KEY0"
      },
      {
        "tag": ":KEY1"
      },
      {
        "tag": ":KEY2"
      },
      {
        "tag": ":KEY3"
      },
      {
        "tag": ":KEY4"
      },
      {
        "tag": ":KEY5"
      },
      {
        "tag": ":KEY6"
      },
      {
        "tag": ":KEY7"
      },
      {
        "tag": ":KEY8"
      },
      {
        "tag": ":KEY9"
      },
      {
        "tag": ":SYSTEM"
      }
    ],
    "driver": {
      "status": "good",
      "emulation": "good",
      "savestate": "supported",
      "requiresartwork": "no",
      "unofficial": "no",
      "nosoundhardware": "no",
      "incomplete": "no"
    }
  }
}