<machine name="edfb" sourcefile="jaleco/megasys1.cpp" cloneof="edf" romof="edf" isbios="no" isdevice="no" ismechanical="no" runnable="yes">
  <description>E.D.F.: Earth Defense Force (set 3)</description>
  <year>1991</year>
  <manufacturer>Jaleco</manufacturer>
  <rom name="edf_5_ver1.b5" size="262144" crc="1a5958a9" sha1="e1f9a9690ece609545b885fdb99a9f4ab0ebd154" region="maincpu" offset="0" status="good" optional="no" />
  <rom name="edf_6_ver1.b3" size="262144" crc="b1987203" sha1="edd4cf55ff91d2918f9f8104a7d8565621d44eea" region="maincpu" offset="1" status="good" optional="no" />
  <rom name="edf1.f5" merge="edf1.f5" size="131072" crc="2290ea19" sha1="64c9394bd4d5569d68833d2e57abaf2f1af5be97" region="audiocpu" offset="0" status="good" optional="no" />
  <rom name="edf2.f3" merge="edf2.f3" size="131072" crc="ce93643e" sha1="686bf0ec104af8c97624a782e0d60afe170fd945" region="audiocpu" offset="1" status="good" optional="no" />
  <rom name="edf.mcu" merge="edf.mcu" size="16384" crc="1503026d" sha1="5ff63cc5aa58b7a805c019612ddd6d5191a92333" region="iomcu" offset="0" status="good" optional="no" />
  <rom name="edf_m04.rom" merge="edf_m04.rom" size="524288" crc="6744f406" sha1="3b8f13ca968456186d9ad61f34611b7eab62ea86" region="scroll0" offset="0" status="good" optional="no" />
  <rom name="edf_m05.rom" merge="edf_m05.rom" size="524288" crc="6f47e456" sha1="823baa9dc4cb2425c64e9332c6ed4678e49d0c7b" region="scroll1" offset="0" status="good" optional="no" />
  <rom name="edf_09.rom" merge="edf_09.rom" size="131072" crc="96e38983" sha1="a4fb94f15d9a9f7df1645be66fe3e179d0ebf765" region="scroll2" offset="0" status="good" optional="no" />
  <rom name="edf_m03.rom" merge="edf_m03.rom" size="524288" crc="ef469449" sha1="bc591e56c5478383eb4bd29f16133c6ba407c22f" region="sprites" offset="0" status="good" optional="no" />
  <rom name="edf_m02.rom" merge="edf_m02.rom" size="262144" crc="fc4281d2" sha1="67ea324ff359a5d9e7538c08865b5eeebd16704b" region="oki1" offset="0" status="good" optional="no" />
  <rom name="edf_m01.rom" merge="edf_m01.rom" size="262144" crc="9149286b" sha1="f6c66c5cd50b72c4d401a263c65a8d4ef8cf9221" region="oki2" offset="0" status="good" optional="no" />
  <rom name="rd.20n" merge="rd.20n" size="512" crc="1d877538" sha1="a5be0dc65dcfc36fbba10d1fddbe155e24b6122f" region="proms" offset="0" status="good" optional="no" />
  <device_ref tag=":maincpu" name="m68000" />
  <device_ref tag=":scantimer" name="timer" />
  <device_ref tag=":audiocpu" name="m68000" />
  <device_ref tag=":screen" name="screen" />
  <device_ref tag=":gfxdecode" name="gfxdecode" />
  <device_ref tag=":palette" name="palette" />
  <device_ref tag=":scroll0" name="ms1_tmap" />
  <device_ref tag=":scroll1" name="ms1_tmap" />
  <device_ref tag=":scroll2" name="ms1_tmap" />
  <device_ref tag=":speaker" name="speaker" />
  <device_ref tag=":soundlatch1" name="generic_latch_16" />
  <device_ref tag=":soundlatch2" name="generic_latch_16" />
  <device_ref tag=":ymsnd" name="ym2151" />
  <device_ref tag=":oki1" name="okim6295" />
  <device_ref tag=":oki2" name="okim6295" />
  <device_ref tag=":iomcu" name="tmp91640" />
  <chip type="cpu" tag="maincpu" name="Motorola MC68000" clock="8000000" />
  <chip type="cpu" tag="audiocpu" name="Motorola MC68000" clock="7000000" />
  <chip type="cpu" tag="iomcu" name="Toshiba TMP91640" clock="8000000" />
  <chip type="audio" tag="speaker" name="Speaker" />
  <chip type="audio" tag="ymsnd" name="YM2151 OPM" clock="3500000" />
  <chip type="audio" tag="oki1" name="OKI MSM6295 ADPCM" clock="4000000" />
  <chip type="audio" tag="oki2" name="OKI MSM6295 ADPCM" clock="4000000" />
  <display tag="screen" type="raster" rotate="0" width="256" height="224" refresh="56.205036" pixclock="6000000" htotal="384" hbend="0" hbstart="256" vtotal="278" 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="8" reverse="no" />
    <control type="joy" player="2" buttons="2" ways="8" reverse="no" />
  </input>
  <dipswitch name="Coin A" tag="DSW1" mask="7">
    <dipvalue name="3 Coins/1 Credit" value="4" 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="3" default="no" />
    <dipvalue name="1 Coin/3 Credits" value="5" default="no" />
    <dipvalue name="1 Coin/4 Credits" value="1" default="no" />
    <dipvalue name="1 Coin/5 Credits" value="6" default="no" />
    <dipvalue name="Free Play" value="0" default="no" />
  </dipswitch>
  <dipswitch name="Coin B" tag="DSW1" mask="56">
    <dipvalue name="4 Coins/1 Credit" value="0" default="no" />
    <dipvalue name="3 Coins/1 Credit" value="32" 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="24" default="no" />
    <dipvalue name="1 Coin/3 Credits" value="40" default="no" />
    <dipvalue name="1 Coin/4 Credits" value="8" default="no" />
    <dipvalue name="1 Coin/5 Credits" value="48" default="no" />
  </dipswitch>
  <dipswitch name="Demo Sounds" tag="DSW1" mask="64">
    <dipvalue name="Off" value="0" default="no" />
    <dipvalue name="On" value="64" default="yes" />
  </dipswitch>
  <dipswitch name="Service Mode" tag="DSW1" mask="128">
    <dipvalue name="Off" value="128" default="yes" />
    <dipvalue name="On" value="0" default="no" />
  </dipswitch>
  <dipswitch name="DSW-B bits 2-0" tag="DSW2" mask="7">
    <dipvalue name="0" value="0" default="no" />
    <dipvalue name="1" value="1" default="no" />
    <dipvalue name="2" value="2" default="no" />
    <dipvalue name="3" value="3" default="no" />
    <dipvalue name="4" value="4" default="no" />
    <dipvalue name="5" value="5" default="no" />
    <dipvalue name="6" value="6" default="no" />
    <dipvalue name="7" value="7" default="yes" />
  </dipswitch>
  <dipswitch name="Lives" tag="DSW2" mask="8">
    <dipvalue name="3" value="8" default="yes" />
    <dipvalue name="4" value="0" default="no" />
  </dipswitch>
  <dipswitch name="Difficulty" tag="DSW2" mask="48">
    <dipvalue name="Easy" value="0" default="no" />
    <dipvalue name="Normal" value="48" default="yes" />
    <dipvalue name="Hard" value="16" default="no" />
    <dipvalue name="Very Hard" value="32" default="no" />
  </dipswitch>
  <dipswitch name="Unknown" tag="DSW2" mask="64">
    <dipvalue name="Off" value="64" default="yes" />
    <dipvalue name="On" value="0" default="no" />
  </dipswitch>
  <dipswitch name="Flip Screen" tag="DSW2" mask="128">
    <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>