main.CPUClock=2MHz
main.Caption="CM-1800"
main.scale.y=150%
main.fullscreen=800x600x16
main.fullscreen.scale.x=1
main.fullscreen.scale.y=2

CPU : K580wm80a {
  mem=mm
  port[00]=tty.data
  port[01]=ttystate
  port[03]=reg1
  port[70-77]=fdd.sm1800
}

mem1 : Memory {
  size=10000
}

mems : Memory {
  size=400
}

bios : Memory {
  rom="SM1800\monid.rom"
}

reg1 : Register {
  write[4]=mm.page
}

mm : MemMap {
  map[0][0000-07FF].ro=bios
  map[0][0800-0BFF]=mems
  map[0][0C00-FFFF]=mem1[0C00]
  map[1][0000-FFFF]=mem1[0000]
}

ttystate : Register {
  read[0]=tty.rxready
  read[2]=tty.txready
}

tty : serial {
  connect="pipe:0"
}

line : dvk-serial {
  connect="pipe:0"
}

MCU-15ie-00-013 : mcu-15ie {
  rom="dvk\15ie.rom"
  font="dvk\15ie.fnt"
  layout="dvk\dvk.kbd"
  keymap="dvk\dvk.map"
  serial=line
  sound=beep.wave
}

beep : beep {
  freq=1/8A0
}

fdd : KR1818wg93 {
  image[0].file="SM1800\spo.gmd"
  image[0].geometry=77C26S128
  image[1].geometry=77C26S128
  drive[0].tooltip="A:"
  drive[1].tooltip="B:"
  dma=mem1
  ext="gmd"
  vdgm=77C26S128
  vdpb="1A00040F017D003F00800010000200"
  vdpb.boot="SM1800\cpm.gmd"
}
