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

  <info>
    <manufacturer>Sony</manufacturer>
    <code>HB-F9S</code>
    <release_year>1985</release_year>
    <description>Spanish version of the HB-F9P.</description>
    <type>MSX2</type>
    <region>es</region>
  </info>

  <CassettePort/>

  <devices>

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

    <PPI id="ppi">
      <sound>
        <volume>16000</volume>
      </sound>
      <io base="0xA8" num="8"/> <!-- S-1985 mirrors -->
      <keyboard_type>es</keyboard_type>
      <has_keypad>true</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> <!-- in S-1985 MSX-ENGINE -->
      <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>hb-f9s.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>hb-f9s_IC11.rom</filename>
          <sha1>4811956f878c3e03da46317f787cdc4bebc86f47</sha1> <!-- EPROM dump  of IC11 -->
        </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="MSX Sub ROM">
          <rom>
            <filename>hb-f9s_IC12.rom</filename>
            <sha1>1166a93d7185ba024bdf2bfa9a30e1c447fb6db1</sha1><!-- EPROM dump  of IC12 -->
            <window base="0x0000" size="0x4000"/>
          </rom>
          <mem base="0x0000" size="0x4000"/>
        </ROM>
        <ROM id="Memovision 2">
          <rom>
            <filename>hb-f9s_IC12.rom</filename>
            <sha1>1166a93d7185ba024bdf2bfa9a30e1c447fb6db1</sha1><!-- EPROM dump  of IC12 -->
            <window base="0x4000" size="0x4000"/>
          </rom>
          <mem base="0x4000" size="0x4000"/>
        </ROM>
      </secondary>

      <secondary slot="1">
        <ROM id="Memovision 1/1">
          <rom>
            <filename>hb-f9s_IC13.rom</filename>
            <sha1>7efac54dd8f580f3b7809ab35db4ae58f0eb84d1</sha1><!-- EPROM dump  of IC13 -->
            <window base="0x4000" size="0x4000"/>
          </rom>
          <mem base="0x4000" size="0x4000"/>
        </ROM>
        <ROM id="Memovision 1/2">
          <rom>
            <filename>hb-f9s_IC13.rom</filename>
            <sha1>7efac54dd8f580f3b7809ab35db4ae58f0eb84d1</sha1><!-- EPROM dump  of IC13 -->
            <window base="0x0000" size="0x4000"/>
          </rom>
          <mem base="0x8000" size="0x4000"/>
        </ROM>
      </secondary>

      <secondary slot="2">
        <MemoryMapper id="Main RAM">
          <size>128</size>
          <mem base="0x0000" size="0x10000"/>
          <initialContent encoding="hex">00</initialContent> <!-- confirmed by Sandy's HB-F9P machine with serial no. 400102, also assumed for the S version, see also issue #1434 -->
        </MemoryMapper>
      </secondary>

      <secondary slot="3"/>

    </primary>

  </devices>

</msxconfig>
