I think that you would unlucky if both did not work.
Of note, Ruud's Diagnostic ROM (RDR) does not read the switches in SW1 in order to determine {MDA or CGA}. RDR will automatically detect the CGA card, then direct its screen output to the CGA card.
Presently, in my opinion, the 8255A is the prime suspect. It is the type of chip that gets configured by software, after power is applied, according to what the programmer needs to the chip to do. One of the things that the IBM POST (and the POST in GLaBIOS) does, is to configure the chip. Any functional 8255A-5 (the -5 bit is important) that can be sourced will work; it gets soldered in, and that's that. Although, whenever I have replaced a faulty one, I have put in an IC socket between the chip and the motherboard. But yes, presently, we are 'jumping the gun'.
Yes, I am interested to see whether or not the switches in SW1 are being read correctly.
Incorrect reading of switches 5 and 6 can explain the {
1 long beep then 2 short beeps} issued by the IBM POST.
And interesting will be the 'Top of RAM' KB figure that RDR shows.