View Single Post
Old 04 March 2021, 20:39   #26
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 46
Posts: 24,853
Odd parity was broken in win32 specific code (fixed now) but space and mark should work correctly.

Code:
	parity = 0;
	if (extFlags & SEXTF_MSPON) {
		parity = (extFlags & SEXTF_MARK) ? 3 : 4;
		if (!(serFlags & SERF_PARTY_ON)) {
			put_byte_host(req + io_SerFlags, serFlags | SERF_PARTY_ON);
		}
	} else if (serFlags & SERF_PARTY_ON) {
		parity = (serFlags & SERF_PARTY_ODD) ? 1 : 2;
	}
Code:
	switch (parity)
	{
	case 1:
		dcb.Parity = ODDPARITY;
		break;
	case 2:
		dcb.Parity = EVENPARITY;
		break;
	case 3:
		dcb.Parity = MARKPARITY;
		break;
	case 4:
		dcb.Parity = SPACEPARITY;
		break;
	default:
		dcb.Parity = NOPARITY;
		break;
	}
3 = MARK, 4 = SPACE
Toni Wilen is offline  
 
Page generated in 0.11396 seconds with 11 queries