butjer1010 wrote on 2025-07-21, 18:44:
So, only 0001 and 1110 looks normal. Should i play some games to see which combination is better for this monitor?
OK, let's look at your working combinations: All of your pictures show 200-line modes. This might be due to some CGA emulation mode being active in text mode (activated by the upper switches), or it might be that only 200-line modes work. If you limit yourself to the "officially allowed" configurations, you would expect to hit the 80x25 200-line text mode more often than the 40x25 mode. It seem the BIOS doesn't limit the switches to the allowed configurations, though, creating "ghost configurations" that may or may not work sensibly.
From your pictures, I deduce
- 40-character 200-line mode at 0100, 1100, 1001.
- 80-character 200-line mode at 0001 and 1110.
80-character mode at those two combinations makes perfect sense, as those combinations (read with inverted logic and most significant bit on the right) are "EGA primary card with CGA monitor in 80-character mode" (configuration 7), and "EGA primary card with EGA monitor, displaying text as a CGA card would, startup in 80-character mode" (configuration 8 ). If that logic is correct, we can deduce the switch setting that is supposed to yield "EGA primary card with CGA monitor in 40-character mode" (configuration 6), which is 1001, and that's actually also one of the working configuration, so I guess we decoded how the switch settings can be translated to configuration numbers. This allows me to read 0100 as "configuration 13" and 1100 as "configuration 12", which are both unsupported configurations. The BIOS has a 12-entry "switch interpretation table" which is assigned to configurations number 0 to 11. Configurations 12, 13, 14 and 15 accesses data as "switch interpretation" that is not meant to be used that way. Most prominently, configurations 12 and 13 will cause the BIOS to initialize the EGA card for a color monitor, while 14 and 15 will cause the BIOS to initialize the EGA card for a monochrome monitor. So it's not surprising that 12 and 13 cause your card to display an image, while 14 and 15 do not.
Something is still wrong, though. Assuming your monitor actually is an EGA monitor (and not just a CGA monitor), you should be able to get a considerably better text mode at 0110 (configuration 9). If that switch setting does not produce a stable image on an EGA monitor, something is wrong with the 16.257MHz oscillator, the oscillator selection circuit or the vertical sync polarity selection. The vertical sync polarity selection is completely integrated in the PEGA2A chip, so at the moment I consider it unlikely to be broken. Can you please post a photo of the screen contents at 0110, maybe during POST, or at the DOS prompt when AUTOEXEC is finished?