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

  <info>
    <manufacturer>Yamaha</manufacturer>
    <code>YIS-503IIIR</code>
    <release_year>1986</release_year>
    <description>USSR MSX2 for use in classroom network (as student), with 128kB RAM and network module (not emulated).</description>
    <type>MSX2</type>
    <region>ru</region>
  </info>

  <MapperReadBackBits>largest</MapperReadBackBits>

  <CassettePort/>

  <devices>

    <primary slot="0">
      <ROM id="MSX BIOS with BASIC ROM">
        <mem base="0x0000" size="0x8000"/>
        <rom>
          <sha1>0f851ee7a1cf79819f61cc89e9948ee72a413802</sha1> <!-- verified on Jetze's machine -->
          <filename>yis-503iiir_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="MSX Sub ROM">
          <mem base="0x0000" size="0x4000"/>
          <rom>
            <sha1>03bf6d2ac86f5c9ab618e155442787c700f99fed</sha1> <!-- verified on Jetze's machine -->
            <filename>yis-503iiir_msx2sub.rom</filename>
          </rom>
        </ROM>

        <ROM id="CP/M ROM">
          <mem base="0x4000" size="0x4000"/>
          <rom>
            <sha1>f4f7a54cdf5a9dd6c59f7cb219c2c5eb0a00fa8a</sha1> <!-- verified on Jetze's machine -->
            <filename>yis-503iiir_cpm.rom</filename>
          </rom>
        </ROM>
      </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>yis-503iiir_net_2.rom</filename>
          </rom>
        </ROM>
      </secondary>
-->
    </primary>

    <PPI id="ppi">
      <io base="0xA8" num="8"/> <!-- S-3527 mirrors -->
      <sound>
        <volume>16000</volume>
      </sound>
      <keyboard_type>ru</keyboard_type>
      <has_keypad>false</has_keypad>
      <key_ghosting_sgc_protected>true</key_ghosting_sgc_protected>
      <code_kana_locks>true</code_kana_locks>
      <graph_locks>false</graph_locks>
    </PPI>

    <VDP id="VDP">
      <io base="0x98" num="8" type="O"/> <!-- S-3527 mirrors -->
      <io base="0x98" num="8" type="I"/> <!-- S-3527 mirrors -->
      <version>V9938</version>
      <vram>128</vram>
    </VDP>

    <PSG id="PSG">
      <type>YM2149</type> <!-- in S-3527 MSX-ENGINE -->
      <io base="0xA0" num="8" type="IO"/> <!-- S-3527 mirrors -->
      <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>yis-503iiir.cmos</sramname>
    </RTC>

    <PrinterPort id="Printer Port">
      <io base="0x90" num="8" type="IO"/> <!-- S-3527 mirrors -->
      <status_readable_on_all_ports>true</status_readable_on_all_ports> <!-- S-3527 property -->
    </PrinterPort>

  </devices>

</msxconfig>
