<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="/machines/dec/vax/xsl/machine.xsl"?>
<machine id="vax3900" type="vax" border="1" pos="center" background="default">
	<script src="/assets/js/xslt-polyfill.min.js" xmlns="http://www.w3.org/1999/xhtml"></script>
	<name pos="center">DEC MicroVAX 3900 (KA655) with 16Mb, RQDX3 and OpenVMS VAX</name>
	<computer id="computer" busWidth="30">
		<control type="container">
			<control type="button" binding="reset">Reset</control>
			<control type="description" binding="status" padRight="8px"/>
			<control type="description" binding="attach"/>
		</control>
	</computer>
	<cpu id="cpu" model="KA655" cycles="3900000" autoStart="true" autoBoot="true">
		<control type="container">
			<control type="button" binding="run">Run</control>
			<control type="button" binding="pause">Pause</control>
		</control>
	</cpu>
	<ram id="ram" addr="0x00000000" size="0x1000000"/>
	<rom id="ka655x" addr="0x20040000" size="0x20000" file="/vaxdisks/ka655x.json5"/>
	<!--
		The console is an 80x24 VT100-shaped terminal, and both numbers are deliberate.

		VMS assumes 80 columns: any narrower and its output wraps, and a wrapped boot reads as
		corruption rather than as a small window.  But pinning the width to 81ch was also wrong:
		the surrounding control row is wider, so the terminal sat in a box with ~170px of dead white
		beside it, which is exactly what the other machines on this site do not look like.

		So: width 100% to FILL the container, min-width 81ch as the FLOOR.  The terminal is as wide
		as the machine, and can never be squeezed below 80 columns; on a narrow screen it scrolls
		horizontally within itself rather than deforming the guest's output.  box-sizing keeps the
		border inside that floor instead of pushing past it.

		height is 25 lines: 24 for the VT100 screen plus one so the line being written is not flush
		against the bottom edge.
	-->
	<serial id="console" adapter="0" binding="print">
		<control type="container" width="100%" style="width:100%;display:block">
			<control type="textarea" binding="print" width="100%" height="25.5em"
				style="min-width:81ch;box-sizing:border-box;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:14px;line-height:1.15;white-space:pre;overflow-x:auto"/>
		</control>
	</serial>
	<device ref="/machines/dec/vax/rqdx3/default.xml" autoMount='{DUA0:{path:"/vaxdisks/vms55-rd54.dsk"}}'/>
</machine>
