# pce-5160.cfg

path = "."
path = "rom"

system {
	model = "5160"

	boot = 128
	rtc  = 1

	memtest = 0

	floppy_disk_drives = 2

	patch_bios_init  = 0
	patch_bios_int19 = 0
}

cpu {
	model = "8088"
	speed = 1
}

ram {
	address = 0
	size    = 512K
}

load {
	format  = "binary"
	address = 0xfe000
	file    = "ibm-xt-1982-11-08.rom"
}

load {
	format  = "binary"
	address = 0xf6000
	file    = "ibm-basic-1.10.rom"
}

load {
	format  = "binary"
	address = 0xc8000
	file    = "ibm-hdc-1985.rom"
}

rom {
	address = 0xf6000
	size    = 40K
}

rom {
	address = 0xc8000
	size    = 32K
}

terminal {
	driver = "sdl"

#	escape = "CtrlRight"

	scale      = 1
	border     = 0
	fullscreen = 0
		
	mouse_mul_x = 1
	mouse_div_x = 1
	mouse_mul_y = 1
	mouse_div_y = 1
}

terminal {
	driver = "x11"

#	escape = "CtrlRight"

	scale = 1

	mouse_mul_x = 1
	mouse_div_x = 1
	mouse_mul_y = 1
	mouse_div_y = 1
}

terminal {
	driver = "null"
}

video {
	device = "cga"
	font   = 0
	blink  = 30
}

video {
	device = "mda"
	color  = "green"
	blink  = 30
}

speaker {
	volume      = 250
	lowpass     = 8000
	sample_rate = 44100

#	driver      = "oss:dev=/dev/dsp:lowpass=0:wav=speaker.wav:wavfilter=0"
	driver      = "sdl:lowpass=0"
}

serial {
	uart      = "8250"
	address   = 0x3f8
	irq       = 4
	multichar = 1

#	driver = "null"
#	driver = "posix:file=ser1.out:read=ser1.out:write=ser1.out"
#	driver = "pty:symlink=ser1"
	driver = "stdio:file=ser1.out:flush=1"
#	driver = "tcp:port=5556"
#	driver = "tios:file=/dev/ttyS0"
}

serial {
	uart      = "8250"
	address   = 0x2f8
	irq       = 3
	multichar = 1

	driver = "stdio:file=ser2.out:flush=1"
}

parport {
	address = 0x378
	driver  = "stdio:file=par1.out:flush=1"
}

parport {
	address = 0x278
	driver  = "stdio:file=par2.out:flush=1"
}

fdc {
	address  = 0x3f0
	irq      = 6

	drive0   = 0x00
	drive1   = 0x01
	drive2   = 0x02
	drive3   = 0x03

	accurate = 1
}

hdc {
	address = 0x320
	irq     = 5

	drive0  = 0x80
	drive1  = 0x81

	switches = 0x00
}

disk {
	drive    = 0x00
	type     = "auto"
	file     = "fd0.pfdc"
	file     = "fd0.img"
	optional = 1
}

disk {
	drive    = 0x01
	type     = "auto"
	file     = "fd1.pfdc"
	file     = "fd1.img"
	optional = 1
}

disk {
	drive    = 0x02
	type     = "auto"
	file     = "fd2.pfdc"
	file     = "fd2.img"
	optional = 1
}

disk {
	drive    = 0x03
	type     = "auto"
	file     = "fd3.pfdc"
	file     = "fd3.img"
	optional = 1
}

disk {
	drive    = 0x80
	type     = "auto"
	file     = "hd0.pimg"
	file     = "hd0.qed"
	file     = "hd0.img"
#	cow      = "hd0.cow"
	optional = 1
}

disk {
	drive    = 0x81
	type     = "auto"
	file     = "hd1.pimg"
	file     = "hd1.qed"
	file     = "hd1.img"
#	cow      = "hd1.cow"
	optional = 1
}
