Reply 40 of 41, by wierd_w
Even with a reprogrammed palette, the EGA spec allows 16 colors out of 64 choices. This is 1/4 of the colors of the 256 color space, but a judicious 'best match' algorithm and a port trapper TSR could maybe half-ass it on an EGA card. (EG, it traps the port write to set the VGA palette, parses the submitted write, then reprograms the EGA palette with a "best fit" approximation.
This might not work in all cases (like games that want to use palette reprogramming to do color cycling effects, fade in/out, etc...) but it should be mostly OK for 64 color VGA modes via a VESA driver.