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

  <info>
    <manufacturer>Toshiba</manufacturer>
    <code>HX-32</code>
    <release_year>1985</release_year>
    <description>Japanese MSX1 with RAM disk feature, Kanji ROM, stereo PSG and word processing software built in.</description>
    <type>MSX</type>
    <region>jp</region>
  </info>

  <!--

  Thanks to Jorge Janaite Neto for the analysis.

  IC3 = TC53257 = 32K x 8	(SLOT0: P0=BIOS and P1=BASIC)
  IC2 = TMM23256 = 32K x 8 (socketed) (probably JWP/JWPKAKU and Kanji Driver)
  IC37 = TC531000P = 128K x 8 (Kanji JIS1)

  IC1 = Sharp LH0080A
  IC15 = TCX-1012
  IC16 = YM2149F
  IC36 = TCX-1008
  IC12 = T6950

  IC3 = SLOT0, pages 0 and 1
  IC2 = SLOT3-3, pages 1 and 2

  -->

  <CassettePort/>

  <devices>

    <Kanji id="Kanji ROM">
      <rom>
        <filename>hx-32_kanjifont.rom</filename>
        <sha1>db03211b7db46899df41db2b1dfbec972109a967</sha1>
      </rom>
      <io base="0xD8" num="2" type="O"/>
      <io base="0xD9" num="1" type="I"/>
    </Kanji>

    <PPI id="ppi">
      <sound>
        <volume>16000</volume>
      </sound>
      <io base="0xA8" num="4"/>
      <keyboard_type>jp_jis</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>T6950NTSC</version>
      <io base="0x98" num="2"/>
    </VDP>

    <PSG id="PSG">
      <type>YM2149</type>
      <keyboardlayout>JIS</keyboardlayout>
      <sound>
        <volume>21000</volume>
        <balance channel="1">0</balance>
        <balance channel="2">100</balance> <!-- According to Werner Kai's HX-21 -->
        <balance channel="3">-100</balance><!-- According to Werner Kai's HX-21 -->
      </sound>
      <io base="0xA0" num="4" type="IO"/>
      <ignorePortDirections>false</ignorePortDirections> <!-- not sure, but guess based on discrete PSG chip -->
    </PSG>

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

    <primary slot="0">
      <ROM id="MSX BIOS with BASIC ROM">
        <rom>
          <filename>HX32-IC3.BIN</filename>
          <sha1>01600d06d83072d4e757b29728555efde2c79705</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">
        <RAM id="Main RAM">
          <mem base="0x0000" size="0x10000"/>
        </RAM>
      </secondary>

      <secondary slot="3">
        <ROM id="Software Utility ROM"> <!-- Japanese Word Processor (_JWP, _JWPKAKU), RAM disk (_MEMINI), Printer spooler (_LCOPY, _SPOLON, _SPOLOFF) and RS-232C ROM? -->
          <rom>
            <sha1>ed589da7f359a4e139a23cd82d9a6a6fa3d70db0</sha1>
            <filename>HX32-IC2.BIN</filename>
          </rom>
          <mem base="0x4000" size="0x8000"/>
        </ROM>
      </secondary>

    </primary>

  </devices>

</msxconfig>
