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

  <info>
    <manufacturer>Yamaha</manufacturer>
    <code>AX350IIF</code>
    <release_year>?</release_year>
    <description>Arabic MSX2 sold by Al Alamiah, French edition.</description>
    <type>MSX2</type>
  </info>

  <!-- Based on the machine of Rudolf Gutlich with serial 001276.

  See: https://www.facebook.com/rgutlich/media_set?set=a.501830466650037.1073741888.100004692642194&type=1&l=c698f5cfed

  CPU: Zilog Z0840004PSC Z80 CPU
  MSX-ENGINE: S1985
  FDC: MB8877A

  Z80 scf: 01E529ED01FC29FC (dunno)
  Z80 cpl: 3AFF12D7 (standard)
  Z80 out (c),0: 0 (MSX)
  PSG pin 6/7 quirk: C (YES)
  PSGmask: AY8910-like.
  -->

  <CassettePort/>

  <devices>

    <S1985 id="S1985"> <!-- includes 5 bits mapper-read-back -->
      <sramname>ax350iif_s1985.sram</sramname>
    </S1985>

    <PPI id="ppi">
      <io base="0xA8" num="4"/>
      <sound>
        <volume>16000</volume>
      </sound>
      <keyboard_type>fr</keyboard_type> <!-- Should be French-Arabic? -->
      <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">
      <version>V9938</version>
      <vram>128</vram>
      <io base="0x98" num="8" type="O"/> <!-- S-1985 mirrors -->
      <io base="0x98" num="8" type="I"/> <!-- S-1985 mirrors -->
    </VDP>

    <PSG id="PSG">
      <type>YM2149</type> <!-- due to S1985, but mask is like AY8910... -->
      <io base="0xA0" num="2" type="O"/>
      <io base="0xA2" num="1" type="I"/>
      <sound>
        <volume>21000</volume>
      </sound>
      <ignorePortDirections>true</ignorePortDirections> <!-- not sure, but guess based on use of Engine IC -->
    </PSG>

    <RTC id="Real time clock">
      <io base="0xB4" num="2" type="O"/>
      <io base="0xB5" num="1" type="I"/>
      <sramname>ax350iif.cmos</sramname>
    </RTC>

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

    <primary slot="0">

    <secondary slot="0">
      <ROM id="MSX BIOS with BASIC ROM">
        <mem base="0x0000" size="0x8000"/>
        <rom>
          <sha1>b034764e6a8978db60b1d652917f5e24a66a7925</sha1>
          <filename>ax350iif_basic-bios2.rom</filename>
        </rom>
      </ROM>
    </secondary>

    <secondary slot="1">
      <ROM id="Arabic ROM">
        <mem base="0x4000" size="0x8000"/>
        <rom>
          <sha1>5077b9c86ce1dc0a22c71782dac7fb3ca2a467e0</sha1>
          <filename>ax350iif_arabic.rom</filename>
        </rom>
      </ROM>
    </secondary>

    <secondary slot="2">
      <ROM id="Sakhr Word Processor">
        <mem base="0x4000" size="0x8000"/>
        <rom>
          <sha1>54ff13b58868018fcd43c916b8d7c7200ebdcabe</sha1>
          <filename>ax350iif_swp.rom</filename>
        </rom>
      </ROM>
    </secondary>

    </primary>

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

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

    <primary slot="3">

      <secondary slot="0">
        <ROM id="Painter">
          <mem base="0x0000" size="0x10000"/>
          <rom>
            <sha1>ace202e87337fbc54fea21e22c0b3af0abe6f4ae</sha1>
            <filename>ax350iif_painter.rom</filename>
          </rom>
        </ROM>
      </secondary>

      <secondary slot="1">
        <ROM id="MSX2 subROM">
          <mem base="0x0000" size="0x4000"/>
          <rom>
            <sha1>4cbceba8f37f08272b612b6fc212eeaf379da9c3</sha1>
            <filename>ax350iif_msx2sub.rom</filename>
          </rom>
        </ROM>
        <WD2793 id="Memory Mapped FDC">
          <connectionstyle>National</connectionstyle>
          <mem base="0x4000" size="0x8000"/>
          <rom>
            <sha1>bd0ad648d728c691fcee08eaaaa95e15e29c0d0d</sha1>
            <filename>ax350iif_disk.rom</filename>
          </rom>
          <drives>1</drives> <!-- actually has an ext drive connector -->
        </WD2793>
      </secondary>

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

    </primary>

  </devices>

</msxconfig>
