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

  <info>
    <manufacturer>Sanyo</manufacturer>
    <code>PHC-33</code>
    <release_year>1985</release_year>
    <description>A 64kB Japanese MSX1 machine with built-in high-speed tapedrive (not emulated).</description>
    <type>MSX</type>
    <region>jp</region>
  </info>

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

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

       MSX-ENGINE: S3527

       Note: built in tape deck's special features not emulated...     
    -->

  <CassettePort/>

  <devices>

    <PPI id="ppi">
      <io base="0xA8" num="8"/> <!-- S-3527 mirrors -->
      <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> <!-- TODO: not entirely sure. -->
      <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="8" type="IO"/> <!-- S-3527 mirrors -->
      <ignorePortDirections>true</ignorePortDirections> <!-- not sure, but guess based on use of Engine IC -->
    </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>phc-33_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"/>
          <initialContent encoding="gz-base64">eJztzgENAAAIAyD7l74x7iajAJkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwHv1AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcsDvTh3I=</initialContent> <!-- ((chr(255) + chr(0)) * 16384 + (chr(0) + chr(255)) * 16384) -->
        </RAM>
      </secondary>

      <secondary slot="3"/>

    </primary>

  </devices>

</msxconfig>
