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

  <info>
    <manufacturer>Toshiba</manufacturer>
    <code>HX-20E</code>
    <release_year>1985</release_year>
    <description>MSX1 with RAM disk feature and embedded English Word Processor.</description>
    <type>MSX</type>
  </info>

  <!-- All info based on the machine of Isaac Santaolalla with serial 200075

       CPU: Sharp LH0080A
       VDP: T6950
       TCX-1012 present
       PSG: GI AY-3-8910A
       Other chips: Toshiba TMM23256P (32kB ROM), TC53257P (32kB ROM), 8x TMM4164AP-15 (8kB RAM), 2x MB81416-12 (VRAM) 

       VDP 4k/16k has effct: NO
       VDP has address latch: NO
       VDP sprite clones (?): NO
       VDP has screen 2 mirrored mode: NO
       VDP has mode 3 mixed mode: YES

       Z80 scf: 01ED29ED01FC29FC (standard)
       Z80 cpl: 3AFF12D7 (standard)
       Z80 out (c),0: 0 (MSX)
       PSG pin 6/7 quirk: C (YES)
       PSGmask: AY8910

       As the manuals were in Spanish and it seems to appear only in Spain, it
       seems to be a machine for the Spanish market, with an international
       (non-Spanish!) keyboard.
  -->

  <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>false</key_ghosting_sgc_protected>
      <code_kana_locks>false</code_kana_locks>
      <graph_locks>false</graph_locks>
    </PPI>

    <VDP id="VDP">
      <version>T6950PAL</version>
      <io base="0x98" num="2"/>
    </VDP>

    <PSG id="PSG">
      <type>AY8910</type>
      <sound>
        <volume>21000</volume>
        <balance channel="1">0</balance>
        <balance channel="2">0</balance>
        <balance channel="3">0</balance>
      </sound>
      <io base="0xA0" num="2" type="O"/>
      <io base="0xA2" num="1" type="I"/>
      <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">
      <ROM id="MSX BIOS with BASIC ROM">
        <rom>
          <filename>hx-20E_basic-bios.rom</filename>
          <sha1>829c00c3114f25b3dae5157c0a238b52a3ac37db</sha1>
        </rom>
        <mem base="0x0000" size="0x8000"/>
      </ROM>
      <RAM id="Upper RAM">
        <mem base="0x8000" size="0x8000"/>
        <initialContent encoding="gz-base64">eJxjYEAF/9EAAIeYD/E=</initialContent> <!-- See lower -->
      </RAM>
    </primary>

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

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

    <primary slot="3">

      <secondary slot="0">
        <RAM id="Lower 32 KB of main RAM">
          <mem base="0x0000" size="0x8000"/>
          <initialContent encoding="gz-base64">eJxjYEAF/9EAAIeYD/E=</initialContent> <!-- initial pattern: 16x0x00, 16x0xFF, etc. -->
        </RAM>
      </secondary>

      <secondary slot="3">
        <ROM id="Word Processor ROM">
          <rom>
            <sha1>9f7cfa932bd7dfd0d9ecaadc51655fb557c2e125</sha1>
            <filename>hx-20E_wordprocessor.rom</filename>
          </rom>
          <mem base="0x4000" size="0x8000"/> <!-- Not mirrored! -->
        </ROM>
      </secondary>

    </primary>

  </devices>

</msxconfig>
