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

  <info>
    <manufacturer>Yamaha</manufacturer>
    <code>CX5MII</code> <!-- specifically, a CX-5MIIB (Italian model) -->
    <release_year>1985</release_year>
    <description/>
    <type>MSX</type>
  </info>

  <MapperReadBackBits>largest</MapperReadBackBits>

  <CassettePort/>

  <devices>

    <PPI id="ppi">
      <sound>
        <volume>16000</volume>
      </sound>
      <io base="0xA8" num="4"/>
      <keyboard_type>gb</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="8" type="O"/> <!-- S-3527 mirrors -->
      <io base="0x98" num="8" type="I"/> <!-- S-3527 mirrors -->
      <version>V9938</version>
      <vram>16</vram>
    </VDP>

    <PSG id="PSG">
      <type>YM2149</type> <!-- in S-3527 MSX-ENGINE -->
      <sound>
        <volume>21000</volume>
      </sound>
      <io base="0xA0" num="2" type="O"/>
      <io base="0xA2" num="1" type="I"/>
      <ignorePortDirections>true</ignorePortDirections> <!-- not sure, but guess based on use of Engine IC -->
    </PSG>

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

    <primary slot="0">
      <ROM id="MSX BIOS with BASIC ROM">
        <rom>
          <sha1>0dde59e8d98fa524961cd37b0e100dbfb42cf576</sha1>
          <filename>cx5mii_basic-bios1.rom</filename>
        </rom>
        <mem base="0x0000" size="0x8000"/>
      </ROM>
    </primary>

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

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

    <primary slot="3">

      <secondary slot="0">
        <ROM id="CX5MII MSX sub ROM">
          <rom>
            <sha1>0ce800666c0d66bc2aa0b73a16f228289b9198be</sha1>
            <filename>cx5mii_sub.rom</filename>
          </rom>
          <mem base="0x4000" size="0x4000"/>
        </ROM>
      </secondary>

    <!-- Note that this device can be plugged out. What is left is not a standard MSX cartridgeslot, but a kind of mini cartridgeslot. -->
      <secondary slot="1">
        <ROM id="FM Voicing Program II">
          <rom>
            <sha1>7b1798561ee1844a7d6432924fbee9b4fc591c19</sha1>
            <filename>cx5mii_fmvoicingprogramii.rom</filename>
          </rom>
          <mem base="0x4000" size="0x4000"/>
        </ROM>
      </secondary>

      <secondary slot="2">
        <MemoryMapper id="Main RAM">
          <size>64</size>
          <mem base="0x0000" size="0x10000"/>
        </MemoryMapper>
      </secondary>

    <!-- Note that this device can be plugged out. What is left is not a
    standard MSX cartridgeslot, but a 60 pins card edge connector, carrying all
    MSX cartridgeslot signals. -->
      <secondary slot="3">
        <YamahaSFG id="Yamaha SFG-05">
          <mem base="0x0000" size="0x10000"/>
          <sound>
            <volume>30000</volume>
          </sound>
          <rom>
            <sha1>6680d7118d85418813f1db9449bf3e20942b16da</sha1>
            <filename>sfg-05.rom</filename>
          </rom>
        </YamahaSFG>
      </secondary>

    </primary>

  </devices>

</msxconfig>
