<?xml version="1.0" ?>
<!DOCTYPE msxconfig SYSTEM 'msxconfig2.dtd'>
<msxconfig>

 <!-- Info kindly provided by bsittler, based on his unit with serial number
      004006. Thanks! -->

  <info>
    <manufacturer>Yamaha</manufacturer>
    <code>CX5MU</code>
    <release_year>1984</release_year>
    <description>The famous synthesizer MSX. This is the first version with built in SFG-01. Has 32kB RAM. This is the model for the USA market.</description>
    <type>MSX</type>
    <region>us</region>
  </info>

  <CassettePort/>

  <devices>

    <PPI id="ppi">
      <sound>
        <volume>16000</volume>
      </sound>
      <io base="0xA8" num="4"/>
      <keyboard_type>int</keyboard_type>
      <has_keypad>false</has_keypad>
      <key_ghosting_sgc_protected>true</key_ghosting_sgc_protected>
      <code_kana_locks>false</code_kana_locks>
      <graph_locks>false</graph_locks>
    </PPI>

    <VDP id="VDP">
      <io base="0x98" num="4" type="O"/>
      <io base="0x98" num="2" type="I"/>
      <version>TMS9918A</version> <!-- TMS9918ANL -->
    </VDP>

    <PSG id="PSG">
      <type>YM2149</type>
      <sound>
        <volume>21000</volume>
      </sound>
      <io base="0xA0" num="4" type="IO"/>
      <ignorePortDirections>false</ignorePortDirections> <!-- not sure, but guess based on discrete PSG chip -->
    </PSG>

    <PrinterPort id="Printer Port">
      <io base="0x90" num="2"/>
    </PrinterPort>

    <primary slot="0">
      <RAM id="Main RAM">
        <mem base="0x8000" size="0x8000"/>
      </RAM>
      <ROM id="MSX BIOS with BASIC ROM">
        <rom>
          <sha1>706dd67036baeec7127e4ccd8c8db8f6ce7d0e4c</sha1>
          <filename>cx5m_basic-bios1.rom</filename>
        </rom>
        <mem base="0x0000" size="0x8000"/>
      </ROM>
    </primary>

    <primary external="true" slot="1"/>

    <!-- Note that this slot is not a standard MSX cartridgeslot, but a 50 pins
    male connector, carrying all MSX cartridgeslot signals. On a real machine
    you can use the Yamaha CA-01 Single Cartridge Adapter to change this slot
    into a normal MSX cartridge slot. As openMSX doesn't model these, consider
    this slot to have this adapter connected... -->
    <primary external="true" slot="2"/>

    <primary slot="3">

    <!-- Note that this device can be plugged out. What is left is not a standard MSX cartridgeslot, but a 60 pins male edge connector, carrying all MSX cartridgeslot signals. -->
      <YamahaSFG id="Yamaha SFG-01">
        <variant>YM2151</variant>
        <mem base="0x0000" size="0x10000"/>
        <sound>
          <volume>30000</volume>
        </sound>
        <rom>
          <sha1>49a1750c10e407293af6bce27a02e99307ceba12</sha1>
          <filename>sfg-01.rom</filename>
        </rom>
      </YamahaSFG>

    </primary>

  </devices>

</msxconfig>
