void DOS_SetupDevices(void) {
	DOS_Device * newdev;
	newdev=new device_CON();
	DOS_AddDevice(newdev);
	DOS_Device * newdev2;
	newdev2=new device_NUL();
	DOS_AddDevice(newdev2);
	DOS_Device * newdev3;
	newdev3=new device_LPT1();
	DOS_AddDevice(newdev3);
}
void DOS_SetupDevices(void)
{
    // If dosfusion is started the second time, the devices must be cleared
    DOS_ClearDevices();

	DOS_Device * newdev;
	newdev=new device_CON();
	DOS_AddDevice(newdev);
	DOS_Device * newdev2;
	newdev2=new device_NUL();
	DOS_AddDevice(newdev2);
	DOS_Device * newdev3;
	newdev3=new device_LPT1();
	DOS_AddDevice(newdev3);
}
Example #3
0
void SERIAL_Init()
	{
	char sname[] = "COMx";
	// iterate through first 4 com ports and the rest (COM5-9)
	for (Bitu i = 0; i < 9; i++)
		{
		sname[3] = '1' + i;
		dosdevices[i] = new device_PRT(sname, ConfGetString(sname));
		DOS_AddDevice(dosdevices[i]);
		if (i < 4)
			serialPorts[i] = new CSerial(i, dosdevices[i]);
		}
	BIOS_SetComPorts((Bit16u*)serial_baseaddr);
	}
Example #4
0
void PARALLEL_Init ()
	{
//	Section_prop *section = static_cast <Section_prop*>(sec);
	char pname[] = "LPTx";
	// iterate through first 3 lpt ports and the rest (LPT4-9)
	for (Bitu i = 0; i < 9; i++)
		{
		pname[3] = '1' + i;
		dosdevices[i] = new device_PRT(pname, ConfGetString(pname));
		DOS_AddDevice(dosdevices[i]);
		if (i < 3)
			parallelPorts[i] = new CParallel(i, dosdevices[i]);
		}
	}
Example #5
0
void DOS_SetupDevices(void)
	{
	DOS_AddDevice(new device_CON());
	DOS_AddDevice(new device_NUL());
//	DOS_AddDevice(new device_PRN());
	}