<machine name="gngknightt" sourcefile="gng.cpp" cloneof="gng" romof="gng" isbios="no" isdevice="no" ismechanical="no" runnable="yes">
  <description>Ghosts'n Goblins (Knight, US)</description>
  <year>2026</year>
  <manufacturer>GoodLuckTrying / Poody</manufacturer>
  <rom name="mmt03d.8n" size="32768" crc="fb040b42" sha1="c1c58943bd20c6a2520b39fae90067769ec97ed6" region="maincpu" offset="8000" status="good" optional="no" />
  <rom name="mmt04dknight.10n" size="16384" crc="93de0d39" sha1="d59cf0bd0ef473ef4399272e041a472956cd38fe" region="maincpu" offset="4000" status="good" optional="no" />
  <rom name="mmt05dknight.13n" size="32768" crc="e7f6ec0b" sha1="93bc9ddcb2cea9902e792f52918cde1fdc147e72" region="maincpu" offset="10000" status="good" optional="no" />
  <rom name="mm02.14h" merge="gg2.bin" size="32768" crc="615f5b6f" sha1="7ef9ec5c2072e21c787a6bbf700033f50c759c1d" region="audiocpu" offset="0" status="good" optional="no" />
  <rom name="mm01knight.11e" size="16384" crc="c12dd3e3" sha1="09dda1840ee4052d804423d19eb4ff712690ef38" region="chars" offset="0" status="good" optional="no" />
  <rom name="mm06.1b" merge="gg6.bin" size="16384" crc="2d77e9b2" sha1="944da1ce29a18bf0fc8deff78bceacba0bf23a07" region="tiles" offset="14000" status="good" optional="no" />
  <rom name="mm07.3b" merge="gg7.bin" size="16384" crc="e525207d" sha1="1947f159189b3a53f1251d8653b6e7c65c91fc3c" region="tiles" offset="10000" status="good" optional="no" />
  <rom name="mm08.1c" merge="gg8.bin" size="16384" crc="f12ba271" sha1="1c42fa02cb27b35d10c3f7f036005e747f9f6b79" region="tiles" offset="c000" status="good" optional="no" />
  <rom name="mm09.3c" merge="gg9.bin" size="16384" crc="20035bda" sha1="bbb1fba0eb19471f66d29526fa8423ccb047bd63" region="tiles" offset="8000" status="good" optional="no" />
  <rom name="mm10.1e" merge="gg10.bin" size="16384" crc="7302529d" sha1="8434c994cc55d2586641f3b90b6b15fd65dfb67c" region="tiles" offset="4000" status="good" optional="no" />
  <rom name="mm11.3e" merge="gg11.bin" size="16384" crc="ddd56fa9" sha1="f9d77eee5e2738b7e83ba02fcc55dd480391479f" region="tiles" offset="0" status="good" optional="no" />
  <rom name="mm12knight.1l" size="16384" crc="7c6e8878" sha1="4b94a4731f63af06004d5e847198af33110087ad" region="sprites" offset="18000" status="good" optional="no" />
  <rom name="mm13knight.3l" size="16384" crc="75211c8b" sha1="70ade1bcd3cd1ed4b452bb2cceea83cb914e33bd" region="sprites" offset="14000" status="good" optional="no" />
  <rom name="mm14knight.4l" size="16384" crc="01d9a306" sha1="94700f6894b109565a36d03f634d7ba353a9d8f6" region="sprites" offset="10000" status="good" optional="no" />
  <rom name="mm15knight.1n" size="16384" crc="4b9933df" sha1="a5ff3aab6fbcb8cd44f09c70f29d7427aa7d4473" region="sprites" offset="8000" status="good" optional="no" />
  <rom name="mm16knight.3n" size="16384" crc="5b0a5995" sha1="024371969124831199093d63dd007ea507725640" region="sprites" offset="4000" status="good" optional="no" />
  <rom name="mm17knight.4n" size="16384" crc="a0713571" sha1="0d30aa976bacc78b7ba0076af136580f34e865a4" region="sprites" offset="0" status="good" optional="no" />
  <device_ref name="mc6809" />
  <device_ref name="z80" />
  <device_ref name="ls259" />
  <device_ref name="buffered_spriteram8" />
  <device_ref name="screen" />
  <device_ref name="gfxdecode" />
  <device_ref name="palette" />
  <device_ref name="speaker" />
  <device_ref name="generic_latch_8" />
  <device_ref name="ym2203" />
  <device_ref name="ym2203" />
  <chip type="cpu" tag="maincpu" name="Motorola MC6809" clock="6000000" />
  <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="3000000" />
  <chip type="audio" tag="mono" name="Speaker" />
  <chip type="audio" tag="ym1" name="YM2203 OPN" clock="1500000" />
  <chip 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="128" hbstart="384" vtotal="262" vbend="22" vbstart="246" flipx="no" />
  <sound channels="1" />
  <input players="2" coins="2" service="no" tilt="no">
    <control type="joy" player="1" buttons="2" ways="8" reverse="no" />
    <control type="joy" player="2" buttons="2" ways="8" reverse="no" />
  </input>
  <dipswitch name="Coinage" tag="DSW1" mask="15">
    <diplocation name="SW1" number="8" inverted="no" />
    <diplocation name="SW1" number="7" inverted="no" />
    <diplocation name="SW1" number="6" inverted="no" />
    <diplocation name="SW1" number="5" inverted="no" />
    <dipvalue name="4 Coins/1 Credit" value="2" default="no" />
    <dipvalue name="3 Coins/1 Credit" value="5" default="no" />
    <dipvalue name="2 Coins/1 Credit" value="8" default="no" />
    <dipvalue name="3 Coins/2 Credits" value="4" default="no" />
    <dipvalue name="4 Coins/3 Credits" value="1" default="no" />
    <dipvalue name="1 Coin/1 Credit" value="15" default="yes" />
    <dipvalue name="3 Coins/4 Credits" value="3" default="no" />
    <dipvalue name="2 Coins/3 Credits" value="7" default="no" />
    <dipvalue name="1 Coin/2 Credits" value="14" default="no" />
    <dipvalue name="2 Coins/5 Credits" value="6" default="no" />
    <dipvalue name="1 Coin/3 Credits" value="13" default="no" />
    <dipvalue name="1 Coin/4 Credits" value="12" default="no" />
    <dipvalue name="1 Coin/5 Credits" value="11" default="no" />
    <dipvalue name="1 Coin/6 Credits" value="10" default="no" />
    <dipvalue name="1 Coin/7 Credits" value="9" default="no" />
    <dipvalue name="Free Play" value="0" default="no" />
  </dipswitch>
  <dipswitch name="Coinage affects" tag="DSW1" mask="16">
    <diplocation name="SW1" number="4" inverted="no" />
    <dipvalue name="Coin A" value="16" default="yes" />
    <dipvalue name="Coin B" value="0" default="no" />
  </dipswitch>
  <dipswitch name="Demo Sounds" tag="DSW1" mask="32">
    <diplocation name="SW1" number="3" inverted="no" />
    <dipvalue name="Off" value="32" default="no" />
    <dipvalue name="On" value="0" default="yes" />
  </dipswitch>
  <dipswitch name="Service Mode" tag="DSW1" mask="64">
    <diplocation name="SW1" number="2" inverted="no" />
    <dipvalue name="Off" value="64" default="yes" />
    <dipvalue name="On" value="0" default="no" />
  </dipswitch>
  <dipswitch name="Flip Screen" tag="DSW1" mask="128">
    <diplocation name="SW1" number="1" inverted="no" />
    <dipvalue name="Off" value="128" default="yes" />
    <dipvalue name="On" value="0" default="no" />
  </dipswitch>
  <dipswitch name="Lives" tag="DSW2" mask="3">
    <diplocation name="SW2" number="8" inverted="no" />
    <diplocation name="SW2" number="7" inverted="no" />
    <dipvalue name="3" value="3" default="yes" />
    <dipvalue name="4" value="2" default="no" />
    <dipvalue name="5" value="1" default="no" />
    <dipvalue name="7" value="0" default="no" />
  </dipswitch>
  <dipswitch name="Cabinet" tag="DSW2" mask="4">
    <diplocation name="SW2" number="6" inverted="no" />
    <dipvalue name="Upright" value="0" default="yes" />
    <dipvalue name="Cocktail" value="4" default="no" />
  </dipswitch>
  <dipswitch name="Bonus Life" tag="DSW2" mask="24">
    <diplocation name="SW2" number="5" inverted="no" />
    <diplocation name="SW2" number="4" inverted="no" />
    <dipvalue name="20K 70K Every 70K" value="24" default="yes" />
    <dipvalue name="30K 80K Every 80K" value="16" default="no" />
    <dipvalue name="20K and 80K Only" value="8" default="no" />
    <dipvalue name="30K and 80K Only" value="0" default="no" />
  </dipswitch>
  <dipswitch name="Difficulty" tag="DSW2" mask="96">
    <diplocation name="SW2" number="3" inverted="no" />
    <diplocation name="SW2" number="2" inverted="no" />
    <dipvalue name="Easy" value="64" default="no" />
    <dipvalue name="Normal" value="96" default="yes" />
    <dipvalue name="Difficult" value="32" default="no" />
    <dipvalue name="Very Difficult" value="0" default="no" />
  </dipswitch>
  <dipswitch name="Unused" tag="DSW2" mask="128">
    <diplocation name="SW2" number="1" inverted="no" />
    <dipvalue name="Off" value="128" default="yes" />
    <dipvalue name="On" value="0" default="no" />
  </dipswitch>
  <port tag=":DSW1"></port>
  <port tag=":DSW2"></port>
  <port tag=":P1"></port>
  <port tag=":P2"></port>
  <port tag=":SYSTEM"></port>
  <driver status="good" emulation="good" savestate="supported" requiresartwork="no" unofficial="no" nosoundhardware="no" incomplete="no" />
</machine>