SSC: Experimental support for 6551's status bits: DCD and DSR via -dcd[-invert] and -dsr[-invert] args (#386)

This commit is contained in:
tomcw
2017-03-19 21:44:20 +00:00
parent b377dc8afb
commit abd99d109e
3 changed files with 54 additions and 10 deletions
+16
View File
@@ -1034,6 +1034,22 @@ int APIENTRY WinMain(HINSTANCE passinstance, HINSTANCE, LPSTR lpCmdLine, int)
{
g_bMultiMon = true;
}
else if (strcmp(lpCmdLine, "-dcd") == 0) // GH#386
{
sg_SSC.SupportDCD(true, false);
}
else if (strcmp(lpCmdLine, "-dcd-invert") == 0) // GH#386
{
sg_SSC.SupportDCD(true, true);
}
else if (strcmp(lpCmdLine, "-dsr") == 0) // GH#386
{
sg_SSC.SupportDSR(true, false);
}
else if (strcmp(lpCmdLine, "-dsr-invert") == 0) // GH#386
{
sg_SSC.SupportDSR(true, true);
}
else if (strcmp(lpCmdLine, "-dtr") == 0) // GH#386
{
sg_SSC.SupportDTR(true, false);