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

  <info>
    <manufacturer>Sanyo</manufacturer>
    <code>PHC-SPC</code>
    <release_year>1985</release_year>
    <description>Super Sanno Primary Computer</description>
    <type>MSX</type>
  </info>

  <!-- Info based on machine with serial number 73813653, kindly provided by
       Peter Hanraets

       Z80 scf: 01E529ED01FC29FC (dunno)
       Z80 cpl: 3AFF12D7 (standard)
       Z80 out (c),0: 0 (MSX)
       PSG pin 6/7 quirk: C (YES)
       YM2149 PSGmask

       MSX-ENGINE: S3527 (as seen on PCB shot of another specimen)
       VDP: TMS9118A (as seeon on PCB shot of another specimen)
    -->

  <CassettePort/>

  <devices>

    <PPI id="ppi">
      <io base="0xA8" num="4"/>
      <sound>
        <volume>16000</volume>
      </sound>
      <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>
      <graph_locks>false</graph_locks>
    </PPI>

    <VDP id="VDP">
      <version>TMS9118</version>
      <io base="0x98" num="8"/>  <!-- S3527 mirrors -->
    </VDP>

    <PSG id="PSG">
      <type>YM2149</type> <!-- in S-3527 MSX-ENGINE -->
      <keyboardlayout>50on</keyboardlayout>
      <sound>
        <volume>21000</volume>
      </sound>
      <io base="0xA0" num="2" type="O"/>
      <io base="0xA2" num="1" type="I"/>
      <ignorePortDirections>true</ignorePortDirections> <!-- not sure, but guess based on use of Engine IC -->
    </PSG>

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

    <primary slot="0">
      <ROM id="MSX BIOS with BASIC ROM">
        <rom>
          <filename>phc-spc_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"/>

      <secondary slot="1"/>

      <secondary slot="2">
        <RAM id="Main RAM">
          <mem base="0x0000" size="0x10000"/>
          <!-- no consistent initial RAM pattern. There is something with 128 bytes pattern A and then 128 bytes pattern B, but these patterns are not consistent in themselves. Pattern A is something like a repeated FC04 (with lots of variations) and pattern B is something like a repeated 03F3 (with lots of variations). A simple approximation taken here is FF00 x 64 and then 00FF x 64 -->
          <initialContent encoding="gz-base64">eJz7z/B/QOEAW/8fAASAf4E=</initialContent>
        </RAM>
      </secondary>

      <secondary slot="3"/>

    </primary>

  </devices>

</msxconfig>
