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

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

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

       4/16k effect: NO (TMS91xx)
       address latch: NO (TMS9xxx)
       sprites clones (?): YES (TMS9xxx)
       screen 2 mirrored mode: YES
       mode 3 mixed mode: YES
       Z80 scf: 01C529ED01D429FC (dunno)
       Z80 cpl: 3AFF12D7 (standard)
       Z80 out (c),0: 0 (MSX)
       PSG pin 6/7 quirk: C (YES)
       YM2149 PSGmask

       MSX-ENGINE: possibly S3527, but this is unknown. Assuming in this config.

       Note: built in tape deck not emulated, instead, a cassette port is emulated, to which openMSX attaches a cassetteplayer automatically
    -->

  <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>
      <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-30n_basic-bios1.rom</filename>
          <sha1>302afb5d8be26c758309ca3df611ae69cced2821</sha1>
        </rom>
        <mem base="0x0000" size="0x8000"/>
      </ROM>
    </primary>

    <primary external="true" slot="1"/>

    <primary external="true" slot="2"/>

    <primary slot="3">
      <RAM id="Main RAM">
        <mem base="0x0000" size="0x10000"/>
        <initialContent encoding="gz-base64">eJz7/58ywEAhoNB6iu0f6u4ftX9gwUC7n1L7AT7T/hA=</initialContent> <!-- ababbabababaabab where a is 64x 0xFF and b is 64x 0x00, with some random bytes here and there (at addresses xx4A, xxCA) which are not emulated  -->
      </RAM>
    </primary>

  </devices>

</msxconfig>
