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

<!-- Information provided by Werner Kai. Thanks! 

     Serial: 100954
     Mobo shows some modem chip: MP7246 JPN 8719&delta;
     CPU: NEC D780C -1
     S1985 MSX ENGINE

     z80 scf: 01C501ED01D401C (NEC)
     z80 cpl: 3AFF12D7 (standard)
     Z80 out (c),0: 0 (MSX)
     PSG pin 6/7 quirk: C (YES)
     PSGmask: AY8910-like
     -->

  <info>
    <manufacturer>Mitsubishi</manufacturer>
    <code>ML-TS2</code>
    <release_year>1987</release_year>
    <description>Mitsubishi Telecom Station (with built in telephone). This hardware description file is a Work-In-Progress! It's certainly not correct.</description>
    <type>MSX2</type>
    <region>jp</region>
  </info>

  <CassettePort/>

  <devices>

    <S1985 id="S1985"> <!-- includes 5 bits mapper-read-back -->
      <sramname>ml-ts2_s1985.sram</sramname>
    </S1985>

    <Kanji id="Kanji ROM">
      <rom>
        <filename>ml-ts2_kanjifont.rom</filename>
        <sha1>f4dba5ba267b5dd1a35eb74a6ec4fd4d5ca9a1b4</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="8"/> <!-- S-1985 mirrors -->
      <keyboard_type>jp_ansi</keyboard_type>
      <has_keypad>true</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>V9938</version>
      <vram>128</vram>
      <io base="0x98" num="8" type="O"/> <!-- S-1985 mirrors -->
      <io base="0x98" num="8" type="I"/> <!-- S-1985 mirrors -->
    </VDP>

    <PSG id="PSG">
      <type>AY8910</type>
      <keyboardlayout>50on</keyboardlayout>
      <sound>
        <volume>21000</volume>
      </sound>
      <io base="0xA0" num="8" type="IO"/> <!-- S-1985 mirrors -->
      <ignorePortDirections>true</ignorePortDirections> <!-- not sure, but guess based on use of Engine IC -->
    </PSG>

    <RTC id="Real time clock">
      <sramname>ml-ts2.cmos</sramname>
      <io base="0xB4" num="4" type="IO"/> <!-- S-1985 mirrors -->
    </RTC>

    <PrinterPort id="Printer Port">
      <io base="0x90" num="8" type="IO"/> <!-- S-1985 mirrors -->
      <bidirectional>true</bidirectional> <!-- S-1985 feature (but not used, nor implemented) -->
      <unused_bits>0x00</unused_bits>
    </PrinterPort>

    <primary slot="0">
      <ROM id="MSX BIOS with BASIC ROM">
        <rom>
          <filename>ml-ts2_basic-bios2.rom</filename>
          <sha1>bb608fe748ee88d45564ad8e3582c2222730b3b5</sha1>
        </rom>
        <mem base="0x0000" size="0x8000"/>
      </ROM>
    </primary>

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

    <primary slot="3">

      <secondary slot="0">
        <ROM id="MSX Sub ROM">
          <rom>
            <filename>ml-ts2_msx2sub.rom</filename>
            <sha1>0fbd45ef3dd7bb82d4c31f1947884f411f1ca344</sha1>
          </rom>
          <mem base="0x0000" size="0x4000"/>
        </ROM>
      </secondary>

      <secondary slot="1">
        <ROM id="ML-TS2 ROM"> <!-- has some complex mapper -->
          <rom>
            <filename>ml-ts2_firmware.rom</filename>
            <sha1>73d1ce106501b9e8151b4214448537617d82667f</sha1>
          </rom>
          <mappertype>MitsubishiMLTS2</mappertype> <!-- WIP implementation of the mapper -->
          <mem base="0x4000" size="0x4000"/>
        </ROM>
      </secondary>

      <secondary slot="2">
        <MemoryMapper id="Main RAM">
          <mem base="0x0000" size="0x10000"/>
          <size>64</size>
        </MemoryMapper>
      </secondary>

      <secondary slot="3"/>

    </primary>

  </devices>

</msxconfig>
