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

  <info>
    <manufacturer>Panasonic</manufacturer>
    <code>FS-A1F</code>
    <release_year>1987</release_year>
    <description>This is the FS-A1mkII but with built in disk drive. Also with built in software.</description>
    <type>MSX2</type>
    <region>jp</region>
  </info>

  <!-- DA1024D0365R is the text on the 128kB maskROM that contains
       BASIC 32K / SUBROM 16KB / DISKROM 16KB / KANJI DRIVER 32KB /
       Cockpit software 32KB
       Thanks to Leonard Oliveira for dumping the maskROM.
       (It was identical to the concatenation of the separate ROM files.)
  -->

  <CassettePort/>

  <devices>

    <Kanji id="Kanji ROM">
      <rom>
        <filename>fs-a1f_kanjifont.rom</filename>
        <sha1>5e872d5853698731a0ed22fb72dbcdfd59cd19c3</sha1>
      </rom>
      <io base="0xD8" num="2" type="O"/>
      <io base="0xD9" num="1" type="I"/>
      <level_2_via>only_level_1</level_2_via> <!-- checked by kanjitest v1.x on iyatemu's -->
    </Kanji>

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

    <PPI id="ppi">
      <sound>
        <volume>16000</volume>
      </sound>
      <io base="0xA8" num="8"/> <!-- S-1985 mirrors -->
      <keyboard_type>jp_jis</keyboard_type>
      <has_keypad>true</has_keypad>
      <key_ghosting_sgc_protected>false</key_ghosting_sgc_protected>
      <code_kana_locks>true</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">
      <keyboardlayout>JIS</keyboardlayout>
      <sound>
        <volume>21000</volume>
      </sound>
      <io base="0xA0" num="8" type="IO"/> <!-- S-1985 mirrors -->
      <ignorePortDirections>true</ignorePortDirections> <!-- not sure, but guess based on use of Engine IC -->
    </PSG>

    <RTC id="Real time clock">
      <sramname>fs-a1f.cmos</sramname>
      <io base="0xB4" num="4" type="IO"/> <!-- S-1985 mirrors -->
    </RTC>

    <PrinterPort id="Printer Port">
      <io base="0x90" num="8" type="IO"/> <!-- S-1985 mirrors -->
      <bidirectional>true</bidirectional> <!-- S-1985 feature (but not used, nor implemented) -->
      <unused_bits>0x00</unused_bits>
    </PrinterPort>

    <primary slot="0">
      <ROM id="MSX BIOS with BASIC ROM">
        <rom>
          <filename>DA1024D0365R.rom</filename>
          <window base="0x0000" size="0x8000"/>
          <sha1>9a62d7a5ccda974261f7c0600476d85e10deb99b</sha1>
        </rom>
        <mem base="0x0000" size="0x8000"/>
      </ROM>
    </primary>

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

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

    <primary slot="3">

      <secondary slot="0">
        <MemoryMapper id="Main RAM">
          <initialContent encoding="gz-base64">eJxjYBhY8H+AAQAioH+B</initialContent> <!-- ((chr(0) * 128) + (chr(255) * 128)), in the machine of Peter Hanraets with serial 8FAKC46364. -->
          <size>64</size>
          <mem base="0x0000" size="0x10000"/>
        </MemoryMapper>
      </secondary>

      <secondary slot="1">
        <ROM id="MSX Sub ROM">
          <rom>
            <filename>DA1024D0365R.rom</filename>
            <window base="0x8000" size="0x4000"/>
            <sha1>9a62d7a5ccda974261f7c0600476d85e10deb99b</sha1>
          </rom>
          <mem base="0x0000" size="0x4000"/>
        </ROM>
        <ROM id="MSX Kanji Driver">
          <rom>
            <filename>DA1024D0365R.rom</filename>
            <window base="0x10000" size="0x8000"/>
            <sha1>9a62d7a5ccda974261f7c0600476d85e10deb99b</sha1>
          </rom>
          <mem base="0x4000" size="0x8000"/>
        </ROM>
      </secondary>

      <secondary slot="2">
        <TC8566AF id="Memory Mapped FDC">
          <io_regs>7FF8</io_regs>
          <drives>1</drives>
          <rom>
            <filename>DA1024D0365R.rom</filename>
            <window base="0xC000" size="0x4000"/>
            <sha1>9a62d7a5ccda974261f7c0600476d85e10deb99b</sha1>
          </rom>
          <mem base="0x4000" size="0x8000"/>
        </TC8566AF>
      </secondary>

      <secondary slot="3">
        <ROM id="A1 Cockpit">
          <rom>
            <filename>DA1024D0365R.rom</filename>
            <window base="0x18000" size="0x8000"/>
            <sha1>9a62d7a5ccda974261f7c0600476d85e10deb99b</sha1>
          </rom>
          <mem base="0x4000" size="0x8000"/>
        </ROM>
      </secondary>

    </primary>

  </devices>

</msxconfig>
