main.CPUClock=3579545
main.Caption="MSX"

cpu : z80 {
  mem=mm
  int[FF]=vid.irq
  port[98-9B]=vid.data
  port[A0]=AY.regno
  port[A1]=AY.data
  port[A2]=AY.data
  port[A8-AB]=sys.data
}

bios : Memory {
  rom="MSX\msx.rom"
}

slotA : rom-mapper {
  romdb="MSX\msxromdb.xml"
  romselect="Slot A"
  romfiles="ROM files (*.rom)|*.rom"
  Ascii16=3FFF,F,4000,E,1
  Ascii16.ctl=6000,C,1,E800
  Ascii8=1FFF,1F,4000,D,3
  Ascii8.ctl=6000,B,3,E000
  GenericKonami=1FFF,F,4000,D,3,9000
  Konami=1FFF,F,4000,D,3,9000
  KonamiSCC=1FFF,F,4000,D,3
  KonamiSCC.ctl=5000,D,3,9800
}

mem1 : Memory {
  size=10000
}

sys : K580ww55 {
  portA=mm.slotctl
  portB=kbd.~idata
  portC[0-3]=kbd.mask
  portC[7]=AY.input
}

mm : MSX-MemMap {
  slot[0]=bios
  slot[1]=slotA
  slot[2]=slotB
  slot[3]=mem1
}

kbd : Keyboard {
  layout="MSX\layout.kbd"
}

vid : v9938 {
}

AY : AY-3-8910 {
  freq=1/2
}
