<machine name="ghoulsmaiden" sourcefile="hbmame/drivers/cps1mis.cpp" cloneof="ghouls" romof="ghouls" isbios="no" isdevice="no" ismechanical="no" runnable="yes">
  <description>Ghouls'n Ghosts - Maiden Artoria Edition (World)</description>
  <year>2026</year>
  <manufacturer>GoodLuckTrying</manufacturer>
  <rom name="dme_29maiden.10h" size="131072" crc="62bc0f9f" sha1="cd715aa5ccad61bc2c038d32594843377d2ea8ab" region="maincpu" offset="0" status="good" optional="no" />
  <rom name="dme_30maiden.10j" size="131072" crc="3d770ee1" sha1="a5f913923c078187b26783ef0baae3aed7361e66" region="maincpu" offset="1" status="good" optional="no" />
  <rom name="dme_27maiden.9h" size="131072" crc="717dfa2f" sha1="64a0397e9203cdf0e92d07adef6de94a7ee3fd47" region="maincpu" offset="40000" status="good" optional="no" />
  <rom name="dme_28maiden.9j" size="131072" crc="00136f06" sha1="430d469717c3535a06d74d1df23c5fa348a87793" region="maincpu" offset="40001" status="good" optional="no" />
  <rom name="dm-17maiden.7j" size="524288" crc="f96c3f5d" sha1="2be095270f3afe827306ef19df4ac3a3bfaeab35" region="maincpu" offset="80000" status="good" optional="no" />
  <rom name="dm-05maiden.3a" size="524288" crc="089d3e31" sha1="e9f9406fc16686a98e1372bc09e7c51456315a66" region="gfx" offset="0" status="good" optional="no" />
  <rom name="dm-07maiden.3f" size="524288" crc="b7b0567c" sha1="f3d74ebd9daa4bdc7e91080f02f801e2ac9dd40d" region="gfx" offset="2" status="good" optional="no" />
  <rom name="dm-06maiden.3c" size="524288" crc="92ca0ba1" sha1="a5dd14e8cb0cb4c7f4ebad07cfc36abf148fcf78" region="gfx" offset="4" status="good" optional="no" />
  <rom name="dm-08maiden.3g" size="524288" crc="0f39afc8" sha1="44d499fd38e2e9155a843ab834bee4e91ced4375" region="gfx" offset="6" status="good" optional="no" />
  <rom name="09maiden.4a" size="65536" crc="e99f777e" sha1="015549b7745e7a1c26ae50450e5a3ff0116c64eb" region="gfx" offset="200000" status="good" optional="no" />
  <rom name="18maiden.7a" size="65536" crc="9798c4be" sha1="601a2122e774b5142d152d9666cbec0a512c0fae" region="gfx" offset="200001" status="good" optional="no" />
  <rom name="13maiden.4e" size="65536" crc="d731677a" sha1="53138a653737556023e384fb075c971ca0640235" region="gfx" offset="200002" status="good" optional="no" />
  <rom name="22maiden.7e" size="65536" crc="e9282194" sha1="47d635673d894725cb343b2753e2be632bcb23cd" region="gfx" offset="200003" status="good" optional="no" />
  <rom name="11maiden.4c" size="65536" crc="f94717d0" sha1="dc0e13727d0a2b4111f9fa64ca272986de822196" region="gfx" offset="200004" status="good" optional="no" />
  <rom name="20maiden.7c" size="65536" crc="d2605c04" sha1="e6e5343d1f3737a0cdd815c8045acc81f1e6587e" region="gfx" offset="200005" status="good" optional="no" />
  <rom name="15maiden.4g" size="65536" crc="ad8a53ec" sha1="48a763d5ab320a1b3ce9f8ec5319a6a854f34fca" region="gfx" offset="200006" status="good" optional="no" />
  <rom name="24maiden.7g" size="65536" crc="ae66ab27" sha1="3eb22952e3b6843e13d05f14b3ccaf7c504c7aeb" region="gfx" offset="200007" status="good" optional="no" />
  <rom name="10maiden.4b" size="65536" crc="afce74dd" sha1="a13d7a7e11f900d6f5a7273ca93e30f1e0a385b1" region="gfx" offset="280000" status="good" optional="no" />
  <rom name="19maiden.7b" size="65536" crc="0b4e155f" sha1="268188162286e12af63653d5f700263f6f3b70d4" region="gfx" offset="280001" status="good" optional="no" />
  <rom name="14maiden.4f" size="65536" crc="5bc8e886" sha1="17b727169c68b0ed3574bc321db4fbfd4d2f9266" region="gfx" offset="280002" status="good" optional="no" />
  <rom name="23maiden.7f" size="65536" crc="095a6785" sha1="659530f934c1f33067e9af71503b92da88315018" region="gfx" offset="280003" status="good" optional="no" />
  <rom name="12maiden.4d" size="65536" crc="c8a5b7e9" sha1="35b2f96994338816b29e1f65127f81d949a3a775" region="gfx" offset="280004" status="good" optional="no" />
  <rom name="21maiden.7d" size="65536" crc="7d2f39f4" sha1="6156385421104fef4e7b02bb1aba04f13aadb750" region="gfx" offset="280005" status="good" optional="no" />
  <rom name="16maiden.4h" size="65536" crc="2913fa9b" sha1="c37e526f5c647091cc45fa045f1e8049ec71483a" region="gfx" offset="280006" status="good" optional="no" />
  <rom name="25maiden.7h" size="65536" crc="35d1b525" sha1="e10226e6a34c827a44908384c37a0f9aaa74c934" region="gfx" offset="280007" status="good" optional="no" />
  <rom name="26.10a" merge="c02.m1" size="65536" crc="3692f6e5" sha1="61b8438d60a39b4cf5062dff0a53228e8a4e4b5f" region="audiocpu" offset="0" status="good" optional="no" />
  <rom name="ghouls.key" merge="ghouls.key" size="128" crc="888fd6ec" sha1="7dcd7493119b42eb8cab76a6f417685e578e26f4" region="control" offset="0" status="good" optional="no" />
  <device_ref tag=":maincpu" name="m68000" />
  <device_ref tag=":audiocpu" name="z80" />
  <device_ref tag=":screen" name="screen" />
  <device_ref tag=":gfxdecode" name="gfxdecode" />
  <device_ref tag=":palette" name="palette" />
  <device_ref tag=":mono" name="speaker" />
  <device_ref tag=":soundlatch" name="generic_latch_8" />
  <device_ref tag=":soundlatch2" name="generic_latch_8" />
  <device_ref tag=":2151" name="ym2151" />
  <device_ref tag=":oki" name="okim6295" />
  <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="10000000" />
  <chip type="cpu" tag="audiocpu" name="Zilog Z80" clock="3579545" />
  <chip type="audio" tag="mono" name="Speaker" />
  <chip type="audio" tag="2151" name="YM2151 OPM" clock="3579545" />
  <chip type="audio" tag="oki" name="OKI MSM6295 ADPCM" clock="1000000" />
  <display tag="screen" type="raster" rotate="0" width="384" height="224" refresh="59.637405" pixclock="8000000" htotal="512" hbend="64" hbstart="448" 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" />
    <control type="joy" player="2" buttons="2" ways="4" reverse="no" />
  </input>
  <dipswitch name="Coin A" tag="DSWA" mask="7">
    <diplocation name="SW(A)" number="1" inverted="no" />
    <diplocation name="SW(A)" number="2" inverted="no" />
    <diplocation name="SW(A)" number="3" inverted="no" />
    <dipvalue name="4 Coins/1 Credit" value="0" default="no" />
    <dipvalue name="3 Coins/1 Credit" value="1" default="no" />
    <dipvalue name="2 Coins/1 Credit" value="2" default="no" />
    <dipvalue name="1 Coin/1 Credit" value="7" default="yes" />
    <dipvalue name="1 Coin/2 Credits" value="6" default="no" />
    <dipvalue name="1 Coin/3 Credits" value="5" default="no" />
    <dipvalue name="1 Coin/4 Credits" value="4" default="no" />
    <dipvalue name="1 Coin/6 Credits" value="3" default="no" />
  </dipswitch>
  <dipswitch name="Coin B" tag="DSWA" mask="56">
    <diplocation name="SW(A)" number="4" inverted="no" />
    <diplocation name="SW(A)" number="5" inverted="no" />
    <diplocation name="SW(A)" number="6" inverted="no" />
    <dipvalue name="4 Coins/1 Credit" value="0" default="no" />
    <dipvalue name="3 Coins/1 Credit" value="8" default="no" />
    <dipvalue name="2 Coins/1 Credit" value="16" default="no" />
    <dipvalue name="1 Coin/1 Credit" value="56" default="yes" />
    <dipvalue name="1 Coin/2 Credits" value="48" default="no" />
    <dipvalue name="1 Coin/3 Credits" value="40" default="no" />
    <dipvalue name="1 Coin/4 Credits" value="32" default="no" />
    <dipvalue name="1 Coin/6 Credits" value="24" default="no" />
  </dipswitch>
  <dipswitch name="Cabinet" tag="DSWA" mask="192">
    <diplocation name="SW(A)" number="7" inverted="no" />
    <diplocation name="SW(A)" number="8" inverted="no" />
    <dipvalue name="Upright 1 Player" value="192" default="yes" />
    <dipvalue name="Upright 2 Players" value="128" default="no" />
    <dipvalue name="Cocktail" value="0" default="no" />
  </dipswitch>
  <dipswitch name="Difficulty" tag="DSWB" mask="7">
    <condition tag="DSWC" mask="128" relation="eq" value="128" />
    <diplocation name="SW(B)" number="1" inverted="no" />
    <diplocation name="SW(B)" number="2" inverted="no" />
    <diplocation name="SW(B)" number="3" inverted="no" />
    <dipvalue name="1 (Easiest)" value="4" default="no" />
    <dipvalue name="2" value="5" default="yes" />
    <dipvalue name="3" value="6" default="no" />
    <dipvalue name="4 (Normal)" value="7" default="no" />
    <dipvalue name="5" value="3" default="no" />
    <dipvalue name="6" value="2" default="no" />
    <dipvalue name="7" value="1" default="no" />
    <dipvalue name="8 (Hardest)" value="0" default="no" />
  </dipswitch>
  <dipswitch name="Unused" tag="DSWB" mask="8">
    <diplocation name="SW(B)" number="4" inverted="no" />
    <dipvalue name="Off" value="8" default="yes" />
    <dipvalue name="On" value="0" default="no" />
  </dipswitch>
  <dipswitch name="Bonus Life" tag="DSWB" mask="48">
    <diplocation name="SW(B)" number="5" inverted="no" />
    <diplocation name="SW(B)" number="6" inverted="no" />
    <dipvalue name="10K, 30K and every 30K" value="32" default="no" />
    <dipvalue name="20K, 50K and every 70K" value="16" default="no" />
    <dipvalue name="30K, 60K and every 70K" value="48" default="yes" />
    <dipvalue name="40K, 70K and every 80K" value="0" default="no" />
  </dipswitch>
  <dipswitch name="Unused" tag="DSWB" mask="64">
    <diplocation name="SW(B)" number="7" inverted="no" />
    <dipvalue name="Off" value="64" default="yes" />
    <dipvalue name="On" value="0" default="no" />
  </dipswitch>
  <dipswitch name="Unused" tag="DSWB" mask="128">
    <diplocation name="SW(B)" number="8" inverted="no" />
    <dipvalue name="Off" value="128" default="yes" />
    <dipvalue name="On" value="0" default="no" />
  </dipswitch>
  <dipswitch name="Lives" tag="DSWC" mask="3">
    <diplocation name="SW(C)" number="1" inverted="no" />
    <diplocation name="SW(C)" number="2" 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="6" value="0" default="no" />
  </dipswitch>
  <dipswitch name="Unused" tag="DSWC" mask="4">
    <diplocation name="SW(C)" number="3" inverted="no" />
    <dipvalue name="Off" value="4" default="yes" />
    <dipvalue name="On" value="0" default="no" />
  </dipswitch>
  <dipswitch name="Unused" tag="DSWC" mask="8">
    <diplocation name="SW(C)" number="4" inverted="no" />
    <dipvalue name="Off" value="8" default="yes" />
    <dipvalue name="On" value="0" default="no" />
  </dipswitch>
  <dipswitch name="Flip Screen" tag="DSWC" mask="16">
    <diplocation name="SW(C)" number="5" inverted="no" />
    <dipvalue name="Off" value="16" default="yes" />
    <dipvalue name="On" value="0" default="no" />
  </dipswitch>
  <dipswitch name="Unused" tag="DSWC" mask="32">
    <diplocation name="SW(C)" number="6" inverted="no" />
    <dipvalue name="Off" value="32" default="yes" />
    <dipvalue name="On" value="0" default="no" />
  </dipswitch>
  <dipswitch name="Allow Continue" tag="DSWC" mask="64">
    <diplocation name="SW(C)" number="7" inverted="no" />
    <dipvalue name="No" value="0" default="no" />
    <dipvalue name="Yes" value="64" default="yes" />
  </dipswitch>
  <dipswitch name="Game Mode" tag="DSWC" mask="128">
    <diplocation name="SW(C)" number="8" inverted="no" />
    <dipvalue name="Game" value="128" default="yes" />
    <dipvalue name="Test" value="0" default="no" />
  </dipswitch>
  <dipswitch name="Service Mode" tag="IN0" mask="64">
    <dipvalue name="Off" value="64" default="yes" />
    <dipvalue name="On" value="0" default="no" />
  </dipswitch>
  <port tag=":DSWA"></port>
  <port tag=":DSWB"></port>
  <port tag=":DSWC"></port>
  <port tag=":IN0"></port>
  <port tag=":IN1"></port>
  <driver status="good" emulation="good" savestate="supported" requiresartwork="no" unofficial="no" nosoundhardware="no" incomplete="no" />
</machine>