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

  <info>
    <manufacturer>Yamaha</manufacturer>
    <code>YIS-503II</code>
    <release_year>1985</release_year>
    <desciption>Like CX5MII, but without SFG module.</desciption>
    <type>MSX</type>
    <region>jp</region>
  </info>

  <!--
      Based on machine of Peter Hanraets, with serial nr. 001791.
      Case wasn't opened.

      V9938 VDP
      Z80 scf: 01E529ED01F429FC (dunno)
      Z80 cpl: 3AFF12D7 (standard)
      Z80 out (c),0: 0 (MSX)
      PSG pin 6/7 quirk: C (YES)
      PSGMask: YM2149 like
      -->

  <CassettePort/>

  <devices>

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

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

    <PSG id="PSG">
      <type>YM2149</type> <!-- in S-3527 MSX-ENGINE -->
      <sound>
        <volume>21000</volume>
      </sound>
      <io base="0xA0" num="8" type="IO"/> <!-- S-3527 mirrors -->
    </PSG>

    <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>

    <primary slot="0">
      <ROM id="MSX BIOS with BASIC ROM">
        <rom>
          <filename>yis503ii_basic_bios1.rom</filename>
          <sha1>4d0c37ad722366ac7aa3d64291c3db72884deb2d</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"/> <!-- not connected -->

      <secondary slot="1"/> <!-- not connected (normally mini slot, but the hatch cannot be opened in this model) -->

      <secondary slot="2">
        <RAM id="Main RAM">
          <mem base="0x0000" size="0x10000"/>
          <initialContent encoding="gz-base64">eJz7z/B/QOEAW/8fAASAf4E=</initialContent> <!-- 64x FF00, 64x 00FF, etc. In the RAM dump, the first byte of each 256 byte group seems to be random, but that's not emulated. -->
        </RAM>
      </secondary>

      <secondary slot="3"/> <!-- module slot -->

    </primary>

  </devices>

</msxconfig>
