VOGONS


First post, by Estron

User metadata
Rank Newbie
Rank
Newbie

Hello,

This code is found inside dos.cpp:

	case 0x37:		/* Get/Set Switch char Get/Set Availdev thing */
switch (reg_al) {
case 0:
reg_al=0;reg_dl=0x2f;break; /* always return '/' like dos 5.0+ */
case 1:
reg_al=0;break;
case 2:
reg_al=0;reg_dl=0x2f;break;
case 3:
reg_al=0;break;
};
LOG(LOG_MISC,LOG_ERROR)("DOS:0x37:Call for not supported switchchar");
break;

The later two calls aren't for SwitChar as the log entry says but for AvailDev. (The comment above is correct.) If supported but locked (like on newer DOS versions) AvailDev returns always dl <> 00h, but normally FFh (= Most DOS fill it with FFh). The code is actually ok but reg_dl=0xff might be better here.

Estron