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

  <info>
    <manufacturer>Yamaha</manufacturer>
    <code>YIS-805/128R2</code> <!-- this is on the back plate -->
    <release_year>1986</release_year>
    <description>Russian MSX2 for use in classroom network (as teacher).</description>
    <type>MSX2</type>
  </info>

  <MapperReadBackBits>largest</MapperReadBackBits>

  <CassettePort/>

  <devices>

    <S1985 id="S1985">
      <sramname>yis805-128r2_s1985.sram</sramname>
    </S1985>

    <primary slot="0">
      <ROM id="MSX BIOS with BASIC ROM">
        <mem base="0x0000" size="0x8000"/>
        <rom>
          <sha1>0f851ee7a1cf79819f61cc89e9948ee72a413802</sha1>
          <filename>yis805-128r2_basic-bios2.rom</filename>
        </rom>
      </ROM>
    </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>7fd2a28c4fdaeb140f3c8c8fb90271b1472c97b9</sha1>
            <filename>yis805-128r2_painter.rom</filename>
          </rom>
        </ROM>
      </secondary>

      <secondary slot="1">
        <ROM id="MSX Sub ROM">
          <mem base="0x0000" size="0x4000"/>
          <rom>
            <sha1>03bf6d2ac86f5c9ab618e155442787c700f99fed</sha1>
            <filename>yis805-128r2_msx2sub.rom</filename>
          </rom>
        </ROM>

        <WD2793 id="Memory Mapped FDC">
          <connectionstyle>National</connectionstyle>
          <mem base="0x4000" size="0x8000"/>
          <broken_fdc_read>false</broken_fdc_read>
          <rom>
            <sha1>3a481c7b7e4f0406a55952bc5b9f8cf9d699376c</sha1>
            <filename>yis805-128r2_disk.rom</filename>
          </rom>
          <drives>2</drives>
        </WD2793>
      </secondary>

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

<!-- not working, because of missing network chip YM3802 emulation in openMSX
Note that this slot is the same 60 pin edge connector that is also used to
connect other Yamaha "units", like the SFG-01/05 modules.

      <secondary slot="3">
        <ROM id="NetROM">
          <mem base="0x4000" size="0x8000"/>
          <rom>
            <sha1>307a7be064442feb4ab2e1a2bc971b138c1a1169</sha1>
            <sha1>e8fd2bbc1bdab12c73a0fec178a190f9063547bb</sha1> < ! - - based on Stanislav's dump with the last 2kB (of RAM) zeroed - - >
            <filename>yis805-128r2_net_2.rom</filename>
          </rom>
        </ROM>
      </secondary>
-->

    </primary>

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

    <PSG id="PSG">
      <type>YM2149</type> <!-- in S-1985 MSX-ENGINE -->
      <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>yis805-128r2.cmos</sramname>
    </RTC>

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

  </devices>

</msxconfig>
