{
  "machine": {
    "name": "gngcenh",
    "sourcefile": "hbmame/drivers/gng.cpp",
    "cloneof": "gng",
    "romof": "gng",
    "isbios": "no",
    "isdevice": "no",
    "ismechanical": "no",
    "runnable": "yes",
    "description": "Ghosts'n Goblins (Enhanced) (World? set 4)",
    "year": "2026",
    "manufacturer": "GoodLuckTrying",
    "rom": [
      {
        "name": "gng.n13",
        "size": "16384",
        "crc": "fd9a8dda",
        "sha1": "222c3c759c6b60f82351b9e6bf748fb4872e82b4",
        "region": "maincpu",
        "offset": "10000",
        "status": "good",
        "optional": "no"
      },
      {
        "name": "gngenh.n8",
        "size": "16384",
        "crc": "21ef2189",
        "sha1": "2c06df8c7b0be3f4d968a0fc73ebdb077f10a9ef",
        "region": "maincpu",
        "offset": "c000",
        "status": "good",
        "optional": "no"
      },
      {
        "name": "gngenh.n9",
        "size": "16384",
        "crc": "3632f7f5",
        "sha1": "f743bf471a9328d054fe810d6df06ea0fe762e1e",
        "region": "maincpu",
        "offset": "8000",
        "status": "good",
        "optional": "no"
      },
      {
        "name": "gng.n10",
        "size": "16384",
        "crc": "60343188",
        "sha1": "dfc95d3f23a3a4b05b559f1dc76488b2659fbf66",
        "region": "maincpu",
        "offset": "4000",
        "status": "good",
        "optional": "no"
      },
      {
        "name": "gngenh.n12",
        "size": "16384",
        "crc": "b5847408",
        "sha1": "e7f7867e5627c923ee83d61d4294aa6e05e50406",
        "region": "maincpu",
        "offset": "14000",
        "status": "good",
        "optional": "no"
      },
      {
        "name": "gg2.bin",
        "merge": "gg2.bin",
        "size": "32768",
        "crc": "615f5b6f",
        "sha1": "7ef9ec5c2072e21c787a6bbf700033f50c759c1d",
        "region": "audiocpu",
        "offset": "0",
        "status": "good",
        "optional": "no"
      },
      {
        "name": "gg1.bin",
        "merge": "gg1.bin",
        "size": "16384",
        "crc": "ecfccf07",
        "sha1": "0a1518e19a2e0a4cc3dde4b9568202ea911b5ece",
        "region": "chars",
        "offset": "0",
        "status": "good",
        "optional": "no"
      },
      {
        "name": "gg6.bin",
        "merge": "gg6.bin",
        "size": "16384",
        "crc": "2d77e9b2",
        "sha1": "944da1ce29a18bf0fc8deff78bceacba0bf23a07",
        "region": "tiles",
        "offset": "14000",
        "status": "good",
        "optional": "no"
      },
      {
        "name": "gg7.bin",
        "merge": "gg7.bin",
        "size": "16384",
        "crc": "e525207d",
        "sha1": "1947f159189b3a53f1251d8653b6e7c65c91fc3c",
        "region": "tiles",
        "offset": "10000",
        "status": "good",
        "optional": "no"
      },
      {
        "name": "gg8.bin",
        "merge": "gg8.bin",
        "size": "16384",
        "crc": "f12ba271",
        "sha1": "1c42fa02cb27b35d10c3f7f036005e747f9f6b79",
        "region": "tiles",
        "offset": "c000",
        "status": "good",
        "optional": "no"
      },
      {
        "name": "gg9.bin",
        "merge": "gg9.bin",
        "size": "16384",
        "crc": "20035bda",
        "sha1": "bbb1fba0eb19471f66d29526fa8423ccb047bd63",
        "region": "tiles",
        "offset": "8000",
        "status": "good",
        "optional": "no"
      },
      {
        "name": "gg10.bin",
        "merge": "gg10.bin",
        "size": "16384",
        "crc": "7302529d",
        "sha1": "8434c994cc55d2586641f3b90b6b15fd65dfb67c",
        "region": "tiles",
        "offset": "4000",
        "status": "good",
        "optional": "no"
      },
      {
        "name": "gg11.bin",
        "merge": "gg11.bin",
        "size": "16384",
        "crc": "ddd56fa9",
        "sha1": "f9d77eee5e2738b7e83ba02fcc55dd480391479f",
        "region": "tiles",
        "offset": "0",
        "status": "good",
        "optional": "no"
      },
      {
        "name": "gg12.bin",
        "merge": "gg12.bin",
        "size": "16384",
        "crc": "7780a925",
        "sha1": "3f129ca6d695548b659955fe538584bd9ac2ff17",
        "region": "sprites",
        "offset": "18000",
        "status": "good",
        "optional": "no"
      },
      {
        "name": "gg13.bin",
        "merge": "gg13.bin",
        "size": "16384",
        "crc": "e80c3fca",
        "sha1": "cb641c25bb04b970b2cbeca41adb792bbe142fb5",
        "region": "sprites",
        "offset": "14000",
        "status": "good",
        "optional": "no"
      },
      {
        "name": "gg14.bin",
        "merge": "gg14.bin",
        "size": "16384",
        "crc": "6aaf12f9",
        "sha1": "207a7407288182a4f3eddaea634c6a6452131182",
        "region": "sprites",
        "offset": "10000",
        "status": "good",
        "optional": "no"
      },
      {
        "name": "gg15.bin",
        "merge": "gg15.bin",
        "size": "16384",
        "crc": "bc1fe02d",
        "sha1": "e3a1421d465b87148ffa94f5673b2307f0246afe",
        "region": "sprites",
        "offset": "8000",
        "status": "good",
        "optional": "no"
      },
      {
        "name": "gg16.bin",
        "merge": "gg16.bin",
        "size": "16384",
        "crc": "06d7e5ca",
        "sha1": "9e06012bcd82f98fad43de666ef9a75979d940ab",
        "region": "sprites",
        "offset": "4000",
        "status": "good",
        "optional": "no"
      },
      {
        "name": "gg17.bin",
        "merge": "gg17.bin",
        "size": "16384",
        "crc": "93e50a8f",
        "sha1": "42d367f57bb2fdf60a0445ac1533da99cfeaa617",
        "region": "sprites",
        "offset": "0",
        "status": "good",
        "optional": "no"
      }
    ],
    "device_ref": [
      {
        "tag": ":maincpu",
        "name": "mc6809"
      },
      {
        "tag": ":audiocpu",
        "name": "z80"
      },
      {
        "tag": ":mainlatch",
        "name": "ls259"
      },
      {
        "tag": ":spriteram",
        "name": "buffered_spriteram8"
      },
      {
        "tag": ":screen",
        "name": "screen"
      },
      {
        "tag": ":gfxdecode",
        "name": "gfxdecode"
      },
      {
        "tag": ":palette",
        "name": "palette"
      },
      {
        "tag": ":mono",
        "name": "speaker"
      },
      {
        "tag": ":soundlatch",
        "name": "generic_latch_8"
      },
      {
        "tag": ":ym1",
        "name": "ym2203"
      },
      {
        "tag": ":ym2",
        "name": "ym2203"
      }
    ],
    "chip": [
      {
        "type": "cpu",
        "tag": "maincpu",
        "name": "Motorola MC6809",
        "clock": "6000000"
      },
      {
        "type": "cpu",
        "tag": "audiocpu",
        "name": "Zilog Z80",
        "clock": "3000000"
      },
      {
        "type": "audio",
        "tag": "mono",
        "name": "Speaker"
      },
      {
        "type": "audio",
        "tag": "ym1",
        "name": "YM2203 OPN",
        "clock": "1500000"
      },
      {
        "type": "audio",
        "tag": "ym2",
        "name": "YM2203 OPN",
        "clock": "1500000"
      }
    ],
    "display": {
      "tag": "screen",
      "type": "raster",
      "rotate": "0",
      "width": "256",
      "height": "224",
      "refresh": "59.637405",
      "pixclock": "6000000",
      "htotal": "384",
      "hbend": "0",
      "hbstart": "256",
      "vtotal": "262",
      "vbend": "16",
      "vbstart": "240",
      "flipx": "no"
    },
    "sound": {
      "channels": "1"
    },
    "input": {
      "players": "2",
      "coins": "2",
      "service": "no",
      "tilt": "no",
      "control": [
        {
          "type": "joy",
          "player": "1",
          "buttons": "2",
          "ways": "4",
          "reverse": "no"
        },
        {
          "type": "joy",
          "player": "2",
          "buttons": "2",
          "ways": "4",
          "reverse": "no"
        }
      ]
    },
    "dipswitch": [
      {
        "name": "Coinage",
        "tag": "DSW1",
        "mask": "15",
        "diplocation": [
          {
            "name": "SW1",
            "number": "8",
            "inverted": "no"
          },
          {
            "name": "SW1",
            "number": "7",
            "inverted": "no"
          },
          {
            "name": "SW1",
            "number": "6",
            "inverted": "no"
          },
          {
            "name": "SW1",
            "number": "5",
            "inverted": "no"
          }
        ],
        "dipvalue": [
          {
            "name": "4 Coins/1 Credit",
            "value": "2",
            "default": "no"
          },
          {
            "name": "3 Coins/1 Credit",
            "value": "5",
            "default": "no"
          },
          {
            "name": "2 Coins/1 Credit",
            "value": "8",
            "default": "no"
          },
          {
            "name": "3 Coins/2 Credits",
            "value": "4",
            "default": "no"
          },
          {
            "name": "4 Coins/3 Credits",
            "value": "1",
            "default": "no"
          },
          {
            "name": "1 Coin/1 Credit",
            "value": "15",
            "default": "yes"
          },
          {
            "name": "3 Coins/4 Credits",
            "value": "3",
            "default": "no"
          },
          {
            "name": "2 Coins/3 Credits",
            "value": "7",
            "default": "no"
          },
          {
            "name": "1 Coin/2 Credits",
            "value": "14",
            "default": "no"
          },
          {
            "name": "2 Coins/5 Credits",
            "value": "6",
            "default": "no"
          },
          {
            "name": "1 Coin/3 Credits",
            "value": "13",
            "default": "no"
          },
          {
            "name": "1 Coin/4 Credits",
            "value": "12",
            "default": "no"
          },
          {
            "name": "1 Coin/5 Credits",
            "value": "11",
            "default": "no"
          },
          {
            "name": "1 Coin/6 Credits",
            "value": "10",
            "default": "no"
          },
          {
            "name": "1 Coin/7 Credits",
            "value": "9",
            "default": "no"
          },
          {
            "name": "Free Play",
            "value": "0",
            "default": "no"
          }
        ]
      },
      {
        "name": "Coinage affects",
        "tag": "DSW1",
        "mask": "16",
        "diplocation": {
          "name": "SW1",
          "number": "4",
          "inverted": "no"
        },
        "dipvalue": [
          {
            "name": "Coin A",
            "value": "16",
            "default": "yes"
          },
          {
            "name": "Coin B",
            "value": "0",
            "default": "no"
          }
        ]
      },
      {
        "name": "Demo Sounds",
        "tag": "DSW1",
        "mask": "32",
        "diplocation": {
          "name": "SW1",
          "number": "3",
          "inverted": "no"
        },
        "dipvalue": [
          {
            "name": "Off",
            "value": "32",
            "default": "no"
          },
          {
            "name": "On",
            "value": "0",
            "default": "yes"
          }
        ]
      },
      {
        "name": "Service Mode",
        "tag": "DSW1",
        "mask": "64",
        "diplocation": {
          "name": "SW1",
          "number": "2",
          "inverted": "no"
        },
        "dipvalue": [
          {
            "name": "Off",
            "value": "64",
            "default": "yes"
          },
          {
            "name": "On",
            "value": "0",
            "default": "no"
          }
        ]
      },
      {
        "name": "Flip Screen",
        "tag": "DSW1",
        "mask": "128",
        "diplocation": {
          "name": "SW1",
          "number": "1",
          "inverted": "no"
        },
        "dipvalue": [
          {
            "name": "Off",
            "value": "128",
            "default": "yes"
          },
          {
            "name": "On",
            "value": "0",
            "default": "no"
          }
        ]
      },
      {
        "name": "Lives",
        "tag": "DSW2",
        "mask": "3",
        "diplocation": [
          {
            "name": "SW2",
            "number": "8",
            "inverted": "no"
          },
          {
            "name": "SW2",
            "number": "7",
            "inverted": "no"
          }
        ],
        "dipvalue": [
          {
            "name": "3",
            "value": "3",
            "default": "yes"
          },
          {
            "name": "4",
            "value": "2",
            "default": "no"
          },
          {
            "name": "5",
            "value": "1",
            "default": "no"
          },
          {
            "name": "7",
            "value": "0",
            "default": "no"
          }
        ]
      },
      {
        "name": "Cabinet",
        "tag": "DSW2",
        "mask": "4",
        "diplocation": {
          "name": "SW2",
          "number": "6",
          "inverted": "no"
        },
        "dipvalue": [
          {
            "name": "Upright",
            "value": "0",
            "default": "yes"
          },
          {
            "name": "Cocktail",
            "value": "4",
            "default": "no"
          }
        ]
      },
      {
        "name": "Bonus Life",
        "tag": "DSW2",
        "mask": "24",
        "diplocation": [
          {
            "name": "SW2",
            "number": "5",
            "inverted": "no"
          },
          {
            "name": "SW2",
            "number": "4",
            "inverted": "no"
          }
        ],
        "dipvalue": [
          {
            "name": "20K 70K Every 70K",
            "value": "24",
            "default": "yes"
          },
          {
            "name": "30K 80K Every 80K",
            "value": "16",
            "default": "no"
          },
          {
            "name": "20K and 80K Only",
            "value": "8",
            "default": "no"
          },
          {
            "name": "30K and 80K Only",
            "value": "0",
            "default": "no"
          }
        ]
      },
      {
        "name": "Difficulty",
        "tag": "DSW2",
        "mask": "96",
        "diplocation": [
          {
            "name": "SW2",
            "number": "3",
            "inverted": "no"
          },
          {
            "name": "SW2",
            "number": "2",
            "inverted": "no"
          }
        ],
        "dipvalue": [
          {
            "name": "Easy",
            "value": "64",
            "default": "no"
          },
          {
            "name": "Normal",
            "value": "96",
            "default": "yes"
          },
          {
            "name": "Difficult",
            "value": "32",
            "default": "no"
          },
          {
            "name": "Very Difficult",
            "value": "0",
            "default": "no"
          }
        ]
      },
      {
        "name": "Unused",
        "tag": "DSW2",
        "mask": "128",
        "diplocation": {
          "name": "SW2",
          "number": "1",
          "inverted": "no"
        },
        "dipvalue": [
          {
            "name": "Off",
            "value": "128",
            "default": "yes"
          },
          {
            "name": "On",
            "value": "0",
            "default": "no"
          }
        ]
      }
    ],
    "port": [
      {
        "tag": ":DSW1"
      },
      {
        "tag": ":DSW2"
      },
      {
        "tag": ":P1"
      },
      {
        "tag": ":P2"
      },
      {
        "tag": ":SYSTEM"
      }
    ],
    "driver": {
      "status": "good",
      "emulation": "good",
      "savestate": "supported",
      "requiresartwork": "no",
      "unofficial": "no",
      "nosoundhardware": "no",
      "incomplete": "no"
    }
  }
}