main.CPUClock=2MHz
main.Caption="KPOXA"

CPU : K580wm80a {
  mem=mm
  rst[7]=vid.irq
}

mem1 : Memory {
  size=800
}

font : Memory {
  rom="Kroha\kroha_font.bin"
}

game : Memory {
  rom="Kroha\game1.rom"
  romselect="Change external ROM"
  romfiles="ROM files (*.rom)|*.rom"
}

mm : MemMap {
  map[0][0000-E7FF]=game
  map[0][E800-EFFF]=mem1[000]
  map[0][F000-F7FF]=sysreg
  map[0][F800-FFFF]=ext
}

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

sysreg : Register {
  read=kbd.~matrix[0]
  write[1]=beep.input
}

scrdecoder : Decoder {
  mem=mem1[200]
  adrxlat="543210A9876"
}

vid : Text-Video {
  font.width=8
  font.height=8
  font=font[0000]
  char.height=8
  width=30
  height=20
  pitch=40
  mem=scrdecoder
  mem2=00
}

beep : beep {
}
