First post, by glebm
I'm working on a port of SDL2 for DOS.
So far, I've been testing it with dosbox 0.74 (default install on Ubuntu, default config).
When implementing support for 8-bit palettized 640x480 mode, I've noticed that the DAC only seems to support 6-bits per color according to its Capabilities query result (VBE standard page 13).
When trying to set the DAC colors to 8-bit via the 08h function, I get a very strange result:
bh=8 al=00 ah = 4f
1. bh is 8, but visually it looks like it's still 6 (brighter colors overflow and go dark).
2. ah is 4f which is not part of the spec (section 4.1 VBE Return status)
3. al is 0 which indicates failures
I'm referring to this VBE 2.0 standard document from 1994: https://www.phatcode.net/res/221/files/vbe20.pdf
Am I doing something wrong?
Does the svga_s3 doesn't not support palettized colors with 8 bit depth per channel?
What is the undocument 4f return value in the ah register?